samva 0.2.0 → 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 +232 -23
  4. package/dist/client/types.gen.d.ts +693 -352
  5. package/dist/{client-BqkU-sFv.js → client-BOghX8fr.js} +1530 -1532
  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 +134 -853
  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 +123 -145
  13. package/dist/effect/contacts.js +1 -1
  14. package/dist/effect/conversations.d.ts +128 -260
  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 +64 -108
  19. package/dist/effect/email.js +2 -2
  20. package/dist/effect/generated.d.ts +7346 -8748
  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 +7 -7
  29. package/dist/effect/operations.js +1 -1
  30. package/dist/effect/organizations.d.ts +23 -41
  31. package/dist/effect/organizations.js +1 -1
  32. package/dist/effect/scheduled-messages.d.ts +43 -454
  33. package/dist/effect/scheduled-messages.js +1 -1
  34. package/dist/effect/templates.d.ts +175 -649
  35. package/dist/effect/templates.js +2 -2
  36. package/dist/effect/webhooks.d.ts +20 -21
  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-Ccqh_yxb.js → operation-C2Q4cFJL.js} +21 -3
  42. package/dist/promises/index.d.ts +4 -14
  43. package/dist/promises/index.js +1 -1
  44. package/dist/promises/types.gen.d.ts +1 -1
  45. package/dist/{promises-Dgv8UmCC.js → promises-oiy7mOyu.js} +386 -29
  46. package/dist/service-map.d.ts +26 -0
  47. package/package.json +17 -12
@@ -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,36 +321,11 @@ 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
- readonly actorTracking?: {
330
- readonly allActorIds: readonly string[];
331
- readonly activeActorIds: readonly string[];
332
- readonly actorHistory: readonly {
333
- readonly actorType: string;
334
- readonly role: string;
335
- readonly actorId: string;
336
- readonly joinedAt: string;
337
- readonly reason?: string | null | undefined;
338
- readonly leftAt?: string | null | undefined;
339
- readonly addedBy?: string | null | undefined;
340
- readonly removedBy?: string | null | undefined;
341
- }[];
342
- readonly primaryActorIds: readonly string[];
343
- } | null | undefined;
344
- readonly metrics?: {
345
- readonly messageCount: number;
346
- readonly messagesFromHuman: number;
347
- readonly totalActors: number;
348
- readonly contactCount: number;
349
- readonly channelSwitches: number;
350
- readonly channelDistribution: {
351
- readonly [x: string]: number | undefined;
352
- };
353
- } | null | undefined;
354
329
  readonly context?: {
355
330
  readonly customerData?: {
356
331
  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 | {
@@ -440,6 +415,31 @@ export declare const create: (input: {
440
415
  } | null | undefined;
441
416
  } | null | undefined;
442
417
  } | null | undefined;
418
+ readonly actorTracking?: {
419
+ readonly allActorIds: readonly string[];
420
+ readonly activeActorIds: readonly string[];
421
+ readonly actorHistory: readonly {
422
+ readonly actorType: string;
423
+ readonly role: string;
424
+ readonly actorId: string;
425
+ readonly joinedAt: string;
426
+ readonly reason?: string | null | undefined;
427
+ readonly leftAt?: string | null | undefined;
428
+ readonly addedBy?: string | null | undefined;
429
+ readonly removedBy?: string | null | undefined;
430
+ }[];
431
+ readonly primaryActorIds: readonly string[];
432
+ } | null | undefined;
433
+ readonly metrics?: {
434
+ readonly messageCount: number;
435
+ readonly messagesFromHuman: number;
436
+ readonly totalActors: number;
437
+ readonly contactCount: number;
438
+ readonly channelSwitches: number;
439
+ readonly channelDistribution: {
440
+ readonly [x: string]: number | undefined;
441
+ };
442
+ } | null | undefined;
443
443
  readonly isPrivate?: boolean | null | undefined;
444
444
  }) => import("effect/Effect").Effect<{
445
445
  readonly id: string & import("effect/Brand").Brand<"ConversationId">;
@@ -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;
@@ -604,20 +604,20 @@ export declare const getById: (input: {
604
604
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
605
605
  readonly participants: readonly {
606
606
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
607
- readonly actorType: "system" | "user" | "contact" | "sender_identity" | "agent";
607
+ readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
608
608
  readonly contact: {
609
609
  readonly id: string;
610
610
  readonly name: string;
611
611
  readonly displayName: string | null;
612
612
  readonly type: string;
613
613
  readonly identities: readonly {
614
- readonly channel: "sms" | "whatsapp" | "email";
614
+ readonly channel: "email";
615
615
  readonly identifier: string;
616
616
  readonly verified: boolean;
617
617
  }[];
618
618
  };
619
619
  }[];
620
- }, 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>;
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>;
621
621
  export declare const listMessages: ((input: {
622
622
  readonly id: string;
623
623
  readonly limit?: string | null | undefined;
@@ -632,7 +632,7 @@ export declare const listMessages: ((input: {
632
632
  readonly actorMetadata: {
633
633
  readonly [x: string]: import("./generated").JsonValue;
634
634
  } | null;
635
- readonly channel: "sms" | "whatsapp" | "email";
635
+ readonly channel: "email";
636
636
  readonly direction: "outbound" | "inbound";
637
637
  readonly content: import("./generated").JsonValue;
638
638
  readonly metadata: {
@@ -660,7 +660,7 @@ export declare const listMessages: ((input: {
660
660
  readonly displayName: string | null;
661
661
  readonly type: string;
662
662
  readonly identities: readonly {
663
- readonly channel: "sms" | "whatsapp" | "email";
663
+ readonly channel: "email";
664
664
  readonly identifier: string;
665
665
  readonly verified: boolean;
666
666
  }[];
@@ -671,7 +671,7 @@ export declare const listMessages: ((input: {
671
671
  readonly displayName: string | null;
672
672
  readonly type: string;
673
673
  readonly identities: readonly {
674
- readonly channel: "sms" | "whatsapp" | "email";
674
+ readonly channel: "email";
675
675
  readonly identifier: string;
676
676
  readonly verified: boolean;
677
677
  }[];
@@ -693,7 +693,7 @@ export declare const listMessages: ((input: {
693
693
  readonly displayName: string | null;
694
694
  readonly type: string;
695
695
  readonly identities: readonly {
696
- readonly channel: "sms" | "whatsapp" | "email";
696
+ readonly channel: "email";
697
697
  readonly identifier: string;
698
698
  readonly verified: boolean;
699
699
  }[];
@@ -703,7 +703,7 @@ export declare const listMessages: ((input: {
703
703
  readonly id: string;
704
704
  readonly messageId: string;
705
705
  readonly recipientId: string | null;
706
- readonly channel: "sms" | "whatsapp" | "email";
706
+ readonly channel: "email";
707
707
  readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
708
708
  readonly attemptCount: number;
709
709
  readonly maxAttempts: number;
@@ -760,50 +760,6 @@ export declare const listMessages: ((input: {
760
760
  readonly createdAt: string;
761
761
  readonly updatedAt: string;
762
762
  }[];
763
- readonly smsDeliveryDetails: readonly {
764
- readonly deliveryId: string;
765
- readonly fromNumber: string;
766
- readonly toNumber: string;
767
- readonly segmentCount: number;
768
- readonly encoding: string;
769
- readonly dltTemplateId: string | null;
770
- readonly dltEntityId: string | null;
771
- readonly dltContentId: string | null;
772
- readonly carrier: string | null;
773
- readonly numSegmentsReported: number | null;
774
- readonly createdAt: string;
775
- readonly updatedAt: string;
776
- }[];
777
- readonly whatsappDeliveryDetails: readonly {
778
- readonly deliveryId: string;
779
- readonly fromNumber: string;
780
- readonly toNumber: string;
781
- readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
782
- readonly templateName: string | null;
783
- readonly templateLanguage: string | null;
784
- readonly templateCategory: string | null;
785
- readonly templateParams: {
786
- readonly [x: string]: import("./generated").JsonValue;
787
- } | null;
788
- readonly mediaUrl: string | null;
789
- readonly mediaType: string | null;
790
- readonly mediaS3Key: string | null;
791
- readonly interactiveType: string | null;
792
- readonly contextMessageId: string | null;
793
- readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
794
- readonly serviceWindowId: string | null;
795
- readonly freeEntryPointId: string | null;
796
- readonly isBillable: boolean;
797
- readonly pricing: {
798
- readonly messageCost: string;
799
- readonly reason: string;
800
- readonly sentInServiceWindow: boolean;
801
- readonly sentInFreeEntryPoint: boolean;
802
- } | null;
803
- readonly recipientId: string | null;
804
- readonly createdAt: string;
805
- readonly updatedAt: string;
806
- }[];
807
763
  }[];
808
764
  readonly pagination: {
809
765
  readonly page: number;
@@ -811,7 +767,7 @@ export declare const listMessages: ((input: {
811
767
  readonly total: number;
812
768
  readonly totalPages: number;
813
769
  };
814
- }, 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>) & {
815
771
  readonly pages: (input: {
816
772
  readonly id: string;
817
773
  readonly limit?: string | null | undefined;
@@ -826,7 +782,7 @@ export declare const listMessages: ((input: {
826
782
  readonly actorMetadata: {
827
783
  readonly [x: string]: import("./generated").JsonValue;
828
784
  } | null;
829
- readonly channel: "sms" | "whatsapp" | "email";
785
+ readonly channel: "email";
830
786
  readonly direction: "outbound" | "inbound";
831
787
  readonly content: import("./generated").JsonValue;
832
788
  readonly metadata: {
@@ -854,7 +810,7 @@ export declare const listMessages: ((input: {
854
810
  readonly displayName: string | null;
855
811
  readonly type: string;
856
812
  readonly identities: readonly {
857
- readonly channel: "sms" | "whatsapp" | "email";
813
+ readonly channel: "email";
858
814
  readonly identifier: string;
859
815
  readonly verified: boolean;
860
816
  }[];
@@ -865,7 +821,7 @@ export declare const listMessages: ((input: {
865
821
  readonly displayName: string | null;
866
822
  readonly type: string;
867
823
  readonly identities: readonly {
868
- readonly channel: "sms" | "whatsapp" | "email";
824
+ readonly channel: "email";
869
825
  readonly identifier: string;
870
826
  readonly verified: boolean;
871
827
  }[];
@@ -887,7 +843,7 @@ export declare const listMessages: ((input: {
887
843
  readonly displayName: string | null;
888
844
  readonly type: string;
889
845
  readonly identities: readonly {
890
- readonly channel: "sms" | "whatsapp" | "email";
846
+ readonly channel: "email";
891
847
  readonly identifier: string;
892
848
  readonly verified: boolean;
893
849
  }[];
@@ -897,7 +853,7 @@ export declare const listMessages: ((input: {
897
853
  readonly id: string;
898
854
  readonly messageId: string;
899
855
  readonly recipientId: string | null;
900
- readonly channel: "sms" | "whatsapp" | "email";
856
+ readonly channel: "email";
901
857
  readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
902
858
  readonly attemptCount: number;
903
859
  readonly maxAttempts: number;
@@ -954,50 +910,6 @@ export declare const listMessages: ((input: {
954
910
  readonly createdAt: string;
955
911
  readonly updatedAt: string;
956
912
  }[];
957
- readonly smsDeliveryDetails: readonly {
958
- readonly deliveryId: string;
959
- readonly fromNumber: string;
960
- readonly toNumber: string;
961
- readonly segmentCount: number;
962
- readonly encoding: string;
963
- readonly dltTemplateId: string | null;
964
- readonly dltEntityId: string | null;
965
- readonly dltContentId: string | null;
966
- readonly carrier: string | null;
967
- readonly numSegmentsReported: number | null;
968
- readonly createdAt: string;
969
- readonly updatedAt: string;
970
- }[];
971
- readonly whatsappDeliveryDetails: readonly {
972
- readonly deliveryId: string;
973
- readonly fromNumber: string;
974
- readonly toNumber: string;
975
- readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
976
- readonly templateName: string | null;
977
- readonly templateLanguage: string | null;
978
- readonly templateCategory: string | null;
979
- readonly templateParams: {
980
- readonly [x: string]: import("./generated").JsonValue;
981
- } | null;
982
- readonly mediaUrl: string | null;
983
- readonly mediaType: string | null;
984
- readonly mediaS3Key: string | null;
985
- readonly interactiveType: string | null;
986
- readonly contextMessageId: string | null;
987
- readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
988
- readonly serviceWindowId: string | null;
989
- readonly freeEntryPointId: string | null;
990
- readonly isBillable: boolean;
991
- readonly pricing: {
992
- readonly messageCost: string;
993
- readonly reason: string;
994
- readonly sentInServiceWindow: boolean;
995
- readonly sentInFreeEntryPoint: boolean;
996
- } | null;
997
- readonly recipientId: string | null;
998
- readonly createdAt: string;
999
- readonly updatedAt: string;
1000
- }[];
1001
913
  }[];
1002
914
  readonly pagination: {
1003
915
  readonly page: number;
@@ -1005,7 +917,7 @@ export declare const listMessages: ((input: {
1005
917
  readonly total: number;
1006
918
  readonly totalPages: number;
1007
919
  };
1008
- }, 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>;
1009
921
  readonly items: (input: {
1010
922
  readonly id: string;
1011
923
  readonly limit?: string | null | undefined;
@@ -1019,7 +931,7 @@ export declare const listMessages: ((input: {
1019
931
  readonly actorMetadata: {
1020
932
  readonly [x: string]: import("./generated").JsonValue;
1021
933
  } | null;
1022
- readonly channel: "sms" | "whatsapp" | "email";
934
+ readonly channel: "email";
1023
935
  readonly direction: "outbound" | "inbound";
1024
936
  readonly content: import("./generated").JsonValue;
1025
937
  readonly metadata: {
@@ -1047,7 +959,7 @@ export declare const listMessages: ((input: {
1047
959
  readonly displayName: string | null;
1048
960
  readonly type: string;
1049
961
  readonly identities: readonly {
1050
- readonly channel: "sms" | "whatsapp" | "email";
962
+ readonly channel: "email";
1051
963
  readonly identifier: string;
1052
964
  readonly verified: boolean;
1053
965
  }[];
@@ -1058,7 +970,7 @@ export declare const listMessages: ((input: {
1058
970
  readonly displayName: string | null;
1059
971
  readonly type: string;
1060
972
  readonly identities: readonly {
1061
- readonly channel: "sms" | "whatsapp" | "email";
973
+ readonly channel: "email";
1062
974
  readonly identifier: string;
1063
975
  readonly verified: boolean;
1064
976
  }[];
@@ -1080,7 +992,7 @@ export declare const listMessages: ((input: {
1080
992
  readonly displayName: string | null;
1081
993
  readonly type: string;
1082
994
  readonly identities: readonly {
1083
- readonly channel: "sms" | "whatsapp" | "email";
995
+ readonly channel: "email";
1084
996
  readonly identifier: string;
1085
997
  readonly verified: boolean;
1086
998
  }[];
@@ -1090,7 +1002,7 @@ export declare const listMessages: ((input: {
1090
1002
  readonly id: string;
1091
1003
  readonly messageId: string;
1092
1004
  readonly recipientId: string | null;
1093
- readonly channel: "sms" | "whatsapp" | "email";
1005
+ readonly channel: "email";
1094
1006
  readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
1095
1007
  readonly attemptCount: number;
1096
1008
  readonly maxAttempts: number;
@@ -1147,58 +1059,12 @@ export declare const listMessages: ((input: {
1147
1059
  readonly createdAt: string;
1148
1060
  readonly updatedAt: string;
1149
1061
  }[];
1150
- readonly smsDeliveryDetails: readonly {
1151
- readonly deliveryId: string;
1152
- readonly fromNumber: string;
1153
- readonly toNumber: string;
1154
- readonly segmentCount: number;
1155
- readonly encoding: string;
1156
- readonly dltTemplateId: string | null;
1157
- readonly dltEntityId: string | null;
1158
- readonly dltContentId: string | null;
1159
- readonly carrier: string | null;
1160
- readonly numSegmentsReported: number | null;
1161
- readonly createdAt: string;
1162
- readonly updatedAt: string;
1163
- }[];
1164
- readonly whatsappDeliveryDetails: readonly {
1165
- readonly deliveryId: string;
1166
- readonly fromNumber: string;
1167
- readonly toNumber: string;
1168
- readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
1169
- readonly templateName: string | null;
1170
- readonly templateLanguage: string | null;
1171
- readonly templateCategory: string | null;
1172
- readonly templateParams: {
1173
- readonly [x: string]: import("./generated").JsonValue;
1174
- } | null;
1175
- readonly mediaUrl: string | null;
1176
- readonly mediaType: string | null;
1177
- readonly mediaS3Key: string | null;
1178
- readonly interactiveType: string | null;
1179
- readonly contextMessageId: string | null;
1180
- readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
1181
- readonly serviceWindowId: string | null;
1182
- readonly freeEntryPointId: string | null;
1183
- readonly isBillable: boolean;
1184
- readonly pricing: {
1185
- readonly messageCost: string;
1186
- readonly reason: string;
1187
- readonly sentInServiceWindow: boolean;
1188
- readonly sentInFreeEntryPoint: boolean;
1189
- } | null;
1190
- readonly recipientId: string | null;
1191
- readonly createdAt: string;
1192
- readonly updatedAt: string;
1193
- }[];
1194
- }, 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>;
1195
1063
  };
1196
1064
  export declare const update: (input: {
1197
1065
  readonly id: string;
1198
1066
  readonly priority?: number | null | undefined;
1199
1067
  readonly metadata?: {
1200
- readonly tags?: readonly string[] | null | undefined;
1201
- readonly source?: string | null | undefined;
1202
1068
  readonly customFields?: {
1203
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 | {
1204
1070
  readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
@@ -1226,46 +1092,23 @@ export declare const update: (input: {
1226
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;
1227
1093
  } | null | undefined;
1228
1094
  } | null | undefined;
1095
+ readonly source?: string | null | undefined;
1096
+ readonly tags?: readonly string[] | null | undefined;
1229
1097
  } | null | undefined;
1230
1098
  readonly description?: string | null | undefined;
1231
- readonly channels?: readonly string[] | null | undefined;
1232
1099
  readonly status?: string | null | undefined;
1100
+ readonly channels?: readonly string[] | null | undefined;
1233
1101
  readonly tags?: readonly string[] | null | undefined;
1234
1102
  readonly categories?: readonly string[] | null | undefined;
1235
1103
  readonly externalId?: string | null | undefined;
1236
1104
  readonly isTest?: boolean | null | undefined;
1237
1105
  readonly isInternal?: boolean | null | undefined;
1106
+ readonly statusReason?: string | null | undefined;
1238
1107
  readonly title?: string | null | undefined;
1239
1108
  readonly parentConversationId?: string | null | undefined;
1240
1109
  readonly primaryChannel?: string | null | undefined;
1241
- readonly statusReason?: string | null | undefined;
1242
1110
  readonly urgency?: string | null | undefined;
1243
1111
  readonly complexity?: string | null | undefined;
1244
- readonly actorTracking?: {
1245
- readonly allActorIds: readonly string[];
1246
- readonly activeActorIds: readonly string[];
1247
- readonly actorHistory: readonly {
1248
- readonly actorType: string;
1249
- readonly role: string;
1250
- readonly actorId: string;
1251
- readonly joinedAt: string;
1252
- readonly reason?: string | null | undefined;
1253
- readonly leftAt?: string | null | undefined;
1254
- readonly addedBy?: string | null | undefined;
1255
- readonly removedBy?: string | null | undefined;
1256
- }[];
1257
- readonly primaryActorIds: readonly string[];
1258
- } | null | undefined;
1259
- readonly metrics?: {
1260
- readonly messageCount: number;
1261
- readonly messagesFromHuman: number;
1262
- readonly totalActors: number;
1263
- readonly contactCount: number;
1264
- readonly channelSwitches: number;
1265
- readonly channelDistribution: {
1266
- readonly [x: string]: number | undefined;
1267
- };
1268
- } | null | undefined;
1269
1112
  readonly context?: {
1270
1113
  readonly customerData?: {
1271
1114
  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 | {
@@ -1355,6 +1198,31 @@ export declare const update: (input: {
1355
1198
  } | null | undefined;
1356
1199
  } | null | undefined;
1357
1200
  } | null | undefined;
1201
+ readonly actorTracking?: {
1202
+ readonly allActorIds: readonly string[];
1203
+ readonly activeActorIds: readonly string[];
1204
+ readonly actorHistory: readonly {
1205
+ readonly actorType: string;
1206
+ readonly role: string;
1207
+ readonly actorId: string;
1208
+ readonly joinedAt: string;
1209
+ readonly reason?: string | null | undefined;
1210
+ readonly leftAt?: string | null | undefined;
1211
+ readonly addedBy?: string | null | undefined;
1212
+ readonly removedBy?: string | null | undefined;
1213
+ }[];
1214
+ readonly primaryActorIds: readonly string[];
1215
+ } | null | undefined;
1216
+ readonly metrics?: {
1217
+ readonly messageCount: number;
1218
+ readonly messagesFromHuman: number;
1219
+ readonly totalActors: number;
1220
+ readonly contactCount: number;
1221
+ readonly channelSwitches: number;
1222
+ readonly channelDistribution: {
1223
+ readonly [x: string]: number | undefined;
1224
+ };
1225
+ } | null | undefined;
1358
1226
  readonly isPrivate?: boolean | null | undefined;
1359
1227
  }) => import("effect/Effect").Effect<{
1360
1228
  readonly id: string & import("effect/Brand").Brand<"ConversationId">;
@@ -1363,25 +1231,25 @@ export declare const update: (input: {
1363
1231
  readonly description: string | null;
1364
1232
  readonly externalId: string | null;
1365
1233
  readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1366
- readonly channels: readonly ("sms" | "whatsapp" | "email")[];
1367
- readonly primaryChannel: "sms" | "whatsapp" | "email";
1234
+ readonly channels: readonly "email"[];
1235
+ readonly primaryChannel: "email";
1368
1236
  readonly status: "archived" | "active" | "waiting" | "resolved" | "escalated";
1369
1237
  readonly statusReason: string | null;
1370
1238
  readonly priority: number;
1371
1239
  readonly urgency: "low" | "medium" | "high" | "critical";
1372
1240
  readonly complexity: "simple" | "moderate" | "complex";
1373
1241
  readonly metadata: {
1374
- readonly tags?: readonly string[] | null;
1375
- readonly source?: string | null;
1376
1242
  readonly customFields?: {
1377
1243
  readonly [x: string]: import("./generated").JsonValue;
1378
1244
  } | null;
1245
+ readonly source?: string | null;
1246
+ readonly tags?: readonly string[] | null;
1379
1247
  } | null;
1380
1248
  readonly actorTracking: {
1381
1249
  readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
1382
1250
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
1383
1251
  readonly actorHistory: readonly {
1384
- readonly actorType: "system" | "user" | "contact" | "sender_identity" | "agent";
1252
+ readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
1385
1253
  readonly role: "initiator" | "responder" | "observer";
1386
1254
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
1387
1255
  readonly joinedAt: string;
@@ -1435,7 +1303,7 @@ export declare const update: (input: {
1435
1303
  readonly createdAt: string;
1436
1304
  readonly updatedAt: string;
1437
1305
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
1438
- }, 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>;
1439
1307
  export declare const addContacts: (input: {
1440
1308
  readonly id: string;
1441
1309
  readonly contactIds: readonly string[];
@@ -1446,25 +1314,25 @@ export declare const addContacts: (input: {
1446
1314
  readonly description: string | null;
1447
1315
  readonly externalId: string | null;
1448
1316
  readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1449
- readonly channels: readonly ("sms" | "whatsapp" | "email")[];
1450
- readonly primaryChannel: "sms" | "whatsapp" | "email";
1317
+ readonly channels: readonly "email"[];
1318
+ readonly primaryChannel: "email";
1451
1319
  readonly status: "archived" | "active" | "waiting" | "resolved" | "escalated";
1452
1320
  readonly statusReason: string | null;
1453
1321
  readonly priority: number;
1454
1322
  readonly urgency: "low" | "medium" | "high" | "critical";
1455
1323
  readonly complexity: "simple" | "moderate" | "complex";
1456
1324
  readonly metadata: {
1457
- readonly tags?: readonly string[] | null;
1458
- readonly source?: string | null;
1459
1325
  readonly customFields?: {
1460
1326
  readonly [x: string]: import("./generated").JsonValue;
1461
1327
  } | null;
1328
+ readonly source?: string | null;
1329
+ readonly tags?: readonly string[] | null;
1462
1330
  } | null;
1463
1331
  readonly actorTracking: {
1464
1332
  readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
1465
1333
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
1466
1334
  readonly actorHistory: readonly {
1467
- readonly actorType: "system" | "user" | "contact" | "sender_identity" | "agent";
1335
+ readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
1468
1336
  readonly role: "initiator" | "responder" | "observer";
1469
1337
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
1470
1338
  readonly joinedAt: string;
@@ -1518,7 +1386,7 @@ export declare const addContacts: (input: {
1518
1386
  readonly createdAt: string;
1519
1387
  readonly updatedAt: string;
1520
1388
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
1521
- }, 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>;
1522
1390
  export declare const removeContacts: (input: {
1523
1391
  readonly id: string;
1524
1392
  readonly contactIds: readonly string[];
@@ -1529,25 +1397,25 @@ export declare const removeContacts: (input: {
1529
1397
  readonly description: string | null;
1530
1398
  readonly externalId: string | null;
1531
1399
  readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1532
- readonly channels: readonly ("sms" | "whatsapp" | "email")[];
1533
- readonly primaryChannel: "sms" | "whatsapp" | "email";
1400
+ readonly channels: readonly "email"[];
1401
+ readonly primaryChannel: "email";
1534
1402
  readonly status: "archived" | "active" | "waiting" | "resolved" | "escalated";
1535
1403
  readonly statusReason: string | null;
1536
1404
  readonly priority: number;
1537
1405
  readonly urgency: "low" | "medium" | "high" | "critical";
1538
1406
  readonly complexity: "simple" | "moderate" | "complex";
1539
1407
  readonly metadata: {
1540
- readonly tags?: readonly string[] | null;
1541
- readonly source?: string | null;
1542
1408
  readonly customFields?: {
1543
1409
  readonly [x: string]: import("./generated").JsonValue;
1544
1410
  } | null;
1411
+ readonly source?: string | null;
1412
+ readonly tags?: readonly string[] | null;
1545
1413
  } | null;
1546
1414
  readonly actorTracking: {
1547
1415
  readonly allActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
1548
1416
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
1549
1417
  readonly actorHistory: readonly {
1550
- readonly actorType: "system" | "user" | "contact" | "sender_identity" | "agent";
1418
+ readonly actorType: "user" | "system" | "contact" | "sender_identity" | "agent";
1551
1419
  readonly role: "initiator" | "responder" | "observer";
1552
1420
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
1553
1421
  readonly joinedAt: string;
@@ -1601,4 +1469,4 @@ export declare const removeContacts: (input: {
1601
1469
  readonly createdAt: string;
1602
1470
  readonly updatedAt: string;
1603
1471
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
1604
- }, 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>;