samva 0.50.0 → 0.52.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 (121) hide show
  1. package/AGENTS.md +49 -5
  2. package/README.md +137 -7
  3. package/dist/client/sdk.gen.d.ts +78 -38
  4. package/dist/client/sdk.gen.js +1554 -967
  5. package/dist/client/types.gen.d.ts +541 -291
  6. package/dist/effect/agents.d.ts +4 -4
  7. package/dist/effect/api-keys.d.ts +4 -6
  8. package/dist/effect/campaigns.d.ts +222 -230
  9. package/dist/effect/categories.d.ts +2 -2
  10. package/dist/effect/categories.js +6 -4
  11. package/dist/effect/contact-groups.d.ts +4 -4
  12. package/dist/effect/contacts.d.ts +8 -8
  13. package/dist/effect/conversations.d.ts +4 -4
  14. package/dist/effect/descriptors/integrations-catalog.d.ts +1 -1
  15. package/dist/effect/descriptors/integrations-catalog.js +1 -1
  16. package/dist/effect/descriptors/integrations.d.ts +1 -1
  17. package/dist/effect/descriptors/integrations.js +1 -1
  18. package/dist/effect/descriptors/logs.d.ts +21 -0
  19. package/dist/effect/descriptors/logs.js +23 -0
  20. package/dist/effect/descriptors/whats-app.d.ts +1 -1
  21. package/dist/effect/descriptors/whats-app.js +1 -1
  22. package/dist/effect/email.d.ts +17 -16
  23. package/dist/effect/errors.d.ts +1 -0
  24. package/dist/effect/errors.js +2 -1
  25. package/dist/effect/generated/agents.js +4 -4
  26. package/dist/effect/generated/api-keys.d.ts +0 -15
  27. package/dist/effect/generated/api-keys.js +1 -2
  28. package/dist/effect/generated/campaigns.d.ts +18 -68
  29. package/dist/effect/generated/campaigns.js +5 -15
  30. package/dist/effect/generated/email.d.ts +10 -3
  31. package/dist/effect/generated/email.js +6 -5
  32. package/dist/effect/generated/index.d.ts +3 -1
  33. package/dist/effect/generated/integrations-catalog.d.ts +93 -49
  34. package/dist/effect/generated/integrations-catalog.js +17 -28
  35. package/dist/effect/generated/integrations.d.ts +20 -40
  36. package/dist/effect/generated/integrations.js +9 -13
  37. package/dist/effect/generated/journeys.d.ts +61 -13
  38. package/dist/effect/generated/journeys.js +5 -5
  39. package/dist/effect/generated/logs.d.ts +2311 -0
  40. package/dist/effect/generated/logs.js +312 -0
  41. package/dist/effect/generated/mailboxes.d.ts +30 -24
  42. package/dist/effect/generated/mailboxes.js +25 -25
  43. package/dist/effect/generated/messages.d.ts +1 -882
  44. package/dist/effect/generated/messages.js +4 -243
  45. package/dist/effect/generated/namespaces.js +1 -1
  46. package/dist/effect/generated/newsletter-domains.d.ts +61 -13
  47. package/dist/effect/generated/newsletter-domains.js +5 -5
  48. package/dist/effect/generated/newsletter-issues.d.ts +166 -34
  49. package/dist/effect/generated/newsletter-issues.js +12 -12
  50. package/dist/effect/generated/newsletters.d.ts +76 -16
  51. package/dist/effect/generated/newsletters.js +6 -6
  52. package/dist/effect/generated/organizations.js +1 -1
  53. package/dist/effect/generated/policies.js +2 -2
  54. package/dist/effect/generated/scheduled-messages.d.ts +0 -26
  55. package/dist/effect/generated/scheduled-messages.js +2 -4
  56. package/dist/effect/generated/shared.d.ts +1139 -257
  57. package/dist/effect/generated/shared.js +323 -83
  58. package/dist/effect/generated/subscriptions.d.ts +4 -4
  59. package/dist/effect/generated/subscriptions.js +2 -6
  60. package/dist/effect/generated/template-registrations.d.ts +46 -10
  61. package/dist/effect/generated/template-registrations.js +4 -4
  62. package/dist/effect/generated/templates.js +2 -2
  63. package/dist/effect/generated/whats-app-flows.d.ts +151 -31
  64. package/dist/effect/generated/whats-app-flows.js +11 -11
  65. package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
  66. package/dist/effect/generated/whats-app-setup-links.js +5 -5
  67. package/dist/effect/generated/whats-app.d.ts +187 -65
  68. package/dist/effect/generated/whats-app.js +18 -24
  69. package/dist/effect/generated-metadata.d.ts +15 -3
  70. package/dist/effect/generated-metadata.js +375 -349
  71. package/dist/effect/index.d.ts +1 -0
  72. package/dist/effect/index.js +3 -1
  73. package/dist/effect/integrations-catalog.d.ts +92 -4
  74. package/dist/effect/integrations.d.ts +42 -10
  75. package/dist/effect/internal/client.d.ts +19 -2
  76. package/dist/effect/internal/client.js +35 -5
  77. package/dist/effect/internal/email-sender.d.ts +4 -4
  78. package/dist/effect/internal/email-sender.js +5 -3
  79. package/dist/effect/internal/log-events.d.ts +19 -0
  80. package/dist/effect/internal/log-events.js +53 -0
  81. package/dist/effect/internal/mailbox-events.d.ts +6 -2
  82. package/dist/effect/internal/mailbox-events.js +4 -3
  83. package/dist/effect/internal/operation.d.ts +11 -0
  84. package/dist/effect/internal/operation.js +10 -6
  85. package/dist/effect/internal/send.d.ts +4 -0
  86. package/dist/effect/internal/send.js +11 -8
  87. package/dist/effect/internal/timeout.d.ts +16 -0
  88. package/dist/effect/internal/timeout.js +20 -0
  89. package/dist/effect/journeys.d.ts +4 -4
  90. package/dist/effect/logs.d.ts +149 -0
  91. package/dist/effect/logs.js +18 -0
  92. package/dist/effect/mailboxes.d.ts +184 -178
  93. package/dist/effect/mailboxes.js +1 -1
  94. package/dist/effect/messages.d.ts +5 -5
  95. package/dist/effect/namespaces.d.ts +4 -4
  96. package/dist/effect/newsletter-domains.d.ts +2 -2
  97. package/dist/effect/operations.d.ts +2 -2
  98. package/dist/effect/scheduled-messages.d.ts +2 -6
  99. package/dist/effect/templates.d.ts +6 -6
  100. package/dist/effect/topics.d.ts +4 -4
  101. package/dist/effect/webhooks.d.ts +4 -4
  102. package/dist/effect/whatsapp-setup-links.d.ts +2 -2
  103. package/dist/effect/whatsapp.d.ts +73 -3
  104. package/dist/index.js +2 -2
  105. package/dist/mailbox-events.d.ts +50 -3
  106. package/dist/mailbox-events.js +38 -19
  107. package/dist/package.js +1 -1
  108. package/dist/promises/client.d.ts +8 -1
  109. package/dist/promises/client.js +15 -9
  110. package/dist/promises/errors.gen.d.ts +14 -1
  111. package/dist/promises/errors.gen.js +158 -36
  112. package/dist/promises/index.js +2 -2
  113. package/dist/promises/request.d.ts +31 -2
  114. package/dist/promises/request.js +42 -7
  115. package/dist/promises/types.gen.d.ts +1 -1
  116. package/dist/request-id.d.ts +3 -0
  117. package/dist/request-id.js +7 -0
  118. package/dist/request-policy.d.ts +9 -0
  119. package/dist/request-policy.js +16 -1
  120. package/dist/service-map.d.ts +14 -3
  121. package/package.json +6 -2
@@ -1,8 +1,19 @@
1
1
  export declare const preview: (input: {
2
2
  readonly content: {
3
- readonly channel: "sms";
4
- readonly sms: {
3
+ readonly channel: "email";
4
+ readonly email: {
5
+ readonly subject?: string | null | undefined;
6
+ readonly html?: string | null | undefined;
5
7
  readonly text?: string | null | undefined;
8
+ readonly attachments?: readonly {
9
+ readonly filename: string;
10
+ readonly content?: string | null | undefined;
11
+ readonly mediaId?: string | null | undefined;
12
+ readonly contentType: string;
13
+ readonly size: number;
14
+ }[] | null | undefined;
15
+ readonly publicationId?: string | undefined;
16
+ readonly inputContractId?: string | undefined;
6
17
  readonly templateId?: string | null | undefined;
7
18
  readonly templateSlug?: string | null | undefined;
8
19
  readonly templateData?: {
@@ -32,7 +43,32 @@ export declare const preview: (input: {
32
43
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
33
44
  } | null | undefined;
34
45
  } | null | undefined;
46
+ readonly locale?: string | undefined;
47
+ readonly timeZone?: string | undefined;
48
+ readonly inReplyToMessageId?: string | null | undefined;
49
+ readonly replyTo?: readonly string[] | null | undefined;
50
+ readonly topicId?: string | null | undefined;
51
+ readonly tracking?: {
52
+ readonly opens?: boolean | undefined;
53
+ readonly clicks?: boolean | undefined;
54
+ } | undefined;
55
+ readonly footer?: {
56
+ readonly enabled?: boolean | null | undefined;
57
+ } | undefined;
58
+ readonly headers?: {
59
+ readonly [x: string]: string | undefined;
60
+ } | null | undefined;
61
+ readonly preheader?: string | null | undefined;
35
62
  };
63
+ readonly issue?: {
64
+ readonly path: string;
65
+ readonly commit: string;
66
+ } | null | undefined;
67
+ readonly from?: {
68
+ readonly email: string;
69
+ readonly name?: string | null | undefined;
70
+ } | null | undefined;
71
+ readonly replyMailboxId?: string | null | undefined;
36
72
  readonly conversationId?: string | null | undefined;
37
73
  readonly metadata?: {
38
74
  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 | {
@@ -62,20 +98,9 @@ export declare const preview: (input: {
62
98
  } | null | undefined;
63
99
  } | null | undefined;
64
100
  } | {
65
- readonly channel: "email";
66
- readonly email: {
67
- readonly subject?: string | null | undefined;
68
- readonly html?: string | null | undefined;
101
+ readonly channel: "sms";
102
+ readonly sms: {
69
103
  readonly text?: string | null | undefined;
70
- readonly attachments?: readonly {
71
- readonly filename: string;
72
- readonly content?: string | null | undefined;
73
- readonly mediaId?: string | null | undefined;
74
- readonly contentType: string;
75
- readonly size: number;
76
- }[] | null | undefined;
77
- readonly publicationId?: string | undefined;
78
- readonly inputContractId?: string | undefined;
79
104
  readonly templateId?: string | null | undefined;
80
105
  readonly templateSlug?: string | null | undefined;
81
106
  readonly templateData?: {
@@ -105,32 +130,7 @@ export declare const preview: (input: {
105
130
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
106
131
  } | null | undefined;
107
132
  } | null | undefined;
108
- readonly locale?: string | undefined;
109
- readonly timeZone?: string | undefined;
110
- readonly inReplyToMessageId?: string | null | undefined;
111
- readonly replyTo?: readonly string[] | null | undefined;
112
- readonly topicId?: string | null | undefined;
113
- readonly tracking?: {
114
- readonly opens?: boolean | undefined;
115
- readonly clicks?: boolean | undefined;
116
- } | undefined;
117
- readonly footer?: {
118
- readonly enabled?: boolean | null | undefined;
119
- } | undefined;
120
- readonly headers?: {
121
- readonly [x: string]: string | undefined;
122
- } | null | undefined;
123
- readonly preheader?: string | null | undefined;
124
133
  };
125
- readonly issue?: {
126
- readonly path: string;
127
- readonly commit: string;
128
- } | null | undefined;
129
- readonly from?: {
130
- readonly email: string;
131
- readonly name?: string | null | undefined;
132
- } | null | undefined;
133
- readonly replyMailboxId?: string | null | undefined;
134
134
  readonly conversationId?: string | null | undefined;
135
135
  readonly metadata?: {
136
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 | {
@@ -239,9 +239,20 @@ export declare const preview: (input: {
239
239
  }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"campaignsPreview">;
240
240
  export declare const sendTest: (input: {
241
241
  readonly content: {
242
- readonly channel: "sms";
243
- readonly sms: {
242
+ readonly channel: "email";
243
+ readonly email: {
244
+ readonly subject?: string | null | undefined;
245
+ readonly html?: string | null | undefined;
244
246
  readonly text?: string | null | undefined;
247
+ readonly attachments?: readonly {
248
+ readonly filename: string;
249
+ readonly content?: string | null | undefined;
250
+ readonly mediaId?: string | null | undefined;
251
+ readonly contentType: string;
252
+ readonly size: number;
253
+ }[] | null | undefined;
254
+ readonly publicationId?: string | undefined;
255
+ readonly inputContractId?: string | undefined;
245
256
  readonly templateId?: string | null | undefined;
246
257
  readonly templateSlug?: string | null | undefined;
247
258
  readonly templateData?: {
@@ -271,7 +282,32 @@ export declare const sendTest: (input: {
271
282
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
272
283
  } | null | undefined;
273
284
  } | null | undefined;
285
+ readonly locale?: string | undefined;
286
+ readonly timeZone?: string | undefined;
287
+ readonly inReplyToMessageId?: string | null | undefined;
288
+ readonly replyTo?: readonly string[] | null | undefined;
289
+ readonly topicId?: string | null | undefined;
290
+ readonly tracking?: {
291
+ readonly opens?: boolean | undefined;
292
+ readonly clicks?: boolean | undefined;
293
+ } | undefined;
294
+ readonly footer?: {
295
+ readonly enabled?: boolean | null | undefined;
296
+ } | undefined;
297
+ readonly headers?: {
298
+ readonly [x: string]: string | undefined;
299
+ } | null | undefined;
300
+ readonly preheader?: string | null | undefined;
274
301
  };
302
+ readonly issue?: {
303
+ readonly path: string;
304
+ readonly commit: string;
305
+ } | null | undefined;
306
+ readonly from?: {
307
+ readonly email: string;
308
+ readonly name?: string | null | undefined;
309
+ } | null | undefined;
310
+ readonly replyMailboxId?: string | null | undefined;
275
311
  readonly conversationId?: string | null | undefined;
276
312
  readonly metadata?: {
277
313
  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 | {
@@ -301,20 +337,9 @@ export declare const sendTest: (input: {
301
337
  } | null | undefined;
302
338
  } | null | undefined;
303
339
  } | {
304
- readonly channel: "email";
305
- readonly email: {
306
- readonly subject?: string | null | undefined;
307
- readonly html?: string | null | undefined;
340
+ readonly channel: "sms";
341
+ readonly sms: {
308
342
  readonly text?: string | null | undefined;
309
- readonly attachments?: readonly {
310
- readonly filename: string;
311
- readonly content?: string | null | undefined;
312
- readonly mediaId?: string | null | undefined;
313
- readonly contentType: string;
314
- readonly size: number;
315
- }[] | null | undefined;
316
- readonly publicationId?: string | undefined;
317
- readonly inputContractId?: string | undefined;
318
343
  readonly templateId?: string | null | undefined;
319
344
  readonly templateSlug?: string | null | undefined;
320
345
  readonly templateData?: {
@@ -344,32 +369,7 @@ export declare const sendTest: (input: {
344
369
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
345
370
  } | null | undefined;
346
371
  } | null | undefined;
347
- readonly locale?: string | undefined;
348
- readonly timeZone?: string | undefined;
349
- readonly inReplyToMessageId?: string | null | undefined;
350
- readonly replyTo?: readonly string[] | null | undefined;
351
- readonly topicId?: string | null | undefined;
352
- readonly tracking?: {
353
- readonly opens?: boolean | undefined;
354
- readonly clicks?: boolean | undefined;
355
- } | undefined;
356
- readonly footer?: {
357
- readonly enabled?: boolean | null | undefined;
358
- } | undefined;
359
- readonly headers?: {
360
- readonly [x: string]: string | undefined;
361
- } | null | undefined;
362
- readonly preheader?: string | null | undefined;
363
372
  };
364
- readonly issue?: {
365
- readonly path: string;
366
- readonly commit: string;
367
- } | null | undefined;
368
- readonly from?: {
369
- readonly email: string;
370
- readonly name?: string | null | undefined;
371
- } | null | undefined;
372
- readonly replyMailboxId?: string | null | undefined;
373
373
  readonly conversationId?: string | null | undefined;
374
374
  readonly metadata?: {
375
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 | {
@@ -480,9 +480,20 @@ export declare const create: (input: {
480
480
  readonly name: string;
481
481
  readonly channel: "email" | "sms" | "whatsapp";
482
482
  readonly content: {
483
- readonly channel: "sms";
484
- readonly sms: {
483
+ readonly channel: "email";
484
+ readonly email: {
485
+ readonly subject?: string | null | undefined;
486
+ readonly html?: string | null | undefined;
485
487
  readonly text?: string | null | undefined;
488
+ readonly attachments?: readonly {
489
+ readonly filename: string;
490
+ readonly content?: string | null | undefined;
491
+ readonly mediaId?: string | null | undefined;
492
+ readonly contentType: string;
493
+ readonly size: number;
494
+ }[] | null | undefined;
495
+ readonly publicationId?: string | undefined;
496
+ readonly inputContractId?: string | undefined;
486
497
  readonly templateId?: string | null | undefined;
487
498
  readonly templateSlug?: string | null | undefined;
488
499
  readonly templateData?: {
@@ -512,7 +523,32 @@ export declare const create: (input: {
512
523
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
513
524
  } | null | undefined;
514
525
  } | null | undefined;
526
+ readonly locale?: string | undefined;
527
+ readonly timeZone?: string | undefined;
528
+ readonly inReplyToMessageId?: string | null | undefined;
529
+ readonly replyTo?: readonly string[] | null | undefined;
530
+ readonly topicId?: string | null | undefined;
531
+ readonly tracking?: {
532
+ readonly opens?: boolean | undefined;
533
+ readonly clicks?: boolean | undefined;
534
+ } | undefined;
535
+ readonly footer?: {
536
+ readonly enabled?: boolean | null | undefined;
537
+ } | undefined;
538
+ readonly headers?: {
539
+ readonly [x: string]: string | undefined;
540
+ } | null | undefined;
541
+ readonly preheader?: string | null | undefined;
515
542
  };
543
+ readonly issue?: {
544
+ readonly path: string;
545
+ readonly commit: string;
546
+ } | null | undefined;
547
+ readonly from?: {
548
+ readonly email: string;
549
+ readonly name?: string | null | undefined;
550
+ } | null | undefined;
551
+ readonly replyMailboxId?: string | null | undefined;
516
552
  readonly conversationId?: string | null | undefined;
517
553
  readonly metadata?: {
518
554
  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 | {
@@ -542,20 +578,9 @@ export declare const create: (input: {
542
578
  } | null | undefined;
543
579
  } | null | undefined;
544
580
  } | {
545
- readonly channel: "email";
546
- readonly email: {
547
- readonly subject?: string | null | undefined;
548
- readonly html?: string | null | undefined;
581
+ readonly channel: "sms";
582
+ readonly sms: {
549
583
  readonly text?: string | null | undefined;
550
- readonly attachments?: readonly {
551
- readonly filename: string;
552
- readonly content?: string | null | undefined;
553
- readonly mediaId?: string | null | undefined;
554
- readonly contentType: string;
555
- readonly size: number;
556
- }[] | null | undefined;
557
- readonly publicationId?: string | undefined;
558
- readonly inputContractId?: string | undefined;
559
584
  readonly templateId?: string | null | undefined;
560
585
  readonly templateSlug?: string | null | undefined;
561
586
  readonly templateData?: {
@@ -585,32 +610,7 @@ export declare const create: (input: {
585
610
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
586
611
  } | null | undefined;
587
612
  } | null | undefined;
588
- readonly locale?: string | undefined;
589
- readonly timeZone?: string | undefined;
590
- readonly inReplyToMessageId?: string | null | undefined;
591
- readonly replyTo?: readonly string[] | null | undefined;
592
- readonly topicId?: string | null | undefined;
593
- readonly tracking?: {
594
- readonly opens?: boolean | undefined;
595
- readonly clicks?: boolean | undefined;
596
- } | undefined;
597
- readonly footer?: {
598
- readonly enabled?: boolean | null | undefined;
599
- } | undefined;
600
- readonly headers?: {
601
- readonly [x: string]: string | undefined;
602
- } | null | undefined;
603
- readonly preheader?: string | null | undefined;
604
613
  };
605
- readonly issue?: {
606
- readonly path: string;
607
- readonly commit: string;
608
- } | null | undefined;
609
- readonly from?: {
610
- readonly email: string;
611
- readonly name?: string | null | undefined;
612
- } | null | undefined;
613
- readonly replyMailboxId?: string | null | undefined;
614
614
  readonly conversationId?: string | null | undefined;
615
615
  readonly metadata?: {
616
616
  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 | {
@@ -734,6 +734,20 @@ export declare const list: ((input?: {
734
734
  readonly name: string;
735
735
  readonly channel: "email" | "sms" | "whatsapp";
736
736
  readonly content: {
737
+ readonly channel: "sms";
738
+ readonly sms: {
739
+ readonly text?: string | null;
740
+ readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
741
+ readonly templateSlug?: string | null;
742
+ readonly templateData?: {
743
+ readonly [x: string]: import("./generated/index.js").JsonValue;
744
+ } | null;
745
+ };
746
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
747
+ readonly metadata?: {
748
+ readonly [x: string]: import("./generated/index.js").JsonValue;
749
+ } | null;
750
+ } | {
737
751
  readonly channel: "email";
738
752
  readonly email: {
739
753
  readonly subject?: string | null;
@@ -783,20 +797,6 @@ export declare const list: ((input?: {
783
797
  readonly metadata?: {
784
798
  readonly [x: string]: import("./generated/index.js").JsonValue;
785
799
  } | null;
786
- } | {
787
- readonly channel: "sms";
788
- readonly sms: {
789
- readonly text?: string | null;
790
- readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
791
- readonly templateSlug?: string | null;
792
- readonly templateData?: {
793
- readonly [x: string]: import("./generated/index.js").JsonValue;
794
- } | null;
795
- };
796
- readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
797
- readonly metadata?: {
798
- readonly [x: string]: import("./generated/index.js").JsonValue;
799
- } | null;
800
800
  } | {
801
801
  readonly channel: "whatsapp";
802
802
  readonly whatsapp: {
@@ -845,14 +845,12 @@ export declare const list: ((input?: {
845
845
  readonly estimatedCompletionAt: string | null;
846
846
  } | null;
847
847
  readonly createdBy: string | null;
848
- readonly actorEmail: string;
849
- readonly memberRole: string;
850
848
  readonly createdAt: string;
851
849
  readonly updatedAt: string;
852
850
  readonly series: readonly number[];
853
851
  }[];
854
852
  readonly nextCursor: string | null;
855
- }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
853
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
856
854
  readonly items: (input?: {
857
855
  readonly status?: "archived" | "draft" | undefined;
858
856
  readonly limit?: number | null | undefined;
@@ -862,6 +860,20 @@ export declare const list: ((input?: {
862
860
  readonly name: string;
863
861
  readonly channel: "email" | "sms" | "whatsapp";
864
862
  readonly content: {
863
+ readonly channel: "sms";
864
+ readonly sms: {
865
+ readonly text?: string | null;
866
+ readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
867
+ readonly templateSlug?: string | null;
868
+ readonly templateData?: {
869
+ readonly [x: string]: import("./generated/index.js").JsonValue;
870
+ } | null;
871
+ };
872
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
873
+ readonly metadata?: {
874
+ readonly [x: string]: import("./generated/index.js").JsonValue;
875
+ } | null;
876
+ } | {
865
877
  readonly channel: "email";
866
878
  readonly email: {
867
879
  readonly subject?: string | null;
@@ -911,20 +923,6 @@ export declare const list: ((input?: {
911
923
  readonly metadata?: {
912
924
  readonly [x: string]: import("./generated/index.js").JsonValue;
913
925
  } | null;
914
- } | {
915
- readonly channel: "sms";
916
- readonly sms: {
917
- readonly text?: string | null;
918
- readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
919
- readonly templateSlug?: string | null;
920
- readonly templateData?: {
921
- readonly [x: string]: import("./generated/index.js").JsonValue;
922
- } | null;
923
- };
924
- readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
925
- readonly metadata?: {
926
- readonly [x: string]: import("./generated/index.js").JsonValue;
927
- } | null;
928
926
  } | {
929
927
  readonly channel: "whatsapp";
930
928
  readonly whatsapp: {
@@ -973,12 +971,10 @@ export declare const list: ((input?: {
973
971
  readonly estimatedCompletionAt: string | null;
974
972
  } | null;
975
973
  readonly createdBy: string | null;
976
- readonly actorEmail: string;
977
- readonly memberRole: string;
978
974
  readonly createdAt: string;
979
975
  readonly updatedAt: string;
980
976
  readonly series: readonly number[];
981
- }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
977
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
982
978
  };
983
979
  export declare const get: (input: {
984
980
  readonly id: string;
@@ -987,9 +983,20 @@ export declare const update: (input: {
987
983
  readonly id: string;
988
984
  readonly name?: string | null | undefined;
989
985
  readonly content?: {
990
- readonly channel: "sms";
991
- readonly sms: {
986
+ readonly channel: "email";
987
+ readonly email: {
988
+ readonly subject?: string | null | undefined;
989
+ readonly html?: string | null | undefined;
992
990
  readonly text?: string | null | undefined;
991
+ readonly attachments?: readonly {
992
+ readonly filename: string;
993
+ readonly content?: string | null | undefined;
994
+ readonly mediaId?: string | null | undefined;
995
+ readonly contentType: string;
996
+ readonly size: number;
997
+ }[] | null | undefined;
998
+ readonly publicationId?: string | undefined;
999
+ readonly inputContractId?: string | undefined;
993
1000
  readonly templateId?: string | null | undefined;
994
1001
  readonly templateSlug?: string | null | undefined;
995
1002
  readonly templateData?: {
@@ -1019,7 +1026,32 @@ export declare const update: (input: {
1019
1026
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
1020
1027
  } | null | undefined;
1021
1028
  } | null | undefined;
1029
+ readonly locale?: string | undefined;
1030
+ readonly timeZone?: string | undefined;
1031
+ readonly inReplyToMessageId?: string | null | undefined;
1032
+ readonly replyTo?: readonly string[] | null | undefined;
1033
+ readonly topicId?: string | null | undefined;
1034
+ readonly tracking?: {
1035
+ readonly opens?: boolean | undefined;
1036
+ readonly clicks?: boolean | undefined;
1037
+ } | undefined;
1038
+ readonly footer?: {
1039
+ readonly enabled?: boolean | null | undefined;
1040
+ } | undefined;
1041
+ readonly headers?: {
1042
+ readonly [x: string]: string | undefined;
1043
+ } | null | undefined;
1044
+ readonly preheader?: string | null | undefined;
1022
1045
  };
1046
+ readonly issue?: {
1047
+ readonly path: string;
1048
+ readonly commit: string;
1049
+ } | null | undefined;
1050
+ readonly from?: {
1051
+ readonly email: string;
1052
+ readonly name?: string | null | undefined;
1053
+ } | null | undefined;
1054
+ readonly replyMailboxId?: string | null | undefined;
1023
1055
  readonly conversationId?: string | null | undefined;
1024
1056
  readonly metadata?: {
1025
1057
  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 | {
@@ -1049,20 +1081,9 @@ export declare const update: (input: {
1049
1081
  } | null | undefined;
1050
1082
  } | null | undefined;
1051
1083
  } | {
1052
- readonly channel: "email";
1053
- readonly email: {
1054
- readonly subject?: string | null | undefined;
1055
- readonly html?: string | null | undefined;
1084
+ readonly channel: "sms";
1085
+ readonly sms: {
1056
1086
  readonly text?: string | null | undefined;
1057
- readonly attachments?: readonly {
1058
- readonly filename: string;
1059
- readonly content?: string | null | undefined;
1060
- readonly mediaId?: string | null | undefined;
1061
- readonly contentType: string;
1062
- readonly size: number;
1063
- }[] | null | undefined;
1064
- readonly publicationId?: string | undefined;
1065
- readonly inputContractId?: string | undefined;
1066
1087
  readonly templateId?: string | null | undefined;
1067
1088
  readonly templateSlug?: string | null | undefined;
1068
1089
  readonly templateData?: {
@@ -1092,32 +1113,7 @@ export declare const update: (input: {
1092
1113
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
1093
1114
  } | null | undefined;
1094
1115
  } | null | undefined;
1095
- readonly locale?: string | undefined;
1096
- readonly timeZone?: string | undefined;
1097
- readonly inReplyToMessageId?: string | null | undefined;
1098
- readonly replyTo?: readonly string[] | null | undefined;
1099
- readonly topicId?: string | null | undefined;
1100
- readonly tracking?: {
1101
- readonly opens?: boolean | undefined;
1102
- readonly clicks?: boolean | undefined;
1103
- } | undefined;
1104
- readonly footer?: {
1105
- readonly enabled?: boolean | null | undefined;
1106
- } | undefined;
1107
- readonly headers?: {
1108
- readonly [x: string]: string | undefined;
1109
- } | null | undefined;
1110
- readonly preheader?: string | null | undefined;
1111
1116
  };
1112
- readonly issue?: {
1113
- readonly path: string;
1114
- readonly commit: string;
1115
- } | null | undefined;
1116
- readonly from?: {
1117
- readonly email: string;
1118
- readonly name?: string | null | undefined;
1119
- } | null | undefined;
1120
- readonly replyMailboxId?: string | null | undefined;
1121
1117
  readonly conversationId?: string | null | undefined;
1122
1118
  readonly metadata?: {
1123
1119
  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 | {
@@ -1254,6 +1250,20 @@ export declare const listRuns: ((input: {
1254
1250
  readonly startedAt: string | null;
1255
1251
  readonly completedAt: string | null;
1256
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/index.js").JsonValue;
1260
+ } | null;
1261
+ };
1262
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1263
+ readonly metadata?: {
1264
+ readonly [x: string]: import("./generated/index.js").JsonValue;
1265
+ } | null;
1266
+ } | {
1257
1267
  readonly channel: "email";
1258
1268
  readonly email: {
1259
1269
  readonly subject?: string | null;
@@ -1303,20 +1313,6 @@ export declare const listRuns: ((input: {
1303
1313
  readonly metadata?: {
1304
1314
  readonly [x: string]: import("./generated/index.js").JsonValue;
1305
1315
  } | null;
1306
- } | {
1307
- readonly channel: "sms";
1308
- readonly sms: {
1309
- readonly text?: string | null;
1310
- readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
1311
- readonly templateSlug?: string | null;
1312
- readonly templateData?: {
1313
- readonly [x: string]: import("./generated/index.js").JsonValue;
1314
- } | null;
1315
- };
1316
- readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1317
- readonly metadata?: {
1318
- readonly [x: string]: import("./generated/index.js").JsonValue;
1319
- } | null;
1320
1316
  } | {
1321
1317
  readonly channel: "whatsapp";
1322
1318
  readonly whatsapp: {
@@ -1365,13 +1361,11 @@ export declare const listRuns: ((input: {
1365
1361
  readonly capacityWarning: string | null;
1366
1362
  readonly lastContactId: string | null;
1367
1363
  readonly createdBy: string | null;
1368
- readonly actorEmail: string;
1369
- readonly memberRole: string;
1370
1364
  readonly createdAt: string;
1371
1365
  readonly updatedAt: string;
1372
1366
  }[];
1373
1367
  readonly nextCursor: string | null;
1374
- }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
1368
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
1375
1369
  readonly items: (input: {
1376
1370
  readonly id: string;
1377
1371
  readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | undefined;
@@ -1386,6 +1380,20 @@ export declare const listRuns: ((input: {
1386
1380
  readonly startedAt: string | null;
1387
1381
  readonly completedAt: string | null;
1388
1382
  readonly contentSnapshot: {
1383
+ readonly channel: "sms";
1384
+ readonly sms: {
1385
+ readonly text?: string | null;
1386
+ readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
1387
+ readonly templateSlug?: string | null;
1388
+ readonly templateData?: {
1389
+ readonly [x: string]: import("./generated/index.js").JsonValue;
1390
+ } | null;
1391
+ };
1392
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1393
+ readonly metadata?: {
1394
+ readonly [x: string]: import("./generated/index.js").JsonValue;
1395
+ } | null;
1396
+ } | {
1389
1397
  readonly channel: "email";
1390
1398
  readonly email: {
1391
1399
  readonly subject?: string | null;
@@ -1435,20 +1443,6 @@ export declare const listRuns: ((input: {
1435
1443
  readonly metadata?: {
1436
1444
  readonly [x: string]: import("./generated/index.js").JsonValue;
1437
1445
  } | null;
1438
- } | {
1439
- readonly channel: "sms";
1440
- readonly sms: {
1441
- readonly text?: string | null;
1442
- readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
1443
- readonly templateSlug?: string | null;
1444
- readonly templateData?: {
1445
- readonly [x: string]: import("./generated/index.js").JsonValue;
1446
- } | null;
1447
- };
1448
- readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1449
- readonly metadata?: {
1450
- readonly [x: string]: import("./generated/index.js").JsonValue;
1451
- } | null;
1452
1446
  } | {
1453
1447
  readonly channel: "whatsapp";
1454
1448
  readonly whatsapp: {
@@ -1497,11 +1491,9 @@ export declare const listRuns: ((input: {
1497
1491
  readonly capacityWarning: string | null;
1498
1492
  readonly lastContactId: string | null;
1499
1493
  readonly createdBy: string | null;
1500
- readonly actorEmail: string;
1501
- readonly memberRole: string;
1502
1494
  readonly createdAt: string;
1503
1495
  readonly updatedAt: string;
1504
- }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
1496
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
1505
1497
  };
1506
1498
  export declare const getRun: (input: {
1507
1499
  readonly id: string;
@@ -1549,7 +1541,7 @@ export declare const listRecipients: ((input: {
1549
1541
  readonly updatedAt: string;
1550
1542
  }[];
1551
1543
  readonly nextCursor: string | null;
1552
- }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
1544
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
1553
1545
  readonly items: (input: {
1554
1546
  readonly id: string;
1555
1547
  readonly runId: string;
@@ -1566,5 +1558,5 @@ export declare const listRecipients: ((input: {
1566
1558
  readonly skippedReason: "blocked" | "consent_required" | "inactive" | "missing_merge_field" | "no_identity" | "not_added" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
1567
1559
  readonly createdAt: string;
1568
1560
  readonly updatedAt: string;
1569
- }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
1561
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
1570
1562
  };