samva 0.35.0 → 0.37.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 (70) hide show
  1. package/AGENTS.md +17 -0
  2. package/README.md +1 -0
  3. package/dist/client/sdk.gen.d.ts +102 -82
  4. package/dist/client/sdk.gen.js +322 -244
  5. package/dist/client/types.gen.d.ts +600 -378
  6. package/dist/effect/agents.d.ts +194 -4
  7. package/dist/effect/agents.js +3 -1
  8. package/dist/effect/analytics.d.ts +6 -0
  9. package/dist/effect/api-keys.d.ts +3 -6
  10. package/dist/effect/campaigns.d.ts +216 -216
  11. package/dist/effect/conversations.d.ts +6 -0
  12. package/dist/effect/errors.d.ts +1 -1
  13. package/dist/effect/errors.js +2 -2
  14. package/dist/effect/extension-installations.d.ts +53 -1
  15. package/dist/effect/generated/agents.d.ts +1803 -81
  16. package/dist/effect/generated/agents.js +92 -26
  17. package/dist/effect/generated/analytics.d.ts +19 -1
  18. package/dist/effect/generated/analytics.js +8 -2
  19. package/dist/effect/generated/api-keys.d.ts +4 -29
  20. package/dist/effect/generated/api-keys.js +5 -6
  21. package/dist/effect/generated/campaigns.d.ts +22 -0
  22. package/dist/effect/generated/campaigns.js +3 -1
  23. package/dist/effect/generated/conversations.d.ts +104 -3
  24. package/dist/effect/generated/conversations.js +12 -2
  25. package/dist/effect/generated/extension-installations.d.ts +845 -68
  26. package/dist/effect/generated/extension-installations.js +22 -26
  27. package/dist/effect/generated/index.d.ts +3 -1
  28. package/dist/effect/generated/mailboxes.d.ts +3423 -1446
  29. package/dist/effect/generated/mailboxes.js +226 -220
  30. package/dist/effect/generated/namespaces.d.ts +7 -31
  31. package/dist/effect/generated/namespaces.js +4 -4
  32. package/dist/effect/generated/policies.d.ts +953 -0
  33. package/dist/effect/generated/policies.js +116 -0
  34. package/dist/effect/generated/scheduled-messages.d.ts +45 -4
  35. package/dist/effect/generated/scheduled-messages.js +8 -3
  36. package/dist/effect/generated/shared.d.ts +893 -224
  37. package/dist/effect/generated/shared.js +194 -60
  38. package/dist/effect/generated/templates.d.ts +474 -668
  39. package/dist/effect/generated/templates.js +65 -45
  40. package/dist/effect/generated/webhooks.d.ts +22 -19
  41. package/dist/effect/generated/webhooks.js +10 -1
  42. package/dist/effect/generated/whoami.d.ts +0 -4
  43. package/dist/effect/generated-metadata.d.ts +36 -32
  44. package/dist/effect/generated-metadata.js +127 -105
  45. package/dist/effect/index.d.ts +1 -0
  46. package/dist/effect/index.js +3 -2
  47. package/dist/effect/internal/operation.js +5 -32
  48. package/dist/effect/journeys.d.ts +146 -146
  49. package/dist/effect/mailboxes.d.ts +575 -129
  50. package/dist/effect/mailboxes.js +1 -11
  51. package/dist/effect/policies.d.ts +65 -0
  52. package/dist/effect/policies.js +16 -0
  53. package/dist/effect/scheduled-messages.d.ts +6 -0
  54. package/dist/effect/templates.d.ts +6 -8
  55. package/dist/effect/templates.js +5 -3
  56. package/dist/effect/topics.d.ts +2 -2
  57. package/dist/effect/webhooks.d.ts +7 -4
  58. package/dist/index.js +2 -2
  59. package/dist/mailbox/test.js +11 -4
  60. package/dist/mailbox/types.d.ts +39 -3
  61. package/dist/package.js +1 -1
  62. package/dist/promises/client.d.ts +3 -1
  63. package/dist/promises/client.js +5 -3
  64. package/dist/promises/errors.gen.d.ts +18 -2
  65. package/dist/promises/errors.gen.js +335 -33
  66. package/dist/promises/index.js +2 -2
  67. package/dist/promises/types.gen.d.ts +1 -1
  68. package/dist/service-map.d.ts +30 -28
  69. package/dist/service-map.js +219 -786
  70. package/package.json +6 -2
@@ -1,19 +1,8 @@
1
1
  export declare const preview: (input: {
2
2
  readonly content: {
3
- readonly channel: "email";
4
- readonly email: {
5
- readonly subject?: string | null | undefined;
6
- readonly html?: string | null | undefined;
3
+ readonly channel: "sms";
4
+ readonly sms: {
7
5
  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;
17
6
  readonly templateId?: string | null | undefined;
18
7
  readonly templateSlug?: string | null | undefined;
19
8
  readonly templateData?: {
@@ -43,32 +32,7 @@ export declare const preview: (input: {
43
32
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
44
33
  } | null | undefined;
45
34
  } | 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;
62
35
  };
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;
72
36
  readonly conversationId?: string | null | undefined;
73
37
  readonly metadata?: {
74
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 | {
@@ -98,9 +62,20 @@ export declare const preview: (input: {
98
62
  } | null | undefined;
99
63
  } | null | undefined;
100
64
  } | {
101
- readonly channel: "sms";
102
- readonly sms: {
65
+ readonly channel: "email";
66
+ readonly email: {
67
+ readonly subject?: string | null | undefined;
68
+ readonly html?: string | null | undefined;
103
69
  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;
104
79
  readonly templateId?: string | null | undefined;
105
80
  readonly templateSlug?: string | null | undefined;
106
81
  readonly templateData?: {
@@ -130,7 +105,32 @@ export declare const preview: (input: {
130
105
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
131
106
  } | null | undefined;
132
107
  } | 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;
133
124
  };
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,20 +239,9 @@ export declare const preview: (input: {
239
239
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsPreview">;
240
240
  export declare const sendTest: (input: {
241
241
  readonly content: {
242
- readonly channel: "email";
243
- readonly email: {
244
- readonly subject?: string | null | undefined;
245
- readonly html?: string | null | undefined;
242
+ readonly channel: "sms";
243
+ readonly sms: {
246
244
  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;
256
245
  readonly templateId?: string | null | undefined;
257
246
  readonly templateSlug?: string | null | undefined;
258
247
  readonly templateData?: {
@@ -282,32 +271,7 @@ export declare const sendTest: (input: {
282
271
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
283
272
  } | null | undefined;
284
273
  } | 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;
301
274
  };
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;
311
275
  readonly conversationId?: string | null | undefined;
312
276
  readonly metadata?: {
313
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 | {
@@ -337,9 +301,20 @@ export declare const sendTest: (input: {
337
301
  } | null | undefined;
338
302
  } | null | undefined;
339
303
  } | {
340
- readonly channel: "sms";
341
- readonly sms: {
304
+ readonly channel: "email";
305
+ readonly email: {
306
+ readonly subject?: string | null | undefined;
307
+ readonly html?: string | null | undefined;
342
308
  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;
343
318
  readonly templateId?: string | null | undefined;
344
319
  readonly templateSlug?: string | null | undefined;
345
320
  readonly templateData?: {
@@ -369,7 +344,32 @@ export declare const sendTest: (input: {
369
344
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
370
345
  } | null | undefined;
371
346
  } | 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;
372
363
  };
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 | {
@@ -491,20 +491,6 @@ export declare const list: ((input?: {
491
491
  readonly name: string;
492
492
  readonly channel: "email" | "sms" | "whatsapp";
493
493
  readonly content: {
494
- readonly channel: "sms";
495
- readonly sms: {
496
- readonly text?: string | null;
497
- readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
498
- readonly templateSlug?: string | null;
499
- readonly templateData?: {
500
- readonly [x: string]: import("./generated").JsonValue;
501
- } | null;
502
- };
503
- readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
504
- readonly metadata?: {
505
- readonly [x: string]: import("./generated").JsonValue;
506
- } | null;
507
- } | {
508
494
  readonly channel: "email";
509
495
  readonly email: {
510
496
  readonly subject?: string | null;
@@ -554,6 +540,20 @@ export declare const list: ((input?: {
554
540
  readonly metadata?: {
555
541
  readonly [x: string]: import("./generated").JsonValue;
556
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
557
  } | {
558
558
  readonly channel: "whatsapp";
559
559
  readonly whatsapp: {
@@ -619,20 +619,6 @@ export declare const list: ((input?: {
619
619
  readonly name: string;
620
620
  readonly channel: "email" | "sms" | "whatsapp";
621
621
  readonly content: {
622
- readonly channel: "sms";
623
- readonly sms: {
624
- readonly text?: string | null;
625
- readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
626
- readonly templateSlug?: string | null;
627
- readonly templateData?: {
628
- readonly [x: string]: import("./generated").JsonValue;
629
- } | null;
630
- };
631
- readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
632
- readonly metadata?: {
633
- readonly [x: string]: import("./generated").JsonValue;
634
- } | null;
635
- } | {
636
622
  readonly channel: "email";
637
623
  readonly email: {
638
624
  readonly subject?: string | null;
@@ -682,6 +668,20 @@ export declare const list: ((input?: {
682
668
  readonly metadata?: {
683
669
  readonly [x: string]: import("./generated").JsonValue;
684
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
685
  } | {
686
686
  readonly channel: "whatsapp";
687
687
  readonly whatsapp: {
@@ -741,20 +741,9 @@ export declare const create: (input: {
741
741
  readonly name: string;
742
742
  readonly channel: "email" | "sms" | "whatsapp";
743
743
  readonly content: {
744
- readonly channel: "email";
745
- readonly email: {
746
- readonly subject?: string | null | undefined;
747
- readonly html?: string | null | undefined;
744
+ readonly channel: "sms";
745
+ readonly sms: {
748
746
  readonly text?: string | null | undefined;
749
- readonly attachments?: readonly {
750
- readonly filename: string;
751
- readonly content?: string | null | undefined;
752
- readonly mediaId?: string | null | undefined;
753
- readonly contentType: string;
754
- readonly size: number;
755
- }[] | null | undefined;
756
- readonly publicationId?: string | undefined;
757
- readonly inputContractId?: string | undefined;
758
747
  readonly templateId?: string | null | undefined;
759
748
  readonly templateSlug?: string | null | undefined;
760
749
  readonly templateData?: {
@@ -784,32 +773,7 @@ export declare const create: (input: {
784
773
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
785
774
  } | null | undefined;
786
775
  } | null | undefined;
787
- readonly locale?: string | undefined;
788
- readonly timeZone?: string | undefined;
789
- readonly inReplyToMessageId?: string | null | undefined;
790
- readonly replyTo?: readonly string[] | null | undefined;
791
- readonly topicId?: string | null | undefined;
792
- readonly tracking?: {
793
- readonly opens?: boolean | undefined;
794
- readonly clicks?: boolean | undefined;
795
- } | undefined;
796
- readonly footer?: {
797
- readonly enabled?: boolean | null | undefined;
798
- } | undefined;
799
- readonly headers?: {
800
- readonly [x: string]: string | undefined;
801
- } | null | undefined;
802
- readonly preheader?: string | null | undefined;
803
776
  };
804
- readonly issue?: {
805
- readonly path: string;
806
- readonly commit: string;
807
- } | null | undefined;
808
- readonly from?: {
809
- readonly email: string;
810
- readonly name?: string | null | undefined;
811
- } | null | undefined;
812
- readonly replyMailboxId?: string | null | undefined;
813
777
  readonly conversationId?: string | null | undefined;
814
778
  readonly metadata?: {
815
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 | {
@@ -839,9 +803,20 @@ export declare const create: (input: {
839
803
  } | null | undefined;
840
804
  } | null | undefined;
841
805
  } | {
842
- readonly channel: "sms";
843
- readonly sms: {
806
+ readonly channel: "email";
807
+ readonly email: {
808
+ readonly subject?: string | null | undefined;
809
+ readonly html?: string | null | undefined;
844
810
  readonly text?: string | null | undefined;
811
+ readonly attachments?: readonly {
812
+ readonly filename: string;
813
+ readonly content?: string | null | undefined;
814
+ readonly mediaId?: string | null | undefined;
815
+ readonly contentType: string;
816
+ readonly size: number;
817
+ }[] | null | undefined;
818
+ readonly publicationId?: string | undefined;
819
+ readonly inputContractId?: string | undefined;
845
820
  readonly templateId?: string | null | undefined;
846
821
  readonly templateSlug?: string | null | undefined;
847
822
  readonly templateData?: {
@@ -871,7 +846,32 @@ export declare const create: (input: {
871
846
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
872
847
  } | null | undefined;
873
848
  } | null | undefined;
849
+ readonly locale?: string | undefined;
850
+ readonly timeZone?: string | undefined;
851
+ readonly inReplyToMessageId?: string | null | undefined;
852
+ readonly replyTo?: readonly string[] | null | undefined;
853
+ readonly topicId?: string | null | undefined;
854
+ readonly tracking?: {
855
+ readonly opens?: boolean | undefined;
856
+ readonly clicks?: boolean | undefined;
857
+ } | undefined;
858
+ readonly footer?: {
859
+ readonly enabled?: boolean | null | undefined;
860
+ } | undefined;
861
+ readonly headers?: {
862
+ readonly [x: string]: string | undefined;
863
+ } | null | undefined;
864
+ readonly preheader?: string | null | undefined;
874
865
  };
866
+ readonly issue?: {
867
+ readonly path: string;
868
+ readonly commit: string;
869
+ } | null | undefined;
870
+ readonly from?: {
871
+ readonly email: string;
872
+ readonly name?: string | null | undefined;
873
+ } | null | undefined;
874
+ readonly replyMailboxId?: string | null | undefined;
875
875
  readonly conversationId?: string | null | undefined;
876
876
  readonly metadata?: {
877
877
  readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
@@ -990,20 +990,9 @@ export declare const update: (input: {
990
990
  readonly id: string;
991
991
  readonly name?: string | null | undefined;
992
992
  readonly content?: {
993
- readonly channel: "email";
994
- readonly email: {
995
- readonly subject?: string | null | undefined;
996
- readonly html?: string | null | undefined;
993
+ readonly channel: "sms";
994
+ readonly sms: {
997
995
  readonly text?: string | null | undefined;
998
- readonly attachments?: readonly {
999
- readonly filename: string;
1000
- readonly content?: string | null | undefined;
1001
- readonly mediaId?: string | null | undefined;
1002
- readonly contentType: string;
1003
- readonly size: number;
1004
- }[] | null | undefined;
1005
- readonly publicationId?: string | undefined;
1006
- readonly inputContractId?: string | undefined;
1007
996
  readonly templateId?: string | null | undefined;
1008
997
  readonly templateSlug?: string | null | undefined;
1009
998
  readonly templateData?: {
@@ -1033,32 +1022,7 @@ export declare const update: (input: {
1033
1022
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
1034
1023
  } | null | undefined;
1035
1024
  } | null | undefined;
1036
- readonly locale?: string | undefined;
1037
- readonly timeZone?: string | undefined;
1038
- readonly inReplyToMessageId?: string | null | undefined;
1039
- readonly replyTo?: readonly string[] | null | undefined;
1040
- readonly topicId?: string | null | undefined;
1041
- readonly tracking?: {
1042
- readonly opens?: boolean | undefined;
1043
- readonly clicks?: boolean | undefined;
1044
- } | undefined;
1045
- readonly footer?: {
1046
- readonly enabled?: boolean | null | undefined;
1047
- } | undefined;
1048
- readonly headers?: {
1049
- readonly [x: string]: string | undefined;
1050
- } | null | undefined;
1051
- readonly preheader?: string | null | undefined;
1052
1025
  };
1053
- readonly issue?: {
1054
- readonly path: string;
1055
- readonly commit: string;
1056
- } | null | undefined;
1057
- readonly from?: {
1058
- readonly email: string;
1059
- readonly name?: string | null | undefined;
1060
- } | null | undefined;
1061
- readonly replyMailboxId?: string | null | undefined;
1062
1026
  readonly conversationId?: string | null | undefined;
1063
1027
  readonly metadata?: {
1064
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 | {
@@ -1088,9 +1052,20 @@ export declare const update: (input: {
1088
1052
  } | null | undefined;
1089
1053
  } | null | undefined;
1090
1054
  } | {
1091
- readonly channel: "sms";
1092
- readonly sms: {
1055
+ readonly channel: "email";
1056
+ readonly email: {
1057
+ readonly subject?: string | null | undefined;
1058
+ readonly html?: string | null | undefined;
1093
1059
  readonly text?: string | null | undefined;
1060
+ readonly attachments?: readonly {
1061
+ readonly filename: string;
1062
+ readonly content?: string | null | undefined;
1063
+ readonly mediaId?: string | null | undefined;
1064
+ readonly contentType: string;
1065
+ readonly size: number;
1066
+ }[] | null | undefined;
1067
+ readonly publicationId?: string | undefined;
1068
+ readonly inputContractId?: string | undefined;
1094
1069
  readonly templateId?: string | null | undefined;
1095
1070
  readonly templateSlug?: string | null | undefined;
1096
1071
  readonly templateData?: {
@@ -1120,7 +1095,32 @@ export declare const update: (input: {
1120
1095
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
1121
1096
  } | null | undefined;
1122
1097
  } | null | undefined;
1098
+ readonly locale?: string | undefined;
1099
+ readonly timeZone?: string | undefined;
1100
+ readonly inReplyToMessageId?: string | null | undefined;
1101
+ readonly replyTo?: readonly string[] | null | undefined;
1102
+ readonly topicId?: string | null | undefined;
1103
+ readonly tracking?: {
1104
+ readonly opens?: boolean | undefined;
1105
+ readonly clicks?: boolean | undefined;
1106
+ } | undefined;
1107
+ readonly footer?: {
1108
+ readonly enabled?: boolean | null | undefined;
1109
+ } | undefined;
1110
+ readonly headers?: {
1111
+ readonly [x: string]: string | undefined;
1112
+ } | null | undefined;
1113
+ readonly preheader?: string | null | undefined;
1123
1114
  };
1115
+ readonly issue?: {
1116
+ readonly path: string;
1117
+ readonly commit: string;
1118
+ } | null | undefined;
1119
+ readonly from?: {
1120
+ readonly email: string;
1121
+ readonly name?: string | null | undefined;
1122
+ } | null | undefined;
1123
+ readonly replyMailboxId?: string | null | undefined;
1124
1124
  readonly conversationId?: string | null | undefined;
1125
1125
  readonly metadata?: {
1126
1126
  readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
@@ -1250,20 +1250,6 @@ export declare const listRuns: ((input: {
1250
1250
  readonly startedAt: string | null;
1251
1251
  readonly completedAt: string | null;
1252
1252
  readonly contentSnapshot: {
1253
- readonly channel: "sms";
1254
- readonly sms: {
1255
- readonly text?: string | null;
1256
- readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
1257
- readonly templateSlug?: string | null;
1258
- readonly templateData?: {
1259
- readonly [x: string]: import("./generated").JsonValue;
1260
- } | null;
1261
- };
1262
- readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1263
- readonly metadata?: {
1264
- readonly [x: string]: import("./generated").JsonValue;
1265
- } | null;
1266
- } | {
1267
1253
  readonly channel: "email";
1268
1254
  readonly email: {
1269
1255
  readonly subject?: string | null;
@@ -1313,6 +1299,20 @@ export declare const listRuns: ((input: {
1313
1299
  readonly metadata?: {
1314
1300
  readonly [x: string]: import("./generated").JsonValue;
1315
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
1316
  } | {
1317
1317
  readonly channel: "whatsapp";
1318
1318
  readonly whatsapp: {
@@ -1382,20 +1382,6 @@ export declare const listRuns: ((input: {
1382
1382
  readonly startedAt: string | null;
1383
1383
  readonly completedAt: string | null;
1384
1384
  readonly contentSnapshot: {
1385
- readonly channel: "sms";
1386
- readonly sms: {
1387
- readonly text?: string | null;
1388
- readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
1389
- readonly templateSlug?: string | null;
1390
- readonly templateData?: {
1391
- readonly [x: string]: import("./generated").JsonValue;
1392
- } | null;
1393
- };
1394
- readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1395
- readonly metadata?: {
1396
- readonly [x: string]: import("./generated").JsonValue;
1397
- } | null;
1398
- } | {
1399
1385
  readonly channel: "email";
1400
1386
  readonly email: {
1401
1387
  readonly subject?: string | null;
@@ -1445,6 +1431,20 @@ export declare const listRuns: ((input: {
1445
1431
  readonly metadata?: {
1446
1432
  readonly [x: string]: import("./generated").JsonValue;
1447
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
1448
  } | {
1449
1449
  readonly channel: "whatsapp";
1450
1450
  readonly whatsapp: {
@@ -1,6 +1,7 @@
1
1
  export declare const list: ((input?: {
2
2
  readonly limit?: number | null | undefined;
3
3
  readonly cursor?: string | undefined;
4
+ readonly namespaceId?: string | undefined;
4
5
  readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | undefined;
5
6
  readonly channel?: "email" | "sms" | "whatsapp" | undefined;
6
7
  readonly contactId?: string | undefined;
@@ -11,6 +12,7 @@ export declare const list: ((input?: {
11
12
  readonly pages: (input?: {
12
13
  readonly limit?: number | null | undefined;
13
14
  readonly cursor?: string | undefined;
15
+ readonly namespaceId?: string | undefined;
14
16
  readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | undefined;
15
17
  readonly channel?: "email" | "sms" | "whatsapp" | undefined;
16
18
  readonly contactId?: string | undefined;
@@ -20,6 +22,7 @@ export declare const list: ((input?: {
20
22
  } | undefined) => import("effect/Stream").Stream<{
21
23
  readonly items: readonly {
22
24
  readonly id: string & import("effect/Brand").Brand<"ConversationId">;
25
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
23
26
  readonly title: string | null;
24
27
  readonly externalId: string | null;
25
28
  readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
@@ -38,6 +41,7 @@ export declare const list: ((input?: {
38
41
  readonly items: (input?: {
39
42
  readonly limit?: number | null | undefined;
40
43
  readonly cursor?: string | undefined;
44
+ readonly namespaceId?: string | undefined;
41
45
  readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | undefined;
42
46
  readonly channel?: "email" | "sms" | "whatsapp" | undefined;
43
47
  readonly contactId?: string | undefined;
@@ -46,6 +50,7 @@ export declare const list: ((input?: {
46
50
  readonly before?: string | undefined;
47
51
  } | undefined) => import("effect/Stream").Stream<{
48
52
  readonly id: string & import("effect/Brand").Brand<"ConversationId">;
53
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
49
54
  readonly title: string | null;
50
55
  readonly externalId: string | null;
51
56
  readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
@@ -61,6 +66,7 @@ export declare const list: ((input?: {
61
66
  }, 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>;
62
67
  };
63
68
  export declare const create: (input: {
69
+ readonly namespaceId?: string | null | undefined;
64
70
  readonly title?: string | null | undefined;
65
71
  readonly description?: string | null | undefined;
66
72
  readonly externalId?: string | null | undefined;
@@ -1,2 +1,2 @@
1
- export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, UnauthorizedError, ValidationError, WhatsAppServiceWindowClosedError, TemplateSourceError, DeliveryUnavailableError, } from "./generated/shared";
1
+ export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, UnauthorizedError, ValidationError, WhatsAppServiceWindowClosedError, TemplateSourceError, TemplateInUseError, DeliveryUnavailableError, } from "./generated/shared";
2
2
  export { MediaUploadError } from "../inline-attachments";
@@ -1,3 +1,3 @@
1
1
  import { MediaUploadError } from "../inline-attachments.js";
2
- import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppServiceWindowClosedError } from "./generated/shared.js";
3
- export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppServiceWindowClosedError };
2
+ import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppServiceWindowClosedError } from "./generated/shared.js";
3
+ export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppServiceWindowClosedError };