@sentdm/sentdm 0.36.0 → 0.38.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.
Files changed (137) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +31 -0
  3. package/client.d.mts +28 -14
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +28 -14
  6. package/client.d.ts.map +1 -1
  7. package/client.js +10 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +10 -0
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +164 -0
  12. package/core/pagination.d.mts.map +1 -0
  13. package/core/pagination.d.ts +164 -0
  14. package/core/pagination.d.ts.map +1 -0
  15. package/core/pagination.js +212 -0
  16. package/core/pagination.js.map +1 -0
  17. package/core/pagination.mjs +202 -0
  18. package/core/pagination.mjs.map +1 -0
  19. package/index.d.mts +1 -0
  20. package/index.d.mts.map +1 -1
  21. package/index.d.ts +1 -0
  22. package/index.d.ts.map +1 -1
  23. package/index.js +3 -1
  24. package/index.js.map +1 -1
  25. package/index.mjs +1 -0
  26. package/index.mjs.map +1 -1
  27. package/internal/tslib.js +17 -17
  28. package/package.json +11 -1
  29. package/pagination.d.mts +3 -0
  30. package/pagination.d.mts.map +1 -0
  31. package/pagination.d.ts +3 -0
  32. package/pagination.d.ts.map +1 -0
  33. package/pagination.js +6 -0
  34. package/pagination.js.map +1 -0
  35. package/pagination.mjs +3 -0
  36. package/pagination.mjs.map +1 -0
  37. package/resources/contacts.d.mts +79 -626
  38. package/resources/contacts.d.mts.map +1 -1
  39. package/resources/contacts.d.ts +79 -626
  40. package/resources/contacts.d.ts.map +1 -1
  41. package/resources/contacts.js +12 -11
  42. package/resources/contacts.js.map +1 -1
  43. package/resources/contacts.mjs +12 -11
  44. package/resources/contacts.mjs.map +1 -1
  45. package/resources/conversations.d.mts +72 -346
  46. package/resources/conversations.d.mts.map +1 -1
  47. package/resources/conversations.d.ts +72 -346
  48. package/resources/conversations.d.ts.map +1 -1
  49. package/resources/conversations.js +16 -13
  50. package/resources/conversations.js.map +1 -1
  51. package/resources/conversations.mjs +16 -13
  52. package/resources/conversations.mjs.map +1 -1
  53. package/resources/index.d.mts +7 -7
  54. package/resources/index.d.mts.map +1 -1
  55. package/resources/index.d.ts +7 -7
  56. package/resources/index.d.ts.map +1 -1
  57. package/resources/index.js.map +1 -1
  58. package/resources/index.mjs.map +1 -1
  59. package/resources/me.d.mts +48 -129
  60. package/resources/me.d.mts.map +1 -1
  61. package/resources/me.d.ts +48 -129
  62. package/resources/me.d.ts.map +1 -1
  63. package/resources/me.js.map +1 -1
  64. package/resources/me.mjs.map +1 -1
  65. package/resources/messages.d.mts +8 -171
  66. package/resources/messages.d.mts.map +1 -1
  67. package/resources/messages.d.ts +8 -171
  68. package/resources/messages.d.ts.map +1 -1
  69. package/resources/messages.js.map +1 -1
  70. package/resources/messages.mjs.map +1 -1
  71. package/resources/numbers.d.mts +3 -42
  72. package/resources/numbers.d.mts.map +1 -1
  73. package/resources/numbers.d.ts +3 -42
  74. package/resources/numbers.d.ts.map +1 -1
  75. package/resources/numbers.js.map +1 -1
  76. package/resources/numbers.mjs.map +1 -1
  77. package/resources/profiles/campaigns.d.mts +149 -544
  78. package/resources/profiles/campaigns.d.mts.map +1 -1
  79. package/resources/profiles/campaigns.d.ts +149 -544
  80. package/resources/profiles/campaigns.d.ts.map +1 -1
  81. package/resources/profiles/index.d.mts +2 -2
  82. package/resources/profiles/index.d.mts.map +1 -1
  83. package/resources/profiles/index.d.ts +2 -2
  84. package/resources/profiles/index.d.ts.map +1 -1
  85. package/resources/profiles/index.js.map +1 -1
  86. package/resources/profiles/index.mjs.map +1 -1
  87. package/resources/profiles/profiles.d.mts +411 -1821
  88. package/resources/profiles/profiles.d.mts.map +1 -1
  89. package/resources/profiles/profiles.d.ts +411 -1821
  90. package/resources/profiles/profiles.d.ts.map +1 -1
  91. package/resources/profiles/profiles.js.map +1 -1
  92. package/resources/profiles/profiles.mjs.map +1 -1
  93. package/resources/templates.d.mts +87 -532
  94. package/resources/templates.d.mts.map +1 -1
  95. package/resources/templates.d.ts +87 -532
  96. package/resources/templates.d.ts.map +1 -1
  97. package/resources/templates.js +11 -10
  98. package/resources/templates.js.map +1 -1
  99. package/resources/templates.mjs +11 -10
  100. package/resources/templates.mjs.map +1 -1
  101. package/resources/users.d.mts +47 -437
  102. package/resources/users.d.mts.map +1 -1
  103. package/resources/users.d.ts +47 -437
  104. package/resources/users.d.ts.map +1 -1
  105. package/resources/users.js +3 -3
  106. package/resources/users.js.map +1 -1
  107. package/resources/users.mjs +3 -3
  108. package/resources/users.mjs.map +1 -1
  109. package/resources/webhooks.d.mts +192 -856
  110. package/resources/webhooks.d.mts.map +1 -1
  111. package/resources/webhooks.d.ts +192 -856
  112. package/resources/webhooks.d.ts.map +1 -1
  113. package/resources/webhooks.js +23 -19
  114. package/resources/webhooks.js.map +1 -1
  115. package/resources/webhooks.mjs +23 -19
  116. package/resources/webhooks.mjs.map +1 -1
  117. package/src/client.ts +124 -45
  118. package/src/core/pagination.ts +428 -0
  119. package/src/index.ts +1 -0
  120. package/src/pagination.ts +2 -0
  121. package/src/resources/contacts.ts +89 -726
  122. package/src/resources/conversations.ts +99 -427
  123. package/src/resources/index.ts +31 -23
  124. package/src/resources/me.ts +59 -148
  125. package/src/resources/messages.ts +8 -194
  126. package/src/resources/numbers.ts +3 -47
  127. package/src/resources/profiles/campaigns.ts +174 -673
  128. package/src/resources/profiles/index.ts +14 -6
  129. package/src/resources/profiles/profiles.ts +529 -2216
  130. package/src/resources/templates.ts +110 -629
  131. package/src/resources/users.ts +48 -505
  132. package/src/resources/webhooks.ts +307 -1091
  133. package/src/version.ts +1 -1
  134. package/version.d.mts +1 -1
  135. package/version.d.ts +1 -1
  136. package/version.js +1 -1
  137. package/version.mjs +1 -1
@@ -2,26 +2,27 @@
2
2
 
3
3
  export {
4
4
  Contacts,
5
- type ContactCreateResponse,
6
- type ContactRetrieveResponse,
7
- type ContactUpdateResponse,
8
- type ContactListResponse,
9
- type ContactRetrieveMessageSummaryResponse,
5
+ type APIResponseOfContact,
6
+ type APIResponseOfContactMessageSummary,
7
+ type ContactMessageSummary,
8
+ type ContactResponse,
10
9
  type ContactCreateParams,
11
10
  type ContactRetrieveParams,
12
11
  type ContactUpdateParams,
13
12
  type ContactListParams,
14
13
  type ContactDeleteParams,
15
14
  type ContactRetrieveMessageSummaryParams,
15
+ type ContactResponsesContactsPage,
16
16
  } from './contacts';
17
17
  export {
18
18
  Conversations,
19
- type ConversationListResponse,
20
- type ConversationListMessagesResponse,
19
+ type APIResponseOfConversationMessagesList,
20
+ type ConversationMessagesList,
21
21
  type ConversationListParams,
22
22
  type ConversationListMessagesParams,
23
+ type ConversationMessagesListMessagesConversationsPage,
23
24
  } from './conversations';
24
- export { Me, type MeRetrieveResponse, type MeRetrieveParams } from './me';
25
+ export { Me, type ProfileSettings, type MeRetrieveResponse, type MeRetrieveParams } from './me';
25
26
  export {
26
27
  Messages,
27
28
  type MessageRetrieveActivitiesResponse,
@@ -34,12 +35,17 @@ export {
34
35
  export { Numbers, type NumberLookupResponse, type NumberLookupParams } from './numbers';
35
36
  export {
36
37
  Profiles,
38
+ type APIResponseOfProfileDetail,
39
+ type BillingContactInfo,
40
+ type BrandBusinessInfo,
41
+ type BrandComplianceInfo,
42
+ type BrandContactInfo,
43
+ type BrandsBrandData,
37
44
  type DestinationCountry,
45
+ type PaymentDetails,
46
+ type ProfileDetail,
38
47
  type TcrBrandRelationship,
39
48
  type TcrVertical,
40
- type ProfileCreateResponse,
41
- type ProfileRetrieveResponse,
42
- type ProfileUpdateResponse,
43
49
  type ProfileListResponse,
44
50
  type ProfileCompleteResponse,
45
51
  type ProfileCreateParams,
@@ -51,7 +57,9 @@ export {
51
57
  } from './profiles/profiles';
52
58
  export {
53
59
  Templates,
60
+ type APIResponseTemplate,
54
61
  type AuthenticationConfig,
62
+ type Template,
55
63
  type TemplateBody,
56
64
  type TemplateBodyContent,
57
65
  type TemplateButton,
@@ -60,22 +68,18 @@ export {
60
68
  type TemplateFooter,
61
69
  type TemplateHeader,
62
70
  type TemplateVariable,
63
- type TemplateCreateResponse,
64
- type TemplateRetrieveResponse,
65
- type TemplateUpdateResponse,
66
- type TemplateListResponse,
67
71
  type TemplateCreateParams,
68
72
  type TemplateRetrieveParams,
69
73
  type TemplateUpdateParams,
70
74
  type TemplateListParams,
71
75
  type TemplateDeleteParams,
76
+ type TemplatesTemplatesPage,
72
77
  } from './templates';
73
78
  export {
74
79
  Users,
75
- type UserRetrieveResponse,
80
+ type APIResponseOfUser,
81
+ type UserResponse,
76
82
  type UserListResponse,
77
- type UserInviteResponse,
78
- type UserUpdateRoleResponse,
79
83
  type UserRetrieveParams,
80
84
  type UserListParams,
81
85
  type UserInviteParams,
@@ -84,21 +88,23 @@ export {
84
88
  } from './users';
85
89
  export {
86
90
  Webhooks,
91
+ type APIMeta,
92
+ type APIResponseWebhook,
93
+ type ErrorDetail,
87
94
  type InboundMessageEvent,
88
95
  type InboundMessageEventPayload,
89
96
  type MessageEvent,
90
97
  type MessageEventPayload,
98
+ type MutationRequest,
99
+ type PaginationMeta,
91
100
  type TemplateEvent,
92
101
  type TemplateEventPayload,
93
- type WebhookCreateResponse,
94
- type WebhookRetrieveResponse,
95
- type WebhookUpdateResponse,
96
- type WebhookListResponse,
102
+ type WebhookEventType,
103
+ type WebhookResponse,
97
104
  type WebhookListEventTypesResponse,
98
105
  type WebhookListEventsResponse,
99
106
  type WebhookRotateSecretResponse,
100
107
  type WebhookTestResponse,
101
- type WebhookToggleStatusResponse,
102
108
  type WebhookCreateParams,
103
109
  type WebhookRetrieveParams,
104
110
  type WebhookUpdateParams,
@@ -109,4 +115,6 @@ export {
109
115
  type WebhookRotateSecretParams,
110
116
  type WebhookTestParams,
111
117
  type WebhookToggleStatusParams,
118
+ type WebhookResponsesWebhooksPage,
119
+ type WebhookListEventsResponsesWebhookEventsPage,
112
120
  } from './webhooks';
@@ -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?: MeRetrieveResponse.Error | null;
121
+ error?: WebhooksAPI.ErrorDetail | null;
72
122
 
73
123
  /**
74
124
  * Request and response metadata
75
125
  */
76
- meta?: MeRetrieveResponse.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?: Data.Settings | null;
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?: Profile.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 { type MeRetrieveResponse as MeRetrieveResponse, type MeRetrieveParams as MeRetrieveParams };
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?: MessageRetrieveActivitiesResponse.Error | null;
115
+ error?: WebhooksAPI.ErrorDetail | null;
115
116
 
116
117
  /**
117
118
  * Request and response metadata
118
119
  */
119
- meta?: MessageRetrieveActivitiesResponse.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?: Data.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?: MessageRetrieveStatusResponse.Error | null;
204
+ error?: WebhooksAPI.ErrorDetail | null;
301
205
 
302
206
  /**
303
207
  * Request and response metadata
304
208
  */
305
- meta?: MessageRetrieveStatusResponse.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?: MessageSendResponse.Error | null;
322
+ error?: WebhooksAPI.ErrorDetail | null;
464
323
 
465
324
  /**
466
325
  * Request and response metadata
467
326
  */
468
- meta?: MessageSendResponse.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 {