samva 0.21.0 → 0.22.1
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/README.md +1 -1
- package/dist/client/sdk.gen.d.ts +14 -3
- package/dist/client/sdk.gen.js +39 -0
- package/dist/client/types.gen.d.ts +93 -6
- package/dist/effect/analytics.d.ts +6 -41
- package/dist/effect/api-keys.d.ts +8 -236
- package/dist/effect/attachments.d.ts +4 -43
- package/dist/effect/brands.d.ts +6 -155
- package/dist/effect/campaigns.d.ts +12 -868
- package/dist/effect/contact-groups.d.ts +10 -135
- package/dist/effect/contacts.d.ts +21 -727
- package/dist/effect/conversations.d.ts +13 -681
- package/dist/effect/custom-fields.d.ts +4 -44
- package/dist/effect/email.d.ts +61 -1299
- package/dist/effect/events.d.ts +2 -32
- package/dist/effect/extension-installations.d.ts +9 -213
- package/dist/effect/extensions.d.ts +5 -95
- package/dist/effect/feedback.d.ts +1 -4
- package/dist/effect/generated/shared.d.ts +16 -4
- package/dist/effect/generated/shared.js +6 -0
- package/dist/effect/generated/templates.d.ts +286 -0
- package/dist/effect/generated/templates.js +36 -2
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/effect/generated/webhooks.js +12 -0
- package/dist/effect/generated-metadata.d.ts +5 -0
- package/dist/effect/generated-metadata.js +1 -0
- package/dist/effect/internal/client.d.ts +5 -1
- package/dist/effect/internal/operation.d.ts +3 -3
- package/dist/effect/internal/send.d.ts +3 -3
- package/dist/effect/journeys.d.ts +167 -1836
- package/dist/effect/mailboxes.d.ts +60 -2362
- package/dist/effect/media.d.ts +5 -66
- package/dist/effect/messages.d.ts +9 -264
- package/dist/effect/namespaces.d.ts +8 -55
- package/dist/effect/operations.d.ts +3 -84
- package/dist/effect/organizations.d.ts +7 -161
- package/dist/effect/scheduled-messages.d.ts +5 -401
- package/dist/effect/subscriptions.d.ts +1 -4
- package/dist/effect/templates.d.ts +39 -1453
- package/dist/effect/templates.js +3 -1
- package/dist/effect/unsubscribe-groups.d.ts +9 -70
- package/dist/effect/webhooks.d.ts +15 -145
- package/dist/effect/whoami.d.ts +1 -46
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +4 -0
- package/dist/service-map.js +1 -0
- package/package.json +7 -7
|
@@ -5,18 +5,7 @@ export declare const list: ((input?: {
|
|
|
5
5
|
readonly cursor?: string | null | undefined;
|
|
6
6
|
readonly after?: string | null | undefined;
|
|
7
7
|
readonly before?: string | null | undefined;
|
|
8
|
-
} | undefined) => import("
|
|
9
|
-
readonly items: readonly {
|
|
10
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
11
|
-
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
12
|
-
readonly slug: string;
|
|
13
|
-
readonly name: string;
|
|
14
|
-
readonly status: "active" | "paused";
|
|
15
|
-
readonly primaryAddress: string | null;
|
|
16
|
-
readonly createdAt: string;
|
|
17
|
-
}[];
|
|
18
|
-
readonly nextCursor: string | null;
|
|
19
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
8
|
+
} | undefined) => import("./internal/operation").OperationResult<"mailboxesList">) & {
|
|
20
9
|
readonly pages: (input?: {
|
|
21
10
|
readonly limit?: string | null | undefined;
|
|
22
11
|
readonly cursor?: string | null | undefined;
|
|
@@ -61,261 +50,52 @@ export declare const create: (input: {
|
|
|
61
50
|
readonly metadata?: {
|
|
62
51
|
readonly [x: string]: string | undefined;
|
|
63
52
|
} | null | undefined;
|
|
64
|
-
}) => import("
|
|
65
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
66
|
-
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
67
|
-
readonly slug: string;
|
|
68
|
-
readonly name: string;
|
|
69
|
-
readonly status: "active" | "paused";
|
|
70
|
-
readonly primaryAddress: string | null;
|
|
71
|
-
readonly createdAt: string;
|
|
72
|
-
readonly description: string | null;
|
|
73
|
-
readonly metadata: {
|
|
74
|
-
readonly [x: string]: string;
|
|
75
|
-
};
|
|
76
|
-
readonly endpoints: readonly {
|
|
77
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
78
|
-
readonly address: string;
|
|
79
|
-
readonly displayName: string | null;
|
|
80
|
-
readonly default: boolean;
|
|
81
|
-
readonly channel: "email";
|
|
82
|
-
readonly source: "samvaHosted" | "verifiedDomain";
|
|
83
|
-
readonly domainId: string | null;
|
|
84
|
-
}[];
|
|
85
|
-
readonly updatedAt: string;
|
|
86
|
-
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
53
|
+
}) => import("./internal/operation").OperationResult<"mailboxesCreate">;
|
|
87
54
|
export declare const get: (input: {
|
|
88
55
|
readonly id: string;
|
|
89
|
-
}) => import("
|
|
90
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
91
|
-
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
92
|
-
readonly slug: string;
|
|
93
|
-
readonly name: string;
|
|
94
|
-
readonly status: "active" | "paused";
|
|
95
|
-
readonly primaryAddress: string | null;
|
|
96
|
-
readonly createdAt: string;
|
|
97
|
-
readonly description: string | null;
|
|
98
|
-
readonly metadata: {
|
|
99
|
-
readonly [x: string]: string;
|
|
100
|
-
};
|
|
101
|
-
readonly endpoints: readonly {
|
|
102
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
103
|
-
readonly address: string;
|
|
104
|
-
readonly displayName: string | null;
|
|
105
|
-
readonly default: boolean;
|
|
106
|
-
readonly channel: "email";
|
|
107
|
-
readonly source: "samvaHosted" | "verifiedDomain";
|
|
108
|
-
readonly domainId: string | null;
|
|
109
|
-
}[];
|
|
110
|
-
readonly updatedAt: string;
|
|
111
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
56
|
+
}) => import("./internal/operation").OperationResult<"mailboxesGet">;
|
|
112
57
|
export declare const update: (input: {
|
|
113
58
|
readonly id: string;
|
|
114
59
|
readonly name?: string | null | undefined;
|
|
115
60
|
readonly metadata?: {
|
|
116
61
|
readonly [x: string]: string | null | undefined;
|
|
117
62
|
} | null | undefined;
|
|
118
|
-
}) => import("
|
|
119
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
120
|
-
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
121
|
-
readonly slug: string;
|
|
122
|
-
readonly name: string;
|
|
123
|
-
readonly status: "active" | "paused";
|
|
124
|
-
readonly primaryAddress: string | null;
|
|
125
|
-
readonly createdAt: string;
|
|
126
|
-
readonly description: string | null;
|
|
127
|
-
readonly metadata: {
|
|
128
|
-
readonly [x: string]: string;
|
|
129
|
-
};
|
|
130
|
-
readonly endpoints: readonly {
|
|
131
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
132
|
-
readonly address: string;
|
|
133
|
-
readonly displayName: string | null;
|
|
134
|
-
readonly default: boolean;
|
|
135
|
-
readonly channel: "email";
|
|
136
|
-
readonly source: "samvaHosted" | "verifiedDomain";
|
|
137
|
-
readonly domainId: string | null;
|
|
138
|
-
}[];
|
|
139
|
-
readonly updatedAt: string;
|
|
140
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
63
|
+
}) => import("./internal/operation").OperationResult<"mailboxesUpdate">;
|
|
141
64
|
export declare const remove: (input: {
|
|
142
65
|
readonly id: string;
|
|
143
|
-
}) => import("
|
|
144
|
-
readonly success: boolean;
|
|
145
|
-
}, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
66
|
+
}) => import("./internal/operation").OperationResult<"mailboxesRemove">;
|
|
146
67
|
export declare const createEndpoint: (input: {
|
|
147
68
|
readonly id: string;
|
|
148
69
|
readonly channel: "email";
|
|
149
70
|
readonly address: string;
|
|
150
71
|
readonly displayName?: string | null | undefined;
|
|
151
|
-
}) => import("
|
|
152
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
153
|
-
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
154
|
-
readonly slug: string;
|
|
155
|
-
readonly name: string;
|
|
156
|
-
readonly status: "active" | "paused";
|
|
157
|
-
readonly primaryAddress: string | null;
|
|
158
|
-
readonly createdAt: string;
|
|
159
|
-
readonly description: string | null;
|
|
160
|
-
readonly metadata: {
|
|
161
|
-
readonly [x: string]: string;
|
|
162
|
-
};
|
|
163
|
-
readonly endpoints: readonly {
|
|
164
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
165
|
-
readonly address: string;
|
|
166
|
-
readonly displayName: string | null;
|
|
167
|
-
readonly default: boolean;
|
|
168
|
-
readonly channel: "email";
|
|
169
|
-
readonly source: "samvaHosted" | "verifiedDomain";
|
|
170
|
-
readonly domainId: string | null;
|
|
171
|
-
}[];
|
|
172
|
-
readonly updatedAt: string;
|
|
173
|
-
}, import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
72
|
+
}) => import("./internal/operation").OperationResult<"mailboxesCreateEndpoint">;
|
|
174
73
|
export declare const updateEndpoint: (input: {
|
|
175
74
|
readonly id: string;
|
|
176
75
|
readonly endpointId: string;
|
|
177
76
|
readonly displayName?: string | null | undefined;
|
|
178
77
|
readonly default?: true | null | undefined;
|
|
179
|
-
}) => import("
|
|
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">;
|
|
193
|
-
readonly address: string;
|
|
194
|
-
readonly displayName: string | null;
|
|
195
|
-
readonly default: boolean;
|
|
196
|
-
readonly channel: "email";
|
|
197
|
-
readonly source: "samvaHosted" | "verifiedDomain";
|
|
198
|
-
readonly domainId: string | null;
|
|
199
|
-
}[];
|
|
200
|
-
readonly updatedAt: string;
|
|
201
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
78
|
+
}) => import("./internal/operation").OperationResult<"mailboxesUpdateEndpoint">;
|
|
202
79
|
export declare const removeEndpoint: (input: {
|
|
203
80
|
readonly id: string;
|
|
204
81
|
readonly endpointId: string;
|
|
205
|
-
}) => import("
|
|
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">;
|
|
219
|
-
readonly address: string;
|
|
220
|
-
readonly displayName: string | null;
|
|
221
|
-
readonly default: boolean;
|
|
222
|
-
readonly channel: "email";
|
|
223
|
-
readonly source: "samvaHosted" | "verifiedDomain";
|
|
224
|
-
readonly domainId: string | null;
|
|
225
|
-
}[];
|
|
226
|
-
readonly updatedAt: string;
|
|
227
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
82
|
+
}) => import("./internal/operation").OperationResult<"mailboxesRemoveEndpoint">;
|
|
228
83
|
export declare const pause: (input: {
|
|
229
84
|
readonly id: string;
|
|
230
|
-
}) => import("
|
|
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;
|
|
245
|
-
readonly displayName: string | null;
|
|
246
|
-
readonly default: boolean;
|
|
247
|
-
readonly channel: "email";
|
|
248
|
-
readonly source: "samvaHosted" | "verifiedDomain";
|
|
249
|
-
readonly domainId: string | null;
|
|
250
|
-
}[];
|
|
251
|
-
readonly updatedAt: string;
|
|
252
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
85
|
+
}) => import("./internal/operation").OperationResult<"mailboxesPause">;
|
|
253
86
|
export declare const resume: (input: {
|
|
254
87
|
readonly id: string;
|
|
255
|
-
}) => import("
|
|
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">;
|
|
269
|
-
readonly address: string;
|
|
270
|
-
readonly displayName: string | null;
|
|
271
|
-
readonly default: boolean;
|
|
272
|
-
readonly channel: "email";
|
|
273
|
-
readonly source: "samvaHosted" | "verifiedDomain";
|
|
274
|
-
readonly domainId: string | null;
|
|
275
|
-
}[];
|
|
276
|
-
readonly updatedAt: string;
|
|
277
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
88
|
+
}) => import("./internal/operation").OperationResult<"mailboxesResume">;
|
|
278
89
|
export declare const getAgentActivity: (input: {
|
|
279
90
|
readonly id: string;
|
|
280
91
|
readonly after?: string | null | undefined;
|
|
281
92
|
readonly before?: string | null | undefined;
|
|
282
|
-
}) => import("
|
|
283
|
-
readonly actions: {
|
|
284
|
-
readonly byType: readonly {
|
|
285
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "reply" | "sendMessage" | "updateDraft";
|
|
286
|
-
readonly count: number;
|
|
287
|
-
}[];
|
|
288
|
-
readonly byState: readonly {
|
|
289
|
-
readonly state: "accepted" | "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "completed" | "executed" | "executing" | "failed" | "notSent" | "policyDenied" | "proposed" | "queued" | "uncertain";
|
|
290
|
-
readonly count: number;
|
|
291
|
-
}[];
|
|
292
|
-
};
|
|
293
|
-
readonly events: {
|
|
294
|
-
readonly byType: readonly {
|
|
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";
|
|
296
|
-
readonly count: number;
|
|
297
|
-
}[];
|
|
298
|
-
};
|
|
299
|
-
readonly pendingApprovals: number;
|
|
300
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
93
|
+
}) => import("./internal/operation").OperationResult<"mailboxesGetAgentActivity">;
|
|
301
94
|
export declare const listGrants: ((input: {
|
|
302
95
|
readonly id: string;
|
|
303
96
|
readonly limit?: string | null | undefined;
|
|
304
97
|
readonly cursor?: string | null | undefined;
|
|
305
|
-
}) => import("
|
|
306
|
-
readonly items: readonly {
|
|
307
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxGrantId">;
|
|
308
|
-
readonly actor: {
|
|
309
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
310
|
-
readonly id: string;
|
|
311
|
-
readonly displayName?: string | null;
|
|
312
|
-
};
|
|
313
|
-
readonly permissions: readonly ("action:approve" | "action:propose" | "draft:write" | "label:write" | "mailbox:configure" | "mailbox:read" | "note:write" | "policy:read" | "quarantine:read" | "quarantine:release" | "thread:read" | "thread:write")[];
|
|
314
|
-
readonly sendMode: "approval" | "send";
|
|
315
|
-
readonly createdAt: string;
|
|
316
|
-
}[];
|
|
317
|
-
readonly nextCursor: string | null;
|
|
318
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
98
|
+
}) => import("./internal/operation").OperationResult<"mailboxesListGrants">) & {
|
|
319
99
|
readonly pages: (input: {
|
|
320
100
|
readonly id: string;
|
|
321
101
|
readonly limit?: string | null | undefined;
|
|
@@ -355,79 +135,31 @@ export declare const createGrant: (input: {
|
|
|
355
135
|
readonly userId: string;
|
|
356
136
|
readonly role: "admin" | "collaborator" | "viewer";
|
|
357
137
|
readonly sendMode?: "approval" | "send" | null | undefined;
|
|
358
|
-
}) => import("
|
|
359
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxGrantId">;
|
|
360
|
-
readonly actor: {
|
|
361
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
362
|
-
readonly id: string;
|
|
363
|
-
readonly displayName?: string | null;
|
|
364
|
-
};
|
|
365
|
-
readonly permissions: readonly ("action:approve" | "action:propose" | "draft:write" | "label:write" | "mailbox:configure" | "mailbox:read" | "note:write" | "policy:read" | "quarantine:read" | "quarantine:release" | "thread:read" | "thread:write")[];
|
|
366
|
-
readonly sendMode: "approval" | "send";
|
|
367
|
-
readonly createdAt: string;
|
|
368
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
138
|
+
}) => import("./internal/operation").OperationResult<"mailboxesCreateGrant">;
|
|
369
139
|
export declare const updateGrant: (input: {
|
|
370
140
|
readonly id: string;
|
|
371
141
|
readonly grantId: string;
|
|
372
142
|
readonly role?: "admin" | "collaborator" | "viewer" | null | undefined;
|
|
373
143
|
readonly sendMode?: "approval" | "send" | null | undefined;
|
|
374
|
-
}) => import("
|
|
375
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxGrantId">;
|
|
376
|
-
readonly actor: {
|
|
377
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
378
|
-
readonly id: string;
|
|
379
|
-
readonly displayName?: string | null;
|
|
380
|
-
};
|
|
381
|
-
readonly permissions: readonly ("action:approve" | "action:propose" | "draft:write" | "label:write" | "mailbox:configure" | "mailbox:read" | "note:write" | "policy:read" | "quarantine:read" | "quarantine:release" | "thread:read" | "thread:write")[];
|
|
382
|
-
readonly sendMode: "approval" | "send";
|
|
383
|
-
readonly createdAt: string;
|
|
384
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
144
|
+
}) => import("./internal/operation").OperationResult<"mailboxesUpdateGrant">;
|
|
385
145
|
export declare const revokeGrant: (input: {
|
|
386
146
|
readonly id: string;
|
|
387
147
|
readonly grantId: string;
|
|
388
|
-
}) => import("
|
|
389
|
-
readonly success: boolean;
|
|
390
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
148
|
+
}) => import("./internal/operation").OperationResult<"mailboxesRevokeGrant">;
|
|
391
149
|
export declare const listPolicies: (input: {
|
|
392
150
|
readonly id: string;
|
|
393
|
-
}) => import("
|
|
394
|
-
readonly items: readonly {
|
|
395
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxPolicyId">;
|
|
396
|
-
readonly name: string;
|
|
397
|
-
readonly outcome: "deny" | "requireApproval";
|
|
398
|
-
readonly reason: string | null;
|
|
399
|
-
readonly enabled: boolean;
|
|
400
|
-
readonly createdAt: string;
|
|
401
|
-
readonly updatedAt: string;
|
|
402
|
-
}[];
|
|
403
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
151
|
+
}) => import("./internal/operation").OperationResult<"mailboxesListPolicies">;
|
|
404
152
|
export declare const createPolicy: (input: {
|
|
405
153
|
readonly id: string;
|
|
406
154
|
readonly name: string;
|
|
407
155
|
readonly outcome: "deny" | "requireApproval";
|
|
408
156
|
readonly reason?: string | null | undefined;
|
|
409
157
|
readonly enabled?: boolean | null | undefined;
|
|
410
|
-
}) => import("
|
|
411
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxPolicyId">;
|
|
412
|
-
readonly name: string;
|
|
413
|
-
readonly outcome: "deny" | "requireApproval";
|
|
414
|
-
readonly reason: string | null;
|
|
415
|
-
readonly enabled: boolean;
|
|
416
|
-
readonly createdAt: string;
|
|
417
|
-
readonly updatedAt: string;
|
|
418
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
158
|
+
}) => import("./internal/operation").OperationResult<"mailboxesCreatePolicy">;
|
|
419
159
|
export declare const getPolicy: (input: {
|
|
420
160
|
readonly id: string;
|
|
421
161
|
readonly policyId: string;
|
|
422
|
-
}) => import("
|
|
423
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxPolicyId">;
|
|
424
|
-
readonly name: string;
|
|
425
|
-
readonly outcome: "deny" | "requireApproval";
|
|
426
|
-
readonly reason: string | null;
|
|
427
|
-
readonly enabled: boolean;
|
|
428
|
-
readonly createdAt: string;
|
|
429
|
-
readonly updatedAt: string;
|
|
430
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
162
|
+
}) => import("./internal/operation").OperationResult<"mailboxesGetPolicy">;
|
|
431
163
|
export declare const updatePolicy: (input: {
|
|
432
164
|
readonly id: string;
|
|
433
165
|
readonly policyId: string;
|
|
@@ -435,74 +167,33 @@ export declare const updatePolicy: (input: {
|
|
|
435
167
|
readonly outcome?: "deny" | "requireApproval" | null | undefined;
|
|
436
168
|
readonly reason?: string | null | undefined;
|
|
437
169
|
readonly enabled?: boolean | null | undefined;
|
|
438
|
-
}) => import("
|
|
439
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxPolicyId">;
|
|
440
|
-
readonly name: string;
|
|
441
|
-
readonly outcome: "deny" | "requireApproval";
|
|
442
|
-
readonly reason: string | null;
|
|
443
|
-
readonly enabled: boolean;
|
|
444
|
-
readonly createdAt: string;
|
|
445
|
-
readonly updatedAt: string;
|
|
446
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
170
|
+
}) => import("./internal/operation").OperationResult<"mailboxesUpdatePolicy">;
|
|
447
171
|
export declare const deletePolicy: (input: {
|
|
448
172
|
readonly id: string;
|
|
449
173
|
readonly policyId: string;
|
|
450
|
-
}) => import("
|
|
451
|
-
readonly success: boolean;
|
|
452
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
174
|
+
}) => import("./internal/operation").OperationResult<"mailboxesDeletePolicy">;
|
|
453
175
|
export declare const listFolders: (input: {
|
|
454
176
|
readonly id: string;
|
|
455
|
-
}) => import("
|
|
456
|
-
readonly items: readonly {
|
|
457
|
-
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash";
|
|
458
|
-
readonly count: number;
|
|
459
|
-
readonly unreadCount: number;
|
|
460
|
-
}[];
|
|
461
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
177
|
+
}) => import("./internal/operation").OperationResult<"mailboxesListFolders">;
|
|
462
178
|
export declare const listLabels: (input: {
|
|
463
179
|
readonly id: string;
|
|
464
|
-
}) => import("
|
|
465
|
-
readonly items: readonly {
|
|
466
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxLabelId">;
|
|
467
|
-
readonly slug: string;
|
|
468
|
-
readonly displayName: string;
|
|
469
|
-
readonly color: "agent" | "billing" | "domain" | "important" | "neutral" | "routing" | null;
|
|
470
|
-
readonly createdAt: string;
|
|
471
|
-
readonly updatedAt: string;
|
|
472
|
-
}[];
|
|
473
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
180
|
+
}) => import("./internal/operation").OperationResult<"mailboxesListLabels">;
|
|
474
181
|
export declare const createLabel: (input: {
|
|
475
182
|
readonly id: string;
|
|
476
183
|
readonly slug: string;
|
|
477
184
|
readonly displayName: string;
|
|
478
185
|
readonly color?: "agent" | "billing" | "domain" | "important" | "neutral" | "routing" | null | undefined;
|
|
479
|
-
}) => import("
|
|
480
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxLabelId">;
|
|
481
|
-
readonly slug: string;
|
|
482
|
-
readonly displayName: string;
|
|
483
|
-
readonly color: "agent" | "billing" | "domain" | "important" | "neutral" | "routing" | null;
|
|
484
|
-
readonly createdAt: string;
|
|
485
|
-
readonly updatedAt: string;
|
|
486
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
186
|
+
}) => import("./internal/operation").OperationResult<"mailboxesCreateLabel">;
|
|
487
187
|
export declare const updateLabel: (input: {
|
|
488
188
|
readonly id: string;
|
|
489
189
|
readonly labelId: string;
|
|
490
190
|
readonly displayName?: string | null | undefined;
|
|
491
191
|
readonly color?: "agent" | "billing" | "domain" | "important" | "neutral" | "routing" | null | undefined;
|
|
492
|
-
}) => import("
|
|
493
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxLabelId">;
|
|
494
|
-
readonly slug: string;
|
|
495
|
-
readonly displayName: string;
|
|
496
|
-
readonly color: "agent" | "billing" | "domain" | "important" | "neutral" | "routing" | null;
|
|
497
|
-
readonly createdAt: string;
|
|
498
|
-
readonly updatedAt: string;
|
|
499
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
192
|
+
}) => import("./internal/operation").OperationResult<"mailboxesUpdateLabel">;
|
|
500
193
|
export declare const deleteLabel: (input: {
|
|
501
194
|
readonly id: string;
|
|
502
195
|
readonly labelId: string;
|
|
503
|
-
}) => import("
|
|
504
|
-
readonly success: boolean;
|
|
505
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
196
|
+
}) => import("./internal/operation").OperationResult<"mailboxesDeleteLabel">;
|
|
506
197
|
export declare const listThreads: ((input: {
|
|
507
198
|
readonly id: string;
|
|
508
199
|
readonly limit?: string | null | undefined;
|
|
@@ -515,30 +206,7 @@ export declare const listThreads: ((input: {
|
|
|
515
206
|
readonly unread?: "false" | "true" | null | undefined;
|
|
516
207
|
readonly starred?: "false" | "true" | null | undefined;
|
|
517
208
|
readonly snoozed?: "false" | "true" | null | undefined;
|
|
518
|
-
}) => import("
|
|
519
|
-
readonly items: readonly {
|
|
520
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
521
|
-
readonly channel: "email";
|
|
522
|
-
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
523
|
-
readonly subject: string | null;
|
|
524
|
-
readonly preview: string | null;
|
|
525
|
-
readonly from: {
|
|
526
|
-
readonly address: string | null;
|
|
527
|
-
readonly displayName: string | null;
|
|
528
|
-
} | null;
|
|
529
|
-
readonly messageCount: number;
|
|
530
|
-
readonly hasAttachments: boolean;
|
|
531
|
-
readonly hasDraft: boolean;
|
|
532
|
-
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash";
|
|
533
|
-
readonly priority: "high" | "low" | "normal" | "urgent";
|
|
534
|
-
readonly labels: readonly (string & import("effect/Brand").Brand<"MailboxLabelId">)[];
|
|
535
|
-
readonly read: boolean;
|
|
536
|
-
readonly starred: boolean;
|
|
537
|
-
readonly snoozedUntil: string | null;
|
|
538
|
-
readonly lastActivityAt: string;
|
|
539
|
-
}[];
|
|
540
|
-
readonly nextCursor: string | null;
|
|
541
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
209
|
+
}) => import("./internal/operation").OperationResult<"mailboxesListThreads">) & {
|
|
542
210
|
readonly pages: (input: {
|
|
543
211
|
readonly id: string;
|
|
544
212
|
readonly limit?: string | null | undefined;
|
|
@@ -612,38 +280,7 @@ export declare const listThreads: ((input: {
|
|
|
612
280
|
export declare const getThread: (input: {
|
|
613
281
|
readonly id: string;
|
|
614
282
|
readonly threadId: string;
|
|
615
|
-
}) => import("
|
|
616
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
617
|
-
readonly channel: "email";
|
|
618
|
-
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
619
|
-
readonly subject: string | null;
|
|
620
|
-
readonly preview: string | null;
|
|
621
|
-
readonly from: {
|
|
622
|
-
readonly address: string | null;
|
|
623
|
-
readonly displayName: string | null;
|
|
624
|
-
} | null;
|
|
625
|
-
readonly messageCount: number;
|
|
626
|
-
readonly hasAttachments: boolean;
|
|
627
|
-
readonly hasDraft: boolean;
|
|
628
|
-
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash";
|
|
629
|
-
readonly priority: "high" | "low" | "normal" | "urgent";
|
|
630
|
-
readonly labels: readonly (string & import("effect/Brand").Brand<"MailboxLabelId">)[];
|
|
631
|
-
readonly read: boolean;
|
|
632
|
-
readonly starred: boolean;
|
|
633
|
-
readonly snoozedUntil: string | null;
|
|
634
|
-
readonly lastActivityAt: string;
|
|
635
|
-
readonly conversationId: string & import("effect/Brand").Brand<"ConversationId">;
|
|
636
|
-
readonly participants: readonly {
|
|
637
|
-
readonly actor: {
|
|
638
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
639
|
-
readonly id: string;
|
|
640
|
-
readonly displayName?: string | null;
|
|
641
|
-
};
|
|
642
|
-
readonly role: "assignee" | "observer" | "recipient" | "sender";
|
|
643
|
-
readonly address?: string | null;
|
|
644
|
-
}[];
|
|
645
|
-
readonly createdAt: string;
|
|
646
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
283
|
+
}) => import("./internal/operation").OperationResult<"mailboxesGetThread">;
|
|
647
284
|
export declare const updateThread: (input: {
|
|
648
285
|
readonly id: string;
|
|
649
286
|
readonly threadId: string;
|
|
@@ -652,68 +289,23 @@ export declare const updateThread: (input: {
|
|
|
652
289
|
readonly read?: boolean | null | undefined;
|
|
653
290
|
readonly starred?: boolean | null | undefined;
|
|
654
291
|
readonly snoozedUntil?: string | null | undefined;
|
|
655
|
-
}) => import("
|
|
656
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
657
|
-
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash";
|
|
658
|
-
readonly priority: "high" | "low" | "normal" | "urgent";
|
|
659
|
-
readonly labels: readonly (string & import("effect/Brand").Brand<"MailboxLabelId">)[];
|
|
660
|
-
readonly read: boolean;
|
|
661
|
-
readonly starred: boolean;
|
|
662
|
-
readonly snoozedUntil: string | null;
|
|
663
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
292
|
+
}) => import("./internal/operation").OperationResult<"mailboxesUpdateThread">;
|
|
664
293
|
export declare const addThreadLabels: (input: {
|
|
665
294
|
readonly id: string;
|
|
666
295
|
readonly threadId: string;
|
|
667
296
|
readonly labels: readonly string[];
|
|
668
|
-
}) => import("
|
|
669
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
670
|
-
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash";
|
|
671
|
-
readonly priority: "high" | "low" | "normal" | "urgent";
|
|
672
|
-
readonly labels: readonly (string & import("effect/Brand").Brand<"MailboxLabelId">)[];
|
|
673
|
-
readonly read: boolean;
|
|
674
|
-
readonly starred: boolean;
|
|
675
|
-
readonly snoozedUntil: string | null;
|
|
676
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
297
|
+
}) => import("./internal/operation").OperationResult<"mailboxesAddThreadLabels">;
|
|
677
298
|
export declare const removeThreadLabels: (input: {
|
|
678
299
|
readonly id: string;
|
|
679
300
|
readonly threadId: string;
|
|
680
301
|
readonly labels: readonly string[];
|
|
681
|
-
}) => import("
|
|
682
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
683
|
-
readonly folder: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash";
|
|
684
|
-
readonly priority: "high" | "low" | "normal" | "urgent";
|
|
685
|
-
readonly labels: readonly (string & import("effect/Brand").Brand<"MailboxLabelId">)[];
|
|
686
|
-
readonly read: boolean;
|
|
687
|
-
readonly starred: boolean;
|
|
688
|
-
readonly snoozedUntil: string | null;
|
|
689
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
302
|
+
}) => import("./internal/operation").OperationResult<"mailboxesRemoveThreadLabels">;
|
|
690
303
|
export declare const listThreadMessages: ((input: {
|
|
691
304
|
readonly id: string;
|
|
692
305
|
readonly threadId: string;
|
|
693
306
|
readonly limit?: string | null | undefined;
|
|
694
307
|
readonly cursor?: string | null | undefined;
|
|
695
|
-
}) => import("
|
|
696
|
-
readonly items: readonly {
|
|
697
|
-
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
698
|
-
readonly channel: "email";
|
|
699
|
-
readonly direction: "inbound" | "outbound";
|
|
700
|
-
readonly from: {
|
|
701
|
-
readonly actor?: {
|
|
702
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
703
|
-
readonly id: string;
|
|
704
|
-
readonly displayName?: string | null;
|
|
705
|
-
} | null;
|
|
706
|
-
readonly displayName?: string | null;
|
|
707
|
-
readonly address: string;
|
|
708
|
-
};
|
|
709
|
-
readonly to: readonly string[];
|
|
710
|
-
readonly subject: string | null;
|
|
711
|
-
readonly preview: string | null;
|
|
712
|
-
readonly hasAttachments: boolean;
|
|
713
|
-
readonly occurredAt: string;
|
|
714
|
-
}[];
|
|
715
|
-
readonly nextCursor: string | null;
|
|
716
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
308
|
+
}) => import("./internal/operation").OperationResult<"mailboxesListThreadMessages">) & {
|
|
717
309
|
readonly pages: (input: {
|
|
718
310
|
readonly id: string;
|
|
719
311
|
readonly threadId: string;
|
|
@@ -771,63 +363,7 @@ export declare const getThreadContent: ((input: {
|
|
|
771
363
|
readonly threadId: string;
|
|
772
364
|
readonly limit?: string | null | undefined;
|
|
773
365
|
readonly cursor?: string | null | undefined;
|
|
774
|
-
}) => import("
|
|
775
|
-
readonly items: readonly {
|
|
776
|
-
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
777
|
-
readonly threadId: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
778
|
-
readonly conversationId: string & import("effect/Brand").Brand<"ConversationId">;
|
|
779
|
-
readonly direction: "inbound" | "outbound";
|
|
780
|
-
readonly from: {
|
|
781
|
-
readonly actor?: {
|
|
782
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
783
|
-
readonly id: string;
|
|
784
|
-
readonly displayName?: string | null;
|
|
785
|
-
} | null;
|
|
786
|
-
readonly displayName?: string | null;
|
|
787
|
-
readonly address: string;
|
|
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";
|
|
796
|
-
readonly recipients: readonly {
|
|
797
|
-
readonly kind: "bcc" | "cc" | "to";
|
|
798
|
-
readonly actor?: {
|
|
799
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
800
|
-
readonly id: string;
|
|
801
|
-
readonly displayName?: string | null;
|
|
802
|
-
} | null;
|
|
803
|
-
readonly displayName?: string | null;
|
|
804
|
-
readonly address: string;
|
|
805
|
-
}[];
|
|
806
|
-
readonly replyTo: readonly string[];
|
|
807
|
-
readonly subject?: string | null;
|
|
808
|
-
readonly text?: string | null;
|
|
809
|
-
readonly html?: string | null;
|
|
810
|
-
readonly replyText?: string | null;
|
|
811
|
-
readonly headers: {
|
|
812
|
-
readonly messageId: string | null;
|
|
813
|
-
readonly inReplyTo: string | null;
|
|
814
|
-
readonly references: readonly string[];
|
|
815
|
-
};
|
|
816
|
-
readonly authentication: {
|
|
817
|
-
readonly spf: string | null;
|
|
818
|
-
readonly dkim: string | null;
|
|
819
|
-
readonly dmarc: string | null;
|
|
820
|
-
} | null;
|
|
821
|
-
readonly attachments: readonly {
|
|
822
|
-
readonly id: string & import("effect/Brand").Brand<"AttachmentId">;
|
|
823
|
-
readonly filename: string;
|
|
824
|
-
readonly contentType: string;
|
|
825
|
-
readonly size: number;
|
|
826
|
-
readonly isInline: boolean;
|
|
827
|
-
}[];
|
|
828
|
-
}[];
|
|
829
|
-
readonly nextCursor: string | null;
|
|
830
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
366
|
+
}) => import("./internal/operation").OperationResult<"mailboxesGetThreadContent">) & {
|
|
831
367
|
readonly pages: (input: {
|
|
832
368
|
readonly id: string;
|
|
833
369
|
readonly threadId: string;
|
|
@@ -955,22 +491,7 @@ export declare const listThreadNotes: ((input: {
|
|
|
955
491
|
readonly threadId: string;
|
|
956
492
|
readonly limit?: string | null | undefined;
|
|
957
493
|
readonly cursor?: string | null | undefined;
|
|
958
|
-
}) => import("
|
|
959
|
-
readonly items: readonly {
|
|
960
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxNoteId">;
|
|
961
|
-
readonly author: {
|
|
962
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
963
|
-
readonly id: string;
|
|
964
|
-
readonly displayName?: string | null;
|
|
965
|
-
};
|
|
966
|
-
readonly body: string;
|
|
967
|
-
readonly color: string | null;
|
|
968
|
-
readonly pinned: boolean;
|
|
969
|
-
readonly createdAt: string;
|
|
970
|
-
readonly updatedAt: string;
|
|
971
|
-
}[];
|
|
972
|
-
readonly nextCursor: string | null;
|
|
973
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
494
|
+
}) => import("./internal/operation").OperationResult<"mailboxesListThreadNotes">) & {
|
|
974
495
|
readonly pages: (input: {
|
|
975
496
|
readonly id: string;
|
|
976
497
|
readonly threadId: string;
|
|
@@ -1017,19 +538,7 @@ export declare const createNote: (input: {
|
|
|
1017
538
|
readonly body: string;
|
|
1018
539
|
readonly color?: string | null | undefined;
|
|
1019
540
|
readonly pinned?: boolean | null | undefined;
|
|
1020
|
-
}) => import("
|
|
1021
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxNoteId">;
|
|
1022
|
-
readonly author: {
|
|
1023
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1024
|
-
readonly id: string;
|
|
1025
|
-
readonly displayName?: string | null;
|
|
1026
|
-
};
|
|
1027
|
-
readonly body: string;
|
|
1028
|
-
readonly color: string | null;
|
|
1029
|
-
readonly pinned: boolean;
|
|
1030
|
-
readonly createdAt: string;
|
|
1031
|
-
readonly updatedAt: string;
|
|
1032
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
541
|
+
}) => import("./internal/operation").OperationResult<"mailboxesCreateNote">;
|
|
1033
542
|
export declare const updateNote: (input: {
|
|
1034
543
|
readonly id: string;
|
|
1035
544
|
readonly threadId: string;
|
|
@@ -1037,26 +546,12 @@ export declare const updateNote: (input: {
|
|
|
1037
546
|
readonly body?: string | null | undefined;
|
|
1038
547
|
readonly color?: string | null | undefined;
|
|
1039
548
|
readonly pinned?: boolean | null | undefined;
|
|
1040
|
-
}) => import("
|
|
1041
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxNoteId">;
|
|
1042
|
-
readonly author: {
|
|
1043
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1044
|
-
readonly id: string;
|
|
1045
|
-
readonly displayName?: string | null;
|
|
1046
|
-
};
|
|
1047
|
-
readonly body: string;
|
|
1048
|
-
readonly color: string | null;
|
|
1049
|
-
readonly pinned: boolean;
|
|
1050
|
-
readonly createdAt: string;
|
|
1051
|
-
readonly updatedAt: string;
|
|
1052
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
549
|
+
}) => import("./internal/operation").OperationResult<"mailboxesUpdateNote">;
|
|
1053
550
|
export declare const deleteNote: (input: {
|
|
1054
551
|
readonly id: string;
|
|
1055
552
|
readonly threadId: string;
|
|
1056
553
|
readonly noteId: string;
|
|
1057
|
-
}) => import("
|
|
1058
|
-
readonly success: boolean;
|
|
1059
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
554
|
+
}) => import("./internal/operation").OperationResult<"mailboxesDeleteNote">;
|
|
1060
555
|
export declare const sendMessage: (input: {
|
|
1061
556
|
readonly id: string;
|
|
1062
557
|
readonly channel?: "email" | null | undefined;
|
|
@@ -1076,226 +571,25 @@ export declare const sendMessage: (input: {
|
|
|
1076
571
|
}[] | null | undefined;
|
|
1077
572
|
} & {
|
|
1078
573
|
readonly idempotencyKey?: string | undefined;
|
|
1079
|
-
}) => import("
|
|
1080
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1081
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1082
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1083
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1084
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
1085
|
-
readonly acceptedAt: string | null;
|
|
1086
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
1087
|
-
readonly reviewExpectedAt: string | null;
|
|
1088
|
-
readonly skippedRecipients: readonly {
|
|
1089
|
-
readonly address: string;
|
|
1090
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
1091
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
1092
|
-
}[];
|
|
1093
|
-
readonly executeUntil: string | null;
|
|
1094
|
-
readonly retryAt: string | null;
|
|
1095
|
-
readonly problem: {
|
|
1096
|
-
readonly code: string;
|
|
1097
|
-
readonly message: string;
|
|
1098
|
-
readonly error?: {
|
|
1099
|
-
readonly _tag: "SenderNotReadyError";
|
|
1100
|
-
readonly message: string;
|
|
1101
|
-
readonly sender: string;
|
|
1102
|
-
readonly retryAfterSeconds?: number | null;
|
|
1103
|
-
} | {
|
|
1104
|
-
readonly _tag: "RateLimitedError";
|
|
1105
|
-
readonly message: string;
|
|
1106
|
-
readonly retryAfterSeconds: number;
|
|
1107
|
-
} | {
|
|
1108
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
1109
|
-
readonly message: string;
|
|
1110
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
1111
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
1112
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
1113
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
1114
|
-
readonly identityId?: string | null;
|
|
1115
|
-
} | {
|
|
1116
|
-
readonly _tag: "PaymentRequiredError";
|
|
1117
|
-
readonly message: string;
|
|
1118
|
-
readonly resource: string;
|
|
1119
|
-
readonly currentUsage: number;
|
|
1120
|
-
readonly limit: number;
|
|
1121
|
-
} | {
|
|
1122
|
-
readonly _tag: "ValidationError";
|
|
1123
|
-
readonly message: string;
|
|
1124
|
-
readonly fields?: {
|
|
1125
|
-
readonly [x: string]: readonly string[];
|
|
1126
|
-
} | null;
|
|
1127
|
-
} | {
|
|
1128
|
-
readonly _tag: "ForbiddenError";
|
|
1129
|
-
readonly message: string;
|
|
1130
|
-
} | {
|
|
1131
|
-
readonly _tag: "ResourceNotFoundError";
|
|
1132
|
-
readonly resource: string;
|
|
1133
|
-
readonly id: string;
|
|
1134
|
-
readonly message: string;
|
|
1135
|
-
} | null;
|
|
1136
|
-
} | null;
|
|
1137
|
-
readonly retryEligible: boolean;
|
|
1138
|
-
readonly decision: {
|
|
1139
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
1140
|
-
readonly reason: string | null;
|
|
1141
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
1142
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
1143
|
-
readonly decidedAt: string;
|
|
1144
|
-
} | null;
|
|
1145
|
-
readonly createdAt: string;
|
|
1146
|
-
readonly updatedAt: string;
|
|
1147
|
-
} | {
|
|
1148
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1149
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1150
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1151
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1152
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
1153
|
-
readonly acceptedAt: string | null;
|
|
1154
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
1155
|
-
readonly reviewExpectedAt: string | null;
|
|
1156
|
-
readonly skippedRecipients: readonly {
|
|
1157
|
-
readonly address: string;
|
|
1158
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
1159
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
1160
|
-
}[];
|
|
1161
|
-
readonly executeUntil: string | null;
|
|
1162
|
-
readonly retryAt: string | null;
|
|
1163
|
-
readonly problem: {
|
|
1164
|
-
readonly code: string;
|
|
1165
|
-
readonly message: string;
|
|
1166
|
-
readonly error?: {
|
|
1167
|
-
readonly _tag: "SenderNotReadyError";
|
|
1168
|
-
readonly message: string;
|
|
1169
|
-
readonly sender: string;
|
|
1170
|
-
readonly retryAfterSeconds?: number | null;
|
|
1171
|
-
} | {
|
|
1172
|
-
readonly _tag: "RateLimitedError";
|
|
1173
|
-
readonly message: string;
|
|
1174
|
-
readonly retryAfterSeconds: number;
|
|
1175
|
-
} | {
|
|
1176
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
1177
|
-
readonly message: string;
|
|
1178
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
1179
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
1180
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
1181
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
1182
|
-
readonly identityId?: string | null;
|
|
1183
|
-
} | {
|
|
1184
|
-
readonly _tag: "PaymentRequiredError";
|
|
1185
|
-
readonly message: string;
|
|
1186
|
-
readonly resource: string;
|
|
1187
|
-
readonly currentUsage: number;
|
|
1188
|
-
readonly limit: number;
|
|
1189
|
-
} | {
|
|
1190
|
-
readonly _tag: "ValidationError";
|
|
1191
|
-
readonly message: string;
|
|
1192
|
-
readonly fields?: {
|
|
1193
|
-
readonly [x: string]: readonly string[];
|
|
1194
|
-
} | null;
|
|
1195
|
-
} | {
|
|
1196
|
-
readonly _tag: "ForbiddenError";
|
|
1197
|
-
readonly message: string;
|
|
1198
|
-
} | {
|
|
1199
|
-
readonly _tag: "ResourceNotFoundError";
|
|
1200
|
-
readonly resource: string;
|
|
1201
|
-
readonly id: string;
|
|
1202
|
-
readonly message: string;
|
|
1203
|
-
} | null;
|
|
1204
|
-
} | null;
|
|
1205
|
-
readonly retryEligible: boolean;
|
|
1206
|
-
readonly decision: {
|
|
1207
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
1208
|
-
readonly reason: string | null;
|
|
1209
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
1210
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
1211
|
-
readonly decidedAt: string;
|
|
1212
|
-
} | null;
|
|
1213
|
-
readonly createdAt: string;
|
|
1214
|
-
readonly updatedAt: string;
|
|
1215
|
-
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
574
|
+
}) => import("./internal/operation").OperationResult<"mailboxesSendMessage">;
|
|
1216
575
|
export declare const getMessage: (input: {
|
|
1217
576
|
readonly id: string;
|
|
1218
577
|
readonly messageId: string;
|
|
1219
|
-
}) => import("
|
|
1220
|
-
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
1221
|
-
readonly threadId: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
1222
|
-
readonly conversationId: string & import("effect/Brand").Brand<"ConversationId">;
|
|
1223
|
-
readonly direction: "inbound" | "outbound";
|
|
1224
|
-
readonly from: {
|
|
1225
|
-
readonly actor?: {
|
|
1226
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1227
|
-
readonly id: string;
|
|
1228
|
-
readonly displayName?: string | null;
|
|
1229
|
-
} | null;
|
|
1230
|
-
readonly displayName?: string | null;
|
|
1231
|
-
readonly address: string;
|
|
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";
|
|
1240
|
-
readonly recipients: readonly {
|
|
1241
|
-
readonly kind: "bcc" | "cc" | "to";
|
|
1242
|
-
readonly actor?: {
|
|
1243
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1244
|
-
readonly id: string;
|
|
1245
|
-
readonly displayName?: string | null;
|
|
1246
|
-
} | null;
|
|
1247
|
-
readonly displayName?: string | null;
|
|
1248
|
-
readonly address: string;
|
|
1249
|
-
}[];
|
|
1250
|
-
readonly replyTo: readonly string[];
|
|
1251
|
-
readonly subject?: string | null;
|
|
1252
|
-
readonly text?: string | null;
|
|
1253
|
-
readonly html?: string | null;
|
|
1254
|
-
readonly replyText?: string | null;
|
|
1255
|
-
readonly headers: {
|
|
1256
|
-
readonly messageId: string | null;
|
|
1257
|
-
readonly inReplyTo: string | null;
|
|
1258
|
-
readonly references: readonly string[];
|
|
1259
|
-
};
|
|
1260
|
-
readonly authentication: {
|
|
1261
|
-
readonly spf: string | null;
|
|
1262
|
-
readonly dkim: string | null;
|
|
1263
|
-
readonly dmarc: string | null;
|
|
1264
|
-
} | null;
|
|
1265
|
-
readonly attachments: readonly {
|
|
1266
|
-
readonly id: string & import("effect/Brand").Brand<"AttachmentId">;
|
|
1267
|
-
readonly filename: string;
|
|
1268
|
-
readonly contentType: string;
|
|
1269
|
-
readonly size: number;
|
|
1270
|
-
readonly isInline: boolean;
|
|
1271
|
-
}[];
|
|
1272
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
578
|
+
}) => import("./internal/operation").OperationResult<"mailboxesGetMessage">;
|
|
1273
579
|
export declare const getMessageRaw: (input: {
|
|
1274
580
|
readonly id: string;
|
|
1275
581
|
readonly messageId: string;
|
|
1276
|
-
}) => import("
|
|
1277
|
-
readonly url: string;
|
|
1278
|
-
readonly expiresAt: string;
|
|
1279
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
582
|
+
}) => import("./internal/operation").OperationResult<"mailboxesGetMessageRaw">;
|
|
1280
583
|
export declare const getMessageAttachment: (input: {
|
|
1281
584
|
readonly id: string;
|
|
1282
585
|
readonly messageId: string;
|
|
1283
586
|
readonly attachmentId: string;
|
|
1284
|
-
}) => import("
|
|
1285
|
-
readonly url: string;
|
|
1286
|
-
readonly expiresAt: string;
|
|
1287
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
587
|
+
}) => import("./internal/operation").OperationResult<"mailboxesGetMessageAttachment">;
|
|
1288
588
|
export declare const copyMessageAttachment: (input: {
|
|
1289
589
|
readonly id: string;
|
|
1290
590
|
readonly messageId: string;
|
|
1291
591
|
readonly attachmentId: string;
|
|
1292
|
-
}) => import("
|
|
1293
|
-
readonly filename: string;
|
|
1294
|
-
readonly content?: string | null;
|
|
1295
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1296
|
-
readonly contentType: string;
|
|
1297
|
-
readonly size: number;
|
|
1298
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
592
|
+
}) => import("./internal/operation").OperationResult<"mailboxesCopyMessageAttachment">;
|
|
1299
593
|
export declare const reply: (input: {
|
|
1300
594
|
readonly id: string;
|
|
1301
595
|
readonly messageId: string;
|
|
@@ -1313,143 +607,7 @@ export declare const reply: (input: {
|
|
|
1313
607
|
}[] | null | undefined;
|
|
1314
608
|
} & {
|
|
1315
609
|
readonly idempotencyKey?: string | undefined;
|
|
1316
|
-
}) => import("
|
|
1317
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1318
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1319
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1320
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1321
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
1322
|
-
readonly acceptedAt: string | null;
|
|
1323
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
1324
|
-
readonly reviewExpectedAt: string | null;
|
|
1325
|
-
readonly skippedRecipients: readonly {
|
|
1326
|
-
readonly address: string;
|
|
1327
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
1328
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
1329
|
-
}[];
|
|
1330
|
-
readonly executeUntil: string | null;
|
|
1331
|
-
readonly retryAt: string | null;
|
|
1332
|
-
readonly problem: {
|
|
1333
|
-
readonly code: string;
|
|
1334
|
-
readonly message: string;
|
|
1335
|
-
readonly error?: {
|
|
1336
|
-
readonly _tag: "SenderNotReadyError";
|
|
1337
|
-
readonly message: string;
|
|
1338
|
-
readonly sender: string;
|
|
1339
|
-
readonly retryAfterSeconds?: number | null;
|
|
1340
|
-
} | {
|
|
1341
|
-
readonly _tag: "RateLimitedError";
|
|
1342
|
-
readonly message: string;
|
|
1343
|
-
readonly retryAfterSeconds: number;
|
|
1344
|
-
} | {
|
|
1345
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
1346
|
-
readonly message: string;
|
|
1347
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
1348
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
1349
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
1350
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
1351
|
-
readonly identityId?: string | null;
|
|
1352
|
-
} | {
|
|
1353
|
-
readonly _tag: "PaymentRequiredError";
|
|
1354
|
-
readonly message: string;
|
|
1355
|
-
readonly resource: string;
|
|
1356
|
-
readonly currentUsage: number;
|
|
1357
|
-
readonly limit: number;
|
|
1358
|
-
} | {
|
|
1359
|
-
readonly _tag: "ValidationError";
|
|
1360
|
-
readonly message: string;
|
|
1361
|
-
readonly fields?: {
|
|
1362
|
-
readonly [x: string]: readonly string[];
|
|
1363
|
-
} | null;
|
|
1364
|
-
} | {
|
|
1365
|
-
readonly _tag: "ForbiddenError";
|
|
1366
|
-
readonly message: string;
|
|
1367
|
-
} | {
|
|
1368
|
-
readonly _tag: "ResourceNotFoundError";
|
|
1369
|
-
readonly resource: string;
|
|
1370
|
-
readonly id: string;
|
|
1371
|
-
readonly message: string;
|
|
1372
|
-
} | null;
|
|
1373
|
-
} | null;
|
|
1374
|
-
readonly retryEligible: boolean;
|
|
1375
|
-
readonly decision: {
|
|
1376
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
1377
|
-
readonly reason: string | null;
|
|
1378
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
1379
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
1380
|
-
readonly decidedAt: string;
|
|
1381
|
-
} | null;
|
|
1382
|
-
readonly createdAt: string;
|
|
1383
|
-
readonly updatedAt: string;
|
|
1384
|
-
} | {
|
|
1385
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1386
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1387
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1388
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1389
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
1390
|
-
readonly acceptedAt: string | null;
|
|
1391
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
1392
|
-
readonly reviewExpectedAt: string | null;
|
|
1393
|
-
readonly skippedRecipients: readonly {
|
|
1394
|
-
readonly address: string;
|
|
1395
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
1396
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
1397
|
-
}[];
|
|
1398
|
-
readonly executeUntil: string | null;
|
|
1399
|
-
readonly retryAt: string | null;
|
|
1400
|
-
readonly problem: {
|
|
1401
|
-
readonly code: string;
|
|
1402
|
-
readonly message: string;
|
|
1403
|
-
readonly error?: {
|
|
1404
|
-
readonly _tag: "SenderNotReadyError";
|
|
1405
|
-
readonly message: string;
|
|
1406
|
-
readonly sender: string;
|
|
1407
|
-
readonly retryAfterSeconds?: number | null;
|
|
1408
|
-
} | {
|
|
1409
|
-
readonly _tag: "RateLimitedError";
|
|
1410
|
-
readonly message: string;
|
|
1411
|
-
readonly retryAfterSeconds: number;
|
|
1412
|
-
} | {
|
|
1413
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
1414
|
-
readonly message: string;
|
|
1415
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
1416
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
1417
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
1418
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
1419
|
-
readonly identityId?: string | null;
|
|
1420
|
-
} | {
|
|
1421
|
-
readonly _tag: "PaymentRequiredError";
|
|
1422
|
-
readonly message: string;
|
|
1423
|
-
readonly resource: string;
|
|
1424
|
-
readonly currentUsage: number;
|
|
1425
|
-
readonly limit: number;
|
|
1426
|
-
} | {
|
|
1427
|
-
readonly _tag: "ValidationError";
|
|
1428
|
-
readonly message: string;
|
|
1429
|
-
readonly fields?: {
|
|
1430
|
-
readonly [x: string]: readonly string[];
|
|
1431
|
-
} | null;
|
|
1432
|
-
} | {
|
|
1433
|
-
readonly _tag: "ForbiddenError";
|
|
1434
|
-
readonly message: string;
|
|
1435
|
-
} | {
|
|
1436
|
-
readonly _tag: "ResourceNotFoundError";
|
|
1437
|
-
readonly resource: string;
|
|
1438
|
-
readonly id: string;
|
|
1439
|
-
readonly message: string;
|
|
1440
|
-
} | null;
|
|
1441
|
-
} | null;
|
|
1442
|
-
readonly retryEligible: boolean;
|
|
1443
|
-
readonly decision: {
|
|
1444
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
1445
|
-
readonly reason: string | null;
|
|
1446
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
1447
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
1448
|
-
readonly decidedAt: string;
|
|
1449
|
-
} | null;
|
|
1450
|
-
readonly createdAt: string;
|
|
1451
|
-
readonly updatedAt: string;
|
|
1452
|
-
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
610
|
+
}) => import("./internal/operation").OperationResult<"mailboxesReply">;
|
|
1453
611
|
export declare const replyAll: (input: {
|
|
1454
612
|
readonly id: string;
|
|
1455
613
|
readonly messageId: string;
|
|
@@ -1467,143 +625,7 @@ export declare const replyAll: (input: {
|
|
|
1467
625
|
}[] | null | undefined;
|
|
1468
626
|
} & {
|
|
1469
627
|
readonly idempotencyKey?: string | undefined;
|
|
1470
|
-
}) => import("
|
|
1471
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1472
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1473
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1474
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1475
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
1476
|
-
readonly acceptedAt: string | null;
|
|
1477
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
1478
|
-
readonly reviewExpectedAt: string | null;
|
|
1479
|
-
readonly skippedRecipients: readonly {
|
|
1480
|
-
readonly address: string;
|
|
1481
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
1482
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
1483
|
-
}[];
|
|
1484
|
-
readonly executeUntil: string | null;
|
|
1485
|
-
readonly retryAt: string | null;
|
|
1486
|
-
readonly problem: {
|
|
1487
|
-
readonly code: string;
|
|
1488
|
-
readonly message: string;
|
|
1489
|
-
readonly error?: {
|
|
1490
|
-
readonly _tag: "SenderNotReadyError";
|
|
1491
|
-
readonly message: string;
|
|
1492
|
-
readonly sender: string;
|
|
1493
|
-
readonly retryAfterSeconds?: number | null;
|
|
1494
|
-
} | {
|
|
1495
|
-
readonly _tag: "RateLimitedError";
|
|
1496
|
-
readonly message: string;
|
|
1497
|
-
readonly retryAfterSeconds: number;
|
|
1498
|
-
} | {
|
|
1499
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
1500
|
-
readonly message: string;
|
|
1501
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
1502
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
1503
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
1504
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
1505
|
-
readonly identityId?: string | null;
|
|
1506
|
-
} | {
|
|
1507
|
-
readonly _tag: "PaymentRequiredError";
|
|
1508
|
-
readonly message: string;
|
|
1509
|
-
readonly resource: string;
|
|
1510
|
-
readonly currentUsage: number;
|
|
1511
|
-
readonly limit: number;
|
|
1512
|
-
} | {
|
|
1513
|
-
readonly _tag: "ValidationError";
|
|
1514
|
-
readonly message: string;
|
|
1515
|
-
readonly fields?: {
|
|
1516
|
-
readonly [x: string]: readonly string[];
|
|
1517
|
-
} | null;
|
|
1518
|
-
} | {
|
|
1519
|
-
readonly _tag: "ForbiddenError";
|
|
1520
|
-
readonly message: string;
|
|
1521
|
-
} | {
|
|
1522
|
-
readonly _tag: "ResourceNotFoundError";
|
|
1523
|
-
readonly resource: string;
|
|
1524
|
-
readonly id: string;
|
|
1525
|
-
readonly message: string;
|
|
1526
|
-
} | null;
|
|
1527
|
-
} | null;
|
|
1528
|
-
readonly retryEligible: boolean;
|
|
1529
|
-
readonly decision: {
|
|
1530
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
1531
|
-
readonly reason: string | null;
|
|
1532
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
1533
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
1534
|
-
readonly decidedAt: string;
|
|
1535
|
-
} | null;
|
|
1536
|
-
readonly createdAt: string;
|
|
1537
|
-
readonly updatedAt: string;
|
|
1538
|
-
} | {
|
|
1539
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1540
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1541
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1542
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1543
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
1544
|
-
readonly acceptedAt: string | null;
|
|
1545
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
1546
|
-
readonly reviewExpectedAt: string | null;
|
|
1547
|
-
readonly skippedRecipients: readonly {
|
|
1548
|
-
readonly address: string;
|
|
1549
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
1550
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
1551
|
-
}[];
|
|
1552
|
-
readonly executeUntil: string | null;
|
|
1553
|
-
readonly retryAt: string | null;
|
|
1554
|
-
readonly problem: {
|
|
1555
|
-
readonly code: string;
|
|
1556
|
-
readonly message: string;
|
|
1557
|
-
readonly error?: {
|
|
1558
|
-
readonly _tag: "SenderNotReadyError";
|
|
1559
|
-
readonly message: string;
|
|
1560
|
-
readonly sender: string;
|
|
1561
|
-
readonly retryAfterSeconds?: number | null;
|
|
1562
|
-
} | {
|
|
1563
|
-
readonly _tag: "RateLimitedError";
|
|
1564
|
-
readonly message: string;
|
|
1565
|
-
readonly retryAfterSeconds: number;
|
|
1566
|
-
} | {
|
|
1567
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
1568
|
-
readonly message: string;
|
|
1569
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
1570
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
1571
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
1572
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
1573
|
-
readonly identityId?: string | null;
|
|
1574
|
-
} | {
|
|
1575
|
-
readonly _tag: "PaymentRequiredError";
|
|
1576
|
-
readonly message: string;
|
|
1577
|
-
readonly resource: string;
|
|
1578
|
-
readonly currentUsage: number;
|
|
1579
|
-
readonly limit: number;
|
|
1580
|
-
} | {
|
|
1581
|
-
readonly _tag: "ValidationError";
|
|
1582
|
-
readonly message: string;
|
|
1583
|
-
readonly fields?: {
|
|
1584
|
-
readonly [x: string]: readonly string[];
|
|
1585
|
-
} | null;
|
|
1586
|
-
} | {
|
|
1587
|
-
readonly _tag: "ForbiddenError";
|
|
1588
|
-
readonly message: string;
|
|
1589
|
-
} | {
|
|
1590
|
-
readonly _tag: "ResourceNotFoundError";
|
|
1591
|
-
readonly resource: string;
|
|
1592
|
-
readonly id: string;
|
|
1593
|
-
readonly message: string;
|
|
1594
|
-
} | null;
|
|
1595
|
-
} | null;
|
|
1596
|
-
readonly retryEligible: boolean;
|
|
1597
|
-
readonly decision: {
|
|
1598
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
1599
|
-
readonly reason: string | null;
|
|
1600
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
1601
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
1602
|
-
readonly decidedAt: string;
|
|
1603
|
-
} | null;
|
|
1604
|
-
readonly createdAt: string;
|
|
1605
|
-
readonly updatedAt: string;
|
|
1606
|
-
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
628
|
+
}) => import("./internal/operation").OperationResult<"mailboxesReplyAll">;
|
|
1607
629
|
export declare const forward: (input: {
|
|
1608
630
|
readonly id: string;
|
|
1609
631
|
readonly messageId: string;
|
|
@@ -1621,168 +643,14 @@ export declare const forward: (input: {
|
|
|
1621
643
|
}[] | null | undefined;
|
|
1622
644
|
} & {
|
|
1623
645
|
readonly idempotencyKey?: string | undefined;
|
|
1624
|
-
}) => import("
|
|
1625
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1626
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1627
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1628
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1629
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
1630
|
-
readonly acceptedAt: string | null;
|
|
1631
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
1632
|
-
readonly reviewExpectedAt: string | null;
|
|
1633
|
-
readonly skippedRecipients: readonly {
|
|
1634
|
-
readonly address: string;
|
|
1635
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
1636
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
1637
|
-
}[];
|
|
1638
|
-
readonly executeUntil: string | null;
|
|
1639
|
-
readonly retryAt: string | null;
|
|
1640
|
-
readonly problem: {
|
|
1641
|
-
readonly code: string;
|
|
1642
|
-
readonly message: string;
|
|
1643
|
-
readonly error?: {
|
|
1644
|
-
readonly _tag: "SenderNotReadyError";
|
|
1645
|
-
readonly message: string;
|
|
1646
|
-
readonly sender: string;
|
|
1647
|
-
readonly retryAfterSeconds?: number | null;
|
|
1648
|
-
} | {
|
|
1649
|
-
readonly _tag: "RateLimitedError";
|
|
1650
|
-
readonly message: string;
|
|
1651
|
-
readonly retryAfterSeconds: number;
|
|
1652
|
-
} | {
|
|
1653
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
1654
|
-
readonly message: string;
|
|
1655
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
1656
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
1657
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
1658
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
1659
|
-
readonly identityId?: string | null;
|
|
1660
|
-
} | {
|
|
1661
|
-
readonly _tag: "PaymentRequiredError";
|
|
1662
|
-
readonly message: string;
|
|
1663
|
-
readonly resource: string;
|
|
1664
|
-
readonly currentUsage: number;
|
|
1665
|
-
readonly limit: number;
|
|
1666
|
-
} | {
|
|
1667
|
-
readonly _tag: "ValidationError";
|
|
1668
|
-
readonly message: string;
|
|
1669
|
-
readonly fields?: {
|
|
1670
|
-
readonly [x: string]: readonly string[];
|
|
1671
|
-
} | null;
|
|
1672
|
-
} | {
|
|
1673
|
-
readonly _tag: "ForbiddenError";
|
|
1674
|
-
readonly message: string;
|
|
1675
|
-
} | {
|
|
1676
|
-
readonly _tag: "ResourceNotFoundError";
|
|
1677
|
-
readonly resource: string;
|
|
1678
|
-
readonly id: string;
|
|
1679
|
-
readonly message: string;
|
|
1680
|
-
} | null;
|
|
1681
|
-
} | null;
|
|
1682
|
-
readonly retryEligible: boolean;
|
|
1683
|
-
readonly decision: {
|
|
1684
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
1685
|
-
readonly reason: string | null;
|
|
1686
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
1687
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
1688
|
-
readonly decidedAt: string;
|
|
1689
|
-
} | null;
|
|
1690
|
-
readonly createdAt: string;
|
|
1691
|
-
readonly updatedAt: string;
|
|
1692
|
-
} | {
|
|
1693
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1694
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1695
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1696
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1697
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
1698
|
-
readonly acceptedAt: string | null;
|
|
1699
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
1700
|
-
readonly reviewExpectedAt: string | null;
|
|
1701
|
-
readonly skippedRecipients: readonly {
|
|
1702
|
-
readonly address: string;
|
|
1703
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
1704
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
1705
|
-
}[];
|
|
1706
|
-
readonly executeUntil: string | null;
|
|
1707
|
-
readonly retryAt: string | null;
|
|
1708
|
-
readonly problem: {
|
|
1709
|
-
readonly code: string;
|
|
1710
|
-
readonly message: string;
|
|
1711
|
-
readonly error?: {
|
|
1712
|
-
readonly _tag: "SenderNotReadyError";
|
|
1713
|
-
readonly message: string;
|
|
1714
|
-
readonly sender: string;
|
|
1715
|
-
readonly retryAfterSeconds?: number | null;
|
|
1716
|
-
} | {
|
|
1717
|
-
readonly _tag: "RateLimitedError";
|
|
1718
|
-
readonly message: string;
|
|
1719
|
-
readonly retryAfterSeconds: number;
|
|
1720
|
-
} | {
|
|
1721
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
1722
|
-
readonly message: string;
|
|
1723
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
1724
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
1725
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
1726
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
1727
|
-
readonly identityId?: string | null;
|
|
1728
|
-
} | {
|
|
1729
|
-
readonly _tag: "PaymentRequiredError";
|
|
1730
|
-
readonly message: string;
|
|
1731
|
-
readonly resource: string;
|
|
1732
|
-
readonly currentUsage: number;
|
|
1733
|
-
readonly limit: number;
|
|
1734
|
-
} | {
|
|
1735
|
-
readonly _tag: "ValidationError";
|
|
1736
|
-
readonly message: string;
|
|
1737
|
-
readonly fields?: {
|
|
1738
|
-
readonly [x: string]: readonly string[];
|
|
1739
|
-
} | null;
|
|
1740
|
-
} | {
|
|
1741
|
-
readonly _tag: "ForbiddenError";
|
|
1742
|
-
readonly message: string;
|
|
1743
|
-
} | {
|
|
1744
|
-
readonly _tag: "ResourceNotFoundError";
|
|
1745
|
-
readonly resource: string;
|
|
1746
|
-
readonly id: string;
|
|
1747
|
-
readonly message: string;
|
|
1748
|
-
} | null;
|
|
1749
|
-
} | null;
|
|
1750
|
-
readonly retryEligible: boolean;
|
|
1751
|
-
readonly decision: {
|
|
1752
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
1753
|
-
readonly reason: string | null;
|
|
1754
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
1755
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
1756
|
-
readonly decidedAt: string;
|
|
1757
|
-
} | null;
|
|
1758
|
-
readonly createdAt: string;
|
|
1759
|
-
readonly updatedAt: string;
|
|
1760
|
-
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
646
|
+
}) => import("./internal/operation").OperationResult<"mailboxesForward">;
|
|
1761
647
|
export declare const listQuarantine: ((input: {
|
|
1762
648
|
readonly id: string;
|
|
1763
649
|
readonly limit?: string | null | undefined;
|
|
1764
650
|
readonly cursor?: string | null | undefined;
|
|
1765
651
|
readonly after?: string | null | undefined;
|
|
1766
652
|
readonly before?: string | null | undefined;
|
|
1767
|
-
}) => import("
|
|
1768
|
-
readonly items: readonly {
|
|
1769
|
-
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
1770
|
-
readonly disposition: "isolated" | "quarantined";
|
|
1771
|
-
readonly reason: "dmarc" | "fraud" | "phishing" | "prompt_injection" | "spam" | "virus" | "virus_unscanned";
|
|
1772
|
-
readonly source: "classifier" | "receipt";
|
|
1773
|
-
readonly from: {
|
|
1774
|
-
readonly address: string;
|
|
1775
|
-
readonly name: string | null;
|
|
1776
|
-
};
|
|
1777
|
-
readonly subject: string | null;
|
|
1778
|
-
readonly receivedAt: string;
|
|
1779
|
-
readonly heldAt: string;
|
|
1780
|
-
readonly releasedAt: string | null;
|
|
1781
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1782
|
-
readonly discardedAt: string | null;
|
|
1783
|
-
}[];
|
|
1784
|
-
readonly nextCursor: string | null;
|
|
1785
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
653
|
+
}) => import("./internal/operation").OperationResult<"mailboxesListQuarantine">) & {
|
|
1786
654
|
readonly pages: (input: {
|
|
1787
655
|
readonly id: string;
|
|
1788
656
|
readonly limit?: string | null | undefined;
|
|
@@ -1834,61 +702,17 @@ export declare const listQuarantine: ((input: {
|
|
|
1834
702
|
export declare const releaseMessage: (input: {
|
|
1835
703
|
readonly id: string;
|
|
1836
704
|
readonly messageId: string;
|
|
1837
|
-
}) => import("
|
|
1838
|
-
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
1839
|
-
readonly disposition: "isolated" | "quarantined";
|
|
1840
|
-
readonly reason: "dmarc" | "fraud" | "phishing" | "prompt_injection" | "spam" | "virus" | "virus_unscanned";
|
|
1841
|
-
readonly source: "classifier" | "receipt";
|
|
1842
|
-
readonly from: {
|
|
1843
|
-
readonly address: string;
|
|
1844
|
-
readonly name: string | null;
|
|
1845
|
-
};
|
|
1846
|
-
readonly subject: string | null;
|
|
1847
|
-
readonly receivedAt: string;
|
|
1848
|
-
readonly heldAt: string;
|
|
1849
|
-
readonly releasedAt: string | null;
|
|
1850
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1851
|
-
readonly discardedAt: string | null;
|
|
1852
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
705
|
+
}) => import("./internal/operation").OperationResult<"mailboxesReleaseMessage">;
|
|
1853
706
|
export declare const discardMessage: (input: {
|
|
1854
707
|
readonly id: string;
|
|
1855
708
|
readonly messageId: string;
|
|
1856
|
-
}) => import("
|
|
1857
|
-
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
1858
|
-
readonly disposition: "isolated" | "quarantined";
|
|
1859
|
-
readonly reason: "dmarc" | "fraud" | "phishing" | "prompt_injection" | "spam" | "virus" | "virus_unscanned";
|
|
1860
|
-
readonly source: "classifier" | "receipt";
|
|
1861
|
-
readonly from: {
|
|
1862
|
-
readonly address: string;
|
|
1863
|
-
readonly name: string | null;
|
|
1864
|
-
};
|
|
1865
|
-
readonly subject: string | null;
|
|
1866
|
-
readonly receivedAt: string;
|
|
1867
|
-
readonly heldAt: string;
|
|
1868
|
-
readonly releasedAt: string | null;
|
|
1869
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1870
|
-
readonly discardedAt: string | null;
|
|
1871
|
-
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
709
|
+
}) => import("./internal/operation").OperationResult<"mailboxesDiscardMessage">;
|
|
1872
710
|
export declare const listDrafts: ((input: {
|
|
1873
711
|
readonly id: string;
|
|
1874
712
|
readonly limit?: string | null | undefined;
|
|
1875
713
|
readonly cursor?: string | null | undefined;
|
|
1876
714
|
readonly threadId?: string | null | undefined;
|
|
1877
|
-
}) => import("
|
|
1878
|
-
readonly items: readonly {
|
|
1879
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
1880
|
-
readonly channel: "email";
|
|
1881
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1882
|
-
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1883
|
-
readonly state: "locked" | "saved" | "sent";
|
|
1884
|
-
readonly lockedByActionId: (string & import("effect/Brand").Brand<"MailboxActionId">) | null;
|
|
1885
|
-
readonly to: readonly string[];
|
|
1886
|
-
readonly subject: string | null;
|
|
1887
|
-
readonly createdAt: string;
|
|
1888
|
-
readonly updatedAt: string;
|
|
1889
|
-
}[];
|
|
1890
|
-
readonly nextCursor: string | null;
|
|
1891
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
715
|
+
}) => import("./internal/operation").OperationResult<"mailboxesListDrafts">) & {
|
|
1892
716
|
readonly pages: (input: {
|
|
1893
717
|
readonly id: string;
|
|
1894
718
|
readonly limit?: string | null | undefined;
|
|
@@ -1946,59 +770,11 @@ export declare const createDraft: (input: {
|
|
|
1946
770
|
readonly size: number;
|
|
1947
771
|
}[] | null | undefined;
|
|
1948
772
|
readonly inReplyToMessageId?: string | null | undefined;
|
|
1949
|
-
}) => import("
|
|
1950
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
1951
|
-
readonly channel: "email";
|
|
1952
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1953
|
-
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1954
|
-
readonly state: "locked" | "saved" | "sent";
|
|
1955
|
-
readonly lockedByActionId: (string & import("effect/Brand").Brand<"MailboxActionId">) | null;
|
|
1956
|
-
readonly to: readonly string[];
|
|
1957
|
-
readonly subject: string | null;
|
|
1958
|
-
readonly createdAt: string;
|
|
1959
|
-
readonly updatedAt: string;
|
|
1960
|
-
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
1961
|
-
readonly cc: readonly string[];
|
|
1962
|
-
readonly bcc: readonly string[];
|
|
1963
|
-
readonly replyTo: readonly string[];
|
|
1964
|
-
readonly html: string | null;
|
|
1965
|
-
readonly text: string | null;
|
|
1966
|
-
readonly attachments: readonly {
|
|
1967
|
-
readonly filename: string;
|
|
1968
|
-
readonly content?: string | null;
|
|
1969
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1970
|
-
readonly contentType: string;
|
|
1971
|
-
readonly size: number;
|
|
1972
|
-
}[];
|
|
1973
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
773
|
+
}) => import("./internal/operation").OperationResult<"mailboxesCreateDraft">;
|
|
1974
774
|
export declare const getDraft: (input: {
|
|
1975
775
|
readonly id: string;
|
|
1976
776
|
readonly draftId: string;
|
|
1977
|
-
}) => import("
|
|
1978
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
1979
|
-
readonly channel: "email";
|
|
1980
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1981
|
-
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1982
|
-
readonly state: "locked" | "saved" | "sent";
|
|
1983
|
-
readonly lockedByActionId: (string & import("effect/Brand").Brand<"MailboxActionId">) | null;
|
|
1984
|
-
readonly to: readonly string[];
|
|
1985
|
-
readonly subject: string | null;
|
|
1986
|
-
readonly createdAt: string;
|
|
1987
|
-
readonly updatedAt: string;
|
|
1988
|
-
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
1989
|
-
readonly cc: readonly string[];
|
|
1990
|
-
readonly bcc: readonly string[];
|
|
1991
|
-
readonly replyTo: readonly string[];
|
|
1992
|
-
readonly html: string | null;
|
|
1993
|
-
readonly text: string | null;
|
|
1994
|
-
readonly attachments: readonly {
|
|
1995
|
-
readonly filename: string;
|
|
1996
|
-
readonly content?: string | null;
|
|
1997
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1998
|
-
readonly contentType: string;
|
|
1999
|
-
readonly size: number;
|
|
2000
|
-
}[];
|
|
2001
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
777
|
+
}) => import("./internal/operation").OperationResult<"mailboxesGetDraft">;
|
|
2002
778
|
export declare const updateDraft: (input: {
|
|
2003
779
|
readonly id: string;
|
|
2004
780
|
readonly draftId: string;
|
|
@@ -2016,179 +792,17 @@ export declare const updateDraft: (input: {
|
|
|
2016
792
|
readonly contentType: string;
|
|
2017
793
|
readonly size: number;
|
|
2018
794
|
}[] | null | undefined;
|
|
2019
|
-
}) => import("
|
|
2020
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
2021
|
-
readonly channel: "email";
|
|
2022
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2023
|
-
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2024
|
-
readonly state: "locked" | "saved" | "sent";
|
|
2025
|
-
readonly lockedByActionId: (string & import("effect/Brand").Brand<"MailboxActionId">) | null;
|
|
2026
|
-
readonly to: readonly string[];
|
|
2027
|
-
readonly subject: string | null;
|
|
2028
|
-
readonly createdAt: string;
|
|
2029
|
-
readonly updatedAt: string;
|
|
2030
|
-
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
2031
|
-
readonly cc: readonly string[];
|
|
2032
|
-
readonly bcc: readonly string[];
|
|
2033
|
-
readonly replyTo: readonly string[];
|
|
2034
|
-
readonly html: string | null;
|
|
2035
|
-
readonly text: string | null;
|
|
2036
|
-
readonly attachments: readonly {
|
|
2037
|
-
readonly filename: string;
|
|
2038
|
-
readonly content?: string | null;
|
|
2039
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
2040
|
-
readonly contentType: string;
|
|
2041
|
-
readonly size: number;
|
|
2042
|
-
}[];
|
|
2043
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
795
|
+
}) => import("./internal/operation").OperationResult<"mailboxesUpdateDraft">;
|
|
2044
796
|
export declare const deleteDraft: (input: {
|
|
2045
797
|
readonly id: string;
|
|
2046
798
|
readonly draftId: string;
|
|
2047
|
-
}) => import("
|
|
2048
|
-
readonly success: boolean;
|
|
2049
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
799
|
+
}) => import("./internal/operation").OperationResult<"mailboxesDeleteDraft">;
|
|
2050
800
|
export declare const sendDraft: (input: {
|
|
2051
801
|
readonly id: string;
|
|
2052
802
|
readonly draftId: string;
|
|
2053
803
|
} & {
|
|
2054
804
|
readonly idempotencyKey?: string | undefined;
|
|
2055
|
-
}) => import("
|
|
2056
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2057
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2058
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2059
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2060
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
2061
|
-
readonly acceptedAt: string | null;
|
|
2062
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
2063
|
-
readonly reviewExpectedAt: string | null;
|
|
2064
|
-
readonly skippedRecipients: readonly {
|
|
2065
|
-
readonly address: string;
|
|
2066
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
2067
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
2068
|
-
}[];
|
|
2069
|
-
readonly executeUntil: string | null;
|
|
2070
|
-
readonly retryAt: string | null;
|
|
2071
|
-
readonly problem: {
|
|
2072
|
-
readonly code: string;
|
|
2073
|
-
readonly message: string;
|
|
2074
|
-
readonly error?: {
|
|
2075
|
-
readonly _tag: "SenderNotReadyError";
|
|
2076
|
-
readonly message: string;
|
|
2077
|
-
readonly sender: string;
|
|
2078
|
-
readonly retryAfterSeconds?: number | null;
|
|
2079
|
-
} | {
|
|
2080
|
-
readonly _tag: "RateLimitedError";
|
|
2081
|
-
readonly message: string;
|
|
2082
|
-
readonly retryAfterSeconds: number;
|
|
2083
|
-
} | {
|
|
2084
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
2085
|
-
readonly message: string;
|
|
2086
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
2087
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
2088
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
2089
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
2090
|
-
readonly identityId?: string | null;
|
|
2091
|
-
} | {
|
|
2092
|
-
readonly _tag: "PaymentRequiredError";
|
|
2093
|
-
readonly message: string;
|
|
2094
|
-
readonly resource: string;
|
|
2095
|
-
readonly currentUsage: number;
|
|
2096
|
-
readonly limit: number;
|
|
2097
|
-
} | {
|
|
2098
|
-
readonly _tag: "ValidationError";
|
|
2099
|
-
readonly message: string;
|
|
2100
|
-
readonly fields?: {
|
|
2101
|
-
readonly [x: string]: readonly string[];
|
|
2102
|
-
} | null;
|
|
2103
|
-
} | {
|
|
2104
|
-
readonly _tag: "ForbiddenError";
|
|
2105
|
-
readonly message: string;
|
|
2106
|
-
} | {
|
|
2107
|
-
readonly _tag: "ResourceNotFoundError";
|
|
2108
|
-
readonly resource: string;
|
|
2109
|
-
readonly id: string;
|
|
2110
|
-
readonly message: string;
|
|
2111
|
-
} | null;
|
|
2112
|
-
} | null;
|
|
2113
|
-
readonly retryEligible: boolean;
|
|
2114
|
-
readonly decision: {
|
|
2115
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
2116
|
-
readonly reason: string | null;
|
|
2117
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
2118
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
2119
|
-
readonly decidedAt: string;
|
|
2120
|
-
} | null;
|
|
2121
|
-
readonly createdAt: string;
|
|
2122
|
-
readonly updatedAt: string;
|
|
2123
|
-
} | {
|
|
2124
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2125
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2126
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2127
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2128
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
2129
|
-
readonly acceptedAt: string | null;
|
|
2130
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
2131
|
-
readonly reviewExpectedAt: string | null;
|
|
2132
|
-
readonly skippedRecipients: readonly {
|
|
2133
|
-
readonly address: string;
|
|
2134
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
2135
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
2136
|
-
}[];
|
|
2137
|
-
readonly executeUntil: string | null;
|
|
2138
|
-
readonly retryAt: string | null;
|
|
2139
|
-
readonly problem: {
|
|
2140
|
-
readonly code: string;
|
|
2141
|
-
readonly message: string;
|
|
2142
|
-
readonly error?: {
|
|
2143
|
-
readonly _tag: "SenderNotReadyError";
|
|
2144
|
-
readonly message: string;
|
|
2145
|
-
readonly sender: string;
|
|
2146
|
-
readonly retryAfterSeconds?: number | null;
|
|
2147
|
-
} | {
|
|
2148
|
-
readonly _tag: "RateLimitedError";
|
|
2149
|
-
readonly message: string;
|
|
2150
|
-
readonly retryAfterSeconds: number;
|
|
2151
|
-
} | {
|
|
2152
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
2153
|
-
readonly message: string;
|
|
2154
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
2155
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
2156
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
2157
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
2158
|
-
readonly identityId?: string | null;
|
|
2159
|
-
} | {
|
|
2160
|
-
readonly _tag: "PaymentRequiredError";
|
|
2161
|
-
readonly message: string;
|
|
2162
|
-
readonly resource: string;
|
|
2163
|
-
readonly currentUsage: number;
|
|
2164
|
-
readonly limit: number;
|
|
2165
|
-
} | {
|
|
2166
|
-
readonly _tag: "ValidationError";
|
|
2167
|
-
readonly message: string;
|
|
2168
|
-
readonly fields?: {
|
|
2169
|
-
readonly [x: string]: readonly string[];
|
|
2170
|
-
} | null;
|
|
2171
|
-
} | {
|
|
2172
|
-
readonly _tag: "ForbiddenError";
|
|
2173
|
-
readonly message: string;
|
|
2174
|
-
} | {
|
|
2175
|
-
readonly _tag: "ResourceNotFoundError";
|
|
2176
|
-
readonly resource: string;
|
|
2177
|
-
readonly id: string;
|
|
2178
|
-
readonly message: string;
|
|
2179
|
-
} | null;
|
|
2180
|
-
} | null;
|
|
2181
|
-
readonly retryEligible: boolean;
|
|
2182
|
-
readonly decision: {
|
|
2183
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
2184
|
-
readonly reason: string | null;
|
|
2185
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
2186
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
2187
|
-
readonly decidedAt: string;
|
|
2188
|
-
} | null;
|
|
2189
|
-
readonly createdAt: string;
|
|
2190
|
-
readonly updatedAt: string;
|
|
2191
|
-
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
805
|
+
}) => import("./internal/operation").OperationResult<"mailboxesSendDraft">;
|
|
2192
806
|
export declare const listActions: ((input: {
|
|
2193
807
|
readonly id: string;
|
|
2194
808
|
readonly limit?: string | null | undefined;
|
|
@@ -2197,166 +811,7 @@ export declare const listActions: ((input: {
|
|
|
2197
811
|
readonly state?: "accepted" | "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "completed" | "executed" | "executing" | "failed" | "notSent" | "policyDenied" | "proposed" | "queued" | "uncertain" | null | undefined;
|
|
2198
812
|
readonly after?: string | null | undefined;
|
|
2199
813
|
readonly before?: string | null | undefined;
|
|
2200
|
-
}) => import("
|
|
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 resolution: {
|
|
2219
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
2220
|
-
readonly actor: {
|
|
2221
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2222
|
-
readonly id: string;
|
|
2223
|
-
readonly displayName?: string | null;
|
|
2224
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "system";
|
|
2225
|
-
};
|
|
2226
|
-
readonly resolvedAt: string;
|
|
2227
|
-
readonly reason: string | null;
|
|
2228
|
-
} | null;
|
|
2229
|
-
readonly createdAt: string;
|
|
2230
|
-
readonly updatedAt: string;
|
|
2231
|
-
readonly type: "reply" | "sendMessage";
|
|
2232
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
2233
|
-
readonly send: {
|
|
2234
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2235
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2236
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2237
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2238
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
2239
|
-
readonly acceptedAt: string | null;
|
|
2240
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
2241
|
-
readonly reviewExpectedAt: string | null;
|
|
2242
|
-
readonly skippedRecipients: readonly {
|
|
2243
|
-
readonly address: string;
|
|
2244
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
2245
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
2246
|
-
}[];
|
|
2247
|
-
readonly executeUntil: string | null;
|
|
2248
|
-
readonly retryAt: string | null;
|
|
2249
|
-
readonly problem: {
|
|
2250
|
-
readonly code: string;
|
|
2251
|
-
readonly message: string;
|
|
2252
|
-
readonly error?: {
|
|
2253
|
-
readonly _tag: "SenderNotReadyError";
|
|
2254
|
-
readonly message: string;
|
|
2255
|
-
readonly sender: string;
|
|
2256
|
-
readonly retryAfterSeconds?: number | null;
|
|
2257
|
-
} | {
|
|
2258
|
-
readonly _tag: "RateLimitedError";
|
|
2259
|
-
readonly message: string;
|
|
2260
|
-
readonly retryAfterSeconds: number;
|
|
2261
|
-
} | {
|
|
2262
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
2263
|
-
readonly message: string;
|
|
2264
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
2265
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
2266
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
2267
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
2268
|
-
readonly identityId?: string | null;
|
|
2269
|
-
} | {
|
|
2270
|
-
readonly _tag: "PaymentRequiredError";
|
|
2271
|
-
readonly message: string;
|
|
2272
|
-
readonly resource: string;
|
|
2273
|
-
readonly currentUsage: number;
|
|
2274
|
-
readonly limit: number;
|
|
2275
|
-
} | {
|
|
2276
|
-
readonly _tag: "ValidationError";
|
|
2277
|
-
readonly message: string;
|
|
2278
|
-
readonly fields?: {
|
|
2279
|
-
readonly [x: string]: readonly string[];
|
|
2280
|
-
} | null;
|
|
2281
|
-
} | {
|
|
2282
|
-
readonly _tag: "ForbiddenError";
|
|
2283
|
-
readonly message: string;
|
|
2284
|
-
} | {
|
|
2285
|
-
readonly _tag: "ResourceNotFoundError";
|
|
2286
|
-
readonly resource: string;
|
|
2287
|
-
readonly id: string;
|
|
2288
|
-
readonly message: string;
|
|
2289
|
-
} | null;
|
|
2290
|
-
} | null;
|
|
2291
|
-
readonly retryEligible: boolean;
|
|
2292
|
-
readonly decision: {
|
|
2293
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
2294
|
-
readonly reason: string | null;
|
|
2295
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
2296
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
2297
|
-
readonly decidedAt: string;
|
|
2298
|
-
} | null;
|
|
2299
|
-
readonly createdAt: string;
|
|
2300
|
-
readonly updatedAt: string;
|
|
2301
|
-
};
|
|
2302
|
-
readonly intent: {
|
|
2303
|
-
readonly channel: "email";
|
|
2304
|
-
readonly draftRevision: number;
|
|
2305
|
-
readonly from: string;
|
|
2306
|
-
readonly fromName: string | null;
|
|
2307
|
-
readonly to: readonly [string, ...string[]];
|
|
2308
|
-
readonly cc: readonly string[];
|
|
2309
|
-
readonly bcc: readonly string[];
|
|
2310
|
-
readonly replyTo: readonly string[];
|
|
2311
|
-
readonly subject: string;
|
|
2312
|
-
readonly text: string | null;
|
|
2313
|
-
readonly html: string | null;
|
|
2314
|
-
readonly attachments: readonly {
|
|
2315
|
-
readonly filename: string;
|
|
2316
|
-
readonly content?: string | null;
|
|
2317
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
2318
|
-
readonly contentType: string;
|
|
2319
|
-
readonly size: number;
|
|
2320
|
-
}[];
|
|
2321
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2322
|
-
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
2323
|
-
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2324
|
-
} | null;
|
|
2325
|
-
} | {
|
|
2326
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2327
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2328
|
-
readonly proposedBy: {
|
|
2329
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2330
|
-
readonly id: string;
|
|
2331
|
-
readonly displayName?: string | null;
|
|
2332
|
-
};
|
|
2333
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2334
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2335
|
-
readonly decision: {
|
|
2336
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
2337
|
-
readonly reason: string | null;
|
|
2338
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
2339
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
2340
|
-
readonly decidedAt: string;
|
|
2341
|
-
} | null;
|
|
2342
|
-
readonly resolution: {
|
|
2343
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
2344
|
-
readonly actor: {
|
|
2345
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2346
|
-
readonly id: string;
|
|
2347
|
-
readonly displayName?: string | null;
|
|
2348
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "system";
|
|
2349
|
-
};
|
|
2350
|
-
readonly resolvedAt: string;
|
|
2351
|
-
readonly reason: string | null;
|
|
2352
|
-
} | null;
|
|
2353
|
-
readonly createdAt: string;
|
|
2354
|
-
readonly updatedAt: string;
|
|
2355
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
|
|
2356
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
2357
|
-
})[];
|
|
2358
|
-
readonly nextCursor: string | null;
|
|
2359
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
814
|
+
}) => import("./internal/operation").OperationResult<"mailboxesListActions">) & {
|
|
2360
815
|
readonly pages: (input: {
|
|
2361
816
|
readonly id: string;
|
|
2362
817
|
readonly limit?: string | null | undefined;
|
|
@@ -2694,788 +1149,31 @@ export declare const listActions: ((input: {
|
|
|
2694
1149
|
export declare const getAction: (input: {
|
|
2695
1150
|
readonly id: string;
|
|
2696
1151
|
readonly actionId: string;
|
|
2697
|
-
}) => import("
|
|
2698
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2699
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2700
|
-
readonly proposedBy: {
|
|
2701
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2702
|
-
readonly id: string;
|
|
2703
|
-
readonly displayName?: string | null;
|
|
2704
|
-
};
|
|
2705
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2706
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2707
|
-
readonly decision: {
|
|
2708
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
2709
|
-
readonly reason: string | null;
|
|
2710
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
2711
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
2712
|
-
readonly decidedAt: string;
|
|
2713
|
-
} | null;
|
|
2714
|
-
readonly resolution: {
|
|
2715
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
2716
|
-
readonly actor: {
|
|
2717
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2718
|
-
readonly id: string;
|
|
2719
|
-
readonly displayName?: string | null;
|
|
2720
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "system";
|
|
2721
|
-
};
|
|
2722
|
-
readonly resolvedAt: string;
|
|
2723
|
-
readonly reason: string | null;
|
|
2724
|
-
} | null;
|
|
2725
|
-
readonly createdAt: string;
|
|
2726
|
-
readonly updatedAt: string;
|
|
2727
|
-
readonly type: "reply" | "sendMessage";
|
|
2728
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
2729
|
-
readonly send: {
|
|
2730
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2731
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2732
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2733
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2734
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
2735
|
-
readonly acceptedAt: string | null;
|
|
2736
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
2737
|
-
readonly reviewExpectedAt: string | null;
|
|
2738
|
-
readonly skippedRecipients: readonly {
|
|
2739
|
-
readonly address: string;
|
|
2740
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
2741
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
2742
|
-
}[];
|
|
2743
|
-
readonly executeUntil: string | null;
|
|
2744
|
-
readonly retryAt: string | null;
|
|
2745
|
-
readonly problem: {
|
|
2746
|
-
readonly code: string;
|
|
2747
|
-
readonly message: string;
|
|
2748
|
-
readonly error?: {
|
|
2749
|
-
readonly _tag: "SenderNotReadyError";
|
|
2750
|
-
readonly message: string;
|
|
2751
|
-
readonly sender: string;
|
|
2752
|
-
readonly retryAfterSeconds?: number | null;
|
|
2753
|
-
} | {
|
|
2754
|
-
readonly _tag: "RateLimitedError";
|
|
2755
|
-
readonly message: string;
|
|
2756
|
-
readonly retryAfterSeconds: number;
|
|
2757
|
-
} | {
|
|
2758
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
2759
|
-
readonly message: string;
|
|
2760
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
2761
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
2762
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
2763
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
2764
|
-
readonly identityId?: string | null;
|
|
2765
|
-
} | {
|
|
2766
|
-
readonly _tag: "PaymentRequiredError";
|
|
2767
|
-
readonly message: string;
|
|
2768
|
-
readonly resource: string;
|
|
2769
|
-
readonly currentUsage: number;
|
|
2770
|
-
readonly limit: number;
|
|
2771
|
-
} | {
|
|
2772
|
-
readonly _tag: "ValidationError";
|
|
2773
|
-
readonly message: string;
|
|
2774
|
-
readonly fields?: {
|
|
2775
|
-
readonly [x: string]: readonly string[];
|
|
2776
|
-
} | null;
|
|
2777
|
-
} | {
|
|
2778
|
-
readonly _tag: "ForbiddenError";
|
|
2779
|
-
readonly message: string;
|
|
2780
|
-
} | {
|
|
2781
|
-
readonly _tag: "ResourceNotFoundError";
|
|
2782
|
-
readonly resource: string;
|
|
2783
|
-
readonly id: string;
|
|
2784
|
-
readonly message: string;
|
|
2785
|
-
} | null;
|
|
2786
|
-
} | null;
|
|
2787
|
-
readonly retryEligible: boolean;
|
|
2788
|
-
readonly decision: {
|
|
2789
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
2790
|
-
readonly reason: string | null;
|
|
2791
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
2792
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
2793
|
-
readonly decidedAt: string;
|
|
2794
|
-
} | null;
|
|
2795
|
-
readonly createdAt: string;
|
|
2796
|
-
readonly updatedAt: string;
|
|
2797
|
-
};
|
|
2798
|
-
readonly intent: {
|
|
2799
|
-
readonly channel: "email";
|
|
2800
|
-
readonly draftRevision: number;
|
|
2801
|
-
readonly from: string;
|
|
2802
|
-
readonly fromName: string | null;
|
|
2803
|
-
readonly to: readonly [string, ...string[]];
|
|
2804
|
-
readonly cc: readonly string[];
|
|
2805
|
-
readonly bcc: readonly string[];
|
|
2806
|
-
readonly replyTo: readonly string[];
|
|
2807
|
-
readonly subject: string;
|
|
2808
|
-
readonly text: string | null;
|
|
2809
|
-
readonly html: string | null;
|
|
2810
|
-
readonly attachments: readonly {
|
|
2811
|
-
readonly filename: string;
|
|
2812
|
-
readonly content?: string | null;
|
|
2813
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
2814
|
-
readonly contentType: string;
|
|
2815
|
-
readonly size: number;
|
|
2816
|
-
}[];
|
|
2817
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2818
|
-
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
2819
|
-
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2820
|
-
} | null;
|
|
2821
|
-
} | {
|
|
2822
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2823
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2824
|
-
readonly proposedBy: {
|
|
2825
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2826
|
-
readonly id: string;
|
|
2827
|
-
readonly displayName?: string | null;
|
|
2828
|
-
};
|
|
2829
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2830
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2831
|
-
readonly decision: {
|
|
2832
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
2833
|
-
readonly reason: string | null;
|
|
2834
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
2835
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
2836
|
-
readonly decidedAt: string;
|
|
2837
|
-
} | null;
|
|
2838
|
-
readonly resolution: {
|
|
2839
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
2840
|
-
readonly actor: {
|
|
2841
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2842
|
-
readonly id: string;
|
|
2843
|
-
readonly displayName?: string | null;
|
|
2844
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "system";
|
|
2845
|
-
};
|
|
2846
|
-
readonly resolvedAt: string;
|
|
2847
|
-
readonly reason: string | null;
|
|
2848
|
-
} | null;
|
|
2849
|
-
readonly createdAt: string;
|
|
2850
|
-
readonly updatedAt: string;
|
|
2851
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
|
|
2852
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
2853
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1152
|
+
}) => import("./internal/operation").OperationResult<"mailboxesGetAction">;
|
|
2854
1153
|
export declare const cancelAction: (input: {
|
|
2855
1154
|
readonly id: string;
|
|
2856
1155
|
readonly actionId: string;
|
|
2857
|
-
}) => import("
|
|
2858
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2859
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2860
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2861
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2862
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
2863
|
-
readonly acceptedAt: string | null;
|
|
2864
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
2865
|
-
readonly reviewExpectedAt: string | null;
|
|
2866
|
-
readonly skippedRecipients: readonly {
|
|
2867
|
-
readonly address: string;
|
|
2868
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
2869
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
2870
|
-
}[];
|
|
2871
|
-
readonly executeUntil: string | null;
|
|
2872
|
-
readonly retryAt: string | null;
|
|
2873
|
-
readonly problem: {
|
|
2874
|
-
readonly code: string;
|
|
2875
|
-
readonly message: string;
|
|
2876
|
-
readonly error?: {
|
|
2877
|
-
readonly _tag: "SenderNotReadyError";
|
|
2878
|
-
readonly message: string;
|
|
2879
|
-
readonly sender: string;
|
|
2880
|
-
readonly retryAfterSeconds?: number | null;
|
|
2881
|
-
} | {
|
|
2882
|
-
readonly _tag: "RateLimitedError";
|
|
2883
|
-
readonly message: string;
|
|
2884
|
-
readonly retryAfterSeconds: number;
|
|
2885
|
-
} | {
|
|
2886
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
2887
|
-
readonly message: string;
|
|
2888
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
2889
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
2890
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
2891
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
2892
|
-
readonly identityId?: string | null;
|
|
2893
|
-
} | {
|
|
2894
|
-
readonly _tag: "PaymentRequiredError";
|
|
2895
|
-
readonly message: string;
|
|
2896
|
-
readonly resource: string;
|
|
2897
|
-
readonly currentUsage: number;
|
|
2898
|
-
readonly limit: number;
|
|
2899
|
-
} | {
|
|
2900
|
-
readonly _tag: "ValidationError";
|
|
2901
|
-
readonly message: string;
|
|
2902
|
-
readonly fields?: {
|
|
2903
|
-
readonly [x: string]: readonly string[];
|
|
2904
|
-
} | null;
|
|
2905
|
-
} | {
|
|
2906
|
-
readonly _tag: "ForbiddenError";
|
|
2907
|
-
readonly message: string;
|
|
2908
|
-
} | {
|
|
2909
|
-
readonly _tag: "ResourceNotFoundError";
|
|
2910
|
-
readonly resource: string;
|
|
2911
|
-
readonly id: string;
|
|
2912
|
-
readonly message: string;
|
|
2913
|
-
} | null;
|
|
2914
|
-
} | null;
|
|
2915
|
-
readonly retryEligible: boolean;
|
|
2916
|
-
readonly decision: {
|
|
2917
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
2918
|
-
readonly reason: string | null;
|
|
2919
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
2920
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
2921
|
-
readonly decidedAt: string;
|
|
2922
|
-
} | null;
|
|
2923
|
-
readonly createdAt: string;
|
|
2924
|
-
readonly updatedAt: string;
|
|
2925
|
-
} | {
|
|
2926
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2927
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2928
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2929
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2930
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
2931
|
-
readonly acceptedAt: string | null;
|
|
2932
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
2933
|
-
readonly reviewExpectedAt: string | null;
|
|
2934
|
-
readonly skippedRecipients: readonly {
|
|
2935
|
-
readonly address: string;
|
|
2936
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
2937
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
2938
|
-
}[];
|
|
2939
|
-
readonly executeUntil: string | null;
|
|
2940
|
-
readonly retryAt: string | null;
|
|
2941
|
-
readonly problem: {
|
|
2942
|
-
readonly code: string;
|
|
2943
|
-
readonly message: string;
|
|
2944
|
-
readonly error?: {
|
|
2945
|
-
readonly _tag: "SenderNotReadyError";
|
|
2946
|
-
readonly message: string;
|
|
2947
|
-
readonly sender: string;
|
|
2948
|
-
readonly retryAfterSeconds?: number | null;
|
|
2949
|
-
} | {
|
|
2950
|
-
readonly _tag: "RateLimitedError";
|
|
2951
|
-
readonly message: string;
|
|
2952
|
-
readonly retryAfterSeconds: number;
|
|
2953
|
-
} | {
|
|
2954
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
2955
|
-
readonly message: string;
|
|
2956
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
2957
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
2958
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
2959
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
2960
|
-
readonly identityId?: string | null;
|
|
2961
|
-
} | {
|
|
2962
|
-
readonly _tag: "PaymentRequiredError";
|
|
2963
|
-
readonly message: string;
|
|
2964
|
-
readonly resource: string;
|
|
2965
|
-
readonly currentUsage: number;
|
|
2966
|
-
readonly limit: number;
|
|
2967
|
-
} | {
|
|
2968
|
-
readonly _tag: "ValidationError";
|
|
2969
|
-
readonly message: string;
|
|
2970
|
-
readonly fields?: {
|
|
2971
|
-
readonly [x: string]: readonly string[];
|
|
2972
|
-
} | null;
|
|
2973
|
-
} | {
|
|
2974
|
-
readonly _tag: "ForbiddenError";
|
|
2975
|
-
readonly message: string;
|
|
2976
|
-
} | {
|
|
2977
|
-
readonly _tag: "ResourceNotFoundError";
|
|
2978
|
-
readonly resource: string;
|
|
2979
|
-
readonly id: string;
|
|
2980
|
-
readonly message: string;
|
|
2981
|
-
} | null;
|
|
2982
|
-
} | null;
|
|
2983
|
-
readonly retryEligible: boolean;
|
|
2984
|
-
readonly decision: {
|
|
2985
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
2986
|
-
readonly reason: string | null;
|
|
2987
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
2988
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
2989
|
-
readonly decidedAt: string;
|
|
2990
|
-
} | null;
|
|
2991
|
-
readonly createdAt: string;
|
|
2992
|
-
readonly updatedAt: string;
|
|
2993
|
-
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1156
|
+
}) => import("./internal/operation").OperationResult<"mailboxesCancelAction">;
|
|
2994
1157
|
export declare const retryAction: (input: {
|
|
2995
1158
|
readonly id: string;
|
|
2996
1159
|
readonly actionId: string;
|
|
2997
|
-
}) => import("
|
|
2998
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2999
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
3000
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
3001
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3002
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
3003
|
-
readonly acceptedAt: string | null;
|
|
3004
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
3005
|
-
readonly reviewExpectedAt: string | null;
|
|
3006
|
-
readonly skippedRecipients: readonly {
|
|
3007
|
-
readonly address: string;
|
|
3008
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
3009
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
3010
|
-
}[];
|
|
3011
|
-
readonly executeUntil: string | null;
|
|
3012
|
-
readonly retryAt: string | null;
|
|
3013
|
-
readonly problem: {
|
|
3014
|
-
readonly code: string;
|
|
3015
|
-
readonly message: string;
|
|
3016
|
-
readonly error?: {
|
|
3017
|
-
readonly _tag: "SenderNotReadyError";
|
|
3018
|
-
readonly message: string;
|
|
3019
|
-
readonly sender: string;
|
|
3020
|
-
readonly retryAfterSeconds?: number | null;
|
|
3021
|
-
} | {
|
|
3022
|
-
readonly _tag: "RateLimitedError";
|
|
3023
|
-
readonly message: string;
|
|
3024
|
-
readonly retryAfterSeconds: number;
|
|
3025
|
-
} | {
|
|
3026
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
3027
|
-
readonly message: string;
|
|
3028
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
3029
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
3030
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
3031
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
3032
|
-
readonly identityId?: string | null;
|
|
3033
|
-
} | {
|
|
3034
|
-
readonly _tag: "PaymentRequiredError";
|
|
3035
|
-
readonly message: string;
|
|
3036
|
-
readonly resource: string;
|
|
3037
|
-
readonly currentUsage: number;
|
|
3038
|
-
readonly limit: number;
|
|
3039
|
-
} | {
|
|
3040
|
-
readonly _tag: "ValidationError";
|
|
3041
|
-
readonly message: string;
|
|
3042
|
-
readonly fields?: {
|
|
3043
|
-
readonly [x: string]: readonly string[];
|
|
3044
|
-
} | null;
|
|
3045
|
-
} | {
|
|
3046
|
-
readonly _tag: "ForbiddenError";
|
|
3047
|
-
readonly message: string;
|
|
3048
|
-
} | {
|
|
3049
|
-
readonly _tag: "ResourceNotFoundError";
|
|
3050
|
-
readonly resource: string;
|
|
3051
|
-
readonly id: string;
|
|
3052
|
-
readonly message: string;
|
|
3053
|
-
} | null;
|
|
3054
|
-
} | null;
|
|
3055
|
-
readonly retryEligible: boolean;
|
|
3056
|
-
readonly decision: {
|
|
3057
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
3058
|
-
readonly reason: string | null;
|
|
3059
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
3060
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
3061
|
-
readonly decidedAt: string;
|
|
3062
|
-
} | null;
|
|
3063
|
-
readonly createdAt: string;
|
|
3064
|
-
readonly updatedAt: string;
|
|
3065
|
-
} | {
|
|
3066
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
3067
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
3068
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
3069
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3070
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
3071
|
-
readonly acceptedAt: string | null;
|
|
3072
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
3073
|
-
readonly reviewExpectedAt: string | null;
|
|
3074
|
-
readonly skippedRecipients: readonly {
|
|
3075
|
-
readonly address: string;
|
|
3076
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
3077
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
3078
|
-
}[];
|
|
3079
|
-
readonly executeUntil: string | null;
|
|
3080
|
-
readonly retryAt: string | null;
|
|
3081
|
-
readonly problem: {
|
|
3082
|
-
readonly code: string;
|
|
3083
|
-
readonly message: string;
|
|
3084
|
-
readonly error?: {
|
|
3085
|
-
readonly _tag: "SenderNotReadyError";
|
|
3086
|
-
readonly message: string;
|
|
3087
|
-
readonly sender: string;
|
|
3088
|
-
readonly retryAfterSeconds?: number | null;
|
|
3089
|
-
} | {
|
|
3090
|
-
readonly _tag: "RateLimitedError";
|
|
3091
|
-
readonly message: string;
|
|
3092
|
-
readonly retryAfterSeconds: number;
|
|
3093
|
-
} | {
|
|
3094
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
3095
|
-
readonly message: string;
|
|
3096
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
3097
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
3098
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
3099
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
3100
|
-
readonly identityId?: string | null;
|
|
3101
|
-
} | {
|
|
3102
|
-
readonly _tag: "PaymentRequiredError";
|
|
3103
|
-
readonly message: string;
|
|
3104
|
-
readonly resource: string;
|
|
3105
|
-
readonly currentUsage: number;
|
|
3106
|
-
readonly limit: number;
|
|
3107
|
-
} | {
|
|
3108
|
-
readonly _tag: "ValidationError";
|
|
3109
|
-
readonly message: string;
|
|
3110
|
-
readonly fields?: {
|
|
3111
|
-
readonly [x: string]: readonly string[];
|
|
3112
|
-
} | null;
|
|
3113
|
-
} | {
|
|
3114
|
-
readonly _tag: "ForbiddenError";
|
|
3115
|
-
readonly message: string;
|
|
3116
|
-
} | {
|
|
3117
|
-
readonly _tag: "ResourceNotFoundError";
|
|
3118
|
-
readonly resource: string;
|
|
3119
|
-
readonly id: string;
|
|
3120
|
-
readonly message: string;
|
|
3121
|
-
} | null;
|
|
3122
|
-
} | null;
|
|
3123
|
-
readonly retryEligible: boolean;
|
|
3124
|
-
readonly decision: {
|
|
3125
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
3126
|
-
readonly reason: string | null;
|
|
3127
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
3128
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
3129
|
-
readonly decidedAt: string;
|
|
3130
|
-
} | null;
|
|
3131
|
-
readonly createdAt: string;
|
|
3132
|
-
readonly updatedAt: string;
|
|
3133
|
-
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1160
|
+
}) => import("./internal/operation").OperationResult<"mailboxesRetryAction">;
|
|
3134
1161
|
export declare const approveAction: (input: {
|
|
3135
1162
|
readonly id: string;
|
|
3136
1163
|
readonly actionId: string;
|
|
3137
|
-
}) => import("
|
|
3138
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
3139
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
3140
|
-
readonly proposedBy: {
|
|
3141
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
3142
|
-
readonly id: string;
|
|
3143
|
-
readonly displayName?: string | null;
|
|
3144
|
-
};
|
|
3145
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3146
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
3147
|
-
readonly decision: {
|
|
3148
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
3149
|
-
readonly reason: string | null;
|
|
3150
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
3151
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
3152
|
-
readonly decidedAt: string;
|
|
3153
|
-
} | null;
|
|
3154
|
-
readonly resolution: {
|
|
3155
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
3156
|
-
readonly actor: {
|
|
3157
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
3158
|
-
readonly id: string;
|
|
3159
|
-
readonly displayName?: string | null;
|
|
3160
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "system";
|
|
3161
|
-
};
|
|
3162
|
-
readonly resolvedAt: string;
|
|
3163
|
-
readonly reason: string | null;
|
|
3164
|
-
} | null;
|
|
3165
|
-
readonly createdAt: string;
|
|
3166
|
-
readonly updatedAt: string;
|
|
3167
|
-
readonly type: "reply" | "sendMessage";
|
|
3168
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
3169
|
-
readonly send: {
|
|
3170
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
3171
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
3172
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
3173
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3174
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
3175
|
-
readonly acceptedAt: string | null;
|
|
3176
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
3177
|
-
readonly reviewExpectedAt: string | null;
|
|
3178
|
-
readonly skippedRecipients: readonly {
|
|
3179
|
-
readonly address: string;
|
|
3180
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
3181
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
3182
|
-
}[];
|
|
3183
|
-
readonly executeUntil: string | null;
|
|
3184
|
-
readonly retryAt: string | null;
|
|
3185
|
-
readonly problem: {
|
|
3186
|
-
readonly code: string;
|
|
3187
|
-
readonly message: string;
|
|
3188
|
-
readonly error?: {
|
|
3189
|
-
readonly _tag: "SenderNotReadyError";
|
|
3190
|
-
readonly message: string;
|
|
3191
|
-
readonly sender: string;
|
|
3192
|
-
readonly retryAfterSeconds?: number | null;
|
|
3193
|
-
} | {
|
|
3194
|
-
readonly _tag: "RateLimitedError";
|
|
3195
|
-
readonly message: string;
|
|
3196
|
-
readonly retryAfterSeconds: number;
|
|
3197
|
-
} | {
|
|
3198
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
3199
|
-
readonly message: string;
|
|
3200
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
3201
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
3202
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
3203
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
3204
|
-
readonly identityId?: string | null;
|
|
3205
|
-
} | {
|
|
3206
|
-
readonly _tag: "PaymentRequiredError";
|
|
3207
|
-
readonly message: string;
|
|
3208
|
-
readonly resource: string;
|
|
3209
|
-
readonly currentUsage: number;
|
|
3210
|
-
readonly limit: number;
|
|
3211
|
-
} | {
|
|
3212
|
-
readonly _tag: "ValidationError";
|
|
3213
|
-
readonly message: string;
|
|
3214
|
-
readonly fields?: {
|
|
3215
|
-
readonly [x: string]: readonly string[];
|
|
3216
|
-
} | null;
|
|
3217
|
-
} | {
|
|
3218
|
-
readonly _tag: "ForbiddenError";
|
|
3219
|
-
readonly message: string;
|
|
3220
|
-
} | {
|
|
3221
|
-
readonly _tag: "ResourceNotFoundError";
|
|
3222
|
-
readonly resource: string;
|
|
3223
|
-
readonly id: string;
|
|
3224
|
-
readonly message: string;
|
|
3225
|
-
} | null;
|
|
3226
|
-
} | null;
|
|
3227
|
-
readonly retryEligible: boolean;
|
|
3228
|
-
readonly decision: {
|
|
3229
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
3230
|
-
readonly reason: string | null;
|
|
3231
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
3232
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
3233
|
-
readonly decidedAt: string;
|
|
3234
|
-
} | null;
|
|
3235
|
-
readonly createdAt: string;
|
|
3236
|
-
readonly updatedAt: string;
|
|
3237
|
-
};
|
|
3238
|
-
readonly intent: {
|
|
3239
|
-
readonly channel: "email";
|
|
3240
|
-
readonly draftRevision: number;
|
|
3241
|
-
readonly from: string;
|
|
3242
|
-
readonly fromName: string | null;
|
|
3243
|
-
readonly to: readonly [string, ...string[]];
|
|
3244
|
-
readonly cc: readonly string[];
|
|
3245
|
-
readonly bcc: readonly string[];
|
|
3246
|
-
readonly replyTo: readonly string[];
|
|
3247
|
-
readonly subject: string;
|
|
3248
|
-
readonly text: string | null;
|
|
3249
|
-
readonly html: string | null;
|
|
3250
|
-
readonly attachments: readonly {
|
|
3251
|
-
readonly filename: string;
|
|
3252
|
-
readonly content?: string | null;
|
|
3253
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
3254
|
-
readonly contentType: string;
|
|
3255
|
-
readonly size: number;
|
|
3256
|
-
}[];
|
|
3257
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3258
|
-
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
3259
|
-
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
3260
|
-
} | null;
|
|
3261
|
-
} | {
|
|
3262
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
3263
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
3264
|
-
readonly proposedBy: {
|
|
3265
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
3266
|
-
readonly id: string;
|
|
3267
|
-
readonly displayName?: string | null;
|
|
3268
|
-
};
|
|
3269
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3270
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
3271
|
-
readonly decision: {
|
|
3272
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
3273
|
-
readonly reason: string | null;
|
|
3274
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
3275
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
3276
|
-
readonly decidedAt: string;
|
|
3277
|
-
} | null;
|
|
3278
|
-
readonly resolution: {
|
|
3279
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
3280
|
-
readonly actor: {
|
|
3281
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
3282
|
-
readonly id: string;
|
|
3283
|
-
readonly displayName?: string | null;
|
|
3284
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "system";
|
|
3285
|
-
};
|
|
3286
|
-
readonly resolvedAt: string;
|
|
3287
|
-
readonly reason: string | null;
|
|
3288
|
-
} | null;
|
|
3289
|
-
readonly createdAt: string;
|
|
3290
|
-
readonly updatedAt: string;
|
|
3291
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
|
|
3292
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
3293
|
-
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1164
|
+
}) => import("./internal/operation").OperationResult<"mailboxesApproveAction">;
|
|
3294
1165
|
export declare const denyAction: (input: {
|
|
3295
1166
|
readonly id: string;
|
|
3296
1167
|
readonly actionId: string;
|
|
3297
1168
|
readonly reason: string;
|
|
3298
|
-
}) => import("
|
|
3299
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
3300
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
3301
|
-
readonly proposedBy: {
|
|
3302
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
3303
|
-
readonly id: string;
|
|
3304
|
-
readonly displayName?: string | null;
|
|
3305
|
-
};
|
|
3306
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3307
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
3308
|
-
readonly decision: {
|
|
3309
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
3310
|
-
readonly reason: string | null;
|
|
3311
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
3312
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
3313
|
-
readonly decidedAt: string;
|
|
3314
|
-
} | null;
|
|
3315
|
-
readonly resolution: {
|
|
3316
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
3317
|
-
readonly actor: {
|
|
3318
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
3319
|
-
readonly id: string;
|
|
3320
|
-
readonly displayName?: string | null;
|
|
3321
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "system";
|
|
3322
|
-
};
|
|
3323
|
-
readonly resolvedAt: string;
|
|
3324
|
-
readonly reason: string | null;
|
|
3325
|
-
} | null;
|
|
3326
|
-
readonly createdAt: string;
|
|
3327
|
-
readonly updatedAt: string;
|
|
3328
|
-
readonly type: "reply" | "sendMessage";
|
|
3329
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
3330
|
-
readonly send: {
|
|
3331
|
-
readonly actionId: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
3332
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
3333
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
3334
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3335
|
-
readonly state: "accepted" | "approvalRequired" | "completed" | "notSent" | "queued" | "uncertain";
|
|
3336
|
-
readonly acceptedAt: string | null;
|
|
3337
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
3338
|
-
readonly reviewExpectedAt: string | null;
|
|
3339
|
-
readonly skippedRecipients: readonly {
|
|
3340
|
-
readonly address: string;
|
|
3341
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
3342
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
3343
|
-
}[];
|
|
3344
|
-
readonly executeUntil: string | null;
|
|
3345
|
-
readonly retryAt: string | null;
|
|
3346
|
-
readonly problem: {
|
|
3347
|
-
readonly code: string;
|
|
3348
|
-
readonly message: string;
|
|
3349
|
-
readonly error?: {
|
|
3350
|
-
readonly _tag: "SenderNotReadyError";
|
|
3351
|
-
readonly message: string;
|
|
3352
|
-
readonly sender: string;
|
|
3353
|
-
readonly retryAfterSeconds?: number | null;
|
|
3354
|
-
} | {
|
|
3355
|
-
readonly _tag: "RateLimitedError";
|
|
3356
|
-
readonly message: string;
|
|
3357
|
-
readonly retryAfterSeconds: number;
|
|
3358
|
-
} | {
|
|
3359
|
-
readonly _tag: "OnboardingReviewRequiredError";
|
|
3360
|
-
readonly message: string;
|
|
3361
|
-
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required";
|
|
3362
|
-
readonly decision: "approved" | "rejected" | "undecided";
|
|
3363
|
-
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
3364
|
-
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review";
|
|
3365
|
-
readonly identityId?: string | null;
|
|
3366
|
-
} | {
|
|
3367
|
-
readonly _tag: "PaymentRequiredError";
|
|
3368
|
-
readonly message: string;
|
|
3369
|
-
readonly resource: string;
|
|
3370
|
-
readonly currentUsage: number;
|
|
3371
|
-
readonly limit: number;
|
|
3372
|
-
} | {
|
|
3373
|
-
readonly _tag: "ValidationError";
|
|
3374
|
-
readonly message: string;
|
|
3375
|
-
readonly fields?: {
|
|
3376
|
-
readonly [x: string]: readonly string[];
|
|
3377
|
-
} | null;
|
|
3378
|
-
} | {
|
|
3379
|
-
readonly _tag: "ForbiddenError";
|
|
3380
|
-
readonly message: string;
|
|
3381
|
-
} | {
|
|
3382
|
-
readonly _tag: "ResourceNotFoundError";
|
|
3383
|
-
readonly resource: string;
|
|
3384
|
-
readonly id: string;
|
|
3385
|
-
readonly message: string;
|
|
3386
|
-
} | null;
|
|
3387
|
-
} | null;
|
|
3388
|
-
readonly retryEligible: boolean;
|
|
3389
|
-
readonly decision: {
|
|
3390
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
3391
|
-
readonly reason: string | null;
|
|
3392
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
3393
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
3394
|
-
readonly decidedAt: string;
|
|
3395
|
-
} | null;
|
|
3396
|
-
readonly createdAt: string;
|
|
3397
|
-
readonly updatedAt: string;
|
|
3398
|
-
};
|
|
3399
|
-
readonly intent: {
|
|
3400
|
-
readonly channel: "email";
|
|
3401
|
-
readonly draftRevision: number;
|
|
3402
|
-
readonly from: string;
|
|
3403
|
-
readonly fromName: string | null;
|
|
3404
|
-
readonly to: readonly [string, ...string[]];
|
|
3405
|
-
readonly cc: readonly string[];
|
|
3406
|
-
readonly bcc: readonly string[];
|
|
3407
|
-
readonly replyTo: readonly string[];
|
|
3408
|
-
readonly subject: string;
|
|
3409
|
-
readonly text: string | null;
|
|
3410
|
-
readonly html: string | null;
|
|
3411
|
-
readonly attachments: readonly {
|
|
3412
|
-
readonly filename: string;
|
|
3413
|
-
readonly content?: string | null;
|
|
3414
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
3415
|
-
readonly contentType: string;
|
|
3416
|
-
readonly size: number;
|
|
3417
|
-
}[];
|
|
3418
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3419
|
-
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
3420
|
-
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
3421
|
-
} | null;
|
|
3422
|
-
} | {
|
|
3423
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
3424
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
3425
|
-
readonly proposedBy: {
|
|
3426
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
3427
|
-
readonly id: string;
|
|
3428
|
-
readonly displayName?: string | null;
|
|
3429
|
-
};
|
|
3430
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3431
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
3432
|
-
readonly decision: {
|
|
3433
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
3434
|
-
readonly reason: string | null;
|
|
3435
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
3436
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
3437
|
-
readonly decidedAt: string;
|
|
3438
|
-
} | null;
|
|
3439
|
-
readonly resolution: {
|
|
3440
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
3441
|
-
readonly actor: {
|
|
3442
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
3443
|
-
readonly id: string;
|
|
3444
|
-
readonly displayName?: string | null;
|
|
3445
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "system";
|
|
3446
|
-
};
|
|
3447
|
-
readonly resolvedAt: string;
|
|
3448
|
-
readonly reason: string | null;
|
|
3449
|
-
} | null;
|
|
3450
|
-
readonly createdAt: string;
|
|
3451
|
-
readonly updatedAt: string;
|
|
3452
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
|
|
3453
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
3454
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxSendConflictError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1169
|
+
}) => import("./internal/operation").OperationResult<"mailboxesDenyAction">;
|
|
3455
1170
|
export declare const listEvents: ((input: {
|
|
3456
1171
|
readonly id: string;
|
|
3457
1172
|
readonly limit?: string | null | undefined;
|
|
3458
1173
|
readonly cursor?: string | null | undefined;
|
|
3459
1174
|
readonly after?: string | null | undefined;
|
|
3460
1175
|
readonly before?: string | null | undefined;
|
|
3461
|
-
}) => import("
|
|
3462
|
-
readonly items: readonly {
|
|
3463
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxEventId">;
|
|
3464
|
-
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";
|
|
3465
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3466
|
-
readonly actionId: (string & import("effect/Brand").Brand<"MailboxActionId">) | null;
|
|
3467
|
-
readonly actor: {
|
|
3468
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
3469
|
-
readonly id: string;
|
|
3470
|
-
readonly displayName?: string | null;
|
|
3471
|
-
};
|
|
3472
|
-
readonly payload: {
|
|
3473
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
3474
|
-
};
|
|
3475
|
-
readonly occurredAt: string;
|
|
3476
|
-
}[];
|
|
3477
|
-
readonly nextCursor: string | null;
|
|
3478
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
1176
|
+
}) => import("./internal/operation").OperationResult<"mailboxesListEvents">) & {
|
|
3479
1177
|
readonly pages: (input: {
|
|
3480
1178
|
readonly id: string;
|
|
3481
1179
|
readonly limit?: string | null | undefined;
|