samva 0.3.0 → 0.5.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 +5 -1
- package/dist/{categories-CsUa8ojo.js → categories-B9Nw2v_F.js} +5 -1
- package/dist/client/sdk.gen.d.ts +312 -190
- package/dist/client/types.gen.d.ts +2284 -728
- package/dist/{client-BOghX8fr.js → client-B7gEkvEq.js} +2740 -1036
- package/dist/client-attribution-B2yJBXdZ.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 +269 -219
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +6 -6
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +225 -225
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +308 -293
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.d.ts +76 -76
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +923 -213
- package/dist/effect/email.js +27 -3
- package/dist/effect/generated-metadata.d.ts +4 -0
- package/dist/effect/generated.d.ts +14948 -10919
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/client.d.ts +1 -1
- package/dist/effect/internal/operation.d.ts +31 -20
- package/dist/effect/media.d.ts +12 -12
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +243 -61
- package/dist/effect/messages.js +5 -3
- package/dist/effect/operations.d.ts +17 -17
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +162 -162
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/retry.js +1 -1
- package/dist/effect/runtime.d.ts +0 -2
- package/dist/effect/scheduled-messages.d.ts +375 -277
- package/dist/effect/scheduled-messages.js +5 -3
- package/dist/effect/templates.d.ts +1383 -1554
- package/dist/effect/templates.js +40 -30
- package/dist/effect/webhooks.d.ts +81 -47
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{normalize-BKFjbR9t.js → normalize-BiIJnycv.js} +2 -3
- package/dist/{operation-C2Q4cFJL.js → operation-B4FjN6wq.js} +113 -38
- package/dist/promises/errors.gen.d.ts +21 -2
- package/dist/promises/index.d.ts +11 -8
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-oiy7mOyu.js → promises-CP_nxUus.js} +828 -306
- package/dist/service-map.d.ts +136 -44
- package/package.json +13 -14
package/dist/effect/email.d.ts
CHANGED
|
@@ -11,12 +11,12 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
11
11
|
readonly [x: string]: import("./generated").JsonValue;
|
|
12
12
|
} | null;
|
|
13
13
|
readonly channel: "email";
|
|
14
|
-
readonly direction: "
|
|
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[];
|
|
@@ -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: {
|
|
@@ -78,11 +78,16 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
78
78
|
} | null;
|
|
79
79
|
}[];
|
|
80
80
|
readonly deliveries: readonly {
|
|
81
|
+
readonly scheduling: {
|
|
82
|
+
readonly dueAt: string;
|
|
83
|
+
readonly expiresAt: string;
|
|
84
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
|
|
85
|
+
} | null;
|
|
81
86
|
readonly id: string;
|
|
82
87
|
readonly messageId: string;
|
|
83
88
|
readonly recipientId: string | null;
|
|
84
89
|
readonly channel: "email";
|
|
85
|
-
readonly status: "
|
|
90
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
86
91
|
readonly attemptCount: number;
|
|
87
92
|
readonly maxAttempts: number;
|
|
88
93
|
readonly queuedAt: string | null;
|
|
@@ -129,7 +134,7 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
129
134
|
readonly spfVerdict: string | null;
|
|
130
135
|
readonly dmarcVerdict: string | null;
|
|
131
136
|
readonly isAutoReply: boolean;
|
|
132
|
-
readonly autoReplyReason: "
|
|
137
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
133
138
|
readonly priority: string | null;
|
|
134
139
|
readonly parsingErrors: readonly string[] | null;
|
|
135
140
|
readonly parsingDuration: number | null;
|
|
@@ -138,18 +143,18 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
138
143
|
readonly createdAt: string;
|
|
139
144
|
readonly updatedAt: string;
|
|
140
145
|
}[];
|
|
141
|
-
}, import("./generated").
|
|
146
|
+
}, 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").OnboardingReviewRequiredError | 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>;
|
|
142
147
|
export declare const getTrackingDefaults: (_?: never) => import("effect/Effect").Effect<{
|
|
143
148
|
readonly opens: boolean;
|
|
144
149
|
readonly clicks: boolean;
|
|
145
|
-
}, import("./generated").
|
|
150
|
+
}, 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>;
|
|
146
151
|
export declare const updateTrackingDefaults: (input?: {
|
|
147
152
|
readonly opens?: boolean | undefined;
|
|
148
153
|
readonly clicks?: boolean | undefined;
|
|
149
154
|
} | undefined) => import("effect/Effect").Effect<{
|
|
150
155
|
readonly opens: boolean;
|
|
151
156
|
readonly clicks: boolean;
|
|
152
|
-
}, import("./generated").
|
|
157
|
+
}, 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>;
|
|
153
158
|
export declare const getRecipientTrackingPreference: (input: {
|
|
154
159
|
readonly email: string;
|
|
155
160
|
}) => import("effect/Effect").Effect<{
|
|
@@ -158,7 +163,7 @@ export declare const getRecipientTrackingPreference: (input: {
|
|
|
158
163
|
readonly trackingOptedOutAt: string | null;
|
|
159
164
|
readonly createdAt: string | null;
|
|
160
165
|
readonly updatedAt: string | null;
|
|
161
|
-
}, import("./generated").
|
|
166
|
+
}, 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>;
|
|
162
167
|
export declare const updateRecipientTrackingPreference: (input: {
|
|
163
168
|
readonly email: string;
|
|
164
169
|
readonly optedOut: boolean;
|
|
@@ -168,21 +173,21 @@ export declare const updateRecipientTrackingPreference: (input: {
|
|
|
168
173
|
readonly trackingOptedOutAt: string | null;
|
|
169
174
|
readonly createdAt: string | null;
|
|
170
175
|
readonly updatedAt: string | null;
|
|
171
|
-
}, import("./generated").
|
|
176
|
+
}, 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>;
|
|
172
177
|
export declare const listDomains: ((input?: {
|
|
173
|
-
readonly limit?: string | null | undefined;
|
|
174
178
|
readonly page?: string | null | undefined;
|
|
179
|
+
readonly limit?: string | null | undefined;
|
|
175
180
|
} | undefined) => import("effect/Effect").Effect<{
|
|
176
181
|
readonly items: readonly {
|
|
177
|
-
readonly domain: string;
|
|
178
|
-
readonly createdAt: string;
|
|
179
|
-
readonly updatedAt: string;
|
|
180
182
|
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
181
|
-
readonly
|
|
182
|
-
readonly
|
|
183
|
-
readonly isDefault: boolean;
|
|
183
|
+
readonly domain: string;
|
|
184
|
+
readonly phase: "degraded" | "dns-setup" | "failed" | "provider-setup" | "provider-verification" | "ready";
|
|
184
185
|
readonly dkimSelector?: string | null;
|
|
185
186
|
readonly dkimPublicKey?: string | null;
|
|
187
|
+
readonly isDefault: boolean;
|
|
188
|
+
readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
|
|
189
|
+
readonly createdAt: string;
|
|
190
|
+
readonly updatedAt: string;
|
|
186
191
|
}[];
|
|
187
192
|
readonly pagination: {
|
|
188
193
|
readonly page: number;
|
|
@@ -190,21 +195,21 @@ export declare const listDomains: ((input?: {
|
|
|
190
195
|
readonly total: number;
|
|
191
196
|
readonly totalPages: number;
|
|
192
197
|
};
|
|
193
|
-
}, import("./generated").
|
|
198
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
194
199
|
readonly pages: (input?: {
|
|
195
|
-
readonly limit?: string | null | undefined;
|
|
196
200
|
readonly page?: string | null | undefined;
|
|
201
|
+
readonly limit?: string | null | undefined;
|
|
197
202
|
} | undefined) => import("effect/Stream").Stream<{
|
|
198
203
|
readonly items: readonly {
|
|
199
|
-
readonly domain: string;
|
|
200
|
-
readonly createdAt: string;
|
|
201
|
-
readonly updatedAt: string;
|
|
202
204
|
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
203
|
-
readonly
|
|
204
|
-
readonly
|
|
205
|
-
readonly isDefault: boolean;
|
|
205
|
+
readonly domain: string;
|
|
206
|
+
readonly phase: "degraded" | "dns-setup" | "failed" | "provider-setup" | "provider-verification" | "ready";
|
|
206
207
|
readonly dkimSelector?: string | null;
|
|
207
208
|
readonly dkimPublicKey?: string | null;
|
|
209
|
+
readonly isDefault: boolean;
|
|
210
|
+
readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
|
|
211
|
+
readonly createdAt: string;
|
|
212
|
+
readonly updatedAt: string;
|
|
208
213
|
}[];
|
|
209
214
|
readonly pagination: {
|
|
210
215
|
readonly page: number;
|
|
@@ -212,76 +217,102 @@ export declare const listDomains: ((input?: {
|
|
|
212
217
|
readonly total: number;
|
|
213
218
|
readonly totalPages: number;
|
|
214
219
|
};
|
|
215
|
-
}, import("./generated").
|
|
220
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
216
221
|
readonly items: (input?: {
|
|
217
|
-
readonly limit?: string | null | undefined;
|
|
218
222
|
readonly page?: string | null | undefined;
|
|
223
|
+
readonly limit?: string | null | undefined;
|
|
219
224
|
} | undefined) => import("effect/Stream").Stream<{
|
|
220
|
-
readonly domain: string;
|
|
221
|
-
readonly createdAt: string;
|
|
222
|
-
readonly updatedAt: string;
|
|
223
225
|
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
224
|
-
readonly
|
|
225
|
-
readonly
|
|
226
|
-
readonly isDefault: boolean;
|
|
226
|
+
readonly domain: string;
|
|
227
|
+
readonly phase: "degraded" | "dns-setup" | "failed" | "provider-setup" | "provider-verification" | "ready";
|
|
227
228
|
readonly dkimSelector?: string | null;
|
|
228
229
|
readonly dkimPublicKey?: string | null;
|
|
229
|
-
|
|
230
|
+
readonly isDefault: boolean;
|
|
231
|
+
readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
|
|
232
|
+
readonly createdAt: string;
|
|
233
|
+
readonly updatedAt: string;
|
|
234
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
230
235
|
};
|
|
231
236
|
export declare const addDomain: (input: {
|
|
232
237
|
readonly domain: string;
|
|
238
|
+
readonly connection?: {
|
|
239
|
+
readonly connectionId: string;
|
|
240
|
+
readonly zone: string;
|
|
241
|
+
} | null | undefined;
|
|
233
242
|
}) => import("effect/Effect").Effect<{
|
|
234
|
-
readonly domain: string;
|
|
235
|
-
readonly createdAt: string;
|
|
236
|
-
readonly updatedAt: string;
|
|
237
243
|
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
238
|
-
readonly
|
|
244
|
+
readonly domain: string;
|
|
245
|
+
readonly phase: "degraded" | "dns-setup" | "failed" | "provider-setup" | "provider-verification" | "ready";
|
|
246
|
+
readonly dkimSelector?: string | null;
|
|
247
|
+
readonly dkimPublicKey?: string | null;
|
|
239
248
|
readonly dnsRecords: readonly {
|
|
249
|
+
readonly type: "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "NS" | "PTR" | "SOA" | "SRV" | "TXT";
|
|
240
250
|
readonly name: string;
|
|
241
|
-
readonly type: string;
|
|
242
251
|
readonly value: string;
|
|
243
|
-
readonly priority?: number | null;
|
|
244
|
-
readonly description?: string | null;
|
|
245
252
|
readonly ttl?: string | null;
|
|
253
|
+
readonly description?: string | null;
|
|
254
|
+
readonly priority?: number | null;
|
|
246
255
|
}[];
|
|
247
256
|
readonly verifiedAt: string | null;
|
|
248
|
-
readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
|
|
249
257
|
readonly isDefault: boolean;
|
|
258
|
+
readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
|
|
250
259
|
readonly deliverability: {
|
|
251
260
|
readonly bounceRate: number;
|
|
252
261
|
readonly complaintRate: number;
|
|
253
|
-
readonly sendingStatus: "
|
|
262
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
254
263
|
};
|
|
255
|
-
readonly
|
|
256
|
-
readonly
|
|
257
|
-
}, import("./generated").
|
|
264
|
+
readonly createdAt: string;
|
|
265
|
+
readonly updatedAt: string;
|
|
266
|
+
}, 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>;
|
|
267
|
+
export declare const rotateDomainDkim: (input: {
|
|
268
|
+
readonly id: string;
|
|
269
|
+
} & {
|
|
270
|
+
readonly idempotencyKey: string;
|
|
271
|
+
}) => import("effect/Effect").Effect<{
|
|
272
|
+
readonly id: string;
|
|
273
|
+
readonly domainId: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
274
|
+
readonly phase: "complete" | "cutover" | "staged";
|
|
275
|
+
readonly selector: string;
|
|
276
|
+
readonly record: {
|
|
277
|
+
readonly name: string;
|
|
278
|
+
readonly type: "TXT";
|
|
279
|
+
readonly value: string;
|
|
280
|
+
readonly ttl: string;
|
|
281
|
+
};
|
|
282
|
+
readonly formerRecord: {
|
|
283
|
+
readonly name: string;
|
|
284
|
+
readonly type: "TXT";
|
|
285
|
+
readonly value: string;
|
|
286
|
+
};
|
|
287
|
+
readonly minimumRetainUntil: string | null;
|
|
288
|
+
}, import("./generated").ConflictError | 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>;
|
|
258
289
|
export declare const getDomainVerification: (input: {
|
|
259
290
|
readonly id: string;
|
|
260
291
|
}) => import("effect/Effect").Effect<{
|
|
261
292
|
readonly domainId: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
262
293
|
readonly domain: string;
|
|
263
|
-
readonly phase: "
|
|
294
|
+
readonly phase: "degraded" | "dns-setup" | "failed" | "provider-setup" | "provider-verification" | "ready";
|
|
264
295
|
readonly records: readonly {
|
|
265
|
-
readonly status: "unchecked" | "missing" | "mismatch" | "found";
|
|
266
296
|
readonly record: {
|
|
297
|
+
readonly type: "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "NS" | "PTR" | "SOA" | "SRV" | "TXT";
|
|
267
298
|
readonly name: string;
|
|
268
|
-
readonly type: "A" | "AAAA" | "CNAME" | "MX" | "NS" | "SOA" | "PTR" | "SRV" | "TXT" | "CAA";
|
|
269
299
|
readonly value: string;
|
|
270
|
-
readonly priority?: number | null;
|
|
271
|
-
readonly description?: string | null;
|
|
272
300
|
readonly ttl?: string | null;
|
|
301
|
+
readonly description?: string | null;
|
|
302
|
+
readonly priority?: number | null;
|
|
273
303
|
};
|
|
304
|
+
readonly status: "found" | "mismatch" | "missing" | "unchecked";
|
|
274
305
|
readonly observedValues: readonly string[];
|
|
275
306
|
readonly checkedAt?: string | null;
|
|
276
307
|
readonly resolutionFailure?: {
|
|
277
|
-
readonly message: string;
|
|
278
308
|
readonly code?: string | null;
|
|
309
|
+
readonly message: string;
|
|
279
310
|
} | null;
|
|
280
311
|
}[];
|
|
281
312
|
readonly provider: {
|
|
282
|
-
readonly identity: "
|
|
283
|
-
readonly dkim?: "
|
|
284
|
-
readonly mailFrom?: "
|
|
313
|
+
readonly identity: "failed" | "pending" | "unknown" | "verified";
|
|
314
|
+
readonly dkim?: "failed" | "pending" | "unknown" | "verified" | null;
|
|
315
|
+
readonly mailFrom?: "failed" | "pending" | "unknown" | "verified" | null;
|
|
285
316
|
} | null;
|
|
286
317
|
readonly operationId: (string & import("effect/Brand").Brand<"OperationId">) | null;
|
|
287
318
|
readonly checkedAt: string | null;
|
|
@@ -291,34 +322,82 @@ export declare const getDomainVerification: (input: {
|
|
|
291
322
|
readonly message: string;
|
|
292
323
|
readonly failedAt: string;
|
|
293
324
|
} | null;
|
|
294
|
-
|
|
325
|
+
readonly health: {
|
|
326
|
+
readonly actionOwner: "customer" | "none" | "provider" | "samva";
|
|
327
|
+
readonly action: string;
|
|
328
|
+
readonly freshness: "current" | "stale" | "unknown";
|
|
329
|
+
readonly observedAt: string | null;
|
|
330
|
+
readonly staleAt: string | null;
|
|
331
|
+
readonly nextRetryAt: string | null;
|
|
332
|
+
readonly reason: "dns-action-required" | "dns-unavailable" | "inactive" | "observation-stale" | "observation-unknown" | "provider-failed" | "provider-ownership-action-required" | "provider-pending" | "ready" | "samva-repair" | "signing-custody-action-required";
|
|
333
|
+
};
|
|
334
|
+
readonly sending: {
|
|
335
|
+
readonly actionOwner: "customer" | "none" | "provider" | "samva";
|
|
336
|
+
readonly action: string;
|
|
337
|
+
readonly freshness: "current" | "stale" | "unknown";
|
|
338
|
+
readonly observedAt: string | null;
|
|
339
|
+
readonly staleAt: string | null;
|
|
340
|
+
readonly nextRetryAt: string | null;
|
|
341
|
+
readonly status: "blocked" | "ready" | "unknown";
|
|
342
|
+
readonly reason: "domain-not-ready" | "domain-observation-stale" | "operator-paused" | "provider-paused" | "ready" | "tenant-health-stale" | "tenant-health-unknown";
|
|
343
|
+
};
|
|
344
|
+
readonly dmarc: {
|
|
345
|
+
readonly status: "invalid" | "missing" | "multiple" | "unknown" | "valid";
|
|
346
|
+
readonly source: "direct" | "none" | "organizational";
|
|
347
|
+
readonly policyDomain: string | null;
|
|
348
|
+
readonly policy: "none" | "quarantine" | "reject" | null;
|
|
349
|
+
readonly subdomainPolicy: "none" | "quarantine" | "reject" | null;
|
|
350
|
+
readonly effectivePolicy: "none" | "quarantine" | "reject" | null;
|
|
351
|
+
readonly observedAt: string | null;
|
|
352
|
+
readonly staleAt: string | null;
|
|
353
|
+
readonly guidance: string;
|
|
354
|
+
};
|
|
355
|
+
readonly rotation: {
|
|
356
|
+
readonly id: string;
|
|
357
|
+
readonly domainId: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
358
|
+
readonly phase: "complete" | "cutover" | "staged";
|
|
359
|
+
readonly selector: string;
|
|
360
|
+
readonly record: {
|
|
361
|
+
readonly name: string;
|
|
362
|
+
readonly type: "TXT";
|
|
363
|
+
readonly value: string;
|
|
364
|
+
readonly ttl: string;
|
|
365
|
+
};
|
|
366
|
+
readonly formerRecord: {
|
|
367
|
+
readonly name: string;
|
|
368
|
+
readonly type: "TXT";
|
|
369
|
+
readonly value: string;
|
|
370
|
+
};
|
|
371
|
+
readonly minimumRetainUntil: string | null;
|
|
372
|
+
} | null;
|
|
373
|
+
}, 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>;
|
|
295
374
|
export declare const advanceDomainVerification: (input: {
|
|
296
375
|
readonly id: string;
|
|
297
376
|
}) => import("effect/Effect").Effect<{
|
|
298
377
|
readonly domainId: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
299
378
|
readonly domain: string;
|
|
300
|
-
readonly phase: "
|
|
379
|
+
readonly phase: "degraded" | "dns-setup" | "failed" | "provider-setup" | "provider-verification" | "ready";
|
|
301
380
|
readonly records: readonly {
|
|
302
|
-
readonly status: "unchecked" | "missing" | "mismatch" | "found";
|
|
303
381
|
readonly record: {
|
|
382
|
+
readonly type: "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "NS" | "PTR" | "SOA" | "SRV" | "TXT";
|
|
304
383
|
readonly name: string;
|
|
305
|
-
readonly type: "A" | "AAAA" | "CNAME" | "MX" | "NS" | "SOA" | "PTR" | "SRV" | "TXT" | "CAA";
|
|
306
384
|
readonly value: string;
|
|
307
|
-
readonly priority?: number | null;
|
|
308
|
-
readonly description?: string | null;
|
|
309
385
|
readonly ttl?: string | null;
|
|
386
|
+
readonly description?: string | null;
|
|
387
|
+
readonly priority?: number | null;
|
|
310
388
|
};
|
|
389
|
+
readonly status: "found" | "mismatch" | "missing" | "unchecked";
|
|
311
390
|
readonly observedValues: readonly string[];
|
|
312
391
|
readonly checkedAt?: string | null;
|
|
313
392
|
readonly resolutionFailure?: {
|
|
314
|
-
readonly message: string;
|
|
315
393
|
readonly code?: string | null;
|
|
394
|
+
readonly message: string;
|
|
316
395
|
} | null;
|
|
317
396
|
}[];
|
|
318
397
|
readonly provider: {
|
|
319
|
-
readonly identity: "
|
|
320
|
-
readonly dkim?: "
|
|
321
|
-
readonly mailFrom?: "
|
|
398
|
+
readonly identity: "failed" | "pending" | "unknown" | "verified";
|
|
399
|
+
readonly dkim?: "failed" | "pending" | "unknown" | "verified" | null;
|
|
400
|
+
readonly mailFrom?: "failed" | "pending" | "unknown" | "verified" | null;
|
|
322
401
|
} | null;
|
|
323
402
|
readonly operationId: (string & import("effect/Brand").Brand<"OperationId">) | null;
|
|
324
403
|
readonly checkedAt: string | null;
|
|
@@ -328,65 +407,113 @@ export declare const advanceDomainVerification: (input: {
|
|
|
328
407
|
readonly message: string;
|
|
329
408
|
readonly failedAt: string;
|
|
330
409
|
} | null;
|
|
331
|
-
|
|
410
|
+
readonly health: {
|
|
411
|
+
readonly actionOwner: "customer" | "none" | "provider" | "samva";
|
|
412
|
+
readonly action: string;
|
|
413
|
+
readonly freshness: "current" | "stale" | "unknown";
|
|
414
|
+
readonly observedAt: string | null;
|
|
415
|
+
readonly staleAt: string | null;
|
|
416
|
+
readonly nextRetryAt: string | null;
|
|
417
|
+
readonly reason: "dns-action-required" | "dns-unavailable" | "inactive" | "observation-stale" | "observation-unknown" | "provider-failed" | "provider-ownership-action-required" | "provider-pending" | "ready" | "samva-repair" | "signing-custody-action-required";
|
|
418
|
+
};
|
|
419
|
+
readonly sending: {
|
|
420
|
+
readonly actionOwner: "customer" | "none" | "provider" | "samva";
|
|
421
|
+
readonly action: string;
|
|
422
|
+
readonly freshness: "current" | "stale" | "unknown";
|
|
423
|
+
readonly observedAt: string | null;
|
|
424
|
+
readonly staleAt: string | null;
|
|
425
|
+
readonly nextRetryAt: string | null;
|
|
426
|
+
readonly status: "blocked" | "ready" | "unknown";
|
|
427
|
+
readonly reason: "domain-not-ready" | "domain-observation-stale" | "operator-paused" | "provider-paused" | "ready" | "tenant-health-stale" | "tenant-health-unknown";
|
|
428
|
+
};
|
|
429
|
+
readonly dmarc: {
|
|
430
|
+
readonly status: "invalid" | "missing" | "multiple" | "unknown" | "valid";
|
|
431
|
+
readonly source: "direct" | "none" | "organizational";
|
|
432
|
+
readonly policyDomain: string | null;
|
|
433
|
+
readonly policy: "none" | "quarantine" | "reject" | null;
|
|
434
|
+
readonly subdomainPolicy: "none" | "quarantine" | "reject" | null;
|
|
435
|
+
readonly effectivePolicy: "none" | "quarantine" | "reject" | null;
|
|
436
|
+
readonly observedAt: string | null;
|
|
437
|
+
readonly staleAt: string | null;
|
|
438
|
+
readonly guidance: string;
|
|
439
|
+
};
|
|
440
|
+
readonly rotation: {
|
|
441
|
+
readonly id: string;
|
|
442
|
+
readonly domainId: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
443
|
+
readonly phase: "complete" | "cutover" | "staged";
|
|
444
|
+
readonly selector: string;
|
|
445
|
+
readonly record: {
|
|
446
|
+
readonly name: string;
|
|
447
|
+
readonly type: "TXT";
|
|
448
|
+
readonly value: string;
|
|
449
|
+
readonly ttl: string;
|
|
450
|
+
};
|
|
451
|
+
readonly formerRecord: {
|
|
452
|
+
readonly name: string;
|
|
453
|
+
readonly type: "TXT";
|
|
454
|
+
readonly value: string;
|
|
455
|
+
};
|
|
456
|
+
readonly minimumRetainUntil: string | null;
|
|
457
|
+
} | null;
|
|
458
|
+
}, 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>;
|
|
332
459
|
export declare const getDomainById: (input: {
|
|
333
460
|
readonly id: string;
|
|
334
461
|
}) => import("effect/Effect").Effect<{
|
|
335
|
-
readonly domain: string;
|
|
336
|
-
readonly createdAt: string;
|
|
337
|
-
readonly updatedAt: string;
|
|
338
462
|
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
339
|
-
readonly
|
|
463
|
+
readonly domain: string;
|
|
464
|
+
readonly phase: "degraded" | "dns-setup" | "failed" | "provider-setup" | "provider-verification" | "ready";
|
|
465
|
+
readonly dkimSelector?: string | null;
|
|
466
|
+
readonly dkimPublicKey?: string | null;
|
|
340
467
|
readonly dnsRecords: readonly {
|
|
468
|
+
readonly type: "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "NS" | "PTR" | "SOA" | "SRV" | "TXT";
|
|
341
469
|
readonly name: string;
|
|
342
|
-
readonly type: string;
|
|
343
470
|
readonly value: string;
|
|
344
|
-
readonly priority?: number | null;
|
|
345
|
-
readonly description?: string | null;
|
|
346
471
|
readonly ttl?: string | null;
|
|
472
|
+
readonly description?: string | null;
|
|
473
|
+
readonly priority?: number | null;
|
|
347
474
|
}[];
|
|
348
475
|
readonly verifiedAt: string | null;
|
|
349
|
-
readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
|
|
350
476
|
readonly isDefault: boolean;
|
|
477
|
+
readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
|
|
351
478
|
readonly deliverability: {
|
|
352
479
|
readonly bounceRate: number;
|
|
353
480
|
readonly complaintRate: number;
|
|
354
|
-
readonly sendingStatus: "
|
|
481
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
355
482
|
};
|
|
356
|
-
readonly
|
|
357
|
-
readonly
|
|
358
|
-
}, import("./generated").
|
|
483
|
+
readonly createdAt: string;
|
|
484
|
+
readonly updatedAt: string;
|
|
485
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
359
486
|
export declare const removeDomain: (input: {
|
|
360
487
|
readonly id: string;
|
|
361
488
|
}) => import("effect/Effect").Effect<{
|
|
362
489
|
readonly success: boolean;
|
|
363
490
|
readonly message: string;
|
|
364
|
-
}, import("./generated").
|
|
491
|
+
}, 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>;
|
|
365
492
|
export declare const setDefaultDomain: (input: {
|
|
366
493
|
readonly id: string;
|
|
367
494
|
}) => import("effect/Effect").Effect<{
|
|
368
495
|
readonly success: boolean;
|
|
369
496
|
readonly message: string;
|
|
370
|
-
}, import("./generated").
|
|
497
|
+
}, 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>;
|
|
371
498
|
export declare const setDomainDefaultSender: (input: {
|
|
372
499
|
readonly id: string;
|
|
373
500
|
readonly senderId: string;
|
|
374
501
|
}) => import("effect/Effect").Effect<{
|
|
375
502
|
readonly success: boolean;
|
|
376
503
|
readonly message: string;
|
|
377
|
-
}, import("./generated").
|
|
504
|
+
}, 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>;
|
|
378
505
|
export declare const clearDomainDefaultSender: (input: {
|
|
379
506
|
readonly id: string;
|
|
380
507
|
}) => import("effect/Effect").Effect<{
|
|
381
508
|
readonly success: boolean;
|
|
382
509
|
readonly message: string;
|
|
383
|
-
}, import("./generated").
|
|
510
|
+
}, 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>;
|
|
384
511
|
export declare const updateDomainConfig: (input: {
|
|
385
512
|
readonly id: string;
|
|
386
|
-
readonly replyTo?: readonly string[] | null | undefined;
|
|
387
|
-
readonly unsubscribeGroupId?: string | null | undefined;
|
|
388
513
|
readonly openTracking?: boolean | null | undefined;
|
|
389
514
|
readonly clickTracking?: boolean | null | undefined;
|
|
515
|
+
readonly replyTo?: readonly string[] | null | undefined;
|
|
516
|
+
readonly unsubscribeGroupId?: string | null | undefined;
|
|
390
517
|
readonly footerEnabled?: boolean | null | undefined;
|
|
391
518
|
}) => import("effect/Effect").Effect<{
|
|
392
519
|
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
@@ -395,7 +522,7 @@ export declare const updateDomainConfig: (input: {
|
|
|
395
522
|
readonly replyTo: readonly string[] | null;
|
|
396
523
|
readonly unsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
397
524
|
readonly footerEnabled: boolean | null;
|
|
398
|
-
}, import("./generated").
|
|
525
|
+
}, 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>;
|
|
399
526
|
export declare const detectRegistrar: (input: {
|
|
400
527
|
readonly id: string;
|
|
401
528
|
readonly domain: string;
|
|
@@ -404,7 +531,7 @@ export declare const detectRegistrar: (input: {
|
|
|
404
531
|
readonly name: string;
|
|
405
532
|
readonly nameservers: readonly string[];
|
|
406
533
|
readonly docsUrl: string;
|
|
407
|
-
}, import("./generated").
|
|
534
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
408
535
|
export declare const getDomainConnect: (input: {
|
|
409
536
|
readonly id: string;
|
|
410
537
|
readonly mode: string;
|
|
@@ -414,38 +541,38 @@ export declare const getDomainConnect: (input: {
|
|
|
414
541
|
} | {
|
|
415
542
|
readonly eligible: true;
|
|
416
543
|
readonly providerName?: string | null;
|
|
417
|
-
}, import("./generated").
|
|
544
|
+
}, 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>;
|
|
418
545
|
export declare const buildDomainConnectApplyUrl: (input: {
|
|
419
546
|
readonly id: string;
|
|
420
547
|
readonly mode: string;
|
|
421
548
|
}) => import("effect/Effect").Effect<{
|
|
422
549
|
readonly url: string;
|
|
423
|
-
}, import("./generated").
|
|
550
|
+
}, 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>;
|
|
424
551
|
export declare const completeDomainConnect: (input: {
|
|
425
552
|
readonly id: string;
|
|
426
553
|
readonly state: string;
|
|
427
554
|
readonly error?: string | null | undefined;
|
|
428
555
|
}) => import("effect/Effect").Effect<{
|
|
429
|
-
readonly status: "
|
|
430
|
-
}, import("./generated").
|
|
556
|
+
readonly status: "applied" | "cancelled" | "invalid";
|
|
557
|
+
}, 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>;
|
|
431
558
|
export declare const enableReceiving: (input: {
|
|
432
559
|
readonly id: string;
|
|
433
560
|
readonly domain: string;
|
|
434
|
-
readonly endpointId?: string | null | undefined;
|
|
435
561
|
readonly catchAll?: boolean | null | undefined;
|
|
562
|
+
readonly endpointId?: string | null | undefined;
|
|
436
563
|
readonly addresses?: readonly string[] | null | undefined;
|
|
437
564
|
}) => import("effect/Effect").Effect<{
|
|
438
565
|
readonly success: true;
|
|
439
566
|
readonly ruleName: string;
|
|
440
567
|
readonly recipients: readonly string[];
|
|
441
|
-
}, import("./generated").
|
|
568
|
+
}, 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>;
|
|
442
569
|
export declare const enableCustomTracking: (input: {
|
|
443
570
|
readonly id: string;
|
|
444
571
|
readonly label?: string | null | undefined;
|
|
445
572
|
}) => import("effect/Effect").Effect<{
|
|
446
573
|
readonly enabled: boolean;
|
|
447
574
|
readonly customTracking: {
|
|
448
|
-
readonly status: "
|
|
575
|
+
readonly status: "active" | "caa-blocked" | "disabled" | "pending" | "teardown-scheduled";
|
|
449
576
|
readonly label: string;
|
|
450
577
|
readonly hostname: string;
|
|
451
578
|
readonly region: string;
|
|
@@ -466,13 +593,13 @@ export declare const enableCustomTracking: (input: {
|
|
|
466
593
|
readonly verificationErrors: readonly string[];
|
|
467
594
|
readonly teardownScheduledAt: string | null;
|
|
468
595
|
} | null;
|
|
469
|
-
}, import("./generated").
|
|
596
|
+
}, 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>;
|
|
470
597
|
export declare const getCustomTracking: (input: {
|
|
471
598
|
readonly id: string;
|
|
472
599
|
}) => import("effect/Effect").Effect<{
|
|
473
600
|
readonly enabled: boolean;
|
|
474
601
|
readonly customTracking: {
|
|
475
|
-
readonly status: "
|
|
602
|
+
readonly status: "active" | "caa-blocked" | "disabled" | "pending" | "teardown-scheduled";
|
|
476
603
|
readonly label: string;
|
|
477
604
|
readonly hostname: string;
|
|
478
605
|
readonly region: string;
|
|
@@ -493,7 +620,7 @@ export declare const getCustomTracking: (input: {
|
|
|
493
620
|
readonly verificationErrors: readonly string[];
|
|
494
621
|
readonly teardownScheduledAt: string | null;
|
|
495
622
|
} | null;
|
|
496
|
-
}, import("./generated").
|
|
623
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
497
624
|
export declare const getCustomTrackingDomainConnect: (input: {
|
|
498
625
|
readonly id: string;
|
|
499
626
|
}) => import("effect/Effect").Effect<{
|
|
@@ -502,31 +629,582 @@ export declare const getCustomTrackingDomainConnect: (input: {
|
|
|
502
629
|
} | {
|
|
503
630
|
readonly eligible: true;
|
|
504
631
|
readonly providerName?: string | null;
|
|
505
|
-
}, import("./generated").
|
|
632
|
+
}, 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>;
|
|
506
633
|
export declare const buildCustomTrackingDomainConnectApplyUrl: (input: {
|
|
507
634
|
readonly id: string;
|
|
508
635
|
}) => import("effect/Effect").Effect<{
|
|
509
636
|
readonly url: string;
|
|
510
|
-
}, import("./generated").
|
|
637
|
+
}, 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>;
|
|
511
638
|
export declare const completeCustomTrackingDomainConnect: (input: {
|
|
512
639
|
readonly id: string;
|
|
513
640
|
readonly state: string;
|
|
514
641
|
readonly error?: string | null | undefined;
|
|
515
642
|
}) => import("effect/Effect").Effect<{
|
|
516
|
-
readonly status: "
|
|
517
|
-
}, import("./generated").
|
|
643
|
+
readonly status: "applied" | "cancelled" | "invalid" | "stale";
|
|
644
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
518
645
|
export declare const disableCustomTracking: (input: {
|
|
519
646
|
readonly id: string;
|
|
520
647
|
}) => import("effect/Effect").Effect<{
|
|
521
648
|
readonly success: boolean;
|
|
522
649
|
readonly message: string;
|
|
523
|
-
}, import("./generated").
|
|
650
|
+
}, 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>;
|
|
651
|
+
export declare const getDomainWarming: (input: {
|
|
652
|
+
readonly id: string;
|
|
653
|
+
}) => import("effect/Effect").Effect<{
|
|
654
|
+
readonly domain: {
|
|
655
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
656
|
+
readonly domain: string;
|
|
657
|
+
};
|
|
658
|
+
readonly plan: {
|
|
659
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingPlanId">;
|
|
660
|
+
readonly status: "active" | "completed" | "paused";
|
|
661
|
+
readonly identity: "migrating" | "new" | "returning";
|
|
662
|
+
readonly initialDailyRecipients: number;
|
|
663
|
+
readonly dailyGrowthPercent: number;
|
|
664
|
+
readonly targetDailyRecipients: number;
|
|
665
|
+
readonly holdReason: string | null;
|
|
666
|
+
readonly heldAt: string | null;
|
|
667
|
+
readonly pausedAt: string | null;
|
|
668
|
+
readonly completedAt: string | null;
|
|
669
|
+
readonly createdAt: string;
|
|
670
|
+
readonly updatedAt: string;
|
|
671
|
+
} | null;
|
|
672
|
+
readonly batches: readonly {
|
|
673
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingBatchId">;
|
|
674
|
+
readonly sequence: number;
|
|
675
|
+
readonly state: "cancelled" | "closed" | "open" | "scheduled";
|
|
676
|
+
readonly startsAt: string;
|
|
677
|
+
readonly endsAt: string;
|
|
678
|
+
readonly allowanceRecipients: number;
|
|
679
|
+
readonly dailyGrowthPercent: number;
|
|
680
|
+
readonly targetDailyRecipients: number;
|
|
681
|
+
readonly reservedRecipients: number;
|
|
682
|
+
readonly acceptedRecipients: number;
|
|
683
|
+
readonly cancelledAt: string | null;
|
|
684
|
+
readonly createdAt: string;
|
|
685
|
+
}[];
|
|
686
|
+
readonly decisions: readonly {
|
|
687
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingDecisionId">;
|
|
688
|
+
readonly kind: "completed" | "held" | "paused" | "plan-created" | "policy-updated" | "resumed" | "window-cancelled" | "window-opened";
|
|
689
|
+
readonly batchId: (string & import("effect/Brand").Brand<"EmailDomainWarmingBatchId">) | null;
|
|
690
|
+
readonly actor: string;
|
|
691
|
+
readonly note: string | null;
|
|
692
|
+
readonly createdAt: string;
|
|
693
|
+
}[];
|
|
694
|
+
readonly evidence: {
|
|
695
|
+
readonly observedAt: string;
|
|
696
|
+
readonly windowHours: number;
|
|
697
|
+
readonly minimumSends: number;
|
|
698
|
+
readonly sent: number;
|
|
699
|
+
readonly bounced: number;
|
|
700
|
+
readonly complained: number;
|
|
701
|
+
readonly hourly: readonly {
|
|
702
|
+
readonly sent: number;
|
|
703
|
+
readonly bounced: number;
|
|
704
|
+
readonly complained: number;
|
|
705
|
+
}[];
|
|
706
|
+
readonly bounceThreshold: number;
|
|
707
|
+
readonly complaintThreshold: number;
|
|
708
|
+
readonly verdict: "healthy" | "insufficient-evidence" | "over-threshold";
|
|
709
|
+
readonly thresholdReason: string | null;
|
|
710
|
+
};
|
|
711
|
+
readonly holds: {
|
|
712
|
+
readonly workspacePausedAt: string | null;
|
|
713
|
+
readonly workspacePauseReason: string | null;
|
|
714
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
715
|
+
};
|
|
716
|
+
}, 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>;
|
|
717
|
+
export declare const createDomainWarmingPlan: (input: {
|
|
718
|
+
readonly id: string;
|
|
719
|
+
readonly identity: string;
|
|
720
|
+
readonly initialDailyRecipients: number;
|
|
721
|
+
readonly dailyGrowthPercent: number;
|
|
722
|
+
readonly targetDailyRecipients: number;
|
|
723
|
+
}) => import("effect/Effect").Effect<{
|
|
724
|
+
readonly domain: {
|
|
725
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
726
|
+
readonly domain: string;
|
|
727
|
+
};
|
|
728
|
+
readonly plan: {
|
|
729
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingPlanId">;
|
|
730
|
+
readonly status: "active" | "completed" | "paused";
|
|
731
|
+
readonly identity: "migrating" | "new" | "returning";
|
|
732
|
+
readonly initialDailyRecipients: number;
|
|
733
|
+
readonly dailyGrowthPercent: number;
|
|
734
|
+
readonly targetDailyRecipients: number;
|
|
735
|
+
readonly holdReason: string | null;
|
|
736
|
+
readonly heldAt: string | null;
|
|
737
|
+
readonly pausedAt: string | null;
|
|
738
|
+
readonly completedAt: string | null;
|
|
739
|
+
readonly createdAt: string;
|
|
740
|
+
readonly updatedAt: string;
|
|
741
|
+
} | null;
|
|
742
|
+
readonly batches: readonly {
|
|
743
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingBatchId">;
|
|
744
|
+
readonly sequence: number;
|
|
745
|
+
readonly state: "cancelled" | "closed" | "open" | "scheduled";
|
|
746
|
+
readonly startsAt: string;
|
|
747
|
+
readonly endsAt: string;
|
|
748
|
+
readonly allowanceRecipients: number;
|
|
749
|
+
readonly dailyGrowthPercent: number;
|
|
750
|
+
readonly targetDailyRecipients: number;
|
|
751
|
+
readonly reservedRecipients: number;
|
|
752
|
+
readonly acceptedRecipients: number;
|
|
753
|
+
readonly cancelledAt: string | null;
|
|
754
|
+
readonly createdAt: string;
|
|
755
|
+
}[];
|
|
756
|
+
readonly decisions: readonly {
|
|
757
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingDecisionId">;
|
|
758
|
+
readonly kind: "completed" | "held" | "paused" | "plan-created" | "policy-updated" | "resumed" | "window-cancelled" | "window-opened";
|
|
759
|
+
readonly batchId: (string & import("effect/Brand").Brand<"EmailDomainWarmingBatchId">) | null;
|
|
760
|
+
readonly actor: string;
|
|
761
|
+
readonly note: string | null;
|
|
762
|
+
readonly createdAt: string;
|
|
763
|
+
}[];
|
|
764
|
+
readonly evidence: {
|
|
765
|
+
readonly observedAt: string;
|
|
766
|
+
readonly windowHours: number;
|
|
767
|
+
readonly minimumSends: number;
|
|
768
|
+
readonly sent: number;
|
|
769
|
+
readonly bounced: number;
|
|
770
|
+
readonly complained: number;
|
|
771
|
+
readonly hourly: readonly {
|
|
772
|
+
readonly sent: number;
|
|
773
|
+
readonly bounced: number;
|
|
774
|
+
readonly complained: number;
|
|
775
|
+
}[];
|
|
776
|
+
readonly bounceThreshold: number;
|
|
777
|
+
readonly complaintThreshold: number;
|
|
778
|
+
readonly verdict: "healthy" | "insufficient-evidence" | "over-threshold";
|
|
779
|
+
readonly thresholdReason: string | null;
|
|
780
|
+
};
|
|
781
|
+
readonly holds: {
|
|
782
|
+
readonly workspacePausedAt: string | null;
|
|
783
|
+
readonly workspacePauseReason: string | null;
|
|
784
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
785
|
+
};
|
|
786
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
787
|
+
export declare const updateDomainWarmingPolicy: (input: {
|
|
788
|
+
readonly id: string;
|
|
789
|
+
readonly dailyGrowthPercent: number;
|
|
790
|
+
readonly targetDailyRecipients: number;
|
|
791
|
+
readonly note?: string | null | undefined;
|
|
792
|
+
}) => import("effect/Effect").Effect<{
|
|
793
|
+
readonly domain: {
|
|
794
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
795
|
+
readonly domain: string;
|
|
796
|
+
};
|
|
797
|
+
readonly plan: {
|
|
798
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingPlanId">;
|
|
799
|
+
readonly status: "active" | "completed" | "paused";
|
|
800
|
+
readonly identity: "migrating" | "new" | "returning";
|
|
801
|
+
readonly initialDailyRecipients: number;
|
|
802
|
+
readonly dailyGrowthPercent: number;
|
|
803
|
+
readonly targetDailyRecipients: number;
|
|
804
|
+
readonly holdReason: string | null;
|
|
805
|
+
readonly heldAt: string | null;
|
|
806
|
+
readonly pausedAt: string | null;
|
|
807
|
+
readonly completedAt: string | null;
|
|
808
|
+
readonly createdAt: string;
|
|
809
|
+
readonly updatedAt: string;
|
|
810
|
+
} | null;
|
|
811
|
+
readonly batches: readonly {
|
|
812
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingBatchId">;
|
|
813
|
+
readonly sequence: number;
|
|
814
|
+
readonly state: "cancelled" | "closed" | "open" | "scheduled";
|
|
815
|
+
readonly startsAt: string;
|
|
816
|
+
readonly endsAt: string;
|
|
817
|
+
readonly allowanceRecipients: number;
|
|
818
|
+
readonly dailyGrowthPercent: number;
|
|
819
|
+
readonly targetDailyRecipients: number;
|
|
820
|
+
readonly reservedRecipients: number;
|
|
821
|
+
readonly acceptedRecipients: number;
|
|
822
|
+
readonly cancelledAt: string | null;
|
|
823
|
+
readonly createdAt: string;
|
|
824
|
+
}[];
|
|
825
|
+
readonly decisions: readonly {
|
|
826
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingDecisionId">;
|
|
827
|
+
readonly kind: "completed" | "held" | "paused" | "plan-created" | "policy-updated" | "resumed" | "window-cancelled" | "window-opened";
|
|
828
|
+
readonly batchId: (string & import("effect/Brand").Brand<"EmailDomainWarmingBatchId">) | null;
|
|
829
|
+
readonly actor: string;
|
|
830
|
+
readonly note: string | null;
|
|
831
|
+
readonly createdAt: string;
|
|
832
|
+
}[];
|
|
833
|
+
readonly evidence: {
|
|
834
|
+
readonly observedAt: string;
|
|
835
|
+
readonly windowHours: number;
|
|
836
|
+
readonly minimumSends: number;
|
|
837
|
+
readonly sent: number;
|
|
838
|
+
readonly bounced: number;
|
|
839
|
+
readonly complained: number;
|
|
840
|
+
readonly hourly: readonly {
|
|
841
|
+
readonly sent: number;
|
|
842
|
+
readonly bounced: number;
|
|
843
|
+
readonly complained: number;
|
|
844
|
+
}[];
|
|
845
|
+
readonly bounceThreshold: number;
|
|
846
|
+
readonly complaintThreshold: number;
|
|
847
|
+
readonly verdict: "healthy" | "insufficient-evidence" | "over-threshold";
|
|
848
|
+
readonly thresholdReason: string | null;
|
|
849
|
+
};
|
|
850
|
+
readonly holds: {
|
|
851
|
+
readonly workspacePausedAt: string | null;
|
|
852
|
+
readonly workspacePauseReason: string | null;
|
|
853
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
854
|
+
};
|
|
855
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
856
|
+
export declare const cancelDomainWarmingBatch: (input: {
|
|
857
|
+
readonly id: string;
|
|
858
|
+
readonly batchId: string;
|
|
859
|
+
}) => import("effect/Effect").Effect<{
|
|
860
|
+
readonly domain: {
|
|
861
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
862
|
+
readonly domain: string;
|
|
863
|
+
};
|
|
864
|
+
readonly plan: {
|
|
865
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingPlanId">;
|
|
866
|
+
readonly status: "active" | "completed" | "paused";
|
|
867
|
+
readonly identity: "migrating" | "new" | "returning";
|
|
868
|
+
readonly initialDailyRecipients: number;
|
|
869
|
+
readonly dailyGrowthPercent: number;
|
|
870
|
+
readonly targetDailyRecipients: number;
|
|
871
|
+
readonly holdReason: string | null;
|
|
872
|
+
readonly heldAt: string | null;
|
|
873
|
+
readonly pausedAt: string | null;
|
|
874
|
+
readonly completedAt: string | null;
|
|
875
|
+
readonly createdAt: string;
|
|
876
|
+
readonly updatedAt: string;
|
|
877
|
+
} | null;
|
|
878
|
+
readonly batches: readonly {
|
|
879
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingBatchId">;
|
|
880
|
+
readonly sequence: number;
|
|
881
|
+
readonly state: "cancelled" | "closed" | "open" | "scheduled";
|
|
882
|
+
readonly startsAt: string;
|
|
883
|
+
readonly endsAt: string;
|
|
884
|
+
readonly allowanceRecipients: number;
|
|
885
|
+
readonly dailyGrowthPercent: number;
|
|
886
|
+
readonly targetDailyRecipients: number;
|
|
887
|
+
readonly reservedRecipients: number;
|
|
888
|
+
readonly acceptedRecipients: number;
|
|
889
|
+
readonly cancelledAt: string | null;
|
|
890
|
+
readonly createdAt: string;
|
|
891
|
+
}[];
|
|
892
|
+
readonly decisions: readonly {
|
|
893
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingDecisionId">;
|
|
894
|
+
readonly kind: "completed" | "held" | "paused" | "plan-created" | "policy-updated" | "resumed" | "window-cancelled" | "window-opened";
|
|
895
|
+
readonly batchId: (string & import("effect/Brand").Brand<"EmailDomainWarmingBatchId">) | null;
|
|
896
|
+
readonly actor: string;
|
|
897
|
+
readonly note: string | null;
|
|
898
|
+
readonly createdAt: string;
|
|
899
|
+
}[];
|
|
900
|
+
readonly evidence: {
|
|
901
|
+
readonly observedAt: string;
|
|
902
|
+
readonly windowHours: number;
|
|
903
|
+
readonly minimumSends: number;
|
|
904
|
+
readonly sent: number;
|
|
905
|
+
readonly bounced: number;
|
|
906
|
+
readonly complained: number;
|
|
907
|
+
readonly hourly: readonly {
|
|
908
|
+
readonly sent: number;
|
|
909
|
+
readonly bounced: number;
|
|
910
|
+
readonly complained: number;
|
|
911
|
+
}[];
|
|
912
|
+
readonly bounceThreshold: number;
|
|
913
|
+
readonly complaintThreshold: number;
|
|
914
|
+
readonly verdict: "healthy" | "insufficient-evidence" | "over-threshold";
|
|
915
|
+
readonly thresholdReason: string | null;
|
|
916
|
+
};
|
|
917
|
+
readonly holds: {
|
|
918
|
+
readonly workspacePausedAt: string | null;
|
|
919
|
+
readonly workspacePauseReason: string | null;
|
|
920
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
921
|
+
};
|
|
922
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
923
|
+
export declare const pauseDomainWarming: (input: {
|
|
924
|
+
readonly id: string;
|
|
925
|
+
readonly note?: string | null | undefined;
|
|
926
|
+
}) => import("effect/Effect").Effect<{
|
|
927
|
+
readonly domain: {
|
|
928
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
929
|
+
readonly domain: string;
|
|
930
|
+
};
|
|
931
|
+
readonly plan: {
|
|
932
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingPlanId">;
|
|
933
|
+
readonly status: "active" | "completed" | "paused";
|
|
934
|
+
readonly identity: "migrating" | "new" | "returning";
|
|
935
|
+
readonly initialDailyRecipients: number;
|
|
936
|
+
readonly dailyGrowthPercent: number;
|
|
937
|
+
readonly targetDailyRecipients: number;
|
|
938
|
+
readonly holdReason: string | null;
|
|
939
|
+
readonly heldAt: string | null;
|
|
940
|
+
readonly pausedAt: string | null;
|
|
941
|
+
readonly completedAt: string | null;
|
|
942
|
+
readonly createdAt: string;
|
|
943
|
+
readonly updatedAt: string;
|
|
944
|
+
} | null;
|
|
945
|
+
readonly batches: readonly {
|
|
946
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingBatchId">;
|
|
947
|
+
readonly sequence: number;
|
|
948
|
+
readonly state: "cancelled" | "closed" | "open" | "scheduled";
|
|
949
|
+
readonly startsAt: string;
|
|
950
|
+
readonly endsAt: string;
|
|
951
|
+
readonly allowanceRecipients: number;
|
|
952
|
+
readonly dailyGrowthPercent: number;
|
|
953
|
+
readonly targetDailyRecipients: number;
|
|
954
|
+
readonly reservedRecipients: number;
|
|
955
|
+
readonly acceptedRecipients: number;
|
|
956
|
+
readonly cancelledAt: string | null;
|
|
957
|
+
readonly createdAt: string;
|
|
958
|
+
}[];
|
|
959
|
+
readonly decisions: readonly {
|
|
960
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingDecisionId">;
|
|
961
|
+
readonly kind: "completed" | "held" | "paused" | "plan-created" | "policy-updated" | "resumed" | "window-cancelled" | "window-opened";
|
|
962
|
+
readonly batchId: (string & import("effect/Brand").Brand<"EmailDomainWarmingBatchId">) | null;
|
|
963
|
+
readonly actor: string;
|
|
964
|
+
readonly note: string | null;
|
|
965
|
+
readonly createdAt: string;
|
|
966
|
+
}[];
|
|
967
|
+
readonly evidence: {
|
|
968
|
+
readonly observedAt: string;
|
|
969
|
+
readonly windowHours: number;
|
|
970
|
+
readonly minimumSends: number;
|
|
971
|
+
readonly sent: number;
|
|
972
|
+
readonly bounced: number;
|
|
973
|
+
readonly complained: number;
|
|
974
|
+
readonly hourly: readonly {
|
|
975
|
+
readonly sent: number;
|
|
976
|
+
readonly bounced: number;
|
|
977
|
+
readonly complained: number;
|
|
978
|
+
}[];
|
|
979
|
+
readonly bounceThreshold: number;
|
|
980
|
+
readonly complaintThreshold: number;
|
|
981
|
+
readonly verdict: "healthy" | "insufficient-evidence" | "over-threshold";
|
|
982
|
+
readonly thresholdReason: string | null;
|
|
983
|
+
};
|
|
984
|
+
readonly holds: {
|
|
985
|
+
readonly workspacePausedAt: string | null;
|
|
986
|
+
readonly workspacePauseReason: string | null;
|
|
987
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
988
|
+
};
|
|
989
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
990
|
+
export declare const resumeDomainWarming: (input: {
|
|
991
|
+
readonly id: string;
|
|
992
|
+
readonly note?: string | null | undefined;
|
|
993
|
+
}) => import("effect/Effect").Effect<{
|
|
994
|
+
readonly domain: {
|
|
995
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
996
|
+
readonly domain: string;
|
|
997
|
+
};
|
|
998
|
+
readonly plan: {
|
|
999
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingPlanId">;
|
|
1000
|
+
readonly status: "active" | "completed" | "paused";
|
|
1001
|
+
readonly identity: "migrating" | "new" | "returning";
|
|
1002
|
+
readonly initialDailyRecipients: number;
|
|
1003
|
+
readonly dailyGrowthPercent: number;
|
|
1004
|
+
readonly targetDailyRecipients: number;
|
|
1005
|
+
readonly holdReason: string | null;
|
|
1006
|
+
readonly heldAt: string | null;
|
|
1007
|
+
readonly pausedAt: string | null;
|
|
1008
|
+
readonly completedAt: string | null;
|
|
1009
|
+
readonly createdAt: string;
|
|
1010
|
+
readonly updatedAt: string;
|
|
1011
|
+
} | null;
|
|
1012
|
+
readonly batches: readonly {
|
|
1013
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingBatchId">;
|
|
1014
|
+
readonly sequence: number;
|
|
1015
|
+
readonly state: "cancelled" | "closed" | "open" | "scheduled";
|
|
1016
|
+
readonly startsAt: string;
|
|
1017
|
+
readonly endsAt: string;
|
|
1018
|
+
readonly allowanceRecipients: number;
|
|
1019
|
+
readonly dailyGrowthPercent: number;
|
|
1020
|
+
readonly targetDailyRecipients: number;
|
|
1021
|
+
readonly reservedRecipients: number;
|
|
1022
|
+
readonly acceptedRecipients: number;
|
|
1023
|
+
readonly cancelledAt: string | null;
|
|
1024
|
+
readonly createdAt: string;
|
|
1025
|
+
}[];
|
|
1026
|
+
readonly decisions: readonly {
|
|
1027
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingDecisionId">;
|
|
1028
|
+
readonly kind: "completed" | "held" | "paused" | "plan-created" | "policy-updated" | "resumed" | "window-cancelled" | "window-opened";
|
|
1029
|
+
readonly batchId: (string & import("effect/Brand").Brand<"EmailDomainWarmingBatchId">) | null;
|
|
1030
|
+
readonly actor: string;
|
|
1031
|
+
readonly note: string | null;
|
|
1032
|
+
readonly createdAt: string;
|
|
1033
|
+
}[];
|
|
1034
|
+
readonly evidence: {
|
|
1035
|
+
readonly observedAt: string;
|
|
1036
|
+
readonly windowHours: number;
|
|
1037
|
+
readonly minimumSends: number;
|
|
1038
|
+
readonly sent: number;
|
|
1039
|
+
readonly bounced: number;
|
|
1040
|
+
readonly complained: number;
|
|
1041
|
+
readonly hourly: readonly {
|
|
1042
|
+
readonly sent: number;
|
|
1043
|
+
readonly bounced: number;
|
|
1044
|
+
readonly complained: number;
|
|
1045
|
+
}[];
|
|
1046
|
+
readonly bounceThreshold: number;
|
|
1047
|
+
readonly complaintThreshold: number;
|
|
1048
|
+
readonly verdict: "healthy" | "insufficient-evidence" | "over-threshold";
|
|
1049
|
+
readonly thresholdReason: string | null;
|
|
1050
|
+
};
|
|
1051
|
+
readonly holds: {
|
|
1052
|
+
readonly workspacePausedAt: string | null;
|
|
1053
|
+
readonly workspacePauseReason: string | null;
|
|
1054
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
1055
|
+
};
|
|
1056
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1057
|
+
export declare const completeDomainWarming: (input: {
|
|
1058
|
+
readonly id: string;
|
|
1059
|
+
readonly note?: string | null | undefined;
|
|
1060
|
+
}) => import("effect/Effect").Effect<{
|
|
1061
|
+
readonly domain: {
|
|
1062
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
1063
|
+
readonly domain: string;
|
|
1064
|
+
};
|
|
1065
|
+
readonly plan: {
|
|
1066
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingPlanId">;
|
|
1067
|
+
readonly status: "active" | "completed" | "paused";
|
|
1068
|
+
readonly identity: "migrating" | "new" | "returning";
|
|
1069
|
+
readonly initialDailyRecipients: number;
|
|
1070
|
+
readonly dailyGrowthPercent: number;
|
|
1071
|
+
readonly targetDailyRecipients: number;
|
|
1072
|
+
readonly holdReason: string | null;
|
|
1073
|
+
readonly heldAt: string | null;
|
|
1074
|
+
readonly pausedAt: string | null;
|
|
1075
|
+
readonly completedAt: string | null;
|
|
1076
|
+
readonly createdAt: string;
|
|
1077
|
+
readonly updatedAt: string;
|
|
1078
|
+
} | null;
|
|
1079
|
+
readonly batches: readonly {
|
|
1080
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingBatchId">;
|
|
1081
|
+
readonly sequence: number;
|
|
1082
|
+
readonly state: "cancelled" | "closed" | "open" | "scheduled";
|
|
1083
|
+
readonly startsAt: string;
|
|
1084
|
+
readonly endsAt: string;
|
|
1085
|
+
readonly allowanceRecipients: number;
|
|
1086
|
+
readonly dailyGrowthPercent: number;
|
|
1087
|
+
readonly targetDailyRecipients: number;
|
|
1088
|
+
readonly reservedRecipients: number;
|
|
1089
|
+
readonly acceptedRecipients: number;
|
|
1090
|
+
readonly cancelledAt: string | null;
|
|
1091
|
+
readonly createdAt: string;
|
|
1092
|
+
}[];
|
|
1093
|
+
readonly decisions: readonly {
|
|
1094
|
+
readonly id: string & import("effect/Brand").Brand<"EmailDomainWarmingDecisionId">;
|
|
1095
|
+
readonly kind: "completed" | "held" | "paused" | "plan-created" | "policy-updated" | "resumed" | "window-cancelled" | "window-opened";
|
|
1096
|
+
readonly batchId: (string & import("effect/Brand").Brand<"EmailDomainWarmingBatchId">) | null;
|
|
1097
|
+
readonly actor: string;
|
|
1098
|
+
readonly note: string | null;
|
|
1099
|
+
readonly createdAt: string;
|
|
1100
|
+
}[];
|
|
1101
|
+
readonly evidence: {
|
|
1102
|
+
readonly observedAt: string;
|
|
1103
|
+
readonly windowHours: number;
|
|
1104
|
+
readonly minimumSends: number;
|
|
1105
|
+
readonly sent: number;
|
|
1106
|
+
readonly bounced: number;
|
|
1107
|
+
readonly complained: number;
|
|
1108
|
+
readonly hourly: readonly {
|
|
1109
|
+
readonly sent: number;
|
|
1110
|
+
readonly bounced: number;
|
|
1111
|
+
readonly complained: number;
|
|
1112
|
+
}[];
|
|
1113
|
+
readonly bounceThreshold: number;
|
|
1114
|
+
readonly complaintThreshold: number;
|
|
1115
|
+
readonly verdict: "healthy" | "insufficient-evidence" | "over-threshold";
|
|
1116
|
+
readonly thresholdReason: string | null;
|
|
1117
|
+
};
|
|
1118
|
+
readonly holds: {
|
|
1119
|
+
readonly workspacePausedAt: string | null;
|
|
1120
|
+
readonly workspacePauseReason: string | null;
|
|
1121
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
1122
|
+
};
|
|
1123
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1124
|
+
export declare const getOnboardingReview: (_?: never) => import("effect/Effect").Effect<{
|
|
1125
|
+
readonly decision: "approved" | "exempt" | "rejected" | "undecided";
|
|
1126
|
+
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
1127
|
+
readonly generation: number;
|
|
1128
|
+
readonly canSend: boolean;
|
|
1129
|
+
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required" | null;
|
|
1130
|
+
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review" | null;
|
|
1131
|
+
readonly canReapply: boolean;
|
|
1132
|
+
readonly informationRequest: {
|
|
1133
|
+
readonly id: string;
|
|
1134
|
+
readonly requestedFields: readonly string[];
|
|
1135
|
+
readonly requestedAt: string;
|
|
1136
|
+
readonly canRespond: boolean;
|
|
1137
|
+
} | null;
|
|
1138
|
+
readonly identities: readonly {
|
|
1139
|
+
readonly identityId: string;
|
|
1140
|
+
readonly decision: "approved" | "rejected" | "undecided";
|
|
1141
|
+
readonly generation: number;
|
|
1142
|
+
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required" | null;
|
|
1143
|
+
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review" | null;
|
|
1144
|
+
readonly updatedAt: string;
|
|
1145
|
+
}[];
|
|
1146
|
+
readonly updatedAt: string | null;
|
|
1147
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1148
|
+
export declare const reapplyOnboardingReview: (input: {
|
|
1149
|
+
readonly expectedGeneration: number;
|
|
1150
|
+
}) => import("effect/Effect").Effect<{
|
|
1151
|
+
readonly decision: "approved" | "exempt" | "rejected" | "undecided";
|
|
1152
|
+
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
1153
|
+
readonly generation: number;
|
|
1154
|
+
readonly canSend: boolean;
|
|
1155
|
+
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required" | null;
|
|
1156
|
+
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review" | null;
|
|
1157
|
+
readonly canReapply: boolean;
|
|
1158
|
+
readonly informationRequest: {
|
|
1159
|
+
readonly id: string;
|
|
1160
|
+
readonly requestedFields: readonly string[];
|
|
1161
|
+
readonly requestedAt: string;
|
|
1162
|
+
readonly canRespond: boolean;
|
|
1163
|
+
} | null;
|
|
1164
|
+
readonly identities: readonly {
|
|
1165
|
+
readonly identityId: string;
|
|
1166
|
+
readonly decision: "approved" | "rejected" | "undecided";
|
|
1167
|
+
readonly generation: number;
|
|
1168
|
+
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required" | null;
|
|
1169
|
+
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review" | null;
|
|
1170
|
+
readonly updatedAt: string;
|
|
1171
|
+
}[];
|
|
1172
|
+
readonly updatedAt: string | null;
|
|
1173
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1174
|
+
export declare const respondToOnboardingInformationRequest: (input: {
|
|
1175
|
+
readonly expectedGeneration: number;
|
|
1176
|
+
readonly responseText: string;
|
|
1177
|
+
readonly evidenceMediaIds: readonly string[];
|
|
1178
|
+
}) => import("effect/Effect").Effect<{
|
|
1179
|
+
readonly decision: "approved" | "exempt" | "rejected" | "undecided";
|
|
1180
|
+
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
1181
|
+
readonly generation: number;
|
|
1182
|
+
readonly canSend: boolean;
|
|
1183
|
+
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required" | null;
|
|
1184
|
+
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review" | null;
|
|
1185
|
+
readonly canReapply: boolean;
|
|
1186
|
+
readonly informationRequest: {
|
|
1187
|
+
readonly id: string;
|
|
1188
|
+
readonly requestedFields: readonly string[];
|
|
1189
|
+
readonly requestedAt: string;
|
|
1190
|
+
readonly canRespond: boolean;
|
|
1191
|
+
} | null;
|
|
1192
|
+
readonly identities: readonly {
|
|
1193
|
+
readonly identityId: string;
|
|
1194
|
+
readonly decision: "approved" | "rejected" | "undecided";
|
|
1195
|
+
readonly generation: number;
|
|
1196
|
+
readonly code: "identity_changed" | "identity_review_rejected" | "identity_review_required" | "information_required" | "review_in_progress" | "review_rejected" | "review_required" | null;
|
|
1197
|
+
readonly nextAction: "contact_support" | "provide_information" | "reapply" | "verify_sending_identity" | "wait_for_review" | null;
|
|
1198
|
+
readonly updatedAt: string;
|
|
1199
|
+
}[];
|
|
1200
|
+
readonly updatedAt: string | null;
|
|
1201
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
524
1202
|
export declare const listSenders: ((input?: {
|
|
525
|
-
readonly limit?: string | null | undefined;
|
|
526
1203
|
readonly page?: string | null | undefined;
|
|
1204
|
+
readonly limit?: string | null | undefined;
|
|
1205
|
+
readonly verificationStatus?: string | null | undefined;
|
|
527
1206
|
readonly isActive?: string | null | undefined;
|
|
528
1207
|
readonly isDefault?: string | null | undefined;
|
|
529
|
-
readonly verificationStatus?: string | null | undefined;
|
|
530
1208
|
} | undefined) => import("effect/Effect").Effect<{
|
|
531
1209
|
readonly items: readonly {
|
|
532
1210
|
readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
@@ -534,15 +1212,17 @@ export declare const listSenders: ((input?: {
|
|
|
534
1212
|
readonly email: string;
|
|
535
1213
|
readonly name: string | null;
|
|
536
1214
|
readonly domainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
537
|
-
readonly verificationStatus: "
|
|
1215
|
+
readonly verificationStatus: "failed" | "pending" | "verified";
|
|
538
1216
|
readonly verifiedAt: string | null;
|
|
539
1217
|
readonly verificationToken: string | null;
|
|
1218
|
+
readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
|
|
1219
|
+
readonly providerFailureCode: string | null;
|
|
540
1220
|
readonly isDefault: boolean;
|
|
541
1221
|
readonly replyToEmails: readonly string[] | null;
|
|
542
1222
|
readonly deliverability: {
|
|
543
1223
|
readonly bounceRate: number;
|
|
544
1224
|
readonly complaintRate: number;
|
|
545
|
-
readonly sendingStatus: "
|
|
1225
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
546
1226
|
};
|
|
547
1227
|
readonly isActive: boolean;
|
|
548
1228
|
readonly createdAt: string;
|
|
@@ -554,13 +1234,13 @@ export declare const listSenders: ((input?: {
|
|
|
554
1234
|
readonly total: number;
|
|
555
1235
|
readonly totalPages: number;
|
|
556
1236
|
};
|
|
557
|
-
}, import("./generated").
|
|
1237
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
558
1238
|
readonly pages: (input?: {
|
|
559
|
-
readonly limit?: string | null | undefined;
|
|
560
1239
|
readonly page?: string | null | undefined;
|
|
1240
|
+
readonly limit?: string | null | undefined;
|
|
1241
|
+
readonly verificationStatus?: string | null | undefined;
|
|
561
1242
|
readonly isActive?: string | null | undefined;
|
|
562
1243
|
readonly isDefault?: string | null | undefined;
|
|
563
|
-
readonly verificationStatus?: string | null | undefined;
|
|
564
1244
|
} | undefined) => import("effect/Stream").Stream<{
|
|
565
1245
|
readonly items: readonly {
|
|
566
1246
|
readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
@@ -568,15 +1248,17 @@ export declare const listSenders: ((input?: {
|
|
|
568
1248
|
readonly email: string;
|
|
569
1249
|
readonly name: string | null;
|
|
570
1250
|
readonly domainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
571
|
-
readonly verificationStatus: "
|
|
1251
|
+
readonly verificationStatus: "failed" | "pending" | "verified";
|
|
572
1252
|
readonly verifiedAt: string | null;
|
|
573
1253
|
readonly verificationToken: string | null;
|
|
1254
|
+
readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
|
|
1255
|
+
readonly providerFailureCode: string | null;
|
|
574
1256
|
readonly isDefault: boolean;
|
|
575
1257
|
readonly replyToEmails: readonly string[] | null;
|
|
576
1258
|
readonly deliverability: {
|
|
577
1259
|
readonly bounceRate: number;
|
|
578
1260
|
readonly complaintRate: number;
|
|
579
|
-
readonly sendingStatus: "
|
|
1261
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
580
1262
|
};
|
|
581
1263
|
readonly isActive: boolean;
|
|
582
1264
|
readonly createdAt: string;
|
|
@@ -588,60 +1270,88 @@ export declare const listSenders: ((input?: {
|
|
|
588
1270
|
readonly total: number;
|
|
589
1271
|
readonly totalPages: number;
|
|
590
1272
|
};
|
|
591
|
-
}, import("./generated").
|
|
1273
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
592
1274
|
readonly items: (input?: {
|
|
593
|
-
readonly limit?: string | null | undefined;
|
|
594
1275
|
readonly page?: string | null | undefined;
|
|
1276
|
+
readonly limit?: string | null | undefined;
|
|
1277
|
+
readonly verificationStatus?: string | null | undefined;
|
|
595
1278
|
readonly isActive?: string | null | undefined;
|
|
596
1279
|
readonly isDefault?: string | null | undefined;
|
|
597
|
-
readonly verificationStatus?: string | null | undefined;
|
|
598
1280
|
} | undefined) => import("effect/Stream").Stream<{
|
|
599
1281
|
readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
600
1282
|
readonly organizationId: string;
|
|
601
1283
|
readonly email: string;
|
|
602
1284
|
readonly name: string | null;
|
|
603
1285
|
readonly domainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
604
|
-
readonly verificationStatus: "
|
|
1286
|
+
readonly verificationStatus: "failed" | "pending" | "verified";
|
|
605
1287
|
readonly verifiedAt: string | null;
|
|
606
1288
|
readonly verificationToken: string | null;
|
|
1289
|
+
readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
|
|
1290
|
+
readonly providerFailureCode: string | null;
|
|
607
1291
|
readonly isDefault: boolean;
|
|
608
1292
|
readonly replyToEmails: readonly string[] | null;
|
|
609
1293
|
readonly deliverability: {
|
|
610
1294
|
readonly bounceRate: number;
|
|
611
1295
|
readonly complaintRate: number;
|
|
612
|
-
readonly sendingStatus: "
|
|
1296
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
613
1297
|
};
|
|
614
1298
|
readonly isActive: boolean;
|
|
615
1299
|
readonly createdAt: string;
|
|
616
1300
|
readonly updatedAt: string;
|
|
617
|
-
}, import("./generated").
|
|
1301
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
618
1302
|
};
|
|
619
|
-
export declare const
|
|
1303
|
+
export declare const getSender: (input: {
|
|
1304
|
+
readonly id: string;
|
|
1305
|
+
}) => import("effect/Effect").Effect<{
|
|
620
1306
|
readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
1307
|
+
readonly organizationId: string;
|
|
621
1308
|
readonly email: string;
|
|
622
|
-
readonly
|
|
1309
|
+
readonly name: string | null;
|
|
1310
|
+
readonly domainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
1311
|
+
readonly verificationStatus: "failed" | "pending" | "verified";
|
|
1312
|
+
readonly verifiedAt: string | null;
|
|
1313
|
+
readonly verificationToken: string | null;
|
|
1314
|
+
readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
|
|
1315
|
+
readonly providerFailureCode: string | null;
|
|
1316
|
+
readonly isDefault: boolean;
|
|
1317
|
+
readonly replyToEmails: readonly string[] | null;
|
|
1318
|
+
readonly deliverability: {
|
|
1319
|
+
readonly bounceRate: number;
|
|
1320
|
+
readonly complaintRate: number;
|
|
1321
|
+
readonly sendingStatus: "disabled" | "enabled" | "reinstated" | "unknown";
|
|
1322
|
+
};
|
|
1323
|
+
readonly isActive: boolean;
|
|
1324
|
+
readonly createdAt: string;
|
|
1325
|
+
readonly updatedAt: string;
|
|
1326
|
+
}, 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>;
|
|
1327
|
+
export declare const addSender: (input: EmailAddSenderInput, options?: SendOptions | undefined) => import("effect/Effect").Effect<{
|
|
1328
|
+
readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
1329
|
+
readonly email: string;
|
|
1330
|
+
readonly status: "failed" | "pending" | "verified";
|
|
1331
|
+
readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
|
|
1332
|
+
readonly providerFailureCode: string | null;
|
|
623
1333
|
readonly createdAt: string;
|
|
624
|
-
}, import("./generated").
|
|
1334
|
+
}, 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>;
|
|
625
1335
|
export declare const checkSenderVerification: (input: {
|
|
626
1336
|
readonly id: string;
|
|
627
1337
|
}) => import("effect/Effect").Effect<{
|
|
628
1338
|
readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
629
1339
|
readonly email: string;
|
|
630
|
-
readonly status: "
|
|
1340
|
+
readonly status: "failed" | "pending" | "verified";
|
|
631
1341
|
readonly verifiedAt: string | null;
|
|
632
|
-
}, import("./generated").
|
|
1342
|
+
}, 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>;
|
|
633
1343
|
export declare const removeSender: (input: {
|
|
634
1344
|
readonly id: string;
|
|
635
1345
|
}) => import("effect/Effect").Effect<{
|
|
636
1346
|
readonly success: boolean;
|
|
637
1347
|
readonly message: string;
|
|
638
|
-
}, import("./generated").
|
|
1348
|
+
}, 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>;
|
|
639
1349
|
export declare const setDefaultSender: (input: {
|
|
640
1350
|
readonly id: string;
|
|
641
1351
|
}) => import("effect/Effect").Effect<{
|
|
642
1352
|
readonly success: boolean;
|
|
643
1353
|
readonly message: string;
|
|
644
|
-
}, import("./generated").
|
|
1354
|
+
}, 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>;
|
|
645
1355
|
export declare const getStats: (input?: {
|
|
646
1356
|
readonly startDate?: string | null | undefined;
|
|
647
1357
|
readonly endDate?: string | null | undefined;
|
|
@@ -653,19 +1363,19 @@ export declare const getStats: (input?: {
|
|
|
653
1363
|
readonly deliveryRate: number;
|
|
654
1364
|
readonly bounceRate: number;
|
|
655
1365
|
readonly complaintRate: number;
|
|
656
|
-
}, import("./generated").
|
|
1366
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
657
1367
|
export declare const enableCatchAll: (input: {
|
|
658
1368
|
readonly domainId: string;
|
|
659
1369
|
readonly endpointId: string;
|
|
660
1370
|
}) => import("effect/Effect").Effect<{
|
|
661
1371
|
readonly success: true;
|
|
662
1372
|
readonly receiptRuleName: string;
|
|
663
|
-
}, import("./generated").
|
|
1373
|
+
}, 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>;
|
|
664
1374
|
export declare const disableCatchAll: (input: {
|
|
665
1375
|
readonly domainId: string;
|
|
666
1376
|
}) => import("effect/Effect").Effect<{
|
|
667
1377
|
readonly success: true;
|
|
668
|
-
}, import("./generated").
|
|
1378
|
+
}, 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
1379
|
export declare const getCatchAllConfig: (input: {
|
|
670
1380
|
readonly domainId: string;
|
|
671
1381
|
}) => import("effect/Effect").Effect<{
|
|
@@ -674,40 +1384,40 @@ export declare const getCatchAllConfig: (input: {
|
|
|
674
1384
|
readonly receiptRuleName: string | null;
|
|
675
1385
|
readonly emailCount: number;
|
|
676
1386
|
readonly lastEmailAt: string | null;
|
|
677
|
-
}, import("./generated").
|
|
1387
|
+
}, 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>;
|
|
678
1388
|
export declare const updateCatchAllConfig: (input: {
|
|
679
1389
|
readonly domainId: string;
|
|
680
1390
|
readonly endpointId?: string | null | undefined;
|
|
681
1391
|
}) => import("effect/Effect").Effect<{
|
|
682
1392
|
readonly success: true;
|
|
683
|
-
}, import("./generated").
|
|
1393
|
+
}, 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>;
|
|
684
1394
|
export declare const getCatchAllStats: (input: {
|
|
685
1395
|
readonly domainId: string;
|
|
686
1396
|
readonly startDate?: string | null | undefined;
|
|
687
1397
|
readonly endDate?: string | null | undefined;
|
|
688
1398
|
}) => import("effect/Effect").Effect<{
|
|
689
1399
|
readonly domain: string;
|
|
690
|
-
readonly catchAllLastEmailAt: string | null;
|
|
691
1400
|
readonly isCatchAllEnabled: boolean;
|
|
692
1401
|
readonly catchAllEmailCount: number;
|
|
1402
|
+
readonly catchAllLastEmailAt: string | null;
|
|
693
1403
|
readonly timeRange?: {
|
|
694
1404
|
readonly emailsReceived: number;
|
|
695
1405
|
readonly firstEmail: string | null;
|
|
696
1406
|
readonly lastEmail: string | null;
|
|
697
1407
|
readonly avgPerDay: number;
|
|
698
1408
|
} | null;
|
|
699
|
-
}, import("./generated").
|
|
1409
|
+
}, 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>;
|
|
700
1410
|
export declare const listSuppressions: (input?: {
|
|
701
|
-
readonly limit?: string | null | undefined;
|
|
702
1411
|
readonly type?: string | null | undefined;
|
|
703
|
-
readonly search?: string | null | undefined;
|
|
704
1412
|
readonly status?: string | null | undefined;
|
|
1413
|
+
readonly search?: string | null | undefined;
|
|
1414
|
+
readonly limit?: string | null | undefined;
|
|
705
1415
|
readonly offset?: string | null | undefined;
|
|
706
1416
|
} | undefined) => import("effect/Effect").Effect<{
|
|
707
1417
|
readonly suppressions: readonly {
|
|
708
1418
|
readonly id: string & import("effect/Brand").Brand<"SuppressionId">;
|
|
709
1419
|
readonly email: string;
|
|
710
|
-
readonly type: "bounce" | "complaint" | "
|
|
1420
|
+
readonly type: "bounce" | "complaint" | "manual" | "unsubscribe";
|
|
711
1421
|
readonly bounceType: string | null;
|
|
712
1422
|
readonly bounceSubType: string | null;
|
|
713
1423
|
readonly reason: string | null;
|
|
@@ -717,22 +1427,22 @@ export declare const listSuppressions: (input?: {
|
|
|
717
1427
|
readonly createdAt: string;
|
|
718
1428
|
}[];
|
|
719
1429
|
readonly total: number;
|
|
720
|
-
}, import("./generated").
|
|
1430
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
721
1431
|
export declare const removeSuppression: (input: {
|
|
722
1432
|
readonly id: string;
|
|
723
1433
|
}) => import("effect/Effect").Effect<{
|
|
724
1434
|
readonly success: boolean;
|
|
725
1435
|
readonly message: string;
|
|
726
|
-
}, import("./generated").
|
|
1436
|
+
}, 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>;
|
|
727
1437
|
export declare const listBlocks: (input?: {
|
|
728
|
-
readonly limit?: string | null | undefined;
|
|
729
|
-
readonly isActive?: string | null | undefined;
|
|
730
1438
|
readonly blockType?: string | null | undefined;
|
|
1439
|
+
readonly isActive?: string | null | undefined;
|
|
1440
|
+
readonly limit?: string | null | undefined;
|
|
731
1441
|
readonly offset?: string | null | undefined;
|
|
732
1442
|
} | undefined) => import("effect/Effect").Effect<{
|
|
733
1443
|
readonly blocks: readonly {
|
|
734
1444
|
readonly id: string & import("effect/Brand").Brand<"BlockedEmailId">;
|
|
735
|
-
readonly blockType: "
|
|
1445
|
+
readonly blockType: "domain" | "email";
|
|
736
1446
|
readonly blockValue: string;
|
|
737
1447
|
readonly reason: string;
|
|
738
1448
|
readonly notes: string | null;
|
|
@@ -743,59 +1453,59 @@ export declare const listBlocks: (input?: {
|
|
|
743
1453
|
readonly createdAt: string;
|
|
744
1454
|
}[];
|
|
745
1455
|
readonly total: number;
|
|
746
|
-
}, import("./generated").
|
|
1456
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
747
1457
|
export declare const addBlock: (input: {
|
|
748
|
-
readonly reason: string;
|
|
749
1458
|
readonly blockType: string;
|
|
750
1459
|
readonly blockValue: string;
|
|
751
|
-
readonly
|
|
1460
|
+
readonly reason: string;
|
|
752
1461
|
readonly notes?: string | null | undefined;
|
|
1462
|
+
readonly expiresAt?: string | null | undefined;
|
|
753
1463
|
}) => import("effect/Effect").Effect<{
|
|
754
1464
|
readonly id: string & import("effect/Brand").Brand<"BlockedEmailId">;
|
|
755
|
-
readonly blockType: "
|
|
1465
|
+
readonly blockType: "domain" | "email";
|
|
756
1466
|
readonly blockValue: string;
|
|
757
1467
|
readonly reason: string;
|
|
758
1468
|
readonly notes: string | null;
|
|
759
1469
|
readonly isActive: boolean;
|
|
760
1470
|
readonly expiresAt: string | null;
|
|
761
1471
|
readonly createdAt: string;
|
|
762
|
-
}, import("./generated").
|
|
1472
|
+
}, 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>;
|
|
763
1473
|
export declare const removeBlock: (input: {
|
|
764
1474
|
readonly id: string;
|
|
765
1475
|
}) => import("effect/Effect").Effect<{
|
|
766
1476
|
readonly success: boolean;
|
|
767
1477
|
readonly message: string;
|
|
768
|
-
}, import("./generated").
|
|
1478
|
+
}, 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>;
|
|
769
1479
|
export declare const updateBlock: (input: {
|
|
770
1480
|
readonly id: string;
|
|
771
1481
|
readonly reason?: string | null | undefined;
|
|
772
|
-
readonly expiresAt?: string | null | undefined;
|
|
773
|
-
readonly isActive?: boolean | null | undefined;
|
|
774
1482
|
readonly notes?: string | null | undefined;
|
|
1483
|
+
readonly isActive?: boolean | null | undefined;
|
|
1484
|
+
readonly expiresAt?: string | null | undefined;
|
|
775
1485
|
}) => import("effect/Effect").Effect<{
|
|
776
1486
|
readonly id: string & import("effect/Brand").Brand<"BlockedEmailId">;
|
|
777
|
-
readonly blockType: "
|
|
1487
|
+
readonly blockType: "domain" | "email";
|
|
778
1488
|
readonly blockValue: string;
|
|
779
1489
|
readonly reason: string;
|
|
780
1490
|
readonly notes: string | null;
|
|
781
1491
|
readonly isActive: boolean;
|
|
782
1492
|
readonly expiresAt: string | null;
|
|
783
1493
|
readonly updatedAt: string;
|
|
784
|
-
}, import("./generated").
|
|
1494
|
+
}, 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>;
|
|
785
1495
|
export declare const getBlockLogs: (input?: {
|
|
786
|
-
readonly
|
|
1496
|
+
readonly blockedEmailId?: string | null | undefined;
|
|
1497
|
+
readonly fromAddress?: string | null | undefined;
|
|
787
1498
|
readonly startDate?: string | null | undefined;
|
|
788
1499
|
readonly endDate?: string | null | undefined;
|
|
1500
|
+
readonly limit?: string | null | undefined;
|
|
789
1501
|
readonly offset?: string | null | undefined;
|
|
790
|
-
readonly blockedEmailId?: string | null | undefined;
|
|
791
|
-
readonly fromAddress?: string | null | undefined;
|
|
792
1502
|
} | undefined) => import("effect/Effect").Effect<{
|
|
793
1503
|
readonly logs: readonly {
|
|
794
1504
|
readonly id: string & import("effect/Brand").Brand<"BlockedEmailLogId">;
|
|
795
1505
|
readonly fromAddress: string;
|
|
796
1506
|
readonly toAddress: string;
|
|
797
1507
|
readonly subject: string | null;
|
|
798
|
-
readonly blockType: "
|
|
1508
|
+
readonly blockType: "domain" | "email";
|
|
799
1509
|
readonly blockValue: string;
|
|
800
1510
|
readonly blockReason: string;
|
|
801
1511
|
readonly spfResult: string | null;
|
|
@@ -805,24 +1515,24 @@ export declare const getBlockLogs: (input?: {
|
|
|
805
1515
|
readonly blockedAt: string;
|
|
806
1516
|
}[];
|
|
807
1517
|
readonly total: number;
|
|
808
|
-
}, import("./generated").
|
|
1518
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
809
1519
|
export declare const checkBlocked: (input: {
|
|
810
1520
|
readonly emailAddress: string;
|
|
811
1521
|
}) => import("effect/Effect").Effect<{
|
|
812
1522
|
readonly isBlocked: boolean;
|
|
813
1523
|
readonly blockingRule: {
|
|
814
1524
|
readonly id: string & import("effect/Brand").Brand<"BlockedEmailId">;
|
|
815
|
-
readonly blockType: "
|
|
1525
|
+
readonly blockType: "domain" | "email";
|
|
816
1526
|
readonly blockValue: string;
|
|
817
1527
|
readonly reason: string;
|
|
818
1528
|
readonly expiresAt: string | null;
|
|
819
1529
|
} | null;
|
|
820
1530
|
readonly reason: string | null;
|
|
821
|
-
}, import("./generated").
|
|
1531
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
822
1532
|
export declare const listForwardingRules: (input?: {
|
|
823
|
-
readonly limit?: string | null | undefined;
|
|
824
1533
|
readonly domainId?: string | null | undefined;
|
|
825
1534
|
readonly isActive?: string | null | undefined;
|
|
1535
|
+
readonly limit?: string | null | undefined;
|
|
826
1536
|
readonly offset?: string | null | undefined;
|
|
827
1537
|
} | undefined) => import("effect/Effect").Effect<{
|
|
828
1538
|
readonly rules: readonly {
|
|
@@ -840,49 +1550,49 @@ export declare const listForwardingRules: (input?: {
|
|
|
840
1550
|
readonly createdAt: string;
|
|
841
1551
|
}[];
|
|
842
1552
|
readonly total: number;
|
|
843
|
-
}, import("./generated").
|
|
1553
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
844
1554
|
export declare const createForwardingRule: (input: {
|
|
845
1555
|
readonly name: string;
|
|
1556
|
+
readonly description?: string | null | undefined;
|
|
1557
|
+
readonly domainId?: string | null | undefined;
|
|
1558
|
+
readonly sourcePattern?: string | null | undefined;
|
|
846
1559
|
readonly forwardTo: readonly string[];
|
|
1560
|
+
readonly preserveHeaders?: boolean | null | undefined;
|
|
1561
|
+
readonly appendNote?: string | null | undefined;
|
|
1562
|
+
readonly conditions?: {
|
|
1563
|
+
readonly subjectContains?: readonly string[] | null | undefined;
|
|
1564
|
+
readonly fromContains?: readonly string[] | null | undefined;
|
|
1565
|
+
readonly hasAttachments?: boolean | null | undefined;
|
|
1566
|
+
} | null | undefined;
|
|
847
1567
|
readonly priority?: number | null | undefined;
|
|
1568
|
+
readonly isActive?: boolean | null | undefined;
|
|
848
1569
|
readonly metadata?: {
|
|
849
1570
|
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 | {
|
|
850
1571
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
851
1572
|
} | null)[] | {
|
|
852
|
-
readonly [x: string]: string | number | boolean |
|
|
1573
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
853
1574
|
} | null)[] | {
|
|
854
|
-
readonly [x: string]: string | number | boolean |
|
|
1575
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
855
1576
|
} | null)[] | {
|
|
856
|
-
readonly [x: string]: string | number | boolean |
|
|
1577
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
857
1578
|
} | null)[] | {
|
|
858
|
-
readonly [x: string]: string | number | boolean |
|
|
1579
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
859
1580
|
} | null)[] | {
|
|
860
|
-
readonly [x: string]: string | number | boolean |
|
|
1581
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
861
1582
|
} | null)[] | {
|
|
862
|
-
readonly [x: string]: string | number | boolean |
|
|
1583
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
863
1584
|
} | null)[] | {
|
|
864
|
-
readonly [x: string]: string | number | boolean |
|
|
1585
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
865
1586
|
} | null)[] | {
|
|
866
|
-
readonly [x: string]: string | number | boolean |
|
|
1587
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
867
1588
|
} | null)[] | {
|
|
868
|
-
readonly [x: string]: string | number | boolean |
|
|
1589
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
869
1590
|
} | null)[] | {
|
|
870
|
-
readonly [x: string]: string | number | boolean |
|
|
1591
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
871
1592
|
} | null)[] | {
|
|
872
|
-
readonly [x: string]: string | number | boolean |
|
|
1593
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
873
1594
|
} | null | undefined;
|
|
874
1595
|
} | null | undefined;
|
|
875
|
-
readonly domainId?: string | null | undefined;
|
|
876
|
-
readonly description?: string | null | undefined;
|
|
877
|
-
readonly isActive?: boolean | null | undefined;
|
|
878
|
-
readonly sourcePattern?: string | null | undefined;
|
|
879
|
-
readonly preserveHeaders?: boolean | null | undefined;
|
|
880
|
-
readonly appendNote?: string | null | undefined;
|
|
881
|
-
readonly conditions?: {
|
|
882
|
-
readonly subjectContains?: readonly string[] | null | undefined;
|
|
883
|
-
readonly fromContains?: readonly string[] | null | undefined;
|
|
884
|
-
readonly hasAttachments?: boolean | null | undefined;
|
|
885
|
-
} | null | undefined;
|
|
886
1596
|
}) => import("effect/Effect").Effect<{
|
|
887
1597
|
readonly id: string & import("effect/Brand").Brand<"EmailForwardingRuleId">;
|
|
888
1598
|
readonly name: string;
|
|
@@ -890,56 +1600,56 @@ export declare const createForwardingRule: (input: {
|
|
|
890
1600
|
readonly priority: number;
|
|
891
1601
|
readonly isActive: boolean;
|
|
892
1602
|
readonly createdAt: string;
|
|
893
|
-
}, import("./generated").
|
|
1603
|
+
}, 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>;
|
|
894
1604
|
export declare const deleteForwardingRule: (input: {
|
|
895
1605
|
readonly id: string;
|
|
896
1606
|
}) => import("effect/Effect").Effect<{
|
|
897
1607
|
readonly success: boolean;
|
|
898
1608
|
readonly message: string;
|
|
899
|
-
}, import("./generated").
|
|
1609
|
+
}, 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>;
|
|
900
1610
|
export declare const updateForwardingRule: (input: {
|
|
901
1611
|
readonly id: string;
|
|
902
|
-
readonly priority?: number | null | undefined;
|
|
903
1612
|
readonly name?: string | null | undefined;
|
|
1613
|
+
readonly description?: string | null | undefined;
|
|
1614
|
+
readonly domainId?: string | null | undefined;
|
|
1615
|
+
readonly sourcePattern?: string | null | undefined;
|
|
1616
|
+
readonly forwardTo?: readonly string[] | null | undefined;
|
|
1617
|
+
readonly preserveHeaders?: boolean | null | undefined;
|
|
1618
|
+
readonly appendNote?: string | null | undefined;
|
|
1619
|
+
readonly conditions?: {
|
|
1620
|
+
readonly subjectContains?: readonly string[] | null | undefined;
|
|
1621
|
+
readonly fromContains?: readonly string[] | null | undefined;
|
|
1622
|
+
readonly hasAttachments?: boolean | null | undefined;
|
|
1623
|
+
} | null | undefined;
|
|
1624
|
+
readonly priority?: number | null | undefined;
|
|
1625
|
+
readonly isActive?: boolean | null | undefined;
|
|
904
1626
|
readonly metadata?: {
|
|
905
1627
|
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 | {
|
|
906
1628
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
907
1629
|
} | null)[] | {
|
|
908
|
-
readonly [x: string]: string | number | boolean |
|
|
1630
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
909
1631
|
} | null)[] | {
|
|
910
|
-
readonly [x: string]: string | number | boolean |
|
|
1632
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
911
1633
|
} | null)[] | {
|
|
912
|
-
readonly [x: string]: string | number | boolean |
|
|
1634
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
913
1635
|
} | null)[] | {
|
|
914
|
-
readonly [x: string]: string | number | boolean |
|
|
1636
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
915
1637
|
} | null)[] | {
|
|
916
|
-
readonly [x: string]: string | number | boolean |
|
|
1638
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
917
1639
|
} | null)[] | {
|
|
918
|
-
readonly [x: string]: string | number | boolean |
|
|
1640
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
919
1641
|
} | null)[] | {
|
|
920
|
-
readonly [x: string]: string | number | boolean |
|
|
1642
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
921
1643
|
} | null)[] | {
|
|
922
|
-
readonly [x: string]: string | number | boolean |
|
|
1644
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
923
1645
|
} | null)[] | {
|
|
924
|
-
readonly [x: string]: string | number | boolean |
|
|
1646
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
925
1647
|
} | null)[] | {
|
|
926
|
-
readonly [x: string]: string | number | boolean |
|
|
1648
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
927
1649
|
} | null)[] | {
|
|
928
|
-
readonly [x: string]: string | number | boolean |
|
|
1650
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
929
1651
|
} | null | undefined;
|
|
930
1652
|
} | null | undefined;
|
|
931
|
-
readonly domainId?: string | null | undefined;
|
|
932
|
-
readonly description?: string | null | undefined;
|
|
933
|
-
readonly isActive?: boolean | null | undefined;
|
|
934
|
-
readonly sourcePattern?: string | null | undefined;
|
|
935
|
-
readonly forwardTo?: readonly string[] | null | undefined;
|
|
936
|
-
readonly preserveHeaders?: boolean | null | undefined;
|
|
937
|
-
readonly appendNote?: string | null | undefined;
|
|
938
|
-
readonly conditions?: {
|
|
939
|
-
readonly subjectContains?: readonly string[] | null | undefined;
|
|
940
|
-
readonly fromContains?: readonly string[] | null | undefined;
|
|
941
|
-
readonly hasAttachments?: boolean | null | undefined;
|
|
942
|
-
} | null | undefined;
|
|
943
1653
|
}) => import("effect/Effect").Effect<{
|
|
944
1654
|
readonly id: string & import("effect/Brand").Brand<"EmailForwardingRuleId">;
|
|
945
1655
|
readonly name: string;
|
|
@@ -947,17 +1657,15 @@ export declare const updateForwardingRule: (input: {
|
|
|
947
1657
|
readonly priority: number;
|
|
948
1658
|
readonly isActive: boolean;
|
|
949
1659
|
readonly updatedAt: string;
|
|
950
|
-
}, import("./generated").
|
|
1660
|
+
}, 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>;
|
|
951
1661
|
export declare const getForwardingLog: (input?: {
|
|
952
|
-
readonly
|
|
1662
|
+
readonly forwardingRuleId?: string | null | undefined;
|
|
953
1663
|
readonly status?: string | null | undefined;
|
|
954
1664
|
readonly startDate?: string | null | undefined;
|
|
955
1665
|
readonly endDate?: string | null | undefined;
|
|
1666
|
+
readonly limit?: string | null | undefined;
|
|
956
1667
|
readonly offset?: string | null | undefined;
|
|
957
|
-
readonly forwardingRuleId?: string | null | undefined;
|
|
958
1668
|
} | undefined) => import("effect/Effect").Effect<{
|
|
959
|
-
readonly total: number;
|
|
960
|
-
readonly hasMore: boolean;
|
|
961
1669
|
readonly logs: readonly {
|
|
962
1670
|
readonly id: string;
|
|
963
1671
|
readonly forwardingRuleId: (string & import("effect/Brand").Brand<"EmailForwardingRuleId">) | null;
|
|
@@ -965,14 +1673,16 @@ export declare const getForwardingLog: (input?: {
|
|
|
965
1673
|
readonly originalToAddress: string;
|
|
966
1674
|
readonly originalSubject: string | null;
|
|
967
1675
|
readonly forwardedTo: readonly string[];
|
|
968
|
-
readonly status: "
|
|
1676
|
+
readonly status: "failed" | "forwarded" | "pending";
|
|
969
1677
|
readonly errorMessage: string | null;
|
|
970
1678
|
readonly forwardedAt: string | null;
|
|
971
1679
|
readonly createdAt: string;
|
|
972
1680
|
}[];
|
|
1681
|
+
readonly total: number;
|
|
1682
|
+
readonly hasMore: boolean;
|
|
973
1683
|
readonly stats?: {
|
|
974
1684
|
readonly totalForwarded: number;
|
|
975
1685
|
readonly successRate: number;
|
|
976
1686
|
readonly failureRate: number;
|
|
977
1687
|
} | null;
|
|
978
|
-
}, import("./generated").
|
|
1688
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|