@sentdm/sentdm 0.36.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 +11 -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 +48 -129
- package/resources/me.d.mts.map +1 -1
- package/resources/me.d.ts +48 -129
- 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 +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 +166 -745
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +166 -745
- 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 +59 -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 +282 -981
- 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/me.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 MeAPI from './me';
|
|
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';
|
|
@@ -54,6 +56,54 @@ export class Me extends APIResource {
|
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
|
|
59
|
+
/**
|
|
60
|
+
* Profile configuration settings
|
|
61
|
+
*/
|
|
62
|
+
export interface ProfileSettings {
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated Always false. A profile no longer shares contacts with sibling
|
|
65
|
+
* profiles — it sees only what it owns. Retained so existing v3 clients reading
|
|
66
|
+
* allow_contact_sharing keep deserializing; it carries no information.
|
|
67
|
+
*/
|
|
68
|
+
allow_contact_sharing?: boolean | null;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated Always false. A profile no longer shares templates with sibling
|
|
72
|
+
* profiles. Retained so existing v3 clients reading allow_template_sharing keep
|
|
73
|
+
* deserializing; it carries no information.
|
|
74
|
+
*/
|
|
75
|
+
allow_template_sharing?: boolean | null;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Billing model: profile, organization, or profile_and_organization
|
|
79
|
+
*/
|
|
80
|
+
billing_model?: string | null;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated Always false. A profile no longer inherits its organization's
|
|
84
|
+
* contacts. Retained so existing v3 clients reading inherit_contacts keep
|
|
85
|
+
* deserializing; it carries no information.
|
|
86
|
+
*/
|
|
87
|
+
inherit_contacts?: boolean | null;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Whether this profile inherits TCR brand from the organization
|
|
91
|
+
*/
|
|
92
|
+
inherit_tcr_brand?: boolean | null;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Whether this profile inherits TCR campaign from the organization
|
|
96
|
+
*/
|
|
97
|
+
inherit_tcr_campaign?: boolean | null;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @deprecated Always false. A profile no longer inherits its organization's
|
|
101
|
+
* templates. Retained so existing v3 clients reading inherit_templates keep
|
|
102
|
+
* deserializing; it carries no information.
|
|
103
|
+
*/
|
|
104
|
+
inherit_templates?: boolean | null;
|
|
105
|
+
}
|
|
106
|
+
|
|
57
107
|
/**
|
|
58
108
|
* Standard API response envelope for all v3 endpoints
|
|
59
109
|
*/
|
|
@@ -68,12 +118,12 @@ export interface MeRetrieveResponse {
|
|
|
68
118
|
/**
|
|
69
119
|
* Error information
|
|
70
120
|
*/
|
|
71
|
-
error?:
|
|
121
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
72
122
|
|
|
73
123
|
/**
|
|
74
124
|
* Request and response metadata
|
|
75
125
|
*/
|
|
76
|
-
meta?:
|
|
126
|
+
meta?: WebhooksAPI.APIMeta;
|
|
77
127
|
|
|
78
128
|
/**
|
|
79
129
|
* Indicates whether the request was successful
|
|
@@ -162,7 +212,7 @@ export namespace MeRetrieveResponse {
|
|
|
162
212
|
/**
|
|
163
213
|
* Profile configuration settings
|
|
164
214
|
*/
|
|
165
|
-
settings?:
|
|
215
|
+
settings?: MeAPI.ProfileSettings | null;
|
|
166
216
|
|
|
167
217
|
/**
|
|
168
218
|
* Short name / abbreviation (only for profile type)
|
|
@@ -296,7 +346,7 @@ export namespace MeRetrieveResponse {
|
|
|
296
346
|
/**
|
|
297
347
|
* Profile configuration settings
|
|
298
348
|
*/
|
|
299
|
-
settings?:
|
|
349
|
+
settings?: MeAPI.ProfileSettings;
|
|
300
350
|
|
|
301
351
|
/**
|
|
302
352
|
* Profile short name (abbreviation)
|
|
@@ -308,149 +358,6 @@ export namespace MeRetrieveResponse {
|
|
|
308
358
|
*/
|
|
309
359
|
status?: string | null;
|
|
310
360
|
}
|
|
311
|
-
|
|
312
|
-
export namespace Profile {
|
|
313
|
-
/**
|
|
314
|
-
* Profile configuration settings
|
|
315
|
-
*/
|
|
316
|
-
export interface Settings {
|
|
317
|
-
/**
|
|
318
|
-
* @deprecated Always false. A profile no longer shares contacts with sibling
|
|
319
|
-
* profiles — it sees only what it owns. Retained so existing v3 clients reading
|
|
320
|
-
* allow_contact_sharing keep deserializing; it carries no information.
|
|
321
|
-
*/
|
|
322
|
-
allow_contact_sharing?: boolean | null;
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* @deprecated Always false. A profile no longer shares templates with sibling
|
|
326
|
-
* profiles. Retained so existing v3 clients reading allow_template_sharing keep
|
|
327
|
-
* deserializing; it carries no information.
|
|
328
|
-
*/
|
|
329
|
-
allow_template_sharing?: boolean | null;
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* Billing model: profile, organization, or profile_and_organization
|
|
333
|
-
*/
|
|
334
|
-
billing_model?: string | null;
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* @deprecated Always false. A profile no longer inherits its organization's
|
|
338
|
-
* contacts. Retained so existing v3 clients reading inherit_contacts keep
|
|
339
|
-
* deserializing; it carries no information.
|
|
340
|
-
*/
|
|
341
|
-
inherit_contacts?: boolean | null;
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Whether this profile inherits TCR brand from the organization
|
|
345
|
-
*/
|
|
346
|
-
inherit_tcr_brand?: boolean | null;
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* Whether this profile inherits TCR campaign from the organization
|
|
350
|
-
*/
|
|
351
|
-
inherit_tcr_campaign?: boolean | null;
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* @deprecated Always false. A profile no longer inherits its organization's
|
|
355
|
-
* templates. Retained so existing v3 clients reading inherit_templates keep
|
|
356
|
-
* deserializing; it carries no information.
|
|
357
|
-
*/
|
|
358
|
-
inherit_templates?: boolean | null;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* Profile configuration settings
|
|
364
|
-
*/
|
|
365
|
-
export interface Settings {
|
|
366
|
-
/**
|
|
367
|
-
* @deprecated Always false. A profile no longer shares contacts with sibling
|
|
368
|
-
* profiles — it sees only what it owns. Retained so existing v3 clients reading
|
|
369
|
-
* allow_contact_sharing keep deserializing; it carries no information.
|
|
370
|
-
*/
|
|
371
|
-
allow_contact_sharing?: boolean | null;
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* @deprecated Always false. A profile no longer shares templates with sibling
|
|
375
|
-
* profiles. Retained so existing v3 clients reading allow_template_sharing keep
|
|
376
|
-
* deserializing; it carries no information.
|
|
377
|
-
*/
|
|
378
|
-
allow_template_sharing?: boolean | null;
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* Billing model: profile, organization, or profile_and_organization
|
|
382
|
-
*/
|
|
383
|
-
billing_model?: string | null;
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* @deprecated Always false. A profile no longer inherits its organization's
|
|
387
|
-
* contacts. Retained so existing v3 clients reading inherit_contacts keep
|
|
388
|
-
* deserializing; it carries no information.
|
|
389
|
-
*/
|
|
390
|
-
inherit_contacts?: boolean | null;
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* Whether this profile inherits TCR brand from the organization
|
|
394
|
-
*/
|
|
395
|
-
inherit_tcr_brand?: boolean | null;
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* Whether this profile inherits TCR campaign from the organization
|
|
399
|
-
*/
|
|
400
|
-
inherit_tcr_campaign?: boolean | null;
|
|
401
|
-
|
|
402
|
-
/**
|
|
403
|
-
* @deprecated Always false. A profile no longer inherits its organization's
|
|
404
|
-
* templates. Retained so existing v3 clients reading inherit_templates keep
|
|
405
|
-
* deserializing; it carries no information.
|
|
406
|
-
*/
|
|
407
|
-
inherit_templates?: boolean | null;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
/**
|
|
412
|
-
* Error information
|
|
413
|
-
*/
|
|
414
|
-
export interface Error {
|
|
415
|
-
/**
|
|
416
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
417
|
-
*/
|
|
418
|
-
code?: string;
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
* Additional validation error details (field-level errors)
|
|
422
|
-
*/
|
|
423
|
-
details?: { [key: string]: Array<string> } | null;
|
|
424
|
-
|
|
425
|
-
/**
|
|
426
|
-
* URL to documentation about this error
|
|
427
|
-
*/
|
|
428
|
-
doc_url?: string | null;
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* Human-readable error message
|
|
432
|
-
*/
|
|
433
|
-
message?: string;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* Request and response metadata
|
|
438
|
-
*/
|
|
439
|
-
export interface Meta {
|
|
440
|
-
/**
|
|
441
|
-
* Unique identifier for this request (for tracing and support)
|
|
442
|
-
*/
|
|
443
|
-
request_id?: string;
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Server timestamp when the response was generated
|
|
447
|
-
*/
|
|
448
|
-
timestamp?: string;
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* API version used for this request
|
|
452
|
-
*/
|
|
453
|
-
version?: string;
|
|
454
361
|
}
|
|
455
362
|
}
|
|
456
363
|
|
|
@@ -463,5 +370,9 @@ export interface MeRetrieveParams {
|
|
|
463
370
|
}
|
|
464
371
|
|
|
465
372
|
export declare namespace Me {
|
|
466
|
-
export {
|
|
373
|
+
export {
|
|
374
|
+
type ProfileSettings as ProfileSettings,
|
|
375
|
+
type MeRetrieveResponse as MeRetrieveResponse,
|
|
376
|
+
type MeRetrieveParams as MeRetrieveParams,
|
|
377
|
+
};
|
|
467
378
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
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 WebhooksAPI from './webhooks';
|
|
4
5
|
import { APIPromise } from '../core/api-promise';
|
|
5
6
|
import { buildHeaders } from '../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../internal/request-options';
|
|
@@ -111,12 +112,12 @@ export interface MessageRetrieveActivitiesResponse {
|
|
|
111
112
|
/**
|
|
112
113
|
* Error information
|
|
113
114
|
*/
|
|
114
|
-
error?:
|
|
115
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
115
116
|
|
|
116
117
|
/**
|
|
117
118
|
* Request and response metadata
|
|
118
119
|
*/
|
|
119
|
-
meta?:
|
|
120
|
+
meta?: WebhooksAPI.APIMeta;
|
|
120
121
|
|
|
121
122
|
/**
|
|
122
123
|
* Indicates whether the request was successful
|
|
@@ -142,7 +143,7 @@ export namespace MessageRetrieveActivitiesResponse {
|
|
|
142
143
|
/**
|
|
143
144
|
* Pagination metadata for list responses
|
|
144
145
|
*/
|
|
145
|
-
pagination?:
|
|
146
|
+
pagination?: WebhooksAPI.PaginationMeta;
|
|
146
147
|
}
|
|
147
148
|
|
|
148
149
|
export namespace Data {
|
|
@@ -185,103 +186,6 @@ export namespace MessageRetrieveActivitiesResponse {
|
|
|
185
186
|
*/
|
|
186
187
|
timestamp?: string;
|
|
187
188
|
}
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Pagination metadata for list responses
|
|
191
|
-
*/
|
|
192
|
-
export interface Pagination {
|
|
193
|
-
/**
|
|
194
|
-
* @deprecated Cursor-based pagination. Never populated — see Cursors.
|
|
195
|
-
*/
|
|
196
|
-
cursors?: Pagination.Cursors | null;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Whether there are more pages after this one
|
|
200
|
-
*/
|
|
201
|
-
has_more?: boolean;
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Current page number (1-indexed)
|
|
205
|
-
*/
|
|
206
|
-
page?: number;
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Number of items per page
|
|
210
|
-
*/
|
|
211
|
-
page_size?: number;
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Total number of items across all pages
|
|
215
|
-
*/
|
|
216
|
-
total_count?: number;
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Total number of pages
|
|
220
|
-
*/
|
|
221
|
-
total_pages?: number;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export namespace Pagination {
|
|
225
|
-
/**
|
|
226
|
-
* @deprecated Cursor-based pagination. Never populated — see Cursors.
|
|
227
|
-
*/
|
|
228
|
-
export interface Cursors {
|
|
229
|
-
/**
|
|
230
|
-
* Cursor to fetch the next page.
|
|
231
|
-
*/
|
|
232
|
-
after?: string | null;
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Cursor to fetch the previous page.
|
|
236
|
-
*/
|
|
237
|
-
before?: string | null;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Error information
|
|
244
|
-
*/
|
|
245
|
-
export interface Error {
|
|
246
|
-
/**
|
|
247
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
248
|
-
*/
|
|
249
|
-
code?: string;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* Additional validation error details (field-level errors)
|
|
253
|
-
*/
|
|
254
|
-
details?: { [key: string]: Array<string> } | null;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* URL to documentation about this error
|
|
258
|
-
*/
|
|
259
|
-
doc_url?: string | null;
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Human-readable error message
|
|
263
|
-
*/
|
|
264
|
-
message?: string;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Request and response metadata
|
|
269
|
-
*/
|
|
270
|
-
export interface Meta {
|
|
271
|
-
/**
|
|
272
|
-
* Unique identifier for this request (for tracing and support)
|
|
273
|
-
*/
|
|
274
|
-
request_id?: string;
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Server timestamp when the response was generated
|
|
278
|
-
*/
|
|
279
|
-
timestamp?: string;
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* API version used for this request
|
|
283
|
-
*/
|
|
284
|
-
version?: string;
|
|
285
189
|
}
|
|
286
190
|
}
|
|
287
191
|
|
|
@@ -297,12 +201,12 @@ export interface MessageRetrieveStatusResponse {
|
|
|
297
201
|
/**
|
|
298
202
|
* Error information
|
|
299
203
|
*/
|
|
300
|
-
error?:
|
|
204
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
301
205
|
|
|
302
206
|
/**
|
|
303
207
|
* Request and response metadata
|
|
304
208
|
*/
|
|
305
|
-
meta?:
|
|
209
|
+
meta?: WebhooksAPI.APIMeta;
|
|
306
210
|
|
|
307
211
|
/**
|
|
308
212
|
* Indicates whether the request was successful
|
|
@@ -392,51 +296,6 @@ export namespace MessageRetrieveStatusResponse {
|
|
|
392
296
|
}
|
|
393
297
|
}
|
|
394
298
|
}
|
|
395
|
-
|
|
396
|
-
/**
|
|
397
|
-
* Error information
|
|
398
|
-
*/
|
|
399
|
-
export interface Error {
|
|
400
|
-
/**
|
|
401
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
402
|
-
*/
|
|
403
|
-
code?: string;
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
* Additional validation error details (field-level errors)
|
|
407
|
-
*/
|
|
408
|
-
details?: { [key: string]: Array<string> } | null;
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* URL to documentation about this error
|
|
412
|
-
*/
|
|
413
|
-
doc_url?: string | null;
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* Human-readable error message
|
|
417
|
-
*/
|
|
418
|
-
message?: string;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* Request and response metadata
|
|
423
|
-
*/
|
|
424
|
-
export interface Meta {
|
|
425
|
-
/**
|
|
426
|
-
* Unique identifier for this request (for tracing and support)
|
|
427
|
-
*/
|
|
428
|
-
request_id?: string;
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* Server timestamp when the response was generated
|
|
432
|
-
*/
|
|
433
|
-
timestamp?: string;
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* API version used for this request
|
|
437
|
-
*/
|
|
438
|
-
version?: string;
|
|
439
|
-
}
|
|
440
299
|
}
|
|
441
300
|
|
|
442
301
|
/**
|
|
@@ -460,12 +319,12 @@ export interface MessageSendResponse {
|
|
|
460
319
|
/**
|
|
461
320
|
* Error information
|
|
462
321
|
*/
|
|
463
|
-
error?:
|
|
322
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
464
323
|
|
|
465
324
|
/**
|
|
466
325
|
* Request and response metadata
|
|
467
326
|
*/
|
|
468
|
-
meta?:
|
|
327
|
+
meta?: WebhooksAPI.APIMeta;
|
|
469
328
|
|
|
470
329
|
/**
|
|
471
330
|
* Indicates whether the request was successful
|
|
@@ -526,51 +385,6 @@ export namespace MessageSendResponse {
|
|
|
526
385
|
to?: string;
|
|
527
386
|
}
|
|
528
387
|
}
|
|
529
|
-
|
|
530
|
-
/**
|
|
531
|
-
* Error information
|
|
532
|
-
*/
|
|
533
|
-
export interface Error {
|
|
534
|
-
/**
|
|
535
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
536
|
-
*/
|
|
537
|
-
code?: string;
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* Additional validation error details (field-level errors)
|
|
541
|
-
*/
|
|
542
|
-
details?: { [key: string]: Array<string> } | null;
|
|
543
|
-
|
|
544
|
-
/**
|
|
545
|
-
* URL to documentation about this error
|
|
546
|
-
*/
|
|
547
|
-
doc_url?: string | null;
|
|
548
|
-
|
|
549
|
-
/**
|
|
550
|
-
* Human-readable error message
|
|
551
|
-
*/
|
|
552
|
-
message?: string;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
/**
|
|
556
|
-
* Request and response metadata
|
|
557
|
-
*/
|
|
558
|
-
export interface Meta {
|
|
559
|
-
/**
|
|
560
|
-
* Unique identifier for this request (for tracing and support)
|
|
561
|
-
*/
|
|
562
|
-
request_id?: string;
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
* Server timestamp when the response was generated
|
|
566
|
-
*/
|
|
567
|
-
timestamp?: string;
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
* API version used for this request
|
|
571
|
-
*/
|
|
572
|
-
version?: string;
|
|
573
|
-
}
|
|
574
388
|
}
|
|
575
389
|
|
|
576
390
|
export interface MessageRetrieveActivitiesParams {
|
package/src/resources/numbers.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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 WebhooksAPI from './webhooks';
|
|
4
5
|
import { APIPromise } from '../core/api-promise';
|
|
5
6
|
import { buildHeaders } from '../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../internal/request-options';
|
|
@@ -52,12 +53,12 @@ export interface NumberLookupResponse {
|
|
|
52
53
|
/**
|
|
53
54
|
* Error information
|
|
54
55
|
*/
|
|
55
|
-
error?:
|
|
56
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
56
57
|
|
|
57
58
|
/**
|
|
58
59
|
* Request and response metadata
|
|
59
60
|
*/
|
|
60
|
-
meta?:
|
|
61
|
+
meta?: WebhooksAPI.APIMeta;
|
|
61
62
|
|
|
62
63
|
/**
|
|
63
64
|
* Indicates whether the request was successful
|
|
@@ -88,51 +89,6 @@ export namespace NumberLookupResponse {
|
|
|
88
89
|
|
|
89
90
|
phone_number?: string;
|
|
90
91
|
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Error information
|
|
94
|
-
*/
|
|
95
|
-
export interface Error {
|
|
96
|
-
/**
|
|
97
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
98
|
-
*/
|
|
99
|
-
code?: string;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Additional validation error details (field-level errors)
|
|
103
|
-
*/
|
|
104
|
-
details?: { [key: string]: Array<string> } | null;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* URL to documentation about this error
|
|
108
|
-
*/
|
|
109
|
-
doc_url?: string | null;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Human-readable error message
|
|
113
|
-
*/
|
|
114
|
-
message?: string;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Request and response metadata
|
|
119
|
-
*/
|
|
120
|
-
export interface Meta {
|
|
121
|
-
/**
|
|
122
|
-
* Unique identifier for this request (for tracing and support)
|
|
123
|
-
*/
|
|
124
|
-
request_id?: string;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Server timestamp when the response was generated
|
|
128
|
-
*/
|
|
129
|
-
timestamp?: string;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* API version used for this request
|
|
133
|
-
*/
|
|
134
|
-
version?: string;
|
|
135
|
-
}
|
|
136
92
|
}
|
|
137
93
|
|
|
138
94
|
export interface NumberLookupParams {
|