@sentdm/sentdm 0.26.0 → 0.27.2
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 +24 -0
- package/client.d.mts +12 -12
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -12
- 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 +48 -486
- package/resources/contacts.d.mts.map +1 -1
- package/resources/contacts.d.ts +48 -486
- package/resources/contacts.d.ts.map +1 -1
- package/resources/contacts.js +3 -3
- package/resources/contacts.js.map +1 -1
- package/resources/contacts.mjs +3 -3
- package/resources/contacts.mjs.map +1 -1
- package/resources/index.d.mts +6 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -6
- 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 +40 -113
- package/resources/me.d.mts.map +1 -1
- package/resources/me.d.ts +40 -113
- package/resources/me.d.ts.map +1 -1
- package/resources/me.js.map +1 -1
- package/resources/me.mjs.map +1 -1
- package/resources/messages.d.mts +7 -126
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +7 -126
- 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 -480
- package/resources/profiles/campaigns.d.mts.map +1 -1
- package/resources/profiles/campaigns.d.ts +149 -480
- package/resources/profiles/campaigns.d.ts.map +1 -1
- package/resources/profiles/campaigns.js +41 -39
- package/resources/profiles/campaigns.js.map +1 -1
- package/resources/profiles/campaigns.mjs +41 -39
- package/resources/profiles/campaigns.mjs.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 +391 -1699
- package/resources/profiles/profiles.d.mts.map +1 -1
- package/resources/profiles/profiles.d.ts +391 -1699
- package/resources/profiles/profiles.d.ts.map +1 -1
- package/resources/profiles/profiles.js +6 -3
- package/resources/profiles/profiles.js.map +1 -1
- package/resources/profiles/profiles.mjs +6 -3
- package/resources/profiles/profiles.mjs.map +1 -1
- package/resources/templates.d.mts +176 -993
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +176 -993
- 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 +46 -373
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +46 -373
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +7 -3
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +7 -3
- package/resources/users.mjs.map +1 -1
- package/resources/webhooks.d.mts +110 -624
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +110 -624
- 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 +68 -33
- package/src/resources/contacts.ts +49 -566
- package/src/resources/index.ts +34 -17
- package/src/resources/me.ts +51 -132
- package/src/resources/messages.ts +7 -141
- package/src/resources/numbers.ts +3 -47
- package/src/resources/profiles/campaigns.ts +172 -667
- package/src/resources/profiles/index.ts +17 -5
- package/src/resources/profiles/profiles.ts +549 -2282
- package/src/resources/templates.ts +206 -1256
- package/src/resources/users.ts +47 -430
- package/src/resources/webhooks.ts +120 -742
- 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';
|
|
@@ -16,14 +18,16 @@ export class Users extends APIResource {
|
|
|
16
18
|
*
|
|
17
19
|
* @example
|
|
18
20
|
* ```ts
|
|
19
|
-
* const
|
|
21
|
+
* const apiResponseOfUser = await client.users.retrieve(
|
|
22
|
+
* 'userId',
|
|
23
|
+
* );
|
|
20
24
|
* ```
|
|
21
25
|
*/
|
|
22
26
|
retrieve(
|
|
23
27
|
userID: string,
|
|
24
28
|
params: UserRetrieveParams | null | undefined = {},
|
|
25
29
|
options?: RequestOptions,
|
|
26
|
-
): APIPromise<
|
|
30
|
+
): APIPromise<APIResponseOfUser> {
|
|
27
31
|
const { 'x-profile-id': xProfileID } = params ?? {};
|
|
28
32
|
return this._client.get(path`/v3/users/${userID}`, {
|
|
29
33
|
...options,
|
|
@@ -65,10 +69,10 @@ export class Users extends APIResource {
|
|
|
65
69
|
*
|
|
66
70
|
* @example
|
|
67
71
|
* ```ts
|
|
68
|
-
* const
|
|
72
|
+
* const apiResponseOfUser = await client.users.invite();
|
|
69
73
|
* ```
|
|
70
74
|
*/
|
|
71
|
-
invite(params: UserInviteParams, options?: RequestOptions): APIPromise<
|
|
75
|
+
invite(params: UserInviteParams, options?: RequestOptions): APIPromise<APIResponseOfUser> {
|
|
72
76
|
const { 'Idempotency-Key': idempotencyKey, 'x-profile-id': xProfileID, ...body } = params;
|
|
73
77
|
return this._client.post('/v3/users', {
|
|
74
78
|
body,
|
|
@@ -110,14 +114,16 @@ export class Users extends APIResource {
|
|
|
110
114
|
*
|
|
111
115
|
* @example
|
|
112
116
|
* ```ts
|
|
113
|
-
* const
|
|
117
|
+
* const apiResponseOfUser = await client.users.updateRole(
|
|
118
|
+
* 'userId',
|
|
119
|
+
* );
|
|
114
120
|
* ```
|
|
115
121
|
*/
|
|
116
122
|
updateRole(
|
|
117
123
|
userID: string,
|
|
118
124
|
params: UserUpdateRoleParams,
|
|
119
125
|
options?: RequestOptions,
|
|
120
|
-
): APIPromise<
|
|
126
|
+
): APIPromise<APIResponseOfUser> {
|
|
121
127
|
const { 'Idempotency-Key': idempotencyKey, 'x-profile-id': xProfileID, ...body } = params;
|
|
122
128
|
return this._client.patch(path`/v3/users/${userID}`, {
|
|
123
129
|
body,
|
|
@@ -136,21 +142,21 @@ export class Users extends APIResource {
|
|
|
136
142
|
/**
|
|
137
143
|
* Standard API response envelope for all v3 endpoints
|
|
138
144
|
*/
|
|
139
|
-
export interface
|
|
145
|
+
export interface APIResponseOfUser {
|
|
140
146
|
/**
|
|
141
147
|
* User response for v3 API
|
|
142
148
|
*/
|
|
143
|
-
data?:
|
|
149
|
+
data?: UserResponse | null;
|
|
144
150
|
|
|
145
151
|
/**
|
|
146
152
|
* Error information
|
|
147
153
|
*/
|
|
148
|
-
error?:
|
|
154
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
149
155
|
|
|
150
156
|
/**
|
|
151
157
|
* Request and response metadata
|
|
152
158
|
*/
|
|
153
|
-
meta?:
|
|
159
|
+
meta?: WebhooksAPI.APIMeta;
|
|
154
160
|
|
|
155
161
|
/**
|
|
156
162
|
* Indicates whether the request was successful
|
|
@@ -158,377 +164,74 @@ export interface UserRetrieveResponse {
|
|
|
158
164
|
success?: boolean;
|
|
159
165
|
}
|
|
160
166
|
|
|
161
|
-
export namespace UserRetrieveResponse {
|
|
162
|
-
/**
|
|
163
|
-
* User response for v3 API
|
|
164
|
-
*/
|
|
165
|
-
export interface Data {
|
|
166
|
-
/**
|
|
167
|
-
* User unique identifier
|
|
168
|
-
*/
|
|
169
|
-
id?: string;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* When the user was added to the organization
|
|
173
|
-
*/
|
|
174
|
-
created_at?: string;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* User email address
|
|
178
|
-
*/
|
|
179
|
-
email?: string;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* When the user was invited
|
|
183
|
-
*/
|
|
184
|
-
invited_at?: string | null;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* When the user last logged in
|
|
188
|
-
*/
|
|
189
|
-
last_login_at?: string | null;
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* User full name
|
|
193
|
-
*/
|
|
194
|
-
name?: string;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* User role in the organization: admin, billing, developer
|
|
198
|
-
*/
|
|
199
|
-
role?: string;
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* User status: active, invited, suspended, rejected
|
|
203
|
-
*/
|
|
204
|
-
status?: string;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* When the user record was last updated
|
|
208
|
-
*/
|
|
209
|
-
updated_at?: string | null;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Error information
|
|
214
|
-
*/
|
|
215
|
-
export interface Error {
|
|
216
|
-
/**
|
|
217
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
218
|
-
*/
|
|
219
|
-
code?: string;
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Additional validation error details (field-level errors)
|
|
223
|
-
*/
|
|
224
|
-
details?: { [key: string]: Array<string> } | null;
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* URL to documentation about this error
|
|
228
|
-
*/
|
|
229
|
-
doc_url?: string | null;
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* Human-readable error message
|
|
233
|
-
*/
|
|
234
|
-
message?: string;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* Request and response metadata
|
|
239
|
-
*/
|
|
240
|
-
export interface Meta {
|
|
241
|
-
/**
|
|
242
|
-
* Unique identifier for this request (for tracing and support)
|
|
243
|
-
*/
|
|
244
|
-
request_id?: string;
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Server timestamp when the response was generated
|
|
248
|
-
*/
|
|
249
|
-
timestamp?: string;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* API version used for this request
|
|
253
|
-
*/
|
|
254
|
-
version?: string;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
167
|
/**
|
|
259
|
-
*
|
|
168
|
+
* User response for v3 API
|
|
260
169
|
*/
|
|
261
|
-
export interface
|
|
262
|
-
/**
|
|
263
|
-
* List of users response
|
|
264
|
-
*/
|
|
265
|
-
data?: UserListResponse.Data | null;
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Error information
|
|
269
|
-
*/
|
|
270
|
-
error?: UserListResponse.Error | null;
|
|
271
|
-
|
|
170
|
+
export interface UserResponse {
|
|
272
171
|
/**
|
|
273
|
-
*
|
|
172
|
+
* User unique identifier
|
|
274
173
|
*/
|
|
275
|
-
|
|
174
|
+
id?: string;
|
|
276
175
|
|
|
277
176
|
/**
|
|
278
|
-
*
|
|
177
|
+
* When the user was added to the organization
|
|
279
178
|
*/
|
|
280
|
-
|
|
281
|
-
}
|
|
179
|
+
created_at?: string;
|
|
282
180
|
|
|
283
|
-
export namespace UserListResponse {
|
|
284
|
-
/**
|
|
285
|
-
* List of users response
|
|
286
|
-
*/
|
|
287
|
-
export interface Data {
|
|
288
|
-
/**
|
|
289
|
-
* List of users in the organization
|
|
290
|
-
*/
|
|
291
|
-
users?: Array<Data.User>;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
export namespace Data {
|
|
295
|
-
/**
|
|
296
|
-
* User response for v3 API
|
|
297
|
-
*/
|
|
298
|
-
export interface User {
|
|
299
|
-
/**
|
|
300
|
-
* User unique identifier
|
|
301
|
-
*/
|
|
302
|
-
id?: string;
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* When the user was added to the organization
|
|
306
|
-
*/
|
|
307
|
-
created_at?: string;
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* User email address
|
|
311
|
-
*/
|
|
312
|
-
email?: string;
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* When the user was invited
|
|
316
|
-
*/
|
|
317
|
-
invited_at?: string | null;
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* When the user last logged in
|
|
321
|
-
*/
|
|
322
|
-
last_login_at?: string | null;
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* User full name
|
|
326
|
-
*/
|
|
327
|
-
name?: string;
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* User role in the organization: admin, billing, developer
|
|
331
|
-
*/
|
|
332
|
-
role?: string;
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* User status: active, invited, suspended, rejected
|
|
336
|
-
*/
|
|
337
|
-
status?: string;
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* When the user record was last updated
|
|
341
|
-
*/
|
|
342
|
-
updated_at?: string | null;
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Error information
|
|
348
|
-
*/
|
|
349
|
-
export interface Error {
|
|
350
|
-
/**
|
|
351
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
352
|
-
*/
|
|
353
|
-
code?: string;
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* Additional validation error details (field-level errors)
|
|
357
|
-
*/
|
|
358
|
-
details?: { [key: string]: Array<string> } | null;
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
* URL to documentation about this error
|
|
362
|
-
*/
|
|
363
|
-
doc_url?: string | null;
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* Human-readable error message
|
|
367
|
-
*/
|
|
368
|
-
message?: string;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* Request and response metadata
|
|
373
|
-
*/
|
|
374
|
-
export interface Meta {
|
|
375
|
-
/**
|
|
376
|
-
* Unique identifier for this request (for tracing and support)
|
|
377
|
-
*/
|
|
378
|
-
request_id?: string;
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* Server timestamp when the response was generated
|
|
382
|
-
*/
|
|
383
|
-
timestamp?: string;
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* API version used for this request
|
|
387
|
-
*/
|
|
388
|
-
version?: string;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* Standard API response envelope for all v3 endpoints
|
|
394
|
-
*/
|
|
395
|
-
export interface UserInviteResponse {
|
|
396
181
|
/**
|
|
397
|
-
* User
|
|
182
|
+
* User email address
|
|
398
183
|
*/
|
|
399
|
-
|
|
184
|
+
email?: string;
|
|
400
185
|
|
|
401
186
|
/**
|
|
402
|
-
*
|
|
187
|
+
* When the user was invited
|
|
403
188
|
*/
|
|
404
|
-
|
|
189
|
+
invited_at?: string | null;
|
|
405
190
|
|
|
406
191
|
/**
|
|
407
|
-
*
|
|
192
|
+
* When the user last logged in
|
|
408
193
|
*/
|
|
409
|
-
|
|
194
|
+
last_login_at?: string | null;
|
|
410
195
|
|
|
411
196
|
/**
|
|
412
|
-
*
|
|
197
|
+
* User full name
|
|
413
198
|
*/
|
|
414
|
-
|
|
415
|
-
}
|
|
199
|
+
name?: string;
|
|
416
200
|
|
|
417
|
-
export namespace UserInviteResponse {
|
|
418
201
|
/**
|
|
419
|
-
* User
|
|
202
|
+
* User role in the organization: admin, billing, developer
|
|
420
203
|
*/
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* User unique identifier
|
|
424
|
-
*/
|
|
425
|
-
id?: string;
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* When the user was added to the organization
|
|
429
|
-
*/
|
|
430
|
-
created_at?: string;
|
|
431
|
-
|
|
432
|
-
/**
|
|
433
|
-
* User email address
|
|
434
|
-
*/
|
|
435
|
-
email?: string;
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* When the user was invited
|
|
439
|
-
*/
|
|
440
|
-
invited_at?: string | null;
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* When the user last logged in
|
|
444
|
-
*/
|
|
445
|
-
last_login_at?: string | null;
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
* User full name
|
|
449
|
-
*/
|
|
450
|
-
name?: string;
|
|
451
|
-
|
|
452
|
-
/**
|
|
453
|
-
* User role in the organization: admin, billing, developer
|
|
454
|
-
*/
|
|
455
|
-
role?: string;
|
|
456
|
-
|
|
457
|
-
/**
|
|
458
|
-
* User status: active, invited, suspended, rejected
|
|
459
|
-
*/
|
|
460
|
-
status?: string;
|
|
461
|
-
|
|
462
|
-
/**
|
|
463
|
-
* When the user record was last updated
|
|
464
|
-
*/
|
|
465
|
-
updated_at?: string | null;
|
|
466
|
-
}
|
|
204
|
+
role?: string;
|
|
467
205
|
|
|
468
206
|
/**
|
|
469
|
-
*
|
|
207
|
+
* User status: active, invited, suspended, rejected
|
|
470
208
|
*/
|
|
471
|
-
|
|
472
|
-
/**
|
|
473
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
474
|
-
*/
|
|
475
|
-
code?: string;
|
|
476
|
-
|
|
477
|
-
/**
|
|
478
|
-
* Additional validation error details (field-level errors)
|
|
479
|
-
*/
|
|
480
|
-
details?: { [key: string]: Array<string> } | null;
|
|
481
|
-
|
|
482
|
-
/**
|
|
483
|
-
* URL to documentation about this error
|
|
484
|
-
*/
|
|
485
|
-
doc_url?: string | null;
|
|
486
|
-
|
|
487
|
-
/**
|
|
488
|
-
* Human-readable error message
|
|
489
|
-
*/
|
|
490
|
-
message?: string;
|
|
491
|
-
}
|
|
209
|
+
status?: string;
|
|
492
210
|
|
|
493
211
|
/**
|
|
494
|
-
*
|
|
212
|
+
* When the user record was last updated
|
|
495
213
|
*/
|
|
496
|
-
|
|
497
|
-
/**
|
|
498
|
-
* Unique identifier for this request (for tracing and support)
|
|
499
|
-
*/
|
|
500
|
-
request_id?: string;
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* Server timestamp when the response was generated
|
|
504
|
-
*/
|
|
505
|
-
timestamp?: string;
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
* API version used for this request
|
|
509
|
-
*/
|
|
510
|
-
version?: string;
|
|
511
|
-
}
|
|
214
|
+
updated_at?: string | null;
|
|
512
215
|
}
|
|
513
216
|
|
|
514
217
|
/**
|
|
515
218
|
* Standard API response envelope for all v3 endpoints
|
|
516
219
|
*/
|
|
517
|
-
export interface
|
|
220
|
+
export interface UserListResponse {
|
|
518
221
|
/**
|
|
519
|
-
*
|
|
222
|
+
* List of users response
|
|
520
223
|
*/
|
|
521
|
-
data?:
|
|
224
|
+
data?: UserListResponse.Data | null;
|
|
522
225
|
|
|
523
226
|
/**
|
|
524
227
|
* Error information
|
|
525
228
|
*/
|
|
526
|
-
error?:
|
|
229
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
527
230
|
|
|
528
231
|
/**
|
|
529
232
|
* Request and response metadata
|
|
530
233
|
*/
|
|
531
|
-
meta?:
|
|
234
|
+
meta?: WebhooksAPI.APIMeta;
|
|
532
235
|
|
|
533
236
|
/**
|
|
534
237
|
* Indicates whether the request was successful
|
|
@@ -536,100 +239,15 @@ export interface UserUpdateRoleResponse {
|
|
|
536
239
|
success?: boolean;
|
|
537
240
|
}
|
|
538
241
|
|
|
539
|
-
export namespace
|
|
242
|
+
export namespace UserListResponse {
|
|
540
243
|
/**
|
|
541
|
-
*
|
|
244
|
+
* List of users response
|
|
542
245
|
*/
|
|
543
246
|
export interface Data {
|
|
544
247
|
/**
|
|
545
|
-
*
|
|
546
|
-
*/
|
|
547
|
-
id?: string;
|
|
548
|
-
|
|
549
|
-
/**
|
|
550
|
-
* When the user was added to the organization
|
|
551
|
-
*/
|
|
552
|
-
created_at?: string;
|
|
553
|
-
|
|
554
|
-
/**
|
|
555
|
-
* User email address
|
|
556
|
-
*/
|
|
557
|
-
email?: string;
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* When the user was invited
|
|
561
|
-
*/
|
|
562
|
-
invited_at?: string | null;
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
* When the user last logged in
|
|
566
|
-
*/
|
|
567
|
-
last_login_at?: string | null;
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
* User full name
|
|
571
|
-
*/
|
|
572
|
-
name?: string;
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* User role in the organization: admin, billing, developer
|
|
576
|
-
*/
|
|
577
|
-
role?: string;
|
|
578
|
-
|
|
579
|
-
/**
|
|
580
|
-
* User status: active, invited, suspended, rejected
|
|
581
|
-
*/
|
|
582
|
-
status?: string;
|
|
583
|
-
|
|
584
|
-
/**
|
|
585
|
-
* When the user record was last updated
|
|
586
|
-
*/
|
|
587
|
-
updated_at?: string | null;
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
/**
|
|
591
|
-
* Error information
|
|
592
|
-
*/
|
|
593
|
-
export interface Error {
|
|
594
|
-
/**
|
|
595
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
596
|
-
*/
|
|
597
|
-
code?: string;
|
|
598
|
-
|
|
599
|
-
/**
|
|
600
|
-
* Additional validation error details (field-level errors)
|
|
601
|
-
*/
|
|
602
|
-
details?: { [key: string]: Array<string> } | null;
|
|
603
|
-
|
|
604
|
-
/**
|
|
605
|
-
* URL to documentation about this error
|
|
606
|
-
*/
|
|
607
|
-
doc_url?: string | null;
|
|
608
|
-
|
|
609
|
-
/**
|
|
610
|
-
* Human-readable error message
|
|
611
|
-
*/
|
|
612
|
-
message?: string;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
/**
|
|
616
|
-
* Request and response metadata
|
|
617
|
-
*/
|
|
618
|
-
export interface Meta {
|
|
619
|
-
/**
|
|
620
|
-
* Unique identifier for this request (for tracing and support)
|
|
621
|
-
*/
|
|
622
|
-
request_id?: string;
|
|
623
|
-
|
|
624
|
-
/**
|
|
625
|
-
* Server timestamp when the response was generated
|
|
626
|
-
*/
|
|
627
|
-
timestamp?: string;
|
|
628
|
-
|
|
629
|
-
/**
|
|
630
|
-
* API version used for this request
|
|
248
|
+
* List of users in the organization
|
|
631
249
|
*/
|
|
632
|
-
|
|
250
|
+
users?: Array<UsersAPI.UserResponse>;
|
|
633
251
|
}
|
|
634
252
|
}
|
|
635
253
|
|
|
@@ -730,10 +348,9 @@ export interface UserUpdateRoleParams {
|
|
|
730
348
|
|
|
731
349
|
export declare namespace Users {
|
|
732
350
|
export {
|
|
733
|
-
type
|
|
351
|
+
type APIResponseOfUser as APIResponseOfUser,
|
|
352
|
+
type UserResponse as UserResponse,
|
|
734
353
|
type UserListResponse as UserListResponse,
|
|
735
|
-
type UserInviteResponse as UserInviteResponse,
|
|
736
|
-
type UserUpdateRoleResponse as UserUpdateRoleResponse,
|
|
737
354
|
type UserRetrieveParams as UserRetrieveParams,
|
|
738
355
|
type UserListParams as UserListParams,
|
|
739
356
|
type UserInviteParams as UserInviteParams,
|