samva 0.34.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 (117) hide show
  1. package/README.md +1 -1
  2. package/dist/client/sdk.gen.d.ts +224 -250
  3. package/dist/client/sdk.gen.js +84 -210
  4. package/dist/client/types.gen.d.ts +2894 -401
  5. package/dist/effect/agents.d.ts +28 -13
  6. package/dist/effect/agents.js +5 -1
  7. package/dist/effect/analytics.d.ts +15 -15
  8. package/dist/effect/api-keys.d.ts +27 -18
  9. package/dist/effect/campaigns.d.ts +721 -65
  10. package/dist/effect/categories.d.ts +3 -3
  11. package/dist/effect/contact-groups.d.ts +15 -15
  12. package/dist/effect/contacts.d.ts +56 -52
  13. package/dist/effect/conversations.d.ts +45 -45
  14. package/dist/effect/email.d.ts +82 -82
  15. package/dist/effect/errors.d.ts +1 -1
  16. package/dist/effect/errors.js +2 -2
  17. package/dist/effect/extension-installations.d.ts +11 -11
  18. package/dist/effect/extensions.d.ts +16 -16
  19. package/dist/effect/generated/agents.d.ts +1063 -33
  20. package/dist/effect/generated/agents.js +133 -11
  21. package/dist/effect/generated/analytics.d.ts +109 -136
  22. package/dist/effect/generated/analytics.js +65 -36
  23. package/dist/effect/generated/api-keys.d.ts +240 -19
  24. package/dist/effect/generated/api-keys.js +24 -8
  25. package/dist/effect/generated/attachments.d.ts +89 -1
  26. package/dist/effect/generated/attachments.js +10 -2
  27. package/dist/effect/generated/brands.d.ts +133 -1
  28. package/dist/effect/generated/brands.js +22 -10
  29. package/dist/effect/generated/campaigns.d.ts +1442 -140
  30. package/dist/effect/generated/campaigns.js +82 -20
  31. package/dist/effect/generated/contact-events.d.ts +26 -4
  32. package/dist/effect/generated/contact-events.js +5 -3
  33. package/dist/effect/generated/contact-groups.d.ts +233 -13
  34. package/dist/effect/generated/contact-groups.js +33 -17
  35. package/dist/effect/generated/contacts.d.ts +634 -96
  36. package/dist/effect/generated/contacts.js +82 -20
  37. package/dist/effect/generated/conversations.d.ts +398 -106
  38. package/dist/effect/generated/conversations.js +96 -22
  39. package/dist/effect/generated/custom-fields.d.ts +89 -1
  40. package/dist/effect/generated/custom-fields.js +11 -3
  41. package/dist/effect/generated/email.d.ts +1447 -83
  42. package/dist/effect/generated/email.js +167 -43
  43. package/dist/effect/generated/events.d.ts +51 -7
  44. package/dist/effect/generated/events.js +9 -5
  45. package/dist/effect/generated/extension-installations.d.ts +208 -10
  46. package/dist/effect/generated/extension-installations.js +26 -8
  47. package/dist/effect/generated/extensions.d.ts +123 -13
  48. package/dist/effect/generated/extensions.js +20 -10
  49. package/dist/effect/generated/feedback.d.ts +23 -1
  50. package/dist/effect/generated/feedback.js +6 -4
  51. package/dist/effect/generated/journeys.d.ts +684 -16
  52. package/dist/effect/generated/journeys.js +37 -9
  53. package/dist/effect/generated/mailboxes.d.ts +3085 -627
  54. package/dist/effect/generated/mailboxes.js +340 -141
  55. package/dist/effect/generated/media.d.ts +125 -15
  56. package/dist/effect/generated/media.js +15 -2
  57. package/dist/effect/generated/messages.d.ts +2036 -117
  58. package/dist/effect/generated/messages.js +286 -54
  59. package/dist/effect/generated/namespaces.d.ts +209 -25
  60. package/dist/effect/generated/namespaces.js +27 -9
  61. package/dist/effect/generated/newsletter-domains.d.ts +98 -12
  62. package/dist/effect/generated/newsletter-domains.js +20 -13
  63. package/dist/effect/generated/newsletter-issues.d.ts +354 -19
  64. package/dist/effect/generated/newsletter-issues.js +162 -98
  65. package/dist/effect/generated/newsletters.d.ts +123 -13
  66. package/dist/effect/generated/newsletters.js +19 -9
  67. package/dist/effect/generated/operations.d.ts +76 -10
  68. package/dist/effect/generated/operations.js +12 -6
  69. package/dist/effect/generated/organizations.d.ts +287 -7
  70. package/dist/effect/generated/organizations.js +33 -5
  71. package/dist/effect/generated/scheduled-messages.d.ts +4427 -99
  72. package/dist/effect/generated/scheduled-messages.js +71 -12
  73. package/dist/effect/generated/shared.d.ts +2213 -190
  74. package/dist/effect/generated/shared.js +527 -76
  75. package/dist/effect/generated/subscriptions.d.ts +23 -1
  76. package/dist/effect/generated/subscriptions.js +6 -4
  77. package/dist/effect/generated/templates.d.ts +1718 -136
  78. package/dist/effect/generated/templates.js +421 -226
  79. package/dist/effect/generated/topic-forms.d.ts +111 -1
  80. package/dist/effect/generated/topic-forms.js +23 -13
  81. package/dist/effect/generated/topics.d.ts +353 -43
  82. package/dist/effect/generated/topics.js +67 -19
  83. package/dist/effect/generated/webhooks.d.ts +296 -38
  84. package/dist/effect/generated/webhooks.js +58 -16
  85. package/dist/effect/generated/whoami.d.ts +35 -1
  86. package/dist/effect/generated/whoami.js +4 -2
  87. package/dist/effect/generated-metadata.d.ts +20 -0
  88. package/dist/effect/generated-metadata.js +10 -0
  89. package/dist/effect/index.js +2 -2
  90. package/dist/effect/internal/client.js +1 -1
  91. package/dist/effect/internal/email-sender.d.ts +1 -1
  92. package/dist/effect/internal/send.d.ts +1 -1
  93. package/dist/effect/journeys.d.ts +105 -19
  94. package/dist/effect/mailboxes.d.ts +405 -174
  95. package/dist/effect/media.d.ts +1 -1
  96. package/dist/effect/messages.d.ts +40 -40
  97. package/dist/effect/namespaces.d.ts +15 -15
  98. package/dist/effect/newsletter-domains.d.ts +5 -5
  99. package/dist/effect/newsletters.d.ts +1 -1
  100. package/dist/effect/operations.d.ts +11 -11
  101. package/dist/effect/organizations.d.ts +2 -2
  102. package/dist/effect/scheduled-messages.d.ts +863 -8
  103. package/dist/effect/templates.d.ts +37 -37
  104. package/dist/effect/topics.d.ts +21 -21
  105. package/dist/effect/webhooks.d.ts +22 -22
  106. package/dist/index.js +2 -2
  107. package/dist/normalize.js +13 -1
  108. package/dist/package.js +1 -1
  109. package/dist/promises/client.d.ts +1 -1
  110. package/dist/promises/client.js +2 -2
  111. package/dist/promises/errors.gen.d.ts +22 -2
  112. package/dist/promises/errors.gen.js +60 -2
  113. package/dist/promises/index.js +2 -2
  114. package/dist/promises/types.gen.d.ts +1 -1
  115. package/dist/service-map.d.ts +9 -0
  116. package/dist/service-map.js +5 -0
  117. package/package.json +9 -8
@@ -97,6 +97,136 @@ export declare const preview: (input: {
97
97
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
98
98
  } | null | undefined;
99
99
  } | null | undefined;
100
+ } | {
101
+ readonly channel: "sms";
102
+ readonly sms: {
103
+ readonly text?: string | null | undefined;
104
+ readonly templateId?: string | null | undefined;
105
+ readonly templateSlug?: string | null | undefined;
106
+ readonly templateData?: {
107
+ 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 | {
108
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
109
+ } | null)[] | {
110
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
111
+ } | null)[] | {
112
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
113
+ } | null)[] | {
114
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
115
+ } | null)[] | {
116
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
117
+ } | null)[] | {
118
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
119
+ } | null)[] | {
120
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
121
+ } | null)[] | {
122
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
123
+ } | null)[] | {
124
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
125
+ } | null)[] | {
126
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
127
+ } | null)[] | {
128
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
129
+ } | null)[] | {
130
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
131
+ } | null | undefined;
132
+ } | null | undefined;
133
+ };
134
+ readonly conversationId?: string | null | undefined;
135
+ readonly metadata?: {
136
+ 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 | {
137
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
138
+ } | null)[] | {
139
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
140
+ } | null)[] | {
141
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
142
+ } | null)[] | {
143
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
144
+ } | null)[] | {
145
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
146
+ } | null)[] | {
147
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
148
+ } | null)[] | {
149
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
150
+ } | null)[] | {
151
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
152
+ } | null)[] | {
153
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
154
+ } | null)[] | {
155
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
156
+ } | null)[] | {
157
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
158
+ } | null)[] | {
159
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
160
+ } | null | undefined;
161
+ } | null | undefined;
162
+ } | {
163
+ readonly channel: "whatsapp";
164
+ readonly whatsapp: {
165
+ readonly template: string;
166
+ readonly templateData?: {
167
+ 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 | {
168
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
169
+ } | null)[] | {
170
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
171
+ } | null)[] | {
172
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
173
+ } | null)[] | {
174
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
175
+ } | null)[] | {
176
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
177
+ } | null)[] | {
178
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
179
+ } | null)[] | {
180
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
181
+ } | null)[] | {
182
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
183
+ } | null)[] | {
184
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
185
+ } | null)[] | {
186
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
187
+ } | null)[] | {
188
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
189
+ } | null)[] | {
190
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
191
+ } | null | undefined;
192
+ } | undefined;
193
+ readonly bindings?: {
194
+ readonly [x: string]: {
195
+ readonly contact: "company" | "displayName" | "email" | "externalId" | "firstName" | "id" | "jobTitle" | "lastName" | "name" | "phone";
196
+ } | {
197
+ readonly customField: string;
198
+ } | undefined;
199
+ } | undefined;
200
+ readonly businessAccountId?: string | undefined;
201
+ };
202
+ readonly conversationId?: string | null | undefined;
203
+ readonly metadata?: {
204
+ 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 | {
205
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
206
+ } | null)[] | {
207
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
208
+ } | null)[] | {
209
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
210
+ } | null)[] | {
211
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
212
+ } | null)[] | {
213
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
214
+ } | null)[] | {
215
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
216
+ } | null)[] | {
217
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
218
+ } | null)[] | {
219
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
220
+ } | null)[] | {
221
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
222
+ } | null)[] | {
223
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
224
+ } | null)[] | {
225
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
226
+ } | null)[] | {
227
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
228
+ } | null | undefined;
229
+ } | null | undefined;
100
230
  };
101
231
  readonly audience: {
102
232
  readonly topicId: string;
@@ -206,6 +336,136 @@ export declare const sendTest: (input: {
206
336
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
207
337
  } | null | undefined;
208
338
  } | null | undefined;
339
+ } | {
340
+ readonly channel: "sms";
341
+ readonly sms: {
342
+ readonly text?: string | null | undefined;
343
+ readonly templateId?: string | null | undefined;
344
+ readonly templateSlug?: string | null | undefined;
345
+ readonly templateData?: {
346
+ 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 | {
347
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
348
+ } | null)[] | {
349
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
350
+ } | null)[] | {
351
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
352
+ } | null)[] | {
353
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
354
+ } | null)[] | {
355
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
356
+ } | null)[] | {
357
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
358
+ } | null)[] | {
359
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
360
+ } | null)[] | {
361
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
362
+ } | null)[] | {
363
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
364
+ } | null)[] | {
365
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
366
+ } | null)[] | {
367
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
368
+ } | null)[] | {
369
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
370
+ } | null | undefined;
371
+ } | null | undefined;
372
+ };
373
+ readonly conversationId?: string | null | undefined;
374
+ readonly metadata?: {
375
+ 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 | {
376
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
377
+ } | null)[] | {
378
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
379
+ } | null)[] | {
380
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
381
+ } | null)[] | {
382
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
383
+ } | null)[] | {
384
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
385
+ } | null)[] | {
386
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
387
+ } | null)[] | {
388
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
389
+ } | null)[] | {
390
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
391
+ } | null)[] | {
392
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
393
+ } | null)[] | {
394
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
395
+ } | null)[] | {
396
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
397
+ } | null)[] | {
398
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
399
+ } | null | undefined;
400
+ } | null | undefined;
401
+ } | {
402
+ readonly channel: "whatsapp";
403
+ readonly whatsapp: {
404
+ readonly template: string;
405
+ readonly templateData?: {
406
+ 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 | {
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)[] | {
415
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
416
+ } | null)[] | {
417
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
418
+ } | null)[] | {
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 | undefined;
431
+ } | undefined;
432
+ readonly bindings?: {
433
+ readonly [x: string]: {
434
+ readonly contact: "company" | "displayName" | "email" | "externalId" | "firstName" | "id" | "jobTitle" | "lastName" | "name" | "phone";
435
+ } | {
436
+ readonly customField: string;
437
+ } | undefined;
438
+ } | undefined;
439
+ readonly businessAccountId?: string | undefined;
440
+ };
441
+ readonly conversationId?: string | null | undefined;
442
+ readonly metadata?: {
443
+ 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 | {
444
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
445
+ } | null)[] | {
446
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
447
+ } | null)[] | {
448
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
449
+ } | null)[] | {
450
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
451
+ } | null)[] | {
452
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
453
+ } | null)[] | {
454
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
455
+ } | null)[] | {
456
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
457
+ } | null)[] | {
458
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
459
+ } | null)[] | {
460
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
461
+ } | null)[] | {
462
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
463
+ } | null)[] | {
464
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
465
+ } | null)[] | {
466
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
467
+ } | null | undefined;
468
+ } | null | undefined;
209
469
  };
210
470
  readonly audience: {
211
471
  readonly topicId: string;
@@ -217,20 +477,34 @@ export declare const sendTest: (input: {
217
477
  readonly contactId?: string | null | undefined;
218
478
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsSendTest">;
219
479
  export declare const list: ((input?: {
220
- readonly status?: "archived" | "draft" | null | undefined;
480
+ readonly status?: "archived" | "draft" | undefined;
221
481
  readonly limit?: number | null | undefined;
222
- readonly cursor?: string | null | undefined;
482
+ readonly cursor?: string | undefined;
223
483
  } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsList">) & {
224
484
  readonly pages: (input?: {
225
- readonly status?: "archived" | "draft" | null | undefined;
485
+ readonly status?: "archived" | "draft" | undefined;
226
486
  readonly limit?: number | null | undefined;
227
- readonly cursor?: string | null | undefined;
487
+ readonly cursor?: string | undefined;
228
488
  } | undefined) => import("effect/Stream").Stream<{
229
489
  readonly items: readonly {
230
490
  readonly id: string & import("effect/Brand").Brand<"CampaignId">;
231
491
  readonly name: string;
232
- readonly channel: "email";
492
+ readonly channel: "email" | "sms" | "whatsapp";
233
493
  readonly content: {
494
+ readonly channel: "sms";
495
+ readonly sms: {
496
+ readonly text?: string | null;
497
+ readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
498
+ readonly templateSlug?: string | null;
499
+ readonly templateData?: {
500
+ readonly [x: string]: import("./generated").JsonValue;
501
+ } | null;
502
+ };
503
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
504
+ readonly metadata?: {
505
+ readonly [x: string]: import("./generated").JsonValue;
506
+ } | null;
507
+ } | {
234
508
  readonly channel: "email";
235
509
  readonly email: {
236
510
  readonly subject?: string | null;
@@ -280,6 +554,26 @@ export declare const list: ((input?: {
280
554
  readonly metadata?: {
281
555
  readonly [x: string]: import("./generated").JsonValue;
282
556
  } | null;
557
+ } | {
558
+ readonly channel: "whatsapp";
559
+ readonly whatsapp: {
560
+ readonly template: string | (string & import("effect/Brand").Brand<"TemplateId">);
561
+ readonly templateData?: {
562
+ readonly [x: string]: import("./generated").JsonValue;
563
+ };
564
+ readonly bindings?: {
565
+ readonly [x: string]: {
566
+ readonly contact: "company" | "displayName" | "email" | "externalId" | "firstName" | "id" | "jobTitle" | "lastName" | "name" | "phone";
567
+ } | {
568
+ readonly customField: string;
569
+ };
570
+ };
571
+ readonly businessAccountId?: string & import("effect/Brand").Brand<"WhatsAppBusinessAccountId">;
572
+ };
573
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
574
+ readonly metadata?: {
575
+ readonly [x: string]: import("./generated").JsonValue;
576
+ } | null;
283
577
  };
284
578
  readonly audience: {
285
579
  readonly topicId: string & import("effect/Brand").Brand<"TopicId">;
@@ -315,16 +609,30 @@ export declare const list: ((input?: {
315
609
  readonly series: readonly number[];
316
610
  }[];
317
611
  readonly nextCursor: string | null;
318
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
612
+ }, 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>;
319
613
  readonly items: (input?: {
320
- readonly status?: "archived" | "draft" | null | undefined;
614
+ readonly status?: "archived" | "draft" | undefined;
321
615
  readonly limit?: number | null | undefined;
322
- readonly cursor?: string | null | undefined;
616
+ readonly cursor?: string | undefined;
323
617
  } | undefined) => import("effect/Stream").Stream<{
324
618
  readonly id: string & import("effect/Brand").Brand<"CampaignId">;
325
619
  readonly name: string;
326
- readonly channel: "email";
620
+ readonly channel: "email" | "sms" | "whatsapp";
327
621
  readonly content: {
622
+ readonly channel: "sms";
623
+ readonly sms: {
624
+ readonly text?: string | null;
625
+ readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
626
+ readonly templateSlug?: string | null;
627
+ readonly templateData?: {
628
+ readonly [x: string]: import("./generated").JsonValue;
629
+ } | null;
630
+ };
631
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
632
+ readonly metadata?: {
633
+ readonly [x: string]: import("./generated").JsonValue;
634
+ } | null;
635
+ } | {
328
636
  readonly channel: "email";
329
637
  readonly email: {
330
638
  readonly subject?: string | null;
@@ -374,6 +682,26 @@ export declare const list: ((input?: {
374
682
  readonly metadata?: {
375
683
  readonly [x: string]: import("./generated").JsonValue;
376
684
  } | null;
685
+ } | {
686
+ readonly channel: "whatsapp";
687
+ readonly whatsapp: {
688
+ readonly template: string | (string & import("effect/Brand").Brand<"TemplateId">);
689
+ readonly templateData?: {
690
+ readonly [x: string]: import("./generated").JsonValue;
691
+ };
692
+ readonly bindings?: {
693
+ readonly [x: string]: {
694
+ readonly contact: "company" | "displayName" | "email" | "externalId" | "firstName" | "id" | "jobTitle" | "lastName" | "name" | "phone";
695
+ } | {
696
+ readonly customField: string;
697
+ };
698
+ };
699
+ readonly businessAccountId?: string & import("effect/Brand").Brand<"WhatsAppBusinessAccountId">;
700
+ };
701
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
702
+ readonly metadata?: {
703
+ readonly [x: string]: import("./generated").JsonValue;
704
+ } | null;
377
705
  };
378
706
  readonly audience: {
379
707
  readonly topicId: string & import("effect/Brand").Brand<"TopicId">;
@@ -407,31 +735,118 @@ export declare const list: ((input?: {
407
735
  readonly createdAt: string;
408
736
  readonly updatedAt: string;
409
737
  readonly series: readonly number[];
410
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
738
+ }, 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>;
411
739
  };
412
740
  export declare const create: (input: {
413
741
  readonly name: string;
414
- readonly channel: "email";
742
+ readonly channel: "email" | "sms" | "whatsapp";
415
743
  readonly content: {
416
744
  readonly channel: "email";
417
745
  readonly email: {
418
746
  readonly subject?: string | null | undefined;
419
747
  readonly html?: string | null | undefined;
420
748
  readonly text?: string | null | undefined;
421
- readonly attachments?: readonly {
422
- readonly filename: string;
423
- readonly content?: string | null | undefined;
424
- readonly mediaId?: string | null | undefined;
425
- readonly contentType: string;
426
- readonly size: number;
427
- }[] | null | undefined;
428
- readonly publicationId?: string | undefined;
429
- readonly inputContractId?: string | undefined;
749
+ readonly attachments?: readonly {
750
+ readonly filename: string;
751
+ readonly content?: string | null | undefined;
752
+ readonly mediaId?: string | null | undefined;
753
+ readonly contentType: string;
754
+ readonly size: number;
755
+ }[] | null | undefined;
756
+ readonly publicationId?: string | undefined;
757
+ readonly inputContractId?: string | undefined;
758
+ readonly templateId?: string | null | undefined;
759
+ readonly templateSlug?: string | null | undefined;
760
+ readonly templateData?: {
761
+ 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 | /*elided*/ any | {
762
+ readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
763
+ } | null)[] | {
764
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
765
+ } | null)[] | {
766
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
767
+ } | null)[] | {
768
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
769
+ } | null)[] | {
770
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
771
+ } | null)[] | {
772
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
773
+ } | null)[] | {
774
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
775
+ } | null)[] | {
776
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
777
+ } | null)[] | {
778
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
779
+ } | null)[] | {
780
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
781
+ } | null)[] | {
782
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
783
+ } | null)[] | {
784
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
785
+ } | null | undefined;
786
+ } | null | undefined;
787
+ readonly locale?: string | undefined;
788
+ readonly timeZone?: string | undefined;
789
+ readonly inReplyToMessageId?: string | null | undefined;
790
+ readonly replyTo?: readonly string[] | null | undefined;
791
+ readonly topicId?: string | null | undefined;
792
+ readonly tracking?: {
793
+ readonly opens?: boolean | undefined;
794
+ readonly clicks?: boolean | undefined;
795
+ } | undefined;
796
+ readonly footer?: {
797
+ readonly enabled?: boolean | null | undefined;
798
+ } | undefined;
799
+ readonly headers?: {
800
+ readonly [x: string]: string | undefined;
801
+ } | null | undefined;
802
+ readonly preheader?: string | null | undefined;
803
+ };
804
+ readonly issue?: {
805
+ readonly path: string;
806
+ readonly commit: string;
807
+ } | null | undefined;
808
+ readonly from?: {
809
+ readonly email: string;
810
+ readonly name?: string | null | undefined;
811
+ } | null | undefined;
812
+ readonly replyMailboxId?: string | null | undefined;
813
+ readonly conversationId?: string | null | undefined;
814
+ readonly metadata?: {
815
+ 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 | {
816
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
817
+ } | null)[] | {
818
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
819
+ } | null)[] | {
820
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
821
+ } | null)[] | {
822
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
823
+ } | null)[] | {
824
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
825
+ } | null)[] | {
826
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
827
+ } | null)[] | {
828
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
829
+ } | null)[] | {
830
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
831
+ } | null)[] | {
832
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
833
+ } | null)[] | {
834
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
835
+ } | null)[] | {
836
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
837
+ } | null)[] | {
838
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
839
+ } | null | undefined;
840
+ } | null | undefined;
841
+ } | {
842
+ readonly channel: "sms";
843
+ readonly sms: {
844
+ readonly text?: string | null | undefined;
430
845
  readonly templateId?: string | null | undefined;
431
846
  readonly templateSlug?: string | null | undefined;
432
847
  readonly templateData?: {
433
- 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 | /*elided*/ any | {
434
- readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
848
+ 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 | {
849
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
435
850
  } | null)[] | {
436
851
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
437
852
  } | null)[] | {
@@ -456,32 +871,75 @@ export declare const create: (input: {
456
871
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
457
872
  } | null | undefined;
458
873
  } | null | undefined;
459
- readonly locale?: string | undefined;
460
- readonly timeZone?: string | undefined;
461
- readonly inReplyToMessageId?: string | null | undefined;
462
- readonly replyTo?: readonly string[] | null | undefined;
463
- readonly topicId?: string | null | undefined;
464
- readonly tracking?: {
465
- readonly opens?: boolean | undefined;
466
- readonly clicks?: boolean | undefined;
874
+ };
875
+ readonly conversationId?: string | null | undefined;
876
+ readonly metadata?: {
877
+ 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 | {
878
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
879
+ } | null)[] | {
880
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
881
+ } | null)[] | {
882
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
883
+ } | null)[] | {
884
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
885
+ } | null)[] | {
886
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
887
+ } | null)[] | {
888
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
889
+ } | null)[] | {
890
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
891
+ } | null)[] | {
892
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
893
+ } | null)[] | {
894
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
895
+ } | null)[] | {
896
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
897
+ } | null)[] | {
898
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
899
+ } | null)[] | {
900
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
901
+ } | null | undefined;
902
+ } | null | undefined;
903
+ } | {
904
+ readonly channel: "whatsapp";
905
+ readonly whatsapp: {
906
+ readonly template: string;
907
+ readonly templateData?: {
908
+ 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 | {
909
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
910
+ } | null)[] | {
911
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
912
+ } | null)[] | {
913
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
914
+ } | null)[] | {
915
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
916
+ } | null)[] | {
917
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
918
+ } | null)[] | {
919
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
920
+ } | null)[] | {
921
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
922
+ } | null)[] | {
923
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
924
+ } | null)[] | {
925
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
926
+ } | null)[] | {
927
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
928
+ } | null)[] | {
929
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
930
+ } | null)[] | {
931
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
932
+ } | null | undefined;
467
933
  } | undefined;
468
- readonly footer?: {
469
- readonly enabled?: boolean | null | undefined;
934
+ readonly bindings?: {
935
+ readonly [x: string]: {
936
+ readonly contact: "company" | "displayName" | "email" | "externalId" | "firstName" | "id" | "jobTitle" | "lastName" | "name" | "phone";
937
+ } | {
938
+ readonly customField: string;
939
+ } | undefined;
470
940
  } | undefined;
471
- readonly headers?: {
472
- readonly [x: string]: string | undefined;
473
- } | null | undefined;
474
- readonly preheader?: string | null | undefined;
941
+ readonly businessAccountId?: string | undefined;
475
942
  };
476
- readonly issue?: {
477
- readonly path: string;
478
- readonly commit: string;
479
- } | null | undefined;
480
- readonly from?: {
481
- readonly email: string;
482
- readonly name?: string | null | undefined;
483
- } | null | undefined;
484
- readonly replyMailboxId?: string | null | undefined;
485
943
  readonly conversationId?: string | null | undefined;
486
944
  readonly metadata?: {
487
945
  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 | {
@@ -629,6 +1087,136 @@ export declare const update: (input: {
629
1087
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
630
1088
  } | null | undefined;
631
1089
  } | null | undefined;
1090
+ } | {
1091
+ readonly channel: "sms";
1092
+ readonly sms: {
1093
+ readonly text?: string | null | undefined;
1094
+ readonly templateId?: string | null | undefined;
1095
+ readonly templateSlug?: string | null | undefined;
1096
+ readonly templateData?: {
1097
+ 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 | {
1098
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1099
+ } | null)[] | {
1100
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1101
+ } | null)[] | {
1102
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1103
+ } | null)[] | {
1104
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1105
+ } | null)[] | {
1106
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1107
+ } | null)[] | {
1108
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1109
+ } | null)[] | {
1110
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1111
+ } | null)[] | {
1112
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1113
+ } | null)[] | {
1114
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1115
+ } | null)[] | {
1116
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1117
+ } | null)[] | {
1118
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1119
+ } | null)[] | {
1120
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1121
+ } | null | undefined;
1122
+ } | null | undefined;
1123
+ };
1124
+ readonly conversationId?: string | null | undefined;
1125
+ readonly metadata?: {
1126
+ 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 | {
1127
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1128
+ } | null)[] | {
1129
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1130
+ } | null)[] | {
1131
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1132
+ } | null)[] | {
1133
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1134
+ } | null)[] | {
1135
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1136
+ } | null)[] | {
1137
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1138
+ } | null)[] | {
1139
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1140
+ } | null)[] | {
1141
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1142
+ } | null)[] | {
1143
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1144
+ } | null)[] | {
1145
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1146
+ } | null)[] | {
1147
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1148
+ } | null)[] | {
1149
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1150
+ } | null | undefined;
1151
+ } | null | undefined;
1152
+ } | {
1153
+ readonly channel: "whatsapp";
1154
+ readonly whatsapp: {
1155
+ readonly template: string;
1156
+ readonly templateData?: {
1157
+ 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 | {
1158
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1159
+ } | null)[] | {
1160
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1161
+ } | null)[] | {
1162
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1163
+ } | null)[] | {
1164
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1165
+ } | null)[] | {
1166
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1167
+ } | null)[] | {
1168
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1169
+ } | null)[] | {
1170
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1171
+ } | null)[] | {
1172
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1173
+ } | null)[] | {
1174
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1175
+ } | null)[] | {
1176
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1177
+ } | null)[] | {
1178
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1179
+ } | null)[] | {
1180
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1181
+ } | null | undefined;
1182
+ } | undefined;
1183
+ readonly bindings?: {
1184
+ readonly [x: string]: {
1185
+ readonly contact: "company" | "displayName" | "email" | "externalId" | "firstName" | "id" | "jobTitle" | "lastName" | "name" | "phone";
1186
+ } | {
1187
+ readonly customField: string;
1188
+ } | undefined;
1189
+ } | undefined;
1190
+ readonly businessAccountId?: string | undefined;
1191
+ };
1192
+ readonly conversationId?: string | null | undefined;
1193
+ readonly metadata?: {
1194
+ 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 | {
1195
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1196
+ } | null)[] | {
1197
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1198
+ } | null)[] | {
1199
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1200
+ } | null)[] | {
1201
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1202
+ } | null)[] | {
1203
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1204
+ } | null)[] | {
1205
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1206
+ } | null)[] | {
1207
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1208
+ } | null)[] | {
1209
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1210
+ } | null)[] | {
1211
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1212
+ } | null)[] | {
1213
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1214
+ } | null)[] | {
1215
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1216
+ } | null)[] | {
1217
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1218
+ } | null | undefined;
1219
+ } | null | undefined;
632
1220
  } | null | undefined;
633
1221
  readonly audience?: {
634
1222
  readonly topicId: string;
@@ -643,15 +1231,15 @@ export declare const update: (input: {
643
1231
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsUpdate">;
644
1232
  export declare const listRuns: ((input: {
645
1233
  readonly id: string;
646
- readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | null | undefined;
1234
+ readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | undefined;
647
1235
  readonly limit?: number | null | undefined;
648
- readonly cursor?: string | null | undefined;
1236
+ readonly cursor?: string | undefined;
649
1237
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsListRuns">) & {
650
1238
  readonly pages: (input: {
651
1239
  readonly id: string;
652
- readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | null | undefined;
1240
+ readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | undefined;
653
1241
  readonly limit?: number | null | undefined;
654
- readonly cursor?: string | null | undefined;
1242
+ readonly cursor?: string | undefined;
655
1243
  }) => import("effect/Stream").Stream<{
656
1244
  readonly items: readonly {
657
1245
  readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
@@ -662,6 +1250,20 @@ export declare const listRuns: ((input: {
662
1250
  readonly startedAt: string | null;
663
1251
  readonly completedAt: string | null;
664
1252
  readonly contentSnapshot: {
1253
+ readonly channel: "sms";
1254
+ readonly sms: {
1255
+ readonly text?: string | null;
1256
+ readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
1257
+ readonly templateSlug?: string | null;
1258
+ readonly templateData?: {
1259
+ readonly [x: string]: import("./generated").JsonValue;
1260
+ } | null;
1261
+ };
1262
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1263
+ readonly metadata?: {
1264
+ readonly [x: string]: import("./generated").JsonValue;
1265
+ } | null;
1266
+ } | {
665
1267
  readonly channel: "email";
666
1268
  readonly email: {
667
1269
  readonly subject?: string | null;
@@ -711,6 +1313,26 @@ export declare const listRuns: ((input: {
711
1313
  readonly metadata?: {
712
1314
  readonly [x: string]: import("./generated").JsonValue;
713
1315
  } | null;
1316
+ } | {
1317
+ readonly channel: "whatsapp";
1318
+ readonly whatsapp: {
1319
+ readonly template: string | (string & import("effect/Brand").Brand<"TemplateId">);
1320
+ readonly templateData?: {
1321
+ readonly [x: string]: import("./generated").JsonValue;
1322
+ };
1323
+ readonly bindings?: {
1324
+ readonly [x: string]: {
1325
+ readonly contact: "company" | "displayName" | "email" | "externalId" | "firstName" | "id" | "jobTitle" | "lastName" | "name" | "phone";
1326
+ } | {
1327
+ readonly customField: string;
1328
+ };
1329
+ };
1330
+ readonly businessAccountId?: string & import("effect/Brand").Brand<"WhatsAppBusinessAccountId">;
1331
+ };
1332
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1333
+ readonly metadata?: {
1334
+ readonly [x: string]: import("./generated").JsonValue;
1335
+ } | null;
714
1336
  };
715
1337
  readonly audienceSnapshot: {
716
1338
  readonly topicId: string & import("effect/Brand").Brand<"TopicId">;
@@ -728,7 +1350,7 @@ export declare const listRuns: ((input: {
728
1350
  readonly skippedCount: number;
729
1351
  readonly pendingCount: number;
730
1352
  readonly skippedReasons: readonly {
731
- readonly reason: "blocked" | "inactive" | "missing_merge_field" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
1353
+ readonly reason: "blocked" | "consent_required" | "inactive" | "missing_merge_field" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
732
1354
  readonly count: number;
733
1355
  }[];
734
1356
  readonly estimatedCompletionAt: string | null;
@@ -745,12 +1367,12 @@ export declare const listRuns: ((input: {
745
1367
  readonly updatedAt: string;
746
1368
  }[];
747
1369
  readonly nextCursor: string | null;
748
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1370
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
749
1371
  readonly items: (input: {
750
1372
  readonly id: string;
751
- readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | null | undefined;
1373
+ readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | undefined;
752
1374
  readonly limit?: number | null | undefined;
753
- readonly cursor?: string | null | undefined;
1375
+ readonly cursor?: string | undefined;
754
1376
  }) => import("effect/Stream").Stream<{
755
1377
  readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
756
1378
  readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
@@ -760,6 +1382,20 @@ export declare const listRuns: ((input: {
760
1382
  readonly startedAt: string | null;
761
1383
  readonly completedAt: string | null;
762
1384
  readonly contentSnapshot: {
1385
+ readonly channel: "sms";
1386
+ readonly sms: {
1387
+ readonly text?: string | null;
1388
+ readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
1389
+ readonly templateSlug?: string | null;
1390
+ readonly templateData?: {
1391
+ readonly [x: string]: import("./generated").JsonValue;
1392
+ } | null;
1393
+ };
1394
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1395
+ readonly metadata?: {
1396
+ readonly [x: string]: import("./generated").JsonValue;
1397
+ } | null;
1398
+ } | {
763
1399
  readonly channel: "email";
764
1400
  readonly email: {
765
1401
  readonly subject?: string | null;
@@ -809,6 +1445,26 @@ export declare const listRuns: ((input: {
809
1445
  readonly metadata?: {
810
1446
  readonly [x: string]: import("./generated").JsonValue;
811
1447
  } | null;
1448
+ } | {
1449
+ readonly channel: "whatsapp";
1450
+ readonly whatsapp: {
1451
+ readonly template: string | (string & import("effect/Brand").Brand<"TemplateId">);
1452
+ readonly templateData?: {
1453
+ readonly [x: string]: import("./generated").JsonValue;
1454
+ };
1455
+ readonly bindings?: {
1456
+ readonly [x: string]: {
1457
+ readonly contact: "company" | "displayName" | "email" | "externalId" | "firstName" | "id" | "jobTitle" | "lastName" | "name" | "phone";
1458
+ } | {
1459
+ readonly customField: string;
1460
+ };
1461
+ };
1462
+ readonly businessAccountId?: string & import("effect/Brand").Brand<"WhatsAppBusinessAccountId">;
1463
+ };
1464
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1465
+ readonly metadata?: {
1466
+ readonly [x: string]: import("./generated").JsonValue;
1467
+ } | null;
812
1468
  };
813
1469
  readonly audienceSnapshot: {
814
1470
  readonly topicId: string & import("effect/Brand").Brand<"TopicId">;
@@ -826,7 +1482,7 @@ export declare const listRuns: ((input: {
826
1482
  readonly skippedCount: number;
827
1483
  readonly pendingCount: number;
828
1484
  readonly skippedReasons: readonly {
829
- readonly reason: "blocked" | "inactive" | "missing_merge_field" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
1485
+ readonly reason: "blocked" | "consent_required" | "inactive" | "missing_merge_field" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
830
1486
  readonly count: number;
831
1487
  }[];
832
1488
  readonly estimatedCompletionAt: string | null;
@@ -841,7 +1497,7 @@ export declare const listRuns: ((input: {
841
1497
  readonly memberRole: string;
842
1498
  readonly createdAt: string;
843
1499
  readonly updatedAt: string;
844
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1500
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
845
1501
  };
846
1502
  export declare const scheduleRun: (input: {
847
1503
  readonly id: string;
@@ -870,16 +1526,16 @@ export declare const cancelRun: (input: {
870
1526
  export declare const listRecipients: ((input: {
871
1527
  readonly id: string;
872
1528
  readonly runId: string;
873
- readonly status?: "dispatched" | "dispatching" | "failed" | "pending" | "skipped" | null | undefined;
1529
+ readonly status?: "dispatched" | "dispatching" | "failed" | "pending" | "skipped" | undefined;
874
1530
  readonly limit?: number | null | undefined;
875
- readonly cursor?: string | null | undefined;
1531
+ readonly cursor?: string | undefined;
876
1532
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsListRecipients">) & {
877
1533
  readonly pages: (input: {
878
1534
  readonly id: string;
879
1535
  readonly runId: string;
880
- readonly status?: "dispatched" | "dispatching" | "failed" | "pending" | "skipped" | null | undefined;
1536
+ readonly status?: "dispatched" | "dispatching" | "failed" | "pending" | "skipped" | undefined;
881
1537
  readonly limit?: number | null | undefined;
882
- readonly cursor?: string | null | undefined;
1538
+ readonly cursor?: string | undefined;
883
1539
  }) => import("effect/Stream").Stream<{
884
1540
  readonly items: readonly {
885
1541
  readonly id: string & import("effect/Brand").Brand<"CampaignRecipientId">;
@@ -888,18 +1544,18 @@ export declare const listRecipients: ((input: {
888
1544
  readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
889
1545
  readonly messageId: string | null;
890
1546
  readonly failureReason: string | null;
891
- readonly skippedReason: "blocked" | "inactive" | "missing_merge_field" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
1547
+ readonly skippedReason: "blocked" | "consent_required" | "inactive" | "missing_merge_field" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
892
1548
  readonly createdAt: string;
893
1549
  readonly updatedAt: string;
894
1550
  }[];
895
1551
  readonly nextCursor: string | null;
896
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1552
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
897
1553
  readonly items: (input: {
898
1554
  readonly id: string;
899
1555
  readonly runId: string;
900
- readonly status?: "dispatched" | "dispatching" | "failed" | "pending" | "skipped" | null | undefined;
1556
+ readonly status?: "dispatched" | "dispatching" | "failed" | "pending" | "skipped" | undefined;
901
1557
  readonly limit?: number | null | undefined;
902
- readonly cursor?: string | null | undefined;
1558
+ readonly cursor?: string | undefined;
903
1559
  }) => import("effect/Stream").Stream<{
904
1560
  readonly id: string & import("effect/Brand").Brand<"CampaignRecipientId">;
905
1561
  readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
@@ -907,8 +1563,8 @@ export declare const listRecipients: ((input: {
907
1563
  readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
908
1564
  readonly messageId: string | null;
909
1565
  readonly failureReason: string | null;
910
- readonly skippedReason: "blocked" | "inactive" | "missing_merge_field" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
1566
+ readonly skippedReason: "blocked" | "consent_required" | "inactive" | "missing_merge_field" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
911
1567
  readonly createdAt: string;
912
1568
  readonly updatedAt: string;
913
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1569
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
914
1570
  };