@sentdm/sentdm 0.35.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/client.d.mts +14 -14
- package/client.d.mts.map +1 -1
- package/client.d.ts +14 -14
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/contacts.d.mts +85 -589
- package/resources/contacts.d.mts.map +1 -1
- package/resources/contacts.d.ts +85 -589
- package/resources/contacts.d.ts.map +1 -1
- package/resources/contacts.js +4 -4
- package/resources/contacts.js.map +1 -1
- package/resources/contacts.mjs +4 -4
- package/resources/contacts.mjs.map +1 -1
- package/resources/conversations.d.mts +69 -328
- package/resources/conversations.d.mts.map +1 -1
- package/resources/conversations.d.ts +69 -328
- package/resources/conversations.d.ts.map +1 -1
- package/resources/conversations.js +10 -8
- package/resources/conversations.js.map +1 -1
- package/resources/conversations.mjs +10 -8
- package/resources/conversations.mjs.map +1 -1
- package/resources/index.d.mts +7 -7
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/me.d.mts +81 -129
- package/resources/me.d.mts.map +1 -1
- package/resources/me.d.ts +81 -129
- package/resources/me.d.ts.map +1 -1
- package/resources/me.js +11 -0
- package/resources/me.js.map +1 -1
- package/resources/me.mjs +11 -0
- package/resources/me.mjs.map +1 -1
- package/resources/messages.d.mts +8 -171
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +8 -171
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs.map +1 -1
- package/resources/numbers.d.mts +3 -42
- package/resources/numbers.d.mts.map +1 -1
- package/resources/numbers.d.ts +3 -42
- package/resources/numbers.d.ts.map +1 -1
- package/resources/numbers.js.map +1 -1
- package/resources/numbers.mjs.map +1 -1
- package/resources/profiles/campaigns.d.mts +149 -544
- package/resources/profiles/campaigns.d.mts.map +1 -1
- package/resources/profiles/campaigns.d.ts +149 -544
- package/resources/profiles/campaigns.d.ts.map +1 -1
- package/resources/profiles/index.d.mts +2 -2
- package/resources/profiles/index.d.mts.map +1 -1
- package/resources/profiles/index.d.ts +2 -2
- package/resources/profiles/index.d.ts.map +1 -1
- package/resources/profiles/index.js.map +1 -1
- package/resources/profiles/index.mjs.map +1 -1
- package/resources/profiles/profiles.d.mts +411 -1821
- package/resources/profiles/profiles.d.mts.map +1 -1
- package/resources/profiles/profiles.d.ts +411 -1821
- package/resources/profiles/profiles.d.ts.map +1 -1
- package/resources/profiles/profiles.js.map +1 -1
- package/resources/profiles/profiles.mjs.map +1 -1
- package/resources/templates.d.mts +84 -486
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +84 -486
- package/resources/templates.d.ts.map +1 -1
- package/resources/templates.js +3 -3
- package/resources/templates.js.map +1 -1
- package/resources/templates.mjs +3 -3
- package/resources/templates.mjs.map +1 -1
- package/resources/users.d.mts +47 -437
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +47 -437
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +3 -3
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +3 -3
- package/resources/users.mjs.map +1 -1
- package/resources/webhooks.d.mts +189 -768
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +189 -768
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +7 -6
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +7 -6
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +52 -39
- package/src/resources/contacts.ts +88 -678
- package/src/resources/conversations.ts +77 -393
- package/src/resources/index.ts +26 -20
- package/src/resources/me.ts +94 -148
- package/src/resources/messages.ts +8 -194
- package/src/resources/numbers.ts +3 -47
- package/src/resources/profiles/campaigns.ts +174 -673
- package/src/resources/profiles/index.ts +14 -6
- package/src/resources/profiles/profiles.ts +529 -2216
- package/src/resources/templates.ts +100 -572
- package/src/resources/users.ts +48 -505
- package/src/resources/webhooks.ts +297 -996
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/templates.js
CHANGED
|
@@ -18,7 +18,7 @@ class Templates extends resource_1.APIResource {
|
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* ```ts
|
|
21
|
-
* const
|
|
21
|
+
* const apiResponseTemplate = await client.templates.create();
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
24
|
create(params, options) {
|
|
@@ -41,7 +41,7 @@ class Templates extends resource_1.APIResource {
|
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* ```ts
|
|
44
|
-
* const
|
|
44
|
+
* const apiResponseTemplate = await client.templates.retrieve(
|
|
45
45
|
* '7ba7b820-9dad-11d1-80b4-00c04fd430c8',
|
|
46
46
|
* );
|
|
47
47
|
* ```
|
|
@@ -62,7 +62,7 @@ class Templates extends resource_1.APIResource {
|
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
64
|
* ```ts
|
|
65
|
-
* const
|
|
65
|
+
* const apiResponseTemplate = await client.templates.update(
|
|
66
66
|
* '7ba7b820-9dad-11d1-80b4-00c04fd430c8',
|
|
67
67
|
* );
|
|
68
68
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../src/resources/templates.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../src/resources/templates.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;;;GAIG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;OAS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IAAA,sBAAY,EAAC;gBACpB,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACvF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAhID,8BAgIC"}
|
package/resources/templates.mjs
CHANGED
|
@@ -15,7 +15,7 @@ export class Templates extends APIResource {
|
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```ts
|
|
18
|
-
* const
|
|
18
|
+
* const apiResponseTemplate = await client.templates.create();
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
21
|
create(params, options) {
|
|
@@ -38,7 +38,7 @@ export class Templates extends APIResource {
|
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* ```ts
|
|
41
|
-
* const
|
|
41
|
+
* const apiResponseTemplate = await client.templates.retrieve(
|
|
42
42
|
* '7ba7b820-9dad-11d1-80b4-00c04fd430c8',
|
|
43
43
|
* );
|
|
44
44
|
* ```
|
|
@@ -59,7 +59,7 @@ export class Templates extends APIResource {
|
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* ```ts
|
|
62
|
-
* const
|
|
62
|
+
* const apiResponseTemplate = await client.templates.update(
|
|
63
63
|
* '7ba7b820-9dad-11d1-80b4-00c04fd430c8',
|
|
64
64
|
* );
|
|
65
65
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.mjs","sourceRoot":"","sources":["../src/resources/templates.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;
|
|
1
|
+
{"version":3,"file":"templates.mjs","sourceRoot":"","sources":["../src/resources/templates.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OA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M,CAAC,IAAI,CAAA,iBAAiB,EAAE,EAAE,EAAE;YACpD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACvF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/resources/users.d.mts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as UsersAPI from "./users.mjs";
|
|
3
|
+
import * as WebhooksAPI from "./webhooks.mjs";
|
|
2
4
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
5
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
6
|
/**
|
|
@@ -13,12 +15,12 @@ export declare class Users extends APIResource {
|
|
|
13
15
|
*
|
|
14
16
|
* @example
|
|
15
17
|
* ```ts
|
|
16
|
-
* const
|
|
18
|
+
* const apiResponseOfUser = await client.users.retrieve(
|
|
17
19
|
* '880e8400-e29b-41d4-a716-446655440003',
|
|
18
20
|
* );
|
|
19
21
|
* ```
|
|
20
22
|
*/
|
|
21
|
-
retrieve(userID: string, params?: UserRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<
|
|
23
|
+
retrieve(userID: string, params?: UserRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<APIResponseOfUser>;
|
|
22
24
|
/**
|
|
23
25
|
* Retrieves all users who have access to the organization or profile identified by
|
|
24
26
|
* the API key, including their roles and status. Shows invited users (pending
|
|
@@ -37,10 +39,10 @@ export declare class Users extends APIResource {
|
|
|
37
39
|
*
|
|
38
40
|
* @example
|
|
39
41
|
* ```ts
|
|
40
|
-
* const
|
|
42
|
+
* const apiResponseOfUser = await client.users.invite();
|
|
41
43
|
* ```
|
|
42
44
|
*/
|
|
43
|
-
invite(params: UserInviteParams, options?: RequestOptions): APIPromise<
|
|
45
|
+
invite(params: UserInviteParams, options?: RequestOptions): APIPromise<APIResponseOfUser>;
|
|
44
46
|
/**
|
|
45
47
|
* Removes a user's access to an organization or profile. Requires admin role. You
|
|
46
48
|
* cannot remove yourself or remove the last admin.
|
|
@@ -59,506 +61,114 @@ export declare class Users extends APIResource {
|
|
|
59
61
|
*
|
|
60
62
|
* @example
|
|
61
63
|
* ```ts
|
|
62
|
-
* const
|
|
64
|
+
* const apiResponseOfUser = await client.users.updateRole(
|
|
63
65
|
* 'aa0e8400-e29b-41d4-a716-446655440005',
|
|
64
66
|
* );
|
|
65
67
|
* ```
|
|
66
68
|
*/
|
|
67
|
-
updateRole(userID: string, params: UserUpdateRoleParams, options?: RequestOptions): APIPromise<
|
|
69
|
+
updateRole(userID: string, params: UserUpdateRoleParams, options?: RequestOptions): APIPromise<APIResponseOfUser>;
|
|
68
70
|
}
|
|
69
71
|
/**
|
|
70
72
|
* Standard API response envelope for all v3 endpoints
|
|
71
73
|
*/
|
|
72
|
-
export interface
|
|
74
|
+
export interface APIResponseOfUser {
|
|
73
75
|
/**
|
|
74
76
|
* User response for v3 API
|
|
75
77
|
*/
|
|
76
|
-
data?:
|
|
78
|
+
data?: UserResponse | null;
|
|
77
79
|
/**
|
|
78
80
|
* Error information
|
|
79
81
|
*/
|
|
80
|
-
error?:
|
|
82
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
81
83
|
/**
|
|
82
84
|
* Request and response metadata
|
|
83
85
|
*/
|
|
84
|
-
meta?:
|
|
86
|
+
meta?: WebhooksAPI.APIMeta;
|
|
85
87
|
/**
|
|
86
88
|
* Indicates whether the request was successful
|
|
87
89
|
*/
|
|
88
90
|
success?: boolean;
|
|
89
91
|
}
|
|
90
|
-
export declare namespace UserRetrieveResponse {
|
|
91
|
-
/**
|
|
92
|
-
* User response for v3 API
|
|
93
|
-
*/
|
|
94
|
-
interface Data {
|
|
95
|
-
/**
|
|
96
|
-
* User unique identifier
|
|
97
|
-
*/
|
|
98
|
-
id?: string;
|
|
99
|
-
/**
|
|
100
|
-
* When the user was added to the organization
|
|
101
|
-
*/
|
|
102
|
-
created_at?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Which customer owns this — the key's own, or the profile named in x-profile-id.
|
|
105
|
-
* Says whose resource this is, which the resource's own id does not.
|
|
106
|
-
*/
|
|
107
|
-
customer_id?: string;
|
|
108
|
-
/**
|
|
109
|
-
* User email address
|
|
110
|
-
*/
|
|
111
|
-
email?: string;
|
|
112
|
-
/**
|
|
113
|
-
* When the user was invited
|
|
114
|
-
*/
|
|
115
|
-
invited_at?: string | null;
|
|
116
|
-
/**
|
|
117
|
-
* When the user last logged in
|
|
118
|
-
*/
|
|
119
|
-
last_login_at?: string | null;
|
|
120
|
-
/**
|
|
121
|
-
* User full name
|
|
122
|
-
*/
|
|
123
|
-
name?: string;
|
|
124
|
-
/**
|
|
125
|
-
* User role in the organization: admin, billing, developer
|
|
126
|
-
*/
|
|
127
|
-
role?: string;
|
|
128
|
-
/**
|
|
129
|
-
* User status: active, invited, suspended, rejected
|
|
130
|
-
*/
|
|
131
|
-
status?: string;
|
|
132
|
-
/**
|
|
133
|
-
* When the user record was last updated
|
|
134
|
-
*/
|
|
135
|
-
updated_at?: string | null;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Error information
|
|
139
|
-
*/
|
|
140
|
-
interface Error {
|
|
141
|
-
/**
|
|
142
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
143
|
-
*/
|
|
144
|
-
code?: string;
|
|
145
|
-
/**
|
|
146
|
-
* Additional validation error details (field-level errors)
|
|
147
|
-
*/
|
|
148
|
-
details?: {
|
|
149
|
-
[key: string]: Array<string>;
|
|
150
|
-
} | null;
|
|
151
|
-
/**
|
|
152
|
-
* URL to documentation about this error
|
|
153
|
-
*/
|
|
154
|
-
doc_url?: string | null;
|
|
155
|
-
/**
|
|
156
|
-
* Human-readable error message
|
|
157
|
-
*/
|
|
158
|
-
message?: string;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Request and response metadata
|
|
162
|
-
*/
|
|
163
|
-
interface Meta {
|
|
164
|
-
/**
|
|
165
|
-
* Unique identifier for this request (for tracing and support)
|
|
166
|
-
*/
|
|
167
|
-
request_id?: string;
|
|
168
|
-
/**
|
|
169
|
-
* Server timestamp when the response was generated
|
|
170
|
-
*/
|
|
171
|
-
timestamp?: string;
|
|
172
|
-
/**
|
|
173
|
-
* API version used for this request
|
|
174
|
-
*/
|
|
175
|
-
version?: string;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
92
|
/**
|
|
179
|
-
*
|
|
93
|
+
* User response for v3 API
|
|
180
94
|
*/
|
|
181
|
-
export interface
|
|
95
|
+
export interface UserResponse {
|
|
182
96
|
/**
|
|
183
|
-
*
|
|
97
|
+
* User unique identifier
|
|
184
98
|
*/
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Error information
|
|
188
|
-
*/
|
|
189
|
-
error?: UserListResponse.Error | null;
|
|
190
|
-
/**
|
|
191
|
-
* Request and response metadata
|
|
192
|
-
*/
|
|
193
|
-
meta?: UserListResponse.Meta;
|
|
194
|
-
/**
|
|
195
|
-
* Indicates whether the request was successful
|
|
196
|
-
*/
|
|
197
|
-
success?: boolean;
|
|
198
|
-
}
|
|
199
|
-
export declare namespace UserListResponse {
|
|
200
|
-
/**
|
|
201
|
-
* The users in the organization.
|
|
202
|
-
*/
|
|
203
|
-
interface Data {
|
|
204
|
-
/**
|
|
205
|
-
* Pagination metadata for list responses
|
|
206
|
-
*/
|
|
207
|
-
pagination?: Data.Pagination;
|
|
208
|
-
/**
|
|
209
|
-
* The users on this page.
|
|
210
|
-
*/
|
|
211
|
-
users?: Array<Data.User>;
|
|
212
|
-
}
|
|
213
|
-
namespace Data {
|
|
214
|
-
/**
|
|
215
|
-
* Pagination metadata for list responses
|
|
216
|
-
*/
|
|
217
|
-
interface Pagination {
|
|
218
|
-
/**
|
|
219
|
-
* @deprecated Cursor-based pagination. Never populated — see Cursors.
|
|
220
|
-
*/
|
|
221
|
-
cursors?: Pagination.Cursors | null;
|
|
222
|
-
/**
|
|
223
|
-
* Whether there are more pages after this one
|
|
224
|
-
*/
|
|
225
|
-
has_more?: boolean;
|
|
226
|
-
/**
|
|
227
|
-
* Current page number (1-indexed)
|
|
228
|
-
*/
|
|
229
|
-
page?: number;
|
|
230
|
-
/**
|
|
231
|
-
* Number of items per page
|
|
232
|
-
*/
|
|
233
|
-
page_size?: number;
|
|
234
|
-
/**
|
|
235
|
-
* Total number of items across all pages
|
|
236
|
-
*/
|
|
237
|
-
total_count?: number;
|
|
238
|
-
/**
|
|
239
|
-
* Total number of pages
|
|
240
|
-
*/
|
|
241
|
-
total_pages?: number;
|
|
242
|
-
}
|
|
243
|
-
namespace Pagination {
|
|
244
|
-
/**
|
|
245
|
-
* @deprecated Cursor-based pagination. Never populated — see Cursors.
|
|
246
|
-
*/
|
|
247
|
-
interface Cursors {
|
|
248
|
-
/**
|
|
249
|
-
* Cursor to fetch the next page.
|
|
250
|
-
*/
|
|
251
|
-
after?: string | null;
|
|
252
|
-
/**
|
|
253
|
-
* Cursor to fetch the previous page.
|
|
254
|
-
*/
|
|
255
|
-
before?: string | null;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* User response for v3 API
|
|
260
|
-
*/
|
|
261
|
-
interface User {
|
|
262
|
-
/**
|
|
263
|
-
* User unique identifier
|
|
264
|
-
*/
|
|
265
|
-
id?: string;
|
|
266
|
-
/**
|
|
267
|
-
* When the user was added to the organization
|
|
268
|
-
*/
|
|
269
|
-
created_at?: string;
|
|
270
|
-
/**
|
|
271
|
-
* Which customer owns this — the key's own, or the profile named in x-profile-id.
|
|
272
|
-
* Says whose resource this is, which the resource's own id does not.
|
|
273
|
-
*/
|
|
274
|
-
customer_id?: string;
|
|
275
|
-
/**
|
|
276
|
-
* User email address
|
|
277
|
-
*/
|
|
278
|
-
email?: string;
|
|
279
|
-
/**
|
|
280
|
-
* When the user was invited
|
|
281
|
-
*/
|
|
282
|
-
invited_at?: string | null;
|
|
283
|
-
/**
|
|
284
|
-
* When the user last logged in
|
|
285
|
-
*/
|
|
286
|
-
last_login_at?: string | null;
|
|
287
|
-
/**
|
|
288
|
-
* User full name
|
|
289
|
-
*/
|
|
290
|
-
name?: string;
|
|
291
|
-
/**
|
|
292
|
-
* User role in the organization: admin, billing, developer
|
|
293
|
-
*/
|
|
294
|
-
role?: string;
|
|
295
|
-
/**
|
|
296
|
-
* User status: active, invited, suspended, rejected
|
|
297
|
-
*/
|
|
298
|
-
status?: string;
|
|
299
|
-
/**
|
|
300
|
-
* When the user record was last updated
|
|
301
|
-
*/
|
|
302
|
-
updated_at?: string | null;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
99
|
+
id?: string;
|
|
305
100
|
/**
|
|
306
|
-
*
|
|
101
|
+
* When the user was added to the organization
|
|
307
102
|
*/
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
311
|
-
*/
|
|
312
|
-
code?: string;
|
|
313
|
-
/**
|
|
314
|
-
* Additional validation error details (field-level errors)
|
|
315
|
-
*/
|
|
316
|
-
details?: {
|
|
317
|
-
[key: string]: Array<string>;
|
|
318
|
-
} | null;
|
|
319
|
-
/**
|
|
320
|
-
* URL to documentation about this error
|
|
321
|
-
*/
|
|
322
|
-
doc_url?: string | null;
|
|
323
|
-
/**
|
|
324
|
-
* Human-readable error message
|
|
325
|
-
*/
|
|
326
|
-
message?: string;
|
|
327
|
-
}
|
|
103
|
+
created_at?: string;
|
|
328
104
|
/**
|
|
329
|
-
*
|
|
105
|
+
* Which customer owns this — the key's own, or the profile named in x-profile-id.
|
|
106
|
+
* Says whose resource this is, which the resource's own id does not.
|
|
330
107
|
*/
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Unique identifier for this request (for tracing and support)
|
|
334
|
-
*/
|
|
335
|
-
request_id?: string;
|
|
336
|
-
/**
|
|
337
|
-
* Server timestamp when the response was generated
|
|
338
|
-
*/
|
|
339
|
-
timestamp?: string;
|
|
340
|
-
/**
|
|
341
|
-
* API version used for this request
|
|
342
|
-
*/
|
|
343
|
-
version?: string;
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
/**
|
|
347
|
-
* Standard API response envelope for all v3 endpoints
|
|
348
|
-
*/
|
|
349
|
-
export interface UserInviteResponse {
|
|
108
|
+
customer_id?: string;
|
|
350
109
|
/**
|
|
351
|
-
* User
|
|
110
|
+
* User email address
|
|
352
111
|
*/
|
|
353
|
-
|
|
112
|
+
email?: string;
|
|
354
113
|
/**
|
|
355
|
-
*
|
|
114
|
+
* When the user was invited
|
|
356
115
|
*/
|
|
357
|
-
|
|
116
|
+
invited_at?: string | null;
|
|
358
117
|
/**
|
|
359
|
-
*
|
|
118
|
+
* When the user last logged in
|
|
360
119
|
*/
|
|
361
|
-
|
|
120
|
+
last_login_at?: string | null;
|
|
362
121
|
/**
|
|
363
|
-
*
|
|
122
|
+
* User full name
|
|
364
123
|
*/
|
|
365
|
-
|
|
366
|
-
}
|
|
367
|
-
export declare namespace UserInviteResponse {
|
|
124
|
+
name?: string;
|
|
368
125
|
/**
|
|
369
|
-
* User
|
|
126
|
+
* User role in the organization: admin, billing, developer
|
|
370
127
|
*/
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* User unique identifier
|
|
374
|
-
*/
|
|
375
|
-
id?: string;
|
|
376
|
-
/**
|
|
377
|
-
* When the user was added to the organization
|
|
378
|
-
*/
|
|
379
|
-
created_at?: string;
|
|
380
|
-
/**
|
|
381
|
-
* Which customer owns this — the key's own, or the profile named in x-profile-id.
|
|
382
|
-
* Says whose resource this is, which the resource's own id does not.
|
|
383
|
-
*/
|
|
384
|
-
customer_id?: string;
|
|
385
|
-
/**
|
|
386
|
-
* User email address
|
|
387
|
-
*/
|
|
388
|
-
email?: string;
|
|
389
|
-
/**
|
|
390
|
-
* When the user was invited
|
|
391
|
-
*/
|
|
392
|
-
invited_at?: string | null;
|
|
393
|
-
/**
|
|
394
|
-
* When the user last logged in
|
|
395
|
-
*/
|
|
396
|
-
last_login_at?: string | null;
|
|
397
|
-
/**
|
|
398
|
-
* User full name
|
|
399
|
-
*/
|
|
400
|
-
name?: string;
|
|
401
|
-
/**
|
|
402
|
-
* User role in the organization: admin, billing, developer
|
|
403
|
-
*/
|
|
404
|
-
role?: string;
|
|
405
|
-
/**
|
|
406
|
-
* User status: active, invited, suspended, rejected
|
|
407
|
-
*/
|
|
408
|
-
status?: string;
|
|
409
|
-
/**
|
|
410
|
-
* When the user record was last updated
|
|
411
|
-
*/
|
|
412
|
-
updated_at?: string | null;
|
|
413
|
-
}
|
|
128
|
+
role?: string;
|
|
414
129
|
/**
|
|
415
|
-
*
|
|
130
|
+
* User status: active, invited, suspended, rejected
|
|
416
131
|
*/
|
|
417
|
-
|
|
418
|
-
/**
|
|
419
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
420
|
-
*/
|
|
421
|
-
code?: string;
|
|
422
|
-
/**
|
|
423
|
-
* Additional validation error details (field-level errors)
|
|
424
|
-
*/
|
|
425
|
-
details?: {
|
|
426
|
-
[key: string]: Array<string>;
|
|
427
|
-
} | null;
|
|
428
|
-
/**
|
|
429
|
-
* URL to documentation about this error
|
|
430
|
-
*/
|
|
431
|
-
doc_url?: string | null;
|
|
432
|
-
/**
|
|
433
|
-
* Human-readable error message
|
|
434
|
-
*/
|
|
435
|
-
message?: string;
|
|
436
|
-
}
|
|
132
|
+
status?: string;
|
|
437
133
|
/**
|
|
438
|
-
*
|
|
134
|
+
* When the user record was last updated
|
|
439
135
|
*/
|
|
440
|
-
|
|
441
|
-
/**
|
|
442
|
-
* Unique identifier for this request (for tracing and support)
|
|
443
|
-
*/
|
|
444
|
-
request_id?: string;
|
|
445
|
-
/**
|
|
446
|
-
* Server timestamp when the response was generated
|
|
447
|
-
*/
|
|
448
|
-
timestamp?: string;
|
|
449
|
-
/**
|
|
450
|
-
* API version used for this request
|
|
451
|
-
*/
|
|
452
|
-
version?: string;
|
|
453
|
-
}
|
|
136
|
+
updated_at?: string | null;
|
|
454
137
|
}
|
|
455
138
|
/**
|
|
456
139
|
* Standard API response envelope for all v3 endpoints
|
|
457
140
|
*/
|
|
458
|
-
export interface
|
|
141
|
+
export interface UserListResponse {
|
|
459
142
|
/**
|
|
460
|
-
*
|
|
143
|
+
* The users in the organization.
|
|
461
144
|
*/
|
|
462
|
-
data?:
|
|
145
|
+
data?: UserListResponse.Data | null;
|
|
463
146
|
/**
|
|
464
147
|
* Error information
|
|
465
148
|
*/
|
|
466
|
-
error?:
|
|
149
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
467
150
|
/**
|
|
468
151
|
* Request and response metadata
|
|
469
152
|
*/
|
|
470
|
-
meta?:
|
|
153
|
+
meta?: WebhooksAPI.APIMeta;
|
|
471
154
|
/**
|
|
472
155
|
* Indicates whether the request was successful
|
|
473
156
|
*/
|
|
474
157
|
success?: boolean;
|
|
475
158
|
}
|
|
476
|
-
export declare namespace
|
|
159
|
+
export declare namespace UserListResponse {
|
|
477
160
|
/**
|
|
478
|
-
*
|
|
161
|
+
* The users in the organization.
|
|
479
162
|
*/
|
|
480
163
|
interface Data {
|
|
481
164
|
/**
|
|
482
|
-
*
|
|
483
|
-
*/
|
|
484
|
-
id?: string;
|
|
485
|
-
/**
|
|
486
|
-
* When the user was added to the organization
|
|
487
|
-
*/
|
|
488
|
-
created_at?: string;
|
|
489
|
-
/**
|
|
490
|
-
* Which customer owns this — the key's own, or the profile named in x-profile-id.
|
|
491
|
-
* Says whose resource this is, which the resource's own id does not.
|
|
492
|
-
*/
|
|
493
|
-
customer_id?: string;
|
|
494
|
-
/**
|
|
495
|
-
* User email address
|
|
496
|
-
*/
|
|
497
|
-
email?: string;
|
|
498
|
-
/**
|
|
499
|
-
* When the user was invited
|
|
500
|
-
*/
|
|
501
|
-
invited_at?: string | null;
|
|
502
|
-
/**
|
|
503
|
-
* When the user last logged in
|
|
504
|
-
*/
|
|
505
|
-
last_login_at?: string | null;
|
|
506
|
-
/**
|
|
507
|
-
* User full name
|
|
508
|
-
*/
|
|
509
|
-
name?: string;
|
|
510
|
-
/**
|
|
511
|
-
* User role in the organization: admin, billing, developer
|
|
512
|
-
*/
|
|
513
|
-
role?: string;
|
|
514
|
-
/**
|
|
515
|
-
* User status: active, invited, suspended, rejected
|
|
516
|
-
*/
|
|
517
|
-
status?: string;
|
|
518
|
-
/**
|
|
519
|
-
* When the user record was last updated
|
|
520
|
-
*/
|
|
521
|
-
updated_at?: string | null;
|
|
522
|
-
}
|
|
523
|
-
/**
|
|
524
|
-
* Error information
|
|
525
|
-
*/
|
|
526
|
-
interface Error {
|
|
527
|
-
/**
|
|
528
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
529
|
-
*/
|
|
530
|
-
code?: string;
|
|
531
|
-
/**
|
|
532
|
-
* Additional validation error details (field-level errors)
|
|
533
|
-
*/
|
|
534
|
-
details?: {
|
|
535
|
-
[key: string]: Array<string>;
|
|
536
|
-
} | null;
|
|
537
|
-
/**
|
|
538
|
-
* URL to documentation about this error
|
|
539
|
-
*/
|
|
540
|
-
doc_url?: string | null;
|
|
541
|
-
/**
|
|
542
|
-
* Human-readable error message
|
|
543
|
-
*/
|
|
544
|
-
message?: string;
|
|
545
|
-
}
|
|
546
|
-
/**
|
|
547
|
-
* Request and response metadata
|
|
548
|
-
*/
|
|
549
|
-
interface Meta {
|
|
550
|
-
/**
|
|
551
|
-
* Unique identifier for this request (for tracing and support)
|
|
552
|
-
*/
|
|
553
|
-
request_id?: string;
|
|
554
|
-
/**
|
|
555
|
-
* Server timestamp when the response was generated
|
|
165
|
+
* Pagination metadata for list responses
|
|
556
166
|
*/
|
|
557
|
-
|
|
167
|
+
pagination?: WebhooksAPI.PaginationMeta;
|
|
558
168
|
/**
|
|
559
|
-
*
|
|
169
|
+
* The users on this page.
|
|
560
170
|
*/
|
|
561
|
-
|
|
171
|
+
users?: Array<UsersAPI.UserResponse>;
|
|
562
172
|
}
|
|
563
173
|
}
|
|
564
174
|
export interface UserRetrieveParams {
|
|
@@ -643,6 +253,6 @@ export interface UserUpdateRoleParams {
|
|
|
643
253
|
'x-profile-id'?: string;
|
|
644
254
|
}
|
|
645
255
|
export declare namespace Users {
|
|
646
|
-
export { type
|
|
256
|
+
export { type APIResponseOfUser as APIResponseOfUser, type UserResponse as UserResponse, type UserListResponse as UserListResponse, type UserRetrieveParams as UserRetrieveParams, type UserListParams as UserListParams, type UserInviteParams as UserInviteParams, type UserRemoveParams as UserRemoveParams, type UserUpdateRoleParams as UserUpdateRoleParams, };
|
|
647
257
|
}
|
|
648
258
|
//# sourceMappingURL=users.d.mts.map
|