samva 0.13.0 → 0.14.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 (73) hide show
  1. package/AGENTS.md +9 -0
  2. package/README.md +51 -6
  3. package/dist/{categories-Bcwq5jPV.js → categories-BGUBFdH9.js} +9 -1
  4. package/dist/client/sdk.gen.d.ts +105 -18
  5. package/dist/client/types.gen.d.ts +786 -118
  6. package/dist/{client-DYPNDvVU.js → client-CZjhOKPM.js} +694 -122
  7. package/dist/effect/analytics.d.ts +6 -6
  8. package/dist/effect/analytics.js +1 -1
  9. package/dist/effect/api-keys.d.ts +20 -20
  10. package/dist/effect/api-keys.js +1 -1
  11. package/dist/effect/attachments.js +1 -1
  12. package/dist/effect/brands.js +2 -2
  13. package/dist/effect/campaigns.d.ts +12 -12
  14. package/dist/effect/campaigns.js +1 -1
  15. package/dist/effect/categories.js +1 -1
  16. package/dist/effect/client.js +1 -1
  17. package/dist/effect/contact-groups.d.ts +9 -9
  18. package/dist/effect/contact-groups.js +1 -1
  19. package/dist/effect/contacts.d.ts +126 -73
  20. package/dist/effect/contacts.js +1 -1
  21. package/dist/effect/conversations.d.ts +20 -20
  22. package/dist/effect/conversations.js +1 -1
  23. package/dist/effect/custom-fields.d.ts +1 -1
  24. package/dist/effect/custom-fields.js +1 -1
  25. package/dist/effect/email.d.ts +26 -26
  26. package/dist/effect/email.js +2 -2
  27. package/dist/effect/extension-installations.d.ts +3 -3
  28. package/dist/effect/extension-installations.js +1 -1
  29. package/dist/effect/extensions.d.ts +3 -3
  30. package/dist/effect/extensions.js +1 -1
  31. package/dist/effect/feedback.d.ts +1 -1
  32. package/dist/effect/feedback.js +2 -2
  33. package/dist/effect/generated-metadata.d.ts +8 -0
  34. package/dist/effect/generated.d.ts +6184 -1243
  35. package/dist/effect/index.d.ts +2 -1
  36. package/dist/effect/index.js +6 -5
  37. package/dist/effect/internal/client.d.ts +2 -2
  38. package/dist/effect/internal/operation.d.ts +9 -9
  39. package/dist/effect/mailboxes.d.ts +1726 -109
  40. package/dist/effect/mailboxes.js +3 -3
  41. package/dist/effect/media.d.ts +1 -1
  42. package/dist/effect/media.js +1 -1
  43. package/dist/effect/messages.d.ts +19 -17
  44. package/dist/effect/messages.js +1 -1
  45. package/dist/effect/namespaces.js +1 -1
  46. package/dist/effect/operations.d.ts +6 -6
  47. package/dist/effect/operations.js +1 -1
  48. package/dist/effect/organizations.d.ts +30 -0
  49. package/dist/effect/organizations.js +4 -2
  50. package/dist/effect/retry.js +1 -1
  51. package/dist/effect/scheduled-messages.d.ts +6 -6
  52. package/dist/effect/scheduled-messages.js +1 -1
  53. package/dist/effect/subscriptions.d.ts +15 -0
  54. package/dist/effect/subscriptions.js +9 -0
  55. package/dist/effect/templates.d.ts +52 -14
  56. package/dist/effect/templates.js +5 -3
  57. package/dist/effect/unsubscribe-groups.d.ts +1 -1
  58. package/dist/effect/unsubscribe-groups.js +1 -1
  59. package/dist/effect/webhooks.d.ts +15 -15
  60. package/dist/effect/webhooks.js +2 -2
  61. package/dist/index.js +4 -4
  62. package/dist/{inline-attachments-B56eS0MF.js → inline-attachments-BrNnSMF2.js} +2 -2
  63. package/dist/{mailbox-events-CsbF35vH.js → mailbox-events-VKR4f3qq.js} +6 -4
  64. package/dist/mailbox-events.d.ts +1 -1
  65. package/dist/{mailboxes-D3Kx7elM.js → mailboxes-DT02zP7q.js} +13 -5
  66. package/dist/{operation-B_Ty1LG-.js → operation-g8nAzmIM.js} +29 -3
  67. package/dist/promises/errors.gen.d.ts +26 -2
  68. package/dist/promises/index.d.ts +6 -4
  69. package/dist/promises/index.js +4 -4
  70. package/dist/promises/types.gen.d.ts +1 -1
  71. package/dist/{promises-D9FJyU0q.js → promises-BFRKhpSS.js} +941 -38
  72. package/dist/service-map.d.ts +35 -0
  73. package/package.json +7 -2
@@ -2,7 +2,10 @@ export declare const list: ((input?: {
2
2
  readonly limit?: string | null | undefined;
3
3
  readonly cursor?: string | null | undefined;
4
4
  readonly search?: string | null | undefined;
5
- readonly status?: string | null | undefined;
5
+ readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
6
+ readonly fields?: string | null | undefined;
7
+ readonly customField?: string | null | undefined;
8
+ readonly customFieldValue?: string | null | undefined;
6
9
  readonly after?: string | null | undefined;
7
10
  readonly before?: string | null | undefined;
8
11
  } | undefined) => import("effect/Effect").Effect<{
@@ -19,6 +22,9 @@ export declare const list: ((input?: {
19
22
  readonly name: string;
20
23
  readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
21
24
  }[];
25
+ readonly customFields?: {
26
+ readonly [x: string]: string | number | boolean | null;
27
+ } | null;
22
28
  readonly lastActiveAt: string | null;
23
29
  readonly createdAt: string;
24
30
  }[];
@@ -28,7 +34,10 @@ export declare const list: ((input?: {
28
34
  readonly limit?: string | null | undefined;
29
35
  readonly cursor?: string | null | undefined;
30
36
  readonly search?: string | null | undefined;
31
- readonly status?: string | null | undefined;
37
+ readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
38
+ readonly fields?: string | null | undefined;
39
+ readonly customField?: string | null | undefined;
40
+ readonly customFieldValue?: string | null | undefined;
32
41
  readonly after?: string | null | undefined;
33
42
  readonly before?: string | null | undefined;
34
43
  } | undefined) => import("effect/Stream").Stream<{
@@ -45,6 +54,9 @@ export declare const list: ((input?: {
45
54
  readonly name: string;
46
55
  readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
47
56
  }[];
57
+ readonly customFields?: {
58
+ readonly [x: string]: string | number | boolean | null;
59
+ } | null;
48
60
  readonly lastActiveAt: string | null;
49
61
  readonly createdAt: string;
50
62
  }[];
@@ -54,7 +66,10 @@ export declare const list: ((input?: {
54
66
  readonly limit?: string | null | undefined;
55
67
  readonly cursor?: string | null | undefined;
56
68
  readonly search?: string | null | undefined;
57
- readonly status?: string | null | undefined;
69
+ readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
70
+ readonly fields?: string | null | undefined;
71
+ readonly customField?: string | null | undefined;
72
+ readonly customFieldValue?: string | null | undefined;
58
73
  readonly after?: string | null | undefined;
59
74
  readonly before?: string | null | undefined;
60
75
  } | undefined) => import("effect/Stream").Stream<{
@@ -70,6 +85,9 @@ export declare const list: ((input?: {
70
85
  readonly name: string;
71
86
  readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
72
87
  }[];
88
+ readonly customFields?: {
89
+ readonly [x: string]: string | number | boolean | null;
90
+ } | null;
73
91
  readonly lastActiveAt: string | null;
74
92
  readonly createdAt: string;
75
93
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
@@ -79,7 +97,7 @@ export declare const create: (input: {
79
97
  readonly displayName?: string | null | undefined;
80
98
  readonly avatar?: string | null | undefined;
81
99
  readonly identities?: readonly {
82
- readonly channel: string;
100
+ readonly channel: "email";
83
101
  readonly identifier: string;
84
102
  readonly verified?: boolean | null | undefined;
85
103
  }[] | null | undefined;
@@ -97,10 +115,10 @@ export declare const create: (input: {
97
115
  readonly customFields?: {
98
116
  readonly [x: string]: string | number | boolean | null | undefined;
99
117
  } | null | undefined;
100
- readonly source?: string | null | undefined;
118
+ readonly source?: "api" | "form" | "import" | "manual" | null | undefined;
101
119
  } | null | undefined;
102
120
  readonly preferences?: {
103
- readonly preferredChannels?: readonly string[] | null | undefined;
121
+ readonly preferredChannels?: readonly "email"[] | null | undefined;
104
122
  readonly language?: string | null | undefined;
105
123
  readonly timezone?: string | null | undefined;
106
124
  readonly notifications?: {
@@ -112,7 +130,7 @@ export declare const create: (input: {
112
130
  } | null | undefined;
113
131
  } | null | undefined;
114
132
  readonly tags?: readonly string[] | null | undefined;
115
- readonly status?: string | null | undefined;
133
+ readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
116
134
  readonly statusReason?: string | null | undefined;
117
135
  readonly externalId?: string | null | undefined;
118
136
  readonly metadata?: {
@@ -244,60 +262,95 @@ export declare const find: (input?: {
244
262
  readonly createdAt: string;
245
263
  readonly updatedAt: string;
246
264
  } | null, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
247
- export declare const findOrCreate: (input?: {
248
- readonly email?: string | null | undefined;
249
- readonly phone?: string | null | undefined;
250
- readonly externalId?: string | null | undefined;
251
- readonly name?: string | null | undefined;
252
- readonly displayName?: string | null | undefined;
253
- } | undefined) => import("effect/Effect").Effect<{
254
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
255
- readonly name: string;
256
- readonly displayName: string | null;
257
- readonly avatar: string | null;
258
- readonly status: "active" | "archived" | "blocked" | "paused";
259
- readonly statusReason: string | null;
260
- readonly externalId: string | null;
261
- readonly identities: readonly {
262
- readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
263
- readonly channel: "email";
264
- readonly identifier: string;
265
- readonly verified: boolean;
266
- }[];
267
- readonly profile: {
268
- readonly firstName?: string | null;
269
- readonly lastName?: string | null;
270
- readonly company?: string | null;
271
- readonly jobTitle?: string | null;
272
- readonly location?: {
273
- readonly country: string;
274
- readonly state: string;
275
- readonly city: string;
276
- readonly timezone: string;
277
- } | null;
278
- readonly customFields?: {
279
- readonly [x: string]: string | number | boolean | null;
265
+ export declare const findOrCreate: (input: {
266
+ readonly lookup: {
267
+ readonly type: "email";
268
+ readonly value: string;
269
+ } | {
270
+ readonly type: "phone";
271
+ readonly value: string;
272
+ } | {
273
+ readonly type: "externalId";
274
+ readonly value: string;
275
+ };
276
+ readonly create?: {
277
+ readonly name?: string | null | undefined;
278
+ readonly displayName?: string | null | undefined;
279
+ readonly avatar?: string | null | undefined;
280
+ readonly identities?: readonly {
281
+ readonly channel: "email";
282
+ readonly identifier: string;
283
+ readonly verified?: boolean | null | undefined;
284
+ }[] | null | undefined;
285
+ readonly profile?: {
286
+ readonly firstName?: string | null | undefined;
287
+ readonly lastName?: string | null | undefined;
288
+ readonly company?: string | null | undefined;
289
+ readonly jobTitle?: string | null | undefined;
290
+ readonly location?: {
291
+ readonly country: string;
292
+ readonly state: string;
293
+ readonly city: string;
294
+ readonly timezone: string;
295
+ } | null | undefined;
296
+ readonly customFields?: {
297
+ readonly [x: string]: string | number | boolean | null | undefined;
298
+ } | null | undefined;
299
+ readonly source?: "api" | "form" | "import" | "manual" | null | undefined;
300
+ } | null | undefined;
301
+ readonly externalId?: string | null | undefined;
302
+ } | null | undefined;
303
+ }) => import("effect/Effect").Effect<{
304
+ readonly contact: {
305
+ readonly id: string & import("effect/Brand").Brand<"ContactId">;
306
+ readonly name: string;
307
+ readonly displayName: string | null;
308
+ readonly avatar: string | null;
309
+ readonly status: "active" | "archived" | "blocked" | "paused";
310
+ readonly statusReason: string | null;
311
+ readonly externalId: string | null;
312
+ readonly identities: readonly {
313
+ readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
314
+ readonly channel: "email";
315
+ readonly identifier: string;
316
+ readonly verified: boolean;
317
+ }[];
318
+ readonly profile: {
319
+ readonly firstName?: string | null;
320
+ readonly lastName?: string | null;
321
+ readonly company?: string | null;
322
+ readonly jobTitle?: string | null;
323
+ readonly location?: {
324
+ readonly country: string;
325
+ readonly state: string;
326
+ readonly city: string;
327
+ readonly timezone: string;
328
+ } | null;
329
+ readonly customFields?: {
330
+ readonly [x: string]: string | number | boolean | null;
331
+ } | null;
332
+ readonly source?: "api" | "form" | "import" | "manual" | null;
280
333
  } | null;
281
- readonly source?: "api" | "form" | "import" | "manual" | null;
282
- } | null;
283
- readonly preferences: {
284
- readonly preferredChannels?: readonly "email"[] | null;
285
- readonly language?: string | null;
286
- readonly timezone?: string | null;
287
- readonly notifications?: {
288
- readonly email?: boolean | null;
289
- readonly quiet_hours?: {
290
- readonly start: string;
291
- readonly end: string;
334
+ readonly preferences: {
335
+ readonly preferredChannels?: readonly "email"[] | null;
336
+ readonly language?: string | null;
337
+ readonly timezone?: string | null;
338
+ readonly notifications?: {
339
+ readonly email?: boolean | null;
340
+ readonly quiet_hours?: {
341
+ readonly start: string;
342
+ readonly end: string;
343
+ } | null;
292
344
  } | null;
293
345
  } | null;
294
- } | null;
295
- readonly tags: readonly string[];
296
- readonly metadata: {
297
- readonly [x: string]: import("./generated").JsonValue;
298
- } | null;
299
- readonly createdAt: string;
300
- readonly updatedAt: string;
346
+ readonly tags: readonly string[];
347
+ readonly metadata: {
348
+ readonly [x: string]: import("./generated").JsonValue;
349
+ } | null;
350
+ readonly createdAt: string;
351
+ readonly updatedAt: string;
352
+ };
353
+ readonly created: boolean;
301
354
  }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
302
355
  export declare const get: (input: {
303
356
  readonly id: string;
@@ -376,7 +429,7 @@ export declare const update: (input: {
376
429
  } | null | undefined;
377
430
  } | null | undefined;
378
431
  readonly preferences?: {
379
- readonly preferredChannels?: readonly string[] | null | undefined;
432
+ readonly preferredChannels?: readonly "email"[] | null | undefined;
380
433
  readonly language?: string | null | undefined;
381
434
  readonly timezone?: string | null | undefined;
382
435
  readonly notifications?: {
@@ -387,7 +440,7 @@ export declare const update: (input: {
387
440
  } | null | undefined;
388
441
  } | null | undefined;
389
442
  } | null | undefined;
390
- readonly status?: string | null | undefined;
443
+ readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
391
444
  readonly statusReason?: string | null | undefined;
392
445
  readonly externalId?: string | null | undefined;
393
446
  readonly metadata?: {
@@ -468,7 +521,7 @@ export declare const update: (input: {
468
521
  }, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
469
522
  export declare const addIdentity: (input: {
470
523
  readonly id: string;
471
- readonly channel: string;
524
+ readonly channel: "email";
472
525
  readonly identifier: string;
473
526
  readonly verified?: boolean | null | undefined;
474
527
  }) => import("effect/Effect").Effect<{
@@ -694,7 +747,7 @@ export declare const bulkImport: (input: {
694
747
  readonly displayName?: string | null | undefined;
695
748
  readonly avatar?: string | null | undefined;
696
749
  readonly identities?: readonly {
697
- readonly channel: string;
750
+ readonly channel: "email";
698
751
  readonly identifier: string;
699
752
  readonly verified?: boolean | null | undefined;
700
753
  }[] | null | undefined;
@@ -712,10 +765,10 @@ export declare const bulkImport: (input: {
712
765
  readonly customFields?: {
713
766
  readonly [x: string]: string | number | boolean | null | undefined;
714
767
  } | null | undefined;
715
- readonly source?: string | null | undefined;
768
+ readonly source?: "api" | "form" | "import" | "manual" | null | undefined;
716
769
  } | null | undefined;
717
770
  readonly preferences?: {
718
- readonly preferredChannels?: readonly string[] | null | undefined;
771
+ readonly preferredChannels?: readonly "email"[] | null | undefined;
719
772
  readonly language?: string | null | undefined;
720
773
  readonly timezone?: string | null | undefined;
721
774
  readonly notifications?: {
@@ -727,7 +780,7 @@ export declare const bulkImport: (input: {
727
780
  } | null | undefined;
728
781
  } | null | undefined;
729
782
  readonly tags?: readonly string[] | null | undefined;
730
- readonly status?: string | null | undefined;
783
+ readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
731
784
  readonly statusReason?: string | null | undefined;
732
785
  readonly externalId?: string | null | undefined;
733
786
  readonly metadata?: {
@@ -756,7 +809,7 @@ export declare const bulkImport: (input: {
756
809
  } | null | undefined;
757
810
  } | null | undefined;
758
811
  }[];
759
- readonly onConflict?: string | null | undefined;
812
+ readonly onConflict?: "skip" | "update" | null | undefined;
760
813
  }) => import("effect/Effect").Effect<{
761
814
  readonly total: number;
762
815
  readonly created: number;
@@ -778,7 +831,7 @@ export declare const bulkDelete: (input: {
778
831
  }, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
779
832
  export declare const bulkUpdateTags: (input: {
780
833
  readonly ids: readonly string[];
781
- readonly operation: string;
834
+ readonly operation: "add" | "remove" | "set";
782
835
  readonly tags: readonly string[];
783
836
  }) => import("effect/Effect").Effect<{
784
837
  readonly updated: number;
@@ -786,16 +839,16 @@ export declare const bulkUpdateTags: (input: {
786
839
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
787
840
  export declare const bulkUpdateStatus: (input: {
788
841
  readonly ids: readonly string[];
789
- readonly status: string;
842
+ readonly status: "active" | "archived" | "blocked" | "paused";
790
843
  }) => import("effect/Effect").Effect<{
791
844
  readonly updated: number;
792
845
  readonly failed: number;
793
846
  }, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
794
847
  declare const exportContacts: (input?: {
795
848
  readonly ids?: readonly string[] | null | undefined;
796
- readonly format?: string | null | undefined;
849
+ readonly format?: "csv" | "json" | null | undefined;
797
850
  readonly filters?: {
798
- readonly status?: string | null | undefined;
851
+ readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
799
852
  readonly tags?: readonly string[] | null | undefined;
800
853
  } | null | undefined;
801
854
  readonly fields?: readonly string[] | null | undefined;
@@ -809,7 +862,7 @@ export declare const getActivityTimeline: ((input: {
809
862
  readonly id: string;
810
863
  readonly limit?: string | null | undefined;
811
864
  readonly cursor?: string | null | undefined;
812
- readonly channel?: string | null | undefined;
865
+ readonly channel?: "email" | null | undefined;
813
866
  }) => import("effect/Effect").Effect<{
814
867
  readonly items: readonly {
815
868
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
@@ -827,7 +880,7 @@ export declare const getActivityTimeline: ((input: {
827
880
  readonly id: string;
828
881
  readonly limit?: string | null | undefined;
829
882
  readonly cursor?: string | null | undefined;
830
- readonly channel?: string | null | undefined;
883
+ readonly channel?: "email" | null | undefined;
831
884
  }) => import("effect/Stream").Stream<{
832
885
  readonly items: readonly {
833
886
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
@@ -845,7 +898,7 @@ export declare const getActivityTimeline: ((input: {
845
898
  readonly id: string;
846
899
  readonly limit?: string | null | undefined;
847
900
  readonly cursor?: string | null | undefined;
848
- readonly channel?: string | null | undefined;
901
+ readonly channel?: "email" | null | undefined;
849
902
  }) => import("effect/Stream").Stream<{
850
903
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
851
904
  readonly channel: string;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-B_Ty1LG-.js";
2
+ import { n as make } from "../operation-g8nAzmIM.js";
3
3
  //#region src/effect/contacts.ts
4
4
  var contacts_exports = /* @__PURE__ */ __exportAll({
5
5
  addIdentity: () => addIdentity,
@@ -1,8 +1,8 @@
1
1
  export declare const list: ((input?: {
2
2
  readonly limit?: string | null | undefined;
3
3
  readonly cursor?: string | null | undefined;
4
- readonly status?: string | null | undefined;
5
- readonly channel?: string | null | undefined;
4
+ readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
5
+ readonly channel?: "email" | null | undefined;
6
6
  readonly contactId?: string | null | undefined;
7
7
  readonly after?: string | null | undefined;
8
8
  readonly before?: string | null | undefined;
@@ -27,8 +27,8 @@ export declare const list: ((input?: {
27
27
  readonly pages: (input?: {
28
28
  readonly limit?: string | null | undefined;
29
29
  readonly cursor?: string | null | undefined;
30
- readonly status?: string | null | undefined;
31
- readonly channel?: string | null | undefined;
30
+ readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
31
+ readonly channel?: "email" | null | undefined;
32
32
  readonly contactId?: string | null | undefined;
33
33
  readonly after?: string | null | undefined;
34
34
  readonly before?: string | null | undefined;
@@ -53,8 +53,8 @@ export declare const list: ((input?: {
53
53
  readonly items: (input?: {
54
54
  readonly limit?: string | null | undefined;
55
55
  readonly cursor?: string | null | undefined;
56
- readonly status?: string | null | undefined;
57
- readonly channel?: string | null | undefined;
56
+ readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
57
+ readonly channel?: "email" | null | undefined;
58
58
  readonly contactId?: string | null | undefined;
59
59
  readonly after?: string | null | undefined;
60
60
  readonly before?: string | null | undefined;
@@ -79,13 +79,13 @@ export declare const create: (input: {
79
79
  readonly description?: string | null | undefined;
80
80
  readonly externalId?: string | null | undefined;
81
81
  readonly parentConversationId?: string | null | undefined;
82
- readonly channels: readonly string[];
83
- readonly primaryChannel: string;
84
- readonly status?: string | null | undefined;
82
+ readonly channels: readonly "email"[];
83
+ readonly primaryChannel: "email";
84
+ readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
85
85
  readonly statusReason?: string | null | undefined;
86
86
  readonly priority?: number | null | undefined;
87
- readonly urgency?: string | null | undefined;
88
- readonly complexity?: string | null | undefined;
87
+ readonly urgency?: "critical" | "high" | "low" | "medium" | null | undefined;
88
+ readonly complexity?: "complex" | "moderate" | "simple" | null | undefined;
89
89
  readonly metadata?: {
90
90
  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 | {
91
91
  readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
@@ -342,7 +342,7 @@ export declare const listMessages: ((input: {
342
342
  readonly from: string | null;
343
343
  readonly to: readonly string[];
344
344
  readonly subject: string | null;
345
- readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
345
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
346
346
  readonly createdAt: string;
347
347
  }[];
348
348
  readonly nextCursor: string | null;
@@ -362,7 +362,7 @@ export declare const listMessages: ((input: {
362
362
  readonly from: string | null;
363
363
  readonly to: readonly string[];
364
364
  readonly subject: string | null;
365
- readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
365
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
366
366
  readonly createdAt: string;
367
367
  }[];
368
368
  readonly nextCursor: string | null;
@@ -381,7 +381,7 @@ export declare const listMessages: ((input: {
381
381
  readonly from: string | null;
382
382
  readonly to: readonly string[];
383
383
  readonly subject: string | null;
384
- readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
384
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
385
385
  readonly createdAt: string;
386
386
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
387
387
  };
@@ -391,12 +391,12 @@ export declare const update: (input: {
391
391
  readonly description?: string | null | undefined;
392
392
  readonly externalId?: string | null | undefined;
393
393
  readonly parentConversationId?: string | null | undefined;
394
- readonly primaryChannel?: string | null | undefined;
395
- readonly status?: string | null | undefined;
394
+ readonly primaryChannel?: "email" | null | undefined;
395
+ readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
396
396
  readonly statusReason?: string | null | undefined;
397
397
  readonly priority?: number | null | undefined;
398
- readonly urgency?: string | null | undefined;
399
- readonly complexity?: string | null | undefined;
398
+ readonly urgency?: "critical" | "high" | "low" | "medium" | null | undefined;
399
+ readonly complexity?: "complex" | "moderate" | "simple" | null | undefined;
400
400
  readonly context?: {
401
401
  readonly customerData?: {
402
402
  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 | {
@@ -825,7 +825,7 @@ export declare const removeCategories: (input: {
825
825
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
826
826
  export declare const addChannels: (input: {
827
827
  readonly id: string;
828
- readonly channels: readonly string[];
828
+ readonly channels: readonly "email"[];
829
829
  }) => import("effect/Effect").Effect<{
830
830
  readonly id: string & import("effect/Brand").Brand<"ConversationId">;
831
831
  readonly title: string | null;
@@ -887,7 +887,7 @@ export declare const addChannels: (input: {
887
887
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
888
888
  export declare const removeChannels: (input: {
889
889
  readonly id: string;
890
- readonly channels: readonly string[];
890
+ readonly channels: readonly "email"[];
891
891
  }) => import("effect/Effect").Effect<{
892
892
  readonly id: string & import("effect/Brand").Brand<"ConversationId">;
893
893
  readonly title: string | null;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-B_Ty1LG-.js";
2
+ import { n as make } from "../operation-g8nAzmIM.js";
3
3
  //#region src/effect/conversations.ts
4
4
  var conversations_exports = /* @__PURE__ */ __exportAll({
5
5
  addCategories: () => addCategories,
@@ -16,7 +16,7 @@ export declare const list: (_?: never) => import("effect/Effect").Effect<{
16
16
  export declare const create: (input: {
17
17
  readonly key: string;
18
18
  readonly label: string;
19
- readonly type: string;
19
+ readonly type: "boolean" | "date" | "number" | "select" | "text";
20
20
  readonly options?: readonly string[] | null | undefined;
21
21
  readonly defaultValue?: string | null | undefined;
22
22
  readonly isRequired?: boolean | null | undefined;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-B_Ty1LG-.js";
2
+ import { n as make } from "../operation-g8nAzmIM.js";
3
3
  //#region src/effect/custom-fields.ts
4
4
  var custom_fields_exports = /* @__PURE__ */ __exportAll({
5
5
  create: () => create,