samva 0.22.0 → 0.23.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/README.md +1 -1
- package/dist/client/sdk.gen.d.ts +10 -3
- package/dist/client/sdk.gen.js +21 -2
- package/dist/client/types.gen.d.ts +69 -12
- package/dist/effect/analytics.d.ts +6 -41
- package/dist/effect/api-keys.d.ts +8 -236
- package/dist/effect/attachments.d.ts +4 -43
- package/dist/effect/brands.d.ts +6 -155
- package/dist/effect/campaigns.d.ts +12 -868
- package/dist/effect/contact-groups.d.ts +10 -135
- package/dist/effect/contacts.d.ts +21 -727
- package/dist/effect/conversations.d.ts +13 -681
- package/dist/effect/custom-fields.d.ts +4 -44
- package/dist/effect/email.d.ts +61 -1299
- package/dist/effect/events.d.ts +2 -32
- package/dist/effect/extension-installations.d.ts +9 -213
- package/dist/effect/extensions.d.ts +5 -95
- package/dist/effect/feedback.d.ts +1 -4
- package/dist/effect/generated/analytics.js +8 -8
- package/dist/effect/generated/api-keys.js +4 -4
- package/dist/effect/generated/attachments.js +3 -3
- package/dist/effect/generated/contact-groups.js +11 -11
- package/dist/effect/generated/contacts.js +16 -16
- package/dist/effect/generated/conversations.js +6 -6
- package/dist/effect/generated/custom-fields.js +5 -5
- package/dist/effect/generated/email.js +32 -32
- package/dist/effect/generated/events.js +4 -4
- package/dist/effect/generated/extension-installations.js +4 -4
- package/dist/effect/generated/extensions.js +1 -1
- package/dist/effect/generated/journeys.js +12 -12
- package/dist/effect/generated/mailboxes.js +10 -10
- package/dist/effect/generated/messages.js +4 -4
- package/dist/effect/generated/organizations.d.ts +116 -9
- package/dist/effect/generated/organizations.js +31 -6
- package/dist/effect/generated/shared.js +1 -1
- package/dist/effect/generated/templates.d.ts +37 -72
- package/dist/effect/generated/templates.js +121 -122
- package/dist/effect/generated/unsubscribe-groups.js +7 -7
- package/dist/effect/generated/webhooks.js +17 -17
- package/dist/effect/generated-metadata.d.ts +5 -0
- package/dist/effect/generated-metadata.js +1 -0
- package/dist/effect/internal/client.d.ts +5 -1
- package/dist/effect/internal/operation.d.ts +3 -3
- package/dist/effect/internal/send.d.ts +3 -3
- package/dist/effect/journeys.d.ts +167 -1836
- package/dist/effect/mailboxes.d.ts +60 -2362
- package/dist/effect/media.d.ts +5 -66
- package/dist/effect/messages.d.ts +9 -264
- package/dist/effect/namespaces.d.ts +8 -55
- package/dist/effect/operations.d.ts +3 -84
- package/dist/effect/organizations.d.ts +9 -161
- package/dist/effect/organizations.js +3 -1
- package/dist/effect/scheduled-messages.d.ts +5 -401
- package/dist/effect/subscriptions.d.ts +1 -4
- package/dist/effect/templates.d.ts +34 -1506
- package/dist/effect/unsubscribe-groups.d.ts +9 -70
- package/dist/effect/webhooks.d.ts +11 -141
- package/dist/effect/whoami.d.ts +1 -46
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +4 -0
- package/dist/service-map.js +1 -0
- package/package.json +7 -7
package/dist/effect/media.d.ts
CHANGED
|
@@ -4,77 +4,16 @@ export declare const create: (input: {
|
|
|
4
4
|
readonly sizeBytes: number;
|
|
5
5
|
readonly purpose: "attachment" | "avatar" | "review_evidence";
|
|
6
6
|
readonly checksumSha256?: string | null | undefined;
|
|
7
|
-
}) => import("
|
|
8
|
-
readonly id: string & import("effect/Brand").Brand<"MediaId">;
|
|
9
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
10
|
-
readonly status: "deleted" | "failed" | "pending" | "processing" | "ready" | "uploading";
|
|
11
|
-
readonly filename: string;
|
|
12
|
-
readonly contentType: string;
|
|
13
|
-
readonly sizeBytes: number;
|
|
14
|
-
readonly width: number | null;
|
|
15
|
-
readonly height: number | null;
|
|
16
|
-
readonly durationMs: number | null;
|
|
17
|
-
readonly purpose: "attachment" | "avatar" | "review_evidence";
|
|
18
|
-
readonly checksumSha256: string | null;
|
|
19
|
-
readonly expiresAt: string | null;
|
|
20
|
-
readonly createdAt: string;
|
|
21
|
-
readonly confirmedAt: string | null;
|
|
22
|
-
readonly upload: {
|
|
23
|
-
readonly url: string;
|
|
24
|
-
readonly method: "PUT";
|
|
25
|
-
readonly headers: {
|
|
26
|
-
readonly [x: string]: string;
|
|
27
|
-
};
|
|
28
|
-
readonly expiresAt: string;
|
|
29
|
-
};
|
|
30
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
7
|
+
}) => import("./internal/operation").OperationResult<"mediaCreate">;
|
|
31
8
|
export declare const getById: (input: {
|
|
32
9
|
readonly id: string;
|
|
33
|
-
}) => import("
|
|
34
|
-
readonly id: string & import("effect/Brand").Brand<"MediaId">;
|
|
35
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
36
|
-
readonly status: "deleted" | "failed" | "pending" | "processing" | "ready" | "uploading";
|
|
37
|
-
readonly filename: string;
|
|
38
|
-
readonly contentType: string;
|
|
39
|
-
readonly sizeBytes: number;
|
|
40
|
-
readonly width: number | null;
|
|
41
|
-
readonly height: number | null;
|
|
42
|
-
readonly durationMs: number | null;
|
|
43
|
-
readonly purpose: "attachment" | "avatar" | "review_evidence";
|
|
44
|
-
readonly checksumSha256: string | null;
|
|
45
|
-
readonly expiresAt: string | null;
|
|
46
|
-
readonly createdAt: string;
|
|
47
|
-
readonly confirmedAt: string | null;
|
|
48
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
10
|
+
}) => import("./internal/operation").OperationResult<"mediaGetById">;
|
|
49
11
|
export declare const remove: (input: {
|
|
50
12
|
readonly id: string;
|
|
51
|
-
}) => import("
|
|
52
|
-
readonly success: boolean;
|
|
53
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
13
|
+
}) => import("./internal/operation").OperationResult<"mediaRemove">;
|
|
54
14
|
export declare const complete: (input: {
|
|
55
15
|
readonly id: string;
|
|
56
|
-
}) => import("
|
|
57
|
-
readonly media: {
|
|
58
|
-
readonly id: string & import("effect/Brand").Brand<"MediaId">;
|
|
59
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
60
|
-
readonly status: "deleted" | "failed" | "pending" | "processing" | "ready" | "uploading";
|
|
61
|
-
readonly filename: string;
|
|
62
|
-
readonly contentType: string;
|
|
63
|
-
readonly sizeBytes: number;
|
|
64
|
-
readonly width: number | null;
|
|
65
|
-
readonly height: number | null;
|
|
66
|
-
readonly durationMs: number | null;
|
|
67
|
-
readonly purpose: "attachment" | "avatar" | "review_evidence";
|
|
68
|
-
readonly checksumSha256: string | null;
|
|
69
|
-
readonly expiresAt: string | null;
|
|
70
|
-
readonly createdAt: string;
|
|
71
|
-
readonly confirmedAt: string | null;
|
|
72
|
-
};
|
|
73
|
-
readonly downloadUrl: string;
|
|
74
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
16
|
+
}) => import("./internal/operation").OperationResult<"mediaComplete">;
|
|
75
17
|
export declare const downloadUrl: (input: {
|
|
76
18
|
readonly id: string;
|
|
77
|
-
}) => import("
|
|
78
|
-
readonly url: string;
|
|
79
|
-
readonly expiresAt: string;
|
|
80
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
19
|
+
}) => import("./internal/operation").OperationResult<"mediaDownloadUrl">;
|
|
@@ -12,20 +12,7 @@ export declare const list: ((input?: {
|
|
|
12
12
|
readonly namespaceId?: string | null | undefined;
|
|
13
13
|
readonly after?: string | null | undefined;
|
|
14
14
|
readonly before?: string | null | undefined;
|
|
15
|
-
} | undefined) => import("
|
|
16
|
-
readonly items: readonly {
|
|
17
|
-
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
18
|
-
readonly channel: "email";
|
|
19
|
-
readonly direction: "inbound" | "outbound";
|
|
20
|
-
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
21
|
-
readonly from: string | null;
|
|
22
|
-
readonly to: readonly string[];
|
|
23
|
-
readonly subject: string | null;
|
|
24
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
25
|
-
readonly createdAt: string;
|
|
26
|
-
}[];
|
|
27
|
-
readonly nextCursor: string | null;
|
|
28
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
15
|
+
} | undefined) => import("./internal/operation").OperationResult<"messagesList">) & {
|
|
29
16
|
readonly pages: (input?: {
|
|
30
17
|
readonly limit?: string | null | undefined;
|
|
31
18
|
readonly cursor?: string | null | undefined;
|
|
@@ -198,215 +185,26 @@ export declare const validateEmail: (input: {
|
|
|
198
185
|
readonly enabled?: boolean | null | undefined;
|
|
199
186
|
} | undefined;
|
|
200
187
|
};
|
|
201
|
-
}) => import("
|
|
202
|
-
readonly valid: true;
|
|
203
|
-
readonly from: {
|
|
204
|
-
readonly email: string;
|
|
205
|
-
readonly name: string | null;
|
|
206
|
-
};
|
|
207
|
-
readonly recipientCount: number;
|
|
208
|
-
readonly content: {
|
|
209
|
-
readonly source: "inline" | "template";
|
|
210
|
-
readonly subject: string;
|
|
211
|
-
readonly hasHtml: boolean;
|
|
212
|
-
readonly hasText: boolean;
|
|
213
|
-
};
|
|
214
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
188
|
+
}) => import("./internal/operation").OperationResult<"messagesValidateEmail">;
|
|
215
189
|
export declare const get: (input: {
|
|
216
190
|
readonly id: string;
|
|
217
|
-
}) => import("
|
|
218
|
-
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
219
|
-
readonly channel: "email";
|
|
220
|
-
readonly direction: "inbound" | "outbound";
|
|
221
|
-
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
222
|
-
readonly from: {
|
|
223
|
-
readonly address: string;
|
|
224
|
-
readonly name: string | null;
|
|
225
|
-
} | null;
|
|
226
|
-
readonly to: readonly {
|
|
227
|
-
readonly address: string;
|
|
228
|
-
readonly contactId: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
229
|
-
}[];
|
|
230
|
-
readonly cc: readonly {
|
|
231
|
-
readonly address: string;
|
|
232
|
-
readonly contactId: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
233
|
-
}[];
|
|
234
|
-
readonly bcc: readonly {
|
|
235
|
-
readonly address: string;
|
|
236
|
-
readonly contactId: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
237
|
-
}[];
|
|
238
|
-
readonly replyTo: readonly string[];
|
|
239
|
-
readonly subject: string | null;
|
|
240
|
-
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
241
|
-
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
242
|
-
readonly tags: readonly string[];
|
|
243
|
-
readonly metadata: {
|
|
244
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
245
|
-
} | null;
|
|
246
|
-
readonly isTest: boolean;
|
|
247
|
-
readonly scheduledAt: string | null;
|
|
248
|
-
readonly submission: {
|
|
249
|
-
readonly origin: "campaign" | "direct" | "forwarding" | "journey" | "mailbox" | "scheduled";
|
|
250
|
-
readonly transport: "http" | null;
|
|
251
|
-
readonly credential: {
|
|
252
|
-
readonly kind: "api_key";
|
|
253
|
-
readonly apiKeyId: (string & import("effect/Brand").Brand<"ApiKeyId">) | null;
|
|
254
|
-
} | {
|
|
255
|
-
readonly kind: "oauth";
|
|
256
|
-
readonly clientId: string | null;
|
|
257
|
-
} | {
|
|
258
|
-
readonly kind: "session";
|
|
259
|
-
} | null;
|
|
260
|
-
readonly userId: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
261
|
-
readonly client: {
|
|
262
|
-
readonly surface: "cli" | "mcp" | "typescript-effect" | "typescript-promise";
|
|
263
|
-
readonly version: string;
|
|
264
|
-
} | null;
|
|
265
|
-
} | null;
|
|
266
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
267
|
-
readonly reviewExpectedAt: string | null;
|
|
268
|
-
readonly skippedRecipients: readonly {
|
|
269
|
-
readonly address: string;
|
|
270
|
-
readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
|
|
271
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
272
|
-
}[];
|
|
273
|
-
readonly createdAt: string;
|
|
274
|
-
readonly updatedAt: string;
|
|
275
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
191
|
+
}) => import("./internal/operation").OperationResult<"messagesGet">;
|
|
276
192
|
export declare const getEmail: (input: {
|
|
277
193
|
readonly id: string;
|
|
278
194
|
readonly includeDownloadUrls?: string | null | undefined;
|
|
279
195
|
readonly urlExpiresIn?: string | null | undefined;
|
|
280
|
-
}) => import("
|
|
281
|
-
readonly deliveries: readonly {
|
|
282
|
-
readonly scheduling: {
|
|
283
|
-
readonly dueAt: string;
|
|
284
|
-
readonly expiresAt: string;
|
|
285
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
286
|
-
readonly reviewExpectedAt: string | null;
|
|
287
|
-
} | null;
|
|
288
|
-
readonly id: string;
|
|
289
|
-
readonly messageId: string;
|
|
290
|
-
readonly recipientId: string | null;
|
|
291
|
-
readonly channel: "email";
|
|
292
|
-
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
293
|
-
readonly attemptCount: number;
|
|
294
|
-
readonly maxAttempts: number;
|
|
295
|
-
readonly queuedAt: string | null;
|
|
296
|
-
readonly claimedAt: string | null;
|
|
297
|
-
readonly lastAttemptAt: string | null;
|
|
298
|
-
readonly nextRetryAt: string | null;
|
|
299
|
-
readonly sentAt: string | null;
|
|
300
|
-
readonly deliveredAt: string | null;
|
|
301
|
-
readonly readAt: string | null;
|
|
302
|
-
readonly failedAt: string | null;
|
|
303
|
-
readonly terminalAt: string | null;
|
|
304
|
-
readonly errorCode: string | null;
|
|
305
|
-
readonly errorMessage: string | null;
|
|
306
|
-
readonly errorDetails: {
|
|
307
|
-
readonly code?: string | null;
|
|
308
|
-
readonly name?: string | null;
|
|
309
|
-
readonly message?: string | null;
|
|
310
|
-
readonly details?: {
|
|
311
|
-
readonly [x: string]: string | number | null;
|
|
312
|
-
} | null;
|
|
313
|
-
readonly retryable?: boolean | null;
|
|
314
|
-
} | null;
|
|
315
|
-
readonly cost: string;
|
|
316
|
-
readonly currency: string;
|
|
317
|
-
readonly idempotencyKey: string | null;
|
|
318
|
-
readonly createdAt: string;
|
|
319
|
-
readonly updatedAt: string;
|
|
320
|
-
}[];
|
|
321
|
-
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
322
|
-
readonly organizationId: string;
|
|
323
|
-
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
324
|
-
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
325
|
-
readonly channel: "email";
|
|
326
|
-
readonly direction: "inbound" | "outbound";
|
|
327
|
-
readonly subject: string | null;
|
|
328
|
-
readonly fromEmail: string;
|
|
329
|
-
readonly fromName: string | null;
|
|
330
|
-
readonly toEmails: readonly {
|
|
331
|
-
readonly email: string;
|
|
332
|
-
readonly name: string | null;
|
|
333
|
-
}[];
|
|
334
|
-
readonly ccEmails: readonly {
|
|
335
|
-
readonly email: string;
|
|
336
|
-
readonly name: string | null;
|
|
337
|
-
}[] | null;
|
|
338
|
-
readonly bccEmails: readonly {
|
|
339
|
-
readonly email: string;
|
|
340
|
-
readonly name: string | null;
|
|
341
|
-
}[] | null;
|
|
342
|
-
readonly replyToEmails: readonly string[] | null;
|
|
343
|
-
readonly messageIdHeader: string;
|
|
344
|
-
readonly inReplyTo: string | null;
|
|
345
|
-
readonly references: readonly string[] | null;
|
|
346
|
-
readonly threadPosition: number | null;
|
|
347
|
-
readonly newContent: string | null;
|
|
348
|
-
readonly quotedContent: string | null;
|
|
349
|
-
readonly hasQuotedContent: boolean;
|
|
350
|
-
readonly dkimVerdict: "fail" | "neutral" | "none" | "pass" | "permerror" | "policy" | "softfail" | "temperror" | null;
|
|
351
|
-
readonly spfVerdict: "fail" | "neutral" | "none" | "pass" | "permerror" | "policy" | "softfail" | "temperror" | null;
|
|
352
|
-
readonly dmarcVerdict: "fail" | "neutral" | "none" | "pass" | "permerror" | "policy" | "softfail" | "temperror" | null;
|
|
353
|
-
readonly isAutoReply: boolean;
|
|
354
|
-
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
355
|
-
readonly listUnsubscribeUrl: string | null;
|
|
356
|
-
readonly listUnsubscribeEmail: string | null;
|
|
357
|
-
readonly priority: "high" | "low" | "normal" | null;
|
|
358
|
-
readonly parsingErrors: readonly string[] | null;
|
|
359
|
-
readonly parsingDuration: number | null;
|
|
360
|
-
readonly hasAttachments: boolean;
|
|
361
|
-
readonly attachmentCount: number;
|
|
362
|
-
readonly attachments: readonly {
|
|
363
|
-
readonly id: string & import("effect/Brand").Brand<"AttachmentId">;
|
|
364
|
-
readonly filename: string;
|
|
365
|
-
readonly contentType: string;
|
|
366
|
-
readonly size: number;
|
|
367
|
-
readonly isInline: boolean;
|
|
368
|
-
readonly contentId: string | null;
|
|
369
|
-
}[];
|
|
370
|
-
readonly downloadUrls: {
|
|
371
|
-
readonly rawMime: string | null;
|
|
372
|
-
readonly html: string | null;
|
|
373
|
-
readonly text: string | null;
|
|
374
|
-
readonly expiresAt: string;
|
|
375
|
-
} | null;
|
|
376
|
-
readonly createdAt: string;
|
|
377
|
-
readonly receivedAt: string | null;
|
|
378
|
-
readonly processedAt: string | null;
|
|
379
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
196
|
+
}) => import("./internal/operation").OperationResult<"messagesGetEmail">;
|
|
380
197
|
export declare const remove: (input: {
|
|
381
198
|
readonly id: string;
|
|
382
|
-
}) => import("
|
|
383
|
-
readonly success: boolean;
|
|
384
|
-
readonly message: string;
|
|
385
|
-
}, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
199
|
+
}) => import("./internal/operation").OperationResult<"messagesRemove">;
|
|
386
200
|
export declare const getStatus: (input: {
|
|
387
201
|
readonly id: string;
|
|
388
|
-
}) => import("
|
|
389
|
-
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
390
|
-
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
391
|
-
readonly updatedAt: string;
|
|
392
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
202
|
+
}) => import("./internal/operation").OperationResult<"messagesGetStatus">;
|
|
393
203
|
export declare const getEvents: ((input: {
|
|
394
204
|
readonly id: string;
|
|
395
205
|
readonly limit?: string | null | undefined;
|
|
396
206
|
readonly cursor?: string | null | undefined;
|
|
397
|
-
}) => import("
|
|
398
|
-
readonly items: readonly {
|
|
399
|
-
readonly id: string & import("effect/Brand").Brand<"MessageEventId">;
|
|
400
|
-
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
401
|
-
readonly eventType: string;
|
|
402
|
-
readonly status: string;
|
|
403
|
-
readonly timestamp: string;
|
|
404
|
-
readonly metadata?: {
|
|
405
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
406
|
-
} | null;
|
|
407
|
-
}[];
|
|
408
|
-
readonly nextCursor: string | null;
|
|
409
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
207
|
+
}) => import("./internal/operation").OperationResult<"messagesGetEvents">) & {
|
|
410
208
|
readonly pages: (input: {
|
|
411
209
|
readonly id: string;
|
|
412
210
|
readonly limit?: string | null | undefined;
|
|
@@ -441,60 +239,7 @@ export declare const getEvents: ((input: {
|
|
|
441
239
|
};
|
|
442
240
|
export declare const listDeliveries: (input: {
|
|
443
241
|
readonly id: string;
|
|
444
|
-
}) => import("
|
|
445
|
-
readonly items: readonly {
|
|
446
|
-
readonly id: string & import("effect/Brand").Brand<"MessageDeliveryId">;
|
|
447
|
-
readonly recipient: string | null;
|
|
448
|
-
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
449
|
-
readonly attemptCount: number;
|
|
450
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
451
|
-
readonly nextRetryAt: string | null;
|
|
452
|
-
readonly sentAt: string | null;
|
|
453
|
-
readonly deliveredAt: string | null;
|
|
454
|
-
readonly readAt: string | null;
|
|
455
|
-
readonly failedAt: string | null;
|
|
456
|
-
readonly error: {
|
|
457
|
-
readonly code: string | null;
|
|
458
|
-
readonly message: string | null;
|
|
459
|
-
readonly retryable: boolean | null;
|
|
460
|
-
} | null;
|
|
461
|
-
readonly estimatedProviderCost: {
|
|
462
|
-
readonly amount: string;
|
|
463
|
-
readonly currency: string;
|
|
464
|
-
readonly billingMode: "pass_through";
|
|
465
|
-
} | null;
|
|
466
|
-
readonly createdAt: string;
|
|
467
|
-
readonly updatedAt: string;
|
|
468
|
-
}[];
|
|
469
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
242
|
+
}) => import("./internal/operation").OperationResult<"messagesListDeliveries">;
|
|
470
243
|
export declare const getContent: (input: {
|
|
471
244
|
readonly id: string;
|
|
472
|
-
}) => import("
|
|
473
|
-
readonly text?: string | null;
|
|
474
|
-
readonly html?: string | null;
|
|
475
|
-
readonly markdown?: string | null;
|
|
476
|
-
readonly email?: {
|
|
477
|
-
readonly subject?: string | null;
|
|
478
|
-
readonly html?: string | null;
|
|
479
|
-
readonly text?: string | null;
|
|
480
|
-
readonly headers?: {
|
|
481
|
-
readonly [x: string]: string;
|
|
482
|
-
} | null;
|
|
483
|
-
readonly tracking?: {
|
|
484
|
-
readonly opens?: boolean;
|
|
485
|
-
readonly clicks?: boolean;
|
|
486
|
-
};
|
|
487
|
-
readonly attachments?: readonly {
|
|
488
|
-
readonly filename: string;
|
|
489
|
-
readonly contentId?: string | null;
|
|
490
|
-
readonly isInline?: boolean | null;
|
|
491
|
-
readonly content?: string | null;
|
|
492
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
493
|
-
readonly contentType: string;
|
|
494
|
-
readonly size: number;
|
|
495
|
-
}[] | null;
|
|
496
|
-
} | null;
|
|
497
|
-
readonly metadata?: {
|
|
498
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
499
|
-
} | null;
|
|
500
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
245
|
+
}) => import("./internal/operation").OperationResult<"messagesGetContent">;
|
|
@@ -3,14 +3,7 @@ export declare const list: ((input?: {
|
|
|
3
3
|
readonly cursor?: string | null | undefined;
|
|
4
4
|
readonly after?: string | null | undefined;
|
|
5
5
|
readonly before?: string | null | undefined;
|
|
6
|
-
} | undefined) => import("
|
|
7
|
-
readonly items: readonly {
|
|
8
|
-
readonly id: string & import("effect/Brand").Brand<"NamespaceId">;
|
|
9
|
-
readonly name: string;
|
|
10
|
-
readonly createdAt: string;
|
|
11
|
-
}[];
|
|
12
|
-
readonly nextCursor: string | null;
|
|
13
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
6
|
+
} | undefined) => import("./internal/operation").OperationResult<"namespacesList">) & {
|
|
14
7
|
readonly pages: (input?: {
|
|
15
8
|
readonly limit?: string | null | undefined;
|
|
16
9
|
readonly cursor?: string | null | undefined;
|
|
@@ -40,72 +33,32 @@ export declare const create: (input: {
|
|
|
40
33
|
readonly metadata?: {
|
|
41
34
|
readonly [x: string]: string | undefined;
|
|
42
35
|
} | null | undefined;
|
|
43
|
-
}) => import("
|
|
44
|
-
readonly id: string & import("effect/Brand").Brand<"NamespaceId">;
|
|
45
|
-
readonly name: string;
|
|
46
|
-
readonly createdAt: string;
|
|
47
|
-
readonly metadata: {
|
|
48
|
-
readonly [x: string]: string;
|
|
49
|
-
};
|
|
50
|
-
readonly updatedAt: string;
|
|
51
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
36
|
+
}) => import("./internal/operation").OperationResult<"namespacesCreate">;
|
|
52
37
|
export declare const get: (input: {
|
|
53
38
|
readonly id: string;
|
|
54
|
-
}) => import("
|
|
55
|
-
readonly id: string & import("effect/Brand").Brand<"NamespaceId">;
|
|
56
|
-
readonly name: string;
|
|
57
|
-
readonly createdAt: string;
|
|
58
|
-
readonly metadata: {
|
|
59
|
-
readonly [x: string]: string;
|
|
60
|
-
};
|
|
61
|
-
readonly updatedAt: string;
|
|
62
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
39
|
+
}) => import("./internal/operation").OperationResult<"namespacesGet">;
|
|
63
40
|
export declare const update: (input: {
|
|
64
41
|
readonly id: string;
|
|
65
42
|
readonly name?: string | null | undefined;
|
|
66
43
|
readonly metadata?: {
|
|
67
44
|
readonly [x: string]: string | null | undefined;
|
|
68
45
|
} | null | undefined;
|
|
69
|
-
}) => import("
|
|
70
|
-
readonly id: string & import("effect/Brand").Brand<"NamespaceId">;
|
|
71
|
-
readonly name: string;
|
|
72
|
-
readonly createdAt: string;
|
|
73
|
-
readonly metadata: {
|
|
74
|
-
readonly [x: string]: string;
|
|
75
|
-
};
|
|
76
|
-
readonly updatedAt: string;
|
|
77
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
46
|
+
}) => import("./internal/operation").OperationResult<"namespacesUpdate">;
|
|
78
47
|
export declare const remove: (input: {
|
|
79
48
|
readonly id: string;
|
|
80
|
-
}) => import("
|
|
81
|
-
readonly success: boolean;
|
|
82
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
49
|
+
}) => import("./internal/operation").OperationResult<"namespacesRemove">;
|
|
83
50
|
export declare const assignResource: (input: {
|
|
84
51
|
readonly id: string;
|
|
85
52
|
readonly type: "contact" | "domain" | "sender" | "template";
|
|
86
53
|
readonly resourceId: string;
|
|
87
|
-
}) => import("
|
|
88
|
-
readonly type: "contact" | "domain" | "sender" | "template";
|
|
89
|
-
readonly id: string;
|
|
90
|
-
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
91
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
54
|
+
}) => import("./internal/operation").OperationResult<"namespacesAssignResource">;
|
|
92
55
|
export declare const removeResource: (input: {
|
|
93
56
|
readonly id: string;
|
|
94
57
|
readonly type: "contact" | "domain" | "sender" | "template";
|
|
95
58
|
readonly resourceId: string;
|
|
96
|
-
}) => import("
|
|
97
|
-
readonly type: "contact" | "domain" | "sender" | "template";
|
|
98
|
-
readonly id: string;
|
|
99
|
-
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
100
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
59
|
+
}) => import("./internal/operation").OperationResult<"namespacesRemoveResource">;
|
|
101
60
|
export declare const getUsage: (input: {
|
|
102
61
|
readonly id: string;
|
|
103
62
|
readonly after?: string | null | undefined;
|
|
104
63
|
readonly before?: string | null | undefined;
|
|
105
|
-
}) => import("
|
|
106
|
-
readonly namespaceId: string & import("effect/Brand").Brand<"NamespaceId">;
|
|
107
|
-
readonly periodStart: string;
|
|
108
|
-
readonly periodEnd: string;
|
|
109
|
-
readonly emailCount: number;
|
|
110
|
-
readonly totalMessages: number;
|
|
111
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
64
|
+
}) => import("./internal/operation").OperationResult<"namespacesGetUsage">;
|
|
@@ -3,32 +3,7 @@ export declare const list: ((input?: {
|
|
|
3
3
|
readonly cursor?: string | null | undefined;
|
|
4
4
|
readonly kind?: "email-domain-provisioning" | "organization-deletion" | null | undefined;
|
|
5
5
|
readonly status?: "failed" | "pending" | "running" | "succeeded" | null | undefined;
|
|
6
|
-
} | undefined) => import("
|
|
7
|
-
readonly items: readonly {
|
|
8
|
-
readonly id: string & import("effect/Brand").Brand<"OperationId">;
|
|
9
|
-
readonly organizationId: string;
|
|
10
|
-
readonly kind: "email-domain-provisioning" | "organization-deletion";
|
|
11
|
-
readonly subject: {
|
|
12
|
-
readonly type: string;
|
|
13
|
-
readonly id: string;
|
|
14
|
-
};
|
|
15
|
-
readonly actor: {
|
|
16
|
-
readonly type: "api-key" | "system" | "user";
|
|
17
|
-
readonly id: string;
|
|
18
|
-
};
|
|
19
|
-
readonly status: "failed" | "pending" | "running" | "succeeded";
|
|
20
|
-
readonly phase: "accepted" | "completed" | "deleting" | "dispatching" | "finalizing" | "provisioning";
|
|
21
|
-
readonly error: {
|
|
22
|
-
readonly code: "capacity-unavailable" | "conflict" | "internal" | "rejected" | "timed-out" | "unavailable" | "validation-failed";
|
|
23
|
-
readonly message: string;
|
|
24
|
-
} | null;
|
|
25
|
-
readonly createdAt: string;
|
|
26
|
-
readonly updatedAt: string;
|
|
27
|
-
readonly startedAt: string | null;
|
|
28
|
-
readonly completedAt: string | null;
|
|
29
|
-
}[];
|
|
30
|
-
readonly nextCursor: string | null;
|
|
31
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
6
|
+
} | undefined) => import("./internal/operation").OperationResult<"operationsList">) & {
|
|
32
7
|
readonly pages: (input?: {
|
|
33
8
|
readonly limit?: string | null | undefined;
|
|
34
9
|
readonly cursor?: string | null | undefined;
|
|
@@ -91,63 +66,7 @@ export declare const list: ((input?: {
|
|
|
91
66
|
};
|
|
92
67
|
export declare const get: (input: {
|
|
93
68
|
readonly id: string;
|
|
94
|
-
}) => import("
|
|
95
|
-
readonly id: string & import("effect/Brand").Brand<"OperationId">;
|
|
96
|
-
readonly organizationId: string;
|
|
97
|
-
readonly kind: "email-domain-provisioning" | "organization-deletion";
|
|
98
|
-
readonly subject: {
|
|
99
|
-
readonly type: string;
|
|
100
|
-
readonly id: string;
|
|
101
|
-
};
|
|
102
|
-
readonly actor: {
|
|
103
|
-
readonly type: "api-key" | "system" | "user";
|
|
104
|
-
readonly id: string;
|
|
105
|
-
};
|
|
106
|
-
readonly status: "failed" | "pending" | "running" | "succeeded";
|
|
107
|
-
readonly phase: "accepted" | "completed" | "deleting" | "dispatching" | "finalizing" | "provisioning";
|
|
108
|
-
readonly error: {
|
|
109
|
-
readonly code: "capacity-unavailable" | "conflict" | "internal" | "rejected" | "timed-out" | "unavailable" | "validation-failed";
|
|
110
|
-
readonly message: string;
|
|
111
|
-
} | null;
|
|
112
|
-
readonly createdAt: string;
|
|
113
|
-
readonly updatedAt: string;
|
|
114
|
-
readonly startedAt: string | null;
|
|
115
|
-
readonly completedAt: string | null;
|
|
116
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
69
|
+
}) => import("./internal/operation").OperationResult<"operationsGet">;
|
|
117
70
|
export declare const retry: (input: {
|
|
118
71
|
readonly id: string;
|
|
119
|
-
}) => import("
|
|
120
|
-
readonly operation: {
|
|
121
|
-
readonly id: string & import("effect/Brand").Brand<"OperationId">;
|
|
122
|
-
readonly organizationId: string;
|
|
123
|
-
readonly kind: "email-domain-provisioning" | "organization-deletion";
|
|
124
|
-
readonly subject: {
|
|
125
|
-
readonly type: string;
|
|
126
|
-
readonly id: string;
|
|
127
|
-
};
|
|
128
|
-
readonly actor: {
|
|
129
|
-
readonly type: "api-key" | "system" | "user";
|
|
130
|
-
readonly id: string;
|
|
131
|
-
};
|
|
132
|
-
readonly status: "failed" | "pending" | "running" | "succeeded";
|
|
133
|
-
readonly phase: "accepted" | "completed" | "deleting" | "dispatching" | "finalizing" | "provisioning";
|
|
134
|
-
readonly error: {
|
|
135
|
-
readonly code: "capacity-unavailable" | "conflict" | "internal" | "rejected" | "timed-out" | "unavailable" | "validation-failed";
|
|
136
|
-
readonly message: string;
|
|
137
|
-
} | null;
|
|
138
|
-
readonly createdAt: string;
|
|
139
|
-
readonly updatedAt: string;
|
|
140
|
-
readonly startedAt: string | null;
|
|
141
|
-
readonly completedAt: string | null;
|
|
142
|
-
};
|
|
143
|
-
readonly links: {
|
|
144
|
-
readonly self: string;
|
|
145
|
-
readonly resource: {
|
|
146
|
-
readonly resource: {
|
|
147
|
-
readonly type: string;
|
|
148
|
-
readonly id: string;
|
|
149
|
-
};
|
|
150
|
-
readonly href: string;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
72
|
+
}) => import("./internal/operation").OperationResult<"operationsRetry">;
|