samva 0.45.1 → 0.46.1

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 (276) hide show
  1. package/AGENTS.md +7 -0
  2. package/README.md +25 -1
  3. package/dist/client/client/client.gen.d.ts +1 -1
  4. package/dist/client/client/index.d.ts +10 -10
  5. package/dist/client/client/types.gen.d.ts +4 -4
  6. package/dist/client/client/utils.gen.d.ts +2 -2
  7. package/dist/client/client.gen.d.ts +2 -2
  8. package/dist/client/core/bodySerializer.gen.d.ts +1 -1
  9. package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
  10. package/dist/client/core/types.gen.d.ts +2 -2
  11. package/dist/client/core/utils.gen.d.ts +1 -1
  12. package/dist/client/sdk.gen.d.ts +439 -6
  13. package/dist/client/sdk.gen.js +1544 -229
  14. package/dist/client/types.gen.d.ts +8120 -5616
  15. package/dist/effect/accounts.d.ts +50 -0
  16. package/dist/effect/accounts.js +23 -0
  17. package/dist/effect/agents.d.ts +25 -16
  18. package/dist/effect/agents.js +3 -2
  19. package/dist/effect/analytics.d.ts +6 -6
  20. package/dist/effect/analytics.js +2 -1
  21. package/dist/effect/api-keys.d.ts +13 -13
  22. package/dist/effect/api-keys.js +2 -1
  23. package/dist/effect/approval-requests.d.ts +42 -0
  24. package/dist/effect/approval-requests.js +19 -0
  25. package/dist/effect/attachments.d.ts +4 -4
  26. package/dist/effect/attachments.js +2 -1
  27. package/dist/effect/brands.d.ts +7 -7
  28. package/dist/effect/brands.js +2 -1
  29. package/dist/effect/campaigns.d.ts +205 -205
  30. package/dist/effect/campaigns.js +2 -1
  31. package/dist/effect/categories.d.ts +3 -3
  32. package/dist/effect/client.d.ts +1 -1
  33. package/dist/effect/contact-groups.d.ts +18 -18
  34. package/dist/effect/contact-groups.js +2 -1
  35. package/dist/effect/contacts.d.ts +33 -33
  36. package/dist/effect/contacts.js +3 -2
  37. package/dist/effect/conversations.d.ts +17 -17
  38. package/dist/effect/conversations.js +2 -1
  39. package/dist/effect/custom-fields.d.ts +4 -4
  40. package/dist/effect/custom-fields.js +2 -1
  41. package/dist/effect/descriptors/accounts.d.ts +59 -0
  42. package/dist/effect/descriptors/accounts.js +57 -0
  43. package/dist/effect/descriptors/agents.d.ts +119 -0
  44. package/dist/effect/descriptors/agents.js +117 -0
  45. package/dist/effect/descriptors/analytics.d.ts +56 -0
  46. package/dist/effect/descriptors/analytics.js +48 -0
  47. package/dist/effect/descriptors/api-keys.d.ts +80 -0
  48. package/dist/effect/descriptors/api-keys.js +80 -0
  49. package/dist/effect/descriptors/approval-requests.d.ts +41 -0
  50. package/dist/effect/descriptors/approval-requests.js +43 -0
  51. package/dist/effect/descriptors/attachments.d.ts +41 -0
  52. package/dist/effect/descriptors/attachments.js +43 -0
  53. package/dist/effect/descriptors/brands.d.ts +60 -0
  54. package/dist/effect/descriptors/brands.js +60 -0
  55. package/dist/effect/descriptors/campaigns.d.ts +148 -0
  56. package/dist/effect/descriptors/campaigns.js +144 -0
  57. package/dist/effect/descriptors/contact-groups.d.ts +99 -0
  58. package/dist/effect/descriptors/contact-groups.js +97 -0
  59. package/dist/effect/descriptors/contacts.d.ts +226 -0
  60. package/dist/effect/descriptors/contacts.js +214 -0
  61. package/dist/effect/descriptors/conversations.d.ts +130 -0
  62. package/dist/effect/descriptors/conversations.js +130 -0
  63. package/dist/effect/descriptors/custom-fields.d.ts +40 -0
  64. package/dist/effect/descriptors/custom-fields.js +40 -0
  65. package/dist/effect/descriptors/email.d.ts +607 -0
  66. package/dist/effect/descriptors/email.js +561 -0
  67. package/dist/effect/descriptors/events.d.ts +20 -0
  68. package/dist/effect/descriptors/events.js +20 -0
  69. package/dist/effect/descriptors/extension-installations.d.ts +90 -0
  70. package/dist/effect/descriptors/extension-installations.js +90 -0
  71. package/dist/effect/descriptors/extensions.d.ts +50 -0
  72. package/dist/effect/descriptors/extensions.js +50 -0
  73. package/dist/effect/descriptors/feedback.d.ts +11 -0
  74. package/dist/effect/descriptors/feedback.js +11 -0
  75. package/dist/effect/descriptors/integrations-catalog.d.ts +29 -0
  76. package/dist/effect/descriptors/integrations-catalog.js +27 -0
  77. package/dist/effect/descriptors/integrations.d.ts +70 -0
  78. package/dist/effect/descriptors/integrations.js +70 -0
  79. package/dist/effect/descriptors/journeys.d.ts +140 -0
  80. package/dist/effect/descriptors/journeys.js +140 -0
  81. package/dist/effect/descriptors/mailboxes.d.ts +724 -0
  82. package/dist/effect/descriptors/mailboxes.js +728 -0
  83. package/dist/effect/descriptors/media.d.ts +51 -0
  84. package/dist/effect/descriptors/media.js +53 -0
  85. package/dist/effect/descriptors/messages.d.ts +99 -0
  86. package/dist/effect/descriptors/messages.js +97 -0
  87. package/dist/effect/descriptors/namespaces.d.ts +110 -0
  88. package/dist/effect/descriptors/namespaces.js +114 -0
  89. package/dist/effect/descriptors/newsletter-domains.d.ts +42 -0
  90. package/dist/effect/descriptors/newsletter-domains.js +46 -0
  91. package/dist/effect/descriptors/newsletter-issues.d.ts +112 -0
  92. package/dist/effect/descriptors/newsletter-issues.js +116 -0
  93. package/dist/effect/descriptors/newsletters.d.ts +51 -0
  94. package/dist/effect/descriptors/newsletters.js +53 -0
  95. package/dist/effect/descriptors/operations.d.ts +31 -0
  96. package/dist/effect/descriptors/operations.js +33 -0
  97. package/dist/effect/descriptors/organizations.d.ts +111 -0
  98. package/dist/effect/descriptors/organizations.js +93 -0
  99. package/dist/effect/descriptors/policies.d.ts +32 -0
  100. package/dist/effect/descriptors/policies.js +36 -0
  101. package/dist/effect/descriptors/scheduled-messages.d.ts +50 -0
  102. package/dist/effect/descriptors/scheduled-messages.js +50 -0
  103. package/dist/effect/descriptors/subscriptions.d.ts +11 -0
  104. package/dist/effect/descriptors/subscriptions.js +11 -0
  105. package/dist/effect/descriptors/template-registrations.d.ts +32 -0
  106. package/dist/effect/descriptors/template-registrations.js +36 -0
  107. package/dist/effect/descriptors/template-share-links.d.ts +52 -0
  108. package/dist/effect/descriptors/template-share-links.js +56 -0
  109. package/dist/effect/descriptors/templates.d.ts +365 -0
  110. package/dist/effect/descriptors/templates.js +355 -0
  111. package/dist/effect/descriptors/topic-forms.d.ts +52 -0
  112. package/dist/effect/descriptors/topic-forms.js +56 -0
  113. package/dist/effect/descriptors/topics.d.ts +89 -0
  114. package/dist/effect/descriptors/topics.js +87 -0
  115. package/dist/effect/descriptors/webhooks.d.ts +110 -0
  116. package/dist/effect/descriptors/webhooks.js +110 -0
  117. package/dist/effect/descriptors/whats-app-flows.d.ts +99 -0
  118. package/dist/effect/descriptors/whats-app-flows.js +97 -0
  119. package/dist/effect/descriptors/whats-app-setup-links.d.ts +40 -0
  120. package/dist/effect/descriptors/whats-app-setup-links.js +40 -0
  121. package/dist/effect/descriptors/whats-app.d.ts +116 -0
  122. package/dist/effect/descriptors/whats-app.js +108 -0
  123. package/dist/effect/descriptors/whoami.d.ts +11 -0
  124. package/dist/effect/descriptors/whoami.js +11 -0
  125. package/dist/effect/email.d.ts +78 -78
  126. package/dist/effect/email.js +2 -1
  127. package/dist/effect/errors.d.ts +2 -2
  128. package/dist/effect/events.d.ts +3 -3
  129. package/dist/effect/events.js +2 -1
  130. package/dist/effect/extension-installations.d.ts +11 -11
  131. package/dist/effect/extension-installations.js +2 -1
  132. package/dist/effect/extensions.d.ts +9 -9
  133. package/dist/effect/extensions.js +2 -1
  134. package/dist/effect/feedback.d.ts +2 -2
  135. package/dist/effect/feedback.js +2 -1
  136. package/dist/effect/generated/accounts.d.ts +1002 -0
  137. package/dist/effect/generated/accounts.js +198 -0
  138. package/dist/effect/generated/agents.d.ts +85 -1
  139. package/dist/effect/generated/agents.js +1 -0
  140. package/dist/effect/generated/analytics.d.ts +1 -1
  141. package/dist/effect/generated/api-keys.d.ts +1 -1
  142. package/dist/effect/generated/approval-requests.d.ts +777 -0
  143. package/dist/effect/generated/approval-requests.js +135 -0
  144. package/dist/effect/generated/attachments.d.ts +1 -1
  145. package/dist/effect/generated/brands.d.ts +1 -1
  146. package/dist/effect/generated/campaigns.d.ts +245 -245
  147. package/dist/effect/generated/campaigns.js +6 -6
  148. package/dist/effect/generated/contact-events.d.ts +4 -4
  149. package/dist/effect/generated/contact-groups.d.ts +1 -1
  150. package/dist/effect/generated/contacts.d.ts +49 -49
  151. package/dist/effect/generated/conversations.d.ts +21 -21
  152. package/dist/effect/generated/conversations.js +10 -10
  153. package/dist/effect/generated/custom-fields.d.ts +1 -1
  154. package/dist/effect/generated/email.d.ts +1 -1
  155. package/dist/effect/generated/events.d.ts +12 -12
  156. package/dist/effect/generated/events.js +1 -1
  157. package/dist/effect/generated/extension-installations.d.ts +1 -1
  158. package/dist/effect/generated/extensions.d.ts +1 -1
  159. package/dist/effect/generated/feedback.d.ts +1 -1
  160. package/dist/effect/generated/index.d.ts +88 -78
  161. package/dist/effect/generated/integrations-catalog.d.ts +671 -0
  162. package/dist/effect/generated/integrations-catalog.js +217 -0
  163. package/dist/effect/generated/integrations.d.ts +1401 -0
  164. package/dist/effect/generated/integrations.js +246 -0
  165. package/dist/effect/generated/journeys.d.ts +81 -81
  166. package/dist/effect/generated/mailboxes.d.ts +8157 -4241
  167. package/dist/effect/generated/mailboxes.js +677 -52
  168. package/dist/effect/generated/media.d.ts +1 -1
  169. package/dist/effect/generated/messages.d.ts +9 -9
  170. package/dist/effect/generated/messages.js +4 -4
  171. package/dist/effect/generated/namespaces.d.ts +1 -1
  172. package/dist/effect/generated/newsletter-domains.d.ts +1 -1
  173. package/dist/effect/generated/newsletter-issues.d.ts +1 -1
  174. package/dist/effect/generated/newsletters.d.ts +1 -1
  175. package/dist/effect/generated/operations.d.ts +1 -1
  176. package/dist/effect/generated/organizations.d.ts +1 -1
  177. package/dist/effect/generated/policies.d.ts +1 -1
  178. package/dist/effect/generated/scheduled-messages.d.ts +193 -193
  179. package/dist/effect/generated/scheduled-messages.js +17 -17
  180. package/dist/effect/generated/shared.d.ts +662 -512
  181. package/dist/effect/generated/shared.js +212 -179
  182. package/dist/effect/generated/subscriptions.d.ts +1 -1
  183. package/dist/effect/generated/template-registrations.d.ts +1 -1
  184. package/dist/effect/generated/template-share-links.d.ts +733 -0
  185. package/dist/effect/generated/template-share-links.js +165 -0
  186. package/dist/effect/generated/templates.d.ts +39 -22
  187. package/dist/effect/generated/templates.js +19 -16
  188. package/dist/effect/generated/topic-forms.d.ts +1 -1
  189. package/dist/effect/generated/topics.d.ts +1 -1
  190. package/dist/effect/generated/webhooks.d.ts +1 -1
  191. package/dist/effect/generated/whats-app-flows.d.ts +1 -1
  192. package/dist/effect/generated/whats-app-setup-links.d.ts +1 -1
  193. package/dist/effect/generated/whats-app.d.ts +1 -1
  194. package/dist/effect/generated/whoami.d.ts +1 -1
  195. package/dist/effect/generated-metadata.d.ts +248 -0
  196. package/dist/effect/generated-metadata.js +705 -555
  197. package/dist/effect/index.d.ts +47 -42
  198. package/dist/effect/index.js +6 -1
  199. package/dist/effect/integrations-catalog.d.ts +38 -0
  200. package/dist/effect/integrations-catalog.js +17 -0
  201. package/dist/effect/integrations.d.ts +165 -0
  202. package/dist/effect/integrations.js +25 -0
  203. package/dist/effect/internal/client.d.ts +3 -3
  204. package/dist/effect/internal/email-sender.d.ts +4 -4
  205. package/dist/effect/internal/mailbox-events.d.ts +2 -2
  206. package/dist/effect/internal/operation.d.ts +24 -5
  207. package/dist/effect/internal/operation.js +21 -21
  208. package/dist/effect/internal/send.d.ts +4 -4
  209. package/dist/effect/journeys.d.ts +20 -20
  210. package/dist/effect/journeys.js +2 -1
  211. package/dist/effect/mailboxes.d.ts +476 -294
  212. package/dist/effect/mailboxes.js +33 -2
  213. package/dist/effect/media.d.ts +5 -5
  214. package/dist/effect/media.js +2 -1
  215. package/dist/effect/messages.d.ts +17 -17
  216. package/dist/effect/messages.js +2 -1
  217. package/dist/effect/namespaces.d.ts +15 -15
  218. package/dist/effect/namespaces.js +2 -1
  219. package/dist/effect/newsletter-domains.d.ts +6 -6
  220. package/dist/effect/newsletter-domains.js +2 -1
  221. package/dist/effect/newsletter-issues.d.ts +11 -11
  222. package/dist/effect/newsletter-issues.js +2 -1
  223. package/dist/effect/newsletters.d.ts +5 -5
  224. package/dist/effect/newsletters.js +2 -1
  225. package/dist/effect/operations.d.ts +5 -5
  226. package/dist/effect/operations.js +2 -1
  227. package/dist/effect/organizations.d.ts +12 -12
  228. package/dist/effect/organizations.js +2 -1
  229. package/dist/effect/policies.d.ts +3 -3
  230. package/dist/effect/policies.js +2 -1
  231. package/dist/effect/scheduled-messages.d.ts +372 -372
  232. package/dist/effect/scheduled-messages.js +2 -1
  233. package/dist/effect/subscriptions.d.ts +1 -1
  234. package/dist/effect/subscriptions.js +2 -1
  235. package/dist/effect/template-registrations.d.ts +3 -3
  236. package/dist/effect/template-registrations.js +2 -1
  237. package/dist/effect/template-share-links.d.ts +18 -0
  238. package/dist/effect/template-share-links.js +21 -0
  239. package/dist/effect/templates.d.ts +49 -48
  240. package/dist/effect/templates.js +2 -1
  241. package/dist/effect/topic-forms.d.ts +5 -5
  242. package/dist/effect/topic-forms.js +2 -1
  243. package/dist/effect/topics.d.ts +11 -11
  244. package/dist/effect/topics.js +2 -1
  245. package/dist/effect/webhooks.d.ts +16 -16
  246. package/dist/effect/webhooks.js +2 -1
  247. package/dist/effect/whatsapp-flows.d.ts +10 -10
  248. package/dist/effect/whatsapp-flows.js +2 -1
  249. package/dist/effect/whatsapp-setup-links.d.ts +6 -6
  250. package/dist/effect/whatsapp-setup-links.js +2 -1
  251. package/dist/effect/whatsapp.d.ts +12 -12
  252. package/dist/effect/whatsapp.js +2 -1
  253. package/dist/effect/whoami.d.ts +1 -1
  254. package/dist/effect/whoami.js +2 -1
  255. package/dist/index.d.ts +1 -1
  256. package/dist/index.js +2 -2
  257. package/dist/mailbox/dispatch.d.ts +2 -2
  258. package/dist/mailbox/index.d.ts +4 -4
  259. package/dist/mailbox/test.d.ts +2 -2
  260. package/dist/mailbox/types.d.ts +2 -2
  261. package/dist/mailbox/webhook.d.ts +2 -2
  262. package/dist/package.js +1 -1
  263. package/dist/promises/client.d.ts +20 -10
  264. package/dist/promises/client.js +13 -3
  265. package/dist/promises/errors.gen.d.ts +23 -3
  266. package/dist/promises/errors.gen.js +54 -1
  267. package/dist/promises/index.d.ts +5 -5
  268. package/dist/promises/index.js +2 -2
  269. package/dist/promises/request.d.ts +2 -2
  270. package/dist/promises/request.js +1 -1
  271. package/dist/promises/types.gen.d.ts +1 -1
  272. package/dist/request-policy.d.ts +10 -2
  273. package/dist/request-policy.js +3 -5
  274. package/dist/service-map.d.ts +203 -0
  275. package/package.json +29 -9
  276. package/dist/service-map.js +0 -727
@@ -281,79 +281,138 @@ export declare const create: (input: {
281
281
  } | null | undefined;
282
282
  } | undefined;
283
283
  readonly flowToken?: string | undefined;
284
+ } | {
285
+ readonly location: {
286
+ readonly latitude: number;
287
+ readonly longitude: number;
288
+ readonly name?: string | undefined;
289
+ readonly address?: string | undefined;
290
+ };
291
+ } | {
292
+ readonly contacts: readonly {
293
+ readonly name: {
294
+ readonly formattedName: string;
295
+ readonly firstName?: string | undefined;
296
+ readonly lastName?: string | undefined;
297
+ readonly middleName?: string | undefined;
298
+ readonly prefix?: string | undefined;
299
+ readonly suffix?: string | undefined;
300
+ };
301
+ readonly phones?: readonly {
302
+ readonly phone: string;
303
+ readonly type?: string | undefined;
304
+ readonly waId?: string | undefined;
305
+ }[] | undefined;
306
+ readonly emails?: readonly {
307
+ readonly email: string;
308
+ readonly type?: string | undefined;
309
+ }[] | undefined;
310
+ readonly urls?: readonly {
311
+ readonly url: string;
312
+ readonly type?: string | undefined;
313
+ }[] | undefined;
314
+ readonly org?: {
315
+ readonly company?: string | undefined;
316
+ readonly department?: string | undefined;
317
+ readonly title?: string | undefined;
318
+ } | undefined;
319
+ readonly addresses?: readonly {
320
+ readonly street?: string | undefined;
321
+ readonly city?: string | undefined;
322
+ readonly state?: string | undefined;
323
+ readonly zip?: string | undefined;
324
+ readonly country?: string | undefined;
325
+ readonly countryCode?: string | undefined;
326
+ readonly type?: string | undefined;
327
+ }[] | undefined;
328
+ readonly birthday?: string | undefined;
329
+ }[];
330
+ } | {
331
+ readonly reaction: {
332
+ readonly messageId: string;
333
+ readonly emoji: string;
334
+ };
284
335
  } | {
285
336
  readonly media: {
286
337
  readonly type: "image";
287
338
  readonly caption?: string | undefined;
288
339
  readonly url: string;
289
- } | {
290
- readonly type: "image";
291
- readonly caption?: string | undefined;
292
- readonly mediaId: string;
293
340
  } | {
294
341
  readonly type: "video";
295
342
  readonly caption?: string | undefined;
296
343
  readonly url: string;
297
- } | {
298
- readonly type: "video";
299
- readonly caption?: string | undefined;
300
- readonly mediaId: string;
301
344
  } | {
302
345
  readonly type: "audio";
303
346
  readonly url: string;
304
- } | {
305
- readonly type: "audio";
306
- readonly mediaId: string;
307
347
  } | {
308
348
  readonly type: "document";
309
349
  readonly caption?: string | undefined;
310
350
  readonly filename?: string | undefined;
311
351
  readonly url: string;
352
+ } | {
353
+ readonly type: "sticker";
354
+ readonly url: string;
355
+ } | {
356
+ readonly type: "image";
357
+ readonly caption?: string | undefined;
358
+ readonly mediaId: string;
359
+ } | {
360
+ readonly type: "video";
361
+ readonly caption?: string | undefined;
362
+ readonly mediaId: string;
363
+ } | {
364
+ readonly type: "audio";
365
+ readonly mediaId: string;
312
366
  } | {
313
367
  readonly type: "document";
314
368
  readonly caption?: string | undefined;
315
369
  readonly filename?: string | undefined;
316
370
  readonly mediaId: string;
317
- } | {
318
- readonly type: "sticker";
319
- readonly url: string;
320
371
  } | {
321
372
  readonly type: "sticker";
322
373
  readonly mediaId: string;
323
374
  };
324
375
  } | {
325
376
  readonly interactive: {
326
- readonly type: "buttons";
377
+ readonly type: "flow";
327
378
  readonly header?: {
328
379
  readonly type: "text";
329
380
  readonly text: string;
330
- } | {
331
- readonly type: "image";
332
- readonly url: string;
333
- } | {
334
- readonly type: "image";
335
- readonly mediaId: string;
336
- } | {
337
- readonly type: "video";
338
- readonly url: string;
339
- } | {
340
- readonly type: "video";
341
- readonly mediaId: string;
342
- } | {
343
- readonly type: "document";
344
- readonly filename?: string | undefined;
345
- readonly url: string;
346
- } | {
347
- readonly type: "document";
348
- readonly filename?: string | undefined;
349
- readonly mediaId: string;
350
381
  } | undefined;
351
382
  readonly body: string;
352
383
  readonly footer?: string | undefined;
353
- readonly buttons: readonly {
354
- readonly id: string;
355
- readonly title: string;
356
- }[];
384
+ readonly flowId: string;
385
+ readonly cta: string;
386
+ readonly token?: string | undefined;
387
+ readonly action?: "data_exchange" | "navigate" | undefined;
388
+ readonly screen?: string | undefined;
389
+ readonly data?: {
390
+ readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
391
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
392
+ } | null)[] | {
393
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
394
+ } | null)[] | {
395
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
396
+ } | null)[] | {
397
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
398
+ } | null)[] | {
399
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
400
+ } | null)[] | {
401
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
402
+ } | null)[] | {
403
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
404
+ } | null)[] | {
405
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
406
+ } | null)[] | {
407
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
408
+ } | null)[] | {
409
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
410
+ } | null)[] | {
411
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
412
+ } | null)[] | {
413
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
414
+ } | null | undefined;
415
+ } | undefined;
357
416
  } | {
358
417
  readonly type: "list";
359
418
  readonly header?: {
@@ -372,26 +431,26 @@ export declare const create: (input: {
372
431
  }[];
373
432
  }[];
374
433
  } | {
375
- readonly type: "cta_url";
434
+ readonly type: "buttons";
376
435
  readonly header?: {
377
436
  readonly type: "text";
378
437
  readonly text: string;
379
438
  } | {
380
439
  readonly type: "image";
381
440
  readonly url: string;
382
- } | {
383
- readonly type: "image";
384
- readonly mediaId: string;
385
441
  } | {
386
442
  readonly type: "video";
387
443
  readonly url: string;
388
- } | {
389
- readonly type: "video";
390
- readonly mediaId: string;
391
444
  } | {
392
445
  readonly type: "document";
393
446
  readonly filename?: string | undefined;
394
447
  readonly url: string;
448
+ } | {
449
+ readonly type: "image";
450
+ readonly mediaId: string;
451
+ } | {
452
+ readonly type: "video";
453
+ readonly mediaId: string;
395
454
  } | {
396
455
  readonly type: "document";
397
456
  readonly filename?: string | undefined;
@@ -399,112 +458,53 @@ export declare const create: (input: {
399
458
  } | undefined;
400
459
  readonly body: string;
401
460
  readonly footer?: string | undefined;
402
- readonly displayText: string;
403
- readonly url: string;
461
+ readonly buttons: readonly {
462
+ readonly id: string;
463
+ readonly title: string;
464
+ }[];
404
465
  } | {
405
- readonly type: "flow";
466
+ readonly type: "cta_url";
406
467
  readonly header?: {
407
468
  readonly type: "text";
408
469
  readonly text: string;
470
+ } | {
471
+ readonly type: "image";
472
+ readonly url: string;
473
+ } | {
474
+ readonly type: "video";
475
+ readonly url: string;
476
+ } | {
477
+ readonly type: "document";
478
+ readonly filename?: string | undefined;
479
+ readonly url: string;
480
+ } | {
481
+ readonly type: "image";
482
+ readonly mediaId: string;
483
+ } | {
484
+ readonly type: "video";
485
+ readonly mediaId: string;
486
+ } | {
487
+ readonly type: "document";
488
+ readonly filename?: string | undefined;
489
+ readonly mediaId: string;
409
490
  } | undefined;
410
491
  readonly body: string;
411
492
  readonly footer?: string | undefined;
412
- readonly flowId: string;
413
- readonly cta: string;
414
- readonly token?: string | undefined;
415
- readonly action?: "data_exchange" | "navigate" | undefined;
416
- readonly screen?: string | undefined;
417
- readonly data?: {
418
- readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
419
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
420
- } | null)[] | {
421
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
422
- } | null)[] | {
423
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
424
- } | null)[] | {
425
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
426
- } | null)[] | {
427
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
428
- } | null)[] | {
429
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
430
- } | null)[] | {
431
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
432
- } | null)[] | {
433
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
434
- } | null)[] | {
435
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
436
- } | null)[] | {
437
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
438
- } | null)[] | {
439
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
440
- } | null)[] | {
441
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
442
- } | null | undefined;
443
- } | undefined;
444
- };
445
- } | {
446
- readonly reaction: {
447
- readonly messageId: string;
448
- readonly emoji: string;
449
- };
450
- } | {
451
- readonly location: {
452
- readonly latitude: number;
453
- readonly longitude: number;
454
- readonly name?: string | undefined;
455
- readonly address?: string | undefined;
493
+ readonly displayText: string;
494
+ readonly url: string;
456
495
  };
457
- } | {
458
- readonly contacts: readonly {
459
- readonly name: {
460
- readonly formattedName: string;
461
- readonly firstName?: string | undefined;
462
- readonly lastName?: string | undefined;
463
- readonly middleName?: string | undefined;
464
- readonly prefix?: string | undefined;
465
- readonly suffix?: string | undefined;
466
- };
467
- readonly phones?: readonly {
468
- readonly phone: string;
469
- readonly type?: string | undefined;
470
- readonly waId?: string | undefined;
471
- }[] | undefined;
472
- readonly emails?: readonly {
473
- readonly email: string;
474
- readonly type?: string | undefined;
475
- }[] | undefined;
476
- readonly urls?: readonly {
477
- readonly url: string;
478
- readonly type?: string | undefined;
479
- }[] | undefined;
480
- readonly org?: {
481
- readonly company?: string | undefined;
482
- readonly department?: string | undefined;
483
- readonly title?: string | undefined;
484
- } | undefined;
485
- readonly addresses?: readonly {
486
- readonly street?: string | undefined;
487
- readonly city?: string | undefined;
488
- readonly state?: string | undefined;
489
- readonly zip?: string | undefined;
490
- readonly country?: string | undefined;
491
- readonly countryCode?: string | undefined;
492
- readonly type?: string | undefined;
493
- }[] | undefined;
494
- readonly birthday?: string | undefined;
495
- }[];
496
496
  };
497
497
  };
498
498
  readonly scheduledFor: Date;
499
499
  readonly timezone?: string | null | undefined;
500
500
  readonly referenceId?: string | null | undefined;
501
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"scheduledMessagesCreate">;
501
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"scheduledMessagesCreate">;
502
502
  export declare const list: ((input?: {
503
503
  readonly limit?: number | null | undefined;
504
504
  readonly cursor?: string | undefined;
505
505
  readonly namespaceId?: string | undefined;
506
506
  readonly status?: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending" | undefined;
507
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"scheduledMessagesList">) & {
507
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"scheduledMessagesList">) & {
508
508
  readonly pages: (input?: {
509
509
  readonly limit?: number | null | undefined;
510
510
  readonly cursor?: string | undefined;
@@ -520,7 +520,7 @@ export declare const list: ((input?: {
520
520
  readonly send: {
521
521
  readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
522
522
  readonly metadata?: {
523
- readonly [x: string]: import("./generated").JsonValue;
523
+ readonly [x: string]: import("./generated/index.js").JsonValue;
524
524
  } | null;
525
525
  readonly channel: "email";
526
526
  readonly to: readonly ({
@@ -564,7 +564,7 @@ export declare const list: ((input?: {
564
564
  readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
565
565
  readonly templateSlug?: string | null;
566
566
  readonly templateData?: {
567
- readonly [x: string]: import("./generated").JsonValue;
567
+ readonly [x: string]: import("./generated/index.js").JsonValue;
568
568
  } | null;
569
569
  readonly locale?: string;
570
570
  readonly timeZone?: string;
@@ -585,7 +585,7 @@ export declare const list: ((input?: {
585
585
  } | {
586
586
  readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
587
587
  readonly metadata?: {
588
- readonly [x: string]: import("./generated").JsonValue;
588
+ readonly [x: string]: import("./generated/index.js").JsonValue;
589
589
  } | null;
590
590
  readonly channel: "sms";
591
591
  readonly to: readonly ({
@@ -600,13 +600,13 @@ export declare const list: ((input?: {
600
600
  readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
601
601
  readonly templateSlug?: string | null;
602
602
  readonly templateData?: {
603
- readonly [x: string]: import("./generated").JsonValue;
603
+ readonly [x: string]: import("./generated/index.js").JsonValue;
604
604
  } | null;
605
605
  };
606
606
  } | {
607
607
  readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
608
608
  readonly metadata?: {
609
- readonly [x: string]: import("./generated").JsonValue;
609
+ readonly [x: string]: import("./generated/index.js").JsonValue;
610
610
  } | null;
611
611
  readonly channel: "whatsapp";
612
612
  readonly to: readonly ({
@@ -621,88 +621,123 @@ export declare const list: ((input?: {
621
621
  } | {
622
622
  readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
623
623
  readonly templateData?: {
624
- readonly [x: string]: import("./generated").JsonValue;
624
+ readonly [x: string]: import("./generated/index.js").JsonValue;
625
625
  };
626
626
  readonly flowToken?: string;
627
627
  } | {
628
628
  readonly templateSlug: string;
629
629
  readonly templateData?: {
630
- readonly [x: string]: import("./generated").JsonValue;
630
+ readonly [x: string]: import("./generated/index.js").JsonValue;
631
631
  };
632
632
  readonly flowToken?: string;
633
+ } | {
634
+ readonly location: {
635
+ readonly latitude: number;
636
+ readonly longitude: number;
637
+ readonly name?: string;
638
+ readonly address?: string;
639
+ };
640
+ } | {
641
+ readonly contacts: readonly {
642
+ readonly name: {
643
+ readonly formattedName: string;
644
+ readonly firstName?: string;
645
+ readonly lastName?: string;
646
+ readonly middleName?: string;
647
+ readonly prefix?: string;
648
+ readonly suffix?: string;
649
+ };
650
+ readonly phones?: readonly {
651
+ readonly phone: string;
652
+ readonly type?: string;
653
+ readonly waId?: string;
654
+ }[];
655
+ readonly emails?: readonly {
656
+ readonly email: string;
657
+ readonly type?: string;
658
+ }[];
659
+ readonly urls?: readonly {
660
+ readonly url: string;
661
+ readonly type?: string;
662
+ }[];
663
+ readonly org?: {
664
+ readonly company?: string;
665
+ readonly department?: string;
666
+ readonly title?: string;
667
+ };
668
+ readonly addresses?: readonly {
669
+ readonly street?: string;
670
+ readonly city?: string;
671
+ readonly state?: string;
672
+ readonly zip?: string;
673
+ readonly country?: string;
674
+ readonly countryCode?: string;
675
+ readonly type?: string;
676
+ }[];
677
+ readonly birthday?: string;
678
+ }[];
679
+ } | {
680
+ readonly reaction: {
681
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
682
+ readonly emoji: string;
683
+ };
633
684
  } | {
634
685
  readonly media: {
635
686
  readonly type: "image";
636
687
  readonly caption?: string;
637
688
  readonly url: string;
638
- } | {
639
- readonly type: "image";
640
- readonly caption?: string;
641
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
642
689
  } | {
643
690
  readonly type: "video";
644
691
  readonly caption?: string;
645
692
  readonly url: string;
646
- } | {
647
- readonly type: "video";
648
- readonly caption?: string;
649
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
650
693
  } | {
651
694
  readonly type: "audio";
652
695
  readonly url: string;
653
- } | {
654
- readonly type: "audio";
655
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
656
696
  } | {
657
697
  readonly type: "document";
658
698
  readonly caption?: string;
659
699
  readonly filename?: string;
660
700
  readonly url: string;
701
+ } | {
702
+ readonly type: "sticker";
703
+ readonly url: string;
704
+ } | {
705
+ readonly type: "image";
706
+ readonly caption?: string;
707
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
708
+ } | {
709
+ readonly type: "video";
710
+ readonly caption?: string;
711
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
712
+ } | {
713
+ readonly type: "audio";
714
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
661
715
  } | {
662
716
  readonly type: "document";
663
717
  readonly caption?: string;
664
718
  readonly filename?: string;
665
719
  readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
666
- } | {
667
- readonly type: "sticker";
668
- readonly url: string;
669
720
  } | {
670
721
  readonly type: "sticker";
671
722
  readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
672
723
  };
673
724
  } | {
674
725
  readonly interactive: {
675
- readonly type: "buttons";
726
+ readonly type: "flow";
676
727
  readonly header?: {
677
728
  readonly type: "text";
678
729
  readonly text: string;
679
- } | {
680
- readonly type: "image";
681
- readonly url: string;
682
- } | {
683
- readonly type: "image";
684
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
685
- } | {
686
- readonly type: "video";
687
- readonly url: string;
688
- } | {
689
- readonly type: "video";
690
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
691
- } | {
692
- readonly type: "document";
693
- readonly filename?: string;
694
- readonly url: string;
695
- } | {
696
- readonly type: "document";
697
- readonly filename?: string;
698
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
699
730
  };
700
731
  readonly body: string;
701
732
  readonly footer?: string;
702
- readonly buttons: readonly {
703
- readonly id: string;
704
- readonly title: string;
705
- }[];
733
+ readonly flowId: string & import("effect/Brand").Brand<"WhatsAppFlowId">;
734
+ readonly cta: string;
735
+ readonly token?: string;
736
+ readonly action?: "data_exchange" | "navigate";
737
+ readonly screen?: string;
738
+ readonly data?: {
739
+ readonly [x: string]: import("./generated/index.js").JsonValue;
740
+ };
706
741
  } | {
707
742
  readonly type: "list";
708
743
  readonly header?: {
@@ -721,26 +756,26 @@ export declare const list: ((input?: {
721
756
  }[];
722
757
  }[];
723
758
  } | {
724
- readonly type: "cta_url";
759
+ readonly type: "buttons";
725
760
  readonly header?: {
726
761
  readonly type: "text";
727
762
  readonly text: string;
728
763
  } | {
729
764
  readonly type: "image";
730
765
  readonly url: string;
731
- } | {
732
- readonly type: "image";
733
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
734
766
  } | {
735
767
  readonly type: "video";
736
768
  readonly url: string;
737
- } | {
738
- readonly type: "video";
739
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
740
769
  } | {
741
770
  readonly type: "document";
742
771
  readonly filename?: string;
743
772
  readonly url: string;
773
+ } | {
774
+ readonly type: "image";
775
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
776
+ } | {
777
+ readonly type: "video";
778
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
744
779
  } | {
745
780
  readonly type: "document";
746
781
  readonly filename?: string;
@@ -748,76 +783,41 @@ export declare const list: ((input?: {
748
783
  };
749
784
  readonly body: string;
750
785
  readonly footer?: string;
751
- readonly displayText: string;
752
- readonly url: string;
786
+ readonly buttons: readonly {
787
+ readonly id: string;
788
+ readonly title: string;
789
+ }[];
753
790
  } | {
754
- readonly type: "flow";
791
+ readonly type: "cta_url";
755
792
  readonly header?: {
756
793
  readonly type: "text";
757
- readonly text: string;
758
- };
759
- readonly body: string;
760
- readonly footer?: string;
761
- readonly flowId: string & import("effect/Brand").Brand<"WhatsAppFlowId">;
762
- readonly cta: string;
763
- readonly token?: string;
764
- readonly action?: "data_exchange" | "navigate";
765
- readonly screen?: string;
766
- readonly data?: {
767
- readonly [x: string]: import("./generated").JsonValue;
768
- };
769
- };
770
- } | {
771
- readonly reaction: {
772
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
773
- readonly emoji: string;
774
- };
775
- } | {
776
- readonly location: {
777
- readonly latitude: number;
778
- readonly longitude: number;
779
- readonly name?: string;
780
- readonly address?: string;
781
- };
782
- } | {
783
- readonly contacts: readonly {
784
- readonly name: {
785
- readonly formattedName: string;
786
- readonly firstName?: string;
787
- readonly lastName?: string;
788
- readonly middleName?: string;
789
- readonly prefix?: string;
790
- readonly suffix?: string;
791
- };
792
- readonly phones?: readonly {
793
- readonly phone: string;
794
- readonly type?: string;
795
- readonly waId?: string;
796
- }[];
797
- readonly emails?: readonly {
798
- readonly email: string;
799
- readonly type?: string;
800
- }[];
801
- readonly urls?: readonly {
794
+ readonly text: string;
795
+ } | {
796
+ readonly type: "image";
802
797
  readonly url: string;
803
- readonly type?: string;
804
- }[];
805
- readonly org?: {
806
- readonly company?: string;
807
- readonly department?: string;
808
- readonly title?: string;
798
+ } | {
799
+ readonly type: "video";
800
+ readonly url: string;
801
+ } | {
802
+ readonly type: "document";
803
+ readonly filename?: string;
804
+ readonly url: string;
805
+ } | {
806
+ readonly type: "image";
807
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
808
+ } | {
809
+ readonly type: "video";
810
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
811
+ } | {
812
+ readonly type: "document";
813
+ readonly filename?: string;
814
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
809
815
  };
810
- readonly addresses?: readonly {
811
- readonly street?: string;
812
- readonly city?: string;
813
- readonly state?: string;
814
- readonly zip?: string;
815
- readonly country?: string;
816
- readonly countryCode?: string;
817
- readonly type?: string;
818
- }[];
819
- readonly birthday?: string;
820
- }[];
816
+ readonly body: string;
817
+ readonly footer?: string;
818
+ readonly displayText: string;
819
+ readonly url: string;
820
+ };
821
821
  };
822
822
  };
823
823
  readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
@@ -832,7 +832,7 @@ export declare const list: ((input?: {
832
832
  readonly updatedAt: string;
833
833
  }[];
834
834
  readonly nextCursor: string | null;
835
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
835
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
836
836
  readonly items: (input?: {
837
837
  readonly limit?: number | null | undefined;
838
838
  readonly cursor?: string | undefined;
@@ -847,7 +847,7 @@ export declare const list: ((input?: {
847
847
  readonly send: {
848
848
  readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
849
849
  readonly metadata?: {
850
- readonly [x: string]: import("./generated").JsonValue;
850
+ readonly [x: string]: import("./generated/index.js").JsonValue;
851
851
  } | null;
852
852
  readonly channel: "email";
853
853
  readonly to: readonly ({
@@ -891,7 +891,7 @@ export declare const list: ((input?: {
891
891
  readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
892
892
  readonly templateSlug?: string | null;
893
893
  readonly templateData?: {
894
- readonly [x: string]: import("./generated").JsonValue;
894
+ readonly [x: string]: import("./generated/index.js").JsonValue;
895
895
  } | null;
896
896
  readonly locale?: string;
897
897
  readonly timeZone?: string;
@@ -912,7 +912,7 @@ export declare const list: ((input?: {
912
912
  } | {
913
913
  readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
914
914
  readonly metadata?: {
915
- readonly [x: string]: import("./generated").JsonValue;
915
+ readonly [x: string]: import("./generated/index.js").JsonValue;
916
916
  } | null;
917
917
  readonly channel: "sms";
918
918
  readonly to: readonly ({
@@ -927,13 +927,13 @@ export declare const list: ((input?: {
927
927
  readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
928
928
  readonly templateSlug?: string | null;
929
929
  readonly templateData?: {
930
- readonly [x: string]: import("./generated").JsonValue;
930
+ readonly [x: string]: import("./generated/index.js").JsonValue;
931
931
  } | null;
932
932
  };
933
933
  } | {
934
934
  readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
935
935
  readonly metadata?: {
936
- readonly [x: string]: import("./generated").JsonValue;
936
+ readonly [x: string]: import("./generated/index.js").JsonValue;
937
937
  } | null;
938
938
  readonly channel: "whatsapp";
939
939
  readonly to: readonly ({
@@ -948,88 +948,123 @@ export declare const list: ((input?: {
948
948
  } | {
949
949
  readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
950
950
  readonly templateData?: {
951
- readonly [x: string]: import("./generated").JsonValue;
951
+ readonly [x: string]: import("./generated/index.js").JsonValue;
952
952
  };
953
953
  readonly flowToken?: string;
954
954
  } | {
955
955
  readonly templateSlug: string;
956
956
  readonly templateData?: {
957
- readonly [x: string]: import("./generated").JsonValue;
957
+ readonly [x: string]: import("./generated/index.js").JsonValue;
958
958
  };
959
959
  readonly flowToken?: string;
960
+ } | {
961
+ readonly location: {
962
+ readonly latitude: number;
963
+ readonly longitude: number;
964
+ readonly name?: string;
965
+ readonly address?: string;
966
+ };
967
+ } | {
968
+ readonly contacts: readonly {
969
+ readonly name: {
970
+ readonly formattedName: string;
971
+ readonly firstName?: string;
972
+ readonly lastName?: string;
973
+ readonly middleName?: string;
974
+ readonly prefix?: string;
975
+ readonly suffix?: string;
976
+ };
977
+ readonly phones?: readonly {
978
+ readonly phone: string;
979
+ readonly type?: string;
980
+ readonly waId?: string;
981
+ }[];
982
+ readonly emails?: readonly {
983
+ readonly email: string;
984
+ readonly type?: string;
985
+ }[];
986
+ readonly urls?: readonly {
987
+ readonly url: string;
988
+ readonly type?: string;
989
+ }[];
990
+ readonly org?: {
991
+ readonly company?: string;
992
+ readonly department?: string;
993
+ readonly title?: string;
994
+ };
995
+ readonly addresses?: readonly {
996
+ readonly street?: string;
997
+ readonly city?: string;
998
+ readonly state?: string;
999
+ readonly zip?: string;
1000
+ readonly country?: string;
1001
+ readonly countryCode?: string;
1002
+ readonly type?: string;
1003
+ }[];
1004
+ readonly birthday?: string;
1005
+ }[];
1006
+ } | {
1007
+ readonly reaction: {
1008
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
1009
+ readonly emoji: string;
1010
+ };
960
1011
  } | {
961
1012
  readonly media: {
962
1013
  readonly type: "image";
963
1014
  readonly caption?: string;
964
1015
  readonly url: string;
965
- } | {
966
- readonly type: "image";
967
- readonly caption?: string;
968
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
969
1016
  } | {
970
1017
  readonly type: "video";
971
1018
  readonly caption?: string;
972
1019
  readonly url: string;
973
- } | {
974
- readonly type: "video";
975
- readonly caption?: string;
976
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
977
1020
  } | {
978
1021
  readonly type: "audio";
979
1022
  readonly url: string;
980
- } | {
981
- readonly type: "audio";
982
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
983
1023
  } | {
984
1024
  readonly type: "document";
985
1025
  readonly caption?: string;
986
1026
  readonly filename?: string;
987
1027
  readonly url: string;
1028
+ } | {
1029
+ readonly type: "sticker";
1030
+ readonly url: string;
1031
+ } | {
1032
+ readonly type: "image";
1033
+ readonly caption?: string;
1034
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1035
+ } | {
1036
+ readonly type: "video";
1037
+ readonly caption?: string;
1038
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1039
+ } | {
1040
+ readonly type: "audio";
1041
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
988
1042
  } | {
989
1043
  readonly type: "document";
990
1044
  readonly caption?: string;
991
1045
  readonly filename?: string;
992
1046
  readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
993
- } | {
994
- readonly type: "sticker";
995
- readonly url: string;
996
1047
  } | {
997
1048
  readonly type: "sticker";
998
1049
  readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
999
1050
  };
1000
1051
  } | {
1001
1052
  readonly interactive: {
1002
- readonly type: "buttons";
1053
+ readonly type: "flow";
1003
1054
  readonly header?: {
1004
1055
  readonly type: "text";
1005
1056
  readonly text: string;
1006
- } | {
1007
- readonly type: "image";
1008
- readonly url: string;
1009
- } | {
1010
- readonly type: "image";
1011
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1012
- } | {
1013
- readonly type: "video";
1014
- readonly url: string;
1015
- } | {
1016
- readonly type: "video";
1017
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1018
- } | {
1019
- readonly type: "document";
1020
- readonly filename?: string;
1021
- readonly url: string;
1022
- } | {
1023
- readonly type: "document";
1024
- readonly filename?: string;
1025
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1026
1057
  };
1027
1058
  readonly body: string;
1028
1059
  readonly footer?: string;
1029
- readonly buttons: readonly {
1030
- readonly id: string;
1031
- readonly title: string;
1032
- }[];
1060
+ readonly flowId: string & import("effect/Brand").Brand<"WhatsAppFlowId">;
1061
+ readonly cta: string;
1062
+ readonly token?: string;
1063
+ readonly action?: "data_exchange" | "navigate";
1064
+ readonly screen?: string;
1065
+ readonly data?: {
1066
+ readonly [x: string]: import("./generated/index.js").JsonValue;
1067
+ };
1033
1068
  } | {
1034
1069
  readonly type: "list";
1035
1070
  readonly header?: {
@@ -1048,26 +1083,26 @@ export declare const list: ((input?: {
1048
1083
  }[];
1049
1084
  }[];
1050
1085
  } | {
1051
- readonly type: "cta_url";
1086
+ readonly type: "buttons";
1052
1087
  readonly header?: {
1053
1088
  readonly type: "text";
1054
1089
  readonly text: string;
1055
1090
  } | {
1056
1091
  readonly type: "image";
1057
1092
  readonly url: string;
1058
- } | {
1059
- readonly type: "image";
1060
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1061
1093
  } | {
1062
1094
  readonly type: "video";
1063
1095
  readonly url: string;
1064
- } | {
1065
- readonly type: "video";
1066
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1067
1096
  } | {
1068
1097
  readonly type: "document";
1069
1098
  readonly filename?: string;
1070
1099
  readonly url: string;
1100
+ } | {
1101
+ readonly type: "image";
1102
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1103
+ } | {
1104
+ readonly type: "video";
1105
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1071
1106
  } | {
1072
1107
  readonly type: "document";
1073
1108
  readonly filename?: string;
@@ -1075,76 +1110,41 @@ export declare const list: ((input?: {
1075
1110
  };
1076
1111
  readonly body: string;
1077
1112
  readonly footer?: string;
1078
- readonly displayText: string;
1079
- readonly url: string;
1113
+ readonly buttons: readonly {
1114
+ readonly id: string;
1115
+ readonly title: string;
1116
+ }[];
1080
1117
  } | {
1081
- readonly type: "flow";
1118
+ readonly type: "cta_url";
1082
1119
  readonly header?: {
1083
1120
  readonly type: "text";
1084
1121
  readonly text: string;
1122
+ } | {
1123
+ readonly type: "image";
1124
+ readonly url: string;
1125
+ } | {
1126
+ readonly type: "video";
1127
+ readonly url: string;
1128
+ } | {
1129
+ readonly type: "document";
1130
+ readonly filename?: string;
1131
+ readonly url: string;
1132
+ } | {
1133
+ readonly type: "image";
1134
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1135
+ } | {
1136
+ readonly type: "video";
1137
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1138
+ } | {
1139
+ readonly type: "document";
1140
+ readonly filename?: string;
1141
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1085
1142
  };
1086
1143
  readonly body: string;
1087
1144
  readonly footer?: string;
1088
- readonly flowId: string & import("effect/Brand").Brand<"WhatsAppFlowId">;
1089
- readonly cta: string;
1090
- readonly token?: string;
1091
- readonly action?: "data_exchange" | "navigate";
1092
- readonly screen?: string;
1093
- readonly data?: {
1094
- readonly [x: string]: import("./generated").JsonValue;
1095
- };
1096
- };
1097
- } | {
1098
- readonly reaction: {
1099
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
1100
- readonly emoji: string;
1101
- };
1102
- } | {
1103
- readonly location: {
1104
- readonly latitude: number;
1105
- readonly longitude: number;
1106
- readonly name?: string;
1107
- readonly address?: string;
1145
+ readonly displayText: string;
1146
+ readonly url: string;
1108
1147
  };
1109
- } | {
1110
- readonly contacts: readonly {
1111
- readonly name: {
1112
- readonly formattedName: string;
1113
- readonly firstName?: string;
1114
- readonly lastName?: string;
1115
- readonly middleName?: string;
1116
- readonly prefix?: string;
1117
- readonly suffix?: string;
1118
- };
1119
- readonly phones?: readonly {
1120
- readonly phone: string;
1121
- readonly type?: string;
1122
- readonly waId?: string;
1123
- }[];
1124
- readonly emails?: readonly {
1125
- readonly email: string;
1126
- readonly type?: string;
1127
- }[];
1128
- readonly urls?: readonly {
1129
- readonly url: string;
1130
- readonly type?: string;
1131
- }[];
1132
- readonly org?: {
1133
- readonly company?: string;
1134
- readonly department?: string;
1135
- readonly title?: string;
1136
- };
1137
- readonly addresses?: readonly {
1138
- readonly street?: string;
1139
- readonly city?: string;
1140
- readonly state?: string;
1141
- readonly zip?: string;
1142
- readonly country?: string;
1143
- readonly countryCode?: string;
1144
- readonly type?: string;
1145
- }[];
1146
- readonly birthday?: string;
1147
- }[];
1148
1148
  };
1149
1149
  };
1150
1150
  readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
@@ -1157,14 +1157,14 @@ export declare const list: ((input?: {
1157
1157
  readonly memberRole: string;
1158
1158
  readonly createdAt: string;
1159
1159
  readonly updatedAt: string;
1160
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1160
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
1161
1161
  };
1162
1162
  export declare const get: (input: {
1163
1163
  readonly id: string;
1164
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"scheduledMessagesGet">;
1164
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"scheduledMessagesGet">;
1165
1165
  export declare const cancel: (input: {
1166
1166
  readonly id: string;
1167
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"scheduledMessagesCancel">;
1167
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"scheduledMessagesCancel">;
1168
1168
  export declare const resume: (input: {
1169
1169
  readonly id: string;
1170
1170
  readonly choice: "send_now";
@@ -1172,4 +1172,4 @@ export declare const resume: (input: {
1172
1172
  readonly id: string;
1173
1173
  readonly choice: "new_time";
1174
1174
  readonly scheduledFor: Date;
1175
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"scheduledMessagesResume">;
1175
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"scheduledMessagesResume">;