samva 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/README.md +14 -3
- package/dist/client/sdk.gen.d.ts +321 -129
- package/dist/client/types.gen.d.ts +1818 -777
- package/dist/{client-BqkU-sFv.js → client-BmZK_uCt.js} +2699 -1839
- package/dist/client-attribution-BslSOa_8.js +9 -0
- package/dist/client-attribution.d.ts +2 -0
- package/dist/effect/api-keys.d.ts +51 -51
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +320 -1005
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +6 -6
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +292 -314
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +305 -437
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.d.ts +74 -74
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +233 -265
- package/dist/effect/email.js +2 -2
- package/dist/effect/generated.d.ts +13410 -14526
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/client.d.ts +1 -1
- package/dist/effect/internal/operation.d.ts +32 -129
- package/dist/effect/media.d.ts +80 -0
- package/dist/effect/media.js +19 -0
- package/dist/effect/messages.d.ts +90 -307
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.d.ts +17 -17
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +162 -180
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/runtime.d.ts +0 -2
- package/dist/effect/scheduled-messages.d.ts +242 -639
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +1376 -2033
- package/dist/effect/templates.js +40 -30
- package/dist/effect/webhooks.d.ts +53 -54
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{normalize-LkWl4HUF.js → normalize-BiIJnycv.js} +6 -15
- package/dist/normalize.d.ts +3 -33
- package/dist/{operation-Ccqh_yxb.js → operation-B1knNlxk.js} +83 -38
- package/dist/promises/index.d.ts +13 -21
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-Dgv8UmCC.js → promises-n1opem5V.js} +572 -184
- package/dist/service-map.d.ts +96 -44
- package/package.json +23 -19
package/dist/effect/email.d.ts
CHANGED
|
@@ -10,13 +10,13 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
10
10
|
readonly actorMetadata: {
|
|
11
11
|
readonly [x: string]: import("./generated").JsonValue;
|
|
12
12
|
} | null;
|
|
13
|
-
readonly channel: "
|
|
14
|
-
readonly direction: "
|
|
13
|
+
readonly channel: "email";
|
|
14
|
+
readonly direction: "inbound" | "outbound";
|
|
15
15
|
readonly content: import("./generated").JsonValue;
|
|
16
16
|
readonly metadata: {
|
|
17
17
|
readonly [x: string]: import("./generated").JsonValue;
|
|
18
18
|
} | null;
|
|
19
|
-
readonly status: "
|
|
19
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
20
20
|
readonly scheduledAt: string | null;
|
|
21
21
|
readonly tags: readonly string[];
|
|
22
22
|
readonly categories: readonly string[];
|
|
@@ -38,7 +38,7 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
38
38
|
readonly displayName: string | null;
|
|
39
39
|
readonly type: string;
|
|
40
40
|
readonly identities: readonly {
|
|
41
|
-
readonly channel: "
|
|
41
|
+
readonly channel: "email";
|
|
42
42
|
readonly identifier: string;
|
|
43
43
|
readonly verified: boolean;
|
|
44
44
|
}[];
|
|
@@ -49,7 +49,7 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
49
49
|
readonly displayName: string | null;
|
|
50
50
|
readonly type: string;
|
|
51
51
|
readonly identities: readonly {
|
|
52
|
-
readonly channel: "
|
|
52
|
+
readonly channel: "email";
|
|
53
53
|
readonly identifier: string;
|
|
54
54
|
readonly verified: boolean;
|
|
55
55
|
}[];
|
|
@@ -60,9 +60,9 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
60
60
|
readonly actorId: string | null;
|
|
61
61
|
readonly contactId: string | null;
|
|
62
62
|
readonly identityId: string | null;
|
|
63
|
-
readonly kind: "
|
|
63
|
+
readonly kind: "bcc" | "cc" | "to";
|
|
64
64
|
readonly address: string;
|
|
65
|
-
readonly status: "
|
|
65
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
66
66
|
readonly createdAt: string;
|
|
67
67
|
readonly updatedAt: string;
|
|
68
68
|
readonly contact: {
|
|
@@ -71,7 +71,7 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
71
71
|
readonly displayName: string | null;
|
|
72
72
|
readonly type: string;
|
|
73
73
|
readonly identities: readonly {
|
|
74
|
-
readonly channel: "
|
|
74
|
+
readonly channel: "email";
|
|
75
75
|
readonly identifier: string;
|
|
76
76
|
readonly verified: boolean;
|
|
77
77
|
}[];
|
|
@@ -81,8 +81,8 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
81
81
|
readonly id: string;
|
|
82
82
|
readonly messageId: string;
|
|
83
83
|
readonly recipientId: string | null;
|
|
84
|
-
readonly channel: "
|
|
85
|
-
readonly status: "
|
|
84
|
+
readonly channel: "email";
|
|
85
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
86
86
|
readonly attemptCount: number;
|
|
87
87
|
readonly maxAttempts: number;
|
|
88
88
|
readonly queuedAt: string | null;
|
|
@@ -129,7 +129,7 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
129
129
|
readonly spfVerdict: string | null;
|
|
130
130
|
readonly dmarcVerdict: string | null;
|
|
131
131
|
readonly isAutoReply: boolean;
|
|
132
|
-
readonly autoReplyReason: "
|
|
132
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
133
133
|
readonly priority: string | null;
|
|
134
134
|
readonly parsingErrors: readonly string[] | null;
|
|
135
135
|
readonly parsingDuration: number | null;
|
|
@@ -138,62 +138,18 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
138
138
|
readonly createdAt: string;
|
|
139
139
|
readonly updatedAt: string;
|
|
140
140
|
}[];
|
|
141
|
-
|
|
142
|
-
readonly deliveryId: string;
|
|
143
|
-
readonly fromNumber: string;
|
|
144
|
-
readonly toNumber: string;
|
|
145
|
-
readonly segmentCount: number;
|
|
146
|
-
readonly encoding: string;
|
|
147
|
-
readonly dltTemplateId: string | null;
|
|
148
|
-
readonly dltEntityId: string | null;
|
|
149
|
-
readonly dltContentId: string | null;
|
|
150
|
-
readonly carrier: string | null;
|
|
151
|
-
readonly numSegmentsReported: number | null;
|
|
152
|
-
readonly createdAt: string;
|
|
153
|
-
readonly updatedAt: string;
|
|
154
|
-
}[];
|
|
155
|
-
readonly whatsappDeliveryDetails: readonly {
|
|
156
|
-
readonly deliveryId: string;
|
|
157
|
-
readonly fromNumber: string;
|
|
158
|
-
readonly toNumber: string;
|
|
159
|
-
readonly messageType: "text" | "image" | "video" | "audio" | "document" | "location" | "contacts" | "template" | "interactive" | "sticker" | "reaction" | "order" | "button" | "system" | "unsupported";
|
|
160
|
-
readonly templateName: string | null;
|
|
161
|
-
readonly templateLanguage: string | null;
|
|
162
|
-
readonly templateCategory: string | null;
|
|
163
|
-
readonly templateParams: {
|
|
164
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
165
|
-
} | null;
|
|
166
|
-
readonly mediaUrl: string | null;
|
|
167
|
-
readonly mediaType: string | null;
|
|
168
|
-
readonly mediaS3Key: string | null;
|
|
169
|
-
readonly interactiveType: string | null;
|
|
170
|
-
readonly contextMessageId: string | null;
|
|
171
|
-
readonly conversationType: "marketing" | "utility" | "authentication" | "service" | null;
|
|
172
|
-
readonly serviceWindowId: string | null;
|
|
173
|
-
readonly freeEntryPointId: string | null;
|
|
174
|
-
readonly isBillable: boolean;
|
|
175
|
-
readonly pricing: {
|
|
176
|
-
readonly messageCost: string;
|
|
177
|
-
readonly reason: string;
|
|
178
|
-
readonly sentInServiceWindow: boolean;
|
|
179
|
-
readonly sentInFreeEntryPoint: boolean;
|
|
180
|
-
} | null;
|
|
181
|
-
readonly recipientId: string | null;
|
|
182
|
-
readonly createdAt: string;
|
|
183
|
-
readonly updatedAt: string;
|
|
184
|
-
}[];
|
|
185
|
-
}, import("effect/SchemaError").SchemaError | import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("./generated").WebhookEnqueueError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
|
|
141
|
+
}, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("./generated").WebhookEnqueueError, import("./client").Service>;
|
|
186
142
|
export declare const getTrackingDefaults: (_?: never) => import("effect/Effect").Effect<{
|
|
187
143
|
readonly opens: boolean;
|
|
188
144
|
readonly clicks: boolean;
|
|
189
|
-
}, import("
|
|
145
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
190
146
|
export declare const updateTrackingDefaults: (input?: {
|
|
191
147
|
readonly opens?: boolean | undefined;
|
|
192
148
|
readonly clicks?: boolean | undefined;
|
|
193
149
|
} | undefined) => import("effect/Effect").Effect<{
|
|
194
150
|
readonly opens: boolean;
|
|
195
151
|
readonly clicks: boolean;
|
|
196
|
-
}, import("
|
|
152
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
197
153
|
export declare const getRecipientTrackingPreference: (input: {
|
|
198
154
|
readonly email: string;
|
|
199
155
|
}) => import("effect/Effect").Effect<{
|
|
@@ -202,7 +158,7 @@ export declare const getRecipientTrackingPreference: (input: {
|
|
|
202
158
|
readonly trackingOptedOutAt: string | null;
|
|
203
159
|
readonly createdAt: string | null;
|
|
204
160
|
readonly updatedAt: string | null;
|
|
205
|
-
}, import("
|
|
161
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
206
162
|
export declare const updateRecipientTrackingPreference: (input: {
|
|
207
163
|
readonly email: string;
|
|
208
164
|
readonly optedOut: boolean;
|
|
@@ -212,21 +168,21 @@ export declare const updateRecipientTrackingPreference: (input: {
|
|
|
212
168
|
readonly trackingOptedOutAt: string | null;
|
|
213
169
|
readonly createdAt: string | null;
|
|
214
170
|
readonly updatedAt: string | null;
|
|
215
|
-
}, import("
|
|
171
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
216
172
|
export declare const listDomains: ((input?: {
|
|
217
|
-
readonly limit?: string | null | undefined;
|
|
218
173
|
readonly page?: string | null | undefined;
|
|
174
|
+
readonly limit?: string | null | undefined;
|
|
219
175
|
} | undefined) => import("effect/Effect").Effect<{
|
|
220
176
|
readonly items: readonly {
|
|
221
|
-
readonly domain: string;
|
|
222
|
-
readonly createdAt: string;
|
|
223
|
-
readonly updatedAt: string;
|
|
224
177
|
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
225
|
-
readonly
|
|
226
|
-
readonly
|
|
227
|
-
readonly isDefault: boolean;
|
|
178
|
+
readonly domain: string;
|
|
179
|
+
readonly phase: "degraded" | "dns-setup" | "failed" | "provider-setup" | "provider-verification" | "ready";
|
|
228
180
|
readonly dkimSelector?: string | null;
|
|
229
181
|
readonly dkimPublicKey?: string | null;
|
|
182
|
+
readonly isDefault: boolean;
|
|
183
|
+
readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
|
|
184
|
+
readonly createdAt: string;
|
|
185
|
+
readonly updatedAt: string;
|
|
230
186
|
}[];
|
|
231
187
|
readonly pagination: {
|
|
232
188
|
readonly page: number;
|
|
@@ -234,21 +190,21 @@ export declare const listDomains: ((input?: {
|
|
|
234
190
|
readonly total: number;
|
|
235
191
|
readonly totalPages: number;
|
|
236
192
|
};
|
|
237
|
-
}, import("
|
|
193
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
238
194
|
readonly pages: (input?: {
|
|
239
|
-
readonly limit?: string | null | undefined;
|
|
240
195
|
readonly page?: string | null | undefined;
|
|
196
|
+
readonly limit?: string | null | undefined;
|
|
241
197
|
} | undefined) => import("effect/Stream").Stream<{
|
|
242
198
|
readonly items: readonly {
|
|
243
|
-
readonly domain: string;
|
|
244
|
-
readonly createdAt: string;
|
|
245
|
-
readonly updatedAt: string;
|
|
246
199
|
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
247
|
-
readonly
|
|
248
|
-
readonly
|
|
249
|
-
readonly isDefault: boolean;
|
|
200
|
+
readonly domain: string;
|
|
201
|
+
readonly phase: "degraded" | "dns-setup" | "failed" | "provider-setup" | "provider-verification" | "ready";
|
|
250
202
|
readonly dkimSelector?: string | null;
|
|
251
203
|
readonly dkimPublicKey?: string | null;
|
|
204
|
+
readonly isDefault: boolean;
|
|
205
|
+
readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
|
|
206
|
+
readonly createdAt: string;
|
|
207
|
+
readonly updatedAt: string;
|
|
252
208
|
}[];
|
|
253
209
|
readonly pagination: {
|
|
254
210
|
readonly page: number;
|
|
@@ -256,76 +212,80 @@ export declare const listDomains: ((input?: {
|
|
|
256
212
|
readonly total: number;
|
|
257
213
|
readonly totalPages: number;
|
|
258
214
|
};
|
|
259
|
-
}, import("
|
|
215
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
260
216
|
readonly items: (input?: {
|
|
261
|
-
readonly limit?: string | null | undefined;
|
|
262
217
|
readonly page?: string | null | undefined;
|
|
218
|
+
readonly limit?: string | null | undefined;
|
|
263
219
|
} | undefined) => import("effect/Stream").Stream<{
|
|
264
|
-
readonly domain: string;
|
|
265
|
-
readonly createdAt: string;
|
|
266
|
-
readonly updatedAt: string;
|
|
267
220
|
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
268
|
-
readonly
|
|
269
|
-
readonly
|
|
270
|
-
readonly isDefault: boolean;
|
|
221
|
+
readonly domain: string;
|
|
222
|
+
readonly phase: "degraded" | "dns-setup" | "failed" | "provider-setup" | "provider-verification" | "ready";
|
|
271
223
|
readonly dkimSelector?: string | null;
|
|
272
224
|
readonly dkimPublicKey?: string | null;
|
|
273
|
-
|
|
225
|
+
readonly isDefault: boolean;
|
|
226
|
+
readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
|
|
227
|
+
readonly createdAt: string;
|
|
228
|
+
readonly updatedAt: string;
|
|
229
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
274
230
|
};
|
|
275
231
|
export declare const addDomain: (input: {
|
|
276
232
|
readonly domain: string;
|
|
233
|
+
readonly connection?: {
|
|
234
|
+
readonly connectionId: string;
|
|
235
|
+
readonly zone: string;
|
|
236
|
+
} | null | undefined;
|
|
277
237
|
}) => import("effect/Effect").Effect<{
|
|
278
|
-
readonly domain: string;
|
|
279
|
-
readonly createdAt: string;
|
|
280
|
-
readonly updatedAt: string;
|
|
281
238
|
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
239
|
+
readonly domain: string;
|
|
240
|
+
readonly phase: "degraded" | "dns-setup" | "failed" | "provider-setup" | "provider-verification" | "ready";
|
|
241
|
+
readonly dkimSelector?: string | null;
|
|
242
|
+
readonly dkimPublicKey?: string | null;
|
|
282
243
|
readonly dnsRecords: readonly {
|
|
244
|
+
readonly type: "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "NS" | "PTR" | "SOA" | "SRV" | "TXT";
|
|
283
245
|
readonly name: string;
|
|
284
|
-
readonly type: string;
|
|
285
246
|
readonly value: string;
|
|
286
|
-
readonly priority?: number | null;
|
|
287
|
-
readonly description?: string | null;
|
|
288
247
|
readonly ttl?: string | null;
|
|
248
|
+
readonly description?: string | null;
|
|
249
|
+
readonly priority?: number | null;
|
|
289
250
|
}[];
|
|
290
|
-
readonly phase: "failed" | "dns-setup" | "provider-setup" | "provider-verification" | "ready" | "degraded";
|
|
291
251
|
readonly verifiedAt: string | null;
|
|
292
|
-
readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
|
|
293
252
|
readonly isDefault: boolean;
|
|
253
|
+
readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
|
|
294
254
|
readonly deliverability: {
|
|
295
255
|
readonly bounceRate: number;
|
|
296
256
|
readonly complaintRate: number;
|
|
297
|
-
readonly sendingStatus: "
|
|
257
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
298
258
|
};
|
|
299
|
-
readonly
|
|
300
|
-
readonly
|
|
301
|
-
}, import("
|
|
259
|
+
readonly createdAt: string;
|
|
260
|
+
readonly updatedAt: string;
|
|
261
|
+
}, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").EmailChannelError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
302
262
|
export declare const getDomainVerification: (input: {
|
|
303
263
|
readonly id: string;
|
|
304
264
|
}) => import("effect/Effect").Effect<{
|
|
305
265
|
readonly domainId: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
306
266
|
readonly domain: string;
|
|
307
|
-
readonly phase: "
|
|
267
|
+
readonly phase: "degraded" | "dns-setup" | "failed" | "provider-setup" | "provider-verification" | "ready";
|
|
308
268
|
readonly records: readonly {
|
|
309
|
-
readonly status: "unchecked" | "missing" | "mismatch" | "found";
|
|
310
269
|
readonly record: {
|
|
270
|
+
readonly type: "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "NS" | "PTR" | "SOA" | "SRV" | "TXT";
|
|
311
271
|
readonly name: string;
|
|
312
|
-
readonly type: "A" | "AAAA" | "CNAME" | "MX" | "NS" | "SOA" | "PTR" | "SRV" | "TXT" | "CAA";
|
|
313
272
|
readonly value: string;
|
|
314
|
-
readonly priority?: number | null;
|
|
315
|
-
readonly description?: string | null;
|
|
316
273
|
readonly ttl?: string | null;
|
|
274
|
+
readonly description?: string | null;
|
|
275
|
+
readonly priority?: number | null;
|
|
317
276
|
};
|
|
277
|
+
readonly status: "found" | "mismatch" | "missing" | "unchecked";
|
|
318
278
|
readonly observedValues: readonly string[];
|
|
319
279
|
readonly checkedAt?: string | null;
|
|
320
280
|
readonly resolutionFailure?: {
|
|
321
|
-
readonly message: string;
|
|
322
281
|
readonly code?: string | null;
|
|
282
|
+
readonly message: string;
|
|
323
283
|
} | null;
|
|
324
284
|
}[];
|
|
325
285
|
readonly provider: {
|
|
326
|
-
readonly identity: "
|
|
327
|
-
readonly dkim?: "
|
|
328
|
-
readonly mailFrom?: "
|
|
286
|
+
readonly identity: "failed" | "pending" | "unknown" | "verified";
|
|
287
|
+
readonly dkim?: "failed" | "pending" | "unknown" | "verified" | null;
|
|
288
|
+
readonly mailFrom?: "failed" | "pending" | "unknown" | "verified" | null;
|
|
329
289
|
} | null;
|
|
330
290
|
readonly operationId: (string & import("effect/Brand").Brand<"OperationId">) | null;
|
|
331
291
|
readonly checkedAt: string | null;
|
|
@@ -335,34 +295,34 @@ export declare const getDomainVerification: (input: {
|
|
|
335
295
|
readonly message: string;
|
|
336
296
|
readonly failedAt: string;
|
|
337
297
|
} | null;
|
|
338
|
-
}, import("
|
|
298
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
339
299
|
export declare const advanceDomainVerification: (input: {
|
|
340
300
|
readonly id: string;
|
|
341
301
|
}) => import("effect/Effect").Effect<{
|
|
342
302
|
readonly domainId: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
343
303
|
readonly domain: string;
|
|
344
|
-
readonly phase: "
|
|
304
|
+
readonly phase: "degraded" | "dns-setup" | "failed" | "provider-setup" | "provider-verification" | "ready";
|
|
345
305
|
readonly records: readonly {
|
|
346
|
-
readonly status: "unchecked" | "missing" | "mismatch" | "found";
|
|
347
306
|
readonly record: {
|
|
307
|
+
readonly type: "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "NS" | "PTR" | "SOA" | "SRV" | "TXT";
|
|
348
308
|
readonly name: string;
|
|
349
|
-
readonly type: "A" | "AAAA" | "CNAME" | "MX" | "NS" | "SOA" | "PTR" | "SRV" | "TXT" | "CAA";
|
|
350
309
|
readonly value: string;
|
|
351
|
-
readonly priority?: number | null;
|
|
352
|
-
readonly description?: string | null;
|
|
353
310
|
readonly ttl?: string | null;
|
|
311
|
+
readonly description?: string | null;
|
|
312
|
+
readonly priority?: number | null;
|
|
354
313
|
};
|
|
314
|
+
readonly status: "found" | "mismatch" | "missing" | "unchecked";
|
|
355
315
|
readonly observedValues: readonly string[];
|
|
356
316
|
readonly checkedAt?: string | null;
|
|
357
317
|
readonly resolutionFailure?: {
|
|
358
|
-
readonly message: string;
|
|
359
318
|
readonly code?: string | null;
|
|
319
|
+
readonly message: string;
|
|
360
320
|
} | null;
|
|
361
321
|
}[];
|
|
362
322
|
readonly provider: {
|
|
363
|
-
readonly identity: "
|
|
364
|
-
readonly dkim?: "
|
|
365
|
-
readonly mailFrom?: "
|
|
323
|
+
readonly identity: "failed" | "pending" | "unknown" | "verified";
|
|
324
|
+
readonly dkim?: "failed" | "pending" | "unknown" | "verified" | null;
|
|
325
|
+
readonly mailFrom?: "failed" | "pending" | "unknown" | "verified" | null;
|
|
366
326
|
} | null;
|
|
367
327
|
readonly operationId: (string & import("effect/Brand").Brand<"OperationId">) | null;
|
|
368
328
|
readonly checkedAt: string | null;
|
|
@@ -372,65 +332,65 @@ export declare const advanceDomainVerification: (input: {
|
|
|
372
332
|
readonly message: string;
|
|
373
333
|
readonly failedAt: string;
|
|
374
334
|
} | null;
|
|
375
|
-
}, import("
|
|
335
|
+
}, import("./generated").ConflictError | import("./generated").EmailChannelError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
376
336
|
export declare const getDomainById: (input: {
|
|
377
337
|
readonly id: string;
|
|
378
338
|
}) => import("effect/Effect").Effect<{
|
|
379
|
-
readonly domain: string;
|
|
380
|
-
readonly createdAt: string;
|
|
381
|
-
readonly updatedAt: string;
|
|
382
339
|
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
340
|
+
readonly domain: string;
|
|
341
|
+
readonly phase: "degraded" | "dns-setup" | "failed" | "provider-setup" | "provider-verification" | "ready";
|
|
342
|
+
readonly dkimSelector?: string | null;
|
|
343
|
+
readonly dkimPublicKey?: string | null;
|
|
383
344
|
readonly dnsRecords: readonly {
|
|
345
|
+
readonly type: "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "NS" | "PTR" | "SOA" | "SRV" | "TXT";
|
|
384
346
|
readonly name: string;
|
|
385
|
-
readonly type: string;
|
|
386
347
|
readonly value: string;
|
|
387
|
-
readonly priority?: number | null;
|
|
388
|
-
readonly description?: string | null;
|
|
389
348
|
readonly ttl?: string | null;
|
|
349
|
+
readonly description?: string | null;
|
|
350
|
+
readonly priority?: number | null;
|
|
390
351
|
}[];
|
|
391
|
-
readonly phase: "failed" | "dns-setup" | "provider-setup" | "provider-verification" | "ready" | "degraded";
|
|
392
352
|
readonly verifiedAt: string | null;
|
|
393
|
-
readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
|
|
394
353
|
readonly isDefault: boolean;
|
|
354
|
+
readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
|
|
395
355
|
readonly deliverability: {
|
|
396
356
|
readonly bounceRate: number;
|
|
397
357
|
readonly complaintRate: number;
|
|
398
|
-
readonly sendingStatus: "
|
|
358
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
399
359
|
};
|
|
400
|
-
readonly
|
|
401
|
-
readonly
|
|
402
|
-
}, import("
|
|
360
|
+
readonly createdAt: string;
|
|
361
|
+
readonly updatedAt: string;
|
|
362
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
403
363
|
export declare const removeDomain: (input: {
|
|
404
364
|
readonly id: string;
|
|
405
365
|
}) => import("effect/Effect").Effect<{
|
|
406
366
|
readonly success: boolean;
|
|
407
367
|
readonly message: string;
|
|
408
|
-
}, import("
|
|
368
|
+
}, import("./generated").BillingProviderError | import("./generated").EmailChannelError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
409
369
|
export declare const setDefaultDomain: (input: {
|
|
410
370
|
readonly id: string;
|
|
411
371
|
}) => import("effect/Effect").Effect<{
|
|
412
372
|
readonly success: boolean;
|
|
413
373
|
readonly message: string;
|
|
414
|
-
}, import("
|
|
374
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
415
375
|
export declare const setDomainDefaultSender: (input: {
|
|
416
376
|
readonly id: string;
|
|
417
377
|
readonly senderId: string;
|
|
418
378
|
}) => import("effect/Effect").Effect<{
|
|
419
379
|
readonly success: boolean;
|
|
420
380
|
readonly message: string;
|
|
421
|
-
}, import("
|
|
381
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
422
382
|
export declare const clearDomainDefaultSender: (input: {
|
|
423
383
|
readonly id: string;
|
|
424
384
|
}) => import("effect/Effect").Effect<{
|
|
425
385
|
readonly success: boolean;
|
|
426
386
|
readonly message: string;
|
|
427
|
-
}, import("
|
|
387
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
428
388
|
export declare const updateDomainConfig: (input: {
|
|
429
389
|
readonly id: string;
|
|
430
|
-
readonly replyTo?: readonly string[] | null | undefined;
|
|
431
|
-
readonly unsubscribeGroupId?: string | null | undefined;
|
|
432
390
|
readonly openTracking?: boolean | null | undefined;
|
|
433
391
|
readonly clickTracking?: boolean | null | undefined;
|
|
392
|
+
readonly replyTo?: readonly string[] | null | undefined;
|
|
393
|
+
readonly unsubscribeGroupId?: string | null | undefined;
|
|
434
394
|
readonly footerEnabled?: boolean | null | undefined;
|
|
435
395
|
}) => import("effect/Effect").Effect<{
|
|
436
396
|
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
@@ -439,7 +399,7 @@ export declare const updateDomainConfig: (input: {
|
|
|
439
399
|
readonly replyTo: readonly string[] | null;
|
|
440
400
|
readonly unsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
441
401
|
readonly footerEnabled: boolean | null;
|
|
442
|
-
}, import("
|
|
402
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
443
403
|
export declare const detectRegistrar: (input: {
|
|
444
404
|
readonly id: string;
|
|
445
405
|
readonly domain: string;
|
|
@@ -448,7 +408,7 @@ export declare const detectRegistrar: (input: {
|
|
|
448
408
|
readonly name: string;
|
|
449
409
|
readonly nameservers: readonly string[];
|
|
450
410
|
readonly docsUrl: string;
|
|
451
|
-
}, import("
|
|
411
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
452
412
|
export declare const getDomainConnect: (input: {
|
|
453
413
|
readonly id: string;
|
|
454
414
|
readonly mode: string;
|
|
@@ -458,38 +418,38 @@ export declare const getDomainConnect: (input: {
|
|
|
458
418
|
} | {
|
|
459
419
|
readonly eligible: true;
|
|
460
420
|
readonly providerName?: string | null;
|
|
461
|
-
}, import("
|
|
421
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
462
422
|
export declare const buildDomainConnectApplyUrl: (input: {
|
|
463
423
|
readonly id: string;
|
|
464
424
|
readonly mode: string;
|
|
465
425
|
}) => import("effect/Effect").Effect<{
|
|
466
426
|
readonly url: string;
|
|
467
|
-
}, import("
|
|
427
|
+
}, import("./generated").EmailChannelError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
468
428
|
export declare const completeDomainConnect: (input: {
|
|
469
429
|
readonly id: string;
|
|
470
430
|
readonly state: string;
|
|
471
431
|
readonly error?: string | null | undefined;
|
|
472
432
|
}) => import("effect/Effect").Effect<{
|
|
473
|
-
readonly status: "
|
|
474
|
-
}, import("
|
|
433
|
+
readonly status: "applied" | "cancelled" | "invalid";
|
|
434
|
+
}, import("./generated").EmailChannelError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
475
435
|
export declare const enableReceiving: (input: {
|
|
476
436
|
readonly id: string;
|
|
477
437
|
readonly domain: string;
|
|
478
|
-
readonly endpointId?: string | null | undefined;
|
|
479
438
|
readonly catchAll?: boolean | null | undefined;
|
|
439
|
+
readonly endpointId?: string | null | undefined;
|
|
480
440
|
readonly addresses?: readonly string[] | null | undefined;
|
|
481
441
|
}) => import("effect/Effect").Effect<{
|
|
482
442
|
readonly success: true;
|
|
483
443
|
readonly ruleName: string;
|
|
484
444
|
readonly recipients: readonly string[];
|
|
485
|
-
}, import("
|
|
445
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
486
446
|
export declare const enableCustomTracking: (input: {
|
|
487
447
|
readonly id: string;
|
|
488
448
|
readonly label?: string | null | undefined;
|
|
489
449
|
}) => import("effect/Effect").Effect<{
|
|
490
450
|
readonly enabled: boolean;
|
|
491
451
|
readonly customTracking: {
|
|
492
|
-
readonly status: "
|
|
452
|
+
readonly status: "active" | "caa-blocked" | "disabled" | "pending" | "teardown-scheduled";
|
|
493
453
|
readonly label: string;
|
|
494
454
|
readonly hostname: string;
|
|
495
455
|
readonly region: string;
|
|
@@ -510,13 +470,13 @@ export declare const enableCustomTracking: (input: {
|
|
|
510
470
|
readonly verificationErrors: readonly string[];
|
|
511
471
|
readonly teardownScheduledAt: string | null;
|
|
512
472
|
} | null;
|
|
513
|
-
}, import("
|
|
473
|
+
}, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").EmailChannelError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
514
474
|
export declare const getCustomTracking: (input: {
|
|
515
475
|
readonly id: string;
|
|
516
476
|
}) => import("effect/Effect").Effect<{
|
|
517
477
|
readonly enabled: boolean;
|
|
518
478
|
readonly customTracking: {
|
|
519
|
-
readonly status: "
|
|
479
|
+
readonly status: "active" | "caa-blocked" | "disabled" | "pending" | "teardown-scheduled";
|
|
520
480
|
readonly label: string;
|
|
521
481
|
readonly hostname: string;
|
|
522
482
|
readonly region: string;
|
|
@@ -537,7 +497,7 @@ export declare const getCustomTracking: (input: {
|
|
|
537
497
|
readonly verificationErrors: readonly string[];
|
|
538
498
|
readonly teardownScheduledAt: string | null;
|
|
539
499
|
} | null;
|
|
540
|
-
}, import("
|
|
500
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
541
501
|
export declare const getCustomTrackingDomainConnect: (input: {
|
|
542
502
|
readonly id: string;
|
|
543
503
|
}) => import("effect/Effect").Effect<{
|
|
@@ -546,31 +506,31 @@ export declare const getCustomTrackingDomainConnect: (input: {
|
|
|
546
506
|
} | {
|
|
547
507
|
readonly eligible: true;
|
|
548
508
|
readonly providerName?: string | null;
|
|
549
|
-
}, import("
|
|
509
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
550
510
|
export declare const buildCustomTrackingDomainConnectApplyUrl: (input: {
|
|
551
511
|
readonly id: string;
|
|
552
512
|
}) => import("effect/Effect").Effect<{
|
|
553
513
|
readonly url: string;
|
|
554
|
-
}, import("
|
|
514
|
+
}, import("./generated").EmailChannelError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
555
515
|
export declare const completeCustomTrackingDomainConnect: (input: {
|
|
556
516
|
readonly id: string;
|
|
557
517
|
readonly state: string;
|
|
558
518
|
readonly error?: string | null | undefined;
|
|
559
519
|
}) => import("effect/Effect").Effect<{
|
|
560
|
-
readonly status: "
|
|
561
|
-
}, import("
|
|
520
|
+
readonly status: "applied" | "cancelled" | "invalid" | "stale";
|
|
521
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
562
522
|
export declare const disableCustomTracking: (input: {
|
|
563
523
|
readonly id: string;
|
|
564
524
|
}) => import("effect/Effect").Effect<{
|
|
565
525
|
readonly success: boolean;
|
|
566
526
|
readonly message: string;
|
|
567
|
-
}, import("
|
|
527
|
+
}, import("./generated").ConflictError | import("./generated").EmailChannelError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
568
528
|
export declare const listSenders: ((input?: {
|
|
569
|
-
readonly limit?: string | null | undefined;
|
|
570
529
|
readonly page?: string | null | undefined;
|
|
571
|
-
readonly
|
|
572
|
-
readonly isActive?: string | null | undefined;
|
|
530
|
+
readonly limit?: string | null | undefined;
|
|
573
531
|
readonly verificationStatus?: string | null | undefined;
|
|
532
|
+
readonly isActive?: string | null | undefined;
|
|
533
|
+
readonly isDefault?: string | null | undefined;
|
|
574
534
|
} | undefined) => import("effect/Effect").Effect<{
|
|
575
535
|
readonly items: readonly {
|
|
576
536
|
readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
@@ -578,15 +538,17 @@ export declare const listSenders: ((input?: {
|
|
|
578
538
|
readonly email: string;
|
|
579
539
|
readonly name: string | null;
|
|
580
540
|
readonly domainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
581
|
-
readonly verificationStatus: "
|
|
541
|
+
readonly verificationStatus: "failed" | "pending" | "verified";
|
|
582
542
|
readonly verifiedAt: string | null;
|
|
583
543
|
readonly verificationToken: string | null;
|
|
544
|
+
readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
|
|
545
|
+
readonly providerFailureCode: string | null;
|
|
584
546
|
readonly isDefault: boolean;
|
|
585
547
|
readonly replyToEmails: readonly string[] | null;
|
|
586
548
|
readonly deliverability: {
|
|
587
549
|
readonly bounceRate: number;
|
|
588
550
|
readonly complaintRate: number;
|
|
589
|
-
readonly sendingStatus: "
|
|
551
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
590
552
|
};
|
|
591
553
|
readonly isActive: boolean;
|
|
592
554
|
readonly createdAt: string;
|
|
@@ -598,13 +560,13 @@ export declare const listSenders: ((input?: {
|
|
|
598
560
|
readonly total: number;
|
|
599
561
|
readonly totalPages: number;
|
|
600
562
|
};
|
|
601
|
-
}, import("
|
|
563
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
602
564
|
readonly pages: (input?: {
|
|
603
|
-
readonly limit?: string | null | undefined;
|
|
604
565
|
readonly page?: string | null | undefined;
|
|
605
|
-
readonly
|
|
606
|
-
readonly isActive?: string | null | undefined;
|
|
566
|
+
readonly limit?: string | null | undefined;
|
|
607
567
|
readonly verificationStatus?: string | null | undefined;
|
|
568
|
+
readonly isActive?: string | null | undefined;
|
|
569
|
+
readonly isDefault?: string | null | undefined;
|
|
608
570
|
} | undefined) => import("effect/Stream").Stream<{
|
|
609
571
|
readonly items: readonly {
|
|
610
572
|
readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
@@ -612,15 +574,17 @@ export declare const listSenders: ((input?: {
|
|
|
612
574
|
readonly email: string;
|
|
613
575
|
readonly name: string | null;
|
|
614
576
|
readonly domainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
615
|
-
readonly verificationStatus: "
|
|
577
|
+
readonly verificationStatus: "failed" | "pending" | "verified";
|
|
616
578
|
readonly verifiedAt: string | null;
|
|
617
579
|
readonly verificationToken: string | null;
|
|
580
|
+
readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
|
|
581
|
+
readonly providerFailureCode: string | null;
|
|
618
582
|
readonly isDefault: boolean;
|
|
619
583
|
readonly replyToEmails: readonly string[] | null;
|
|
620
584
|
readonly deliverability: {
|
|
621
585
|
readonly bounceRate: number;
|
|
622
586
|
readonly complaintRate: number;
|
|
623
|
-
readonly sendingStatus: "
|
|
587
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
624
588
|
};
|
|
625
589
|
readonly isActive: boolean;
|
|
626
590
|
readonly createdAt: string;
|
|
@@ -632,60 +596,64 @@ export declare const listSenders: ((input?: {
|
|
|
632
596
|
readonly total: number;
|
|
633
597
|
readonly totalPages: number;
|
|
634
598
|
};
|
|
635
|
-
}, import("
|
|
599
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
636
600
|
readonly items: (input?: {
|
|
637
|
-
readonly limit?: string | null | undefined;
|
|
638
601
|
readonly page?: string | null | undefined;
|
|
639
|
-
readonly
|
|
640
|
-
readonly isActive?: string | null | undefined;
|
|
602
|
+
readonly limit?: string | null | undefined;
|
|
641
603
|
readonly verificationStatus?: string | null | undefined;
|
|
604
|
+
readonly isActive?: string | null | undefined;
|
|
605
|
+
readonly isDefault?: string | null | undefined;
|
|
642
606
|
} | undefined) => import("effect/Stream").Stream<{
|
|
643
607
|
readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
644
608
|
readonly organizationId: string;
|
|
645
609
|
readonly email: string;
|
|
646
610
|
readonly name: string | null;
|
|
647
611
|
readonly domainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
648
|
-
readonly verificationStatus: "
|
|
612
|
+
readonly verificationStatus: "failed" | "pending" | "verified";
|
|
649
613
|
readonly verifiedAt: string | null;
|
|
650
614
|
readonly verificationToken: string | null;
|
|
615
|
+
readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
|
|
616
|
+
readonly providerFailureCode: string | null;
|
|
651
617
|
readonly isDefault: boolean;
|
|
652
618
|
readonly replyToEmails: readonly string[] | null;
|
|
653
619
|
readonly deliverability: {
|
|
654
620
|
readonly bounceRate: number;
|
|
655
621
|
readonly complaintRate: number;
|
|
656
|
-
readonly sendingStatus: "
|
|
622
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
657
623
|
};
|
|
658
624
|
readonly isActive: boolean;
|
|
659
625
|
readonly createdAt: string;
|
|
660
626
|
readonly updatedAt: string;
|
|
661
|
-
}, import("
|
|
627
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
662
628
|
};
|
|
663
|
-
export declare const addSender: (input: EmailAddSenderInput) => import("effect/Effect").Effect<{
|
|
629
|
+
export declare const addSender: (input: EmailAddSenderInput, options?: SendOptions | undefined) => import("effect/Effect").Effect<{
|
|
664
630
|
readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
665
631
|
readonly email: string;
|
|
666
|
-
readonly status: "
|
|
632
|
+
readonly status: "failed" | "pending" | "verified";
|
|
633
|
+
readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
|
|
634
|
+
readonly providerFailureCode: string | null;
|
|
667
635
|
readonly createdAt: string;
|
|
668
|
-
}, import("
|
|
636
|
+
}, import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
669
637
|
export declare const checkSenderVerification: (input: {
|
|
670
638
|
readonly id: string;
|
|
671
639
|
}) => import("effect/Effect").Effect<{
|
|
672
640
|
readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
673
641
|
readonly email: string;
|
|
674
|
-
readonly status: "
|
|
642
|
+
readonly status: "failed" | "pending" | "verified";
|
|
675
643
|
readonly verifiedAt: string | null;
|
|
676
|
-
}, import("
|
|
644
|
+
}, import("./generated").ExternalServiceError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
677
645
|
export declare const removeSender: (input: {
|
|
678
646
|
readonly id: string;
|
|
679
647
|
}) => import("effect/Effect").Effect<{
|
|
680
648
|
readonly success: boolean;
|
|
681
649
|
readonly message: string;
|
|
682
|
-
}, import("
|
|
650
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
683
651
|
export declare const setDefaultSender: (input: {
|
|
684
652
|
readonly id: string;
|
|
685
653
|
}) => import("effect/Effect").Effect<{
|
|
686
654
|
readonly success: boolean;
|
|
687
655
|
readonly message: string;
|
|
688
|
-
}, import("
|
|
656
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
689
657
|
export declare const getStats: (input?: {
|
|
690
658
|
readonly startDate?: string | null | undefined;
|
|
691
659
|
readonly endDate?: string | null | undefined;
|
|
@@ -697,19 +665,19 @@ export declare const getStats: (input?: {
|
|
|
697
665
|
readonly deliveryRate: number;
|
|
698
666
|
readonly bounceRate: number;
|
|
699
667
|
readonly complaintRate: number;
|
|
700
|
-
}, import("
|
|
668
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
701
669
|
export declare const enableCatchAll: (input: {
|
|
702
670
|
readonly domainId: string;
|
|
703
671
|
readonly endpointId: string;
|
|
704
672
|
}) => import("effect/Effect").Effect<{
|
|
705
673
|
readonly success: true;
|
|
706
674
|
readonly receiptRuleName: string;
|
|
707
|
-
}, import("
|
|
675
|
+
}, import("./generated").ExternalServiceError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
708
676
|
export declare const disableCatchAll: (input: {
|
|
709
677
|
readonly domainId: string;
|
|
710
678
|
}) => import("effect/Effect").Effect<{
|
|
711
679
|
readonly success: true;
|
|
712
|
-
}, import("
|
|
680
|
+
}, import("./generated").ExternalServiceError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
713
681
|
export declare const getCatchAllConfig: (input: {
|
|
714
682
|
readonly domainId: string;
|
|
715
683
|
}) => import("effect/Effect").Effect<{
|
|
@@ -718,40 +686,40 @@ export declare const getCatchAllConfig: (input: {
|
|
|
718
686
|
readonly receiptRuleName: string | null;
|
|
719
687
|
readonly emailCount: number;
|
|
720
688
|
readonly lastEmailAt: string | null;
|
|
721
|
-
}, import("
|
|
689
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
722
690
|
export declare const updateCatchAllConfig: (input: {
|
|
723
691
|
readonly domainId: string;
|
|
724
692
|
readonly endpointId?: string | null | undefined;
|
|
725
693
|
}) => import("effect/Effect").Effect<{
|
|
726
694
|
readonly success: true;
|
|
727
|
-
}, import("
|
|
695
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
728
696
|
export declare const getCatchAllStats: (input: {
|
|
729
697
|
readonly domainId: string;
|
|
730
698
|
readonly startDate?: string | null | undefined;
|
|
731
699
|
readonly endDate?: string | null | undefined;
|
|
732
700
|
}) => import("effect/Effect").Effect<{
|
|
733
701
|
readonly domain: string;
|
|
734
|
-
readonly catchAllLastEmailAt: string | null;
|
|
735
702
|
readonly isCatchAllEnabled: boolean;
|
|
736
703
|
readonly catchAllEmailCount: number;
|
|
704
|
+
readonly catchAllLastEmailAt: string | null;
|
|
737
705
|
readonly timeRange?: {
|
|
738
706
|
readonly emailsReceived: number;
|
|
739
707
|
readonly firstEmail: string | null;
|
|
740
708
|
readonly lastEmail: string | null;
|
|
741
709
|
readonly avgPerDay: number;
|
|
742
710
|
} | null;
|
|
743
|
-
}, import("
|
|
711
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
744
712
|
export declare const listSuppressions: (input?: {
|
|
745
|
-
readonly limit?: string | null | undefined;
|
|
746
713
|
readonly type?: string | null | undefined;
|
|
747
|
-
readonly search?: string | null | undefined;
|
|
748
714
|
readonly status?: string | null | undefined;
|
|
715
|
+
readonly search?: string | null | undefined;
|
|
716
|
+
readonly limit?: string | null | undefined;
|
|
749
717
|
readonly offset?: string | null | undefined;
|
|
750
718
|
} | undefined) => import("effect/Effect").Effect<{
|
|
751
719
|
readonly suppressions: readonly {
|
|
752
720
|
readonly id: string & import("effect/Brand").Brand<"SuppressionId">;
|
|
753
721
|
readonly email: string;
|
|
754
|
-
readonly type: "bounce" | "complaint" | "
|
|
722
|
+
readonly type: "bounce" | "complaint" | "manual" | "unsubscribe";
|
|
755
723
|
readonly bounceType: string | null;
|
|
756
724
|
readonly bounceSubType: string | null;
|
|
757
725
|
readonly reason: string | null;
|
|
@@ -761,22 +729,22 @@ export declare const listSuppressions: (input?: {
|
|
|
761
729
|
readonly createdAt: string;
|
|
762
730
|
}[];
|
|
763
731
|
readonly total: number;
|
|
764
|
-
}, import("
|
|
732
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
765
733
|
export declare const removeSuppression: (input: {
|
|
766
734
|
readonly id: string;
|
|
767
735
|
}) => import("effect/Effect").Effect<{
|
|
768
736
|
readonly success: boolean;
|
|
769
737
|
readonly message: string;
|
|
770
|
-
}, import("
|
|
738
|
+
}, import("./generated").EmailChannelError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
771
739
|
export declare const listBlocks: (input?: {
|
|
772
|
-
readonly limit?: string | null | undefined;
|
|
773
|
-
readonly isActive?: string | null | undefined;
|
|
774
740
|
readonly blockType?: string | null | undefined;
|
|
741
|
+
readonly isActive?: string | null | undefined;
|
|
742
|
+
readonly limit?: string | null | undefined;
|
|
775
743
|
readonly offset?: string | null | undefined;
|
|
776
744
|
} | undefined) => import("effect/Effect").Effect<{
|
|
777
745
|
readonly blocks: readonly {
|
|
778
746
|
readonly id: string & import("effect/Brand").Brand<"BlockedEmailId">;
|
|
779
|
-
readonly blockType: "
|
|
747
|
+
readonly blockType: "domain" | "email";
|
|
780
748
|
readonly blockValue: string;
|
|
781
749
|
readonly reason: string;
|
|
782
750
|
readonly notes: string | null;
|
|
@@ -787,59 +755,59 @@ export declare const listBlocks: (input?: {
|
|
|
787
755
|
readonly createdAt: string;
|
|
788
756
|
}[];
|
|
789
757
|
readonly total: number;
|
|
790
|
-
}, import("
|
|
758
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
791
759
|
export declare const addBlock: (input: {
|
|
792
|
-
readonly reason: string;
|
|
793
760
|
readonly blockType: string;
|
|
794
761
|
readonly blockValue: string;
|
|
795
|
-
readonly
|
|
762
|
+
readonly reason: string;
|
|
796
763
|
readonly notes?: string | null | undefined;
|
|
764
|
+
readonly expiresAt?: string | null | undefined;
|
|
797
765
|
}) => import("effect/Effect").Effect<{
|
|
798
766
|
readonly id: string & import("effect/Brand").Brand<"BlockedEmailId">;
|
|
799
|
-
readonly blockType: "
|
|
767
|
+
readonly blockType: "domain" | "email";
|
|
800
768
|
readonly blockValue: string;
|
|
801
769
|
readonly reason: string;
|
|
802
770
|
readonly notes: string | null;
|
|
803
771
|
readonly isActive: boolean;
|
|
804
772
|
readonly expiresAt: string | null;
|
|
805
773
|
readonly createdAt: string;
|
|
806
|
-
}, import("
|
|
774
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
807
775
|
export declare const removeBlock: (input: {
|
|
808
776
|
readonly id: string;
|
|
809
777
|
}) => import("effect/Effect").Effect<{
|
|
810
778
|
readonly success: boolean;
|
|
811
779
|
readonly message: string;
|
|
812
|
-
}, import("
|
|
780
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
813
781
|
export declare const updateBlock: (input: {
|
|
814
782
|
readonly id: string;
|
|
815
783
|
readonly reason?: string | null | undefined;
|
|
816
|
-
readonly expiresAt?: string | null | undefined;
|
|
817
|
-
readonly isActive?: boolean | null | undefined;
|
|
818
784
|
readonly notes?: string | null | undefined;
|
|
785
|
+
readonly isActive?: boolean | null | undefined;
|
|
786
|
+
readonly expiresAt?: string | null | undefined;
|
|
819
787
|
}) => import("effect/Effect").Effect<{
|
|
820
788
|
readonly id: string & import("effect/Brand").Brand<"BlockedEmailId">;
|
|
821
|
-
readonly blockType: "
|
|
789
|
+
readonly blockType: "domain" | "email";
|
|
822
790
|
readonly blockValue: string;
|
|
823
791
|
readonly reason: string;
|
|
824
792
|
readonly notes: string | null;
|
|
825
793
|
readonly isActive: boolean;
|
|
826
794
|
readonly expiresAt: string | null;
|
|
827
795
|
readonly updatedAt: string;
|
|
828
|
-
}, import("
|
|
796
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
829
797
|
export declare const getBlockLogs: (input?: {
|
|
830
|
-
readonly
|
|
798
|
+
readonly blockedEmailId?: string | null | undefined;
|
|
799
|
+
readonly fromAddress?: string | null | undefined;
|
|
831
800
|
readonly startDate?: string | null | undefined;
|
|
832
801
|
readonly endDate?: string | null | undefined;
|
|
802
|
+
readonly limit?: string | null | undefined;
|
|
833
803
|
readonly offset?: string | null | undefined;
|
|
834
|
-
readonly blockedEmailId?: string | null | undefined;
|
|
835
|
-
readonly fromAddress?: string | null | undefined;
|
|
836
804
|
} | undefined) => import("effect/Effect").Effect<{
|
|
837
805
|
readonly logs: readonly {
|
|
838
806
|
readonly id: string & import("effect/Brand").Brand<"BlockedEmailLogId">;
|
|
839
807
|
readonly fromAddress: string;
|
|
840
808
|
readonly toAddress: string;
|
|
841
809
|
readonly subject: string | null;
|
|
842
|
-
readonly blockType: "
|
|
810
|
+
readonly blockType: "domain" | "email";
|
|
843
811
|
readonly blockValue: string;
|
|
844
812
|
readonly blockReason: string;
|
|
845
813
|
readonly spfResult: string | null;
|
|
@@ -849,24 +817,24 @@ export declare const getBlockLogs: (input?: {
|
|
|
849
817
|
readonly blockedAt: string;
|
|
850
818
|
}[];
|
|
851
819
|
readonly total: number;
|
|
852
|
-
}, import("
|
|
820
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
853
821
|
export declare const checkBlocked: (input: {
|
|
854
822
|
readonly emailAddress: string;
|
|
855
823
|
}) => import("effect/Effect").Effect<{
|
|
856
824
|
readonly isBlocked: boolean;
|
|
857
825
|
readonly blockingRule: {
|
|
858
826
|
readonly id: string & import("effect/Brand").Brand<"BlockedEmailId">;
|
|
859
|
-
readonly blockType: "
|
|
827
|
+
readonly blockType: "domain" | "email";
|
|
860
828
|
readonly blockValue: string;
|
|
861
829
|
readonly reason: string;
|
|
862
830
|
readonly expiresAt: string | null;
|
|
863
831
|
} | null;
|
|
864
832
|
readonly reason: string | null;
|
|
865
|
-
}, import("
|
|
833
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
866
834
|
export declare const listForwardingRules: (input?: {
|
|
867
|
-
readonly limit?: string | null | undefined;
|
|
868
835
|
readonly domainId?: string | null | undefined;
|
|
869
836
|
readonly isActive?: string | null | undefined;
|
|
837
|
+
readonly limit?: string | null | undefined;
|
|
870
838
|
readonly offset?: string | null | undefined;
|
|
871
839
|
} | undefined) => import("effect/Effect").Effect<{
|
|
872
840
|
readonly rules: readonly {
|
|
@@ -884,49 +852,49 @@ export declare const listForwardingRules: (input?: {
|
|
|
884
852
|
readonly createdAt: string;
|
|
885
853
|
}[];
|
|
886
854
|
readonly total: number;
|
|
887
|
-
}, import("
|
|
855
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
888
856
|
export declare const createForwardingRule: (input: {
|
|
889
857
|
readonly name: string;
|
|
858
|
+
readonly description?: string | null | undefined;
|
|
859
|
+
readonly domainId?: string | null | undefined;
|
|
860
|
+
readonly sourcePattern?: string | null | undefined;
|
|
890
861
|
readonly forwardTo: readonly string[];
|
|
862
|
+
readonly preserveHeaders?: boolean | null | undefined;
|
|
863
|
+
readonly appendNote?: string | null | undefined;
|
|
864
|
+
readonly conditions?: {
|
|
865
|
+
readonly subjectContains?: readonly string[] | null | undefined;
|
|
866
|
+
readonly fromContains?: readonly string[] | null | undefined;
|
|
867
|
+
readonly hasAttachments?: boolean | null | undefined;
|
|
868
|
+
} | null | undefined;
|
|
891
869
|
readonly priority?: number | null | undefined;
|
|
870
|
+
readonly isActive?: boolean | null | undefined;
|
|
892
871
|
readonly metadata?: {
|
|
893
872
|
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
894
873
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
895
874
|
} | null)[] | {
|
|
896
|
-
readonly [x: string]: string | number | boolean |
|
|
875
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
897
876
|
} | null)[] | {
|
|
898
|
-
readonly [x: string]: string | number | boolean |
|
|
877
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
899
878
|
} | null)[] | {
|
|
900
|
-
readonly [x: string]: string | number | boolean |
|
|
879
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
901
880
|
} | null)[] | {
|
|
902
|
-
readonly [x: string]: string | number | boolean |
|
|
881
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
903
882
|
} | null)[] | {
|
|
904
|
-
readonly [x: string]: string | number | boolean |
|
|
883
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
905
884
|
} | null)[] | {
|
|
906
|
-
readonly [x: string]: string | number | boolean |
|
|
885
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
907
886
|
} | null)[] | {
|
|
908
|
-
readonly [x: string]: string | number | boolean |
|
|
887
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
909
888
|
} | null)[] | {
|
|
910
|
-
readonly [x: string]: string | number | boolean |
|
|
889
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
911
890
|
} | null)[] | {
|
|
912
|
-
readonly [x: string]: string | number | boolean |
|
|
891
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
913
892
|
} | null)[] | {
|
|
914
|
-
readonly [x: string]: string | number | boolean |
|
|
893
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
915
894
|
} | null)[] | {
|
|
916
|
-
readonly [x: string]: string | number | boolean |
|
|
895
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
917
896
|
} | null | undefined;
|
|
918
897
|
} | null | undefined;
|
|
919
|
-
readonly domainId?: string | null | undefined;
|
|
920
|
-
readonly description?: string | null | undefined;
|
|
921
|
-
readonly isActive?: boolean | null | undefined;
|
|
922
|
-
readonly sourcePattern?: string | null | undefined;
|
|
923
|
-
readonly preserveHeaders?: boolean | null | undefined;
|
|
924
|
-
readonly appendNote?: string | null | undefined;
|
|
925
|
-
readonly conditions?: {
|
|
926
|
-
readonly subjectContains?: readonly string[] | null | undefined;
|
|
927
|
-
readonly fromContains?: readonly string[] | null | undefined;
|
|
928
|
-
readonly hasAttachments?: boolean | null | undefined;
|
|
929
|
-
} | null | undefined;
|
|
930
898
|
}) => import("effect/Effect").Effect<{
|
|
931
899
|
readonly id: string & import("effect/Brand").Brand<"EmailForwardingRuleId">;
|
|
932
900
|
readonly name: string;
|
|
@@ -934,56 +902,56 @@ export declare const createForwardingRule: (input: {
|
|
|
934
902
|
readonly priority: number;
|
|
935
903
|
readonly isActive: boolean;
|
|
936
904
|
readonly createdAt: string;
|
|
937
|
-
}, import("
|
|
905
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
938
906
|
export declare const deleteForwardingRule: (input: {
|
|
939
907
|
readonly id: string;
|
|
940
908
|
}) => import("effect/Effect").Effect<{
|
|
941
909
|
readonly success: boolean;
|
|
942
910
|
readonly message: string;
|
|
943
|
-
}, import("
|
|
911
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
944
912
|
export declare const updateForwardingRule: (input: {
|
|
945
913
|
readonly id: string;
|
|
946
|
-
readonly priority?: number | null | undefined;
|
|
947
914
|
readonly name?: string | null | undefined;
|
|
915
|
+
readonly description?: string | null | undefined;
|
|
916
|
+
readonly domainId?: string | null | undefined;
|
|
917
|
+
readonly sourcePattern?: string | null | undefined;
|
|
918
|
+
readonly forwardTo?: readonly string[] | null | undefined;
|
|
919
|
+
readonly preserveHeaders?: boolean | null | undefined;
|
|
920
|
+
readonly appendNote?: string | null | undefined;
|
|
921
|
+
readonly conditions?: {
|
|
922
|
+
readonly subjectContains?: readonly string[] | null | undefined;
|
|
923
|
+
readonly fromContains?: readonly string[] | null | undefined;
|
|
924
|
+
readonly hasAttachments?: boolean | null | undefined;
|
|
925
|
+
} | null | undefined;
|
|
926
|
+
readonly priority?: number | null | undefined;
|
|
927
|
+
readonly isActive?: boolean | null | undefined;
|
|
948
928
|
readonly metadata?: {
|
|
949
929
|
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
950
930
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
951
931
|
} | null)[] | {
|
|
952
|
-
readonly [x: string]: string | number | boolean |
|
|
932
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
953
933
|
} | null)[] | {
|
|
954
|
-
readonly [x: string]: string | number | boolean |
|
|
934
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
955
935
|
} | null)[] | {
|
|
956
|
-
readonly [x: string]: string | number | boolean |
|
|
936
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
957
937
|
} | null)[] | {
|
|
958
|
-
readonly [x: string]: string | number | boolean |
|
|
938
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
959
939
|
} | null)[] | {
|
|
960
|
-
readonly [x: string]: string | number | boolean |
|
|
940
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
961
941
|
} | null)[] | {
|
|
962
|
-
readonly [x: string]: string | number | boolean |
|
|
942
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
963
943
|
} | null)[] | {
|
|
964
|
-
readonly [x: string]: string | number | boolean |
|
|
944
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
965
945
|
} | null)[] | {
|
|
966
|
-
readonly [x: string]: string | number | boolean |
|
|
946
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
967
947
|
} | null)[] | {
|
|
968
|
-
readonly [x: string]: string | number | boolean |
|
|
948
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
969
949
|
} | null)[] | {
|
|
970
|
-
readonly [x: string]: string | number | boolean |
|
|
950
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
971
951
|
} | null)[] | {
|
|
972
|
-
readonly [x: string]: string | number | boolean |
|
|
952
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
973
953
|
} | null | undefined;
|
|
974
954
|
} | null | undefined;
|
|
975
|
-
readonly domainId?: string | null | undefined;
|
|
976
|
-
readonly description?: string | null | undefined;
|
|
977
|
-
readonly isActive?: boolean | null | undefined;
|
|
978
|
-
readonly sourcePattern?: string | null | undefined;
|
|
979
|
-
readonly forwardTo?: readonly string[] | null | undefined;
|
|
980
|
-
readonly preserveHeaders?: boolean | null | undefined;
|
|
981
|
-
readonly appendNote?: string | null | undefined;
|
|
982
|
-
readonly conditions?: {
|
|
983
|
-
readonly subjectContains?: readonly string[] | null | undefined;
|
|
984
|
-
readonly fromContains?: readonly string[] | null | undefined;
|
|
985
|
-
readonly hasAttachments?: boolean | null | undefined;
|
|
986
|
-
} | null | undefined;
|
|
987
955
|
}) => import("effect/Effect").Effect<{
|
|
988
956
|
readonly id: string & import("effect/Brand").Brand<"EmailForwardingRuleId">;
|
|
989
957
|
readonly name: string;
|
|
@@ -991,17 +959,15 @@ export declare const updateForwardingRule: (input: {
|
|
|
991
959
|
readonly priority: number;
|
|
992
960
|
readonly isActive: boolean;
|
|
993
961
|
readonly updatedAt: string;
|
|
994
|
-
}, import("
|
|
962
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
995
963
|
export declare const getForwardingLog: (input?: {
|
|
996
|
-
readonly
|
|
964
|
+
readonly forwardingRuleId?: string | null | undefined;
|
|
997
965
|
readonly status?: string | null | undefined;
|
|
998
966
|
readonly startDate?: string | null | undefined;
|
|
999
967
|
readonly endDate?: string | null | undefined;
|
|
968
|
+
readonly limit?: string | null | undefined;
|
|
1000
969
|
readonly offset?: string | null | undefined;
|
|
1001
|
-
readonly forwardingRuleId?: string | null | undefined;
|
|
1002
970
|
} | undefined) => import("effect/Effect").Effect<{
|
|
1003
|
-
readonly total: number;
|
|
1004
|
-
readonly hasMore: boolean;
|
|
1005
971
|
readonly logs: readonly {
|
|
1006
972
|
readonly id: string;
|
|
1007
973
|
readonly forwardingRuleId: (string & import("effect/Brand").Brand<"EmailForwardingRuleId">) | null;
|
|
@@ -1009,14 +975,16 @@ export declare const getForwardingLog: (input?: {
|
|
|
1009
975
|
readonly originalToAddress: string;
|
|
1010
976
|
readonly originalSubject: string | null;
|
|
1011
977
|
readonly forwardedTo: readonly string[];
|
|
1012
|
-
readonly status: "
|
|
978
|
+
readonly status: "failed" | "forwarded" | "pending";
|
|
1013
979
|
readonly errorMessage: string | null;
|
|
1014
980
|
readonly forwardedAt: string | null;
|
|
1015
981
|
readonly createdAt: string;
|
|
1016
982
|
}[];
|
|
983
|
+
readonly total: number;
|
|
984
|
+
readonly hasMore: boolean;
|
|
1017
985
|
readonly stats?: {
|
|
1018
986
|
readonly totalForwarded: number;
|
|
1019
987
|
readonly successRate: number;
|
|
1020
988
|
readonly failureRate: number;
|
|
1021
989
|
} | null;
|
|
1022
|
-
}, import("
|
|
990
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|