samva 0.15.0 → 0.17.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.
- package/AGENTS.md +4 -1
- package/README.md +46 -1
- package/dist/analytics-CaqPRsry.js +207 -0
- package/dist/api-keys-Ce1Y4_Ip.js +274 -0
- package/dist/attachments-DYqVIraC.js +140 -0
- package/dist/brands-ZwuOGIWO.js +175 -0
- package/dist/campaigns-DZlz1E9E.js +522 -0
- package/dist/categories-CA4XIQAb.js +1011 -0
- package/dist/client/sdk.gen.d.ts +234 -49
- package/dist/client/types.gen.d.ts +1521 -348
- package/dist/client-DOzUrdTE.js +1115 -0
- package/dist/contact-groups-BLbFXnjq.js +446 -0
- package/dist/contacts-BbsoXXB4.js +787 -0
- package/dist/conversations-_sRHueML.js +494 -0
- package/dist/custom-fields-BHWbwlKn.js +176 -0
- package/dist/effect/analytics.js +2 -21
- package/dist/effect/api-keys.d.ts +1 -0
- package/dist/effect/api-keys.js +2 -25
- package/dist/effect/attachments.js +2 -17
- package/dist/effect/brands.d.ts +1 -1
- package/dist/effect/brands.js +3 -24
- package/dist/effect/campaigns.js +2 -33
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/client.js +3 -4
- package/dist/effect/contact-groups.js +2 -29
- package/dist/effect/contacts.d.ts +52 -0
- package/dist/effect/contacts.js +2 -47
- package/dist/effect/conversations.js +2 -35
- package/dist/effect/custom-fields.js +2 -17
- package/dist/effect/email.d.ts +3 -20
- package/dist/effect/email.js +2 -141
- package/dist/effect/events.d.ts +121 -0
- package/dist/effect/events.js +3 -0
- package/dist/effect/extension-installations.js +2 -27
- package/dist/effect/extensions.js +2 -19
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +3 -13
- package/dist/effect/generated/analytics.d.ts +715 -0
- package/dist/effect/generated/api-keys.d.ts +1627 -0
- package/dist/effect/generated/attachments.d.ts +554 -0
- package/dist/effect/generated/brands.d.ts +1118 -0
- package/dist/effect/generated/campaigns.d.ts +3783 -0
- package/dist/effect/generated/contact-events.d.ts +158 -0
- package/dist/effect/generated/contact-groups.d.ts +1445 -0
- package/dist/effect/generated/contacts.d.ts +3789 -0
- package/dist/effect/generated/conversations.d.ts +2870 -0
- package/dist/effect/generated/custom-fields.d.ts +562 -0
- package/dist/effect/generated/email.d.ts +10622 -0
- package/dist/effect/generated/events.d.ts +463 -0
- package/dist/effect/generated/extension-installations.d.ts +1786 -0
- package/dist/effect/generated/extensions.d.ts +927 -0
- package/dist/effect/generated/feedback.d.ts +116 -0
- package/dist/effect/generated/index.d.ts +61 -0
- package/dist/effect/generated/journeys.d.ts +6135 -0
- package/dist/effect/generated/mailboxes.d.ts +13641 -0
- package/dist/effect/generated/media.d.ts +741 -0
- package/dist/effect/generated/messages.d.ts +2355 -0
- package/dist/effect/generated/namespaces.d.ts +654 -0
- package/dist/effect/generated/operations.d.ts +514 -0
- package/dist/effect/generated/organizations.d.ts +1111 -0
- package/dist/effect/generated/scheduled-messages.d.ts +1798 -0
- package/dist/effect/generated/shared.d.ts +3250 -0
- package/dist/effect/generated/subscriptions.d.ts +188 -0
- package/dist/effect/generated/templates.d.ts +8177 -0
- package/dist/effect/generated/unsubscribe-groups.d.ts +1153 -0
- package/dist/effect/generated/webhooks.d.ts +1697 -0
- package/dist/effect/generated/whoami.d.ts +291 -0
- package/dist/effect/generated-metadata.d.ts +1631 -0
- package/dist/effect/index.d.ts +4 -1
- package/dist/effect/index.js +29 -26
- package/dist/effect/internal/client.d.ts +10 -7
- package/dist/effect/internal/email-sender.d.ts +17 -0
- package/dist/effect/internal/operation.d.ts +12 -72
- package/dist/effect/internal/send.d.ts +60 -0
- package/dist/effect/journeys.d.ts +2153 -0
- package/dist/effect/journeys.js +2 -0
- package/dist/effect/mailboxes.d.ts +255 -205
- package/dist/effect/mailboxes.js +2 -2
- package/dist/effect/media.js +3 -1
- package/dist/effect/messages.d.ts +2 -2
- package/dist/effect/messages.js +3 -1
- package/dist/effect/namespaces.js +2 -19
- package/dist/effect/operations.js +2 -15
- package/dist/effect/organizations.js +2 -23
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.js +2 -19
- package/dist/effect/subscriptions.js +2 -9
- package/dist/effect/templates.d.ts +1 -1
- package/dist/effect/templates.js +3 -78
- package/dist/effect/unsubscribe-groups.js +2 -27
- package/dist/effect/webhooks.d.ts +9 -9
- package/dist/effect/webhooks.js +3 -33
- package/dist/effect/whoami.d.ts +46 -0
- package/dist/effect/whoami.js +2 -0
- package/dist/email-R0NAA9PW.js +2498 -0
- package/dist/events-CxbTUHYT.js +82 -0
- package/dist/extension-installations-CD94LPmk.js +407 -0
- package/dist/extensions-BKyNQLvu.js +220 -0
- package/dist/feedback-Bpa09JOS.js +52 -0
- package/dist/index.js +3 -3
- package/dist/{inline-attachments-UxLeyytJ.js → inline-attachments-Bi1hDltp.js} +2 -2
- package/dist/journeys-CARo_BJT.js +499 -0
- package/dist/mailboxes-BRDn7BIK.js +2470 -0
- package/dist/media-VrrtNnft.js +181 -0
- package/dist/namespaces-CcvEbG-y.js +152 -0
- package/dist/{operation-BZ5Xov-x.js → operation-n_IYgNVK.js} +85 -102
- package/dist/operations-CmB3FHwf.js +93 -0
- package/dist/organizations-A-plufWc.js +252 -0
- package/dist/promises/errors.gen.d.ts +12 -2
- package/dist/promises/index.d.ts +9 -3
- package/dist/promises/index.js +3 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-Cd6Jamqk.js → promises---Kbh-7z.js} +745 -195
- package/dist/runtime-P0l1_2-C.js +25 -0
- package/dist/scheduled-messages-DkKZRRaN.js +207 -0
- package/dist/send-Bxc0XfGE.js +722 -0
- package/dist/service-map.d.ts +101 -15
- package/dist/subscriptions-DEXYtMXg.js +67 -0
- package/dist/templates-DZomxsG7.js +2289 -0
- package/dist/unsubscribe-groups-Iqk4Isf9.js +291 -0
- package/dist/webhooks-CPXuu8Xf.js +530 -0
- package/dist/whoami-Ccz0jwlt.js +59 -0
- package/package.json +17 -3
- package/dist/categories-BGUBFdH9.js +0 -183
- package/dist/client-CDg7zJs0.js +0 -13726
- package/dist/effect/generated.d.ts +0 -64059
- package/dist/mailboxes-BH_JPmOE.js +0 -159
|
@@ -51,7 +51,11 @@ export declare const list: ((input?: {
|
|
|
51
51
|
};
|
|
52
52
|
export declare const create: (input: {
|
|
53
53
|
readonly namespaceId?: string | null | undefined;
|
|
54
|
-
readonly
|
|
54
|
+
readonly endpoint: {
|
|
55
|
+
readonly channel: "email";
|
|
56
|
+
readonly address: string;
|
|
57
|
+
readonly displayName?: string | null | undefined;
|
|
58
|
+
};
|
|
55
59
|
readonly name: string;
|
|
56
60
|
readonly slug?: string | null | undefined;
|
|
57
61
|
readonly metadata?: {
|
|
@@ -69,19 +73,17 @@ export declare const create: (input: {
|
|
|
69
73
|
readonly metadata: {
|
|
70
74
|
readonly [x: string]: string;
|
|
71
75
|
};
|
|
72
|
-
readonly
|
|
73
|
-
readonly id: string & import("effect/Brand").Brand<"
|
|
76
|
+
readonly endpoints: readonly {
|
|
77
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
74
78
|
readonly address: string;
|
|
79
|
+
readonly displayName: string | null;
|
|
80
|
+
readonly default: boolean;
|
|
81
|
+
readonly channel: "email";
|
|
75
82
|
readonly source: "samvaHosted" | "verifiedDomain";
|
|
76
83
|
readonly domainId: string | null;
|
|
77
|
-
readonly displayName: string | null;
|
|
78
84
|
}[];
|
|
79
|
-
readonly defaultFrom: {
|
|
80
|
-
readonly address: string;
|
|
81
|
-
readonly displayName: string | null;
|
|
82
|
-
} | null;
|
|
83
85
|
readonly updatedAt: string;
|
|
84
|
-
}, 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>;
|
|
85
87
|
export declare const get: (input: {
|
|
86
88
|
readonly id: string;
|
|
87
89
|
}) => import("effect/Effect").Effect<{
|
|
@@ -96,17 +98,15 @@ export declare const get: (input: {
|
|
|
96
98
|
readonly metadata: {
|
|
97
99
|
readonly [x: string]: string;
|
|
98
100
|
};
|
|
99
|
-
readonly
|
|
100
|
-
readonly id: string & import("effect/Brand").Brand<"
|
|
101
|
+
readonly endpoints: readonly {
|
|
102
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
101
103
|
readonly address: string;
|
|
104
|
+
readonly displayName: string | null;
|
|
105
|
+
readonly default: boolean;
|
|
106
|
+
readonly channel: "email";
|
|
102
107
|
readonly source: "samvaHosted" | "verifiedDomain";
|
|
103
108
|
readonly domainId: string | null;
|
|
104
|
-
readonly displayName: string | null;
|
|
105
109
|
}[];
|
|
106
|
-
readonly defaultFrom: {
|
|
107
|
-
readonly address: string;
|
|
108
|
-
readonly displayName: string | null;
|
|
109
|
-
} | null;
|
|
110
110
|
readonly updatedAt: string;
|
|
111
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>;
|
|
112
112
|
export declare const update: (input: {
|
|
@@ -115,10 +115,6 @@ export declare const update: (input: {
|
|
|
115
115
|
readonly metadata?: {
|
|
116
116
|
readonly [x: string]: string | null | undefined;
|
|
117
117
|
} | null | undefined;
|
|
118
|
-
readonly defaultFrom?: {
|
|
119
|
-
readonly address: string;
|
|
120
|
-
readonly displayName?: string | null | undefined;
|
|
121
|
-
} | null | undefined;
|
|
122
118
|
}) => import("effect/Effect").Effect<{
|
|
123
119
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
124
120
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
@@ -131,17 +127,15 @@ export declare const update: (input: {
|
|
|
131
127
|
readonly metadata: {
|
|
132
128
|
readonly [x: string]: string;
|
|
133
129
|
};
|
|
134
|
-
readonly
|
|
135
|
-
readonly id: string & import("effect/Brand").Brand<"
|
|
130
|
+
readonly endpoints: readonly {
|
|
131
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
136
132
|
readonly address: string;
|
|
133
|
+
readonly displayName: string | null;
|
|
134
|
+
readonly default: boolean;
|
|
135
|
+
readonly channel: "email";
|
|
137
136
|
readonly source: "samvaHosted" | "verifiedDomain";
|
|
138
137
|
readonly domainId: string | null;
|
|
139
|
-
readonly displayName: string | null;
|
|
140
138
|
}[];
|
|
141
|
-
readonly defaultFrom: {
|
|
142
|
-
readonly address: string;
|
|
143
|
-
readonly displayName: string | null;
|
|
144
|
-
} | null;
|
|
145
139
|
readonly updatedAt: string;
|
|
146
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>;
|
|
147
141
|
export declare const remove: (input: {
|
|
@@ -149,8 +143,9 @@ export declare const remove: (input: {
|
|
|
149
143
|
}) => import("effect/Effect").Effect<{
|
|
150
144
|
readonly success: boolean;
|
|
151
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>;
|
|
152
|
-
export declare const
|
|
146
|
+
export declare const createEndpoint: (input: {
|
|
153
147
|
readonly id: string;
|
|
148
|
+
readonly channel: "email";
|
|
154
149
|
readonly address: string;
|
|
155
150
|
readonly displayName?: string | null | undefined;
|
|
156
151
|
}) => import("effect/Effect").Effect<{
|
|
@@ -165,22 +160,22 @@ export declare const createAddress: (input: {
|
|
|
165
160
|
readonly metadata: {
|
|
166
161
|
readonly [x: string]: string;
|
|
167
162
|
};
|
|
168
|
-
readonly
|
|
169
|
-
readonly id: string & import("effect/Brand").Brand<"
|
|
163
|
+
readonly endpoints: readonly {
|
|
164
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
170
165
|
readonly address: string;
|
|
166
|
+
readonly displayName: string | null;
|
|
167
|
+
readonly default: boolean;
|
|
168
|
+
readonly channel: "email";
|
|
171
169
|
readonly source: "samvaHosted" | "verifiedDomain";
|
|
172
170
|
readonly domainId: string | null;
|
|
173
|
-
readonly displayName: string | null;
|
|
174
171
|
}[];
|
|
175
|
-
readonly defaultFrom: {
|
|
176
|
-
readonly address: string;
|
|
177
|
-
readonly displayName: string | null;
|
|
178
|
-
} | null;
|
|
179
172
|
readonly updatedAt: string;
|
|
180
|
-
}, import("./generated").ConflictError | 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>;
|
|
181
|
-
export declare const
|
|
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: {
|
|
182
175
|
readonly id: string;
|
|
183
|
-
readonly
|
|
176
|
+
readonly endpointId: string;
|
|
177
|
+
readonly displayName?: string | null | undefined;
|
|
178
|
+
readonly default?: true | null | undefined;
|
|
184
179
|
}) => import("effect/Effect").Effect<{
|
|
185
180
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
186
181
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
@@ -193,17 +188,41 @@ export declare const removeAddress: (input: {
|
|
|
193
188
|
readonly metadata: {
|
|
194
189
|
readonly [x: string]: string;
|
|
195
190
|
};
|
|
196
|
-
readonly
|
|
197
|
-
readonly id: string & import("effect/Brand").Brand<"
|
|
191
|
+
readonly endpoints: readonly {
|
|
192
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
198
193
|
readonly address: string;
|
|
194
|
+
readonly displayName: string | null;
|
|
195
|
+
readonly default: boolean;
|
|
196
|
+
readonly channel: "email";
|
|
199
197
|
readonly source: "samvaHosted" | "verifiedDomain";
|
|
200
198
|
readonly domainId: string | null;
|
|
201
|
-
readonly displayName: string | null;
|
|
202
199
|
}[];
|
|
203
|
-
readonly
|
|
200
|
+
readonly updatedAt: string;
|
|
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>;
|
|
202
|
+
export declare const removeEndpoint: (input: {
|
|
203
|
+
readonly id: string;
|
|
204
|
+
readonly endpointId: string;
|
|
205
|
+
}) => import("effect/Effect").Effect<{
|
|
206
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
207
|
+
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
208
|
+
readonly slug: string;
|
|
209
|
+
readonly name: string;
|
|
210
|
+
readonly status: "active" | "paused";
|
|
211
|
+
readonly primaryAddress: string | null;
|
|
212
|
+
readonly createdAt: string;
|
|
213
|
+
readonly description: string | null;
|
|
214
|
+
readonly metadata: {
|
|
215
|
+
readonly [x: string]: string;
|
|
216
|
+
};
|
|
217
|
+
readonly endpoints: readonly {
|
|
218
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
204
219
|
readonly address: string;
|
|
205
220
|
readonly displayName: string | null;
|
|
206
|
-
|
|
221
|
+
readonly default: boolean;
|
|
222
|
+
readonly channel: "email";
|
|
223
|
+
readonly source: "samvaHosted" | "verifiedDomain";
|
|
224
|
+
readonly domainId: string | null;
|
|
225
|
+
}[];
|
|
207
226
|
readonly updatedAt: string;
|
|
208
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>;
|
|
209
228
|
export declare const pause: (input: {
|
|
@@ -220,17 +239,15 @@ export declare const pause: (input: {
|
|
|
220
239
|
readonly metadata: {
|
|
221
240
|
readonly [x: string]: string;
|
|
222
241
|
};
|
|
223
|
-
readonly
|
|
224
|
-
readonly id: string & import("effect/Brand").Brand<"
|
|
242
|
+
readonly endpoints: readonly {
|
|
243
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
225
244
|
readonly address: string;
|
|
245
|
+
readonly displayName: string | null;
|
|
246
|
+
readonly default: boolean;
|
|
247
|
+
readonly channel: "email";
|
|
226
248
|
readonly source: "samvaHosted" | "verifiedDomain";
|
|
227
249
|
readonly domainId: string | null;
|
|
228
|
-
readonly displayName: string | null;
|
|
229
250
|
}[];
|
|
230
|
-
readonly defaultFrom: {
|
|
231
|
-
readonly address: string;
|
|
232
|
-
readonly displayName: string | null;
|
|
233
|
-
} | null;
|
|
234
251
|
readonly updatedAt: string;
|
|
235
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>;
|
|
236
253
|
export declare const resume: (input: {
|
|
@@ -247,17 +264,15 @@ export declare const resume: (input: {
|
|
|
247
264
|
readonly metadata: {
|
|
248
265
|
readonly [x: string]: string;
|
|
249
266
|
};
|
|
250
|
-
readonly
|
|
251
|
-
readonly id: string & import("effect/Brand").Brand<"
|
|
267
|
+
readonly endpoints: readonly {
|
|
268
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
252
269
|
readonly address: string;
|
|
270
|
+
readonly displayName: string | null;
|
|
271
|
+
readonly default: boolean;
|
|
272
|
+
readonly channel: "email";
|
|
253
273
|
readonly source: "samvaHosted" | "verifiedDomain";
|
|
254
274
|
readonly domainId: string | null;
|
|
255
|
-
readonly displayName: string | null;
|
|
256
275
|
}[];
|
|
257
|
-
readonly defaultFrom: {
|
|
258
|
-
readonly address: string;
|
|
259
|
-
readonly displayName: string | null;
|
|
260
|
-
} | null;
|
|
261
276
|
readonly updatedAt: string;
|
|
262
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>;
|
|
263
278
|
export declare const getAgentActivity: (input: {
|
|
@@ -277,7 +292,7 @@ export declare const getAgentActivity: (input: {
|
|
|
277
292
|
};
|
|
278
293
|
readonly events: {
|
|
279
294
|
readonly byType: readonly {
|
|
280
|
-
readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "
|
|
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";
|
|
281
296
|
readonly count: number;
|
|
282
297
|
}[];
|
|
283
298
|
};
|
|
@@ -503,6 +518,8 @@ export declare const listThreads: ((input: {
|
|
|
503
518
|
}) => import("effect/Effect").Effect<{
|
|
504
519
|
readonly items: readonly {
|
|
505
520
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
521
|
+
readonly channel: "email";
|
|
522
|
+
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
506
523
|
readonly subject: string | null;
|
|
507
524
|
readonly preview: string | null;
|
|
508
525
|
readonly from: {
|
|
@@ -537,6 +554,8 @@ export declare const listThreads: ((input: {
|
|
|
537
554
|
}) => import("effect/Stream").Stream<{
|
|
538
555
|
readonly items: readonly {
|
|
539
556
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
557
|
+
readonly channel: "email";
|
|
558
|
+
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
540
559
|
readonly subject: string | null;
|
|
541
560
|
readonly preview: string | null;
|
|
542
561
|
readonly from: {
|
|
@@ -570,6 +589,8 @@ export declare const listThreads: ((input: {
|
|
|
570
589
|
readonly snoozed?: "false" | "true" | null | undefined;
|
|
571
590
|
}) => import("effect/Stream").Stream<{
|
|
572
591
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
592
|
+
readonly channel: "email";
|
|
593
|
+
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
573
594
|
readonly subject: string | null;
|
|
574
595
|
readonly preview: string | null;
|
|
575
596
|
readonly from: {
|
|
@@ -593,6 +614,8 @@ export declare const getThread: (input: {
|
|
|
593
614
|
readonly threadId: string;
|
|
594
615
|
}) => import("effect/Effect").Effect<{
|
|
595
616
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
617
|
+
readonly channel: "email";
|
|
618
|
+
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
596
619
|
readonly subject: string | null;
|
|
597
620
|
readonly preview: string | null;
|
|
598
621
|
readonly from: {
|
|
@@ -672,6 +695,7 @@ export declare const listThreadMessages: ((input: {
|
|
|
672
695
|
}) => import("effect/Effect").Effect<{
|
|
673
696
|
readonly items: readonly {
|
|
674
697
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
698
|
+
readonly channel: "email";
|
|
675
699
|
readonly direction: "inbound" | "outbound";
|
|
676
700
|
readonly from: {
|
|
677
701
|
readonly actor?: {
|
|
@@ -698,6 +722,7 @@ export declare const listThreadMessages: ((input: {
|
|
|
698
722
|
}) => import("effect/Stream").Stream<{
|
|
699
723
|
readonly items: readonly {
|
|
700
724
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
725
|
+
readonly channel: "email";
|
|
701
726
|
readonly direction: "inbound" | "outbound";
|
|
702
727
|
readonly from: {
|
|
703
728
|
readonly actor?: {
|
|
@@ -723,6 +748,7 @@ export declare const listThreadMessages: ((input: {
|
|
|
723
748
|
readonly cursor?: string | null | undefined;
|
|
724
749
|
}) => import("effect/Stream").Stream<{
|
|
725
750
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
751
|
+
readonly channel: "email";
|
|
726
752
|
readonly direction: "inbound" | "outbound";
|
|
727
753
|
readonly from: {
|
|
728
754
|
readonly actor?: {
|
|
@@ -760,6 +786,13 @@ export declare const getThreadContent: ((input: {
|
|
|
760
786
|
readonly displayName?: string | null;
|
|
761
787
|
readonly address: string;
|
|
762
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";
|
|
763
796
|
readonly recipients: readonly {
|
|
764
797
|
readonly kind: "bcc" | "cc" | "to";
|
|
765
798
|
readonly actor?: {
|
|
@@ -792,12 +825,6 @@ export declare const getThreadContent: ((input: {
|
|
|
792
825
|
readonly size: number;
|
|
793
826
|
readonly isInline: boolean;
|
|
794
827
|
}[];
|
|
795
|
-
readonly sentBy?: {
|
|
796
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
797
|
-
readonly id: string;
|
|
798
|
-
readonly displayName?: string | null;
|
|
799
|
-
} | null;
|
|
800
|
-
readonly occurredAt: string;
|
|
801
828
|
}[];
|
|
802
829
|
readonly nextCursor: string | null;
|
|
803
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>) & {
|
|
@@ -821,6 +848,13 @@ export declare const getThreadContent: ((input: {
|
|
|
821
848
|
readonly displayName?: string | null;
|
|
822
849
|
readonly address: string;
|
|
823
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";
|
|
824
858
|
readonly recipients: readonly {
|
|
825
859
|
readonly kind: "bcc" | "cc" | "to";
|
|
826
860
|
readonly actor?: {
|
|
@@ -853,12 +887,6 @@ export declare const getThreadContent: ((input: {
|
|
|
853
887
|
readonly size: number;
|
|
854
888
|
readonly isInline: boolean;
|
|
855
889
|
}[];
|
|
856
|
-
readonly sentBy?: {
|
|
857
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
858
|
-
readonly id: string;
|
|
859
|
-
readonly displayName?: string | null;
|
|
860
|
-
} | null;
|
|
861
|
-
readonly occurredAt: string;
|
|
862
890
|
}[];
|
|
863
891
|
readonly nextCursor: string | null;
|
|
864
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>;
|
|
@@ -881,6 +909,13 @@ export declare const getThreadContent: ((input: {
|
|
|
881
909
|
readonly displayName?: string | null;
|
|
882
910
|
readonly address: string;
|
|
883
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";
|
|
884
919
|
readonly recipients: readonly {
|
|
885
920
|
readonly kind: "bcc" | "cc" | "to";
|
|
886
921
|
readonly actor?: {
|
|
@@ -913,12 +948,6 @@ export declare const getThreadContent: ((input: {
|
|
|
913
948
|
readonly size: number;
|
|
914
949
|
readonly isInline: boolean;
|
|
915
950
|
}[];
|
|
916
|
-
readonly sentBy?: {
|
|
917
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
918
|
-
readonly id: string;
|
|
919
|
-
readonly displayName?: string | null;
|
|
920
|
-
} | null;
|
|
921
|
-
readonly occurredAt: string;
|
|
922
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>;
|
|
923
952
|
};
|
|
924
953
|
export declare const listThreadNotes: ((input: {
|
|
@@ -1030,6 +1059,7 @@ export declare const deleteNote: (input: {
|
|
|
1030
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>;
|
|
1031
1060
|
export declare const sendMessage: (input: {
|
|
1032
1061
|
readonly id: string;
|
|
1062
|
+
readonly channel?: "email" | null | undefined;
|
|
1033
1063
|
readonly to: readonly string[];
|
|
1034
1064
|
readonly cc?: readonly string[] | null | undefined;
|
|
1035
1065
|
readonly bcc?: readonly string[] | null | undefined;
|
|
@@ -1182,7 +1212,7 @@ export declare const sendMessage: (input: {
|
|
|
1182
1212
|
} | null;
|
|
1183
1213
|
readonly createdAt: string;
|
|
1184
1214
|
readonly updatedAt: string;
|
|
1185
|
-
}, 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>;
|
|
1186
1216
|
export declare const getMessage: (input: {
|
|
1187
1217
|
readonly id: string;
|
|
1188
1218
|
readonly messageId: string;
|
|
@@ -1200,6 +1230,13 @@ export declare const getMessage: (input: {
|
|
|
1200
1230
|
readonly displayName?: string | null;
|
|
1201
1231
|
readonly address: string;
|
|
1202
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";
|
|
1203
1240
|
readonly recipients: readonly {
|
|
1204
1241
|
readonly kind: "bcc" | "cc" | "to";
|
|
1205
1242
|
readonly actor?: {
|
|
@@ -1232,12 +1269,6 @@ export declare const getMessage: (input: {
|
|
|
1232
1269
|
readonly size: number;
|
|
1233
1270
|
readonly isInline: boolean;
|
|
1234
1271
|
}[];
|
|
1235
|
-
readonly sentBy?: {
|
|
1236
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1237
|
-
readonly id: string;
|
|
1238
|
-
readonly displayName?: string | null;
|
|
1239
|
-
} | null;
|
|
1240
|
-
readonly occurredAt: string;
|
|
1241
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>;
|
|
1242
1273
|
export declare const getMessageRaw: (input: {
|
|
1243
1274
|
readonly id: string;
|
|
@@ -1268,6 +1299,7 @@ export declare const copyMessageAttachment: (input: {
|
|
|
1268
1299
|
export declare const reply: (input: {
|
|
1269
1300
|
readonly id: string;
|
|
1270
1301
|
readonly messageId: string;
|
|
1302
|
+
readonly channel?: "email" | null | undefined;
|
|
1271
1303
|
readonly cc?: readonly string[] | null | undefined;
|
|
1272
1304
|
readonly bcc?: readonly string[] | null | undefined;
|
|
1273
1305
|
readonly text?: string | null | undefined;
|
|
@@ -1417,10 +1449,11 @@ export declare const reply: (input: {
|
|
|
1417
1449
|
} | null;
|
|
1418
1450
|
readonly createdAt: string;
|
|
1419
1451
|
readonly updatedAt: string;
|
|
1420
|
-
}, 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>;
|
|
1421
1453
|
export declare const replyAll: (input: {
|
|
1422
1454
|
readonly id: string;
|
|
1423
1455
|
readonly messageId: string;
|
|
1456
|
+
readonly channel?: "email" | null | undefined;
|
|
1424
1457
|
readonly cc?: readonly string[] | null | undefined;
|
|
1425
1458
|
readonly bcc?: readonly string[] | null | undefined;
|
|
1426
1459
|
readonly text?: string | null | undefined;
|
|
@@ -1570,7 +1603,7 @@ export declare const replyAll: (input: {
|
|
|
1570
1603
|
} | null;
|
|
1571
1604
|
readonly createdAt: string;
|
|
1572
1605
|
readonly updatedAt: string;
|
|
1573
|
-
}, 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>;
|
|
1574
1607
|
export declare const forward: (input: {
|
|
1575
1608
|
readonly id: string;
|
|
1576
1609
|
readonly messageId: string;
|
|
@@ -1724,7 +1757,7 @@ export declare const forward: (input: {
|
|
|
1724
1757
|
} | null;
|
|
1725
1758
|
readonly createdAt: string;
|
|
1726
1759
|
readonly updatedAt: string;
|
|
1727
|
-
}, 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>;
|
|
1728
1761
|
export declare const listQuarantine: ((input: {
|
|
1729
1762
|
readonly id: string;
|
|
1730
1763
|
readonly limit?: string | null | undefined;
|
|
@@ -1844,6 +1877,7 @@ export declare const listDrafts: ((input: {
|
|
|
1844
1877
|
}) => import("effect/Effect").Effect<{
|
|
1845
1878
|
readonly items: readonly {
|
|
1846
1879
|
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
1880
|
+
readonly channel: "email";
|
|
1847
1881
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1848
1882
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1849
1883
|
readonly state: "locked" | "saved" | "sent";
|
|
@@ -1863,6 +1897,7 @@ export declare const listDrafts: ((input: {
|
|
|
1863
1897
|
}) => import("effect/Stream").Stream<{
|
|
1864
1898
|
readonly items: readonly {
|
|
1865
1899
|
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
1900
|
+
readonly channel: "email";
|
|
1866
1901
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1867
1902
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1868
1903
|
readonly state: "locked" | "saved" | "sent";
|
|
@@ -1881,6 +1916,7 @@ export declare const listDrafts: ((input: {
|
|
|
1881
1916
|
readonly threadId?: string | null | undefined;
|
|
1882
1917
|
}) => import("effect/Stream").Stream<{
|
|
1883
1918
|
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
1919
|
+
readonly channel: "email";
|
|
1884
1920
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1885
1921
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1886
1922
|
readonly state: "locked" | "saved" | "sent";
|
|
@@ -1893,6 +1929,8 @@ export declare const listDrafts: ((input: {
|
|
|
1893
1929
|
};
|
|
1894
1930
|
export declare const createDraft: (input: {
|
|
1895
1931
|
readonly id: string;
|
|
1932
|
+
readonly channel?: "email" | null | undefined;
|
|
1933
|
+
readonly endpointId?: string | null | undefined;
|
|
1896
1934
|
readonly to?: readonly string[] | null | undefined;
|
|
1897
1935
|
readonly cc?: readonly string[] | null | undefined;
|
|
1898
1936
|
readonly bcc?: readonly string[] | null | undefined;
|
|
@@ -1910,6 +1948,7 @@ export declare const createDraft: (input: {
|
|
|
1910
1948
|
readonly inReplyToMessageId?: string | null | undefined;
|
|
1911
1949
|
}) => import("effect/Effect").Effect<{
|
|
1912
1950
|
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
1951
|
+
readonly channel: "email";
|
|
1913
1952
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1914
1953
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1915
1954
|
readonly state: "locked" | "saved" | "sent";
|
|
@@ -1918,6 +1957,7 @@ export declare const createDraft: (input: {
|
|
|
1918
1957
|
readonly subject: string | null;
|
|
1919
1958
|
readonly createdAt: string;
|
|
1920
1959
|
readonly updatedAt: string;
|
|
1960
|
+
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
1921
1961
|
readonly cc: readonly string[];
|
|
1922
1962
|
readonly bcc: readonly string[];
|
|
1923
1963
|
readonly replyTo: readonly string[];
|
|
@@ -1930,12 +1970,13 @@ export declare const createDraft: (input: {
|
|
|
1930
1970
|
readonly contentType: string;
|
|
1931
1971
|
readonly size: number;
|
|
1932
1972
|
}[];
|
|
1933
|
-
}, 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>;
|
|
1934
1974
|
export declare const getDraft: (input: {
|
|
1935
1975
|
readonly id: string;
|
|
1936
1976
|
readonly draftId: string;
|
|
1937
1977
|
}) => import("effect/Effect").Effect<{
|
|
1938
1978
|
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
1979
|
+
readonly channel: "email";
|
|
1939
1980
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1940
1981
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1941
1982
|
readonly state: "locked" | "saved" | "sent";
|
|
@@ -1944,6 +1985,7 @@ export declare const getDraft: (input: {
|
|
|
1944
1985
|
readonly subject: string | null;
|
|
1945
1986
|
readonly createdAt: string;
|
|
1946
1987
|
readonly updatedAt: string;
|
|
1988
|
+
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
1947
1989
|
readonly cc: readonly string[];
|
|
1948
1990
|
readonly bcc: readonly string[];
|
|
1949
1991
|
readonly replyTo: readonly string[];
|
|
@@ -1976,6 +2018,7 @@ export declare const updateDraft: (input: {
|
|
|
1976
2018
|
}[] | null | undefined;
|
|
1977
2019
|
}) => import("effect/Effect").Effect<{
|
|
1978
2020
|
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
2021
|
+
readonly channel: "email";
|
|
1979
2022
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1980
2023
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1981
2024
|
readonly state: "locked" | "saved" | "sent";
|
|
@@ -1984,6 +2027,7 @@ export declare const updateDraft: (input: {
|
|
|
1984
2027
|
readonly subject: string | null;
|
|
1985
2028
|
readonly createdAt: string;
|
|
1986
2029
|
readonly updatedAt: string;
|
|
2030
|
+
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
1987
2031
|
readonly cc: readonly string[];
|
|
1988
2032
|
readonly bcc: readonly string[];
|
|
1989
2033
|
readonly replyTo: readonly string[];
|
|
@@ -2144,7 +2188,7 @@ export declare const sendDraft: (input: {
|
|
|
2144
2188
|
} | null;
|
|
2145
2189
|
readonly createdAt: string;
|
|
2146
2190
|
readonly updatedAt: string;
|
|
2147
|
-
}, 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>;
|
|
2148
2192
|
export declare const listActions: ((input: {
|
|
2149
2193
|
readonly id: string;
|
|
2150
2194
|
readonly limit?: string | null | undefined;
|
|
@@ -2155,6 +2199,27 @@ export declare const listActions: ((input: {
|
|
|
2155
2199
|
readonly before?: string | null | undefined;
|
|
2156
2200
|
}) => import("effect/Effect").Effect<{
|
|
2157
2201
|
readonly items: readonly ({
|
|
2202
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2203
|
+
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2204
|
+
readonly proposedBy: {
|
|
2205
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2206
|
+
readonly id: string;
|
|
2207
|
+
readonly displayName?: string | null;
|
|
2208
|
+
};
|
|
2209
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2210
|
+
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2211
|
+
readonly decision: {
|
|
2212
|
+
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
2213
|
+
readonly reason: string | null;
|
|
2214
|
+
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
2215
|
+
readonly source: "grant" | "installation" | "policy" | null;
|
|
2216
|
+
readonly decidedAt: string;
|
|
2217
|
+
} | null;
|
|
2218
|
+
readonly createdAt: string;
|
|
2219
|
+
readonly updatedAt: string;
|
|
2220
|
+
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
|
|
2221
|
+
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
2222
|
+
} | {
|
|
2158
2223
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2159
2224
|
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2160
2225
|
readonly proposedBy: {
|
|
@@ -2245,6 +2310,7 @@ export declare const listActions: ((input: {
|
|
|
2245
2310
|
readonly updatedAt: string;
|
|
2246
2311
|
};
|
|
2247
2312
|
readonly intent: {
|
|
2313
|
+
readonly channel: "email";
|
|
2248
2314
|
readonly draftRevision: number;
|
|
2249
2315
|
readonly from: string;
|
|
2250
2316
|
readonly fromName: string | null;
|
|
@@ -2266,27 +2332,6 @@ export declare const listActions: ((input: {
|
|
|
2266
2332
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
2267
2333
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2268
2334
|
} | null;
|
|
2269
|
-
} | {
|
|
2270
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2271
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2272
|
-
readonly proposedBy: {
|
|
2273
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2274
|
-
readonly id: string;
|
|
2275
|
-
readonly displayName?: string | null;
|
|
2276
|
-
};
|
|
2277
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2278
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2279
|
-
readonly decision: {
|
|
2280
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
2281
|
-
readonly reason: string | null;
|
|
2282
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
2283
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
2284
|
-
readonly decidedAt: string;
|
|
2285
|
-
} | null;
|
|
2286
|
-
readonly createdAt: string;
|
|
2287
|
-
readonly updatedAt: string;
|
|
2288
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
|
|
2289
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
2290
2335
|
})[];
|
|
2291
2336
|
readonly nextCursor: string | null;
|
|
2292
2337
|
}, 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>) & {
|
|
@@ -2300,6 +2345,27 @@ export declare const listActions: ((input: {
|
|
|
2300
2345
|
readonly before?: string | null | undefined;
|
|
2301
2346
|
}) => import("effect/Stream").Stream<{
|
|
2302
2347
|
readonly items: readonly ({
|
|
2348
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2349
|
+
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2350
|
+
readonly proposedBy: {
|
|
2351
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2352
|
+
readonly id: string;
|
|
2353
|
+
readonly displayName?: string | null;
|
|
2354
|
+
};
|
|
2355
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2356
|
+
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2357
|
+
readonly decision: {
|
|
2358
|
+
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
2359
|
+
readonly reason: string | null;
|
|
2360
|
+
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
2361
|
+
readonly source: "grant" | "installation" | "policy" | null;
|
|
2362
|
+
readonly decidedAt: string;
|
|
2363
|
+
} | null;
|
|
2364
|
+
readonly createdAt: string;
|
|
2365
|
+
readonly updatedAt: string;
|
|
2366
|
+
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
|
|
2367
|
+
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
2368
|
+
} | {
|
|
2303
2369
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2304
2370
|
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2305
2371
|
readonly proposedBy: {
|
|
@@ -2390,6 +2456,7 @@ export declare const listActions: ((input: {
|
|
|
2390
2456
|
readonly updatedAt: string;
|
|
2391
2457
|
};
|
|
2392
2458
|
readonly intent: {
|
|
2459
|
+
readonly channel: "email";
|
|
2393
2460
|
readonly draftRevision: number;
|
|
2394
2461
|
readonly from: string;
|
|
2395
2462
|
readonly fromName: string | null;
|
|
@@ -2411,27 +2478,6 @@ export declare const listActions: ((input: {
|
|
|
2411
2478
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
2412
2479
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2413
2480
|
} | null;
|
|
2414
|
-
} | {
|
|
2415
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2416
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2417
|
-
readonly proposedBy: {
|
|
2418
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2419
|
-
readonly id: string;
|
|
2420
|
-
readonly displayName?: string | null;
|
|
2421
|
-
};
|
|
2422
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2423
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2424
|
-
readonly decision: {
|
|
2425
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
2426
|
-
readonly reason: string | null;
|
|
2427
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
2428
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
2429
|
-
readonly decidedAt: string;
|
|
2430
|
-
} | null;
|
|
2431
|
-
readonly createdAt: string;
|
|
2432
|
-
readonly updatedAt: string;
|
|
2433
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
|
|
2434
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
2435
2481
|
})[];
|
|
2436
2482
|
readonly nextCursor: string | null;
|
|
2437
2483
|
}, 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>;
|
|
@@ -2444,6 +2490,27 @@ export declare const listActions: ((input: {
|
|
|
2444
2490
|
readonly after?: string | null | undefined;
|
|
2445
2491
|
readonly before?: string | null | undefined;
|
|
2446
2492
|
}) => import("effect/Stream").Stream<{
|
|
2493
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2494
|
+
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2495
|
+
readonly proposedBy: {
|
|
2496
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2497
|
+
readonly id: string;
|
|
2498
|
+
readonly displayName?: string | null;
|
|
2499
|
+
};
|
|
2500
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2501
|
+
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2502
|
+
readonly decision: {
|
|
2503
|
+
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
2504
|
+
readonly reason: string | null;
|
|
2505
|
+
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
2506
|
+
readonly source: "grant" | "installation" | "policy" | null;
|
|
2507
|
+
readonly decidedAt: string;
|
|
2508
|
+
} | null;
|
|
2509
|
+
readonly createdAt: string;
|
|
2510
|
+
readonly updatedAt: string;
|
|
2511
|
+
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
|
|
2512
|
+
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
2513
|
+
} | {
|
|
2447
2514
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2448
2515
|
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2449
2516
|
readonly proposedBy: {
|
|
@@ -2534,6 +2601,7 @@ export declare const listActions: ((input: {
|
|
|
2534
2601
|
readonly updatedAt: string;
|
|
2535
2602
|
};
|
|
2536
2603
|
readonly intent: {
|
|
2604
|
+
readonly channel: "email";
|
|
2537
2605
|
readonly draftRevision: number;
|
|
2538
2606
|
readonly from: string;
|
|
2539
2607
|
readonly fromName: string | null;
|
|
@@ -2555,33 +2623,33 @@ export declare const listActions: ((input: {
|
|
|
2555
2623
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
2556
2624
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2557
2625
|
} | null;
|
|
2558
|
-
} | {
|
|
2559
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2560
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2561
|
-
readonly proposedBy: {
|
|
2562
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2563
|
-
readonly id: string;
|
|
2564
|
-
readonly displayName?: string | null;
|
|
2565
|
-
};
|
|
2566
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2567
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2568
|
-
readonly decision: {
|
|
2569
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
2570
|
-
readonly reason: string | null;
|
|
2571
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
2572
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
2573
|
-
readonly decidedAt: string;
|
|
2574
|
-
} | null;
|
|
2575
|
-
readonly createdAt: string;
|
|
2576
|
-
readonly updatedAt: string;
|
|
2577
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
|
|
2578
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
2579
2626
|
}, 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>;
|
|
2580
2627
|
};
|
|
2581
2628
|
export declare const getAction: (input: {
|
|
2582
2629
|
readonly id: string;
|
|
2583
2630
|
readonly actionId: string;
|
|
2584
2631
|
}) => import("effect/Effect").Effect<{
|
|
2632
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2633
|
+
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2634
|
+
readonly proposedBy: {
|
|
2635
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2636
|
+
readonly id: string;
|
|
2637
|
+
readonly displayName?: string | null;
|
|
2638
|
+
};
|
|
2639
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2640
|
+
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2641
|
+
readonly decision: {
|
|
2642
|
+
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
2643
|
+
readonly reason: string | null;
|
|
2644
|
+
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
2645
|
+
readonly source: "grant" | "installation" | "policy" | null;
|
|
2646
|
+
readonly decidedAt: string;
|
|
2647
|
+
} | null;
|
|
2648
|
+
readonly createdAt: string;
|
|
2649
|
+
readonly updatedAt: string;
|
|
2650
|
+
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
|
|
2651
|
+
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
2652
|
+
} | {
|
|
2585
2653
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2586
2654
|
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2587
2655
|
readonly proposedBy: {
|
|
@@ -2672,6 +2740,7 @@ export declare const getAction: (input: {
|
|
|
2672
2740
|
readonly updatedAt: string;
|
|
2673
2741
|
};
|
|
2674
2742
|
readonly intent: {
|
|
2743
|
+
readonly channel: "email";
|
|
2675
2744
|
readonly draftRevision: number;
|
|
2676
2745
|
readonly from: string;
|
|
2677
2746
|
readonly fromName: string | null;
|
|
@@ -2693,27 +2762,6 @@ export declare const getAction: (input: {
|
|
|
2693
2762
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
2694
2763
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2695
2764
|
} | null;
|
|
2696
|
-
} | {
|
|
2697
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2698
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2699
|
-
readonly proposedBy: {
|
|
2700
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2701
|
-
readonly id: string;
|
|
2702
|
-
readonly displayName?: string | null;
|
|
2703
|
-
};
|
|
2704
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2705
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2706
|
-
readonly decision: {
|
|
2707
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
2708
|
-
readonly reason: string | null;
|
|
2709
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
2710
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
2711
|
-
readonly decidedAt: string;
|
|
2712
|
-
} | null;
|
|
2713
|
-
readonly createdAt: string;
|
|
2714
|
-
readonly updatedAt: string;
|
|
2715
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
|
|
2716
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
2717
2765
|
}, 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>;
|
|
2718
2766
|
export declare const cancelAction: (input: {
|
|
2719
2767
|
readonly id: string;
|
|
@@ -2854,7 +2902,7 @@ export declare const cancelAction: (input: {
|
|
|
2854
2902
|
} | null;
|
|
2855
2903
|
readonly createdAt: string;
|
|
2856
2904
|
readonly updatedAt: string;
|
|
2857
|
-
}, 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>;
|
|
2858
2906
|
export declare const retryAction: (input: {
|
|
2859
2907
|
readonly id: string;
|
|
2860
2908
|
readonly actionId: string;
|
|
@@ -2994,11 +3042,32 @@ export declare const retryAction: (input: {
|
|
|
2994
3042
|
} | null;
|
|
2995
3043
|
readonly createdAt: string;
|
|
2996
3044
|
readonly updatedAt: string;
|
|
2997
|
-
}, 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>;
|
|
2998
3046
|
export declare const approveAction: (input: {
|
|
2999
3047
|
readonly id: string;
|
|
3000
3048
|
readonly actionId: string;
|
|
3001
3049
|
}) => import("effect/Effect").Effect<{
|
|
3050
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
3051
|
+
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
3052
|
+
readonly proposedBy: {
|
|
3053
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
3054
|
+
readonly id: string;
|
|
3055
|
+
readonly displayName?: string | null;
|
|
3056
|
+
};
|
|
3057
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3058
|
+
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
3059
|
+
readonly decision: {
|
|
3060
|
+
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
3061
|
+
readonly reason: string | null;
|
|
3062
|
+
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
3063
|
+
readonly source: "grant" | "installation" | "policy" | null;
|
|
3064
|
+
readonly decidedAt: string;
|
|
3065
|
+
} | null;
|
|
3066
|
+
readonly createdAt: string;
|
|
3067
|
+
readonly updatedAt: string;
|
|
3068
|
+
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
|
|
3069
|
+
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
3070
|
+
} | {
|
|
3002
3071
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
3003
3072
|
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
3004
3073
|
readonly proposedBy: {
|
|
@@ -3089,6 +3158,7 @@ export declare const approveAction: (input: {
|
|
|
3089
3158
|
readonly updatedAt: string;
|
|
3090
3159
|
};
|
|
3091
3160
|
readonly intent: {
|
|
3161
|
+
readonly channel: "email";
|
|
3092
3162
|
readonly draftRevision: number;
|
|
3093
3163
|
readonly from: string;
|
|
3094
3164
|
readonly fromName: string | null;
|
|
@@ -3110,7 +3180,12 @@ export declare const approveAction: (input: {
|
|
|
3110
3180
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
3111
3181
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
3112
3182
|
} | null;
|
|
3113
|
-
} |
|
|
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>;
|
|
3184
|
+
export declare const denyAction: (input: {
|
|
3185
|
+
readonly id: string;
|
|
3186
|
+
readonly actionId: string;
|
|
3187
|
+
readonly reason: string;
|
|
3188
|
+
}) => import("effect/Effect").Effect<{
|
|
3114
3189
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
3115
3190
|
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
3116
3191
|
readonly proposedBy: {
|
|
@@ -3131,12 +3206,7 @@ export declare const approveAction: (input: {
|
|
|
3131
3206
|
readonly updatedAt: string;
|
|
3132
3207
|
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
|
|
3133
3208
|
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
3134
|
-
}
|
|
3135
|
-
export declare const denyAction: (input: {
|
|
3136
|
-
readonly id: string;
|
|
3137
|
-
readonly actionId: string;
|
|
3138
|
-
readonly reason: string;
|
|
3139
|
-
}) => import("effect/Effect").Effect<{
|
|
3209
|
+
} | {
|
|
3140
3210
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
3141
3211
|
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
3142
3212
|
readonly proposedBy: {
|
|
@@ -3227,6 +3297,7 @@ export declare const denyAction: (input: {
|
|
|
3227
3297
|
readonly updatedAt: string;
|
|
3228
3298
|
};
|
|
3229
3299
|
readonly intent: {
|
|
3300
|
+
readonly channel: "email";
|
|
3230
3301
|
readonly draftRevision: number;
|
|
3231
3302
|
readonly from: string;
|
|
3232
3303
|
readonly fromName: string | null;
|
|
@@ -3248,27 +3319,6 @@ export declare const denyAction: (input: {
|
|
|
3248
3319
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
3249
3320
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
3250
3321
|
} | null;
|
|
3251
|
-
} | {
|
|
3252
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
3253
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
3254
|
-
readonly proposedBy: {
|
|
3255
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
3256
|
-
readonly id: string;
|
|
3257
|
-
readonly displayName?: string | null;
|
|
3258
|
-
};
|
|
3259
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3260
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
3261
|
-
readonly decision: {
|
|
3262
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
3263
|
-
readonly reason: string | null;
|
|
3264
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
3265
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
3266
|
-
readonly decidedAt: string;
|
|
3267
|
-
} | null;
|
|
3268
|
-
readonly createdAt: string;
|
|
3269
|
-
readonly updatedAt: string;
|
|
3270
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
|
|
3271
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
3272
3322
|
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").MailboxSendConflictError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
3273
3323
|
export declare const listEvents: ((input: {
|
|
3274
3324
|
readonly id: string;
|
|
@@ -3279,7 +3329,7 @@ export declare const listEvents: ((input: {
|
|
|
3279
3329
|
}) => import("effect/Effect").Effect<{
|
|
3280
3330
|
readonly items: readonly {
|
|
3281
3331
|
readonly id: string & import("effect/Brand").Brand<"MailboxEventId">;
|
|
3282
|
-
readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "
|
|
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";
|
|
3283
3333
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3284
3334
|
readonly actionId: (string & import("effect/Brand").Brand<"MailboxActionId">) | null;
|
|
3285
3335
|
readonly actor: {
|
|
@@ -3303,7 +3353,7 @@ export declare const listEvents: ((input: {
|
|
|
3303
3353
|
}) => import("effect/Stream").Stream<{
|
|
3304
3354
|
readonly items: readonly {
|
|
3305
3355
|
readonly id: string & import("effect/Brand").Brand<"MailboxEventId">;
|
|
3306
|
-
readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "
|
|
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";
|
|
3307
3357
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3308
3358
|
readonly actionId: (string & import("effect/Brand").Brand<"MailboxActionId">) | null;
|
|
3309
3359
|
readonly actor: {
|
|
@@ -3326,7 +3376,7 @@ export declare const listEvents: ((input: {
|
|
|
3326
3376
|
readonly before?: string | null | undefined;
|
|
3327
3377
|
}) => import("effect/Stream").Stream<{
|
|
3328
3378
|
readonly id: string & import("effect/Brand").Brand<"MailboxEventId">;
|
|
3329
|
-
readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "
|
|
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";
|
|
3330
3380
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3331
3381
|
readonly actionId: (string & import("effect/Brand").Brand<"MailboxActionId">) | null;
|
|
3332
3382
|
readonly actor: {
|