@sentdm/sentdm 0.25.3 → 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.
Files changed (110) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/client.d.mts +12 -12
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +12 -12
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/internal/utils/log.d.mts.map +1 -1
  9. package/internal/utils/log.d.ts.map +1 -1
  10. package/internal/utils/log.js +3 -2
  11. package/internal/utils/log.js.map +1 -1
  12. package/internal/utils/log.mjs +3 -2
  13. package/internal/utils/log.mjs.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/contacts.d.mts +488 -68
  16. package/resources/contacts.d.mts.map +1 -1
  17. package/resources/contacts.d.ts +488 -68
  18. package/resources/contacts.d.ts.map +1 -1
  19. package/resources/contacts.js +3 -3
  20. package/resources/contacts.js.map +1 -1
  21. package/resources/contacts.mjs +3 -3
  22. package/resources/contacts.mjs.map +1 -1
  23. package/resources/index.d.mts +6 -6
  24. package/resources/index.d.mts.map +1 -1
  25. package/resources/index.d.ts +6 -6
  26. package/resources/index.d.ts.map +1 -1
  27. package/resources/index.js.map +1 -1
  28. package/resources/index.mjs.map +1 -1
  29. package/resources/me.d.mts +113 -40
  30. package/resources/me.d.mts.map +1 -1
  31. package/resources/me.d.ts +113 -40
  32. package/resources/me.d.ts.map +1 -1
  33. package/resources/me.js.map +1 -1
  34. package/resources/me.mjs.map +1 -1
  35. package/resources/messages.d.mts +130 -9
  36. package/resources/messages.d.mts.map +1 -1
  37. package/resources/messages.d.ts +130 -9
  38. package/resources/messages.d.ts.map +1 -1
  39. package/resources/messages.js.map +1 -1
  40. package/resources/messages.mjs.map +1 -1
  41. package/resources/numbers.d.mts +42 -3
  42. package/resources/numbers.d.mts.map +1 -1
  43. package/resources/numbers.d.ts +42 -3
  44. package/resources/numbers.d.ts.map +1 -1
  45. package/resources/numbers.js.map +1 -1
  46. package/resources/numbers.mjs.map +1 -1
  47. package/resources/profiles/campaigns.d.mts +480 -147
  48. package/resources/profiles/campaigns.d.mts.map +1 -1
  49. package/resources/profiles/campaigns.d.ts +480 -147
  50. package/resources/profiles/campaigns.d.ts.map +1 -1
  51. package/resources/profiles/campaigns.js +39 -41
  52. package/resources/profiles/campaigns.js.map +1 -1
  53. package/resources/profiles/campaigns.mjs +39 -41
  54. package/resources/profiles/campaigns.mjs.map +1 -1
  55. package/resources/profiles/index.d.mts +2 -2
  56. package/resources/profiles/index.d.mts.map +1 -1
  57. package/resources/profiles/index.d.ts +2 -2
  58. package/resources/profiles/index.d.ts.map +1 -1
  59. package/resources/profiles/index.js.map +1 -1
  60. package/resources/profiles/index.mjs.map +1 -1
  61. package/resources/profiles/profiles.d.mts +1699 -391
  62. package/resources/profiles/profiles.d.mts.map +1 -1
  63. package/resources/profiles/profiles.d.ts +1699 -391
  64. package/resources/profiles/profiles.d.ts.map +1 -1
  65. package/resources/profiles/profiles.js +3 -6
  66. package/resources/profiles/profiles.js.map +1 -1
  67. package/resources/profiles/profiles.mjs +3 -6
  68. package/resources/profiles/profiles.mjs.map +1 -1
  69. package/resources/templates.d.mts +993 -172
  70. package/resources/templates.d.mts.map +1 -1
  71. package/resources/templates.d.ts +993 -172
  72. package/resources/templates.d.ts.map +1 -1
  73. package/resources/templates.js +3 -3
  74. package/resources/templates.js.map +1 -1
  75. package/resources/templates.mjs +3 -3
  76. package/resources/templates.mjs.map +1 -1
  77. package/resources/users.d.mts +373 -46
  78. package/resources/users.d.mts.map +1 -1
  79. package/resources/users.d.ts +373 -46
  80. package/resources/users.d.ts.map +1 -1
  81. package/resources/users.js +3 -7
  82. package/resources/users.js.map +1 -1
  83. package/resources/users.mjs +3 -7
  84. package/resources/users.mjs.map +1 -1
  85. package/resources/webhooks.d.mts +624 -110
  86. package/resources/webhooks.d.mts.map +1 -1
  87. package/resources/webhooks.d.ts +624 -110
  88. package/resources/webhooks.d.ts.map +1 -1
  89. package/resources/webhooks.js +6 -7
  90. package/resources/webhooks.js.map +1 -1
  91. package/resources/webhooks.mjs +6 -7
  92. package/resources/webhooks.mjs.map +1 -1
  93. package/src/client.ts +33 -68
  94. package/src/internal/utils/log.ts +2 -1
  95. package/src/resources/contacts.ts +567 -66
  96. package/src/resources/index.ts +17 -34
  97. package/src/resources/me.ts +132 -51
  98. package/src/resources/messages.ts +147 -9
  99. package/src/resources/numbers.ts +47 -3
  100. package/src/resources/profiles/campaigns.ts +668 -169
  101. package/src/resources/profiles/index.ts +5 -17
  102. package/src/resources/profiles/profiles.ts +2278 -545
  103. package/src/resources/templates.ts +1261 -206
  104. package/src/resources/users.ts +430 -47
  105. package/src/resources/webhooks.ts +742 -120
  106. package/src/version.ts +1 -1
  107. package/version.d.mts +1 -1
  108. package/version.d.ts +1 -1
  109. package/version.js +1 -1
  110. package/version.mjs +1 -1
@@ -2,8 +2,9 @@
2
2
 
3
3
  export {
4
4
  Contacts,
5
- type APIResponseOfContact,
6
- type ContactResponse,
5
+ type ContactCreateResponse,
6
+ type ContactRetrieveResponse,
7
+ type ContactUpdateResponse,
7
8
  type ContactListResponse,
8
9
  type ContactCreateParams,
9
10
  type ContactRetrieveParams,
@@ -11,7 +12,7 @@ export {
11
12
  type ContactListParams,
12
13
  type ContactDeleteParams,
13
14
  } from './contacts';
14
- export { Me, type ProfileSettings, type MeRetrieveResponse, type MeRetrieveParams } from './me';
15
+ export { Me, type MeRetrieveResponse, type MeRetrieveParams } from './me';
15
16
  export {
16
17
  Messages,
17
18
  type MessageRetrieveActivitiesResponse,
@@ -24,17 +25,9 @@ export {
24
25
  export { Numbers, type NumberLookupResponse, type NumberLookupParams } from './numbers';
25
26
  export {
26
27
  Profiles,
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,
28
+ type ProfileCreateResponse,
29
+ type ProfileRetrieveResponse,
30
+ type ProfileUpdateResponse,
38
31
  type ProfileListResponse,
39
32
  type ProfileCompleteResponse,
40
33
  type ProfileCreateParams,
@@ -46,17 +39,9 @@ export {
46
39
  } from './profiles/profiles';
47
40
  export {
48
41
  Templates,
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,
42
+ type TemplateCreateResponse,
43
+ type TemplateRetrieveResponse,
44
+ type TemplateUpdateResponse,
60
45
  type TemplateListResponse,
61
46
  type TemplateCreateParams,
62
47
  type TemplateRetrieveParams,
@@ -66,9 +51,10 @@ export {
66
51
  } from './templates';
67
52
  export {
68
53
  Users,
69
- type APIResponseOfUser,
70
- type UserResponse,
54
+ type UserRetrieveResponse,
71
55
  type UserListResponse,
56
+ type UserInviteResponse,
57
+ type UserUpdateRoleResponse,
72
58
  type UserRetrieveParams,
73
59
  type UserListParams,
74
60
  type UserInviteParams,
@@ -77,18 +63,15 @@ export {
77
63
  } from './users';
78
64
  export {
79
65
  Webhooks,
80
- type APIMeta,
81
- type APIResponseWebhook,
82
- type ErrorDetail,
83
- type MutationRequest,
84
- type PaginationMeta,
85
- type WebhookEventType,
86
- type WebhookResponse,
66
+ type WebhookCreateResponse,
67
+ type WebhookRetrieveResponse,
68
+ type WebhookUpdateResponse,
87
69
  type WebhookListResponse,
88
70
  type WebhookListEventTypesResponse,
89
71
  type WebhookListEventsResponse,
90
72
  type WebhookRotateSecretResponse,
91
73
  type WebhookTestResponse,
74
+ type WebhookToggleStatusResponse,
92
75
  type WebhookCreateParams,
93
76
  type WebhookRetrieveParams,
94
77
  type WebhookUpdateParams,
@@ -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 MeAPI from './me';
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';
@@ -43,46 +41,6 @@ export class Me extends APIResource {
43
41
  }
44
42
  }
45
43
 
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
-
86
44
  /**
87
45
  * Standard API response envelope for all v3 endpoints
88
46
  */
@@ -97,12 +55,12 @@ export interface MeRetrieveResponse {
97
55
  /**
98
56
  * Error information
99
57
  */
100
- error?: WebhooksAPI.ErrorDetail | null;
58
+ error?: MeRetrieveResponse.Error | null;
101
59
 
102
60
  /**
103
61
  * Request and response metadata
104
62
  */
105
- meta?: WebhooksAPI.APIMeta;
63
+ meta?: MeRetrieveResponse.Meta;
106
64
 
107
65
  /**
108
66
  * Indicates whether the request was successful
@@ -167,7 +125,7 @@ export namespace MeRetrieveResponse {
167
125
  /**
168
126
  * Profile configuration settings
169
127
  */
170
- settings?: MeAPI.ProfileSettings | null;
128
+ settings?: Data.Settings | null;
171
129
 
172
130
  /**
173
131
  * Short name / abbreviation (only for profile type)
@@ -301,7 +259,7 @@ export namespace MeRetrieveResponse {
301
259
  /**
302
260
  * Profile configuration settings
303
261
  */
304
- settings?: MeAPI.ProfileSettings;
262
+ settings?: Profile.Settings;
305
263
 
306
264
  /**
307
265
  * Profile short name (abbreviation)
@@ -313,6 +271,133 @@ export namespace MeRetrieveResponse {
313
271
  */
314
272
  status?: string | null;
315
273
  }
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;
316
401
  }
317
402
  }
318
403
 
@@ -325,9 +410,5 @@ export interface MeRetrieveParams {
325
410
  }
326
411
 
327
412
  export declare namespace Me {
328
- export {
329
- type ProfileSettings as ProfileSettings,
330
- type MeRetrieveResponse as MeRetrieveResponse,
331
- type MeRetrieveParams as MeRetrieveParams,
332
- };
413
+ export { type MeRetrieveResponse as MeRetrieveResponse, type MeRetrieveParams as MeRetrieveParams };
333
414
  }
@@ -1,7 +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 WebhooksAPI from './webhooks';
5
4
  import { APIPromise } from '../core/api-promise';
6
5
  import { buildHeaders } from '../internal/headers';
7
6
  import { RequestOptions } from '../internal/request-options';
@@ -103,12 +102,12 @@ export interface MessageRetrieveActivitiesResponse {
103
102
  /**
104
103
  * Error information
105
104
  */
106
- error?: WebhooksAPI.ErrorDetail | null;
105
+ error?: MessageRetrieveActivitiesResponse.Error | null;
107
106
 
108
107
  /**
109
108
  * Request and response metadata
110
109
  */
111
- meta?: WebhooksAPI.APIMeta;
110
+ meta?: MessageRetrieveActivitiesResponse.Meta;
112
111
 
113
112
  /**
114
113
  * Indicates whether the request was successful
@@ -172,6 +171,51 @@ export namespace MessageRetrieveActivitiesResponse {
172
171
  timestamp?: string;
173
172
  }
174
173
  }
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
+ }
175
219
  }
176
220
 
177
221
  /**
@@ -186,12 +230,12 @@ export interface MessageRetrieveStatusResponse {
186
230
  /**
187
231
  * Error information
188
232
  */
189
- error?: WebhooksAPI.ErrorDetail | null;
233
+ error?: MessageRetrieveStatusResponse.Error | null;
190
234
 
191
235
  /**
192
236
  * Request and response metadata
193
237
  */
194
- meta?: WebhooksAPI.APIMeta;
238
+ meta?: MessageRetrieveStatusResponse.Meta;
195
239
 
196
240
  /**
197
241
  * Indicates whether the request was successful
@@ -271,12 +315,61 @@ export namespace MessageRetrieveStatusResponse {
271
315
 
272
316
  export namespace MessageBody {
273
317
  export interface Button {
318
+ postbackData?: string | null;
319
+
320
+ text?: string | null;
321
+
274
322
  type?: string;
275
323
 
276
324
  value?: string;
277
325
  }
278
326
  }
279
327
  }
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
+ }
280
373
  }
281
374
 
282
375
  /**
@@ -291,12 +384,12 @@ export interface MessageSendResponse {
291
384
  /**
292
385
  * Error information
293
386
  */
294
- error?: WebhooksAPI.ErrorDetail | null;
387
+ error?: MessageSendResponse.Error | null;
295
388
 
296
389
  /**
297
390
  * Request and response metadata
298
391
  */
299
- meta?: WebhooksAPI.APIMeta;
392
+ meta?: MessageSendResponse.Meta;
300
393
 
301
394
  /**
302
395
  * Indicates whether the request was successful
@@ -359,6 +452,51 @@ export namespace MessageSendResponse {
359
452
  to?: string;
360
453
  }
361
454
  }
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
+ }
362
500
  }
363
501
 
364
502
  export interface MessageRetrieveActivitiesParams {
@@ -380,8 +518,8 @@ export interface MessageRetrieveStatusParams {
380
518
  export interface MessageSendParams {
381
519
  /**
382
520
  * Body param: Channels to broadcast on, e.g. ["whatsapp", "sms"]. Each channel
383
- * produces a separate message per recipient. "sent" = auto-detect, "rcs" =
384
- * reserved (skipped). Defaults to ["sent"] (auto-detect) if omitted.
521
+ * produces a separate message per recipient. "sent" = auto-detect. Defaults to
522
+ * ["sent"] (auto-detect) if omitted.
385
523
  */
386
524
  channel?: Array<string> | null;
387
525
 
@@ -1,7 +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 WebhooksAPI from './webhooks';
5
4
  import { APIPromise } from '../core/api-promise';
6
5
  import { buildHeaders } from '../internal/headers';
7
6
  import { RequestOptions } from '../internal/request-options';
@@ -51,12 +50,12 @@ export interface NumberLookupResponse {
51
50
  /**
52
51
  * Error information
53
52
  */
54
- error?: WebhooksAPI.ErrorDetail | null;
53
+ error?: NumberLookupResponse.Error | null;
55
54
 
56
55
  /**
57
56
  * Request and response metadata
58
57
  */
59
- meta?: WebhooksAPI.APIMeta;
58
+ meta?: NumberLookupResponse.Meta;
60
59
 
61
60
  /**
62
61
  * Indicates whether the request was successful
@@ -87,6 +86,51 @@ export namespace NumberLookupResponse {
87
86
 
88
87
  phone_number?: string;
89
88
  }
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
+ }
90
134
  }
91
135
 
92
136
  export interface NumberLookupParams {