@sentdm/sentdm 0.33.0 → 0.35.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 (120) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/client.d.mts +53 -22
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +53 -22
  5. package/client.d.ts.map +1 -1
  6. package/client.js +39 -8
  7. package/client.js.map +1 -1
  8. package/client.mjs +39 -8
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/contacts.d.mts +606 -89
  12. package/resources/contacts.d.mts.map +1 -1
  13. package/resources/contacts.d.ts +606 -89
  14. package/resources/contacts.d.ts.map +1 -1
  15. package/resources/contacts.js +21 -15
  16. package/resources/contacts.js.map +1 -1
  17. package/resources/contacts.mjs +21 -15
  18. package/resources/contacts.mjs.map +1 -1
  19. package/resources/conversations.d.mts +335 -69
  20. package/resources/conversations.d.mts.map +1 -1
  21. package/resources/conversations.d.ts +335 -69
  22. package/resources/conversations.d.ts.map +1 -1
  23. package/resources/conversations.js +15 -10
  24. package/resources/conversations.js.map +1 -1
  25. package/resources/conversations.mjs +15 -10
  26. package/resources/conversations.mjs.map +1 -1
  27. package/resources/index.d.mts +7 -7
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +7 -7
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js.map +1 -1
  32. package/resources/index.mjs.map +1 -1
  33. package/resources/me.d.mts +132 -41
  34. package/resources/me.d.mts.map +1 -1
  35. package/resources/me.d.ts +132 -41
  36. package/resources/me.d.ts.map +1 -1
  37. package/resources/me.js +3 -1
  38. package/resources/me.js.map +1 -1
  39. package/resources/me.mjs +3 -1
  40. package/resources/me.mjs.map +1 -1
  41. package/resources/messages.d.mts +212 -31
  42. package/resources/messages.d.mts.map +1 -1
  43. package/resources/messages.d.ts +212 -31
  44. package/resources/messages.d.ts.map +1 -1
  45. package/resources/messages.js +11 -5
  46. package/resources/messages.js.map +1 -1
  47. package/resources/messages.mjs +11 -5
  48. package/resources/messages.mjs.map +1 -1
  49. package/resources/numbers.d.mts +45 -4
  50. package/resources/numbers.d.mts.map +1 -1
  51. package/resources/numbers.d.ts +45 -4
  52. package/resources/numbers.d.ts.map +1 -1
  53. package/resources/numbers.js +3 -1
  54. package/resources/numbers.js.map +1 -1
  55. package/resources/numbers.mjs +3 -1
  56. package/resources/numbers.mjs.map +1 -1
  57. package/resources/profiles/campaigns.d.mts +579 -209
  58. package/resources/profiles/campaigns.d.mts.map +1 -1
  59. package/resources/profiles/campaigns.d.ts +579 -209
  60. package/resources/profiles/campaigns.d.ts.map +1 -1
  61. package/resources/profiles/campaigns.js +33 -64
  62. package/resources/profiles/campaigns.js.map +1 -1
  63. package/resources/profiles/campaigns.mjs +33 -64
  64. package/resources/profiles/campaigns.mjs.map +1 -1
  65. package/resources/profiles/index.d.mts +2 -2
  66. package/resources/profiles/index.d.mts.map +1 -1
  67. package/resources/profiles/index.d.ts +2 -2
  68. package/resources/profiles/index.d.ts.map +1 -1
  69. package/resources/profiles/index.js.map +1 -1
  70. package/resources/profiles/index.mjs.map +1 -1
  71. package/resources/profiles/profiles.d.mts +2006 -499
  72. package/resources/profiles/profiles.d.mts.map +1 -1
  73. package/resources/profiles/profiles.d.ts +2006 -499
  74. package/resources/profiles/profiles.d.ts.map +1 -1
  75. package/resources/profiles/profiles.js +97 -68
  76. package/resources/profiles/profiles.js.map +1 -1
  77. package/resources/profiles/profiles.mjs +97 -68
  78. package/resources/profiles/profiles.mjs.map +1 -1
  79. package/resources/templates.d.mts +497 -84
  80. package/resources/templates.d.mts.map +1 -1
  81. package/resources/templates.d.ts +497 -84
  82. package/resources/templates.d.ts.map +1 -1
  83. package/resources/templates.js +6 -4
  84. package/resources/templates.js.map +1 -1
  85. package/resources/templates.mjs +6 -4
  86. package/resources/templates.mjs.map +1 -1
  87. package/resources/users.d.mts +449 -46
  88. package/resources/users.d.mts.map +1 -1
  89. package/resources/users.d.ts +449 -46
  90. package/resources/users.d.ts.map +1 -1
  91. package/resources/users.js +11 -7
  92. package/resources/users.js.map +1 -1
  93. package/resources/users.mjs +11 -7
  94. package/resources/users.mjs.map +1 -1
  95. package/resources/webhooks.d.mts +934 -109
  96. package/resources/webhooks.d.mts.map +1 -1
  97. package/resources/webhooks.d.ts +934 -109
  98. package/resources/webhooks.d.ts.map +1 -1
  99. package/resources/webhooks.js +11 -8
  100. package/resources/webhooks.js.map +1 -1
  101. package/resources/webhooks.mjs +11 -8
  102. package/resources/webhooks.mjs.map +1 -1
  103. package/src/client.ts +90 -60
  104. package/src/resources/contacts.ts +696 -92
  105. package/src/resources/conversations.ts +400 -77
  106. package/src/resources/index.ts +26 -26
  107. package/src/resources/me.ts +151 -52
  108. package/src/resources/messages.ts +236 -31
  109. package/src/resources/numbers.ts +50 -4
  110. package/src/resources/profiles/campaigns.ts +706 -232
  111. package/src/resources/profiles/index.ts +6 -14
  112. package/src/resources/profiles/profiles.ts +2421 -637
  113. package/src/resources/templates.ts +583 -99
  114. package/src/resources/users.ts +519 -47
  115. package/src/resources/webhooks.ts +1170 -179
  116. package/src/version.ts +1 -1
  117. package/version.d.mts +1 -1
  118. package/version.d.ts +1 -1
  119. package/version.js +1 -1
  120. package/version.mjs +1 -1
@@ -3,7 +3,11 @@ import * as WebhooksAPI from "./webhooks.js";
3
3
  import { APIPromise } from "../core/api-promise.js";
4
4
  import { RequestOptions } from "../internal/request-options.js";
5
5
  /**
6
- * Configure webhook endpoints for real-time event delivery
6
+ * Delivery reports and inbound messages, pushed to you.
7
+ *
8
+ * Subscribe an endpoint to the event types you care about — `GET /v3/webhooks/event-types` lists them — and we POST each one as it happens, retrying on failure. Polling `GET /v3/messages/{id}` works and does not scale.
9
+ *
10
+ * **Verify the signature.** Every delivery is signed with your endpoint's secret; an unverified endpoint is one anybody can post to. `rotate-secret` replaces it, `test` sends a specimen event, and `GET /v3/webhooks/{id}/events` shows what we tried to deliver and what your endpoint answered — which is the first place to look when something appears to be missing.
7
11
  */
8
12
  export declare class Webhooks extends APIResource {
9
13
  /**
@@ -11,32 +15,32 @@ export declare class Webhooks extends APIResource {
11
15
  *
12
16
  * @example
13
17
  * ```ts
14
- * const apiResponseWebhook = await client.webhooks.create();
18
+ * const webhook = await client.webhooks.create();
15
19
  * ```
16
20
  */
17
- create(params: WebhookCreateParams, options?: RequestOptions): APIPromise<APIResponseWebhook>;
21
+ create(params: WebhookCreateParams, options?: RequestOptions): APIPromise<WebhookCreateResponse>;
18
22
  /**
19
23
  * Retrieves a single webhook by ID for the authenticated customer.
20
24
  *
21
25
  * @example
22
26
  * ```ts
23
- * const apiResponseWebhook = await client.webhooks.retrieve(
27
+ * const webhook = await client.webhooks.retrieve(
24
28
  * 'd4f5a6b7-c8d9-4e0f-a1b2-c3d4e5f6a7b8',
25
29
  * );
26
30
  * ```
27
31
  */
28
- retrieve(id: string, params?: WebhookRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<APIResponseWebhook>;
32
+ retrieve(id: string, params?: WebhookRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<WebhookRetrieveResponse>;
29
33
  /**
30
34
  * Updates an existing webhook for the authenticated customer.
31
35
  *
32
36
  * @example
33
37
  * ```ts
34
- * const apiResponseWebhook = await client.webhooks.update(
38
+ * const webhook = await client.webhooks.update(
35
39
  * 'd4f5a6b7-c8d9-4e0f-a1b2-c3d4e5f6a7b8',
36
40
  * );
37
41
  * ```
38
42
  */
39
- update(id: string, params: WebhookUpdateParams, options?: RequestOptions): APIPromise<APIResponseWebhook>;
43
+ update(id: string, params: WebhookUpdateParams, options?: RequestOptions): APIPromise<WebhookUpdateResponse>;
40
44
  /**
41
45
  * Retrieves a paginated list of webhooks for the authenticated customer.
42
46
  *
@@ -109,168 +113,514 @@ export declare class Webhooks extends APIResource {
109
113
  *
110
114
  * @example
111
115
  * ```ts
112
- * const apiResponseWebhook =
113
- * await client.webhooks.toggleStatus(
114
- * 'd4f5a6b7-c8d9-4e0f-a1b2-c3d4e5f6a7b8',
115
- * );
116
+ * const response = await client.webhooks.toggleStatus(
117
+ * 'd4f5a6b7-c8d9-4e0f-a1b2-c3d4e5f6a7b8',
118
+ * );
116
119
  * ```
117
120
  */
118
- toggleStatus(id: string, params: WebhookToggleStatusParams, options?: RequestOptions): APIPromise<APIResponseWebhook>;
121
+ toggleStatus(id: string, params: WebhookToggleStatusParams, options?: RequestOptions): APIPromise<WebhookToggleStatusResponse>;
122
+ }
123
+ /**
124
+ * The envelope Sent POSTs to a subscribed webhook endpoint. Every event shares
125
+ * this shape and varies only in Payload.
126
+ */
127
+ export interface InboundMessageEvent {
128
+ /**
129
+ * The specific event within the family, for example message.delivered or
130
+ * message.received. Absent on events that have no subtype, so treat it as
131
+ * optional.
132
+ */
133
+ event?: string | null;
134
+ /**
135
+ * The event family, for example message or templates. Route on this first, then on
136
+ * event for the specific change.
137
+ */
138
+ field?: string;
139
+ /**
140
+ * Body of a message.received event. Delivered when a contact messages one of your
141
+ * numbers.
142
+ */
143
+ payload?: InboundMessageEventPayload | null;
144
+ /**
145
+ * When Sent emitted the event, in UTC (yyyy-MM-ddTHH:mm:ssZ). This is the emission
146
+ * time, not the time the underlying change happened. Use the timestamp inside the
147
+ * payload for the latter.
148
+ */
149
+ timestamp?: string;
150
+ }
151
+ /**
152
+ * Body of a message.received event. Delivered when a contact messages one of your
153
+ * numbers.
154
+ */
155
+ export interface InboundMessageEventPayload {
156
+ /**
157
+ * The account the message belongs to.
158
+ */
159
+ account_id?: string;
160
+ /**
161
+ * The channel the message arrived on, for example sms or whatsapp.
162
+ */
163
+ channel?: string;
164
+ /**
165
+ * The contact's number in E.164 format, meaning the number the message came from.
166
+ */
167
+ inbound_number?: string;
168
+ /**
169
+ * The inbound message.
170
+ */
171
+ message_id?: string;
172
+ /**
173
+ * Your number in E.164 format, meaning the number the message was addressed to.
174
+ */
175
+ outbound_number?: string;
176
+ /**
177
+ * When the message was received, in UTC (yyyy-MM-ddTHH:mm:ssZ).
178
+ */
179
+ received_at?: string;
180
+ /**
181
+ * The message body. Sent as null when the inbound message carried no text, for
182
+ * example a media-only message. The field is always present, so read it and check
183
+ * for null rather than checking whether the key exists.
184
+ */
185
+ text?: string | null;
186
+ /**
187
+ * When the message was received, in UTC (yyyy-MM-ddTHH:mm:ssZ). Same value as
188
+ * ReceivedAt, kept for envelope consistency with outbound events.
189
+ */
190
+ updated_at?: string;
191
+ }
192
+ /**
193
+ * The envelope Sent POSTs to a subscribed webhook endpoint. Every event shares
194
+ * this shape and varies only in Payload.
195
+ */
196
+ export interface MessageEvent {
197
+ /**
198
+ * The specific event within the family, for example message.delivered or
199
+ * message.received. Absent on events that have no subtype, so treat it as
200
+ * optional.
201
+ */
202
+ event?: string | null;
203
+ /**
204
+ * The event family, for example message or templates. Route on this first, then on
205
+ * event for the specific change.
206
+ */
207
+ field?: string;
208
+ /**
209
+ * Body of an outbound message lifecycle event. Delivered once per status change,
210
+ * so a single message produces several of these as it moves toward a terminal
211
+ * status.
212
+ */
213
+ payload?: MessageEventPayload | null;
214
+ /**
215
+ * When Sent emitted the event, in UTC (yyyy-MM-ddTHH:mm:ssZ). This is the emission
216
+ * time, not the time the underlying change happened. Use the timestamp inside the
217
+ * payload for the latter.
218
+ */
219
+ timestamp?: string;
220
+ }
221
+ /**
222
+ * Body of an outbound message lifecycle event. Delivered once per status change,
223
+ * so a single message produces several of these as it moves toward a terminal
224
+ * status.
225
+ */
226
+ export interface MessageEventPayload {
227
+ /**
228
+ * The account the message belongs to.
229
+ */
230
+ account_id?: string;
231
+ /**
232
+ * The agent attributed to the send, when the send was attributed to one.
233
+ */
234
+ agent_id?: string | null;
235
+ /**
236
+ * The channel the message went out on, for example sms or whatsapp. A message that
237
+ * falls back to another channel reports the channel actually used.
238
+ */
239
+ channel?: string;
240
+ /**
241
+ * The message this event describes. Stable across every event in the message's
242
+ * lifecycle, so use it to correlate them.
243
+ */
244
+ message_id?: string;
245
+ /**
246
+ * The status the message just reached, for example SENT, DELIVERED, or FAILED.
247
+ * Sent means dispatched and delivered means confirmed, so treat them as distinct
248
+ * outcomes.
249
+ */
250
+ message_status?: string;
251
+ /**
252
+ * The recipient's number in E.164 format.
253
+ */
254
+ outbound_number?: string;
255
+ /**
256
+ * The template the message was sent from, when it was sent from one.
257
+ */
258
+ template_id?: string | null;
259
+ /**
260
+ * Name of the template the message was sent from. Omitted when the message wasn't
261
+ * template-based.
262
+ */
263
+ template_name?: string | null;
264
+ /**
265
+ * When the message reached MessageStatus, in UTC (yyyy-MM-ddTHH:mm:ssZ).
266
+ */
267
+ updated_at?: string;
119
268
  }
120
269
  /**
121
- * Request and response metadata
270
+ * The envelope Sent POSTs to a subscribed webhook endpoint. Every event shares
271
+ * this shape and varies only in Payload.
122
272
  */
123
- export interface APIMeta {
273
+ export interface TemplateEvent {
274
+ /**
275
+ * The specific event within the family, for example message.delivered or
276
+ * message.received. Absent on events that have no subtype, so treat it as
277
+ * optional.
278
+ */
279
+ event?: string | null;
280
+ /**
281
+ * The event family, for example message or templates. Route on this first, then on
282
+ * event for the specific change.
283
+ */
284
+ field?: string;
124
285
  /**
125
- * Unique identifier for this request (for tracing and support)
286
+ * Body of a template status event. Delivered when a template's review outcome
287
+ * changes, so you can react without polling.
126
288
  */
127
- request_id?: string;
289
+ payload?: TemplateEventPayload | null;
128
290
  /**
129
- * Server timestamp when the response was generated
291
+ * When Sent emitted the event, in UTC (yyyy-MM-ddTHH:mm:ssZ). This is the emission
292
+ * time, not the time the underlying change happened. Use the timestamp inside the
293
+ * payload for the latter.
130
294
  */
131
295
  timestamp?: string;
296
+ }
297
+ /**
298
+ * Body of a template status event. Delivered when a template's review outcome
299
+ * changes, so you can react without polling.
300
+ */
301
+ export interface TemplateEventPayload {
302
+ /**
303
+ * The account the template belongs to.
304
+ */
305
+ account_id?: string;
132
306
  /**
133
- * API version used for this request
307
+ * The template's category, for example UTILITY, MARKETING, or AUTHENTICATION.
134
308
  */
135
- version?: string;
309
+ category?: string;
310
+ /**
311
+ * The channel the template applies to.
312
+ */
313
+ channel?: string;
314
+ /**
315
+ * The template's language code, for example en_US.
316
+ */
317
+ language?: string;
318
+ /**
319
+ * Why the template reached Status, when a reason was given. Populated on a
320
+ * rejection.
321
+ */
322
+ reason?: string | null;
323
+ /**
324
+ * The review status the template just reached, for example APPROVED or REJECTED.
325
+ */
326
+ status?: string;
327
+ /**
328
+ * The template in Sent.
329
+ */
330
+ template_id?: string;
331
+ /**
332
+ * The template's display name.
333
+ */
334
+ template_name?: string;
335
+ /**
336
+ * The template's identifier with Meta, assigned when the template is submitted for
337
+ * review.
338
+ */
339
+ whatsapp_template_id?: string;
136
340
  }
137
341
  /**
138
342
  * Standard API response envelope for all v3 endpoints
139
343
  */
140
- export interface APIResponseWebhook {
344
+ export interface WebhookCreateResponse {
141
345
  /**
142
346
  * The response data (null if error)
143
347
  */
144
- data?: WebhookResponse | null;
348
+ data?: WebhookCreateResponse.Data | null;
145
349
  /**
146
350
  * Error information
147
351
  */
148
- error?: ErrorDetail | null;
352
+ error?: WebhookCreateResponse.Error | null;
149
353
  /**
150
354
  * Request and response metadata
151
355
  */
152
- meta?: APIMeta;
356
+ meta?: WebhookCreateResponse.Meta;
153
357
  /**
154
358
  * Indicates whether the request was successful
155
359
  */
156
360
  success?: boolean;
157
361
  }
362
+ export declare namespace WebhookCreateResponse {
363
+ /**
364
+ * The response data (null if error)
365
+ */
366
+ interface Data {
367
+ id?: string;
368
+ consecutive_failures?: number;
369
+ created_at?: string;
370
+ /**
371
+ * Which customer owns this — the key's own, or the profile named in x-profile-id.
372
+ * Says whose resource this is, which the resource's own id does not.
373
+ */
374
+ customer_id?: string;
375
+ display_name?: string;
376
+ endpoint_url?: string;
377
+ event_filters?: {
378
+ [key: string]: Array<string>;
379
+ } | null;
380
+ event_types?: Array<string>;
381
+ is_active?: boolean;
382
+ last_delivery_attempt_at?: string | null;
383
+ last_successful_delivery_at?: string | null;
384
+ retry_count?: number;
385
+ signing_secret?: string | null;
386
+ timeout_seconds?: number;
387
+ updated_at?: string | null;
388
+ }
389
+ /**
390
+ * Error information
391
+ */
392
+ interface Error {
393
+ /**
394
+ * Machine-readable error code (e.g., "RESOURCE_001")
395
+ */
396
+ code?: string;
397
+ /**
398
+ * Additional validation error details (field-level errors)
399
+ */
400
+ details?: {
401
+ [key: string]: Array<string>;
402
+ } | null;
403
+ /**
404
+ * URL to documentation about this error
405
+ */
406
+ doc_url?: string | null;
407
+ /**
408
+ * Human-readable error message
409
+ */
410
+ message?: string;
411
+ }
412
+ /**
413
+ * Request and response metadata
414
+ */
415
+ interface Meta {
416
+ /**
417
+ * Unique identifier for this request (for tracing and support)
418
+ */
419
+ request_id?: string;
420
+ /**
421
+ * Server timestamp when the response was generated
422
+ */
423
+ timestamp?: string;
424
+ /**
425
+ * API version used for this request
426
+ */
427
+ version?: string;
428
+ }
429
+ }
158
430
  /**
159
- * Error information
431
+ * Standard API response envelope for all v3 endpoints
160
432
  */
161
- export interface ErrorDetail {
433
+ export interface WebhookRetrieveResponse {
162
434
  /**
163
- * Machine-readable error code (e.g., "RESOURCE_001")
435
+ * The response data (null if error)
164
436
  */
165
- code?: string;
437
+ data?: WebhookRetrieveResponse.Data | null;
166
438
  /**
167
- * Additional validation error details (field-level errors)
439
+ * Error information
168
440
  */
169
- details?: {
170
- [key: string]: Array<string>;
171
- } | null;
441
+ error?: WebhookRetrieveResponse.Error | null;
172
442
  /**
173
- * URL to documentation about this error
443
+ * Request and response metadata
174
444
  */
175
- doc_url?: string | null;
445
+ meta?: WebhookRetrieveResponse.Meta;
176
446
  /**
177
- * Human-readable error message
447
+ * Indicates whether the request was successful
178
448
  */
179
- message?: string;
449
+ success?: boolean;
180
450
  }
181
- export interface MutationRequest {
451
+ export declare namespace WebhookRetrieveResponse {
182
452
  /**
183
- * Sandbox flag - when true, the operation is simulated without side effects Useful
184
- * for testing integrations without actual execution
453
+ * The response data (null if error)
185
454
  */
186
- sandbox?: boolean;
455
+ interface Data {
456
+ id?: string;
457
+ consecutive_failures?: number;
458
+ created_at?: string;
459
+ /**
460
+ * Which customer owns this — the key's own, or the profile named in x-profile-id.
461
+ * Says whose resource this is, which the resource's own id does not.
462
+ */
463
+ customer_id?: string;
464
+ display_name?: string;
465
+ endpoint_url?: string;
466
+ event_filters?: {
467
+ [key: string]: Array<string>;
468
+ } | null;
469
+ event_types?: Array<string>;
470
+ is_active?: boolean;
471
+ last_delivery_attempt_at?: string | null;
472
+ last_successful_delivery_at?: string | null;
473
+ retry_count?: number;
474
+ signing_secret?: string | null;
475
+ timeout_seconds?: number;
476
+ updated_at?: string | null;
477
+ }
478
+ /**
479
+ * Error information
480
+ */
481
+ interface Error {
482
+ /**
483
+ * Machine-readable error code (e.g., "RESOURCE_001")
484
+ */
485
+ code?: string;
486
+ /**
487
+ * Additional validation error details (field-level errors)
488
+ */
489
+ details?: {
490
+ [key: string]: Array<string>;
491
+ } | null;
492
+ /**
493
+ * URL to documentation about this error
494
+ */
495
+ doc_url?: string | null;
496
+ /**
497
+ * Human-readable error message
498
+ */
499
+ message?: string;
500
+ }
501
+ /**
502
+ * Request and response metadata
503
+ */
504
+ interface Meta {
505
+ /**
506
+ * Unique identifier for this request (for tracing and support)
507
+ */
508
+ request_id?: string;
509
+ /**
510
+ * Server timestamp when the response was generated
511
+ */
512
+ timestamp?: string;
513
+ /**
514
+ * API version used for this request
515
+ */
516
+ version?: string;
517
+ }
187
518
  }
188
519
  /**
189
- * Pagination metadata for list responses
520
+ * Standard API response envelope for all v3 endpoints
190
521
  */
191
- export interface PaginationMeta {
522
+ export interface WebhookUpdateResponse {
192
523
  /**
193
- * Cursor-based pagination pointers
524
+ * The response data (null if error)
194
525
  */
195
- cursors?: PaginationMeta.Cursors | null;
526
+ data?: WebhookUpdateResponse.Data | null;
196
527
  /**
197
- * Whether there are more pages after this one
528
+ * Error information
198
529
  */
199
- has_more?: boolean;
530
+ error?: WebhookUpdateResponse.Error | null;
200
531
  /**
201
- * Current page number (1-indexed)
532
+ * Request and response metadata
202
533
  */
203
- page?: number;
534
+ meta?: WebhookUpdateResponse.Meta;
204
535
  /**
205
- * Number of items per page
536
+ * Indicates whether the request was successful
206
537
  */
207
- page_size?: number;
538
+ success?: boolean;
539
+ }
540
+ export declare namespace WebhookUpdateResponse {
208
541
  /**
209
- * Total number of items across all pages
542
+ * The response data (null if error)
210
543
  */
211
- total_count?: number;
544
+ interface Data {
545
+ id?: string;
546
+ consecutive_failures?: number;
547
+ created_at?: string;
548
+ /**
549
+ * Which customer owns this — the key's own, or the profile named in x-profile-id.
550
+ * Says whose resource this is, which the resource's own id does not.
551
+ */
552
+ customer_id?: string;
553
+ display_name?: string;
554
+ endpoint_url?: string;
555
+ event_filters?: {
556
+ [key: string]: Array<string>;
557
+ } | null;
558
+ event_types?: Array<string>;
559
+ is_active?: boolean;
560
+ last_delivery_attempt_at?: string | null;
561
+ last_successful_delivery_at?: string | null;
562
+ retry_count?: number;
563
+ signing_secret?: string | null;
564
+ timeout_seconds?: number;
565
+ updated_at?: string | null;
566
+ }
212
567
  /**
213
- * Total number of pages
568
+ * Error information
214
569
  */
215
- total_pages?: number;
216
- }
217
- export declare namespace PaginationMeta {
570
+ interface Error {
571
+ /**
572
+ * Machine-readable error code (e.g., "RESOURCE_001")
573
+ */
574
+ code?: string;
575
+ /**
576
+ * Additional validation error details (field-level errors)
577
+ */
578
+ details?: {
579
+ [key: string]: Array<string>;
580
+ } | null;
581
+ /**
582
+ * URL to documentation about this error
583
+ */
584
+ doc_url?: string | null;
585
+ /**
586
+ * Human-readable error message
587
+ */
588
+ message?: string;
589
+ }
218
590
  /**
219
- * Cursor-based pagination pointers
591
+ * Request and response metadata
220
592
  */
221
- interface Cursors {
593
+ interface Meta {
594
+ /**
595
+ * Unique identifier for this request (for tracing and support)
596
+ */
597
+ request_id?: string;
222
598
  /**
223
- * Cursor to fetch the next page
599
+ * Server timestamp when the response was generated
224
600
  */
225
- after?: string | null;
601
+ timestamp?: string;
226
602
  /**
227
- * Cursor to fetch the previous page
603
+ * API version used for this request
228
604
  */
229
- before?: string | null;
605
+ version?: string;
230
606
  }
231
607
  }
232
- export interface WebhookEventType {
233
- description?: string | null;
234
- display_name?: string;
235
- event_type?: string | null;
236
- is_active?: boolean;
237
- name?: string;
238
- sub_types?: Array<WebhookEventType> | null;
239
- }
240
- export interface WebhookResponse {
241
- id?: string;
242
- consecutive_failures?: number;
243
- created_at?: string;
244
- display_name?: string;
245
- endpoint_url?: string;
246
- event_filters?: {
247
- [key: string]: Array<string>;
248
- } | null;
249
- event_types?: Array<string>;
250
- is_active?: boolean;
251
- last_delivery_attempt_at?: string | null;
252
- last_successful_delivery_at?: string | null;
253
- retry_count?: number;
254
- signing_secret?: string | null;
255
- timeout_seconds?: number;
256
- updated_at?: string | null;
257
- }
258
608
  /**
259
609
  * Standard API response envelope for all v3 endpoints
260
610
  */
261
611
  export interface WebhookListResponse {
262
612
  /**
263
- * The response data (null if error)
613
+ * A paginated list of webhooks.
264
614
  */
265
615
  data?: WebhookListResponse.Data | null;
266
616
  /**
267
617
  * Error information
268
618
  */
269
- error?: ErrorDetail | null;
619
+ error?: WebhookListResponse.Error | null;
270
620
  /**
271
621
  * Request and response metadata
272
622
  */
273
- meta?: APIMeta;
623
+ meta?: WebhookListResponse.Meta;
274
624
  /**
275
625
  * Indicates whether the request was successful
276
626
  */
@@ -278,14 +628,126 @@ export interface WebhookListResponse {
278
628
  }
279
629
  export declare namespace WebhookListResponse {
280
630
  /**
281
- * The response data (null if error)
631
+ * A paginated list of webhooks.
282
632
  */
283
633
  interface Data {
284
634
  /**
285
635
  * Pagination metadata for list responses
286
636
  */
287
- pagination?: WebhooksAPI.PaginationMeta;
288
- webhooks?: Array<WebhooksAPI.WebhookResponse>;
637
+ pagination?: Data.Pagination;
638
+ /**
639
+ * The webhooks on this page.
640
+ */
641
+ webhooks?: Array<Data.Webhook>;
642
+ }
643
+ namespace Data {
644
+ /**
645
+ * Pagination metadata for list responses
646
+ */
647
+ interface Pagination {
648
+ /**
649
+ * @deprecated Cursor-based pagination. Never populated — see Cursors.
650
+ */
651
+ cursors?: Pagination.Cursors | null;
652
+ /**
653
+ * Whether there are more pages after this one
654
+ */
655
+ has_more?: boolean;
656
+ /**
657
+ * Current page number (1-indexed)
658
+ */
659
+ page?: number;
660
+ /**
661
+ * Number of items per page
662
+ */
663
+ page_size?: number;
664
+ /**
665
+ * Total number of items across all pages
666
+ */
667
+ total_count?: number;
668
+ /**
669
+ * Total number of pages
670
+ */
671
+ total_pages?: number;
672
+ }
673
+ namespace Pagination {
674
+ /**
675
+ * @deprecated Cursor-based pagination. Never populated — see Cursors.
676
+ */
677
+ interface Cursors {
678
+ /**
679
+ * Cursor to fetch the next page.
680
+ */
681
+ after?: string | null;
682
+ /**
683
+ * Cursor to fetch the previous page.
684
+ */
685
+ before?: string | null;
686
+ }
687
+ }
688
+ interface Webhook {
689
+ id?: string;
690
+ consecutive_failures?: number;
691
+ created_at?: string;
692
+ /**
693
+ * Which customer owns this — the key's own, or the profile named in x-profile-id.
694
+ * Says whose resource this is, which the resource's own id does not.
695
+ */
696
+ customer_id?: string;
697
+ display_name?: string;
698
+ endpoint_url?: string;
699
+ event_filters?: {
700
+ [key: string]: Array<string>;
701
+ } | null;
702
+ event_types?: Array<string>;
703
+ is_active?: boolean;
704
+ last_delivery_attempt_at?: string | null;
705
+ last_successful_delivery_at?: string | null;
706
+ retry_count?: number;
707
+ signing_secret?: string | null;
708
+ timeout_seconds?: number;
709
+ updated_at?: string | null;
710
+ }
711
+ }
712
+ /**
713
+ * Error information
714
+ */
715
+ interface Error {
716
+ /**
717
+ * Machine-readable error code (e.g., "RESOURCE_001")
718
+ */
719
+ code?: string;
720
+ /**
721
+ * Additional validation error details (field-level errors)
722
+ */
723
+ details?: {
724
+ [key: string]: Array<string>;
725
+ } | null;
726
+ /**
727
+ * URL to documentation about this error
728
+ */
729
+ doc_url?: string | null;
730
+ /**
731
+ * Human-readable error message
732
+ */
733
+ message?: string;
734
+ }
735
+ /**
736
+ * Request and response metadata
737
+ */
738
+ interface Meta {
739
+ /**
740
+ * Unique identifier for this request (for tracing and support)
741
+ */
742
+ request_id?: string;
743
+ /**
744
+ * Server timestamp when the response was generated
745
+ */
746
+ timestamp?: string;
747
+ /**
748
+ * API version used for this request
749
+ */
750
+ version?: string;
289
751
  }
290
752
  }
291
753
  /**
@@ -293,17 +755,17 @@ export declare namespace WebhookListResponse {
293
755
  */
294
756
  export interface WebhookListEventTypesResponse {
295
757
  /**
296
- * The response data (null if error)
758
+ * The webhook event types a customer can subscribe to.
297
759
  */
298
760
  data?: WebhookListEventTypesResponse.Data | null;
299
761
  /**
300
762
  * Error information
301
763
  */
302
- error?: ErrorDetail | null;
764
+ error?: WebhookListEventTypesResponse.Error | null;
303
765
  /**
304
766
  * Request and response metadata
305
767
  */
306
- meta?: APIMeta;
768
+ meta?: WebhookListEventTypesResponse.Meta;
307
769
  /**
308
770
  * Indicates whether the request was successful
309
771
  */
@@ -311,10 +773,111 @@ export interface WebhookListEventTypesResponse {
311
773
  }
312
774
  export declare namespace WebhookListEventTypesResponse {
313
775
  /**
314
- * The response data (null if error)
776
+ * The webhook event types a customer can subscribe to.
315
777
  */
316
778
  interface Data {
317
- event_types?: Array<WebhooksAPI.WebhookEventType>;
779
+ /**
780
+ * The event_types on this page.
781
+ */
782
+ event_types?: Array<Data.EventType>;
783
+ /**
784
+ * Pagination metadata for list responses
785
+ */
786
+ pagination?: Data.Pagination;
787
+ }
788
+ namespace Data {
789
+ interface EventType {
790
+ description?: string | null;
791
+ display_name?: string;
792
+ event_type?: string | null;
793
+ is_active?: boolean;
794
+ name?: string;
795
+ sub_types?: Array<unknown> | null;
796
+ }
797
+ /**
798
+ * Pagination metadata for list responses
799
+ */
800
+ interface Pagination {
801
+ /**
802
+ * @deprecated Cursor-based pagination. Never populated — see Cursors.
803
+ */
804
+ cursors?: Pagination.Cursors | null;
805
+ /**
806
+ * Whether there are more pages after this one
807
+ */
808
+ has_more?: boolean;
809
+ /**
810
+ * Current page number (1-indexed)
811
+ */
812
+ page?: number;
813
+ /**
814
+ * Number of items per page
815
+ */
816
+ page_size?: number;
817
+ /**
818
+ * Total number of items across all pages
819
+ */
820
+ total_count?: number;
821
+ /**
822
+ * Total number of pages
823
+ */
824
+ total_pages?: number;
825
+ }
826
+ namespace Pagination {
827
+ /**
828
+ * @deprecated Cursor-based pagination. Never populated — see Cursors.
829
+ */
830
+ interface Cursors {
831
+ /**
832
+ * Cursor to fetch the next page.
833
+ */
834
+ after?: string | null;
835
+ /**
836
+ * Cursor to fetch the previous page.
837
+ */
838
+ before?: string | null;
839
+ }
840
+ }
841
+ }
842
+ /**
843
+ * Error information
844
+ */
845
+ interface Error {
846
+ /**
847
+ * Machine-readable error code (e.g., "RESOURCE_001")
848
+ */
849
+ code?: string;
850
+ /**
851
+ * Additional validation error details (field-level errors)
852
+ */
853
+ details?: {
854
+ [key: string]: Array<string>;
855
+ } | null;
856
+ /**
857
+ * URL to documentation about this error
858
+ */
859
+ doc_url?: string | null;
860
+ /**
861
+ * Human-readable error message
862
+ */
863
+ message?: string;
864
+ }
865
+ /**
866
+ * Request and response metadata
867
+ */
868
+ interface Meta {
869
+ /**
870
+ * Unique identifier for this request (for tracing and support)
871
+ */
872
+ request_id?: string;
873
+ /**
874
+ * Server timestamp when the response was generated
875
+ */
876
+ timestamp?: string;
877
+ /**
878
+ * API version used for this request
879
+ */
880
+ version?: string;
318
881
  }
319
882
  }
320
883
  /**
@@ -322,17 +885,17 @@ export declare namespace WebhookListEventTypesResponse {
322
885
  */
323
886
  export interface WebhookListEventsResponse {
324
887
  /**
325
- * The response data (null if error)
888
+ * A paginated list of webhook delivery records.
326
889
  */
327
890
  data?: WebhookListEventsResponse.Data | null;
328
891
  /**
329
892
  * Error information
330
893
  */
331
- error?: ErrorDetail | null;
894
+ error?: WebhookListEventsResponse.Error | null;
332
895
  /**
333
896
  * Request and response metadata
334
897
  */
335
- meta?: APIMeta;
898
+ meta?: WebhookListEventsResponse.Meta;
336
899
  /**
337
900
  * Indicates whether the request was successful
338
901
  */
@@ -340,14 +903,17 @@ export interface WebhookListEventsResponse {
340
903
  }
341
904
  export declare namespace WebhookListEventsResponse {
342
905
  /**
343
- * The response data (null if error)
906
+ * A paginated list of webhook delivery records.
344
907
  */
345
908
  interface Data {
909
+ /**
910
+ * The events on this page.
911
+ */
346
912
  events?: Array<Data.Event>;
347
913
  /**
348
914
  * Pagination metadata for list responses
349
915
  */
350
- pagination?: WebhooksAPI.PaginationMeta;
916
+ pagination?: Data.Pagination;
351
917
  }
352
918
  namespace Data {
353
919
  interface Event {
@@ -356,13 +922,103 @@ export declare namespace WebhookListEventsResponse {
356
922
  delivery_attempts?: number;
357
923
  delivery_status?: string;
358
924
  error_message?: string | null;
359
- event_data?: unknown;
925
+ /**
926
+ * The exact event body that was delivered, or attempted, for this record. One of
927
+ * the three webhook envelopes: a message status change, an inbound message, or a
928
+ * template status change. Read field and event to tell which, the same way your
929
+ * endpoint does.
930
+ */
931
+ event_data?: WebhooksAPI.MessageEvent | WebhooksAPI.InboundMessageEvent | WebhooksAPI.TemplateEvent;
360
932
  event_type?: string;
361
933
  http_status_code?: number | null;
362
934
  processing_completed_at?: string | null;
363
935
  processing_started_at?: string | null;
364
936
  response_body?: string | null;
365
937
  }
938
+ /**
939
+ * Pagination metadata for list responses
940
+ */
941
+ interface Pagination {
942
+ /**
943
+ * @deprecated Cursor-based pagination. Never populated — see Cursors.
944
+ */
945
+ cursors?: Pagination.Cursors | null;
946
+ /**
947
+ * Whether there are more pages after this one
948
+ */
949
+ has_more?: boolean;
950
+ /**
951
+ * Current page number (1-indexed)
952
+ */
953
+ page?: number;
954
+ /**
955
+ * Number of items per page
956
+ */
957
+ page_size?: number;
958
+ /**
959
+ * Total number of items across all pages
960
+ */
961
+ total_count?: number;
962
+ /**
963
+ * Total number of pages
964
+ */
965
+ total_pages?: number;
966
+ }
967
+ namespace Pagination {
968
+ /**
969
+ * @deprecated Cursor-based pagination. Never populated — see Cursors.
970
+ */
971
+ interface Cursors {
972
+ /**
973
+ * Cursor to fetch the next page.
974
+ */
975
+ after?: string | null;
976
+ /**
977
+ * Cursor to fetch the previous page.
978
+ */
979
+ before?: string | null;
980
+ }
981
+ }
982
+ }
983
+ /**
984
+ * Error information
985
+ */
986
+ interface Error {
987
+ /**
988
+ * Machine-readable error code (e.g., "RESOURCE_001")
989
+ */
990
+ code?: string;
991
+ /**
992
+ * Additional validation error details (field-level errors)
993
+ */
994
+ details?: {
995
+ [key: string]: Array<string>;
996
+ } | null;
997
+ /**
998
+ * URL to documentation about this error
999
+ */
1000
+ doc_url?: string | null;
1001
+ /**
1002
+ * Human-readable error message
1003
+ */
1004
+ message?: string;
1005
+ }
1006
+ /**
1007
+ * Request and response metadata
1008
+ */
1009
+ interface Meta {
1010
+ /**
1011
+ * Unique identifier for this request (for tracing and support)
1012
+ */
1013
+ request_id?: string;
1014
+ /**
1015
+ * Server timestamp when the response was generated
1016
+ */
1017
+ timestamp?: string;
1018
+ /**
1019
+ * API version used for this request
1020
+ */
1021
+ version?: string;
366
1022
  }
367
1023
  }
368
1024
  /**
@@ -376,11 +1032,11 @@ export interface WebhookRotateSecretResponse {
376
1032
  /**
377
1033
  * Error information
378
1034
  */
379
- error?: ErrorDetail | null;
1035
+ error?: WebhookRotateSecretResponse.Error | null;
380
1036
  /**
381
1037
  * Request and response metadata
382
1038
  */
383
- meta?: APIMeta;
1039
+ meta?: WebhookRotateSecretResponse.Meta;
384
1040
  /**
385
1041
  * Indicates whether the request was successful
386
1042
  */
@@ -393,6 +1049,46 @@ export declare namespace WebhookRotateSecretResponse {
393
1049
  interface Data {
394
1050
  signing_secret?: string;
395
1051
  }
1052
+ /**
1053
+ * Error information
1054
+ */
1055
+ interface Error {
1056
+ /**
1057
+ * Machine-readable error code (e.g., "RESOURCE_001")
1058
+ */
1059
+ code?: string;
1060
+ /**
1061
+ * Additional validation error details (field-level errors)
1062
+ */
1063
+ details?: {
1064
+ [key: string]: Array<string>;
1065
+ } | null;
1066
+ /**
1067
+ * URL to documentation about this error
1068
+ */
1069
+ doc_url?: string | null;
1070
+ /**
1071
+ * Human-readable error message
1072
+ */
1073
+ message?: string;
1074
+ }
1075
+ /**
1076
+ * Request and response metadata
1077
+ */
1078
+ interface Meta {
1079
+ /**
1080
+ * Unique identifier for this request (for tracing and support)
1081
+ */
1082
+ request_id?: string;
1083
+ /**
1084
+ * Server timestamp when the response was generated
1085
+ */
1086
+ timestamp?: string;
1087
+ /**
1088
+ * API version used for this request
1089
+ */
1090
+ version?: string;
1091
+ }
396
1092
  }
397
1093
  /**
398
1094
  * Standard API response envelope for all v3 endpoints
@@ -405,11 +1101,11 @@ export interface WebhookTestResponse {
405
1101
  /**
406
1102
  * Error information
407
1103
  */
408
- error?: ErrorDetail | null;
1104
+ error?: WebhookTestResponse.Error | null;
409
1105
  /**
410
1106
  * Request and response metadata
411
1107
  */
412
- meta?: APIMeta;
1108
+ meta?: WebhookTestResponse.Meta;
413
1109
  /**
414
1110
  * Indicates whether the request was successful
415
1111
  */
@@ -423,6 +1119,135 @@ export declare namespace WebhookTestResponse {
423
1119
  message?: string;
424
1120
  success?: boolean;
425
1121
  }
1122
+ /**
1123
+ * Error information
1124
+ */
1125
+ interface Error {
1126
+ /**
1127
+ * Machine-readable error code (e.g., "RESOURCE_001")
1128
+ */
1129
+ code?: string;
1130
+ /**
1131
+ * Additional validation error details (field-level errors)
1132
+ */
1133
+ details?: {
1134
+ [key: string]: Array<string>;
1135
+ } | null;
1136
+ /**
1137
+ * URL to documentation about this error
1138
+ */
1139
+ doc_url?: string | null;
1140
+ /**
1141
+ * Human-readable error message
1142
+ */
1143
+ message?: string;
1144
+ }
1145
+ /**
1146
+ * Request and response metadata
1147
+ */
1148
+ interface Meta {
1149
+ /**
1150
+ * Unique identifier for this request (for tracing and support)
1151
+ */
1152
+ request_id?: string;
1153
+ /**
1154
+ * Server timestamp when the response was generated
1155
+ */
1156
+ timestamp?: string;
1157
+ /**
1158
+ * API version used for this request
1159
+ */
1160
+ version?: string;
1161
+ }
1162
+ }
1163
+ /**
1164
+ * Standard API response envelope for all v3 endpoints
1165
+ */
1166
+ export interface WebhookToggleStatusResponse {
1167
+ /**
1168
+ * The response data (null if error)
1169
+ */
1170
+ data?: WebhookToggleStatusResponse.Data | null;
1171
+ /**
1172
+ * Error information
1173
+ */
1174
+ error?: WebhookToggleStatusResponse.Error | null;
1175
+ /**
1176
+ * Request and response metadata
1177
+ */
1178
+ meta?: WebhookToggleStatusResponse.Meta;
1179
+ /**
1180
+ * Indicates whether the request was successful
1181
+ */
1182
+ success?: boolean;
1183
+ }
1184
+ export declare namespace WebhookToggleStatusResponse {
1185
+ /**
1186
+ * The response data (null if error)
1187
+ */
1188
+ interface Data {
1189
+ id?: string;
1190
+ consecutive_failures?: number;
1191
+ created_at?: string;
1192
+ /**
1193
+ * Which customer owns this — the key's own, or the profile named in x-profile-id.
1194
+ * Says whose resource this is, which the resource's own id does not.
1195
+ */
1196
+ customer_id?: string;
1197
+ display_name?: string;
1198
+ endpoint_url?: string;
1199
+ event_filters?: {
1200
+ [key: string]: Array<string>;
1201
+ } | null;
1202
+ event_types?: Array<string>;
1203
+ is_active?: boolean;
1204
+ last_delivery_attempt_at?: string | null;
1205
+ last_successful_delivery_at?: string | null;
1206
+ retry_count?: number;
1207
+ signing_secret?: string | null;
1208
+ timeout_seconds?: number;
1209
+ updated_at?: string | null;
1210
+ }
1211
+ /**
1212
+ * Error information
1213
+ */
1214
+ interface Error {
1215
+ /**
1216
+ * Machine-readable error code (e.g., "RESOURCE_001")
1217
+ */
1218
+ code?: string;
1219
+ /**
1220
+ * Additional validation error details (field-level errors)
1221
+ */
1222
+ details?: {
1223
+ [key: string]: Array<string>;
1224
+ } | null;
1225
+ /**
1226
+ * URL to documentation about this error
1227
+ */
1228
+ doc_url?: string | null;
1229
+ /**
1230
+ * Human-readable error message
1231
+ */
1232
+ message?: string;
1233
+ }
1234
+ /**
1235
+ * Request and response metadata
1236
+ */
1237
+ interface Meta {
1238
+ /**
1239
+ * Unique identifier for this request (for tracing and support)
1240
+ */
1241
+ request_id?: string;
1242
+ /**
1243
+ * Server timestamp when the response was generated
1244
+ */
1245
+ timestamp?: string;
1246
+ /**
1247
+ * API version used for this request
1248
+ */
1249
+ version?: string;
1250
+ }
426
1251
  }
427
1252
  export interface WebhookCreateParams {
428
1253
  /**
@@ -645,6 +1470,6 @@ export interface WebhookToggleStatusParams {
645
1470
  'x-profile-id'?: string;
646
1471
  }
647
1472
  export declare namespace Webhooks {
648
- export { type APIMeta as APIMeta, type APIResponseWebhook as APIResponseWebhook, type ErrorDetail as ErrorDetail, type MutationRequest as MutationRequest, type PaginationMeta as PaginationMeta, type WebhookEventType as WebhookEventType, type WebhookResponse as WebhookResponse, type WebhookListResponse as WebhookListResponse, type WebhookListEventTypesResponse as WebhookListEventTypesResponse, type WebhookListEventsResponse as WebhookListEventsResponse, type WebhookRotateSecretResponse as WebhookRotateSecretResponse, type WebhookTestResponse as WebhookTestResponse, type WebhookCreateParams as WebhookCreateParams, type WebhookRetrieveParams as WebhookRetrieveParams, type WebhookUpdateParams as WebhookUpdateParams, type WebhookListParams as WebhookListParams, type WebhookDeleteParams as WebhookDeleteParams, type WebhookListEventTypesParams as WebhookListEventTypesParams, type WebhookListEventsParams as WebhookListEventsParams, type WebhookRotateSecretParams as WebhookRotateSecretParams, type WebhookTestParams as WebhookTestParams, type WebhookToggleStatusParams as WebhookToggleStatusParams, };
1473
+ export { type InboundMessageEvent as InboundMessageEvent, type InboundMessageEventPayload as InboundMessageEventPayload, type MessageEvent as MessageEvent, type MessageEventPayload as MessageEventPayload, type TemplateEvent as TemplateEvent, type TemplateEventPayload as TemplateEventPayload, type WebhookCreateResponse as WebhookCreateResponse, type WebhookRetrieveResponse as WebhookRetrieveResponse, type WebhookUpdateResponse as WebhookUpdateResponse, type WebhookListResponse as WebhookListResponse, type WebhookListEventTypesResponse as WebhookListEventTypesResponse, type WebhookListEventsResponse as WebhookListEventsResponse, type WebhookRotateSecretResponse as WebhookRotateSecretResponse, type WebhookTestResponse as WebhookTestResponse, type WebhookToggleStatusResponse as WebhookToggleStatusResponse, type WebhookCreateParams as WebhookCreateParams, type WebhookRetrieveParams as WebhookRetrieveParams, type WebhookUpdateParams as WebhookUpdateParams, type WebhookListParams as WebhookListParams, type WebhookDeleteParams as WebhookDeleteParams, type WebhookListEventTypesParams as WebhookListEventTypesParams, type WebhookListEventsParams as WebhookListEventsParams, type WebhookRotateSecretParams as WebhookRotateSecretParams, type WebhookTestParams as WebhookTestParams, type WebhookToggleStatusParams as WebhookToggleStatusParams, };
649
1474
  }
650
1475
  //# sourceMappingURL=webhooks.d.ts.map