samva 0.1.1 → 0.3.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 (47) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +10 -3
  3. package/dist/client/sdk.gen.d.ts +333 -188
  4. package/dist/client/types.gen.d.ts +1452 -718
  5. package/dist/{client-DVALvDUe.js → client-BOghX8fr.js} +1990 -1631
  6. package/dist/effect/api-keys.d.ts +14 -14
  7. package/dist/effect/api-keys.js +1 -1
  8. package/dist/effect/campaigns.d.ts +233 -861
  9. package/dist/effect/campaigns.js +1 -1
  10. package/dist/effect/categories.d.ts +1 -1
  11. package/dist/effect/client.js +1 -1
  12. package/dist/effect/contacts.d.ts +131 -231
  13. package/dist/effect/contacts.js +1 -1
  14. package/dist/effect/conversations.d.ts +91 -208
  15. package/dist/effect/conversations.js +1 -1
  16. package/dist/effect/design.d.ts +11 -11
  17. package/dist/effect/design.js +1 -1
  18. package/dist/effect/email.d.ts +164 -168
  19. package/dist/effect/email.js +20 -18
  20. package/dist/effect/generated.d.ts +13753 -14935
  21. package/dist/effect/index.d.ts +1 -0
  22. package/dist/effect/index.js +3 -2
  23. package/dist/effect/internal/operation.d.ts +15 -113
  24. package/dist/effect/media.d.ts +80 -0
  25. package/dist/effect/media.js +19 -0
  26. package/dist/effect/messages.d.ts +41 -261
  27. package/dist/effect/messages.js +1 -1
  28. package/dist/effect/operations.d.ts +10 -10
  29. package/dist/effect/operations.js +1 -1
  30. package/dist/effect/organizations.d.ts +24 -42
  31. package/dist/effect/organizations.js +1 -1
  32. package/dist/effect/scheduled-messages.d.ts +43 -502
  33. package/dist/effect/scheduled-messages.js +1 -1
  34. package/dist/effect/templates.d.ts +312 -1542
  35. package/dist/effect/templates.js +26 -18
  36. package/dist/effect/webhooks.d.ts +26 -27
  37. package/dist/effect/webhooks.js +2 -2
  38. package/dist/index.js +1 -1
  39. package/dist/{normalize-LkWl4HUF.js → normalize-BKFjbR9t.js} +5 -13
  40. package/dist/normalize.d.ts +3 -33
  41. package/dist/{operation-UtKNITtG.js → operation-C2Q4cFJL.js} +67 -26
  42. package/dist/promises/index.d.ts +6 -14
  43. package/dist/promises/index.js +1 -1
  44. package/dist/promises/types.gen.d.ts +1 -1
  45. package/dist/{promises-QxEfMTho.js → promises-oiy7mOyu.js} +680 -157
  46. package/dist/service-map.d.ts +92 -40
  47. package/package.json +19 -14
@@ -2,8 +2,8 @@ export declare const list: ((input?: {
2
2
  readonly contactId?: string | null | undefined;
3
3
  readonly channel?: string | null | undefined;
4
4
  readonly limit?: string | null | undefined;
5
- readonly status?: string | null | undefined;
6
5
  readonly page?: string | null | undefined;
6
+ readonly status?: string | null | undefined;
7
7
  readonly startDate?: string | null | undefined;
8
8
  readonly endDate?: string | null | undefined;
9
9
  } | undefined) => import("effect/Effect").Effect<{
@@ -14,25 +14,25 @@ export declare const list: ((input?: {
14
14
  readonly description: string | null;
15
15
  readonly externalId: string | null;
16
16
  readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
17
- readonly channels: readonly ("sms" | "whatsapp" | "email")[];
18
- readonly primaryChannel: "sms" | "whatsapp" | "email";
17
+ readonly channels: readonly "email"[];
18
+ readonly primaryChannel: "email";
19
19
  readonly status: "archived" | "active" | "waiting" | "resolved" | "escalated";
20
20
  readonly statusReason: string | null;
21
21
  readonly priority: number;
22
22
  readonly urgency: "low" | "medium" | "high" | "critical";
23
23
  readonly complexity: "simple" | "moderate" | "complex";
24
24
  readonly metadata: {
25
- readonly tags?: readonly string[] | null;
26
- readonly source?: string | null;
27
25
  readonly customFields?: {
28
26
  readonly [x: string]: import("./generated").JsonValue;
29
27
  } | null;
28
+ readonly source?: string | null;
29
+ readonly tags?: readonly string[] | null;
30
30
  } | null;
31
31
  readonly actorTracking: {
32
32
  readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
33
33
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
34
34
  readonly actorHistory: readonly {
35
- readonly actorType: "system" | "user" | "contact" | "sender_identity" | "agent";
35
+ readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
36
36
  readonly role: "initiator" | "responder" | "observer";
37
37
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
38
38
  readonly joinedAt: string;
@@ -93,13 +93,13 @@ export declare const list: ((input?: {
93
93
  readonly total: number;
94
94
  readonly totalPages: number;
95
95
  };
96
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>) & {
96
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>) & {
97
97
  readonly pages: (input?: {
98
98
  readonly contactId?: string | null | undefined;
99
99
  readonly channel?: string | null | undefined;
100
100
  readonly limit?: string | null | undefined;
101
- readonly status?: string | null | undefined;
102
101
  readonly page?: string | null | undefined;
102
+ readonly status?: string | null | undefined;
103
103
  readonly startDate?: string | null | undefined;
104
104
  readonly endDate?: string | null | undefined;
105
105
  } | undefined) => import("effect/Stream").Stream<{
@@ -110,25 +110,25 @@ export declare const list: ((input?: {
110
110
  readonly description: string | null;
111
111
  readonly externalId: string | null;
112
112
  readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
113
- readonly channels: readonly ("sms" | "whatsapp" | "email")[];
114
- readonly primaryChannel: "sms" | "whatsapp" | "email";
113
+ readonly channels: readonly "email"[];
114
+ readonly primaryChannel: "email";
115
115
  readonly status: "archived" | "active" | "waiting" | "resolved" | "escalated";
116
116
  readonly statusReason: string | null;
117
117
  readonly priority: number;
118
118
  readonly urgency: "low" | "medium" | "high" | "critical";
119
119
  readonly complexity: "simple" | "moderate" | "complex";
120
120
  readonly metadata: {
121
- readonly tags?: readonly string[] | null;
122
- readonly source?: string | null;
123
121
  readonly customFields?: {
124
122
  readonly [x: string]: import("./generated").JsonValue;
125
123
  } | null;
124
+ readonly source?: string | null;
125
+ readonly tags?: readonly string[] | null;
126
126
  } | null;
127
127
  readonly actorTracking: {
128
128
  readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
129
129
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
130
130
  readonly actorHistory: readonly {
131
- readonly actorType: "system" | "user" | "contact" | "sender_identity" | "agent";
131
+ readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
132
132
  readonly role: "initiator" | "responder" | "observer";
133
133
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
134
134
  readonly joinedAt: string;
@@ -189,13 +189,13 @@ export declare const list: ((input?: {
189
189
  readonly total: number;
190
190
  readonly totalPages: number;
191
191
  };
192
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
192
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
193
193
  readonly items: (input?: {
194
194
  readonly contactId?: string | null | undefined;
195
195
  readonly channel?: string | null | undefined;
196
196
  readonly limit?: string | null | undefined;
197
- readonly status?: string | null | undefined;
198
197
  readonly page?: string | null | undefined;
198
+ readonly status?: string | null | undefined;
199
199
  readonly startDate?: string | null | undefined;
200
200
  readonly endDate?: string | null | undefined;
201
201
  } | undefined) => import("effect/Stream").Stream<{
@@ -205,25 +205,25 @@ export declare const list: ((input?: {
205
205
  readonly description: string | null;
206
206
  readonly externalId: string | null;
207
207
  readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
208
- readonly channels: readonly ("sms" | "whatsapp" | "email")[];
209
- readonly primaryChannel: "sms" | "whatsapp" | "email";
208
+ readonly channels: readonly "email"[];
209
+ readonly primaryChannel: "email";
210
210
  readonly status: "archived" | "active" | "waiting" | "resolved" | "escalated";
211
211
  readonly statusReason: string | null;
212
212
  readonly priority: number;
213
213
  readonly urgency: "low" | "medium" | "high" | "critical";
214
214
  readonly complexity: "simple" | "moderate" | "complex";
215
215
  readonly metadata: {
216
- readonly tags?: readonly string[] | null;
217
- readonly source?: string | null;
218
216
  readonly customFields?: {
219
217
  readonly [x: string]: import("./generated").JsonValue;
220
218
  } | null;
219
+ readonly source?: string | null;
220
+ readonly tags?: readonly string[] | null;
221
221
  } | null;
222
222
  readonly actorTracking: {
223
223
  readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
224
224
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
225
225
  readonly actorHistory: readonly {
226
- readonly actorType: "system" | "user" | "contact" | "sender_identity" | "agent";
226
+ readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
227
227
  readonly role: "initiator" | "responder" | "observer";
228
228
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
229
229
  readonly joinedAt: string;
@@ -277,15 +277,13 @@ export declare const list: ((input?: {
277
277
  readonly createdAt: string;
278
278
  readonly updatedAt: string;
279
279
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
280
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
280
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
281
281
  };
282
282
  export declare const create: (input: {
283
283
  readonly channels: readonly string[];
284
284
  readonly primaryChannel: string;
285
285
  readonly priority?: number | null | undefined;
286
286
  readonly metadata?: {
287
- readonly tags?: readonly string[] | null | undefined;
288
- readonly source?: string | null | undefined;
289
287
  readonly customFields?: {
290
288
  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 | {
291
289
  readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
@@ -313,6 +311,8 @@ export declare const create: (input: {
313
311
  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 | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
314
312
  } | null | undefined;
315
313
  } | null | undefined;
314
+ readonly source?: string | null | undefined;
315
+ readonly tags?: readonly string[] | null | undefined;
316
316
  } | null | undefined;
317
317
  readonly description?: string | null | undefined;
318
318
  readonly status?: string | null | undefined;
@@ -321,9 +321,9 @@ export declare const create: (input: {
321
321
  readonly externalId?: string | null | undefined;
322
322
  readonly isTest?: boolean | null | undefined;
323
323
  readonly isInternal?: boolean | null | undefined;
324
+ readonly statusReason?: string | null | undefined;
324
325
  readonly title?: string | null | undefined;
325
326
  readonly parentConversationId?: string | null | undefined;
326
- readonly statusReason?: string | null | undefined;
327
327
  readonly urgency?: string | null | undefined;
328
328
  readonly complexity?: string | null | undefined;
329
329
  readonly context?: {
@@ -448,25 +448,25 @@ export declare const create: (input: {
448
448
  readonly description: string | null;
449
449
  readonly externalId: string | null;
450
450
  readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
451
- readonly channels: readonly ("sms" | "whatsapp" | "email")[];
452
- readonly primaryChannel: "sms" | "whatsapp" | "email";
451
+ readonly channels: readonly "email"[];
452
+ readonly primaryChannel: "email";
453
453
  readonly status: "archived" | "active" | "waiting" | "resolved" | "escalated";
454
454
  readonly statusReason: string | null;
455
455
  readonly priority: number;
456
456
  readonly urgency: "low" | "medium" | "high" | "critical";
457
457
  readonly complexity: "simple" | "moderate" | "complex";
458
458
  readonly metadata: {
459
- readonly tags?: readonly string[] | null;
460
- readonly source?: string | null;
461
459
  readonly customFields?: {
462
460
  readonly [x: string]: import("./generated").JsonValue;
463
461
  } | null;
462
+ readonly source?: string | null;
463
+ readonly tags?: readonly string[] | null;
464
464
  } | null;
465
465
  readonly actorTracking: {
466
466
  readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
467
467
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
468
468
  readonly actorHistory: readonly {
469
- readonly actorType: "system" | "user" | "contact" | "sender_identity" | "agent";
469
+ readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
470
470
  readonly role: "initiator" | "responder" | "observer";
471
471
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
472
472
  readonly joinedAt: string;
@@ -520,7 +520,7 @@ export declare const create: (input: {
520
520
  readonly createdAt: string;
521
521
  readonly updatedAt: string;
522
522
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
523
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
523
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
524
524
  export declare const getById: (input: {
525
525
  readonly id: string;
526
526
  }) => import("effect/Effect").Effect<{
@@ -530,25 +530,25 @@ export declare const getById: (input: {
530
530
  readonly description: string | null;
531
531
  readonly externalId: string | null;
532
532
  readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
533
- readonly channels: readonly ("sms" | "whatsapp" | "email")[];
534
- readonly primaryChannel: "sms" | "whatsapp" | "email";
533
+ readonly channels: readonly "email"[];
534
+ readonly primaryChannel: "email";
535
535
  readonly status: "archived" | "active" | "waiting" | "resolved" | "escalated";
536
536
  readonly statusReason: string | null;
537
537
  readonly priority: number;
538
538
  readonly urgency: "low" | "medium" | "high" | "critical";
539
539
  readonly complexity: "simple" | "moderate" | "complex";
540
540
  readonly metadata: {
541
- readonly tags?: readonly string[] | null;
542
- readonly source?: string | null;
543
541
  readonly customFields?: {
544
542
  readonly [x: string]: import("./generated").JsonValue;
545
543
  } | null;
544
+ readonly source?: string | null;
545
+ readonly tags?: readonly string[] | null;
546
546
  } | null;
547
547
  readonly actorTracking: {
548
548
  readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
549
549
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
550
550
  readonly actorHistory: readonly {
551
- readonly actorType: "system" | "user" | "contact" | "sender_identity" | "agent";
551
+ readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
552
552
  readonly role: "initiator" | "responder" | "observer";
553
553
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
554
554
  readonly joinedAt: string;
@@ -602,7 +602,22 @@ export declare const getById: (input: {
602
602
  readonly createdAt: string;
603
603
  readonly updatedAt: string;
604
604
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
605
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
605
+ readonly participants: readonly {
606
+ readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
607
+ readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
608
+ readonly contact: {
609
+ readonly id: string;
610
+ readonly name: string;
611
+ readonly displayName: string | null;
612
+ readonly type: string;
613
+ readonly identities: readonly {
614
+ readonly channel: "email";
615
+ readonly identifier: string;
616
+ readonly verified: boolean;
617
+ }[];
618
+ };
619
+ }[];
620
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
606
621
  export declare const listMessages: ((input: {
607
622
  readonly id: string;
608
623
  readonly limit?: string | null | undefined;
@@ -617,7 +632,7 @@ export declare const listMessages: ((input: {
617
632
  readonly actorMetadata: {
618
633
  readonly [x: string]: import("./generated").JsonValue;
619
634
  } | null;
620
- readonly channel: "sms" | "whatsapp" | "email";
635
+ readonly channel: "email";
621
636
  readonly direction: "outbound" | "inbound";
622
637
  readonly content: import("./generated").JsonValue;
623
638
  readonly metadata: {
@@ -645,7 +660,7 @@ export declare const listMessages: ((input: {
645
660
  readonly displayName: string | null;
646
661
  readonly type: string;
647
662
  readonly identities: readonly {
648
- readonly channel: "sms" | "whatsapp" | "email";
663
+ readonly channel: "email";
649
664
  readonly identifier: string;
650
665
  readonly verified: boolean;
651
666
  }[];
@@ -656,7 +671,7 @@ export declare const listMessages: ((input: {
656
671
  readonly displayName: string | null;
657
672
  readonly type: string;
658
673
  readonly identities: readonly {
659
- readonly channel: "sms" | "whatsapp" | "email";
674
+ readonly channel: "email";
660
675
  readonly identifier: string;
661
676
  readonly verified: boolean;
662
677
  }[];
@@ -678,7 +693,7 @@ export declare const listMessages: ((input: {
678
693
  readonly displayName: string | null;
679
694
  readonly type: string;
680
695
  readonly identities: readonly {
681
- readonly channel: "sms" | "whatsapp" | "email";
696
+ readonly channel: "email";
682
697
  readonly identifier: string;
683
698
  readonly verified: boolean;
684
699
  }[];
@@ -688,7 +703,7 @@ export declare const listMessages: ((input: {
688
703
  readonly id: string;
689
704
  readonly messageId: string;
690
705
  readonly recipientId: string | null;
691
- readonly channel: "sms" | "whatsapp" | "email";
706
+ readonly channel: "email";
692
707
  readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
693
708
  readonly attemptCount: number;
694
709
  readonly maxAttempts: number;
@@ -745,50 +760,6 @@ export declare const listMessages: ((input: {
745
760
  readonly createdAt: string;
746
761
  readonly updatedAt: string;
747
762
  }[];
748
- readonly smsDeliveryDetails: readonly {
749
- readonly deliveryId: string;
750
- readonly fromNumber: string;
751
- readonly toNumber: string;
752
- readonly segmentCount: number;
753
- readonly encoding: string;
754
- readonly dltTemplateId: string | null;
755
- readonly dltEntityId: string | null;
756
- readonly dltContentId: string | null;
757
- readonly carrier: string | null;
758
- readonly numSegmentsReported: number | null;
759
- readonly createdAt: string;
760
- readonly updatedAt: string;
761
- }[];
762
- readonly whatsappDeliveryDetails: readonly {
763
- readonly deliveryId: string;
764
- readonly fromNumber: string;
765
- readonly toNumber: string;
766
- readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
767
- readonly templateName: string | null;
768
- readonly templateLanguage: string | null;
769
- readonly templateCategory: string | null;
770
- readonly templateParams: {
771
- readonly [x: string]: import("./generated").JsonValue;
772
- } | null;
773
- readonly mediaUrl: string | null;
774
- readonly mediaType: string | null;
775
- readonly mediaS3Key: string | null;
776
- readonly interactiveType: string | null;
777
- readonly contextMessageId: string | null;
778
- readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
779
- readonly serviceWindowId: string | null;
780
- readonly freeEntryPointId: string | null;
781
- readonly isBillable: boolean;
782
- readonly pricing: {
783
- readonly messageCost: string;
784
- readonly reason: string;
785
- readonly sentInServiceWindow: boolean;
786
- readonly sentInFreeEntryPoint: boolean;
787
- } | null;
788
- readonly recipientId: string | null;
789
- readonly createdAt: string;
790
- readonly updatedAt: string;
791
- }[];
792
763
  }[];
793
764
  readonly pagination: {
794
765
  readonly page: number;
@@ -796,7 +767,7 @@ export declare const listMessages: ((input: {
796
767
  readonly total: number;
797
768
  readonly totalPages: number;
798
769
  };
799
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>) & {
770
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>) & {
800
771
  readonly pages: (input: {
801
772
  readonly id: string;
802
773
  readonly limit?: string | null | undefined;
@@ -811,7 +782,7 @@ export declare const listMessages: ((input: {
811
782
  readonly actorMetadata: {
812
783
  readonly [x: string]: import("./generated").JsonValue;
813
784
  } | null;
814
- readonly channel: "sms" | "whatsapp" | "email";
785
+ readonly channel: "email";
815
786
  readonly direction: "outbound" | "inbound";
816
787
  readonly content: import("./generated").JsonValue;
817
788
  readonly metadata: {
@@ -839,7 +810,7 @@ export declare const listMessages: ((input: {
839
810
  readonly displayName: string | null;
840
811
  readonly type: string;
841
812
  readonly identities: readonly {
842
- readonly channel: "sms" | "whatsapp" | "email";
813
+ readonly channel: "email";
843
814
  readonly identifier: string;
844
815
  readonly verified: boolean;
845
816
  }[];
@@ -850,7 +821,7 @@ export declare const listMessages: ((input: {
850
821
  readonly displayName: string | null;
851
822
  readonly type: string;
852
823
  readonly identities: readonly {
853
- readonly channel: "sms" | "whatsapp" | "email";
824
+ readonly channel: "email";
854
825
  readonly identifier: string;
855
826
  readonly verified: boolean;
856
827
  }[];
@@ -872,7 +843,7 @@ export declare const listMessages: ((input: {
872
843
  readonly displayName: string | null;
873
844
  readonly type: string;
874
845
  readonly identities: readonly {
875
- readonly channel: "sms" | "whatsapp" | "email";
846
+ readonly channel: "email";
876
847
  readonly identifier: string;
877
848
  readonly verified: boolean;
878
849
  }[];
@@ -882,7 +853,7 @@ export declare const listMessages: ((input: {
882
853
  readonly id: string;
883
854
  readonly messageId: string;
884
855
  readonly recipientId: string | null;
885
- readonly channel: "sms" | "whatsapp" | "email";
856
+ readonly channel: "email";
886
857
  readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
887
858
  readonly attemptCount: number;
888
859
  readonly maxAttempts: number;
@@ -939,50 +910,6 @@ export declare const listMessages: ((input: {
939
910
  readonly createdAt: string;
940
911
  readonly updatedAt: string;
941
912
  }[];
942
- readonly smsDeliveryDetails: readonly {
943
- readonly deliveryId: string;
944
- readonly fromNumber: string;
945
- readonly toNumber: string;
946
- readonly segmentCount: number;
947
- readonly encoding: string;
948
- readonly dltTemplateId: string | null;
949
- readonly dltEntityId: string | null;
950
- readonly dltContentId: string | null;
951
- readonly carrier: string | null;
952
- readonly numSegmentsReported: number | null;
953
- readonly createdAt: string;
954
- readonly updatedAt: string;
955
- }[];
956
- readonly whatsappDeliveryDetails: readonly {
957
- readonly deliveryId: string;
958
- readonly fromNumber: string;
959
- readonly toNumber: string;
960
- readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
961
- readonly templateName: string | null;
962
- readonly templateLanguage: string | null;
963
- readonly templateCategory: string | null;
964
- readonly templateParams: {
965
- readonly [x: string]: import("./generated").JsonValue;
966
- } | null;
967
- readonly mediaUrl: string | null;
968
- readonly mediaType: string | null;
969
- readonly mediaS3Key: string | null;
970
- readonly interactiveType: string | null;
971
- readonly contextMessageId: string | null;
972
- readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
973
- readonly serviceWindowId: string | null;
974
- readonly freeEntryPointId: string | null;
975
- readonly isBillable: boolean;
976
- readonly pricing: {
977
- readonly messageCost: string;
978
- readonly reason: string;
979
- readonly sentInServiceWindow: boolean;
980
- readonly sentInFreeEntryPoint: boolean;
981
- } | null;
982
- readonly recipientId: string | null;
983
- readonly createdAt: string;
984
- readonly updatedAt: string;
985
- }[];
986
913
  }[];
987
914
  readonly pagination: {
988
915
  readonly page: number;
@@ -990,7 +917,7 @@ export declare const listMessages: ((input: {
990
917
  readonly total: number;
991
918
  readonly totalPages: number;
992
919
  };
993
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
920
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
994
921
  readonly items: (input: {
995
922
  readonly id: string;
996
923
  readonly limit?: string | null | undefined;
@@ -1004,7 +931,7 @@ export declare const listMessages: ((input: {
1004
931
  readonly actorMetadata: {
1005
932
  readonly [x: string]: import("./generated").JsonValue;
1006
933
  } | null;
1007
- readonly channel: "sms" | "whatsapp" | "email";
934
+ readonly channel: "email";
1008
935
  readonly direction: "outbound" | "inbound";
1009
936
  readonly content: import("./generated").JsonValue;
1010
937
  readonly metadata: {
@@ -1032,7 +959,7 @@ export declare const listMessages: ((input: {
1032
959
  readonly displayName: string | null;
1033
960
  readonly type: string;
1034
961
  readonly identities: readonly {
1035
- readonly channel: "sms" | "whatsapp" | "email";
962
+ readonly channel: "email";
1036
963
  readonly identifier: string;
1037
964
  readonly verified: boolean;
1038
965
  }[];
@@ -1043,7 +970,7 @@ export declare const listMessages: ((input: {
1043
970
  readonly displayName: string | null;
1044
971
  readonly type: string;
1045
972
  readonly identities: readonly {
1046
- readonly channel: "sms" | "whatsapp" | "email";
973
+ readonly channel: "email";
1047
974
  readonly identifier: string;
1048
975
  readonly verified: boolean;
1049
976
  }[];
@@ -1065,7 +992,7 @@ export declare const listMessages: ((input: {
1065
992
  readonly displayName: string | null;
1066
993
  readonly type: string;
1067
994
  readonly identities: readonly {
1068
- readonly channel: "sms" | "whatsapp" | "email";
995
+ readonly channel: "email";
1069
996
  readonly identifier: string;
1070
997
  readonly verified: boolean;
1071
998
  }[];
@@ -1075,7 +1002,7 @@ export declare const listMessages: ((input: {
1075
1002
  readonly id: string;
1076
1003
  readonly messageId: string;
1077
1004
  readonly recipientId: string | null;
1078
- readonly channel: "sms" | "whatsapp" | "email";
1005
+ readonly channel: "email";
1079
1006
  readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
1080
1007
  readonly attemptCount: number;
1081
1008
  readonly maxAttempts: number;
@@ -1132,58 +1059,12 @@ export declare const listMessages: ((input: {
1132
1059
  readonly createdAt: string;
1133
1060
  readonly updatedAt: string;
1134
1061
  }[];
1135
- readonly smsDeliveryDetails: readonly {
1136
- readonly deliveryId: string;
1137
- readonly fromNumber: string;
1138
- readonly toNumber: string;
1139
- readonly segmentCount: number;
1140
- readonly encoding: string;
1141
- readonly dltTemplateId: string | null;
1142
- readonly dltEntityId: string | null;
1143
- readonly dltContentId: string | null;
1144
- readonly carrier: string | null;
1145
- readonly numSegmentsReported: number | null;
1146
- readonly createdAt: string;
1147
- readonly updatedAt: string;
1148
- }[];
1149
- readonly whatsappDeliveryDetails: readonly {
1150
- readonly deliveryId: string;
1151
- readonly fromNumber: string;
1152
- readonly toNumber: string;
1153
- readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
1154
- readonly templateName: string | null;
1155
- readonly templateLanguage: string | null;
1156
- readonly templateCategory: string | null;
1157
- readonly templateParams: {
1158
- readonly [x: string]: import("./generated").JsonValue;
1159
- } | null;
1160
- readonly mediaUrl: string | null;
1161
- readonly mediaType: string | null;
1162
- readonly mediaS3Key: string | null;
1163
- readonly interactiveType: string | null;
1164
- readonly contextMessageId: string | null;
1165
- readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
1166
- readonly serviceWindowId: string | null;
1167
- readonly freeEntryPointId: string | null;
1168
- readonly isBillable: boolean;
1169
- readonly pricing: {
1170
- readonly messageCost: string;
1171
- readonly reason: string;
1172
- readonly sentInServiceWindow: boolean;
1173
- readonly sentInFreeEntryPoint: boolean;
1174
- } | null;
1175
- readonly recipientId: string | null;
1176
- readonly createdAt: string;
1177
- readonly updatedAt: string;
1178
- }[];
1179
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1062
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1180
1063
  };
1181
1064
  export declare const update: (input: {
1182
1065
  readonly id: string;
1183
1066
  readonly priority?: number | null | undefined;
1184
1067
  readonly metadata?: {
1185
- readonly tags?: readonly string[] | null | undefined;
1186
- readonly source?: string | null | undefined;
1187
1068
  readonly customFields?: {
1188
1069
  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 | {
1189
1070
  readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
@@ -1211,19 +1092,21 @@ export declare const update: (input: {
1211
1092
  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 | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
1212
1093
  } | null | undefined;
1213
1094
  } | null | undefined;
1095
+ readonly source?: string | null | undefined;
1096
+ readonly tags?: readonly string[] | null | undefined;
1214
1097
  } | null | undefined;
1215
1098
  readonly description?: string | null | undefined;
1216
- readonly channels?: readonly string[] | null | undefined;
1217
1099
  readonly status?: string | null | undefined;
1100
+ readonly channels?: readonly string[] | null | undefined;
1218
1101
  readonly tags?: readonly string[] | null | undefined;
1219
1102
  readonly categories?: readonly string[] | null | undefined;
1220
1103
  readonly externalId?: string | null | undefined;
1221
1104
  readonly isTest?: boolean | null | undefined;
1222
1105
  readonly isInternal?: boolean | null | undefined;
1106
+ readonly statusReason?: string | null | undefined;
1223
1107
  readonly title?: string | null | undefined;
1224
1108
  readonly parentConversationId?: string | null | undefined;
1225
1109
  readonly primaryChannel?: string | null | undefined;
1226
- readonly statusReason?: string | null | undefined;
1227
1110
  readonly urgency?: string | null | undefined;
1228
1111
  readonly complexity?: string | null | undefined;
1229
1112
  readonly context?: {
@@ -1348,25 +1231,25 @@ export declare const update: (input: {
1348
1231
  readonly description: string | null;
1349
1232
  readonly externalId: string | null;
1350
1233
  readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1351
- readonly channels: readonly ("sms" | "whatsapp" | "email")[];
1352
- readonly primaryChannel: "sms" | "whatsapp" | "email";
1234
+ readonly channels: readonly "email"[];
1235
+ readonly primaryChannel: "email";
1353
1236
  readonly status: "archived" | "active" | "waiting" | "resolved" | "escalated";
1354
1237
  readonly statusReason: string | null;
1355
1238
  readonly priority: number;
1356
1239
  readonly urgency: "low" | "medium" | "high" | "critical";
1357
1240
  readonly complexity: "simple" | "moderate" | "complex";
1358
1241
  readonly metadata: {
1359
- readonly tags?: readonly string[] | null;
1360
- readonly source?: string | null;
1361
1242
  readonly customFields?: {
1362
1243
  readonly [x: string]: import("./generated").JsonValue;
1363
1244
  } | null;
1245
+ readonly source?: string | null;
1246
+ readonly tags?: readonly string[] | null;
1364
1247
  } | null;
1365
1248
  readonly actorTracking: {
1366
1249
  readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
1367
1250
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
1368
1251
  readonly actorHistory: readonly {
1369
- readonly actorType: "system" | "user" | "contact" | "sender_identity" | "agent";
1252
+ readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
1370
1253
  readonly role: "initiator" | "responder" | "observer";
1371
1254
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
1372
1255
  readonly joinedAt: string;
@@ -1420,7 +1303,7 @@ export declare const update: (input: {
1420
1303
  readonly createdAt: string;
1421
1304
  readonly updatedAt: string;
1422
1305
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
1423
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1306
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1424
1307
  export declare const addContacts: (input: {
1425
1308
  readonly id: string;
1426
1309
  readonly contactIds: readonly string[];
@@ -1431,25 +1314,25 @@ export declare const addContacts: (input: {
1431
1314
  readonly description: string | null;
1432
1315
  readonly externalId: string | null;
1433
1316
  readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1434
- readonly channels: readonly ("sms" | "whatsapp" | "email")[];
1435
- readonly primaryChannel: "sms" | "whatsapp" | "email";
1317
+ readonly channels: readonly "email"[];
1318
+ readonly primaryChannel: "email";
1436
1319
  readonly status: "archived" | "active" | "waiting" | "resolved" | "escalated";
1437
1320
  readonly statusReason: string | null;
1438
1321
  readonly priority: number;
1439
1322
  readonly urgency: "low" | "medium" | "high" | "critical";
1440
1323
  readonly complexity: "simple" | "moderate" | "complex";
1441
1324
  readonly metadata: {
1442
- readonly tags?: readonly string[] | null;
1443
- readonly source?: string | null;
1444
1325
  readonly customFields?: {
1445
1326
  readonly [x: string]: import("./generated").JsonValue;
1446
1327
  } | null;
1328
+ readonly source?: string | null;
1329
+ readonly tags?: readonly string[] | null;
1447
1330
  } | null;
1448
1331
  readonly actorTracking: {
1449
1332
  readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
1450
1333
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
1451
1334
  readonly actorHistory: readonly {
1452
- readonly actorType: "system" | "user" | "contact" | "sender_identity" | "agent";
1335
+ readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
1453
1336
  readonly role: "initiator" | "responder" | "observer";
1454
1337
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
1455
1338
  readonly joinedAt: string;
@@ -1503,7 +1386,7 @@ export declare const addContacts: (input: {
1503
1386
  readonly createdAt: string;
1504
1387
  readonly updatedAt: string;
1505
1388
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
1506
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1389
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1507
1390
  export declare const removeContacts: (input: {
1508
1391
  readonly id: string;
1509
1392
  readonly contactIds: readonly string[];
@@ -1514,25 +1397,25 @@ export declare const removeContacts: (input: {
1514
1397
  readonly description: string | null;
1515
1398
  readonly externalId: string | null;
1516
1399
  readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1517
- readonly channels: readonly ("sms" | "whatsapp" | "email")[];
1518
- readonly primaryChannel: "sms" | "whatsapp" | "email";
1400
+ readonly channels: readonly "email"[];
1401
+ readonly primaryChannel: "email";
1519
1402
  readonly status: "archived" | "active" | "waiting" | "resolved" | "escalated";
1520
1403
  readonly statusReason: string | null;
1521
1404
  readonly priority: number;
1522
1405
  readonly urgency: "low" | "medium" | "high" | "critical";
1523
1406
  readonly complexity: "simple" | "moderate" | "complex";
1524
1407
  readonly metadata: {
1525
- readonly tags?: readonly string[] | null;
1526
- readonly source?: string | null;
1527
1408
  readonly customFields?: {
1528
1409
  readonly [x: string]: import("./generated").JsonValue;
1529
1410
  } | null;
1411
+ readonly source?: string | null;
1412
+ readonly tags?: readonly string[] | null;
1530
1413
  } | null;
1531
1414
  readonly actorTracking: {
1532
1415
  readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
1533
1416
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
1534
1417
  readonly actorHistory: readonly {
1535
- readonly actorType: "system" | "user" | "contact" | "sender_identity" | "agent";
1418
+ readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
1536
1419
  readonly role: "initiator" | "responder" | "observer";
1537
1420
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
1538
1421
  readonly joinedAt: string;
@@ -1586,4 +1469,4 @@ export declare const removeContacts: (input: {
1586
1469
  readonly createdAt: string;
1587
1470
  readonly updatedAt: string;
1588
1471
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
1589
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1472
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;