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
@@ -5,8 +5,8 @@ export declare const list: ((input?: {
5
5
  readonly conversationId?: string | null | undefined;
6
6
  readonly channel?: string | null | undefined;
7
7
  readonly limit?: string | null | undefined;
8
- readonly status?: string | null | undefined;
9
8
  readonly page?: string | null | undefined;
9
+ readonly status?: string | null | undefined;
10
10
  readonly startDate?: string | null | undefined;
11
11
  readonly endDate?: string | null | undefined;
12
12
  } | undefined) => import("effect/Effect").Effect<{
@@ -19,7 +19,7 @@ export declare const list: ((input?: {
19
19
  readonly actorMetadata: {
20
20
  readonly [x: string]: import("./generated").JsonValue;
21
21
  } | null;
22
- readonly channel: "sms" | "whatsapp" | "email";
22
+ readonly channel: "email";
23
23
  readonly direction: "outbound" | "inbound";
24
24
  readonly content: import("./generated").JsonValue;
25
25
  readonly metadata: {
@@ -47,7 +47,7 @@ export declare const list: ((input?: {
47
47
  readonly displayName: string | null;
48
48
  readonly type: string;
49
49
  readonly identities: readonly {
50
- readonly channel: "sms" | "whatsapp" | "email";
50
+ readonly channel: "email";
51
51
  readonly identifier: string;
52
52
  readonly verified: boolean;
53
53
  }[];
@@ -58,7 +58,7 @@ export declare const list: ((input?: {
58
58
  readonly displayName: string | null;
59
59
  readonly type: string;
60
60
  readonly identities: readonly {
61
- readonly channel: "sms" | "whatsapp" | "email";
61
+ readonly channel: "email";
62
62
  readonly identifier: string;
63
63
  readonly verified: boolean;
64
64
  }[];
@@ -80,7 +80,7 @@ export declare const list: ((input?: {
80
80
  readonly displayName: string | null;
81
81
  readonly type: string;
82
82
  readonly identities: readonly {
83
- readonly channel: "sms" | "whatsapp" | "email";
83
+ readonly channel: "email";
84
84
  readonly identifier: string;
85
85
  readonly verified: boolean;
86
86
  }[];
@@ -90,7 +90,7 @@ export declare const list: ((input?: {
90
90
  readonly id: string;
91
91
  readonly messageId: string;
92
92
  readonly recipientId: string | null;
93
- readonly channel: "sms" | "whatsapp" | "email";
93
+ readonly channel: "email";
94
94
  readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
95
95
  readonly attemptCount: number;
96
96
  readonly maxAttempts: number;
@@ -147,50 +147,6 @@ export declare const list: ((input?: {
147
147
  readonly createdAt: string;
148
148
  readonly updatedAt: string;
149
149
  }[];
150
- readonly smsDeliveryDetails: readonly {
151
- readonly deliveryId: string;
152
- readonly fromNumber: string;
153
- readonly toNumber: string;
154
- readonly segmentCount: number;
155
- readonly encoding: string;
156
- readonly dltTemplateId: string | null;
157
- readonly dltEntityId: string | null;
158
- readonly dltContentId: string | null;
159
- readonly carrier: string | null;
160
- readonly numSegmentsReported: number | null;
161
- readonly createdAt: string;
162
- readonly updatedAt: string;
163
- }[];
164
- readonly whatsappDeliveryDetails: readonly {
165
- readonly deliveryId: string;
166
- readonly fromNumber: string;
167
- readonly toNumber: string;
168
- readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
169
- readonly templateName: string | null;
170
- readonly templateLanguage: string | null;
171
- readonly templateCategory: string | null;
172
- readonly templateParams: {
173
- readonly [x: string]: import("./generated").JsonValue;
174
- } | null;
175
- readonly mediaUrl: string | null;
176
- readonly mediaType: string | null;
177
- readonly mediaS3Key: string | null;
178
- readonly interactiveType: string | null;
179
- readonly contextMessageId: string | null;
180
- readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
181
- readonly serviceWindowId: string | null;
182
- readonly freeEntryPointId: string | null;
183
- readonly isBillable: boolean;
184
- readonly pricing: {
185
- readonly messageCost: string;
186
- readonly reason: string;
187
- readonly sentInServiceWindow: boolean;
188
- readonly sentInFreeEntryPoint: boolean;
189
- } | null;
190
- readonly recipientId: string | null;
191
- readonly createdAt: string;
192
- readonly updatedAt: string;
193
- }[];
194
150
  }[];
195
151
  readonly pagination: {
196
152
  readonly page: number;
@@ -198,14 +154,14 @@ export declare const list: ((input?: {
198
154
  readonly total: number;
199
155
  readonly totalPages: number;
200
156
  };
201
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>) & {
157
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>) & {
202
158
  readonly pages: (input?: {
203
159
  readonly contactId?: string | null | undefined;
204
160
  readonly conversationId?: string | null | undefined;
205
161
  readonly channel?: string | null | undefined;
206
162
  readonly limit?: string | null | undefined;
207
- readonly status?: string | null | undefined;
208
163
  readonly page?: string | null | undefined;
164
+ readonly status?: string | null | undefined;
209
165
  readonly startDate?: string | null | undefined;
210
166
  readonly endDate?: string | null | undefined;
211
167
  } | undefined) => import("effect/Stream").Stream<{
@@ -218,7 +174,7 @@ export declare const list: ((input?: {
218
174
  readonly actorMetadata: {
219
175
  readonly [x: string]: import("./generated").JsonValue;
220
176
  } | null;
221
- readonly channel: "sms" | "whatsapp" | "email";
177
+ readonly channel: "email";
222
178
  readonly direction: "outbound" | "inbound";
223
179
  readonly content: import("./generated").JsonValue;
224
180
  readonly metadata: {
@@ -246,7 +202,7 @@ export declare const list: ((input?: {
246
202
  readonly displayName: string | null;
247
203
  readonly type: string;
248
204
  readonly identities: readonly {
249
- readonly channel: "sms" | "whatsapp" | "email";
205
+ readonly channel: "email";
250
206
  readonly identifier: string;
251
207
  readonly verified: boolean;
252
208
  }[];
@@ -257,7 +213,7 @@ export declare const list: ((input?: {
257
213
  readonly displayName: string | null;
258
214
  readonly type: string;
259
215
  readonly identities: readonly {
260
- readonly channel: "sms" | "whatsapp" | "email";
216
+ readonly channel: "email";
261
217
  readonly identifier: string;
262
218
  readonly verified: boolean;
263
219
  }[];
@@ -279,7 +235,7 @@ export declare const list: ((input?: {
279
235
  readonly displayName: string | null;
280
236
  readonly type: string;
281
237
  readonly identities: readonly {
282
- readonly channel: "sms" | "whatsapp" | "email";
238
+ readonly channel: "email";
283
239
  readonly identifier: string;
284
240
  readonly verified: boolean;
285
241
  }[];
@@ -289,7 +245,7 @@ export declare const list: ((input?: {
289
245
  readonly id: string;
290
246
  readonly messageId: string;
291
247
  readonly recipientId: string | null;
292
- readonly channel: "sms" | "whatsapp" | "email";
248
+ readonly channel: "email";
293
249
  readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
294
250
  readonly attemptCount: number;
295
251
  readonly maxAttempts: number;
@@ -346,50 +302,6 @@ export declare const list: ((input?: {
346
302
  readonly createdAt: string;
347
303
  readonly updatedAt: string;
348
304
  }[];
349
- readonly smsDeliveryDetails: readonly {
350
- readonly deliveryId: string;
351
- readonly fromNumber: string;
352
- readonly toNumber: string;
353
- readonly segmentCount: number;
354
- readonly encoding: string;
355
- readonly dltTemplateId: string | null;
356
- readonly dltEntityId: string | null;
357
- readonly dltContentId: string | null;
358
- readonly carrier: string | null;
359
- readonly numSegmentsReported: number | null;
360
- readonly createdAt: string;
361
- readonly updatedAt: string;
362
- }[];
363
- readonly whatsappDeliveryDetails: readonly {
364
- readonly deliveryId: string;
365
- readonly fromNumber: string;
366
- readonly toNumber: string;
367
- readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
368
- readonly templateName: string | null;
369
- readonly templateLanguage: string | null;
370
- readonly templateCategory: string | null;
371
- readonly templateParams: {
372
- readonly [x: string]: import("./generated").JsonValue;
373
- } | null;
374
- readonly mediaUrl: string | null;
375
- readonly mediaType: string | null;
376
- readonly mediaS3Key: string | null;
377
- readonly interactiveType: string | null;
378
- readonly contextMessageId: string | null;
379
- readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
380
- readonly serviceWindowId: string | null;
381
- readonly freeEntryPointId: string | null;
382
- readonly isBillable: boolean;
383
- readonly pricing: {
384
- readonly messageCost: string;
385
- readonly reason: string;
386
- readonly sentInServiceWindow: boolean;
387
- readonly sentInFreeEntryPoint: boolean;
388
- } | null;
389
- readonly recipientId: string | null;
390
- readonly createdAt: string;
391
- readonly updatedAt: string;
392
- }[];
393
305
  }[];
394
306
  readonly pagination: {
395
307
  readonly page: number;
@@ -397,14 +309,14 @@ export declare const list: ((input?: {
397
309
  readonly total: number;
398
310
  readonly totalPages: number;
399
311
  };
400
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
312
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
401
313
  readonly items: (input?: {
402
314
  readonly contactId?: string | null | undefined;
403
315
  readonly conversationId?: string | null | undefined;
404
316
  readonly channel?: string | null | undefined;
405
317
  readonly limit?: string | null | undefined;
406
- readonly status?: string | null | undefined;
407
318
  readonly page?: string | null | undefined;
319
+ readonly status?: string | null | undefined;
408
320
  readonly startDate?: string | null | undefined;
409
321
  readonly endDate?: string | null | undefined;
410
322
  } | undefined) => import("effect/Stream").Stream<{
@@ -416,7 +328,7 @@ export declare const list: ((input?: {
416
328
  readonly actorMetadata: {
417
329
  readonly [x: string]: import("./generated").JsonValue;
418
330
  } | null;
419
- readonly channel: "sms" | "whatsapp" | "email";
331
+ readonly channel: "email";
420
332
  readonly direction: "outbound" | "inbound";
421
333
  readonly content: import("./generated").JsonValue;
422
334
  readonly metadata: {
@@ -444,7 +356,7 @@ export declare const list: ((input?: {
444
356
  readonly displayName: string | null;
445
357
  readonly type: string;
446
358
  readonly identities: readonly {
447
- readonly channel: "sms" | "whatsapp" | "email";
359
+ readonly channel: "email";
448
360
  readonly identifier: string;
449
361
  readonly verified: boolean;
450
362
  }[];
@@ -455,7 +367,7 @@ export declare const list: ((input?: {
455
367
  readonly displayName: string | null;
456
368
  readonly type: string;
457
369
  readonly identities: readonly {
458
- readonly channel: "sms" | "whatsapp" | "email";
370
+ readonly channel: "email";
459
371
  readonly identifier: string;
460
372
  readonly verified: boolean;
461
373
  }[];
@@ -477,7 +389,7 @@ export declare const list: ((input?: {
477
389
  readonly displayName: string | null;
478
390
  readonly type: string;
479
391
  readonly identities: readonly {
480
- readonly channel: "sms" | "whatsapp" | "email";
392
+ readonly channel: "email";
481
393
  readonly identifier: string;
482
394
  readonly verified: boolean;
483
395
  }[];
@@ -487,7 +399,7 @@ export declare const list: ((input?: {
487
399
  readonly id: string;
488
400
  readonly messageId: string;
489
401
  readonly recipientId: string | null;
490
- readonly channel: "sms" | "whatsapp" | "email";
402
+ readonly channel: "email";
491
403
  readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
492
404
  readonly attemptCount: number;
493
405
  readonly maxAttempts: number;
@@ -544,51 +456,7 @@ export declare const list: ((input?: {
544
456
  readonly createdAt: string;
545
457
  readonly updatedAt: string;
546
458
  }[];
547
- readonly smsDeliveryDetails: readonly {
548
- readonly deliveryId: string;
549
- readonly fromNumber: string;
550
- readonly toNumber: string;
551
- readonly segmentCount: number;
552
- readonly encoding: string;
553
- readonly dltTemplateId: string | null;
554
- readonly dltEntityId: string | null;
555
- readonly dltContentId: string | null;
556
- readonly carrier: string | null;
557
- readonly numSegmentsReported: number | null;
558
- readonly createdAt: string;
559
- readonly updatedAt: string;
560
- }[];
561
- readonly whatsappDeliveryDetails: readonly {
562
- readonly deliveryId: string;
563
- readonly fromNumber: string;
564
- readonly toNumber: string;
565
- readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
566
- readonly templateName: string | null;
567
- readonly templateLanguage: string | null;
568
- readonly templateCategory: string | null;
569
- readonly templateParams: {
570
- readonly [x: string]: import("./generated").JsonValue;
571
- } | null;
572
- readonly mediaUrl: string | null;
573
- readonly mediaType: string | null;
574
- readonly mediaS3Key: string | null;
575
- readonly interactiveType: string | null;
576
- readonly contextMessageId: string | null;
577
- readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
578
- readonly serviceWindowId: string | null;
579
- readonly freeEntryPointId: string | null;
580
- readonly isBillable: boolean;
581
- readonly pricing: {
582
- readonly messageCost: string;
583
- readonly reason: string;
584
- readonly sentInServiceWindow: boolean;
585
- readonly sentInFreeEntryPoint: boolean;
586
- } | null;
587
- readonly recipientId: string | null;
588
- readonly createdAt: string;
589
- readonly updatedAt: string;
590
- }[];
591
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
459
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
592
460
  };
593
461
  export declare const send: (input: MessageSendInput, options?: SendOptions | undefined) => import("effect/Effect").Effect<{
594
462
  readonly id: string;
@@ -599,7 +467,7 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
599
467
  readonly actorMetadata: {
600
468
  readonly [x: string]: import("./generated").JsonValue;
601
469
  } | null;
602
- readonly channel: "sms" | "whatsapp" | "email";
470
+ readonly channel: "email";
603
471
  readonly direction: "outbound" | "inbound";
604
472
  readonly content: import("./generated").JsonValue;
605
473
  readonly metadata: {
@@ -627,7 +495,7 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
627
495
  readonly displayName: string | null;
628
496
  readonly type: string;
629
497
  readonly identities: readonly {
630
- readonly channel: "sms" | "whatsapp" | "email";
498
+ readonly channel: "email";
631
499
  readonly identifier: string;
632
500
  readonly verified: boolean;
633
501
  }[];
@@ -638,7 +506,7 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
638
506
  readonly displayName: string | null;
639
507
  readonly type: string;
640
508
  readonly identities: readonly {
641
- readonly channel: "sms" | "whatsapp" | "email";
509
+ readonly channel: "email";
642
510
  readonly identifier: string;
643
511
  readonly verified: boolean;
644
512
  }[];
@@ -660,7 +528,7 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
660
528
  readonly displayName: string | null;
661
529
  readonly type: string;
662
530
  readonly identities: readonly {
663
- readonly channel: "sms" | "whatsapp" | "email";
531
+ readonly channel: "email";
664
532
  readonly identifier: string;
665
533
  readonly verified: boolean;
666
534
  }[];
@@ -670,7 +538,7 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
670
538
  readonly id: string;
671
539
  readonly messageId: string;
672
540
  readonly recipientId: string | null;
673
- readonly channel: "sms" | "whatsapp" | "email";
541
+ readonly channel: "email";
674
542
  readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
675
543
  readonly attemptCount: number;
676
544
  readonly maxAttempts: number;
@@ -727,51 +595,7 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
727
595
  readonly createdAt: string;
728
596
  readonly updatedAt: string;
729
597
  }[];
730
- readonly smsDeliveryDetails: readonly {
731
- readonly deliveryId: string;
732
- readonly fromNumber: string;
733
- readonly toNumber: string;
734
- readonly segmentCount: number;
735
- readonly encoding: string;
736
- readonly dltTemplateId: string | null;
737
- readonly dltEntityId: string | null;
738
- readonly dltContentId: string | null;
739
- readonly carrier: string | null;
740
- readonly numSegmentsReported: number | null;
741
- readonly createdAt: string;
742
- readonly updatedAt: string;
743
- }[];
744
- readonly whatsappDeliveryDetails: readonly {
745
- readonly deliveryId: string;
746
- readonly fromNumber: string;
747
- readonly toNumber: string;
748
- readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
749
- readonly templateName: string | null;
750
- readonly templateLanguage: string | null;
751
- readonly templateCategory: string | null;
752
- readonly templateParams: {
753
- readonly [x: string]: import("./generated").JsonValue;
754
- } | null;
755
- readonly mediaUrl: string | null;
756
- readonly mediaType: string | null;
757
- readonly mediaS3Key: string | null;
758
- readonly interactiveType: string | null;
759
- readonly contextMessageId: string | null;
760
- readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
761
- readonly serviceWindowId: string | null;
762
- readonly freeEntryPointId: string | null;
763
- readonly isBillable: boolean;
764
- readonly pricing: {
765
- readonly messageCost: string;
766
- readonly reason: string;
767
- readonly sentInServiceWindow: boolean;
768
- readonly sentInFreeEntryPoint: boolean;
769
- } | null;
770
- readonly recipientId: string | null;
771
- readonly createdAt: string;
772
- readonly updatedAt: string;
773
- }[];
774
- }, import("effect/SchemaError").SchemaError | import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("./generated").WebhookEnqueueError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
598
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").BillingProviderError | import("./generated").FlagDisabledError | import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").RateLimitedError | import("./generated").WebhookEnqueueError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
775
599
  export declare const get: (input: {
776
600
  readonly id: string;
777
601
  }) => import("effect/Effect").Effect<{
@@ -783,7 +607,7 @@ export declare const get: (input: {
783
607
  readonly actorMetadata: {
784
608
  readonly [x: string]: import("./generated").JsonValue;
785
609
  } | null;
786
- readonly channel: "sms" | "whatsapp" | "email";
610
+ readonly channel: "email";
787
611
  readonly direction: "outbound" | "inbound";
788
612
  readonly content: import("./generated").JsonValue;
789
613
  readonly metadata: {
@@ -811,7 +635,7 @@ export declare const get: (input: {
811
635
  readonly displayName: string | null;
812
636
  readonly type: string;
813
637
  readonly identities: readonly {
814
- readonly channel: "sms" | "whatsapp" | "email";
638
+ readonly channel: "email";
815
639
  readonly identifier: string;
816
640
  readonly verified: boolean;
817
641
  }[];
@@ -822,7 +646,7 @@ export declare const get: (input: {
822
646
  readonly displayName: string | null;
823
647
  readonly type: string;
824
648
  readonly identities: readonly {
825
- readonly channel: "sms" | "whatsapp" | "email";
649
+ readonly channel: "email";
826
650
  readonly identifier: string;
827
651
  readonly verified: boolean;
828
652
  }[];
@@ -844,7 +668,7 @@ export declare const get: (input: {
844
668
  readonly displayName: string | null;
845
669
  readonly type: string;
846
670
  readonly identities: readonly {
847
- readonly channel: "sms" | "whatsapp" | "email";
671
+ readonly channel: "email";
848
672
  readonly identifier: string;
849
673
  readonly verified: boolean;
850
674
  }[];
@@ -854,7 +678,7 @@ export declare const get: (input: {
854
678
  readonly id: string;
855
679
  readonly messageId: string;
856
680
  readonly recipientId: string | null;
857
- readonly channel: "sms" | "whatsapp" | "email";
681
+ readonly channel: "email";
858
682
  readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
859
683
  readonly attemptCount: number;
860
684
  readonly maxAttempts: number;
@@ -911,51 +735,7 @@ export declare const get: (input: {
911
735
  readonly createdAt: string;
912
736
  readonly updatedAt: string;
913
737
  }[];
914
- readonly smsDeliveryDetails: readonly {
915
- readonly deliveryId: string;
916
- readonly fromNumber: string;
917
- readonly toNumber: string;
918
- readonly segmentCount: number;
919
- readonly encoding: string;
920
- readonly dltTemplateId: string | null;
921
- readonly dltEntityId: string | null;
922
- readonly dltContentId: string | null;
923
- readonly carrier: string | null;
924
- readonly numSegmentsReported: number | null;
925
- readonly createdAt: string;
926
- readonly updatedAt: string;
927
- }[];
928
- readonly whatsappDeliveryDetails: readonly {
929
- readonly deliveryId: string;
930
- readonly fromNumber: string;
931
- readonly toNumber: string;
932
- readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
933
- readonly templateName: string | null;
934
- readonly templateLanguage: string | null;
935
- readonly templateCategory: string | null;
936
- readonly templateParams: {
937
- readonly [x: string]: import("./generated").JsonValue;
938
- } | null;
939
- readonly mediaUrl: string | null;
940
- readonly mediaType: string | null;
941
- readonly mediaS3Key: string | null;
942
- readonly interactiveType: string | null;
943
- readonly contextMessageId: string | null;
944
- readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
945
- readonly serviceWindowId: string | null;
946
- readonly freeEntryPointId: string | null;
947
- readonly isBillable: boolean;
948
- readonly pricing: {
949
- readonly messageCost: string;
950
- readonly reason: string;
951
- readonly sentInServiceWindow: boolean;
952
- readonly sentInFreeEntryPoint: boolean;
953
- } | null;
954
- readonly recipientId: string | null;
955
- readonly createdAt: string;
956
- readonly updatedAt: string;
957
- }[];
958
- }, 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>;
738
+ }, 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>;
959
739
  export declare const getEmail: (input: {
960
740
  readonly id: string;
961
741
  readonly includeS3Urls?: string | null | undefined;
@@ -965,7 +745,7 @@ export declare const getEmail: (input: {
965
745
  readonly organizationId: string;
966
746
  readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
967
747
  readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
968
- readonly channel: "sms" | "whatsapp" | "email";
748
+ readonly channel: "email";
969
749
  readonly direction: "outbound" | "inbound";
970
750
  readonly subject: string | null;
971
751
  readonly fromEmail: string;
@@ -990,9 +770,9 @@ export declare const getEmail: (input: {
990
770
  readonly newContent: string | null;
991
771
  readonly quotedContent: string | null;
992
772
  readonly hasQuotedContent: boolean;
993
- readonly dkimVerdict: "none" | "pass" | "fail" | "softfail" | "neutral" | "policy" | "temperror" | "permerror" | null;
994
- readonly spfVerdict: "none" | "pass" | "fail" | "softfail" | "neutral" | "policy" | "temperror" | "permerror" | null;
995
- readonly dmarcVerdict: "none" | "pass" | "fail" | "softfail" | "neutral" | "policy" | "temperror" | "permerror" | null;
773
+ readonly dkimVerdict: "pass" | "fail" | "softfail" | "neutral" | "none" | "policy" | "temperror" | "permerror" | null;
774
+ readonly spfVerdict: "pass" | "fail" | "softfail" | "neutral" | "none" | "policy" | "temperror" | "permerror" | null;
775
+ readonly dmarcVerdict: "pass" | "fail" | "softfail" | "neutral" | "none" | "policy" | "temperror" | "permerror" | null;
996
776
  readonly isAutoReply: boolean;
997
777
  readonly autoReplyReason: "out-of-office" | "auto-response" | "delivery-status" | "read-receipt" | null;
998
778
  readonly listUnsubscribeUrl: string | null;
@@ -1019,20 +799,20 @@ export declare const getEmail: (input: {
1019
799
  readonly createdAt: string;
1020
800
  readonly receivedAt: string | null;
1021
801
  readonly processedAt: string | null;
1022
- }, 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>;
802
+ }, 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>;
1023
803
  export declare const remove: (input: {
1024
804
  readonly id: string;
1025
805
  }) => import("effect/Effect").Effect<{
1026
806
  readonly success: boolean;
1027
807
  readonly message: string;
1028
- }, 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>;
808
+ }, 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>;
1029
809
  export declare const getStatus: (input: {
1030
810
  readonly id: string;
1031
811
  }) => import("effect/Effect").Effect<{
1032
812
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
1033
813
  readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
1034
814
  readonly updatedAt: string;
1035
- }, 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>;
815
+ }, 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>;
1036
816
  export declare const getEvents: (input: {
1037
817
  readonly id: string;
1038
818
  }) => import("effect/Effect").Effect<readonly {
@@ -1044,4 +824,4 @@ export declare const getEvents: (input: {
1044
824
  readonly metadata?: {
1045
825
  readonly [x: string]: import("./generated").JsonValue;
1046
826
  } | null;
1047
- }[], 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>;
827
+ }[], 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>;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { i as sendMessage, n as make } from "../operation-Ccqh_yxb.js";
2
+ import { i as sendMessage, n as make } from "../operation-C2Q4cFJL.js";
3
3
  //#region src/effect/messages.ts
4
4
  var messages_exports = /* @__PURE__ */ __exportAll({
5
5
  get: () => get,
@@ -1,7 +1,7 @@
1
1
  export declare const list: (input?: {
2
2
  readonly limit?: string | null | undefined;
3
- readonly status?: string | null | undefined;
4
3
  readonly page?: string | null | undefined;
4
+ readonly status?: string | null | undefined;
5
5
  readonly kind?: string | null | undefined;
6
6
  } | undefined) => import("effect/Effect").Effect<{
7
7
  readonly items: readonly {
@@ -13,7 +13,7 @@ export declare const list: (input?: {
13
13
  readonly id: string;
14
14
  };
15
15
  readonly actor: {
16
- readonly type: "system" | "user" | "api-key";
16
+ readonly type: "user" | "api-key" | "system";
17
17
  readonly id: string;
18
18
  };
19
19
  readonly status: "pending" | "failed" | "running" | "succeeded";
@@ -32,7 +32,7 @@ export declare const list: (input?: {
32
32
  readonly limit: number;
33
33
  readonly total: number;
34
34
  };
35
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
35
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
36
36
  export declare const get: (input: {
37
37
  readonly operationId: string;
38
38
  }) => import("effect/Effect").Effect<{
@@ -44,7 +44,7 @@ export declare const get: (input: {
44
44
  readonly id: string;
45
45
  };
46
46
  readonly actor: {
47
- readonly type: "system" | "user" | "api-key";
47
+ readonly type: "user" | "api-key" | "system";
48
48
  readonly id: string;
49
49
  };
50
50
  readonly status: "pending" | "failed" | "running" | "succeeded";
@@ -57,7 +57,7 @@ export declare const get: (input: {
57
57
  readonly updatedAt: string;
58
58
  readonly startedAt: string | null;
59
59
  readonly completedAt: string | null;
60
- }, 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>;
60
+ }, 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>;
61
61
  export declare const retry: (input: {
62
62
  readonly operationId: string;
63
63
  }) => import("effect/Effect").Effect<{
@@ -70,7 +70,7 @@ export declare const retry: (input: {
70
70
  readonly id: string;
71
71
  };
72
72
  readonly actor: {
73
- readonly type: "system" | "user" | "api-key";
73
+ readonly type: "user" | "api-key" | "system";
74
74
  readonly id: string;
75
75
  };
76
76
  readonly status: "pending" | "failed" | "running" | "succeeded";
@@ -94,4 +94,4 @@ export declare const retry: (input: {
94
94
  readonly href: string;
95
95
  };
96
96
  };
97
- }, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
97
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-Ccqh_yxb.js";
2
+ import { n as make } from "../operation-C2Q4cFJL.js";
3
3
  //#region src/effect/operations.ts
4
4
  var operations_exports = /* @__PURE__ */ __exportAll({
5
5
  get: () => get,