samva 0.14.0 → 0.16.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 (52) hide show
  1. package/README.md +6 -0
  2. package/dist/{categories-BGUBFdH9.js → categories-DV51kr2H.js} +5 -1
  3. package/dist/client/sdk.gen.d.ts +74 -45
  4. package/dist/client/types.gen.d.ts +356 -212
  5. package/dist/{client-CZjhOKPM.js → client-BMUew5Wp.js} +307 -198
  6. package/dist/effect/analytics.js +1 -1
  7. package/dist/effect/api-keys.d.ts +1 -0
  8. package/dist/effect/api-keys.js +5 -2
  9. package/dist/effect/attachments.js +1 -1
  10. package/dist/effect/brands.js +2 -2
  11. package/dist/effect/campaigns.js +1 -1
  12. package/dist/effect/categories.js +1 -1
  13. package/dist/effect/client.js +1 -1
  14. package/dist/effect/contact-groups.js +1 -1
  15. package/dist/effect/contacts.js +1 -1
  16. package/dist/effect/conversations.js +1 -1
  17. package/dist/effect/custom-fields.js +1 -1
  18. package/dist/effect/email.d.ts +0 -18
  19. package/dist/effect/email.js +3 -7
  20. package/dist/effect/extension-installations.js +1 -1
  21. package/dist/effect/extensions.js +1 -1
  22. package/dist/effect/feedback.js +2 -2
  23. package/dist/effect/generated-metadata.d.ts +4 -0
  24. package/dist/effect/generated.d.ts +1477 -1250
  25. package/dist/effect/index.d.ts +2 -1
  26. package/dist/effect/index.js +6 -5
  27. package/dist/effect/mailboxes.d.ts +191 -92
  28. package/dist/effect/mailboxes.js +2 -2
  29. package/dist/effect/media.js +1 -1
  30. package/dist/effect/messages.js +1 -1
  31. package/dist/effect/namespaces.js +1 -1
  32. package/dist/effect/operations.js +1 -1
  33. package/dist/effect/organizations.js +1 -1
  34. package/dist/effect/retry.js +1 -1
  35. package/dist/effect/scheduled-messages.js +1 -1
  36. package/dist/effect/subscriptions.js +1 -1
  37. package/dist/effect/templates.js +2 -2
  38. package/dist/effect/unsubscribe-groups.js +1 -1
  39. package/dist/effect/webhooks.js +2 -2
  40. package/dist/effect/whoami.d.ts +46 -0
  41. package/dist/effect/whoami.js +9 -0
  42. package/dist/index.js +3 -3
  43. package/dist/{inline-attachments-BrNnSMF2.js → inline-attachments-Cegg6tTF.js} +2 -2
  44. package/dist/{mailboxes-DT02zP7q.js → mailboxes-Thp5z0oX.js} +10 -4
  45. package/dist/{operation-g8nAzmIM.js → operation-BTXjPrwf.js} +18 -12
  46. package/dist/promises/errors.gen.d.ts +12 -2
  47. package/dist/promises/index.d.ts +3 -1
  48. package/dist/promises/index.js +3 -3
  49. package/dist/promises/types.gen.d.ts +1 -1
  50. package/dist/{promises-BFRKhpSS.js → promises-KrA2nSLg.js} +224 -84
  51. package/dist/service-map.d.ts +21 -10
  52. package/package.json +6 -2
@@ -10,7 +10,7 @@ export declare const list: ((input?: {
10
10
  readonly id: string & import("effect/Brand").Brand<"MailboxId">;
11
11
  readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
12
12
  readonly slug: string;
13
- readonly displayName: string;
13
+ readonly name: string;
14
14
  readonly status: "active" | "paused";
15
15
  readonly primaryAddress: string | null;
16
16
  readonly createdAt: string;
@@ -27,7 +27,7 @@ export declare const list: ((input?: {
27
27
  readonly id: string & import("effect/Brand").Brand<"MailboxId">;
28
28
  readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
29
29
  readonly slug: string;
30
- readonly displayName: string;
30
+ readonly name: string;
31
31
  readonly status: "active" | "paused";
32
32
  readonly primaryAddress: string | null;
33
33
  readonly createdAt: string;
@@ -43,7 +43,7 @@ export declare const list: ((input?: {
43
43
  readonly id: string & import("effect/Brand").Brand<"MailboxId">;
44
44
  readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
45
45
  readonly slug: string;
46
- readonly displayName: string;
46
+ readonly name: string;
47
47
  readonly status: "active" | "paused";
48
48
  readonly primaryAddress: string | null;
49
49
  readonly createdAt: string;
@@ -51,17 +51,13 @@ export declare const list: ((input?: {
51
51
  };
52
52
  export declare const create: (input: {
53
53
  readonly namespaceId?: string | null | undefined;
54
- readonly displayName: string;
55
- readonly slug: string;
56
- readonly addresses: readonly {
54
+ readonly endpoint: {
55
+ readonly channel: "email";
57
56
  readonly address: string;
58
57
  readonly displayName?: string | null | undefined;
59
- readonly domainId?: string | null | undefined;
60
- }[];
61
- readonly defaultFrom?: {
62
- readonly address: string;
63
- readonly displayName?: string | null | undefined;
64
- } | null | undefined;
58
+ };
59
+ readonly name: string;
60
+ readonly slug?: string | null | undefined;
65
61
  readonly metadata?: {
66
62
  readonly [x: string]: string | undefined;
67
63
  } | null | undefined;
@@ -69,7 +65,7 @@ export declare const create: (input: {
69
65
  readonly id: string & import("effect/Brand").Brand<"MailboxId">;
70
66
  readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
71
67
  readonly slug: string;
72
- readonly displayName: string;
68
+ readonly name: string;
73
69
  readonly status: "active" | "paused";
74
70
  readonly primaryAddress: string | null;
75
71
  readonly createdAt: string;
@@ -77,26 +73,24 @@ export declare const create: (input: {
77
73
  readonly metadata: {
78
74
  readonly [x: string]: string;
79
75
  };
80
- readonly addresses: readonly {
81
- readonly id: string & import("effect/Brand").Brand<"MailboxAddressId">;
76
+ readonly endpoints: readonly {
77
+ readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
82
78
  readonly address: string;
79
+ readonly displayName: string | null;
80
+ readonly default: boolean;
81
+ readonly channel: "email";
83
82
  readonly source: "samvaHosted" | "verifiedDomain";
84
83
  readonly domainId: string | null;
85
- readonly displayName: string | null;
86
84
  }[];
87
- readonly defaultFrom: {
88
- readonly address: string;
89
- readonly displayName: string | null;
90
- } | null;
91
85
  readonly updatedAt: string;
92
- }, import("./generated").BillingProviderError | import("./generated").ConflictError | 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>;
86
+ }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxChannelUnsupportedError | import("./generated").PaymentRequiredError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
93
87
  export declare const get: (input: {
94
88
  readonly id: string;
95
89
  }) => import("effect/Effect").Effect<{
96
90
  readonly id: string & import("effect/Brand").Brand<"MailboxId">;
97
91
  readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
98
92
  readonly slug: string;
99
- readonly displayName: string;
93
+ readonly name: string;
100
94
  readonly status: "active" | "paused";
101
95
  readonly primaryAddress: string | null;
102
96
  readonly createdAt: string;
@@ -104,34 +98,28 @@ export declare const get: (input: {
104
98
  readonly metadata: {
105
99
  readonly [x: string]: string;
106
100
  };
107
- readonly addresses: readonly {
108
- readonly id: string & import("effect/Brand").Brand<"MailboxAddressId">;
101
+ readonly endpoints: readonly {
102
+ readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
109
103
  readonly address: string;
104
+ readonly displayName: string | null;
105
+ readonly default: boolean;
106
+ readonly channel: "email";
110
107
  readonly source: "samvaHosted" | "verifiedDomain";
111
108
  readonly domainId: string | null;
112
- readonly displayName: string | null;
113
109
  }[];
114
- readonly defaultFrom: {
115
- readonly address: string;
116
- readonly displayName: string | null;
117
- } | null;
118
110
  readonly updatedAt: string;
119
111
  }, 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>;
120
112
  export declare const update: (input: {
121
113
  readonly id: string;
122
- readonly displayName?: string | null | undefined;
114
+ readonly name?: string | null | undefined;
123
115
  readonly metadata?: {
124
116
  readonly [x: string]: string | null | undefined;
125
117
  } | null | undefined;
126
- readonly defaultFrom?: {
127
- readonly address: string;
128
- readonly displayName?: string | null | undefined;
129
- } | null | undefined;
130
118
  }) => import("effect/Effect").Effect<{
131
119
  readonly id: string & import("effect/Brand").Brand<"MailboxId">;
132
120
  readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
133
121
  readonly slug: string;
134
- readonly displayName: string;
122
+ readonly name: string;
135
123
  readonly status: "active" | "paused";
136
124
  readonly primaryAddress: string | null;
137
125
  readonly createdAt: string;
@@ -139,17 +127,15 @@ export declare const update: (input: {
139
127
  readonly metadata: {
140
128
  readonly [x: string]: string;
141
129
  };
142
- readonly addresses: readonly {
143
- readonly id: string & import("effect/Brand").Brand<"MailboxAddressId">;
130
+ readonly endpoints: readonly {
131
+ readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
144
132
  readonly address: string;
133
+ readonly displayName: string | null;
134
+ readonly default: boolean;
135
+ readonly channel: "email";
145
136
  readonly source: "samvaHosted" | "verifiedDomain";
146
137
  readonly domainId: string | null;
147
- readonly displayName: string | null;
148
138
  }[];
149
- readonly defaultFrom: {
150
- readonly address: string;
151
- readonly displayName: string | null;
152
- } | null;
153
139
  readonly updatedAt: string;
154
140
  }, 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>;
155
141
  export declare const remove: (input: {
@@ -157,13 +143,16 @@ export declare const remove: (input: {
157
143
  }) => import("effect/Effect").Effect<{
158
144
  readonly success: boolean;
159
145
  }, import("./generated").BillingProviderError | 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>;
160
- export declare const pause: (input: {
146
+ export declare const createEndpoint: (input: {
161
147
  readonly id: string;
148
+ readonly channel: "email";
149
+ readonly address: string;
150
+ readonly displayName?: string | null | undefined;
162
151
  }) => import("effect/Effect").Effect<{
163
152
  readonly id: string & import("effect/Brand").Brand<"MailboxId">;
164
153
  readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
165
154
  readonly slug: string;
166
- readonly displayName: string;
155
+ readonly name: string;
167
156
  readonly status: "active" | "paused";
168
157
  readonly primaryAddress: string | null;
169
158
  readonly createdAt: string;
@@ -171,26 +160,53 @@ export declare const pause: (input: {
171
160
  readonly metadata: {
172
161
  readonly [x: string]: string;
173
162
  };
174
- readonly addresses: readonly {
175
- readonly id: string & import("effect/Brand").Brand<"MailboxAddressId">;
163
+ readonly endpoints: readonly {
164
+ readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
176
165
  readonly address: string;
166
+ readonly displayName: string | null;
167
+ readonly default: boolean;
168
+ readonly channel: "email";
177
169
  readonly source: "samvaHosted" | "verifiedDomain";
178
170
  readonly domainId: string | null;
179
- readonly displayName: string | null;
180
171
  }[];
181
- readonly defaultFrom: {
172
+ readonly updatedAt: string;
173
+ }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxChannelUnsupportedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
174
+ export declare const updateEndpoint: (input: {
175
+ readonly id: string;
176
+ readonly endpointId: string;
177
+ readonly displayName?: string | null | undefined;
178
+ readonly default?: true | null | undefined;
179
+ }) => import("effect/Effect").Effect<{
180
+ readonly id: string & import("effect/Brand").Brand<"MailboxId">;
181
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
182
+ readonly slug: string;
183
+ readonly name: string;
184
+ readonly status: "active" | "paused";
185
+ readonly primaryAddress: string | null;
186
+ readonly createdAt: string;
187
+ readonly description: string | null;
188
+ readonly metadata: {
189
+ readonly [x: string]: string;
190
+ };
191
+ readonly endpoints: readonly {
192
+ readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
182
193
  readonly address: string;
183
194
  readonly displayName: string | null;
184
- } | null;
195
+ readonly default: boolean;
196
+ readonly channel: "email";
197
+ readonly source: "samvaHosted" | "verifiedDomain";
198
+ readonly domainId: string | null;
199
+ }[];
185
200
  readonly updatedAt: string;
186
201
  }, 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>;
187
- export declare const resume: (input: {
202
+ export declare const removeEndpoint: (input: {
188
203
  readonly id: string;
204
+ readonly endpointId: string;
189
205
  }) => import("effect/Effect").Effect<{
190
206
  readonly id: string & import("effect/Brand").Brand<"MailboxId">;
191
207
  readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
192
208
  readonly slug: string;
193
- readonly displayName: string;
209
+ readonly name: string;
194
210
  readonly status: "active" | "paused";
195
211
  readonly primaryAddress: string | null;
196
212
  readonly createdAt: string;
@@ -198,17 +214,65 @@ export declare const resume: (input: {
198
214
  readonly metadata: {
199
215
  readonly [x: string]: string;
200
216
  };
201
- readonly addresses: readonly {
202
- readonly id: string & import("effect/Brand").Brand<"MailboxAddressId">;
217
+ readonly endpoints: readonly {
218
+ readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
203
219
  readonly address: string;
220
+ readonly displayName: string | null;
221
+ readonly default: boolean;
222
+ readonly channel: "email";
204
223
  readonly source: "samvaHosted" | "verifiedDomain";
205
224
  readonly domainId: string | null;
225
+ }[];
226
+ readonly updatedAt: string;
227
+ }, 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>;
228
+ export declare const pause: (input: {
229
+ readonly id: string;
230
+ }) => import("effect/Effect").Effect<{
231
+ readonly id: string & import("effect/Brand").Brand<"MailboxId">;
232
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
233
+ readonly slug: string;
234
+ readonly name: string;
235
+ readonly status: "active" | "paused";
236
+ readonly primaryAddress: string | null;
237
+ readonly createdAt: string;
238
+ readonly description: string | null;
239
+ readonly metadata: {
240
+ readonly [x: string]: string;
241
+ };
242
+ readonly endpoints: readonly {
243
+ readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
244
+ readonly address: string;
206
245
  readonly displayName: string | null;
246
+ readonly default: boolean;
247
+ readonly channel: "email";
248
+ readonly source: "samvaHosted" | "verifiedDomain";
249
+ readonly domainId: string | null;
207
250
  }[];
208
- readonly defaultFrom: {
251
+ readonly updatedAt: string;
252
+ }, 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>;
253
+ export declare const resume: (input: {
254
+ readonly id: string;
255
+ }) => import("effect/Effect").Effect<{
256
+ readonly id: string & import("effect/Brand").Brand<"MailboxId">;
257
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
258
+ readonly slug: string;
259
+ readonly name: string;
260
+ readonly status: "active" | "paused";
261
+ readonly primaryAddress: string | null;
262
+ readonly createdAt: string;
263
+ readonly description: string | null;
264
+ readonly metadata: {
265
+ readonly [x: string]: string;
266
+ };
267
+ readonly endpoints: readonly {
268
+ readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
209
269
  readonly address: string;
210
270
  readonly displayName: string | null;
211
- } | null;
271
+ readonly default: boolean;
272
+ readonly channel: "email";
273
+ readonly source: "samvaHosted" | "verifiedDomain";
274
+ readonly domainId: string | null;
275
+ }[];
212
276
  readonly updatedAt: string;
213
277
  }, 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>;
214
278
  export declare const getAgentActivity: (input: {
@@ -228,7 +292,7 @@ export declare const getAgentActivity: (input: {
228
292
  };
229
293
  readonly events: {
230
294
  readonly byType: readonly {
231
- readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "address.attached" | "email.received" | "email.released" | "email.sent" | "mailbox.created" | "thread.created";
295
+ readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "endpoint.attached" | "endpoint.detached" | "mailbox.created" | "message.received" | "message.released" | "message.sent" | "thread.created";
232
296
  readonly count: number;
233
297
  }[];
234
298
  };
@@ -454,6 +518,8 @@ export declare const listThreads: ((input: {
454
518
  }) => import("effect/Effect").Effect<{
455
519
  readonly items: readonly {
456
520
  readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
521
+ readonly channel: "email";
522
+ readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
457
523
  readonly subject: string | null;
458
524
  readonly preview: string | null;
459
525
  readonly from: {
@@ -488,6 +554,8 @@ export declare const listThreads: ((input: {
488
554
  }) => import("effect/Stream").Stream<{
489
555
  readonly items: readonly {
490
556
  readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
557
+ readonly channel: "email";
558
+ readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
491
559
  readonly subject: string | null;
492
560
  readonly preview: string | null;
493
561
  readonly from: {
@@ -521,6 +589,8 @@ export declare const listThreads: ((input: {
521
589
  readonly snoozed?: "false" | "true" | null | undefined;
522
590
  }) => import("effect/Stream").Stream<{
523
591
  readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
592
+ readonly channel: "email";
593
+ readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
524
594
  readonly subject: string | null;
525
595
  readonly preview: string | null;
526
596
  readonly from: {
@@ -544,6 +614,8 @@ export declare const getThread: (input: {
544
614
  readonly threadId: string;
545
615
  }) => import("effect/Effect").Effect<{
546
616
  readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
617
+ readonly channel: "email";
618
+ readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
547
619
  readonly subject: string | null;
548
620
  readonly preview: string | null;
549
621
  readonly from: {
@@ -623,6 +695,7 @@ export declare const listThreadMessages: ((input: {
623
695
  }) => import("effect/Effect").Effect<{
624
696
  readonly items: readonly {
625
697
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
698
+ readonly channel: "email";
626
699
  readonly direction: "inbound" | "outbound";
627
700
  readonly from: {
628
701
  readonly actor?: {
@@ -649,6 +722,7 @@ export declare const listThreadMessages: ((input: {
649
722
  }) => import("effect/Stream").Stream<{
650
723
  readonly items: readonly {
651
724
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
725
+ readonly channel: "email";
652
726
  readonly direction: "inbound" | "outbound";
653
727
  readonly from: {
654
728
  readonly actor?: {
@@ -674,6 +748,7 @@ export declare const listThreadMessages: ((input: {
674
748
  readonly cursor?: string | null | undefined;
675
749
  }) => import("effect/Stream").Stream<{
676
750
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
751
+ readonly channel: "email";
677
752
  readonly direction: "inbound" | "outbound";
678
753
  readonly from: {
679
754
  readonly actor?: {
@@ -711,6 +786,13 @@ export declare const getThreadContent: ((input: {
711
786
  readonly displayName?: string | null;
712
787
  readonly address: string;
713
788
  };
789
+ readonly sentBy?: {
790
+ readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
791
+ readonly id: string;
792
+ readonly displayName?: string | null;
793
+ } | null;
794
+ readonly occurredAt: string;
795
+ readonly channel: "email";
714
796
  readonly recipients: readonly {
715
797
  readonly kind: "bcc" | "cc" | "to";
716
798
  readonly actor?: {
@@ -743,12 +825,6 @@ export declare const getThreadContent: ((input: {
743
825
  readonly size: number;
744
826
  readonly isInline: boolean;
745
827
  }[];
746
- readonly sentBy?: {
747
- readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
748
- readonly id: string;
749
- readonly displayName?: string | null;
750
- } | null;
751
- readonly occurredAt: string;
752
828
  }[];
753
829
  readonly nextCursor: string | null;
754
830
  }, 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>) & {
@@ -772,6 +848,13 @@ export declare const getThreadContent: ((input: {
772
848
  readonly displayName?: string | null;
773
849
  readonly address: string;
774
850
  };
851
+ readonly sentBy?: {
852
+ readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
853
+ readonly id: string;
854
+ readonly displayName?: string | null;
855
+ } | null;
856
+ readonly occurredAt: string;
857
+ readonly channel: "email";
775
858
  readonly recipients: readonly {
776
859
  readonly kind: "bcc" | "cc" | "to";
777
860
  readonly actor?: {
@@ -804,12 +887,6 @@ export declare const getThreadContent: ((input: {
804
887
  readonly size: number;
805
888
  readonly isInline: boolean;
806
889
  }[];
807
- readonly sentBy?: {
808
- readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
809
- readonly id: string;
810
- readonly displayName?: string | null;
811
- } | null;
812
- readonly occurredAt: string;
813
890
  }[];
814
891
  readonly nextCursor: string | null;
815
892
  }, 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>;
@@ -832,6 +909,13 @@ export declare const getThreadContent: ((input: {
832
909
  readonly displayName?: string | null;
833
910
  readonly address: string;
834
911
  };
912
+ readonly sentBy?: {
913
+ readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
914
+ readonly id: string;
915
+ readonly displayName?: string | null;
916
+ } | null;
917
+ readonly occurredAt: string;
918
+ readonly channel: "email";
835
919
  readonly recipients: readonly {
836
920
  readonly kind: "bcc" | "cc" | "to";
837
921
  readonly actor?: {
@@ -864,12 +948,6 @@ export declare const getThreadContent: ((input: {
864
948
  readonly size: number;
865
949
  readonly isInline: boolean;
866
950
  }[];
867
- readonly sentBy?: {
868
- readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
869
- readonly id: string;
870
- readonly displayName?: string | null;
871
- } | null;
872
- readonly occurredAt: string;
873
951
  }, 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>;
874
952
  };
875
953
  export declare const listThreadNotes: ((input: {
@@ -981,6 +1059,7 @@ export declare const deleteNote: (input: {
981
1059
  }, 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>;
982
1060
  export declare const sendMessage: (input: {
983
1061
  readonly id: string;
1062
+ readonly channel?: "email" | null | undefined;
984
1063
  readonly to: readonly string[];
985
1064
  readonly cc?: readonly string[] | null | undefined;
986
1065
  readonly bcc?: readonly string[] | null | undefined;
@@ -1133,7 +1212,7 @@ export declare const sendMessage: (input: {
1133
1212
  } | null;
1134
1213
  readonly createdAt: string;
1135
1214
  readonly updatedAt: string;
1136
- }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxSendConflictError | import("./generated").MailboxSendRefusedError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1215
+ }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxChannelUnsupportedError | import("./generated").MailboxSendConflictError | import("./generated").MailboxSendRefusedError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1137
1216
  export declare const getMessage: (input: {
1138
1217
  readonly id: string;
1139
1218
  readonly messageId: string;
@@ -1151,6 +1230,13 @@ export declare const getMessage: (input: {
1151
1230
  readonly displayName?: string | null;
1152
1231
  readonly address: string;
1153
1232
  };
1233
+ readonly sentBy?: {
1234
+ readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
1235
+ readonly id: string;
1236
+ readonly displayName?: string | null;
1237
+ } | null;
1238
+ readonly occurredAt: string;
1239
+ readonly channel: "email";
1154
1240
  readonly recipients: readonly {
1155
1241
  readonly kind: "bcc" | "cc" | "to";
1156
1242
  readonly actor?: {
@@ -1183,12 +1269,6 @@ export declare const getMessage: (input: {
1183
1269
  readonly size: number;
1184
1270
  readonly isInline: boolean;
1185
1271
  }[];
1186
- readonly sentBy?: {
1187
- readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
1188
- readonly id: string;
1189
- readonly displayName?: string | null;
1190
- } | null;
1191
- readonly occurredAt: string;
1192
1272
  }, 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>;
1193
1273
  export declare const getMessageRaw: (input: {
1194
1274
  readonly id: string;
@@ -1219,6 +1299,7 @@ export declare const copyMessageAttachment: (input: {
1219
1299
  export declare const reply: (input: {
1220
1300
  readonly id: string;
1221
1301
  readonly messageId: string;
1302
+ readonly channel?: "email" | null | undefined;
1222
1303
  readonly cc?: readonly string[] | null | undefined;
1223
1304
  readonly bcc?: readonly string[] | null | undefined;
1224
1305
  readonly text?: string | null | undefined;
@@ -1368,10 +1449,11 @@ export declare const reply: (input: {
1368
1449
  } | null;
1369
1450
  readonly createdAt: string;
1370
1451
  readonly updatedAt: string;
1371
- }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxSendConflictError | import("./generated").MailboxSendRefusedError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1452
+ }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxChannelUnsupportedError | import("./generated").MailboxSendConflictError | import("./generated").MailboxSendRefusedError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1372
1453
  export declare const replyAll: (input: {
1373
1454
  readonly id: string;
1374
1455
  readonly messageId: string;
1456
+ readonly channel?: "email" | null | undefined;
1375
1457
  readonly cc?: readonly string[] | null | undefined;
1376
1458
  readonly bcc?: readonly string[] | null | undefined;
1377
1459
  readonly text?: string | null | undefined;
@@ -1521,7 +1603,7 @@ export declare const replyAll: (input: {
1521
1603
  } | null;
1522
1604
  readonly createdAt: string;
1523
1605
  readonly updatedAt: string;
1524
- }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxSendConflictError | import("./generated").MailboxSendRefusedError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1606
+ }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxChannelUnsupportedError | import("./generated").MailboxSendConflictError | import("./generated").MailboxSendRefusedError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1525
1607
  export declare const forward: (input: {
1526
1608
  readonly id: string;
1527
1609
  readonly messageId: string;
@@ -1675,7 +1757,7 @@ export declare const forward: (input: {
1675
1757
  } | null;
1676
1758
  readonly createdAt: string;
1677
1759
  readonly updatedAt: string;
1678
- }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxSendConflictError | import("./generated").MailboxSendRefusedError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1760
+ }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxChannelUnsupportedError | import("./generated").MailboxSendConflictError | import("./generated").MailboxSendRefusedError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1679
1761
  export declare const listQuarantine: ((input: {
1680
1762
  readonly id: string;
1681
1763
  readonly limit?: string | null | undefined;
@@ -1795,6 +1877,7 @@ export declare const listDrafts: ((input: {
1795
1877
  }) => import("effect/Effect").Effect<{
1796
1878
  readonly items: readonly {
1797
1879
  readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
1880
+ readonly channel: "email";
1798
1881
  readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
1799
1882
  readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
1800
1883
  readonly state: "locked" | "saved" | "sent";
@@ -1814,6 +1897,7 @@ export declare const listDrafts: ((input: {
1814
1897
  }) => import("effect/Stream").Stream<{
1815
1898
  readonly items: readonly {
1816
1899
  readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
1900
+ readonly channel: "email";
1817
1901
  readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
1818
1902
  readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
1819
1903
  readonly state: "locked" | "saved" | "sent";
@@ -1832,6 +1916,7 @@ export declare const listDrafts: ((input: {
1832
1916
  readonly threadId?: string | null | undefined;
1833
1917
  }) => import("effect/Stream").Stream<{
1834
1918
  readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
1919
+ readonly channel: "email";
1835
1920
  readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
1836
1921
  readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
1837
1922
  readonly state: "locked" | "saved" | "sent";
@@ -1844,6 +1929,8 @@ export declare const listDrafts: ((input: {
1844
1929
  };
1845
1930
  export declare const createDraft: (input: {
1846
1931
  readonly id: string;
1932
+ readonly channel?: "email" | null | undefined;
1933
+ readonly endpointId?: string | null | undefined;
1847
1934
  readonly to?: readonly string[] | null | undefined;
1848
1935
  readonly cc?: readonly string[] | null | undefined;
1849
1936
  readonly bcc?: readonly string[] | null | undefined;
@@ -1861,6 +1948,7 @@ export declare const createDraft: (input: {
1861
1948
  readonly inReplyToMessageId?: string | null | undefined;
1862
1949
  }) => import("effect/Effect").Effect<{
1863
1950
  readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
1951
+ readonly channel: "email";
1864
1952
  readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
1865
1953
  readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
1866
1954
  readonly state: "locked" | "saved" | "sent";
@@ -1869,6 +1957,7 @@ export declare const createDraft: (input: {
1869
1957
  readonly subject: string | null;
1870
1958
  readonly createdAt: string;
1871
1959
  readonly updatedAt: string;
1960
+ readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
1872
1961
  readonly cc: readonly string[];
1873
1962
  readonly bcc: readonly string[];
1874
1963
  readonly replyTo: readonly string[];
@@ -1881,12 +1970,13 @@ export declare const createDraft: (input: {
1881
1970
  readonly contentType: string;
1882
1971
  readonly size: number;
1883
1972
  }[];
1884
- }, 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>;
1973
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxChannelUnsupportedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1885
1974
  export declare const getDraft: (input: {
1886
1975
  readonly id: string;
1887
1976
  readonly draftId: string;
1888
1977
  }) => import("effect/Effect").Effect<{
1889
1978
  readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
1979
+ readonly channel: "email";
1890
1980
  readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
1891
1981
  readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
1892
1982
  readonly state: "locked" | "saved" | "sent";
@@ -1895,6 +1985,7 @@ export declare const getDraft: (input: {
1895
1985
  readonly subject: string | null;
1896
1986
  readonly createdAt: string;
1897
1987
  readonly updatedAt: string;
1988
+ readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
1898
1989
  readonly cc: readonly string[];
1899
1990
  readonly bcc: readonly string[];
1900
1991
  readonly replyTo: readonly string[];
@@ -1927,6 +2018,7 @@ export declare const updateDraft: (input: {
1927
2018
  }[] | null | undefined;
1928
2019
  }) => import("effect/Effect").Effect<{
1929
2020
  readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
2021
+ readonly channel: "email";
1930
2022
  readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
1931
2023
  readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
1932
2024
  readonly state: "locked" | "saved" | "sent";
@@ -1935,6 +2027,7 @@ export declare const updateDraft: (input: {
1935
2027
  readonly subject: string | null;
1936
2028
  readonly createdAt: string;
1937
2029
  readonly updatedAt: string;
2030
+ readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
1938
2031
  readonly cc: readonly string[];
1939
2032
  readonly bcc: readonly string[];
1940
2033
  readonly replyTo: readonly string[];
@@ -2095,7 +2188,7 @@ export declare const sendDraft: (input: {
2095
2188
  } | null;
2096
2189
  readonly createdAt: string;
2097
2190
  readonly updatedAt: string;
2098
- }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxSendConflictError | import("./generated").MailboxSendRefusedError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
2191
+ }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxChannelUnsupportedError | import("./generated").MailboxSendConflictError | import("./generated").MailboxSendRefusedError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
2099
2192
  export declare const listActions: ((input: {
2100
2193
  readonly id: string;
2101
2194
  readonly limit?: string | null | undefined;
@@ -2196,6 +2289,7 @@ export declare const listActions: ((input: {
2196
2289
  readonly updatedAt: string;
2197
2290
  };
2198
2291
  readonly intent: {
2292
+ readonly channel: "email";
2199
2293
  readonly draftRevision: number;
2200
2294
  readonly from: string;
2201
2295
  readonly fromName: string | null;
@@ -2341,6 +2435,7 @@ export declare const listActions: ((input: {
2341
2435
  readonly updatedAt: string;
2342
2436
  };
2343
2437
  readonly intent: {
2438
+ readonly channel: "email";
2344
2439
  readonly draftRevision: number;
2345
2440
  readonly from: string;
2346
2441
  readonly fromName: string | null;
@@ -2485,6 +2580,7 @@ export declare const listActions: ((input: {
2485
2580
  readonly updatedAt: string;
2486
2581
  };
2487
2582
  readonly intent: {
2583
+ readonly channel: "email";
2488
2584
  readonly draftRevision: number;
2489
2585
  readonly from: string;
2490
2586
  readonly fromName: string | null;
@@ -2623,6 +2719,7 @@ export declare const getAction: (input: {
2623
2719
  readonly updatedAt: string;
2624
2720
  };
2625
2721
  readonly intent: {
2722
+ readonly channel: "email";
2626
2723
  readonly draftRevision: number;
2627
2724
  readonly from: string;
2628
2725
  readonly fromName: string | null;
@@ -2805,7 +2902,7 @@ export declare const cancelAction: (input: {
2805
2902
  } | null;
2806
2903
  readonly createdAt: string;
2807
2904
  readonly updatedAt: string;
2808
- }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxSendConflictError | import("./generated").MailboxSendRefusedError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
2905
+ }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxChannelUnsupportedError | import("./generated").MailboxSendConflictError | import("./generated").MailboxSendRefusedError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
2809
2906
  export declare const retryAction: (input: {
2810
2907
  readonly id: string;
2811
2908
  readonly actionId: string;
@@ -2945,7 +3042,7 @@ export declare const retryAction: (input: {
2945
3042
  } | null;
2946
3043
  readonly createdAt: string;
2947
3044
  readonly updatedAt: string;
2948
- }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxSendConflictError | import("./generated").MailboxSendRefusedError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
3045
+ }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxChannelUnsupportedError | import("./generated").MailboxSendConflictError | import("./generated").MailboxSendRefusedError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
2949
3046
  export declare const approveAction: (input: {
2950
3047
  readonly id: string;
2951
3048
  readonly actionId: string;
@@ -3040,6 +3137,7 @@ export declare const approveAction: (input: {
3040
3137
  readonly updatedAt: string;
3041
3138
  };
3042
3139
  readonly intent: {
3140
+ readonly channel: "email";
3043
3141
  readonly draftRevision: number;
3044
3142
  readonly from: string;
3045
3143
  readonly fromName: string | null;
@@ -3082,7 +3180,7 @@ export declare const approveAction: (input: {
3082
3180
  readonly updatedAt: string;
3083
3181
  readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
3084
3182
  readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
3085
- }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxSendConflictError | import("./generated").MailboxSendRefusedError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
3183
+ }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxChannelUnsupportedError | import("./generated").MailboxSendConflictError | import("./generated").MailboxSendRefusedError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
3086
3184
  export declare const denyAction: (input: {
3087
3185
  readonly id: string;
3088
3186
  readonly actionId: string;
@@ -3178,6 +3276,7 @@ export declare const denyAction: (input: {
3178
3276
  readonly updatedAt: string;
3179
3277
  };
3180
3278
  readonly intent: {
3279
+ readonly channel: "email";
3181
3280
  readonly draftRevision: number;
3182
3281
  readonly from: string;
3183
3282
  readonly fromName: string | null;
@@ -3230,7 +3329,7 @@ export declare const listEvents: ((input: {
3230
3329
  }) => import("effect/Effect").Effect<{
3231
3330
  readonly items: readonly {
3232
3331
  readonly id: string & import("effect/Brand").Brand<"MailboxEventId">;
3233
- readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "address.attached" | "email.received" | "email.released" | "email.sent" | "mailbox.created" | "thread.created";
3332
+ readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "endpoint.attached" | "endpoint.detached" | "mailbox.created" | "message.received" | "message.released" | "message.sent" | "thread.created";
3234
3333
  readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
3235
3334
  readonly actionId: (string & import("effect/Brand").Brand<"MailboxActionId">) | null;
3236
3335
  readonly actor: {
@@ -3254,7 +3353,7 @@ export declare const listEvents: ((input: {
3254
3353
  }) => import("effect/Stream").Stream<{
3255
3354
  readonly items: readonly {
3256
3355
  readonly id: string & import("effect/Brand").Brand<"MailboxEventId">;
3257
- readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "address.attached" | "email.received" | "email.released" | "email.sent" | "mailbox.created" | "thread.created";
3356
+ readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "endpoint.attached" | "endpoint.detached" | "mailbox.created" | "message.received" | "message.released" | "message.sent" | "thread.created";
3258
3357
  readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
3259
3358
  readonly actionId: (string & import("effect/Brand").Brand<"MailboxActionId">) | null;
3260
3359
  readonly actor: {
@@ -3277,7 +3376,7 @@ export declare const listEvents: ((input: {
3277
3376
  readonly before?: string | null | undefined;
3278
3377
  }) => import("effect/Stream").Stream<{
3279
3378
  readonly id: string & import("effect/Brand").Brand<"MailboxEventId">;
3280
- readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "address.attached" | "email.received" | "email.released" | "email.sent" | "mailbox.created" | "thread.created";
3379
+ readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "endpoint.attached" | "endpoint.detached" | "mailbox.created" | "message.received" | "message.released" | "message.sent" | "thread.created";
3281
3380
  readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
3282
3381
  readonly actionId: (string & import("effect/Brand").Brand<"MailboxActionId">) | null;
3283
3382
  readonly actor: {