@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/src/resources/users.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as UsersAPI from './users';
|
|
5
|
+
import * as WebhooksAPI from './webhooks';
|
|
4
6
|
import { APIPromise } from '../core/api-promise';
|
|
5
7
|
import { buildHeaders } from '../internal/headers';
|
|
6
8
|
import { RequestOptions } from '../internal/request-options';
|
|
@@ -18,7 +20,7 @@ export class Users extends APIResource {
|
|
|
18
20
|
*
|
|
19
21
|
* @example
|
|
20
22
|
* ```ts
|
|
21
|
-
* const
|
|
23
|
+
* const apiResponseOfUser = await client.users.retrieve(
|
|
22
24
|
* '880e8400-e29b-41d4-a716-446655440003',
|
|
23
25
|
* );
|
|
24
26
|
* ```
|
|
@@ -27,7 +29,7 @@ export class Users extends APIResource {
|
|
|
27
29
|
userID: string,
|
|
28
30
|
params: UserRetrieveParams | null | undefined = {},
|
|
29
31
|
options?: RequestOptions,
|
|
30
|
-
): APIPromise<
|
|
32
|
+
): APIPromise<APIResponseOfUser> {
|
|
31
33
|
const { 'x-profile-id': xProfileID } = params ?? {};
|
|
32
34
|
return this._client.get(path`/v3/users/${userID}`, {
|
|
33
35
|
...options,
|
|
@@ -69,10 +71,10 @@ export class Users extends APIResource {
|
|
|
69
71
|
*
|
|
70
72
|
* @example
|
|
71
73
|
* ```ts
|
|
72
|
-
* const
|
|
74
|
+
* const apiResponseOfUser = await client.users.invite();
|
|
73
75
|
* ```
|
|
74
76
|
*/
|
|
75
|
-
invite(params: UserInviteParams, options?: RequestOptions): APIPromise<
|
|
77
|
+
invite(params: UserInviteParams, options?: RequestOptions): APIPromise<APIResponseOfUser> {
|
|
76
78
|
const { 'Idempotency-Key': idempotencyKey, 'x-profile-id': xProfileID, ...body } = params;
|
|
77
79
|
return this._client.post('/v3/users', {
|
|
78
80
|
body,
|
|
@@ -116,7 +118,7 @@ export class Users extends APIResource {
|
|
|
116
118
|
*
|
|
117
119
|
* @example
|
|
118
120
|
* ```ts
|
|
119
|
-
* const
|
|
121
|
+
* const apiResponseOfUser = await client.users.updateRole(
|
|
120
122
|
* 'aa0e8400-e29b-41d4-a716-446655440005',
|
|
121
123
|
* );
|
|
122
124
|
* ```
|
|
@@ -125,7 +127,7 @@ export class Users extends APIResource {
|
|
|
125
127
|
userID: string,
|
|
126
128
|
params: UserUpdateRoleParams,
|
|
127
129
|
options?: RequestOptions,
|
|
128
|
-
): APIPromise<
|
|
130
|
+
): APIPromise<APIResponseOfUser> {
|
|
129
131
|
const { 'Idempotency-Key': idempotencyKey, 'x-profile-id': xProfileID, ...body } = params;
|
|
130
132
|
return this._client.patch(path`/v3/users/${userID}`, {
|
|
131
133
|
body,
|
|
@@ -144,21 +146,21 @@ export class Users extends APIResource {
|
|
|
144
146
|
/**
|
|
145
147
|
* Standard API response envelope for all v3 endpoints
|
|
146
148
|
*/
|
|
147
|
-
export interface
|
|
149
|
+
export interface APIResponseOfUser {
|
|
148
150
|
/**
|
|
149
151
|
* User response for v3 API
|
|
150
152
|
*/
|
|
151
|
-
data?:
|
|
153
|
+
data?: UserResponse | null;
|
|
152
154
|
|
|
153
155
|
/**
|
|
154
156
|
* Error information
|
|
155
157
|
*/
|
|
156
|
-
error?:
|
|
158
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
157
159
|
|
|
158
160
|
/**
|
|
159
161
|
* Request and response metadata
|
|
160
162
|
*/
|
|
161
|
-
meta?:
|
|
163
|
+
meta?: WebhooksAPI.APIMeta;
|
|
162
164
|
|
|
163
165
|
/**
|
|
164
166
|
* Indicates whether the request was successful
|
|
@@ -166,452 +168,80 @@ export interface UserRetrieveResponse {
|
|
|
166
168
|
success?: boolean;
|
|
167
169
|
}
|
|
168
170
|
|
|
169
|
-
export namespace UserRetrieveResponse {
|
|
170
|
-
/**
|
|
171
|
-
* User response for v3 API
|
|
172
|
-
*/
|
|
173
|
-
export interface Data {
|
|
174
|
-
/**
|
|
175
|
-
* User unique identifier
|
|
176
|
-
*/
|
|
177
|
-
id?: string;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* When the user was added to the organization
|
|
181
|
-
*/
|
|
182
|
-
created_at?: string;
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Which customer owns this — the key's own, or the profile named in x-profile-id.
|
|
186
|
-
* Says whose resource this is, which the resource's own id does not.
|
|
187
|
-
*/
|
|
188
|
-
customer_id?: string;
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* User email address
|
|
192
|
-
*/
|
|
193
|
-
email?: string;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* When the user was invited
|
|
197
|
-
*/
|
|
198
|
-
invited_at?: string | null;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* When the user last logged in
|
|
202
|
-
*/
|
|
203
|
-
last_login_at?: string | null;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* User full name
|
|
207
|
-
*/
|
|
208
|
-
name?: string;
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* User role in the organization: admin, billing, developer
|
|
212
|
-
*/
|
|
213
|
-
role?: string;
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* User status: active, invited, suspended, rejected
|
|
217
|
-
*/
|
|
218
|
-
status?: string;
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* When the user record was last updated
|
|
222
|
-
*/
|
|
223
|
-
updated_at?: string | null;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Error information
|
|
228
|
-
*/
|
|
229
|
-
export interface Error {
|
|
230
|
-
/**
|
|
231
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
232
|
-
*/
|
|
233
|
-
code?: string;
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Additional validation error details (field-level errors)
|
|
237
|
-
*/
|
|
238
|
-
details?: { [key: string]: Array<string> } | null;
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* URL to documentation about this error
|
|
242
|
-
*/
|
|
243
|
-
doc_url?: string | null;
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* Human-readable error message
|
|
247
|
-
*/
|
|
248
|
-
message?: string;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* Request and response metadata
|
|
253
|
-
*/
|
|
254
|
-
export interface Meta {
|
|
255
|
-
/**
|
|
256
|
-
* Unique identifier for this request (for tracing and support)
|
|
257
|
-
*/
|
|
258
|
-
request_id?: string;
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* Server timestamp when the response was generated
|
|
262
|
-
*/
|
|
263
|
-
timestamp?: string;
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* API version used for this request
|
|
267
|
-
*/
|
|
268
|
-
version?: string;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
|
|
272
171
|
/**
|
|
273
|
-
*
|
|
172
|
+
* User response for v3 API
|
|
274
173
|
*/
|
|
275
|
-
export interface
|
|
276
|
-
/**
|
|
277
|
-
* The users in the organization.
|
|
278
|
-
*/
|
|
279
|
-
data?: UserListResponse.Data | null;
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* Error information
|
|
283
|
-
*/
|
|
284
|
-
error?: UserListResponse.Error | null;
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Request and response metadata
|
|
288
|
-
*/
|
|
289
|
-
meta?: UserListResponse.Meta;
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Indicates whether the request was successful
|
|
293
|
-
*/
|
|
294
|
-
success?: boolean;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
export namespace UserListResponse {
|
|
174
|
+
export interface UserResponse {
|
|
298
175
|
/**
|
|
299
|
-
*
|
|
176
|
+
* User unique identifier
|
|
300
177
|
*/
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* Pagination metadata for list responses
|
|
304
|
-
*/
|
|
305
|
-
pagination?: Data.Pagination;
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* The users on this page.
|
|
309
|
-
*/
|
|
310
|
-
users?: Array<Data.User>;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
export namespace Data {
|
|
314
|
-
/**
|
|
315
|
-
* Pagination metadata for list responses
|
|
316
|
-
*/
|
|
317
|
-
export interface Pagination {
|
|
318
|
-
/**
|
|
319
|
-
* @deprecated Cursor-based pagination. Never populated — see Cursors.
|
|
320
|
-
*/
|
|
321
|
-
cursors?: Pagination.Cursors | null;
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* Whether there are more pages after this one
|
|
325
|
-
*/
|
|
326
|
-
has_more?: boolean;
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* Current page number (1-indexed)
|
|
330
|
-
*/
|
|
331
|
-
page?: number;
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* Number of items per page
|
|
335
|
-
*/
|
|
336
|
-
page_size?: number;
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* Total number of items across all pages
|
|
340
|
-
*/
|
|
341
|
-
total_count?: number;
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Total number of pages
|
|
345
|
-
*/
|
|
346
|
-
total_pages?: number;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
export namespace Pagination {
|
|
350
|
-
/**
|
|
351
|
-
* @deprecated Cursor-based pagination. Never populated — see Cursors.
|
|
352
|
-
*/
|
|
353
|
-
export interface Cursors {
|
|
354
|
-
/**
|
|
355
|
-
* Cursor to fetch the next page.
|
|
356
|
-
*/
|
|
357
|
-
after?: string | null;
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* Cursor to fetch the previous page.
|
|
361
|
-
*/
|
|
362
|
-
before?: string | null;
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* User response for v3 API
|
|
368
|
-
*/
|
|
369
|
-
export interface User {
|
|
370
|
-
/**
|
|
371
|
-
* User unique identifier
|
|
372
|
-
*/
|
|
373
|
-
id?: string;
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* When the user was added to the organization
|
|
377
|
-
*/
|
|
378
|
-
created_at?: string;
|
|
379
|
-
|
|
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
|
-
/**
|
|
387
|
-
* User email address
|
|
388
|
-
*/
|
|
389
|
-
email?: string;
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
* When the user was invited
|
|
393
|
-
*/
|
|
394
|
-
invited_at?: string | null;
|
|
395
|
-
|
|
396
|
-
/**
|
|
397
|
-
* When the user last logged in
|
|
398
|
-
*/
|
|
399
|
-
last_login_at?: string | null;
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* User full name
|
|
403
|
-
*/
|
|
404
|
-
name?: string;
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* User role in the organization: admin, billing, developer
|
|
408
|
-
*/
|
|
409
|
-
role?: string;
|
|
410
|
-
|
|
411
|
-
/**
|
|
412
|
-
* User status: active, invited, suspended, rejected
|
|
413
|
-
*/
|
|
414
|
-
status?: string;
|
|
415
|
-
|
|
416
|
-
/**
|
|
417
|
-
* When the user record was last updated
|
|
418
|
-
*/
|
|
419
|
-
updated_at?: string | null;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
178
|
+
id?: string;
|
|
422
179
|
|
|
423
180
|
/**
|
|
424
|
-
*
|
|
181
|
+
* When the user was added to the organization
|
|
425
182
|
*/
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
429
|
-
*/
|
|
430
|
-
code?: string;
|
|
431
|
-
|
|
432
|
-
/**
|
|
433
|
-
* Additional validation error details (field-level errors)
|
|
434
|
-
*/
|
|
435
|
-
details?: { [key: string]: Array<string> } | null;
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* URL to documentation about this error
|
|
439
|
-
*/
|
|
440
|
-
doc_url?: string | null;
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* Human-readable error message
|
|
444
|
-
*/
|
|
445
|
-
message?: string;
|
|
446
|
-
}
|
|
183
|
+
created_at?: string;
|
|
447
184
|
|
|
448
185
|
/**
|
|
449
|
-
*
|
|
186
|
+
* Which customer owns this — the key's own, or the profile named in x-profile-id.
|
|
187
|
+
* Says whose resource this is, which the resource's own id does not.
|
|
450
188
|
*/
|
|
451
|
-
|
|
452
|
-
/**
|
|
453
|
-
* Unique identifier for this request (for tracing and support)
|
|
454
|
-
*/
|
|
455
|
-
request_id?: string;
|
|
456
|
-
|
|
457
|
-
/**
|
|
458
|
-
* Server timestamp when the response was generated
|
|
459
|
-
*/
|
|
460
|
-
timestamp?: string;
|
|
461
|
-
|
|
462
|
-
/**
|
|
463
|
-
* API version used for this request
|
|
464
|
-
*/
|
|
465
|
-
version?: string;
|
|
466
|
-
}
|
|
467
|
-
}
|
|
189
|
+
customer_id?: string;
|
|
468
190
|
|
|
469
|
-
/**
|
|
470
|
-
* Standard API response envelope for all v3 endpoints
|
|
471
|
-
*/
|
|
472
|
-
export interface UserInviteResponse {
|
|
473
191
|
/**
|
|
474
|
-
* User
|
|
192
|
+
* User email address
|
|
475
193
|
*/
|
|
476
|
-
|
|
194
|
+
email?: string;
|
|
477
195
|
|
|
478
196
|
/**
|
|
479
|
-
*
|
|
197
|
+
* When the user was invited
|
|
480
198
|
*/
|
|
481
|
-
|
|
199
|
+
invited_at?: string | null;
|
|
482
200
|
|
|
483
201
|
/**
|
|
484
|
-
*
|
|
202
|
+
* When the user last logged in
|
|
485
203
|
*/
|
|
486
|
-
|
|
204
|
+
last_login_at?: string | null;
|
|
487
205
|
|
|
488
206
|
/**
|
|
489
|
-
*
|
|
207
|
+
* User full name
|
|
490
208
|
*/
|
|
491
|
-
|
|
492
|
-
}
|
|
209
|
+
name?: string;
|
|
493
210
|
|
|
494
|
-
export namespace UserInviteResponse {
|
|
495
211
|
/**
|
|
496
|
-
* User
|
|
212
|
+
* User role in the organization: admin, billing, developer
|
|
497
213
|
*/
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* User unique identifier
|
|
501
|
-
*/
|
|
502
|
-
id?: string;
|
|
503
|
-
|
|
504
|
-
/**
|
|
505
|
-
* When the user was added to the organization
|
|
506
|
-
*/
|
|
507
|
-
created_at?: string;
|
|
508
|
-
|
|
509
|
-
/**
|
|
510
|
-
* Which customer owns this — the key's own, or the profile named in x-profile-id.
|
|
511
|
-
* Says whose resource this is, which the resource's own id does not.
|
|
512
|
-
*/
|
|
513
|
-
customer_id?: string;
|
|
514
|
-
|
|
515
|
-
/**
|
|
516
|
-
* User email address
|
|
517
|
-
*/
|
|
518
|
-
email?: string;
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* When the user was invited
|
|
522
|
-
*/
|
|
523
|
-
invited_at?: string | null;
|
|
524
|
-
|
|
525
|
-
/**
|
|
526
|
-
* When the user last logged in
|
|
527
|
-
*/
|
|
528
|
-
last_login_at?: string | null;
|
|
529
|
-
|
|
530
|
-
/**
|
|
531
|
-
* User full name
|
|
532
|
-
*/
|
|
533
|
-
name?: string;
|
|
534
|
-
|
|
535
|
-
/**
|
|
536
|
-
* User role in the organization: admin, billing, developer
|
|
537
|
-
*/
|
|
538
|
-
role?: string;
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* User status: active, invited, suspended, rejected
|
|
542
|
-
*/
|
|
543
|
-
status?: string;
|
|
544
|
-
|
|
545
|
-
/**
|
|
546
|
-
* When the user record was last updated
|
|
547
|
-
*/
|
|
548
|
-
updated_at?: string | null;
|
|
549
|
-
}
|
|
214
|
+
role?: string;
|
|
550
215
|
|
|
551
216
|
/**
|
|
552
|
-
*
|
|
217
|
+
* User status: active, invited, suspended, rejected
|
|
553
218
|
*/
|
|
554
|
-
|
|
555
|
-
/**
|
|
556
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
557
|
-
*/
|
|
558
|
-
code?: string;
|
|
559
|
-
|
|
560
|
-
/**
|
|
561
|
-
* Additional validation error details (field-level errors)
|
|
562
|
-
*/
|
|
563
|
-
details?: { [key: string]: Array<string> } | null;
|
|
564
|
-
|
|
565
|
-
/**
|
|
566
|
-
* URL to documentation about this error
|
|
567
|
-
*/
|
|
568
|
-
doc_url?: string | null;
|
|
569
|
-
|
|
570
|
-
/**
|
|
571
|
-
* Human-readable error message
|
|
572
|
-
*/
|
|
573
|
-
message?: string;
|
|
574
|
-
}
|
|
219
|
+
status?: string;
|
|
575
220
|
|
|
576
221
|
/**
|
|
577
|
-
*
|
|
222
|
+
* When the user record was last updated
|
|
578
223
|
*/
|
|
579
|
-
|
|
580
|
-
/**
|
|
581
|
-
* Unique identifier for this request (for tracing and support)
|
|
582
|
-
*/
|
|
583
|
-
request_id?: string;
|
|
584
|
-
|
|
585
|
-
/**
|
|
586
|
-
* Server timestamp when the response was generated
|
|
587
|
-
*/
|
|
588
|
-
timestamp?: string;
|
|
589
|
-
|
|
590
|
-
/**
|
|
591
|
-
* API version used for this request
|
|
592
|
-
*/
|
|
593
|
-
version?: string;
|
|
594
|
-
}
|
|
224
|
+
updated_at?: string | null;
|
|
595
225
|
}
|
|
596
226
|
|
|
597
227
|
/**
|
|
598
228
|
* Standard API response envelope for all v3 endpoints
|
|
599
229
|
*/
|
|
600
|
-
export interface
|
|
230
|
+
export interface UserListResponse {
|
|
601
231
|
/**
|
|
602
|
-
*
|
|
232
|
+
* The users in the organization.
|
|
603
233
|
*/
|
|
604
|
-
data?:
|
|
234
|
+
data?: UserListResponse.Data | null;
|
|
605
235
|
|
|
606
236
|
/**
|
|
607
237
|
* Error information
|
|
608
238
|
*/
|
|
609
|
-
error?:
|
|
239
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
610
240
|
|
|
611
241
|
/**
|
|
612
242
|
* Request and response metadata
|
|
613
243
|
*/
|
|
614
|
-
meta?:
|
|
244
|
+
meta?: WebhooksAPI.APIMeta;
|
|
615
245
|
|
|
616
246
|
/**
|
|
617
247
|
* Indicates whether the request was successful
|
|
@@ -619,106 +249,20 @@ export interface UserUpdateRoleResponse {
|
|
|
619
249
|
success?: boolean;
|
|
620
250
|
}
|
|
621
251
|
|
|
622
|
-
export namespace
|
|
252
|
+
export namespace UserListResponse {
|
|
623
253
|
/**
|
|
624
|
-
*
|
|
254
|
+
* The users in the organization.
|
|
625
255
|
*/
|
|
626
256
|
export interface Data {
|
|
627
257
|
/**
|
|
628
|
-
*
|
|
629
|
-
*/
|
|
630
|
-
id?: string;
|
|
631
|
-
|
|
632
|
-
/**
|
|
633
|
-
* When the user was added to the organization
|
|
634
|
-
*/
|
|
635
|
-
created_at?: string;
|
|
636
|
-
|
|
637
|
-
/**
|
|
638
|
-
* Which customer owns this — the key's own, or the profile named in x-profile-id.
|
|
639
|
-
* Says whose resource this is, which the resource's own id does not.
|
|
640
|
-
*/
|
|
641
|
-
customer_id?: string;
|
|
642
|
-
|
|
643
|
-
/**
|
|
644
|
-
* User email address
|
|
645
|
-
*/
|
|
646
|
-
email?: string;
|
|
647
|
-
|
|
648
|
-
/**
|
|
649
|
-
* When the user was invited
|
|
650
|
-
*/
|
|
651
|
-
invited_at?: string | null;
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* When the user last logged in
|
|
655
|
-
*/
|
|
656
|
-
last_login_at?: string | null;
|
|
657
|
-
|
|
658
|
-
/**
|
|
659
|
-
* User full name
|
|
660
|
-
*/
|
|
661
|
-
name?: string;
|
|
662
|
-
|
|
663
|
-
/**
|
|
664
|
-
* User role in the organization: admin, billing, developer
|
|
665
|
-
*/
|
|
666
|
-
role?: string;
|
|
667
|
-
|
|
668
|
-
/**
|
|
669
|
-
* User status: active, invited, suspended, rejected
|
|
670
|
-
*/
|
|
671
|
-
status?: string;
|
|
672
|
-
|
|
673
|
-
/**
|
|
674
|
-
* When the user record was last updated
|
|
675
|
-
*/
|
|
676
|
-
updated_at?: string | null;
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* Error information
|
|
681
|
-
*/
|
|
682
|
-
export interface Error {
|
|
683
|
-
/**
|
|
684
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
685
|
-
*/
|
|
686
|
-
code?: string;
|
|
687
|
-
|
|
688
|
-
/**
|
|
689
|
-
* Additional validation error details (field-level errors)
|
|
690
|
-
*/
|
|
691
|
-
details?: { [key: string]: Array<string> } | null;
|
|
692
|
-
|
|
693
|
-
/**
|
|
694
|
-
* URL to documentation about this error
|
|
695
|
-
*/
|
|
696
|
-
doc_url?: string | null;
|
|
697
|
-
|
|
698
|
-
/**
|
|
699
|
-
* Human-readable error message
|
|
700
|
-
*/
|
|
701
|
-
message?: string;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
/**
|
|
705
|
-
* Request and response metadata
|
|
706
|
-
*/
|
|
707
|
-
export interface Meta {
|
|
708
|
-
/**
|
|
709
|
-
* Unique identifier for this request (for tracing and support)
|
|
710
|
-
*/
|
|
711
|
-
request_id?: string;
|
|
712
|
-
|
|
713
|
-
/**
|
|
714
|
-
* Server timestamp when the response was generated
|
|
258
|
+
* Pagination metadata for list responses
|
|
715
259
|
*/
|
|
716
|
-
|
|
260
|
+
pagination?: WebhooksAPI.PaginationMeta;
|
|
717
261
|
|
|
718
262
|
/**
|
|
719
|
-
*
|
|
263
|
+
* The users on this page.
|
|
720
264
|
*/
|
|
721
|
-
|
|
265
|
+
users?: Array<UsersAPI.UserResponse>;
|
|
722
266
|
}
|
|
723
267
|
}
|
|
724
268
|
|
|
@@ -819,10 +363,9 @@ export interface UserUpdateRoleParams {
|
|
|
819
363
|
|
|
820
364
|
export declare namespace Users {
|
|
821
365
|
export {
|
|
822
|
-
type
|
|
366
|
+
type APIResponseOfUser as APIResponseOfUser,
|
|
367
|
+
type UserResponse as UserResponse,
|
|
823
368
|
type UserListResponse as UserListResponse,
|
|
824
|
-
type UserInviteResponse as UserInviteResponse,
|
|
825
|
-
type UserUpdateRoleResponse as UserUpdateRoleResponse,
|
|
826
369
|
type UserRetrieveParams as UserRetrieveParams,
|
|
827
370
|
type UserListParams as UserListParams,
|
|
828
371
|
type UserInviteParams as UserInviteParams,
|