@sentdm/sentdm 0.25.4 → 0.26.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 +8 -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 +488 -68
- package/resources/contacts.d.mts.map +1 -1
- package/resources/contacts.d.ts +488 -68
- 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 +113 -40
- package/resources/me.d.mts.map +1 -1
- package/resources/me.d.ts +113 -40
- 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 +130 -9
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +130 -9
- 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 +42 -3
- package/resources/numbers.d.mts.map +1 -1
- package/resources/numbers.d.ts +42 -3
- 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 +480 -147
- package/resources/profiles/campaigns.d.mts.map +1 -1
- package/resources/profiles/campaigns.d.ts +480 -147
- package/resources/profiles/campaigns.d.ts.map +1 -1
- package/resources/profiles/campaigns.js +39 -41
- package/resources/profiles/campaigns.js.map +1 -1
- package/resources/profiles/campaigns.mjs +39 -41
- 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 +1699 -391
- package/resources/profiles/profiles.d.mts.map +1 -1
- package/resources/profiles/profiles.d.ts +1699 -391
- package/resources/profiles/profiles.d.ts.map +1 -1
- package/resources/profiles/profiles.js +3 -6
- package/resources/profiles/profiles.js.map +1 -1
- package/resources/profiles/profiles.mjs +3 -6
- package/resources/profiles/profiles.mjs.map +1 -1
- package/resources/templates.d.mts +993 -172
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +993 -172
- 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 +373 -46
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +373 -46
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +3 -7
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +3 -7
- package/resources/users.mjs.map +1 -1
- package/resources/webhooks.d.mts +624 -110
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +624 -110
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +6 -7
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +6 -7
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +33 -68
- package/src/resources/contacts.ts +567 -66
- package/src/resources/index.ts +17 -34
- package/src/resources/me.ts +132 -51
- package/src/resources/messages.ts +147 -9
- package/src/resources/numbers.ts +47 -3
- package/src/resources/profiles/campaigns.ts +668 -169
- package/src/resources/profiles/index.ts +5 -17
- package/src/resources/profiles/profiles.ts +2278 -545
- package/src/resources/templates.ts +1261 -206
- package/src/resources/users.ts +430 -47
- package/src/resources/webhooks.ts +742 -120
- 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,8 +1,6 @@
|
|
|
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';
|
|
6
4
|
import { APIPromise } from '../core/api-promise';
|
|
7
5
|
import { buildHeaders } from '../internal/headers';
|
|
8
6
|
import { RequestOptions } from '../internal/request-options';
|
|
@@ -18,16 +16,14 @@ export class Users extends APIResource {
|
|
|
18
16
|
*
|
|
19
17
|
* @example
|
|
20
18
|
* ```ts
|
|
21
|
-
* const
|
|
22
|
-
* 'userId',
|
|
23
|
-
* );
|
|
19
|
+
* const user = await client.users.retrieve('userId');
|
|
24
20
|
* ```
|
|
25
21
|
*/
|
|
26
22
|
retrieve(
|
|
27
23
|
userID: string,
|
|
28
24
|
params: UserRetrieveParams | null | undefined = {},
|
|
29
25
|
options?: RequestOptions,
|
|
30
|
-
): APIPromise<
|
|
26
|
+
): APIPromise<UserRetrieveResponse> {
|
|
31
27
|
const { 'x-profile-id': xProfileID } = params ?? {};
|
|
32
28
|
return this._client.get(path`/v3/users/${userID}`, {
|
|
33
29
|
...options,
|
|
@@ -69,10 +65,10 @@ export class Users extends APIResource {
|
|
|
69
65
|
*
|
|
70
66
|
* @example
|
|
71
67
|
* ```ts
|
|
72
|
-
* const
|
|
68
|
+
* const response = await client.users.invite();
|
|
73
69
|
* ```
|
|
74
70
|
*/
|
|
75
|
-
invite(params: UserInviteParams, options?: RequestOptions): APIPromise<
|
|
71
|
+
invite(params: UserInviteParams, options?: RequestOptions): APIPromise<UserInviteResponse> {
|
|
76
72
|
const { 'Idempotency-Key': idempotencyKey, 'x-profile-id': xProfileID, ...body } = params;
|
|
77
73
|
return this._client.post('/v3/users', {
|
|
78
74
|
body,
|
|
@@ -114,16 +110,14 @@ export class Users extends APIResource {
|
|
|
114
110
|
*
|
|
115
111
|
* @example
|
|
116
112
|
* ```ts
|
|
117
|
-
* const
|
|
118
|
-
* 'userId',
|
|
119
|
-
* );
|
|
113
|
+
* const response = await client.users.updateRole('userId');
|
|
120
114
|
* ```
|
|
121
115
|
*/
|
|
122
116
|
updateRole(
|
|
123
117
|
userID: string,
|
|
124
118
|
params: UserUpdateRoleParams,
|
|
125
119
|
options?: RequestOptions,
|
|
126
|
-
): APIPromise<
|
|
120
|
+
): APIPromise<UserUpdateRoleResponse> {
|
|
127
121
|
const { 'Idempotency-Key': idempotencyKey, 'x-profile-id': xProfileID, ...body } = params;
|
|
128
122
|
return this._client.patch(path`/v3/users/${userID}`, {
|
|
129
123
|
body,
|
|
@@ -142,21 +136,21 @@ export class Users extends APIResource {
|
|
|
142
136
|
/**
|
|
143
137
|
* Standard API response envelope for all v3 endpoints
|
|
144
138
|
*/
|
|
145
|
-
export interface
|
|
139
|
+
export interface UserRetrieveResponse {
|
|
146
140
|
/**
|
|
147
141
|
* User response for v3 API
|
|
148
142
|
*/
|
|
149
|
-
data?:
|
|
143
|
+
data?: UserRetrieveResponse.Data | null;
|
|
150
144
|
|
|
151
145
|
/**
|
|
152
146
|
* Error information
|
|
153
147
|
*/
|
|
154
|
-
error?:
|
|
148
|
+
error?: UserRetrieveResponse.Error | null;
|
|
155
149
|
|
|
156
150
|
/**
|
|
157
151
|
* Request and response metadata
|
|
158
152
|
*/
|
|
159
|
-
meta?:
|
|
153
|
+
meta?: UserRetrieveResponse.Meta;
|
|
160
154
|
|
|
161
155
|
/**
|
|
162
156
|
* Indicates whether the request was successful
|
|
@@ -164,74 +158,377 @@ export interface APIResponseOfUser {
|
|
|
164
158
|
success?: boolean;
|
|
165
159
|
}
|
|
166
160
|
|
|
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
|
+
|
|
167
258
|
/**
|
|
168
|
-
*
|
|
259
|
+
* Standard API response envelope for all v3 endpoints
|
|
169
260
|
*/
|
|
170
|
-
export interface
|
|
261
|
+
export interface UserListResponse {
|
|
171
262
|
/**
|
|
172
|
-
*
|
|
263
|
+
* List of users response
|
|
173
264
|
*/
|
|
174
|
-
|
|
265
|
+
data?: UserListResponse.Data | null;
|
|
175
266
|
|
|
176
267
|
/**
|
|
177
|
-
*
|
|
268
|
+
* Error information
|
|
178
269
|
*/
|
|
179
|
-
|
|
270
|
+
error?: UserListResponse.Error | null;
|
|
180
271
|
|
|
181
272
|
/**
|
|
182
|
-
*
|
|
273
|
+
* Request and response metadata
|
|
183
274
|
*/
|
|
184
|
-
|
|
275
|
+
meta?: UserListResponse.Meta;
|
|
185
276
|
|
|
186
277
|
/**
|
|
187
|
-
*
|
|
278
|
+
* Indicates whether the request was successful
|
|
188
279
|
*/
|
|
189
|
-
|
|
280
|
+
success?: boolean;
|
|
281
|
+
}
|
|
190
282
|
|
|
283
|
+
export namespace UserListResponse {
|
|
191
284
|
/**
|
|
192
|
-
*
|
|
285
|
+
* List of users response
|
|
193
286
|
*/
|
|
194
|
-
|
|
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
|
+
}
|
|
195
345
|
|
|
196
346
|
/**
|
|
197
|
-
*
|
|
347
|
+
* Error information
|
|
198
348
|
*/
|
|
199
|
-
|
|
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
|
+
}
|
|
200
370
|
|
|
201
371
|
/**
|
|
202
|
-
*
|
|
372
|
+
* Request and response metadata
|
|
203
373
|
*/
|
|
204
|
-
|
|
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
|
+
/**
|
|
397
|
+
* User response for v3 API
|
|
398
|
+
*/
|
|
399
|
+
data?: UserInviteResponse.Data | null;
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* Error information
|
|
403
|
+
*/
|
|
404
|
+
error?: UserInviteResponse.Error | null;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Request and response metadata
|
|
408
|
+
*/
|
|
409
|
+
meta?: UserInviteResponse.Meta;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Indicates whether the request was successful
|
|
413
|
+
*/
|
|
414
|
+
success?: boolean;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export namespace UserInviteResponse {
|
|
418
|
+
/**
|
|
419
|
+
* User response for v3 API
|
|
420
|
+
*/
|
|
421
|
+
export interface Data {
|
|
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
|
+
}
|
|
205
467
|
|
|
206
468
|
/**
|
|
207
|
-
*
|
|
469
|
+
* Error information
|
|
208
470
|
*/
|
|
209
|
-
|
|
471
|
+
export interface Error {
|
|
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
|
+
}
|
|
210
492
|
|
|
211
493
|
/**
|
|
212
|
-
*
|
|
494
|
+
* Request and response metadata
|
|
213
495
|
*/
|
|
214
|
-
|
|
496
|
+
export interface Meta {
|
|
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
|
+
}
|
|
215
512
|
}
|
|
216
513
|
|
|
217
514
|
/**
|
|
218
515
|
* Standard API response envelope for all v3 endpoints
|
|
219
516
|
*/
|
|
220
|
-
export interface
|
|
517
|
+
export interface UserUpdateRoleResponse {
|
|
221
518
|
/**
|
|
222
|
-
*
|
|
519
|
+
* User response for v3 API
|
|
223
520
|
*/
|
|
224
|
-
data?:
|
|
521
|
+
data?: UserUpdateRoleResponse.Data | null;
|
|
225
522
|
|
|
226
523
|
/**
|
|
227
524
|
* Error information
|
|
228
525
|
*/
|
|
229
|
-
error?:
|
|
526
|
+
error?: UserUpdateRoleResponse.Error | null;
|
|
230
527
|
|
|
231
528
|
/**
|
|
232
529
|
* Request and response metadata
|
|
233
530
|
*/
|
|
234
|
-
meta?:
|
|
531
|
+
meta?: UserUpdateRoleResponse.Meta;
|
|
235
532
|
|
|
236
533
|
/**
|
|
237
534
|
* Indicates whether the request was successful
|
|
@@ -239,15 +536,100 @@ export interface UserListResponse {
|
|
|
239
536
|
success?: boolean;
|
|
240
537
|
}
|
|
241
538
|
|
|
242
|
-
export namespace
|
|
539
|
+
export namespace UserUpdateRoleResponse {
|
|
243
540
|
/**
|
|
244
|
-
*
|
|
541
|
+
* User response for v3 API
|
|
245
542
|
*/
|
|
246
543
|
export interface Data {
|
|
247
544
|
/**
|
|
248
|
-
*
|
|
545
|
+
* User unique identifier
|
|
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
|
|
249
631
|
*/
|
|
250
|
-
|
|
632
|
+
version?: string;
|
|
251
633
|
}
|
|
252
634
|
}
|
|
253
635
|
|
|
@@ -348,9 +730,10 @@ export interface UserUpdateRoleParams {
|
|
|
348
730
|
|
|
349
731
|
export declare namespace Users {
|
|
350
732
|
export {
|
|
351
|
-
type
|
|
352
|
-
type UserResponse as UserResponse,
|
|
733
|
+
type UserRetrieveResponse as UserRetrieveResponse,
|
|
353
734
|
type UserListResponse as UserListResponse,
|
|
735
|
+
type UserInviteResponse as UserInviteResponse,
|
|
736
|
+
type UserUpdateRoleResponse as UserUpdateRoleResponse,
|
|
354
737
|
type UserRetrieveParams as UserRetrieveParams,
|
|
355
738
|
type UserListParams as UserListParams,
|
|
356
739
|
type UserInviteParams as UserInviteParams,
|