samva 0.3.0 → 0.4.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 (49) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +5 -1
  3. package/dist/client/sdk.gen.d.ts +167 -184
  4. package/dist/client/types.gen.d.ts +1362 -662
  5. package/dist/{client-BOghX8fr.js → client-BmZK_uCt.js} +1797 -935
  6. package/dist/client-attribution-BslSOa_8.js +9 -0
  7. package/dist/client-attribution.d.ts +2 -0
  8. package/dist/effect/api-keys.d.ts +51 -51
  9. package/dist/effect/api-keys.js +1 -1
  10. package/dist/effect/campaigns.d.ts +253 -219
  11. package/dist/effect/campaigns.js +1 -1
  12. package/dist/effect/categories.d.ts +6 -6
  13. package/dist/effect/client.js +1 -1
  14. package/dist/effect/contacts.d.ts +225 -225
  15. package/dist/effect/contacts.js +1 -1
  16. package/dist/effect/conversations.d.ts +293 -293
  17. package/dist/effect/conversations.js +1 -1
  18. package/dist/effect/design.d.ts +76 -76
  19. package/dist/effect/design.js +1 -1
  20. package/dist/effect/email.d.ts +225 -213
  21. package/dist/effect/email.js +2 -2
  22. package/dist/effect/generated.d.ts +12174 -11888
  23. package/dist/effect/index.js +1 -1
  24. package/dist/effect/internal/client.d.ts +1 -1
  25. package/dist/effect/internal/operation.d.ts +20 -19
  26. package/dist/effect/media.d.ts +9 -9
  27. package/dist/effect/media.js +1 -1
  28. package/dist/effect/messages.d.ts +64 -61
  29. package/dist/effect/messages.js +1 -1
  30. package/dist/effect/operations.d.ts +17 -17
  31. package/dist/effect/operations.js +1 -1
  32. package/dist/effect/organizations.d.ts +162 -162
  33. package/dist/effect/organizations.js +1 -1
  34. package/dist/effect/runtime.d.ts +0 -2
  35. package/dist/effect/scheduled-messages.d.ts +290 -276
  36. package/dist/effect/scheduled-messages.js +1 -1
  37. package/dist/effect/templates.d.ts +1371 -1554
  38. package/dist/effect/templates.js +40 -30
  39. package/dist/effect/webhooks.d.ts +47 -47
  40. package/dist/effect/webhooks.js +2 -2
  41. package/dist/index.js +1 -1
  42. package/dist/{normalize-BKFjbR9t.js → normalize-BiIJnycv.js} +2 -3
  43. package/dist/{operation-C2Q4cFJL.js → operation-B1knNlxk.js} +65 -38
  44. package/dist/promises/index.d.ts +10 -8
  45. package/dist/promises/index.js +1 -1
  46. package/dist/promises/types.gen.d.ts +1 -1
  47. package/dist/{promises-oiy7mOyu.js → promises-n1opem5V.js} +293 -262
  48. package/dist/service-map.d.ts +70 -44
  49. package/package.json +13 -14
@@ -1,12 +1,13 @@
1
1
  import { type MessageSendInput, type SendOptions } from "./internal/operation";
2
2
  export type { MessageSendInput, SendOptions };
3
3
  export declare const list: ((input?: {
4
- readonly contactId?: string | null | undefined;
5
- readonly conversationId?: string | null | undefined;
6
- readonly channel?: string | null | undefined;
7
- readonly limit?: string | null | undefined;
8
4
  readonly page?: string | null | undefined;
5
+ readonly limit?: string | null | undefined;
6
+ readonly channel?: string | null | undefined;
7
+ readonly direction?: string | null | undefined;
9
8
  readonly status?: string | null | undefined;
9
+ readonly conversationId?: string | null | undefined;
10
+ readonly contactId?: string | null | undefined;
10
11
  readonly startDate?: string | null | undefined;
11
12
  readonly endDate?: string | null | undefined;
12
13
  } | undefined) => import("effect/Effect").Effect<{
@@ -20,12 +21,12 @@ export declare const list: ((input?: {
20
21
  readonly [x: string]: import("./generated").JsonValue;
21
22
  } | null;
22
23
  readonly channel: "email";
23
- readonly direction: "outbound" | "inbound";
24
+ readonly direction: "inbound" | "outbound";
24
25
  readonly content: import("./generated").JsonValue;
25
26
  readonly metadata: {
26
27
  readonly [x: string]: import("./generated").JsonValue;
27
28
  } | null;
28
- readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
29
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
29
30
  readonly scheduledAt: string | null;
30
31
  readonly tags: readonly string[];
31
32
  readonly categories: readonly string[];
@@ -69,9 +70,9 @@ export declare const list: ((input?: {
69
70
  readonly actorId: string | null;
70
71
  readonly contactId: string | null;
71
72
  readonly identityId: string | null;
72
- readonly kind: "to" | "cc" | "bcc";
73
+ readonly kind: "bcc" | "cc" | "to";
73
74
  readonly address: string;
74
- readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
75
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
75
76
  readonly createdAt: string;
76
77
  readonly updatedAt: string;
77
78
  readonly contact: {
@@ -91,7 +92,7 @@ export declare const list: ((input?: {
91
92
  readonly messageId: string;
92
93
  readonly recipientId: string | null;
93
94
  readonly channel: "email";
94
- readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
95
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
95
96
  readonly attemptCount: number;
96
97
  readonly maxAttempts: number;
97
98
  readonly queuedAt: string | null;
@@ -138,7 +139,7 @@ export declare const list: ((input?: {
138
139
  readonly spfVerdict: string | null;
139
140
  readonly dmarcVerdict: string | null;
140
141
  readonly isAutoReply: boolean;
141
- readonly autoReplyReason: "out-of-office" | "auto-response" | "delivery-status" | "read-receipt" | null;
142
+ readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
142
143
  readonly priority: string | null;
143
144
  readonly parsingErrors: readonly string[] | null;
144
145
  readonly parsingDuration: number | null;
@@ -154,14 +155,15 @@ export declare const list: ((input?: {
154
155
  readonly total: number;
155
156
  readonly totalPages: number;
156
157
  };
157
- }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>) & {
158
+ }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
158
159
  readonly pages: (input?: {
159
- readonly contactId?: string | null | undefined;
160
- readonly conversationId?: string | null | undefined;
161
- readonly channel?: string | null | undefined;
162
- readonly limit?: string | null | undefined;
163
160
  readonly page?: string | null | undefined;
161
+ readonly limit?: string | null | undefined;
162
+ readonly channel?: string | null | undefined;
163
+ readonly direction?: string | null | undefined;
164
164
  readonly status?: string | null | undefined;
165
+ readonly conversationId?: string | null | undefined;
166
+ readonly contactId?: string | null | undefined;
165
167
  readonly startDate?: string | null | undefined;
166
168
  readonly endDate?: string | null | undefined;
167
169
  } | undefined) => import("effect/Stream").Stream<{
@@ -175,12 +177,12 @@ export declare const list: ((input?: {
175
177
  readonly [x: string]: import("./generated").JsonValue;
176
178
  } | null;
177
179
  readonly channel: "email";
178
- readonly direction: "outbound" | "inbound";
180
+ readonly direction: "inbound" | "outbound";
179
181
  readonly content: import("./generated").JsonValue;
180
182
  readonly metadata: {
181
183
  readonly [x: string]: import("./generated").JsonValue;
182
184
  } | null;
183
- readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
185
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
184
186
  readonly scheduledAt: string | null;
185
187
  readonly tags: readonly string[];
186
188
  readonly categories: readonly string[];
@@ -224,9 +226,9 @@ export declare const list: ((input?: {
224
226
  readonly actorId: string | null;
225
227
  readonly contactId: string | null;
226
228
  readonly identityId: string | null;
227
- readonly kind: "to" | "cc" | "bcc";
229
+ readonly kind: "bcc" | "cc" | "to";
228
230
  readonly address: string;
229
- readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
231
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
230
232
  readonly createdAt: string;
231
233
  readonly updatedAt: string;
232
234
  readonly contact: {
@@ -246,7 +248,7 @@ export declare const list: ((input?: {
246
248
  readonly messageId: string;
247
249
  readonly recipientId: string | null;
248
250
  readonly channel: "email";
249
- readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
251
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
250
252
  readonly attemptCount: number;
251
253
  readonly maxAttempts: number;
252
254
  readonly queuedAt: string | null;
@@ -293,7 +295,7 @@ export declare const list: ((input?: {
293
295
  readonly spfVerdict: string | null;
294
296
  readonly dmarcVerdict: string | null;
295
297
  readonly isAutoReply: boolean;
296
- readonly autoReplyReason: "out-of-office" | "auto-response" | "delivery-status" | "read-receipt" | null;
298
+ readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
297
299
  readonly priority: string | null;
298
300
  readonly parsingErrors: readonly string[] | null;
299
301
  readonly parsingDuration: number | null;
@@ -309,14 +311,15 @@ export declare const list: ((input?: {
309
311
  readonly total: number;
310
312
  readonly totalPages: number;
311
313
  };
312
- }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
314
+ }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
313
315
  readonly items: (input?: {
314
- readonly contactId?: string | null | undefined;
315
- readonly conversationId?: string | null | undefined;
316
- readonly channel?: string | null | undefined;
317
- readonly limit?: string | null | undefined;
318
316
  readonly page?: string | null | undefined;
317
+ readonly limit?: string | null | undefined;
318
+ readonly channel?: string | null | undefined;
319
+ readonly direction?: string | null | undefined;
319
320
  readonly status?: string | null | undefined;
321
+ readonly conversationId?: string | null | undefined;
322
+ readonly contactId?: string | null | undefined;
320
323
  readonly startDate?: string | null | undefined;
321
324
  readonly endDate?: string | null | undefined;
322
325
  } | undefined) => import("effect/Stream").Stream<{
@@ -329,12 +332,12 @@ export declare const list: ((input?: {
329
332
  readonly [x: string]: import("./generated").JsonValue;
330
333
  } | null;
331
334
  readonly channel: "email";
332
- readonly direction: "outbound" | "inbound";
335
+ readonly direction: "inbound" | "outbound";
333
336
  readonly content: import("./generated").JsonValue;
334
337
  readonly metadata: {
335
338
  readonly [x: string]: import("./generated").JsonValue;
336
339
  } | null;
337
- readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
340
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
338
341
  readonly scheduledAt: string | null;
339
342
  readonly tags: readonly string[];
340
343
  readonly categories: readonly string[];
@@ -378,9 +381,9 @@ export declare const list: ((input?: {
378
381
  readonly actorId: string | null;
379
382
  readonly contactId: string | null;
380
383
  readonly identityId: string | null;
381
- readonly kind: "to" | "cc" | "bcc";
384
+ readonly kind: "bcc" | "cc" | "to";
382
385
  readonly address: string;
383
- readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
386
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
384
387
  readonly createdAt: string;
385
388
  readonly updatedAt: string;
386
389
  readonly contact: {
@@ -400,7 +403,7 @@ export declare const list: ((input?: {
400
403
  readonly messageId: string;
401
404
  readonly recipientId: string | null;
402
405
  readonly channel: "email";
403
- readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
406
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
404
407
  readonly attemptCount: number;
405
408
  readonly maxAttempts: number;
406
409
  readonly queuedAt: string | null;
@@ -447,7 +450,7 @@ export declare const list: ((input?: {
447
450
  readonly spfVerdict: string | null;
448
451
  readonly dmarcVerdict: string | null;
449
452
  readonly isAutoReply: boolean;
450
- readonly autoReplyReason: "out-of-office" | "auto-response" | "delivery-status" | "read-receipt" | null;
453
+ readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
451
454
  readonly priority: string | null;
452
455
  readonly parsingErrors: readonly string[] | null;
453
456
  readonly parsingDuration: number | null;
@@ -456,7 +459,7 @@ export declare const list: ((input?: {
456
459
  readonly createdAt: string;
457
460
  readonly updatedAt: string;
458
461
  }[];
459
- }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
462
+ }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
460
463
  };
461
464
  export declare const send: (input: MessageSendInput, options?: SendOptions | undefined) => import("effect/Effect").Effect<{
462
465
  readonly id: string;
@@ -468,12 +471,12 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
468
471
  readonly [x: string]: import("./generated").JsonValue;
469
472
  } | null;
470
473
  readonly channel: "email";
471
- readonly direction: "outbound" | "inbound";
474
+ readonly direction: "inbound" | "outbound";
472
475
  readonly content: import("./generated").JsonValue;
473
476
  readonly metadata: {
474
477
  readonly [x: string]: import("./generated").JsonValue;
475
478
  } | null;
476
- readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
479
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
477
480
  readonly scheduledAt: string | null;
478
481
  readonly tags: readonly string[];
479
482
  readonly categories: readonly string[];
@@ -517,9 +520,9 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
517
520
  readonly actorId: string | null;
518
521
  readonly contactId: string | null;
519
522
  readonly identityId: string | null;
520
- readonly kind: "to" | "cc" | "bcc";
523
+ readonly kind: "bcc" | "cc" | "to";
521
524
  readonly address: string;
522
- readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
525
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
523
526
  readonly createdAt: string;
524
527
  readonly updatedAt: string;
525
528
  readonly contact: {
@@ -539,7 +542,7 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
539
542
  readonly messageId: string;
540
543
  readonly recipientId: string | null;
541
544
  readonly channel: "email";
542
- readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
545
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
543
546
  readonly attemptCount: number;
544
547
  readonly maxAttempts: number;
545
548
  readonly queuedAt: string | null;
@@ -586,7 +589,7 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
586
589
  readonly spfVerdict: string | null;
587
590
  readonly dmarcVerdict: string | null;
588
591
  readonly isAutoReply: boolean;
589
- readonly autoReplyReason: "out-of-office" | "auto-response" | "delivery-status" | "read-receipt" | null;
592
+ readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
590
593
  readonly priority: string | null;
591
594
  readonly parsingErrors: readonly string[] | null;
592
595
  readonly parsingDuration: number | null;
@@ -595,7 +598,7 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
595
598
  readonly createdAt: string;
596
599
  readonly updatedAt: string;
597
600
  }[];
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>;
601
+ }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("./generated").WebhookEnqueueError, import("./client").Service>;
599
602
  export declare const get: (input: {
600
603
  readonly id: string;
601
604
  }) => import("effect/Effect").Effect<{
@@ -608,12 +611,12 @@ export declare const get: (input: {
608
611
  readonly [x: string]: import("./generated").JsonValue;
609
612
  } | null;
610
613
  readonly channel: "email";
611
- readonly direction: "outbound" | "inbound";
614
+ readonly direction: "inbound" | "outbound";
612
615
  readonly content: import("./generated").JsonValue;
613
616
  readonly metadata: {
614
617
  readonly [x: string]: import("./generated").JsonValue;
615
618
  } | null;
616
- readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
619
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
617
620
  readonly scheduledAt: string | null;
618
621
  readonly tags: readonly string[];
619
622
  readonly categories: readonly string[];
@@ -657,9 +660,9 @@ export declare const get: (input: {
657
660
  readonly actorId: string | null;
658
661
  readonly contactId: string | null;
659
662
  readonly identityId: string | null;
660
- readonly kind: "to" | "cc" | "bcc";
663
+ readonly kind: "bcc" | "cc" | "to";
661
664
  readonly address: string;
662
- readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
665
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
663
666
  readonly createdAt: string;
664
667
  readonly updatedAt: string;
665
668
  readonly contact: {
@@ -679,7 +682,7 @@ export declare const get: (input: {
679
682
  readonly messageId: string;
680
683
  readonly recipientId: string | null;
681
684
  readonly channel: "email";
682
- readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
685
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
683
686
  readonly attemptCount: number;
684
687
  readonly maxAttempts: number;
685
688
  readonly queuedAt: string | null;
@@ -726,7 +729,7 @@ export declare const get: (input: {
726
729
  readonly spfVerdict: string | null;
727
730
  readonly dmarcVerdict: string | null;
728
731
  readonly isAutoReply: boolean;
729
- readonly autoReplyReason: "out-of-office" | "auto-response" | "delivery-status" | "read-receipt" | null;
732
+ readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
730
733
  readonly priority: string | null;
731
734
  readonly parsingErrors: readonly string[] | null;
732
735
  readonly parsingDuration: number | null;
@@ -735,7 +738,7 @@ export declare const get: (input: {
735
738
  readonly createdAt: string;
736
739
  readonly updatedAt: string;
737
740
  }[];
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>;
741
+ }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
739
742
  export declare const getEmail: (input: {
740
743
  readonly id: string;
741
744
  readonly includeS3Urls?: string | null | undefined;
@@ -744,9 +747,9 @@ export declare const getEmail: (input: {
744
747
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
745
748
  readonly organizationId: string;
746
749
  readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
747
- readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
750
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
748
751
  readonly channel: "email";
749
- readonly direction: "outbound" | "inbound";
752
+ readonly direction: "inbound" | "outbound";
750
753
  readonly subject: string | null;
751
754
  readonly fromEmail: string;
752
755
  readonly fromName: string | null;
@@ -770,14 +773,14 @@ export declare const getEmail: (input: {
770
773
  readonly newContent: string | null;
771
774
  readonly quotedContent: string | null;
772
775
  readonly hasQuotedContent: boolean;
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;
776
+ readonly dkimVerdict: "fail" | "neutral" | "none" | "pass" | "permerror" | "policy" | "softfail" | "temperror" | null;
777
+ readonly spfVerdict: "fail" | "neutral" | "none" | "pass" | "permerror" | "policy" | "softfail" | "temperror" | null;
778
+ readonly dmarcVerdict: "fail" | "neutral" | "none" | "pass" | "permerror" | "policy" | "softfail" | "temperror" | null;
776
779
  readonly isAutoReply: boolean;
777
- readonly autoReplyReason: "out-of-office" | "auto-response" | "delivery-status" | "read-receipt" | null;
780
+ readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
778
781
  readonly listUnsubscribeUrl: string | null;
779
782
  readonly listUnsubscribeEmail: string | null;
780
- readonly priority: "low" | "high" | "normal" | null;
783
+ readonly priority: "high" | "low" | "normal" | null;
781
784
  readonly parsingErrors: readonly string[] | null;
782
785
  readonly parsingDuration: number | null;
783
786
  readonly hasAttachments: boolean;
@@ -799,29 +802,29 @@ export declare const getEmail: (input: {
799
802
  readonly createdAt: string;
800
803
  readonly receivedAt: string | null;
801
804
  readonly processedAt: string | null;
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>;
805
+ }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
803
806
  export declare const remove: (input: {
804
807
  readonly id: string;
805
808
  }) => import("effect/Effect").Effect<{
806
809
  readonly success: boolean;
807
810
  readonly message: string;
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>;
811
+ }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
809
812
  export declare const getStatus: (input: {
810
813
  readonly id: string;
811
814
  }) => import("effect/Effect").Effect<{
812
815
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
813
- readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
816
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
814
817
  readonly updatedAt: string;
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>;
818
+ }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
816
819
  export declare const getEvents: (input: {
817
820
  readonly id: string;
818
821
  }) => import("effect/Effect").Effect<readonly {
819
822
  readonly id: string & import("effect/Brand").Brand<"MessageEventId">;
820
- readonly status: string;
821
823
  readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
822
- readonly timestamp: string;
823
824
  readonly eventType: string;
825
+ readonly status: string;
826
+ readonly timestamp: string;
824
827
  readonly metadata?: {
825
828
  readonly [x: string]: import("./generated").JsonValue;
826
829
  } | null;
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>;
830
+ }[], import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, 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-C2Q4cFJL.js";
2
+ import { i as sendMessage, n as make } from "../operation-B1knNlxk.js";
3
3
  //#region src/effect/messages.ts
4
4
  var messages_exports = /* @__PURE__ */ __exportAll({
5
5
  get: () => get,
@@ -1,8 +1,8 @@
1
1
  export declare const list: (input?: {
2
- readonly limit?: string | null | undefined;
3
2
  readonly page?: string | null | undefined;
4
- readonly status?: string | null | undefined;
3
+ readonly limit?: string | null | undefined;
5
4
  readonly kind?: string | null | undefined;
5
+ readonly status?: string | null | undefined;
6
6
  } | undefined) => import("effect/Effect").Effect<{
7
7
  readonly items: readonly {
8
8
  readonly id: string & import("effect/Brand").Brand<"OperationId">;
@@ -13,13 +13,13 @@ export declare const list: (input?: {
13
13
  readonly id: string;
14
14
  };
15
15
  readonly actor: {
16
- readonly type: "user" | "api-key" | "system";
16
+ readonly type: "api-key" | "system" | "user";
17
17
  readonly id: string;
18
18
  };
19
- readonly status: "pending" | "failed" | "running" | "succeeded";
20
- readonly phase: "accepted" | "dispatching" | "provisioning" | "deleting" | "finalizing" | "completed";
19
+ readonly status: "failed" | "pending" | "running" | "succeeded";
20
+ readonly phase: "accepted" | "completed" | "deleting" | "dispatching" | "finalizing" | "provisioning";
21
21
  readonly error: {
22
- readonly code: "validation-failed" | "conflict" | "capacity-unavailable" | "provider-rejected" | "provider-unavailable" | "timed-out" | "internal";
22
+ readonly code: "capacity-unavailable" | "conflict" | "internal" | "provider-rejected" | "provider-unavailable" | "timed-out" | "validation-failed";
23
23
  readonly message: string;
24
24
  } | null;
25
25
  readonly createdAt: string;
@@ -32,7 +32,7 @@ export declare const list: (input?: {
32
32
  readonly limit: number;
33
33
  readonly total: number;
34
34
  };
35
- }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
35
+ }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
36
36
  export declare const get: (input: {
37
37
  readonly operationId: string;
38
38
  }) => import("effect/Effect").Effect<{
@@ -44,20 +44,20 @@ export declare const get: (input: {
44
44
  readonly id: string;
45
45
  };
46
46
  readonly actor: {
47
- readonly type: "user" | "api-key" | "system";
47
+ readonly type: "api-key" | "system" | "user";
48
48
  readonly id: string;
49
49
  };
50
- readonly status: "pending" | "failed" | "running" | "succeeded";
51
- readonly phase: "accepted" | "dispatching" | "provisioning" | "deleting" | "finalizing" | "completed";
50
+ readonly status: "failed" | "pending" | "running" | "succeeded";
51
+ readonly phase: "accepted" | "completed" | "deleting" | "dispatching" | "finalizing" | "provisioning";
52
52
  readonly error: {
53
- readonly code: "validation-failed" | "conflict" | "capacity-unavailable" | "provider-rejected" | "provider-unavailable" | "timed-out" | "internal";
53
+ readonly code: "capacity-unavailable" | "conflict" | "internal" | "provider-rejected" | "provider-unavailable" | "timed-out" | "validation-failed";
54
54
  readonly message: string;
55
55
  } | null;
56
56
  readonly createdAt: string;
57
57
  readonly updatedAt: string;
58
58
  readonly startedAt: string | null;
59
59
  readonly completedAt: string | null;
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>;
60
+ }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
61
61
  export declare const retry: (input: {
62
62
  readonly operationId: string;
63
63
  }) => import("effect/Effect").Effect<{
@@ -70,13 +70,13 @@ export declare const retry: (input: {
70
70
  readonly id: string;
71
71
  };
72
72
  readonly actor: {
73
- readonly type: "user" | "api-key" | "system";
73
+ readonly type: "api-key" | "system" | "user";
74
74
  readonly id: string;
75
75
  };
76
- readonly status: "pending" | "failed" | "running" | "succeeded";
77
- readonly phase: "accepted" | "dispatching" | "provisioning" | "deleting" | "finalizing" | "completed";
76
+ readonly status: "failed" | "pending" | "running" | "succeeded";
77
+ readonly phase: "accepted" | "completed" | "deleting" | "dispatching" | "finalizing" | "provisioning";
78
78
  readonly error: {
79
- readonly code: "validation-failed" | "conflict" | "capacity-unavailable" | "provider-rejected" | "provider-unavailable" | "timed-out" | "internal";
79
+ readonly code: "capacity-unavailable" | "conflict" | "internal" | "provider-rejected" | "provider-unavailable" | "timed-out" | "validation-failed";
80
80
  readonly message: string;
81
81
  } | null;
82
82
  readonly createdAt: string;
@@ -94,4 +94,4 @@ export declare const retry: (input: {
94
94
  readonly href: string;
95
95
  };
96
96
  };
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>;
97
+ }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, 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-C2Q4cFJL.js";
2
+ import { n as make } from "../operation-B1knNlxk.js";
3
3
  //#region src/effect/operations.ts
4
4
  var operations_exports = /* @__PURE__ */ __exportAll({
5
5
  get: () => get,