samva 0.34.0 → 0.36.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 (129) hide show
  1. package/AGENTS.md +17 -0
  2. package/README.md +2 -1
  3. package/dist/client/sdk.gen.d.ts +325 -331
  4. package/dist/client/sdk.gen.js +406 -454
  5. package/dist/client/types.gen.d.ts +3465 -750
  6. package/dist/effect/agents.d.ts +222 -17
  7. package/dist/effect/agents.js +7 -1
  8. package/dist/effect/analytics.d.ts +21 -15
  9. package/dist/effect/api-keys.d.ts +30 -24
  10. package/dist/effect/campaigns.d.ts +695 -39
  11. package/dist/effect/categories.d.ts +3 -3
  12. package/dist/effect/contact-groups.d.ts +15 -15
  13. package/dist/effect/contacts.d.ts +56 -52
  14. package/dist/effect/conversations.d.ts +51 -45
  15. package/dist/effect/email.d.ts +82 -82
  16. package/dist/effect/errors.d.ts +1 -1
  17. package/dist/effect/errors.js +2 -2
  18. package/dist/effect/extension-installations.d.ts +64 -12
  19. package/dist/effect/extensions.d.ts +16 -16
  20. package/dist/effect/generated/agents.d.ts +2902 -150
  21. package/dist/effect/generated/agents.js +219 -31
  22. package/dist/effect/generated/analytics.d.ts +127 -136
  23. package/dist/effect/generated/analytics.js +72 -37
  24. package/dist/effect/generated/api-keys.d.ts +243 -47
  25. package/dist/effect/generated/api-keys.js +27 -12
  26. package/dist/effect/generated/attachments.d.ts +89 -1
  27. package/dist/effect/generated/attachments.js +10 -2
  28. package/dist/effect/generated/brands.d.ts +133 -1
  29. package/dist/effect/generated/brands.js +22 -10
  30. package/dist/effect/generated/campaigns.d.ts +1467 -143
  31. package/dist/effect/generated/campaigns.js +84 -20
  32. package/dist/effect/generated/contact-events.d.ts +26 -4
  33. package/dist/effect/generated/contact-events.js +5 -3
  34. package/dist/effect/generated/contact-groups.d.ts +233 -13
  35. package/dist/effect/generated/contact-groups.js +33 -17
  36. package/dist/effect/generated/contacts.d.ts +634 -96
  37. package/dist/effect/generated/contacts.js +82 -20
  38. package/dist/effect/generated/conversations.d.ts +501 -108
  39. package/dist/effect/generated/conversations.js +106 -22
  40. package/dist/effect/generated/custom-fields.d.ts +89 -1
  41. package/dist/effect/generated/custom-fields.js +11 -3
  42. package/dist/effect/generated/email.d.ts +1447 -83
  43. package/dist/effect/generated/email.js +167 -43
  44. package/dist/effect/generated/events.d.ts +51 -7
  45. package/dist/effect/generated/events.js +9 -5
  46. package/dist/effect/generated/extension-installations.d.ts +1052 -77
  47. package/dist/effect/generated/extension-installations.js +45 -31
  48. package/dist/effect/generated/extensions.d.ts +123 -13
  49. package/dist/effect/generated/extensions.js +20 -10
  50. package/dist/effect/generated/feedback.d.ts +23 -1
  51. package/dist/effect/generated/feedback.js +6 -4
  52. package/dist/effect/generated/index.d.ts +3 -1
  53. package/dist/effect/generated/journeys.d.ts +684 -16
  54. package/dist/effect/generated/journeys.js +37 -9
  55. package/dist/effect/generated/mailboxes.d.ts +6169 -1734
  56. package/dist/effect/generated/mailboxes.js +549 -344
  57. package/dist/effect/generated/media.d.ts +125 -15
  58. package/dist/effect/generated/media.js +15 -2
  59. package/dist/effect/generated/messages.d.ts +2036 -117
  60. package/dist/effect/generated/messages.js +286 -54
  61. package/dist/effect/generated/namespaces.d.ts +215 -55
  62. package/dist/effect/generated/namespaces.js +30 -12
  63. package/dist/effect/generated/newsletter-domains.d.ts +98 -12
  64. package/dist/effect/generated/newsletter-domains.js +20 -13
  65. package/dist/effect/generated/newsletter-issues.d.ts +354 -19
  66. package/dist/effect/generated/newsletter-issues.js +162 -98
  67. package/dist/effect/generated/newsletters.d.ts +123 -13
  68. package/dist/effect/generated/newsletters.js +19 -9
  69. package/dist/effect/generated/operations.d.ts +76 -10
  70. package/dist/effect/generated/operations.js +12 -6
  71. package/dist/effect/generated/organizations.d.ts +287 -7
  72. package/dist/effect/generated/organizations.js +33 -5
  73. package/dist/effect/generated/policies.d.ts +953 -0
  74. package/dist/effect/generated/policies.js +116 -0
  75. package/dist/effect/generated/scheduled-messages.d.ts +4418 -49
  76. package/dist/effect/generated/scheduled-messages.js +77 -13
  77. package/dist/effect/generated/shared.d.ts +3213 -521
  78. package/dist/effect/generated/shared.js +713 -128
  79. package/dist/effect/generated/subscriptions.d.ts +23 -1
  80. package/dist/effect/generated/subscriptions.js +6 -4
  81. package/dist/effect/generated/templates.d.ts +2081 -693
  82. package/dist/effect/generated/templates.js +482 -267
  83. package/dist/effect/generated/topic-forms.d.ts +111 -1
  84. package/dist/effect/generated/topic-forms.js +23 -13
  85. package/dist/effect/generated/topics.d.ts +353 -43
  86. package/dist/effect/generated/topics.js +67 -19
  87. package/dist/effect/generated/webhooks.d.ts +318 -57
  88. package/dist/effect/generated/webhooks.js +68 -17
  89. package/dist/effect/generated/whoami.d.ts +35 -5
  90. package/dist/effect/generated/whoami.js +4 -2
  91. package/dist/effect/generated-metadata.d.ts +56 -32
  92. package/dist/effect/generated-metadata.js +137 -105
  93. package/dist/effect/index.d.ts +1 -0
  94. package/dist/effect/index.js +3 -2
  95. package/dist/effect/internal/client.js +1 -1
  96. package/dist/effect/internal/email-sender.d.ts +1 -1
  97. package/dist/effect/internal/operation.js +5 -32
  98. package/dist/effect/internal/send.d.ts +1 -1
  99. package/dist/effect/journeys.d.ts +169 -83
  100. package/dist/effect/mailboxes.d.ts +978 -301
  101. package/dist/effect/mailboxes.js +1 -11
  102. package/dist/effect/media.d.ts +1 -1
  103. package/dist/effect/messages.d.ts +40 -40
  104. package/dist/effect/namespaces.d.ts +15 -15
  105. package/dist/effect/newsletter-domains.d.ts +5 -5
  106. package/dist/effect/newsletters.d.ts +1 -1
  107. package/dist/effect/operations.d.ts +11 -11
  108. package/dist/effect/organizations.d.ts +2 -2
  109. package/dist/effect/policies.d.ts +65 -0
  110. package/dist/effect/policies.js +16 -0
  111. package/dist/effect/scheduled-messages.d.ts +869 -8
  112. package/dist/effect/templates.d.ts +43 -45
  113. package/dist/effect/templates.js +5 -3
  114. package/dist/effect/topics.d.ts +23 -23
  115. package/dist/effect/webhooks.d.ts +29 -26
  116. package/dist/index.js +2 -2
  117. package/dist/mailbox/test.js +11 -4
  118. package/dist/mailbox/types.d.ts +39 -3
  119. package/dist/normalize.js +13 -1
  120. package/dist/package.js +1 -1
  121. package/dist/promises/client.d.ts +4 -2
  122. package/dist/promises/client.js +5 -3
  123. package/dist/promises/errors.gen.d.ts +38 -2
  124. package/dist/promises/errors.gen.js +394 -34
  125. package/dist/promises/index.js +2 -2
  126. package/dist/promises/types.gen.d.ts +1 -1
  127. package/dist/service-map.d.ts +39 -28
  128. package/dist/service-map.js +220 -782
  129. package/package.json +13 -8
@@ -1,5 +1,67 @@
1
1
  export declare const preview: (input: {
2
2
  readonly content: {
3
+ readonly channel: "sms";
4
+ readonly sms: {
5
+ readonly text?: string | null | undefined;
6
+ readonly templateId?: string | null | undefined;
7
+ readonly templateSlug?: string | null | undefined;
8
+ readonly templateData?: {
9
+ 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 | {
10
+ readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
11
+ } | null)[] | {
12
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
13
+ } | null)[] | {
14
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
15
+ } | null)[] | {
16
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
17
+ } | null)[] | {
18
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
19
+ } | null)[] | {
20
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
21
+ } | null)[] | {
22
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
23
+ } | null)[] | {
24
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
25
+ } | null)[] | {
26
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
27
+ } | null)[] | {
28
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
29
+ } | null)[] | {
30
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
31
+ } | null)[] | {
32
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
33
+ } | null | undefined;
34
+ } | null | undefined;
35
+ };
36
+ readonly conversationId?: string | null | undefined;
37
+ readonly metadata?: {
38
+ 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 | {
39
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
40
+ } | null)[] | {
41
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
42
+ } | null)[] | {
43
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
44
+ } | null)[] | {
45
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
46
+ } | null)[] | {
47
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
48
+ } | null)[] | {
49
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
50
+ } | null)[] | {
51
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
52
+ } | null)[] | {
53
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
54
+ } | null)[] | {
55
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
56
+ } | null)[] | {
57
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
58
+ } | null)[] | {
59
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
60
+ } | null)[] | {
61
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
62
+ } | null | undefined;
63
+ } | null | undefined;
64
+ } | {
3
65
  readonly channel: "email";
4
66
  readonly email: {
5
67
  readonly subject?: string | null | undefined;
@@ -17,8 +79,8 @@ export declare const preview: (input: {
17
79
  readonly templateId?: string | null | undefined;
18
80
  readonly templateSlug?: string | null | undefined;
19
81
  readonly templateData?: {
20
- 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 | {
21
- readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
82
+ 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 | {
83
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
22
84
  } | null)[] | {
23
85
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
24
86
  } | null)[] | {
@@ -97,6 +159,74 @@ export declare const preview: (input: {
97
159
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
98
160
  } | null | undefined;
99
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;
@@ -109,6 +239,68 @@ export declare const preview: (input: {
109
239
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsPreview">;
110
240
  export declare const sendTest: (input: {
111
241
  readonly content: {
242
+ readonly channel: "sms";
243
+ readonly sms: {
244
+ readonly text?: string | null | undefined;
245
+ readonly templateId?: string | null | undefined;
246
+ readonly templateSlug?: string | null | undefined;
247
+ readonly templateData?: {
248
+ 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 | {
249
+ readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
250
+ } | null)[] | {
251
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
252
+ } | null)[] | {
253
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
254
+ } | null)[] | {
255
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
256
+ } | null)[] | {
257
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
258
+ } | null)[] | {
259
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
260
+ } | null)[] | {
261
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
262
+ } | null)[] | {
263
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
264
+ } | null)[] | {
265
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
266
+ } | null)[] | {
267
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
268
+ } | null)[] | {
269
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
270
+ } | null)[] | {
271
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
272
+ } | null | undefined;
273
+ } | null | undefined;
274
+ };
275
+ readonly conversationId?: string | null | undefined;
276
+ readonly metadata?: {
277
+ 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 | {
278
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
279
+ } | null)[] | {
280
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
281
+ } | null)[] | {
282
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
283
+ } | null)[] | {
284
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
285
+ } | null)[] | {
286
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
287
+ } | null)[] | {
288
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
289
+ } | null)[] | {
290
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
291
+ } | null)[] | {
292
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
293
+ } | null)[] | {
294
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
295
+ } | null)[] | {
296
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
297
+ } | null)[] | {
298
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
299
+ } | null)[] | {
300
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
301
+ } | null | undefined;
302
+ } | null | undefined;
303
+ } | {
112
304
  readonly channel: "email";
113
305
  readonly email: {
114
306
  readonly subject?: string | null | undefined;
@@ -126,8 +318,8 @@ export declare const sendTest: (input: {
126
318
  readonly templateId?: string | null | undefined;
127
319
  readonly templateSlug?: string | null | undefined;
128
320
  readonly templateData?: {
129
- 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 | {
130
- readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
321
+ 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 | {
322
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
131
323
  } | null)[] | {
132
324
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
133
325
  } | null)[] | {
@@ -206,6 +398,74 @@ export declare const sendTest: (input: {
206
398
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
207
399
  } | null | undefined;
208
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,19 +477,19 @@ 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: {
234
494
  readonly channel: "email";
235
495
  readonly email: {
@@ -280,6 +540,40 @@ export declare const list: ((input?: {
280
540
  readonly metadata?: {
281
541
  readonly [x: string]: import("./generated").JsonValue;
282
542
  } | null;
543
+ } | {
544
+ readonly channel: "sms";
545
+ readonly sms: {
546
+ readonly text?: string | null;
547
+ readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
548
+ readonly templateSlug?: string | null;
549
+ readonly templateData?: {
550
+ readonly [x: string]: import("./generated").JsonValue;
551
+ } | null;
552
+ };
553
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
554
+ readonly metadata?: {
555
+ readonly [x: string]: import("./generated").JsonValue;
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,15 +609,15 @@ 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: {
328
622
  readonly channel: "email";
329
623
  readonly email: {
@@ -374,6 +668,40 @@ export declare const list: ((input?: {
374
668
  readonly metadata?: {
375
669
  readonly [x: string]: import("./generated").JsonValue;
376
670
  } | null;
671
+ } | {
672
+ readonly channel: "sms";
673
+ readonly sms: {
674
+ readonly text?: string | null;
675
+ readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
676
+ readonly templateSlug?: string | null;
677
+ readonly templateData?: {
678
+ readonly [x: string]: import("./generated").JsonValue;
679
+ } | null;
680
+ };
681
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
682
+ readonly metadata?: {
683
+ readonly [x: string]: import("./generated").JsonValue;
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,12 +735,74 @@ 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: {
744
+ readonly channel: "sms";
745
+ readonly sms: {
746
+ readonly text?: string | null | undefined;
747
+ readonly templateId?: string | null | undefined;
748
+ readonly templateSlug?: string | null | undefined;
749
+ readonly templateData?: {
750
+ 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 | {
751
+ readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
752
+ } | null)[] | {
753
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
754
+ } | null)[] | {
755
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
756
+ } | null)[] | {
757
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
758
+ } | null)[] | {
759
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
760
+ } | null)[] | {
761
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
762
+ } | null)[] | {
763
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
764
+ } | null)[] | {
765
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
766
+ } | null)[] | {
767
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
768
+ } | null)[] | {
769
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
770
+ } | null)[] | {
771
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
772
+ } | null)[] | {
773
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
774
+ } | null | undefined;
775
+ } | null | undefined;
776
+ };
777
+ readonly conversationId?: string | null | undefined;
778
+ readonly metadata?: {
779
+ 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 | {
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)[] | {
786
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
787
+ } | null)[] | {
788
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
789
+ } | null)[] | {
790
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
791
+ } | null)[] | {
792
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
793
+ } | null)[] | {
794
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
795
+ } | null)[] | {
796
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
797
+ } | null)[] | {
798
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
799
+ } | null)[] | {
800
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
801
+ } | null)[] | {
802
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
803
+ } | null | undefined;
804
+ } | null | undefined;
805
+ } | {
416
806
  readonly channel: "email";
417
807
  readonly email: {
418
808
  readonly subject?: string | null | undefined;
@@ -430,8 +820,8 @@ export declare const create: (input: {
430
820
  readonly templateId?: string | null | undefined;
431
821
  readonly templateSlug?: string | null | undefined;
432
822
  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;
823
+ 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 | {
824
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
435
825
  } | null)[] | {
436
826
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
437
827
  } | null)[] | {
@@ -510,6 +900,74 @@ export declare const create: (input: {
510
900
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
511
901
  } | null | undefined;
512
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;
933
+ } | 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;
940
+ } | undefined;
941
+ readonly businessAccountId?: string | undefined;
942
+ };
943
+ readonly conversationId?: string | null | undefined;
944
+ readonly metadata?: {
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 | {
946
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
947
+ } | null)[] | {
948
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
949
+ } | null)[] | {
950
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
951
+ } | null)[] | {
952
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
953
+ } | null)[] | {
954
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
955
+ } | null)[] | {
956
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
957
+ } | null)[] | {
958
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
959
+ } | null)[] | {
960
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
961
+ } | null)[] | {
962
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
963
+ } | null)[] | {
964
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
965
+ } | null)[] | {
966
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
967
+ } | null)[] | {
968
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
969
+ } | null | undefined;
970
+ } | null | undefined;
513
971
  };
514
972
  readonly audience: {
515
973
  readonly topicId: string;
@@ -532,6 +990,68 @@ export declare const update: (input: {
532
990
  readonly id: string;
533
991
  readonly name?: string | null | undefined;
534
992
  readonly content?: {
993
+ readonly channel: "sms";
994
+ readonly sms: {
995
+ readonly text?: string | null | undefined;
996
+ readonly templateId?: string | null | undefined;
997
+ readonly templateSlug?: string | null | undefined;
998
+ readonly templateData?: {
999
+ 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 | {
1000
+ readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
1001
+ } | null)[] | {
1002
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1003
+ } | null)[] | {
1004
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1005
+ } | null)[] | {
1006
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1007
+ } | null)[] | {
1008
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1009
+ } | null)[] | {
1010
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1011
+ } | null)[] | {
1012
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1013
+ } | null)[] | {
1014
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1015
+ } | null)[] | {
1016
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1017
+ } | null)[] | {
1018
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1019
+ } | null)[] | {
1020
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1021
+ } | null)[] | {
1022
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1023
+ } | null | undefined;
1024
+ } | null | undefined;
1025
+ };
1026
+ readonly conversationId?: string | null | undefined;
1027
+ readonly metadata?: {
1028
+ 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 | {
1029
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1030
+ } | null)[] | {
1031
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1032
+ } | null)[] | {
1033
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1034
+ } | null)[] | {
1035
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1036
+ } | null)[] | {
1037
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1038
+ } | null)[] | {
1039
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1040
+ } | null)[] | {
1041
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1042
+ } | null)[] | {
1043
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1044
+ } | null)[] | {
1045
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1046
+ } | null)[] | {
1047
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1048
+ } | null)[] | {
1049
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1050
+ } | null)[] | {
1051
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1052
+ } | null | undefined;
1053
+ } | null | undefined;
1054
+ } | {
535
1055
  readonly channel: "email";
536
1056
  readonly email: {
537
1057
  readonly subject?: string | null | undefined;
@@ -549,8 +1069,8 @@ export declare const update: (input: {
549
1069
  readonly templateId?: string | null | undefined;
550
1070
  readonly templateSlug?: string | null | undefined;
551
1071
  readonly templateData?: {
552
- 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 | {
553
- readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
1072
+ 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 | {
1073
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
554
1074
  } | null)[] | {
555
1075
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
556
1076
  } | null)[] | {
@@ -629,6 +1149,74 @@ export declare const update: (input: {
629
1149
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
630
1150
  } | null | undefined;
631
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">;
@@ -711,6 +1299,40 @@ export declare const listRuns: ((input: {
711
1299
  readonly metadata?: {
712
1300
  readonly [x: string]: import("./generated").JsonValue;
713
1301
  } | null;
1302
+ } | {
1303
+ readonly channel: "sms";
1304
+ readonly sms: {
1305
+ readonly text?: string | null;
1306
+ readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
1307
+ readonly templateSlug?: string | null;
1308
+ readonly templateData?: {
1309
+ readonly [x: string]: import("./generated").JsonValue;
1310
+ } | null;
1311
+ };
1312
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1313
+ readonly metadata?: {
1314
+ readonly [x: string]: import("./generated").JsonValue;
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">;
@@ -809,6 +1431,40 @@ export declare const listRuns: ((input: {
809
1431
  readonly metadata?: {
810
1432
  readonly [x: string]: import("./generated").JsonValue;
811
1433
  } | null;
1434
+ } | {
1435
+ readonly channel: "sms";
1436
+ readonly sms: {
1437
+ readonly text?: string | null;
1438
+ readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
1439
+ readonly templateSlug?: string | null;
1440
+ readonly templateData?: {
1441
+ readonly [x: string]: import("./generated").JsonValue;
1442
+ } | null;
1443
+ };
1444
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1445
+ readonly metadata?: {
1446
+ readonly [x: string]: import("./generated").JsonValue;
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
  };