@zavudev/sdk 0.16.0 → 0.18.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 (185) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +11 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +11 -5
  5. package/client.d.ts.map +1 -1
  6. package/client.js +7 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +7 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/addresses.d.mts +104 -0
  12. package/resources/addresses.d.mts.map +1 -0
  13. package/resources/addresses.d.ts +104 -0
  14. package/resources/addresses.d.ts.map +1 -0
  15. package/resources/addresses.js +72 -0
  16. package/resources/addresses.js.map +1 -0
  17. package/resources/addresses.mjs +68 -0
  18. package/resources/addresses.mjs.map +1 -0
  19. package/resources/broadcasts/broadcasts.d.mts +27 -5
  20. package/resources/broadcasts/broadcasts.d.mts.map +1 -1
  21. package/resources/broadcasts/broadcasts.d.ts +27 -5
  22. package/resources/broadcasts/broadcasts.d.ts.map +1 -1
  23. package/resources/broadcasts/broadcasts.js +15 -0
  24. package/resources/broadcasts/broadcasts.js.map +1 -1
  25. package/resources/broadcasts/broadcasts.mjs +15 -0
  26. package/resources/broadcasts/broadcasts.mjs.map +1 -1
  27. package/resources/broadcasts/index.d.mts +1 -1
  28. package/resources/broadcasts/index.d.mts.map +1 -1
  29. package/resources/broadcasts/index.d.ts +1 -1
  30. package/resources/broadcasts/index.d.ts.map +1 -1
  31. package/resources/broadcasts/index.js.map +1 -1
  32. package/resources/broadcasts/index.mjs.map +1 -1
  33. package/resources/index.d.mts +5 -3
  34. package/resources/index.d.mts.map +1 -1
  35. package/resources/index.d.ts +5 -3
  36. package/resources/index.d.ts.map +1 -1
  37. package/resources/index.js +6 -2
  38. package/resources/index.js.map +1 -1
  39. package/resources/index.mjs +3 -1
  40. package/resources/index.mjs.map +1 -1
  41. package/resources/phone-numbers.d.mts +67 -1
  42. package/resources/phone-numbers.d.mts.map +1 -1
  43. package/resources/phone-numbers.d.ts +67 -1
  44. package/resources/phone-numbers.d.ts.map +1 -1
  45. package/resources/phone-numbers.js +15 -0
  46. package/resources/phone-numbers.js.map +1 -1
  47. package/resources/phone-numbers.mjs +15 -0
  48. package/resources/phone-numbers.mjs.map +1 -1
  49. package/resources/regulatory-documents.d.mts +114 -0
  50. package/resources/regulatory-documents.d.mts.map +1 -0
  51. package/resources/regulatory-documents.d.ts +114 -0
  52. package/resources/regulatory-documents.d.ts.map +1 -0
  53. package/resources/regulatory-documents.js +84 -0
  54. package/resources/regulatory-documents.js.map +1 -0
  55. package/resources/regulatory-documents.mjs +80 -0
  56. package/resources/regulatory-documents.mjs.map +1 -0
  57. package/resources/senders/agent/agent.d.mts +230 -0
  58. package/resources/senders/agent/agent.d.mts.map +1 -0
  59. package/resources/senders/agent/agent.d.ts +230 -0
  60. package/resources/senders/agent/agent.d.ts.map +1 -0
  61. package/resources/senders/agent/agent.js +105 -0
  62. package/resources/senders/agent/agent.js.map +1 -0
  63. package/resources/senders/agent/agent.mjs +100 -0
  64. package/resources/senders/agent/agent.mjs.map +1 -0
  65. package/resources/senders/agent/executions.d.mts +32 -0
  66. package/resources/senders/agent/executions.d.mts.map +1 -0
  67. package/resources/senders/agent/executions.d.ts +32 -0
  68. package/resources/senders/agent/executions.d.ts.map +1 -0
  69. package/resources/senders/agent/executions.js +27 -0
  70. package/resources/senders/agent/executions.js.map +1 -0
  71. package/resources/senders/agent/executions.mjs +23 -0
  72. package/resources/senders/agent/executions.mjs.map +1 -0
  73. package/resources/senders/agent/flows.d.mts +301 -0
  74. package/resources/senders/agent/flows.d.mts.map +1 -0
  75. package/resources/senders/agent/flows.d.ts +301 -0
  76. package/resources/senders/agent/flows.d.ts.map +1 -0
  77. package/resources/senders/agent/flows.js +135 -0
  78. package/resources/senders/agent/flows.js.map +1 -0
  79. package/resources/senders/agent/flows.mjs +131 -0
  80. package/resources/senders/agent/flows.mjs.map +1 -0
  81. package/resources/senders/agent/index.d.mts +6 -0
  82. package/resources/senders/agent/index.d.mts.map +1 -0
  83. package/resources/senders/agent/index.d.ts +6 -0
  84. package/resources/senders/agent/index.d.ts.map +1 -0
  85. package/resources/senders/agent/index.js +15 -0
  86. package/resources/senders/agent/index.js.map +1 -0
  87. package/resources/senders/agent/index.mjs +7 -0
  88. package/resources/senders/agent/index.mjs.map +1 -0
  89. package/resources/senders/agent/knowledge-bases/documents.d.mts +86 -0
  90. package/resources/senders/agent/knowledge-bases/documents.d.mts.map +1 -0
  91. package/resources/senders/agent/knowledge-bases/documents.d.ts +86 -0
  92. package/resources/senders/agent/knowledge-bases/documents.d.ts.map +1 -0
  93. package/resources/senders/agent/knowledge-bases/documents.js +70 -0
  94. package/resources/senders/agent/knowledge-bases/documents.js.map +1 -0
  95. package/resources/senders/agent/knowledge-bases/documents.mjs +66 -0
  96. package/resources/senders/agent/knowledge-bases/documents.mjs.map +1 -0
  97. package/resources/senders/agent/knowledge-bases/index.d.mts +3 -0
  98. package/resources/senders/agent/knowledge-bases/index.d.mts.map +1 -0
  99. package/resources/senders/agent/knowledge-bases/index.d.ts +3 -0
  100. package/resources/senders/agent/knowledge-bases/index.d.ts.map +1 -0
  101. package/resources/senders/agent/knowledge-bases/index.js +9 -0
  102. package/resources/senders/agent/knowledge-bases/index.js.map +1 -0
  103. package/resources/senders/agent/knowledge-bases/index.mjs +4 -0
  104. package/resources/senders/agent/knowledge-bases/index.mjs.map +1 -0
  105. package/resources/senders/agent/knowledge-bases/knowledge-bases.d.mts +147 -0
  106. package/resources/senders/agent/knowledge-bases/knowledge-bases.d.mts.map +1 -0
  107. package/resources/senders/agent/knowledge-bases/knowledge-bases.d.ts +147 -0
  108. package/resources/senders/agent/knowledge-bases/knowledge-bases.d.ts.map +1 -0
  109. package/resources/senders/agent/knowledge-bases/knowledge-bases.js +106 -0
  110. package/resources/senders/agent/knowledge-bases/knowledge-bases.js.map +1 -0
  111. package/resources/senders/agent/knowledge-bases/knowledge-bases.mjs +101 -0
  112. package/resources/senders/agent/knowledge-bases/knowledge-bases.mjs.map +1 -0
  113. package/resources/senders/agent/knowledge-bases.d.mts +2 -0
  114. package/resources/senders/agent/knowledge-bases.d.mts.map +1 -0
  115. package/resources/senders/agent/knowledge-bases.d.ts +2 -0
  116. package/resources/senders/agent/knowledge-bases.d.ts.map +1 -0
  117. package/resources/senders/agent/knowledge-bases.js +6 -0
  118. package/resources/senders/agent/knowledge-bases.js.map +1 -0
  119. package/resources/senders/agent/knowledge-bases.mjs +3 -0
  120. package/resources/senders/agent/knowledge-bases.mjs.map +1 -0
  121. package/resources/senders/agent/tools.d.mts +242 -0
  122. package/resources/senders/agent/tools.d.mts.map +1 -0
  123. package/resources/senders/agent/tools.d.ts +242 -0
  124. package/resources/senders/agent/tools.d.ts.map +1 -0
  125. package/resources/senders/agent/tools.js +126 -0
  126. package/resources/senders/agent/tools.js.map +1 -0
  127. package/resources/senders/agent/tools.mjs +122 -0
  128. package/resources/senders/agent/tools.mjs.map +1 -0
  129. package/resources/senders/agent.d.mts +2 -0
  130. package/resources/senders/agent.d.mts.map +1 -0
  131. package/resources/senders/agent.d.ts +2 -0
  132. package/resources/senders/agent.d.ts.map +1 -0
  133. package/resources/senders/agent.js +6 -0
  134. package/resources/senders/agent.js.map +1 -0
  135. package/resources/senders/agent.mjs +3 -0
  136. package/resources/senders/agent.mjs.map +1 -0
  137. package/resources/senders/index.d.mts +3 -0
  138. package/resources/senders/index.d.mts.map +1 -0
  139. package/resources/senders/index.d.ts +3 -0
  140. package/resources/senders/index.d.ts.map +1 -0
  141. package/resources/senders/index.js +9 -0
  142. package/resources/senders/index.js.map +1 -0
  143. package/resources/senders/index.mjs +4 -0
  144. package/resources/senders/index.mjs.map +1 -0
  145. package/resources/senders/senders.d.mts +342 -0
  146. package/resources/senders/senders.d.mts.map +1 -0
  147. package/resources/senders/senders.d.ts +342 -0
  148. package/resources/senders/senders.d.ts.map +1 -0
  149. package/resources/senders/senders.js +150 -0
  150. package/resources/senders/senders.js.map +1 -0
  151. package/resources/senders/senders.mjs +145 -0
  152. package/resources/senders/senders.mjs.map +1 -0
  153. package/resources/senders.d.mts +1 -337
  154. package/resources/senders.d.mts.map +1 -1
  155. package/resources/senders.d.ts +1 -337
  156. package/resources/senders.d.ts.map +1 -1
  157. package/resources/senders.js +2 -138
  158. package/resources/senders.js.map +1 -1
  159. package/resources/senders.mjs +1 -136
  160. package/resources/senders.mjs.map +1 -1
  161. package/src/client.ts +79 -17
  162. package/src/resources/addresses.ts +160 -0
  163. package/src/resources/broadcasts/broadcasts.ts +37 -4
  164. package/src/resources/broadcasts/index.ts +2 -0
  165. package/src/resources/index.ts +29 -1
  166. package/src/resources/phone-numbers.ts +97 -0
  167. package/src/resources/regulatory-documents.ts +184 -0
  168. package/src/resources/senders/agent/agent.ts +417 -0
  169. package/src/resources/senders/agent/executions.ts +48 -0
  170. package/src/resources/senders/agent/flows.ts +409 -0
  171. package/src/resources/senders/agent/index.ts +60 -0
  172. package/src/resources/senders/agent/knowledge-bases/documents.ts +133 -0
  173. package/src/resources/senders/agent/knowledge-bases/index.ts +24 -0
  174. package/src/resources/senders/agent/knowledge-bases/knowledge-bases.ts +251 -0
  175. package/src/resources/senders/agent/knowledge-bases.ts +3 -0
  176. package/src/resources/senders/agent/tools.ts +334 -0
  177. package/src/resources/senders/agent.ts +3 -0
  178. package/src/resources/senders/index.ts +32 -0
  179. package/src/resources/senders/senders.ts +506 -0
  180. package/src/resources/senders.ts +1 -476
  181. package/src/version.ts +1 -1
  182. package/version.d.mts +1 -1
  183. package/version.d.ts +1 -1
  184. package/version.js +1 -1
  185. package/version.mjs +1 -1
@@ -0,0 +1,506 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as AgentAPI from './agent/agent';
5
+ import {
6
+ Agent,
7
+ AgentCreateParams,
8
+ AgentExecution,
9
+ AgentExecutionStatus,
10
+ AgentProvider,
11
+ AgentResource,
12
+ AgentResponse,
13
+ AgentStats,
14
+ AgentUpdateParams,
15
+ } from './agent/agent';
16
+ import { APIPromise } from '../../core/api-promise';
17
+ import { Cursor, type CursorParams, PagePromise } from '../../core/pagination';
18
+ import { buildHeaders } from '../../internal/headers';
19
+ import { RequestOptions } from '../../internal/request-options';
20
+ import { path } from '../../internal/utils/path';
21
+
22
+ export class Senders extends APIResource {
23
+ agent: AgentAPI.AgentResource = new AgentAPI.AgentResource(this._client);
24
+
25
+ /**
26
+ * Create sender
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const sender = await client.senders.create({
31
+ * name: 'name',
32
+ * phoneNumber: 'phoneNumber',
33
+ * });
34
+ * ```
35
+ */
36
+ create(body: SenderCreateParams, options?: RequestOptions): APIPromise<Sender> {
37
+ return this._client.post('/v1/senders', { body, ...options });
38
+ }
39
+
40
+ /**
41
+ * Get sender
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const sender = await client.senders.retrieve('senderId');
46
+ * ```
47
+ */
48
+ retrieve(senderID: string, options?: RequestOptions): APIPromise<Sender> {
49
+ return this._client.get(path`/v1/senders/${senderID}`, options);
50
+ }
51
+
52
+ /**
53
+ * Update sender
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const sender = await client.senders.update('senderId');
58
+ * ```
59
+ */
60
+ update(senderID: string, body: SenderUpdateParams, options?: RequestOptions): APIPromise<Sender> {
61
+ return this._client.patch(path`/v1/senders/${senderID}`, { body, ...options });
62
+ }
63
+
64
+ /**
65
+ * List senders
66
+ *
67
+ * @example
68
+ * ```ts
69
+ * // Automatically fetches more pages as needed.
70
+ * for await (const sender of client.senders.list()) {
71
+ * // ...
72
+ * }
73
+ * ```
74
+ */
75
+ list(
76
+ query: SenderListParams | null | undefined = {},
77
+ options?: RequestOptions,
78
+ ): PagePromise<SendersCursor, Sender> {
79
+ return this._client.getAPIList('/v1/senders', Cursor<Sender>, { query, ...options });
80
+ }
81
+
82
+ /**
83
+ * Delete sender
84
+ *
85
+ * @example
86
+ * ```ts
87
+ * await client.senders.delete('senderId');
88
+ * ```
89
+ */
90
+ delete(senderID: string, options?: RequestOptions): APIPromise<void> {
91
+ return this._client.delete(path`/v1/senders/${senderID}`, {
92
+ ...options,
93
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
94
+ });
95
+ }
96
+
97
+ /**
98
+ * Get the WhatsApp Business profile for a sender. The sender must have a WhatsApp
99
+ * Business Account connected.
100
+ *
101
+ * @example
102
+ * ```ts
103
+ * const whatsappBusinessProfileResponse =
104
+ * await client.senders.getProfile('senderId');
105
+ * ```
106
+ */
107
+ getProfile(senderID: string, options?: RequestOptions): APIPromise<WhatsappBusinessProfileResponse> {
108
+ return this._client.get(path`/v1/senders/${senderID}/profile`, options);
109
+ }
110
+
111
+ /**
112
+ * Regenerate the webhook secret for a sender. The old secret will be invalidated
113
+ * immediately.
114
+ *
115
+ * @example
116
+ * ```ts
117
+ * const webhookSecretResponse =
118
+ * await client.senders.regenerateWebhookSecret('senderId');
119
+ * ```
120
+ */
121
+ regenerateWebhookSecret(senderID: string, options?: RequestOptions): APIPromise<WebhookSecretResponse> {
122
+ return this._client.post(path`/v1/senders/${senderID}/webhook/secret`, options);
123
+ }
124
+
125
+ /**
126
+ * Update the WhatsApp Business profile for a sender. The sender must have a
127
+ * WhatsApp Business Account connected.
128
+ *
129
+ * @example
130
+ * ```ts
131
+ * const response = await client.senders.updateProfile(
132
+ * 'senderId',
133
+ * {
134
+ * about: 'Succulent specialists!',
135
+ * description:
136
+ * 'We specialize in providing high-quality succulents.',
137
+ * email: 'contact@example.com',
138
+ * vertical: 'RETAIL',
139
+ * websites: ['https://www.example.com'],
140
+ * },
141
+ * );
142
+ * ```
143
+ */
144
+ updateProfile(
145
+ senderID: string,
146
+ body: SenderUpdateProfileParams,
147
+ options?: RequestOptions,
148
+ ): APIPromise<SenderUpdateProfileResponse> {
149
+ return this._client.patch(path`/v1/senders/${senderID}/profile`, { body, ...options });
150
+ }
151
+
152
+ /**
153
+ * Upload a new profile picture for the WhatsApp Business profile. The image will
154
+ * be uploaded to Meta and set as the profile picture.
155
+ *
156
+ * @example
157
+ * ```ts
158
+ * const response = await client.senders.uploadProfilePicture(
159
+ * 'senderId',
160
+ * {
161
+ * imageUrl: 'https://example.com/profile.jpg',
162
+ * mimeType: 'image/jpeg',
163
+ * },
164
+ * );
165
+ * ```
166
+ */
167
+ uploadProfilePicture(
168
+ senderID: string,
169
+ body: SenderUploadProfilePictureParams,
170
+ options?: RequestOptions,
171
+ ): APIPromise<SenderUploadProfilePictureResponse> {
172
+ return this._client.post(path`/v1/senders/${senderID}/profile/picture`, { body, ...options });
173
+ }
174
+ }
175
+
176
+ export type SendersCursor = Cursor<Sender>;
177
+
178
+ export interface Sender {
179
+ id: string;
180
+
181
+ name: string;
182
+
183
+ /**
184
+ * Phone number in E.164 format.
185
+ */
186
+ phoneNumber: string;
187
+
188
+ createdAt?: string;
189
+
190
+ /**
191
+ * Whether this sender is the project's default.
192
+ */
193
+ isDefault?: boolean;
194
+
195
+ updatedAt?: string;
196
+
197
+ /**
198
+ * Webhook configuration for the sender.
199
+ */
200
+ webhook?: SenderWebhook;
201
+
202
+ /**
203
+ * WhatsApp Business Account information. Only present if a WABA is connected.
204
+ */
205
+ whatsapp?: Sender.Whatsapp;
206
+ }
207
+
208
+ export namespace Sender {
209
+ /**
210
+ * WhatsApp Business Account information. Only present if a WABA is connected.
211
+ */
212
+ export interface Whatsapp {
213
+ /**
214
+ * Display phone number.
215
+ */
216
+ displayPhoneNumber?: string;
217
+
218
+ /**
219
+ * Payment configuration status from Meta.
220
+ */
221
+ paymentStatus?: Whatsapp.PaymentStatus;
222
+
223
+ /**
224
+ * WhatsApp phone number ID from Meta.
225
+ */
226
+ phoneNumberId?: string;
227
+ }
228
+
229
+ export namespace Whatsapp {
230
+ /**
231
+ * Payment configuration status from Meta.
232
+ */
233
+ export interface PaymentStatus {
234
+ /**
235
+ * Whether template messages can be sent. Requires setupStatus=COMPLETE and
236
+ * methodStatus=VALID.
237
+ */
238
+ canSendTemplates?: boolean;
239
+
240
+ /**
241
+ * Payment method status (VALID, NONE, etc.).
242
+ */
243
+ methodStatus?: string;
244
+
245
+ /**
246
+ * Payment setup status (COMPLETE, NOT_STARTED, etc.).
247
+ */
248
+ setupStatus?: string;
249
+ }
250
+ }
251
+ }
252
+
253
+ /**
254
+ * Webhook configuration for the sender.
255
+ */
256
+ export interface SenderWebhook {
257
+ /**
258
+ * Whether the webhook is active.
259
+ */
260
+ active: boolean;
261
+
262
+ /**
263
+ * List of events the webhook is subscribed to.
264
+ */
265
+ events: Array<WebhookEvent>;
266
+
267
+ /**
268
+ * HTTPS URL that will receive webhook events.
269
+ */
270
+ url: string;
271
+
272
+ /**
273
+ * Webhook secret for signature verification. Only returned on create or
274
+ * regenerate.
275
+ */
276
+ secret?: string;
277
+ }
278
+
279
+ /**
280
+ * Type of event that triggers the webhook. Note: Reactions are delivered as
281
+ * message.inbound with messageType='reaction'.
282
+ */
283
+ export type WebhookEvent =
284
+ | 'message.queued'
285
+ | 'message.sent'
286
+ | 'message.delivered'
287
+ | 'message.failed'
288
+ | 'message.inbound'
289
+ | 'message.unsupported'
290
+ | 'conversation.new'
291
+ | 'template.status_changed';
292
+
293
+ export interface WebhookSecretResponse {
294
+ /**
295
+ * The new webhook secret.
296
+ */
297
+ secret: string;
298
+ }
299
+
300
+ /**
301
+ * WhatsApp Business profile information.
302
+ */
303
+ export interface WhatsappBusinessProfile {
304
+ /**
305
+ * Short description of the business (max 139 characters).
306
+ */
307
+ about?: string;
308
+
309
+ /**
310
+ * Physical address of the business (max 256 characters).
311
+ */
312
+ address?: string;
313
+
314
+ /**
315
+ * Extended description of the business (max 512 characters).
316
+ */
317
+ description?: string;
318
+
319
+ /**
320
+ * Business email address.
321
+ */
322
+ email?: string;
323
+
324
+ /**
325
+ * URL of the business profile picture.
326
+ */
327
+ profilePictureUrl?: string;
328
+
329
+ /**
330
+ * Business category for WhatsApp Business profile.
331
+ */
332
+ vertical?: WhatsappBusinessProfileVertical;
333
+
334
+ /**
335
+ * Business website URLs (maximum 2).
336
+ */
337
+ websites?: Array<string>;
338
+ }
339
+
340
+ export interface WhatsappBusinessProfileResponse {
341
+ /**
342
+ * WhatsApp Business profile information.
343
+ */
344
+ profile: WhatsappBusinessProfile;
345
+ }
346
+
347
+ /**
348
+ * Business category for WhatsApp Business profile.
349
+ */
350
+ export type WhatsappBusinessProfileVertical =
351
+ | 'UNDEFINED'
352
+ | 'OTHER'
353
+ | 'AUTO'
354
+ | 'BEAUTY'
355
+ | 'APPAREL'
356
+ | 'EDU'
357
+ | 'ENTERTAIN'
358
+ | 'EVENT_PLAN'
359
+ | 'FINANCE'
360
+ | 'GROCERY'
361
+ | 'GOVT'
362
+ | 'HOTEL'
363
+ | 'HEALTH'
364
+ | 'NONPROFIT'
365
+ | 'PROF_SERVICES'
366
+ | 'RETAIL'
367
+ | 'TRAVEL'
368
+ | 'RESTAURANT'
369
+ | 'NOT_A_BIZ';
370
+
371
+ export interface SenderUpdateProfileResponse {
372
+ /**
373
+ * WhatsApp Business profile information.
374
+ */
375
+ profile: WhatsappBusinessProfile;
376
+
377
+ success: boolean;
378
+ }
379
+
380
+ export interface SenderUploadProfilePictureResponse {
381
+ /**
382
+ * WhatsApp Business profile information.
383
+ */
384
+ profile: WhatsappBusinessProfile;
385
+
386
+ success: boolean;
387
+ }
388
+
389
+ export interface SenderCreateParams {
390
+ name: string;
391
+
392
+ phoneNumber: string;
393
+
394
+ setAsDefault?: boolean;
395
+
396
+ /**
397
+ * Events to subscribe to.
398
+ */
399
+ webhookEvents?: Array<WebhookEvent>;
400
+
401
+ /**
402
+ * HTTPS URL for webhook events.
403
+ */
404
+ webhookUrl?: string;
405
+ }
406
+
407
+ export interface SenderUpdateParams {
408
+ name?: string;
409
+
410
+ setAsDefault?: boolean;
411
+
412
+ /**
413
+ * Whether the webhook is active.
414
+ */
415
+ webhookActive?: boolean;
416
+
417
+ /**
418
+ * Events to subscribe to.
419
+ */
420
+ webhookEvents?: Array<WebhookEvent>;
421
+
422
+ /**
423
+ * HTTPS URL for webhook events. Set to null to remove webhook.
424
+ */
425
+ webhookUrl?: string | null;
426
+ }
427
+
428
+ export interface SenderListParams extends CursorParams {}
429
+
430
+ export interface SenderUpdateProfileParams {
431
+ /**
432
+ * Short description of the business (max 139 characters).
433
+ */
434
+ about?: string;
435
+
436
+ /**
437
+ * Physical address of the business (max 256 characters).
438
+ */
439
+ address?: string;
440
+
441
+ /**
442
+ * Extended description of the business (max 512 characters).
443
+ */
444
+ description?: string;
445
+
446
+ /**
447
+ * Business email address.
448
+ */
449
+ email?: string;
450
+
451
+ /**
452
+ * Business category for WhatsApp Business profile.
453
+ */
454
+ vertical?: WhatsappBusinessProfileVertical;
455
+
456
+ /**
457
+ * Business website URLs (maximum 2).
458
+ */
459
+ websites?: Array<string>;
460
+ }
461
+
462
+ export interface SenderUploadProfilePictureParams {
463
+ /**
464
+ * URL of the image to upload.
465
+ */
466
+ imageUrl: string;
467
+
468
+ /**
469
+ * MIME type of the image.
470
+ */
471
+ mimeType: 'image/jpeg' | 'image/png';
472
+ }
473
+
474
+ Senders.AgentResource = AgentResource;
475
+
476
+ export declare namespace Senders {
477
+ export {
478
+ type Sender as Sender,
479
+ type SenderWebhook as SenderWebhook,
480
+ type WebhookEvent as WebhookEvent,
481
+ type WebhookSecretResponse as WebhookSecretResponse,
482
+ type WhatsappBusinessProfile as WhatsappBusinessProfile,
483
+ type WhatsappBusinessProfileResponse as WhatsappBusinessProfileResponse,
484
+ type WhatsappBusinessProfileVertical as WhatsappBusinessProfileVertical,
485
+ type SenderUpdateProfileResponse as SenderUpdateProfileResponse,
486
+ type SenderUploadProfilePictureResponse as SenderUploadProfilePictureResponse,
487
+ type SendersCursor as SendersCursor,
488
+ type SenderCreateParams as SenderCreateParams,
489
+ type SenderUpdateParams as SenderUpdateParams,
490
+ type SenderListParams as SenderListParams,
491
+ type SenderUpdateProfileParams as SenderUpdateProfileParams,
492
+ type SenderUploadProfilePictureParams as SenderUploadProfilePictureParams,
493
+ };
494
+
495
+ export {
496
+ AgentResource as AgentResource,
497
+ type Agent as Agent,
498
+ type AgentExecution as AgentExecution,
499
+ type AgentExecutionStatus as AgentExecutionStatus,
500
+ type AgentProvider as AgentProvider,
501
+ type AgentResponse as AgentResponse,
502
+ type AgentStats as AgentStats,
503
+ type AgentCreateParams as AgentCreateParams,
504
+ type AgentUpdateParams as AgentUpdateParams,
505
+ };
506
+ }