@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/index.ts
CHANGED
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
Contacts,
|
|
5
|
-
type
|
|
6
|
-
type
|
|
7
|
-
type ContactUpdateResponse,
|
|
5
|
+
type APIResponseOfContact,
|
|
6
|
+
type ContactResponse,
|
|
8
7
|
type ContactListResponse,
|
|
9
8
|
type ContactCreateParams,
|
|
10
9
|
type ContactRetrieveParams,
|
|
@@ -12,7 +11,7 @@ export {
|
|
|
12
11
|
type ContactListParams,
|
|
13
12
|
type ContactDeleteParams,
|
|
14
13
|
} from './contacts';
|
|
15
|
-
export { Me, type MeRetrieveResponse, type MeRetrieveParams } from './me';
|
|
14
|
+
export { Me, type ProfileSettings, type MeRetrieveResponse, type MeRetrieveParams } from './me';
|
|
16
15
|
export {
|
|
17
16
|
Messages,
|
|
18
17
|
type MessageRetrieveActivitiesResponse,
|
|
@@ -25,9 +24,17 @@ export {
|
|
|
25
24
|
export { Numbers, type NumberLookupResponse, type NumberLookupParams } from './numbers';
|
|
26
25
|
export {
|
|
27
26
|
Profiles,
|
|
28
|
-
type
|
|
29
|
-
type
|
|
30
|
-
type
|
|
27
|
+
type APIResponseOfProfileDetail,
|
|
28
|
+
type BillingContactInfo,
|
|
29
|
+
type BrandsBrandData,
|
|
30
|
+
type DestinationCountry,
|
|
31
|
+
type PaymentDetails,
|
|
32
|
+
type ProfileDetail,
|
|
33
|
+
type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo,
|
|
34
|
+
type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo,
|
|
35
|
+
type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
|
|
36
|
+
type TcrBrandRelationship,
|
|
37
|
+
type TcrVertical,
|
|
31
38
|
type ProfileListResponse,
|
|
32
39
|
type ProfileCompleteResponse,
|
|
33
40
|
type ProfileCreateParams,
|
|
@@ -39,9 +46,17 @@ export {
|
|
|
39
46
|
} from './profiles/profiles';
|
|
40
47
|
export {
|
|
41
48
|
Templates,
|
|
42
|
-
type
|
|
43
|
-
type
|
|
44
|
-
type
|
|
49
|
+
type APIResponseTemplate,
|
|
50
|
+
type SentDmServicesCommonContractsPocOsAuthenticationConfig,
|
|
51
|
+
type SentDmServicesCommonContractsPocOsTemplateBody,
|
|
52
|
+
type SentDmServicesCommonContractsPocOsTemplateButton,
|
|
53
|
+
type SentDmServicesCommonContractsPocOsTemplateButtonProps,
|
|
54
|
+
type SentDmServicesCommonContractsPocOsTemplateFooter,
|
|
55
|
+
type SentDmServicesCommonContractsPocOsTemplateHeader,
|
|
56
|
+
type Template,
|
|
57
|
+
type TemplateBodyContent,
|
|
58
|
+
type TemplateDefinition,
|
|
59
|
+
type TemplateVariable,
|
|
45
60
|
type TemplateListResponse,
|
|
46
61
|
type TemplateCreateParams,
|
|
47
62
|
type TemplateRetrieveParams,
|
|
@@ -51,10 +66,9 @@ export {
|
|
|
51
66
|
} from './templates';
|
|
52
67
|
export {
|
|
53
68
|
Users,
|
|
54
|
-
type
|
|
69
|
+
type APIResponseOfUser,
|
|
70
|
+
type UserResponse,
|
|
55
71
|
type UserListResponse,
|
|
56
|
-
type UserInviteResponse,
|
|
57
|
-
type UserUpdateRoleResponse,
|
|
58
72
|
type UserRetrieveParams,
|
|
59
73
|
type UserListParams,
|
|
60
74
|
type UserInviteParams,
|
|
@@ -63,15 +77,18 @@ export {
|
|
|
63
77
|
} from './users';
|
|
64
78
|
export {
|
|
65
79
|
Webhooks,
|
|
66
|
-
type
|
|
67
|
-
type
|
|
68
|
-
type
|
|
80
|
+
type APIMeta,
|
|
81
|
+
type APIResponseWebhook,
|
|
82
|
+
type ErrorDetail,
|
|
83
|
+
type MutationRequest,
|
|
84
|
+
type PaginationMeta,
|
|
85
|
+
type WebhookEventType,
|
|
86
|
+
type WebhookResponse,
|
|
69
87
|
type WebhookListResponse,
|
|
70
88
|
type WebhookListEventTypesResponse,
|
|
71
89
|
type WebhookListEventsResponse,
|
|
72
90
|
type WebhookRotateSecretResponse,
|
|
73
91
|
type WebhookTestResponse,
|
|
74
|
-
type WebhookToggleStatusResponse,
|
|
75
92
|
type WebhookCreateParams,
|
|
76
93
|
type WebhookRetrieveParams,
|
|
77
94
|
type WebhookUpdateParams,
|
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';
|
|
@@ -41,6 +43,46 @@ export class Me extends APIResource {
|
|
|
41
43
|
}
|
|
42
44
|
}
|
|
43
45
|
|
|
46
|
+
/**
|
|
47
|
+
* Profile configuration settings
|
|
48
|
+
*/
|
|
49
|
+
export interface ProfileSettings {
|
|
50
|
+
/**
|
|
51
|
+
* Whether contacts are shared across profiles in the organization
|
|
52
|
+
*/
|
|
53
|
+
allow_contact_sharing?: boolean | null;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Whether templates are shared across profiles in the organization
|
|
57
|
+
*/
|
|
58
|
+
allow_template_sharing?: boolean | null;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Billing model: profile, organization, or profile_and_organization
|
|
62
|
+
*/
|
|
63
|
+
billing_model?: string | null;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Whether this profile inherits contacts from the organization
|
|
67
|
+
*/
|
|
68
|
+
inherit_contacts?: boolean | null;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Whether this profile inherits TCR brand from the organization
|
|
72
|
+
*/
|
|
73
|
+
inherit_tcr_brand?: boolean | null;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Whether this profile inherits TCR campaign from the organization
|
|
77
|
+
*/
|
|
78
|
+
inherit_tcr_campaign?: boolean | null;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Whether this profile inherits templates from the organization
|
|
82
|
+
*/
|
|
83
|
+
inherit_templates?: boolean | null;
|
|
84
|
+
}
|
|
85
|
+
|
|
44
86
|
/**
|
|
45
87
|
* Standard API response envelope for all v3 endpoints
|
|
46
88
|
*/
|
|
@@ -55,12 +97,12 @@ export interface MeRetrieveResponse {
|
|
|
55
97
|
/**
|
|
56
98
|
* Error information
|
|
57
99
|
*/
|
|
58
|
-
error?:
|
|
100
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
59
101
|
|
|
60
102
|
/**
|
|
61
103
|
* Request and response metadata
|
|
62
104
|
*/
|
|
63
|
-
meta?:
|
|
105
|
+
meta?: WebhooksAPI.APIMeta;
|
|
64
106
|
|
|
65
107
|
/**
|
|
66
108
|
* Indicates whether the request was successful
|
|
@@ -125,7 +167,7 @@ export namespace MeRetrieveResponse {
|
|
|
125
167
|
/**
|
|
126
168
|
* Profile configuration settings
|
|
127
169
|
*/
|
|
128
|
-
settings?:
|
|
170
|
+
settings?: MeAPI.ProfileSettings | null;
|
|
129
171
|
|
|
130
172
|
/**
|
|
131
173
|
* Short name / abbreviation (only for profile type)
|
|
@@ -259,7 +301,7 @@ export namespace MeRetrieveResponse {
|
|
|
259
301
|
/**
|
|
260
302
|
* Profile configuration settings
|
|
261
303
|
*/
|
|
262
|
-
settings?:
|
|
304
|
+
settings?: MeAPI.ProfileSettings;
|
|
263
305
|
|
|
264
306
|
/**
|
|
265
307
|
* Profile short name (abbreviation)
|
|
@@ -271,133 +313,6 @@ export namespace MeRetrieveResponse {
|
|
|
271
313
|
*/
|
|
272
314
|
status?: string | null;
|
|
273
315
|
}
|
|
274
|
-
|
|
275
|
-
export namespace Profile {
|
|
276
|
-
/**
|
|
277
|
-
* Profile configuration settings
|
|
278
|
-
*/
|
|
279
|
-
export interface Settings {
|
|
280
|
-
/**
|
|
281
|
-
* Whether contacts are shared across profiles in the organization
|
|
282
|
-
*/
|
|
283
|
-
allow_contact_sharing?: boolean | null;
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Whether templates are shared across profiles in the organization
|
|
287
|
-
*/
|
|
288
|
-
allow_template_sharing?: boolean | null;
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* Billing model: profile, organization, or profile_and_organization
|
|
292
|
-
*/
|
|
293
|
-
billing_model?: string | null;
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* Whether this profile inherits contacts from the organization
|
|
297
|
-
*/
|
|
298
|
-
inherit_contacts?: boolean | null;
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* Whether this profile inherits TCR brand from the organization
|
|
302
|
-
*/
|
|
303
|
-
inherit_tcr_brand?: boolean | null;
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* Whether this profile inherits TCR campaign from the organization
|
|
307
|
-
*/
|
|
308
|
-
inherit_tcr_campaign?: boolean | null;
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* Whether this profile inherits templates from the organization
|
|
312
|
-
*/
|
|
313
|
-
inherit_templates?: boolean | null;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* Profile configuration settings
|
|
319
|
-
*/
|
|
320
|
-
export interface Settings {
|
|
321
|
-
/**
|
|
322
|
-
* Whether contacts are shared across profiles in the organization
|
|
323
|
-
*/
|
|
324
|
-
allow_contact_sharing?: boolean | null;
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* Whether templates are shared across profiles in the organization
|
|
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
|
-
* Whether this profile inherits contacts from the organization
|
|
338
|
-
*/
|
|
339
|
-
inherit_contacts?: boolean | null;
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* Whether this profile inherits TCR brand from the organization
|
|
343
|
-
*/
|
|
344
|
-
inherit_tcr_brand?: boolean | null;
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Whether this profile inherits TCR campaign from the organization
|
|
348
|
-
*/
|
|
349
|
-
inherit_tcr_campaign?: boolean | null;
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* Whether this profile inherits templates from the organization
|
|
353
|
-
*/
|
|
354
|
-
inherit_templates?: boolean | null;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* Error information
|
|
360
|
-
*/
|
|
361
|
-
export interface Error {
|
|
362
|
-
/**
|
|
363
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
364
|
-
*/
|
|
365
|
-
code?: string;
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* Additional validation error details (field-level errors)
|
|
369
|
-
*/
|
|
370
|
-
details?: { [key: string]: Array<string> } | null;
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* URL to documentation about this error
|
|
374
|
-
*/
|
|
375
|
-
doc_url?: string | null;
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* Human-readable error message
|
|
379
|
-
*/
|
|
380
|
-
message?: string;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
/**
|
|
384
|
-
* Request and response metadata
|
|
385
|
-
*/
|
|
386
|
-
export interface Meta {
|
|
387
|
-
/**
|
|
388
|
-
* Unique identifier for this request (for tracing and support)
|
|
389
|
-
*/
|
|
390
|
-
request_id?: string;
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* Server timestamp when the response was generated
|
|
394
|
-
*/
|
|
395
|
-
timestamp?: string;
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* API version used for this request
|
|
399
|
-
*/
|
|
400
|
-
version?: string;
|
|
401
316
|
}
|
|
402
317
|
}
|
|
403
318
|
|
|
@@ -410,5 +325,9 @@ export interface MeRetrieveParams {
|
|
|
410
325
|
}
|
|
411
326
|
|
|
412
327
|
export declare namespace Me {
|
|
413
|
-
export {
|
|
328
|
+
export {
|
|
329
|
+
type ProfileSettings as ProfileSettings,
|
|
330
|
+
type MeRetrieveResponse as MeRetrieveResponse,
|
|
331
|
+
type MeRetrieveParams as MeRetrieveParams,
|
|
332
|
+
};
|
|
414
333
|
}
|
|
@@ -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';
|
|
@@ -102,12 +103,12 @@ export interface MessageRetrieveActivitiesResponse {
|
|
|
102
103
|
/**
|
|
103
104
|
* Error information
|
|
104
105
|
*/
|
|
105
|
-
error?:
|
|
106
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
106
107
|
|
|
107
108
|
/**
|
|
108
109
|
* Request and response metadata
|
|
109
110
|
*/
|
|
110
|
-
meta?:
|
|
111
|
+
meta?: WebhooksAPI.APIMeta;
|
|
111
112
|
|
|
112
113
|
/**
|
|
113
114
|
* Indicates whether the request was successful
|
|
@@ -171,51 +172,6 @@ export namespace MessageRetrieveActivitiesResponse {
|
|
|
171
172
|
timestamp?: string;
|
|
172
173
|
}
|
|
173
174
|
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Error information
|
|
177
|
-
*/
|
|
178
|
-
export interface Error {
|
|
179
|
-
/**
|
|
180
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
181
|
-
*/
|
|
182
|
-
code?: string;
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Additional validation error details (field-level errors)
|
|
186
|
-
*/
|
|
187
|
-
details?: { [key: string]: Array<string> } | null;
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* URL to documentation about this error
|
|
191
|
-
*/
|
|
192
|
-
doc_url?: string | null;
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Human-readable error message
|
|
196
|
-
*/
|
|
197
|
-
message?: string;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Request and response metadata
|
|
202
|
-
*/
|
|
203
|
-
export interface Meta {
|
|
204
|
-
/**
|
|
205
|
-
* Unique identifier for this request (for tracing and support)
|
|
206
|
-
*/
|
|
207
|
-
request_id?: string;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Server timestamp when the response was generated
|
|
211
|
-
*/
|
|
212
|
-
timestamp?: string;
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* API version used for this request
|
|
216
|
-
*/
|
|
217
|
-
version?: string;
|
|
218
|
-
}
|
|
219
175
|
}
|
|
220
176
|
|
|
221
177
|
/**
|
|
@@ -230,12 +186,12 @@ export interface MessageRetrieveStatusResponse {
|
|
|
230
186
|
/**
|
|
231
187
|
* Error information
|
|
232
188
|
*/
|
|
233
|
-
error?:
|
|
189
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
234
190
|
|
|
235
191
|
/**
|
|
236
192
|
* Request and response metadata
|
|
237
193
|
*/
|
|
238
|
-
meta?:
|
|
194
|
+
meta?: WebhooksAPI.APIMeta;
|
|
239
195
|
|
|
240
196
|
/**
|
|
241
197
|
* Indicates whether the request was successful
|
|
@@ -325,51 +281,6 @@ export namespace MessageRetrieveStatusResponse {
|
|
|
325
281
|
}
|
|
326
282
|
}
|
|
327
283
|
}
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* Error information
|
|
331
|
-
*/
|
|
332
|
-
export interface Error {
|
|
333
|
-
/**
|
|
334
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
335
|
-
*/
|
|
336
|
-
code?: string;
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* Additional validation error details (field-level errors)
|
|
340
|
-
*/
|
|
341
|
-
details?: { [key: string]: Array<string> } | null;
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* URL to documentation about this error
|
|
345
|
-
*/
|
|
346
|
-
doc_url?: string | null;
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* Human-readable error message
|
|
350
|
-
*/
|
|
351
|
-
message?: string;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* Request and response metadata
|
|
356
|
-
*/
|
|
357
|
-
export interface Meta {
|
|
358
|
-
/**
|
|
359
|
-
* Unique identifier for this request (for tracing and support)
|
|
360
|
-
*/
|
|
361
|
-
request_id?: string;
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* Server timestamp when the response was generated
|
|
365
|
-
*/
|
|
366
|
-
timestamp?: string;
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* API version used for this request
|
|
370
|
-
*/
|
|
371
|
-
version?: string;
|
|
372
|
-
}
|
|
373
284
|
}
|
|
374
285
|
|
|
375
286
|
/**
|
|
@@ -384,12 +295,12 @@ export interface MessageSendResponse {
|
|
|
384
295
|
/**
|
|
385
296
|
* Error information
|
|
386
297
|
*/
|
|
387
|
-
error?:
|
|
298
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
388
299
|
|
|
389
300
|
/**
|
|
390
301
|
* Request and response metadata
|
|
391
302
|
*/
|
|
392
|
-
meta?:
|
|
303
|
+
meta?: WebhooksAPI.APIMeta;
|
|
393
304
|
|
|
394
305
|
/**
|
|
395
306
|
* Indicates whether the request was successful
|
|
@@ -452,51 +363,6 @@ export namespace MessageSendResponse {
|
|
|
452
363
|
to?: string;
|
|
453
364
|
}
|
|
454
365
|
}
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* Error information
|
|
458
|
-
*/
|
|
459
|
-
export interface Error {
|
|
460
|
-
/**
|
|
461
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
462
|
-
*/
|
|
463
|
-
code?: string;
|
|
464
|
-
|
|
465
|
-
/**
|
|
466
|
-
* Additional validation error details (field-level errors)
|
|
467
|
-
*/
|
|
468
|
-
details?: { [key: string]: Array<string> } | null;
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
* URL to documentation about this error
|
|
472
|
-
*/
|
|
473
|
-
doc_url?: string | null;
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* Human-readable error message
|
|
477
|
-
*/
|
|
478
|
-
message?: string;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Request and response metadata
|
|
483
|
-
*/
|
|
484
|
-
export interface Meta {
|
|
485
|
-
/**
|
|
486
|
-
* Unique identifier for this request (for tracing and support)
|
|
487
|
-
*/
|
|
488
|
-
request_id?: string;
|
|
489
|
-
|
|
490
|
-
/**
|
|
491
|
-
* Server timestamp when the response was generated
|
|
492
|
-
*/
|
|
493
|
-
timestamp?: string;
|
|
494
|
-
|
|
495
|
-
/**
|
|
496
|
-
* API version used for this request
|
|
497
|
-
*/
|
|
498
|
-
version?: string;
|
|
499
|
-
}
|
|
500
366
|
}
|
|
501
367
|
|
|
502
368
|
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';
|
|
@@ -50,12 +51,12 @@ export interface NumberLookupResponse {
|
|
|
50
51
|
/**
|
|
51
52
|
* Error information
|
|
52
53
|
*/
|
|
53
|
-
error?:
|
|
54
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
54
55
|
|
|
55
56
|
/**
|
|
56
57
|
* Request and response metadata
|
|
57
58
|
*/
|
|
58
|
-
meta?:
|
|
59
|
+
meta?: WebhooksAPI.APIMeta;
|
|
59
60
|
|
|
60
61
|
/**
|
|
61
62
|
* Indicates whether the request was successful
|
|
@@ -86,51 +87,6 @@ export namespace NumberLookupResponse {
|
|
|
86
87
|
|
|
87
88
|
phone_number?: string;
|
|
88
89
|
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Error information
|
|
92
|
-
*/
|
|
93
|
-
export interface Error {
|
|
94
|
-
/**
|
|
95
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
96
|
-
*/
|
|
97
|
-
code?: string;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Additional validation error details (field-level errors)
|
|
101
|
-
*/
|
|
102
|
-
details?: { [key: string]: Array<string> } | null;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* URL to documentation about this error
|
|
106
|
-
*/
|
|
107
|
-
doc_url?: string | null;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Human-readable error message
|
|
111
|
-
*/
|
|
112
|
-
message?: string;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Request and response metadata
|
|
117
|
-
*/
|
|
118
|
-
export interface Meta {
|
|
119
|
-
/**
|
|
120
|
-
* Unique identifier for this request (for tracing and support)
|
|
121
|
-
*/
|
|
122
|
-
request_id?: string;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Server timestamp when the response was generated
|
|
126
|
-
*/
|
|
127
|
-
timestamp?: string;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* API version used for this request
|
|
131
|
-
*/
|
|
132
|
-
version?: string;
|
|
133
|
-
}
|
|
134
90
|
}
|
|
135
91
|
|
|
136
92
|
export interface NumberLookupParams {
|