@sayedhfatimi/convex-email 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +709 -2
- package/dist/adapters/index.d.ts +2 -0
- package/dist/adapters/index.d.ts.map +1 -0
- package/dist/adapters/index.js +7 -0
- package/dist/adapters/index.js.map +1 -0
- package/dist/adapters/registry.d.ts +9 -0
- package/dist/adapters/registry.d.ts.map +1 -0
- package/dist/adapters/registry.js +20 -0
- package/dist/adapters/registry.js.map +1 -0
- package/dist/adapters/resend/inbound.d.ts +5 -0
- package/dist/adapters/resend/inbound.d.ts.map +1 -0
- package/dist/adapters/resend/inbound.js +207 -0
- package/dist/adapters/resend/inbound.js.map +1 -0
- package/dist/adapters/resend/index.d.ts +4 -0
- package/dist/adapters/resend/index.d.ts.map +1 -0
- package/dist/adapters/resend/index.js +27 -0
- package/dist/adapters/resend/index.js.map +1 -0
- package/dist/adapters/resend/parse.d.ts +3 -0
- package/dist/adapters/resend/parse.d.ts.map +1 -0
- package/dist/adapters/resend/parse.js +94 -0
- package/dist/adapters/resend/parse.js.map +1 -0
- package/dist/adapters/resend/send.d.ts +15 -0
- package/dist/adapters/resend/send.d.ts.map +1 -0
- package/dist/adapters/resend/send.js +117 -0
- package/dist/adapters/resend/send.js.map +1 -0
- package/dist/adapters/resend/webhook.d.ts +6 -0
- package/dist/adapters/resend/webhook.d.ts.map +1 -0
- package/dist/adapters/resend/webhook.js +66 -0
- package/dist/adapters/resend/webhook.js.map +1 -0
- package/dist/adapters/ses/inbound.d.ts +3 -0
- package/dist/adapters/ses/inbound.d.ts.map +1 -0
- package/dist/adapters/ses/inbound.js +52 -0
- package/dist/adapters/ses/inbound.js.map +1 -0
- package/dist/adapters/ses/index.d.ts +4 -0
- package/dist/adapters/ses/index.d.ts.map +1 -0
- package/dist/adapters/ses/index.js +28 -0
- package/dist/adapters/ses/index.js.map +1 -0
- package/dist/adapters/ses/parse.d.ts +7 -0
- package/dist/adapters/ses/parse.d.ts.map +1 -0
- package/dist/adapters/ses/parse.js +209 -0
- package/dist/adapters/ses/parse.js.map +1 -0
- package/dist/adapters/ses/send.d.ts +10 -0
- package/dist/adapters/ses/send.d.ts.map +1 -0
- package/dist/adapters/ses/send.js +179 -0
- package/dist/adapters/ses/send.js.map +1 -0
- package/dist/adapters/ses/sigv4.d.ts +19 -0
- package/dist/adapters/ses/sigv4.d.ts.map +1 -0
- package/dist/adapters/ses/sigv4.js +50 -0
- package/dist/adapters/ses/sigv4.js.map +1 -0
- package/dist/adapters/ses/sns.d.ts +23 -0
- package/dist/adapters/ses/sns.d.ts.map +1 -0
- package/dist/adapters/ses/sns.js +281 -0
- package/dist/adapters/ses/sns.js.map +1 -0
- package/dist/adapters/types.d.ts +11 -0
- package/dist/adapters/types.d.ts.map +1 -0
- package/dist/adapters/types.js +2 -0
- package/dist/adapters/types.js.map +1 -0
- package/dist/client/index.d.ts +214 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +304 -0
- package/dist/client/index.js.map +1 -0
- package/dist/component/_generated/api.d.ts +62 -0
- package/dist/component/_generated/api.d.ts.map +1 -0
- package/dist/component/_generated/api.js +31 -0
- package/dist/component/_generated/api.js.map +1 -0
- package/dist/component/_generated/component.d.ts +345 -0
- package/dist/component/_generated/component.d.ts.map +1 -0
- package/dist/component/_generated/component.js +11 -0
- package/dist/component/_generated/component.js.map +1 -0
- package/dist/component/_generated/dataModel.d.ts +46 -0
- package/dist/component/_generated/dataModel.d.ts.map +1 -0
- package/dist/component/_generated/dataModel.js +11 -0
- package/dist/component/_generated/dataModel.js.map +1 -0
- package/dist/component/_generated/server.d.ts +133 -0
- package/dist/component/_generated/server.d.ts.map +1 -0
- package/dist/component/_generated/server.js +80 -0
- package/dist/component/_generated/server.js.map +1 -0
- package/dist/component/attachments.d.ts +21 -0
- package/dist/component/attachments.d.ts.map +1 -0
- package/dist/component/attachments.js +66 -0
- package/dist/component/attachments.js.map +1 -0
- package/dist/component/cleanup.d.ts +15 -0
- package/dist/component/cleanup.d.ts.map +1 -0
- package/dist/component/cleanup.js +152 -0
- package/dist/component/cleanup.js.map +1 -0
- package/dist/component/config.d.ts +34 -0
- package/dist/component/config.d.ts.map +1 -0
- package/dist/component/config.js +33 -0
- package/dist/component/config.js.map +1 -0
- package/dist/component/convex.config.d.ts +3 -0
- package/dist/component/convex.config.d.ts.map +1 -0
- package/dist/component/convex.config.js +8 -0
- package/dist/component/convex.config.js.map +1 -0
- package/dist/component/credentials.d.ts +19 -0
- package/dist/component/credentials.d.ts.map +1 -0
- package/dist/component/credentials.js +45 -0
- package/dist/component/credentials.js.map +1 -0
- package/dist/component/deliver.d.ts +58 -0
- package/dist/component/deliver.d.ts.map +1 -0
- package/dist/component/deliver.js +328 -0
- package/dist/component/deliver.js.map +1 -0
- package/dist/component/events.d.ts +15 -0
- package/dist/component/events.d.ts.map +1 -0
- package/dist/component/events.js +141 -0
- package/dist/component/events.js.map +1 -0
- package/dist/component/inbound.d.ts +354 -0
- package/dist/component/inbound.d.ts.map +1 -0
- package/dist/component/inbound.js +933 -0
- package/dist/component/inbound.js.map +1 -0
- package/dist/component/queries.d.ts +76 -0
- package/dist/component/queries.d.ts.map +1 -0
- package/dist/component/queries.js +175 -0
- package/dist/component/queries.js.map +1 -0
- package/dist/component/schema.d.ts +473 -0
- package/dist/component/schema.d.ts.map +1 -0
- package/dist/component/schema.js +185 -0
- package/dist/component/schema.js.map +1 -0
- package/dist/component/send.d.ts +112 -0
- package/dist/component/send.d.ts.map +1 -0
- package/dist/component/send.js +393 -0
- package/dist/component/send.js.map +1 -0
- package/dist/component/status.d.ts +2 -0
- package/dist/component/status.d.ts.map +1 -0
- package/dist/component/status.js +8 -0
- package/dist/component/status.js.map +1 -0
- package/dist/component/suppression.d.ts +36 -0
- package/dist/component/suppression.d.ts.map +1 -0
- package/dist/component/suppression.js +89 -0
- package/dist/component/suppression.js.map +1 -0
- package/dist/component/unsubscribe.d.ts +58 -0
- package/dist/component/unsubscribe.d.ts.map +1 -0
- package/dist/component/unsubscribe.js +129 -0
- package/dist/component/unsubscribe.js.map +1 -0
- package/dist/component/webhooks.d.ts +36 -0
- package/dist/component/webhooks.d.ts.map +1 -0
- package/dist/component/webhooks.js +71 -0
- package/dist/component/webhooks.js.map +1 -0
- package/dist/shared/address.d.ts +9 -0
- package/dist/shared/address.d.ts.map +1 -0
- package/dist/shared/address.js +76 -0
- package/dist/shared/address.js.map +1 -0
- package/dist/shared/authResults.d.ts +15 -0
- package/dist/shared/authResults.d.ts.map +1 -0
- package/dist/shared/authResults.js +86 -0
- package/dist/shared/authResults.js.map +1 -0
- package/dist/shared/htmlToText.d.ts +13 -0
- package/dist/shared/htmlToText.d.ts.map +1 -0
- package/dist/shared/htmlToText.js +221 -0
- package/dist/shared/htmlToText.js.map +1 -0
- package/dist/shared/mime.d.ts +4 -0
- package/dist/shared/mime.d.ts.map +1 -0
- package/dist/shared/mime.js +63 -0
- package/dist/shared/mime.js.map +1 -0
- package/dist/shared/readCapped.d.ts +7 -0
- package/dist/shared/readCapped.d.ts.map +1 -0
- package/dist/shared/readCapped.js +38 -0
- package/dist/shared/readCapped.js.map +1 -0
- package/dist/shared/sanitize.d.ts +10 -0
- package/dist/shared/sanitize.d.ts.map +1 -0
- package/dist/shared/sanitize.js +68 -0
- package/dist/shared/sanitize.js.map +1 -0
- package/dist/shared/threading.d.ts +6 -0
- package/dist/shared/threading.d.ts.map +1 -0
- package/dist/shared/threading.js +23 -0
- package/dist/shared/threading.js.map +1 -0
- package/dist/shared/types.d.ts +260 -0
- package/dist/shared/types.d.ts.map +1 -0
- package/dist/shared/types.js +2 -0
- package/dist/shared/types.js.map +1 -0
- package/dist/shared/unsubToken.d.ts +15 -0
- package/dist/shared/unsubToken.d.ts.map +1 -0
- package/dist/shared/unsubToken.js +83 -0
- package/dist/shared/unsubToken.js.map +1 -0
- package/dist/shared/validators.d.ts +760 -0
- package/dist/shared/validators.d.ts.map +1 -0
- package/dist/shared/validators.js +200 -0
- package/dist/shared/validators.js.map +1 -0
- package/package.json +88 -4
- package/src/adapters/index.ts +8 -0
- package/src/adapters/registry.ts +28 -0
- package/src/adapters/resend/inbound.ts +245 -0
- package/src/adapters/resend/index.ts +29 -0
- package/src/adapters/resend/parse.ts +118 -0
- package/src/adapters/resend/send.ts +125 -0
- package/src/adapters/resend/webhook.ts +77 -0
- package/src/adapters/ses/inbound.ts +63 -0
- package/src/adapters/ses/index.ts +30 -0
- package/src/adapters/ses/parse.ts +236 -0
- package/src/adapters/ses/send.ts +206 -0
- package/src/adapters/ses/sigv4.ts +56 -0
- package/src/adapters/ses/sns.ts +321 -0
- package/src/adapters/types.ts +27 -0
- package/src/client/index.ts +549 -0
- package/src/component/_generated/api.ts +78 -0
- package/src/component/_generated/component.ts +475 -0
- package/src/component/_generated/dataModel.ts +60 -0
- package/src/component/_generated/server.ts +169 -0
- package/src/component/attachments.ts +69 -0
- package/src/component/cleanup.ts +173 -0
- package/src/component/config.ts +52 -0
- package/src/component/convex.config.ts +9 -0
- package/src/component/credentials.ts +63 -0
- package/src/component/deliver.ts +380 -0
- package/src/component/events.ts +179 -0
- package/src/component/inbound.ts +1107 -0
- package/src/component/queries.ts +203 -0
- package/src/component/schema.ts +222 -0
- package/src/component/send.ts +467 -0
- package/src/component/status.ts +8 -0
- package/src/component/suppression.ts +114 -0
- package/src/component/unsubscribe.ts +154 -0
- package/src/component/webhooks.ts +84 -0
- package/src/shared/address.ts +75 -0
- package/src/shared/authResults.ts +94 -0
- package/src/shared/htmlToText.ts +218 -0
- package/src/shared/mime.ts +80 -0
- package/src/shared/readCapped.ts +39 -0
- package/src/shared/sanitize.ts +73 -0
- package/src/shared/threading.ts +26 -0
- package/src/shared/types.ts +254 -0
- package/src/shared/unsubToken.ts +95 -0
- package/src/shared/validators.ts +282 -0
- package/src/test.ts +25 -0
|
@@ -0,0 +1,760 @@
|
|
|
1
|
+
import { type Validator } from "convex/values";
|
|
2
|
+
export declare const vProviderName: import("convex/values").VUnion<"resend" | "ses", [import("convex/values").VLiteral<"resend", "required">, import("convex/values").VLiteral<"ses", "required">], "required", never>;
|
|
3
|
+
export declare const vStream: import("convex/values").VUnion<"bulk" | "transactional", [import("convex/values").VLiteral<"transactional", "required">, import("convex/values").VLiteral<"bulk", "required">], "required", never>;
|
|
4
|
+
export declare const vCredentialPurpose: import("convex/values").VUnion<"fetchInbound" | "send" | "unsubscribe" | "verifyWebhook", [import("convex/values").VLiteral<"send", "required">, import("convex/values").VLiteral<"fetchInbound", "required">, import("convex/values").VLiteral<"verifyWebhook", "required">, import("convex/values").VLiteral<"unsubscribe", "required">], "required", never>;
|
|
5
|
+
export declare const vEventType: import("convex/values").VUnion<"bounced" | "complained" | "delivered" | "delivery_delayed" | "failed" | "rejected" | "sent", [import("convex/values").VLiteral<"sent", "required">, import("convex/values").VLiteral<"delivered", "required">, import("convex/values").VLiteral<"delivery_delayed", "required">, import("convex/values").VLiteral<"bounced", "required">, import("convex/values").VLiteral<"complained", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"rejected", "required">], "required", never>;
|
|
6
|
+
export declare const vVerdict: import("convex/values").VUnion<"fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror", [import("convex/values").VLiteral<"pass", "required">, import("convex/values").VLiteral<"fail", "required">, import("convex/values").VLiteral<"softfail", "required">, import("convex/values").VLiteral<"neutral", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"temperror", "required">, import("convex/values").VLiteral<"permerror", "required">], "required", never>;
|
|
7
|
+
export declare const vDisposition: import("convex/values").VUnion<"attachment" | "inline", [import("convex/values").VLiteral<"attachment", "required">, import("convex/values").VLiteral<"inline", "required">], "required", never>;
|
|
8
|
+
export declare const vResendCredentials: import("convex/values").VObject<{
|
|
9
|
+
apiKey: string;
|
|
10
|
+
provider: "resend";
|
|
11
|
+
webhookSecret: string;
|
|
12
|
+
}, {
|
|
13
|
+
provider: import("convex/values").VLiteral<"resend", "required">;
|
|
14
|
+
apiKey: import("convex/values").VString<string, "required">;
|
|
15
|
+
webhookSecret: import("convex/values").VString<string, "required">;
|
|
16
|
+
}, "required", "apiKey" | "provider" | "webhookSecret">;
|
|
17
|
+
export declare const vSesCredentials: import("convex/values").VObject<{
|
|
18
|
+
accessKeyId: string;
|
|
19
|
+
configurationSets: {
|
|
20
|
+
bulk?: string | undefined;
|
|
21
|
+
transactional: string;
|
|
22
|
+
};
|
|
23
|
+
inboundBuckets?: string[] | undefined;
|
|
24
|
+
provider: "ses";
|
|
25
|
+
region: string;
|
|
26
|
+
secretAccessKey: string;
|
|
27
|
+
sessionToken?: string | undefined;
|
|
28
|
+
trustedTopicArns: string[];
|
|
29
|
+
}, {
|
|
30
|
+
provider: import("convex/values").VLiteral<"ses", "required">;
|
|
31
|
+
region: import("convex/values").VString<string, "required">;
|
|
32
|
+
accessKeyId: import("convex/values").VString<string, "required">;
|
|
33
|
+
secretAccessKey: import("convex/values").VString<string, "required">;
|
|
34
|
+
sessionToken: import("convex/values").VString<string | undefined, "optional">;
|
|
35
|
+
configurationSets: import("convex/values").VObject<{
|
|
36
|
+
bulk?: string | undefined;
|
|
37
|
+
transactional: string;
|
|
38
|
+
}, {
|
|
39
|
+
transactional: import("convex/values").VString<string, "required">;
|
|
40
|
+
bulk: import("convex/values").VString<string | undefined, "optional">;
|
|
41
|
+
}, "required", "bulk" | "transactional">;
|
|
42
|
+
trustedTopicArns: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
43
|
+
inboundBuckets: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
44
|
+
}, "required", "accessKeyId" | "configurationSets" | "configurationSets.bulk" | "configurationSets.transactional" | "inboundBuckets" | "provider" | "region" | "secretAccessKey" | "sessionToken" | "trustedTopicArns">;
|
|
45
|
+
export declare const vUnsubscribeCredentials: import("convex/values").VObject<{
|
|
46
|
+
unsubscribeSecret: string;
|
|
47
|
+
}, {
|
|
48
|
+
unsubscribeSecret: import("convex/values").VString<string, "required">;
|
|
49
|
+
}, "required", "unsubscribeSecret">;
|
|
50
|
+
export declare const vCapabilities: import("convex/values").VObject<{
|
|
51
|
+
events: ("bounced" | "complained" | "delivered" | "delivery_delayed" | "failed" | "rejected" | "sent")[];
|
|
52
|
+
inbound: boolean;
|
|
53
|
+
listManagement: boolean;
|
|
54
|
+
maxAttachmentBytes: number;
|
|
55
|
+
maxMessageBytes: number;
|
|
56
|
+
tenants: boolean;
|
|
57
|
+
}, {
|
|
58
|
+
tenants: import("convex/values").VBoolean<boolean, "required">;
|
|
59
|
+
listManagement: import("convex/values").VBoolean<boolean, "required">;
|
|
60
|
+
inbound: import("convex/values").VBoolean<boolean, "required">;
|
|
61
|
+
maxMessageBytes: import("convex/values").VFloat64<number, "required">;
|
|
62
|
+
maxAttachmentBytes: import("convex/values").VFloat64<number, "required">;
|
|
63
|
+
events: import("convex/values").VArray<("bounced" | "complained" | "delivered" | "delivery_delayed" | "failed" | "rejected" | "sent")[], import("convex/values").VUnion<"bounced" | "complained" | "delivered" | "delivery_delayed" | "failed" | "rejected" | "sent", [import("convex/values").VLiteral<"sent", "required">, import("convex/values").VLiteral<"delivered", "required">, import("convex/values").VLiteral<"delivery_delayed", "required">, import("convex/values").VLiteral<"bounced", "required">, import("convex/values").VLiteral<"complained", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"rejected", "required">], "required", never>, "required">;
|
|
64
|
+
}, "required", "events" | "inbound" | "listManagement" | "maxAttachmentBytes" | "maxMessageBytes" | "tenants">;
|
|
65
|
+
export declare const vNormalizedEvent: import("convex/values").VObject<{
|
|
66
|
+
at: number;
|
|
67
|
+
bounceType?: "hard" | "soft" | "undetermined" | undefined;
|
|
68
|
+
detail?: string | undefined;
|
|
69
|
+
providerEventId: string;
|
|
70
|
+
providerId: string;
|
|
71
|
+
recipients: string[];
|
|
72
|
+
rfcMessageId?: string | undefined;
|
|
73
|
+
type: "bounced" | "complained" | "delivered" | "delivery_delayed" | "failed" | "rejected" | "sent";
|
|
74
|
+
}, {
|
|
75
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
76
|
+
providerEventId: import("convex/values").VString<string, "required">;
|
|
77
|
+
type: import("convex/values").VUnion<"bounced" | "complained" | "delivered" | "delivery_delayed" | "failed" | "rejected" | "sent", [import("convex/values").VLiteral<"sent", "required">, import("convex/values").VLiteral<"delivered", "required">, import("convex/values").VLiteral<"delivery_delayed", "required">, import("convex/values").VLiteral<"bounced", "required">, import("convex/values").VLiteral<"complained", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"rejected", "required">], "required", never>;
|
|
78
|
+
bounceType: import("convex/values").VUnion<"hard" | "soft" | "undetermined" | undefined, [import("convex/values").VLiteral<"hard", "required">, import("convex/values").VLiteral<"soft", "required">, import("convex/values").VLiteral<"undetermined", "required">], "optional", never>;
|
|
79
|
+
at: import("convex/values").VFloat64<number, "required">;
|
|
80
|
+
recipients: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
81
|
+
detail: import("convex/values").VString<string | undefined, "optional">;
|
|
82
|
+
rfcMessageId: import("convex/values").VString<string | undefined, "optional">;
|
|
83
|
+
}, "required", "at" | "bounceType" | "detail" | "providerEventId" | "providerId" | "recipients" | "rfcMessageId" | "type">;
|
|
84
|
+
export declare const vEventForApp: import("convex/values").VObject<{
|
|
85
|
+
at: number;
|
|
86
|
+
bounceType?: "hard" | "soft" | "undetermined" | undefined;
|
|
87
|
+
messageId: string;
|
|
88
|
+
tags: Record<string, string>;
|
|
89
|
+
type: "bounced" | "complained" | "delivered" | "delivery_delayed" | "failed" | "rejected" | "sent";
|
|
90
|
+
}, {
|
|
91
|
+
messageId: import("convex/values").VString<string, "required">;
|
|
92
|
+
type: import("convex/values").VUnion<"bounced" | "complained" | "delivered" | "delivery_delayed" | "failed" | "rejected" | "sent", [import("convex/values").VLiteral<"sent", "required">, import("convex/values").VLiteral<"delivered", "required">, import("convex/values").VLiteral<"delivery_delayed", "required">, import("convex/values").VLiteral<"bounced", "required">, import("convex/values").VLiteral<"complained", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"rejected", "required">], "required", never>;
|
|
93
|
+
bounceType: import("convex/values").VUnion<"hard" | "soft" | "undetermined" | undefined, [import("convex/values").VLiteral<"hard", "required">, import("convex/values").VLiteral<"soft", "required">, import("convex/values").VLiteral<"undetermined", "required">], "optional", never>;
|
|
94
|
+
at: import("convex/values").VFloat64<number, "required">;
|
|
95
|
+
tags: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
|
|
96
|
+
}, "required", "at" | "bounceType" | "messageId" | "tags" | "type" | `tags.${string}`>;
|
|
97
|
+
export declare const vOutboundPayload: import("convex/values").VObject<{
|
|
98
|
+
attachments: {
|
|
99
|
+
content: ArrayBuffer;
|
|
100
|
+
contentId?: string | undefined;
|
|
101
|
+
contentType: string;
|
|
102
|
+
disposition: "attachment" | "inline";
|
|
103
|
+
filename: string;
|
|
104
|
+
}[];
|
|
105
|
+
bcc: string[];
|
|
106
|
+
cc: string[];
|
|
107
|
+
from: string;
|
|
108
|
+
headers: {
|
|
109
|
+
name: string;
|
|
110
|
+
value: string;
|
|
111
|
+
}[];
|
|
112
|
+
html?: string | undefined;
|
|
113
|
+
replyTo: string[];
|
|
114
|
+
stream: "bulk" | "transactional";
|
|
115
|
+
subject: string;
|
|
116
|
+
tags: Record<string, string>;
|
|
117
|
+
tenant?: string | undefined;
|
|
118
|
+
text?: string | undefined;
|
|
119
|
+
to: string[];
|
|
120
|
+
}, {
|
|
121
|
+
from: import("convex/values").VString<string, "required">;
|
|
122
|
+
to: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
123
|
+
cc: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
124
|
+
bcc: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
125
|
+
replyTo: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
126
|
+
subject: import("convex/values").VString<string, "required">;
|
|
127
|
+
html: import("convex/values").VString<string | undefined, "optional">;
|
|
128
|
+
text: import("convex/values").VString<string | undefined, "optional">;
|
|
129
|
+
headers: import("convex/values").VArray<{
|
|
130
|
+
name: string;
|
|
131
|
+
value: string;
|
|
132
|
+
}[], import("convex/values").VObject<{
|
|
133
|
+
name: string;
|
|
134
|
+
value: string;
|
|
135
|
+
}, {
|
|
136
|
+
name: import("convex/values").VString<string, "required">;
|
|
137
|
+
value: import("convex/values").VString<string, "required">;
|
|
138
|
+
}, "required", "name" | "value">, "required">;
|
|
139
|
+
attachments: import("convex/values").VArray<{
|
|
140
|
+
content: ArrayBuffer;
|
|
141
|
+
contentId?: string | undefined;
|
|
142
|
+
contentType: string;
|
|
143
|
+
disposition: "attachment" | "inline";
|
|
144
|
+
filename: string;
|
|
145
|
+
}[], import("convex/values").VObject<{
|
|
146
|
+
content: ArrayBuffer;
|
|
147
|
+
contentId?: string | undefined;
|
|
148
|
+
contentType: string;
|
|
149
|
+
disposition: "attachment" | "inline";
|
|
150
|
+
filename: string;
|
|
151
|
+
}, {
|
|
152
|
+
filename: import("convex/values").VString<string, "required">;
|
|
153
|
+
contentType: import("convex/values").VString<string, "required">;
|
|
154
|
+
content: import("convex/values").VBytes<ArrayBuffer, "required">;
|
|
155
|
+
contentId: import("convex/values").VString<string | undefined, "optional">;
|
|
156
|
+
disposition: import("convex/values").VUnion<"attachment" | "inline", [import("convex/values").VLiteral<"attachment", "required">, import("convex/values").VLiteral<"inline", "required">], "required", never>;
|
|
157
|
+
}, "required", "content" | "contentId" | "contentType" | "disposition" | "filename">, "required">;
|
|
158
|
+
tenant: import("convex/values").VString<string | undefined, "optional">;
|
|
159
|
+
stream: import("convex/values").VUnion<"bulk" | "transactional", [import("convex/values").VLiteral<"transactional", "required">, import("convex/values").VLiteral<"bulk", "required">], "required", never>;
|
|
160
|
+
tags: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
|
|
161
|
+
}, "required", "attachments" | "bcc" | "cc" | "from" | "headers" | "html" | "replyTo" | "stream" | "subject" | "tags" | "tenant" | "text" | "to" | `tags.${string}`>;
|
|
162
|
+
export declare const vInboundNotification: import("convex/values").VObject<{
|
|
163
|
+
from?: string | undefined;
|
|
164
|
+
location: {
|
|
165
|
+
emailId: string;
|
|
166
|
+
kind: "resend";
|
|
167
|
+
} | {
|
|
168
|
+
bucket: string;
|
|
169
|
+
key: string;
|
|
170
|
+
kind: "s3";
|
|
171
|
+
};
|
|
172
|
+
providerId: string;
|
|
173
|
+
recipients: string[];
|
|
174
|
+
verdicts?: {
|
|
175
|
+
dkim?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
176
|
+
dmarc?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
177
|
+
spf?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
178
|
+
} | undefined;
|
|
179
|
+
}, {
|
|
180
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
181
|
+
recipients: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
182
|
+
from: import("convex/values").VString<string | undefined, "optional">;
|
|
183
|
+
location: import("convex/values").VUnion<{
|
|
184
|
+
emailId: string;
|
|
185
|
+
kind: "resend";
|
|
186
|
+
} | {
|
|
187
|
+
bucket: string;
|
|
188
|
+
key: string;
|
|
189
|
+
kind: "s3";
|
|
190
|
+
}, [import("convex/values").VObject<{
|
|
191
|
+
emailId: string;
|
|
192
|
+
kind: "resend";
|
|
193
|
+
}, {
|
|
194
|
+
kind: import("convex/values").VLiteral<"resend", "required">;
|
|
195
|
+
emailId: import("convex/values").VString<string, "required">;
|
|
196
|
+
}, "required", "emailId" | "kind">, import("convex/values").VObject<{
|
|
197
|
+
bucket: string;
|
|
198
|
+
key: string;
|
|
199
|
+
kind: "s3";
|
|
200
|
+
}, {
|
|
201
|
+
kind: import("convex/values").VLiteral<"s3", "required">;
|
|
202
|
+
bucket: import("convex/values").VString<string, "required">;
|
|
203
|
+
key: import("convex/values").VString<string, "required">;
|
|
204
|
+
}, "required", "bucket" | "key" | "kind">], "required", "bucket" | "emailId" | "key" | "kind">;
|
|
205
|
+
verdicts: import("convex/values").VObject<{
|
|
206
|
+
dkim?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
207
|
+
dmarc?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
208
|
+
spf?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
209
|
+
} | undefined, {
|
|
210
|
+
spf: import("convex/values").VUnion<"fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined, [import("convex/values").VLiteral<"pass", "required">, import("convex/values").VLiteral<"fail", "required">, import("convex/values").VLiteral<"softfail", "required">, import("convex/values").VLiteral<"neutral", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"temperror", "required">, import("convex/values").VLiteral<"permerror", "required">], "optional", never>;
|
|
211
|
+
dkim: import("convex/values").VUnion<"fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined, [import("convex/values").VLiteral<"pass", "required">, import("convex/values").VLiteral<"fail", "required">, import("convex/values").VLiteral<"softfail", "required">, import("convex/values").VLiteral<"neutral", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"temperror", "required">, import("convex/values").VLiteral<"permerror", "required">], "optional", never>;
|
|
212
|
+
dmarc: import("convex/values").VUnion<"fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined, [import("convex/values").VLiteral<"pass", "required">, import("convex/values").VLiteral<"fail", "required">, import("convex/values").VLiteral<"softfail", "required">, import("convex/values").VLiteral<"neutral", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"temperror", "required">, import("convex/values").VLiteral<"permerror", "required">], "optional", never>;
|
|
213
|
+
}, "optional", "dkim" | "dmarc" | "spf">;
|
|
214
|
+
}, "required", "from" | "location" | "location.bucket" | "location.emailId" | "location.key" | "location.kind" | "providerId" | "recipients" | "verdicts" | "verdicts.dkim" | "verdicts.dmarc" | "verdicts.spf">;
|
|
215
|
+
export declare const vAddr: import("convex/values").VObject<{
|
|
216
|
+
address: string;
|
|
217
|
+
name?: string | undefined;
|
|
218
|
+
}, {
|
|
219
|
+
address: import("convex/values").VString<string, "required">;
|
|
220
|
+
name: import("convex/values").VString<string | undefined, "optional">;
|
|
221
|
+
}, "required", "address" | "name">;
|
|
222
|
+
export declare const vVerdicts: import("convex/values").VObject<{
|
|
223
|
+
dkim?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
224
|
+
dmarc?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
225
|
+
spf?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
226
|
+
}, {
|
|
227
|
+
spf: import("convex/values").VUnion<"fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined, [import("convex/values").VLiteral<"pass", "required">, import("convex/values").VLiteral<"fail", "required">, import("convex/values").VLiteral<"softfail", "required">, import("convex/values").VLiteral<"neutral", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"temperror", "required">, import("convex/values").VLiteral<"permerror", "required">], "optional", never>;
|
|
228
|
+
dkim: import("convex/values").VUnion<"fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined, [import("convex/values").VLiteral<"pass", "required">, import("convex/values").VLiteral<"fail", "required">, import("convex/values").VLiteral<"softfail", "required">, import("convex/values").VLiteral<"neutral", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"temperror", "required">, import("convex/values").VLiteral<"permerror", "required">], "optional", never>;
|
|
229
|
+
dmarc: import("convex/values").VUnion<"fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined, [import("convex/values").VLiteral<"pass", "required">, import("convex/values").VLiteral<"fail", "required">, import("convex/values").VLiteral<"softfail", "required">, import("convex/values").VLiteral<"neutral", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"temperror", "required">, import("convex/values").VLiteral<"permerror", "required">], "optional", never>;
|
|
230
|
+
}, "required", "dkim" | "dmarc" | "spf">;
|
|
231
|
+
export declare const vParsedInbound: import("convex/values").VObject<{
|
|
232
|
+
attachments: {
|
|
233
|
+
content: ArrayBuffer;
|
|
234
|
+
contentId?: string | undefined;
|
|
235
|
+
contentType: string;
|
|
236
|
+
disposition: "attachment" | "inline";
|
|
237
|
+
filename: string;
|
|
238
|
+
size: number;
|
|
239
|
+
}[];
|
|
240
|
+
cc: {
|
|
241
|
+
address: string;
|
|
242
|
+
name?: string | undefined;
|
|
243
|
+
}[];
|
|
244
|
+
date?: number | undefined;
|
|
245
|
+
from: {
|
|
246
|
+
address: string;
|
|
247
|
+
name?: string | undefined;
|
|
248
|
+
};
|
|
249
|
+
headers: {
|
|
250
|
+
name: string;
|
|
251
|
+
value: string;
|
|
252
|
+
}[];
|
|
253
|
+
html?: string | undefined;
|
|
254
|
+
inReplyTo?: string | undefined;
|
|
255
|
+
messageId?: string | undefined;
|
|
256
|
+
references: string[];
|
|
257
|
+
replyTo: {
|
|
258
|
+
address: string;
|
|
259
|
+
name?: string | undefined;
|
|
260
|
+
}[];
|
|
261
|
+
subject: string;
|
|
262
|
+
text?: string | undefined;
|
|
263
|
+
to: {
|
|
264
|
+
address: string;
|
|
265
|
+
name?: string | undefined;
|
|
266
|
+
}[];
|
|
267
|
+
truncated?: boolean | undefined;
|
|
268
|
+
verdicts?: {
|
|
269
|
+
dkim?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
270
|
+
dmarc?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
271
|
+
spf?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
272
|
+
} | undefined;
|
|
273
|
+
}, {
|
|
274
|
+
messageId: import("convex/values").VString<string | undefined, "optional">;
|
|
275
|
+
inReplyTo: import("convex/values").VString<string | undefined, "optional">;
|
|
276
|
+
references: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
277
|
+
from: import("convex/values").VObject<{
|
|
278
|
+
address: string;
|
|
279
|
+
name?: string | undefined;
|
|
280
|
+
}, {
|
|
281
|
+
address: import("convex/values").VString<string, "required">;
|
|
282
|
+
name: import("convex/values").VString<string | undefined, "optional">;
|
|
283
|
+
}, "required", "address" | "name">;
|
|
284
|
+
to: import("convex/values").VArray<{
|
|
285
|
+
address: string;
|
|
286
|
+
name?: string | undefined;
|
|
287
|
+
}[], import("convex/values").VObject<{
|
|
288
|
+
address: string;
|
|
289
|
+
name?: string | undefined;
|
|
290
|
+
}, {
|
|
291
|
+
address: import("convex/values").VString<string, "required">;
|
|
292
|
+
name: import("convex/values").VString<string | undefined, "optional">;
|
|
293
|
+
}, "required", "address" | "name">, "required">;
|
|
294
|
+
cc: import("convex/values").VArray<{
|
|
295
|
+
address: string;
|
|
296
|
+
name?: string | undefined;
|
|
297
|
+
}[], import("convex/values").VObject<{
|
|
298
|
+
address: string;
|
|
299
|
+
name?: string | undefined;
|
|
300
|
+
}, {
|
|
301
|
+
address: import("convex/values").VString<string, "required">;
|
|
302
|
+
name: import("convex/values").VString<string | undefined, "optional">;
|
|
303
|
+
}, "required", "address" | "name">, "required">;
|
|
304
|
+
replyTo: import("convex/values").VArray<{
|
|
305
|
+
address: string;
|
|
306
|
+
name?: string | undefined;
|
|
307
|
+
}[], import("convex/values").VObject<{
|
|
308
|
+
address: string;
|
|
309
|
+
name?: string | undefined;
|
|
310
|
+
}, {
|
|
311
|
+
address: import("convex/values").VString<string, "required">;
|
|
312
|
+
name: import("convex/values").VString<string | undefined, "optional">;
|
|
313
|
+
}, "required", "address" | "name">, "required">;
|
|
314
|
+
subject: import("convex/values").VString<string, "required">;
|
|
315
|
+
text: import("convex/values").VString<string | undefined, "optional">;
|
|
316
|
+
html: import("convex/values").VString<string | undefined, "optional">;
|
|
317
|
+
headers: import("convex/values").VArray<{
|
|
318
|
+
name: string;
|
|
319
|
+
value: string;
|
|
320
|
+
}[], import("convex/values").VObject<{
|
|
321
|
+
name: string;
|
|
322
|
+
value: string;
|
|
323
|
+
}, {
|
|
324
|
+
name: import("convex/values").VString<string, "required">;
|
|
325
|
+
value: import("convex/values").VString<string, "required">;
|
|
326
|
+
}, "required", "name" | "value">, "required">;
|
|
327
|
+
date: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
328
|
+
attachments: import("convex/values").VArray<{
|
|
329
|
+
content: ArrayBuffer;
|
|
330
|
+
contentId?: string | undefined;
|
|
331
|
+
contentType: string;
|
|
332
|
+
disposition: "attachment" | "inline";
|
|
333
|
+
filename: string;
|
|
334
|
+
size: number;
|
|
335
|
+
}[], import("convex/values").VObject<{
|
|
336
|
+
content: ArrayBuffer;
|
|
337
|
+
contentId?: string | undefined;
|
|
338
|
+
contentType: string;
|
|
339
|
+
disposition: "attachment" | "inline";
|
|
340
|
+
filename: string;
|
|
341
|
+
size: number;
|
|
342
|
+
}, {
|
|
343
|
+
filename: import("convex/values").VString<string, "required">;
|
|
344
|
+
contentType: import("convex/values").VString<string, "required">;
|
|
345
|
+
size: import("convex/values").VFloat64<number, "required">;
|
|
346
|
+
contentId: import("convex/values").VString<string | undefined, "optional">;
|
|
347
|
+
disposition: import("convex/values").VUnion<"attachment" | "inline", [import("convex/values").VLiteral<"attachment", "required">, import("convex/values").VLiteral<"inline", "required">], "required", never>;
|
|
348
|
+
content: import("convex/values").VBytes<ArrayBuffer, "required">;
|
|
349
|
+
}, "required", "content" | "contentId" | "contentType" | "disposition" | "filename" | "size">, "required">;
|
|
350
|
+
truncated: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
351
|
+
verdicts: import("convex/values").VObject<{
|
|
352
|
+
dkim?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
353
|
+
dmarc?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
354
|
+
spf?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
355
|
+
} | undefined, {
|
|
356
|
+
spf: import("convex/values").VUnion<"fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined, [import("convex/values").VLiteral<"pass", "required">, import("convex/values").VLiteral<"fail", "required">, import("convex/values").VLiteral<"softfail", "required">, import("convex/values").VLiteral<"neutral", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"temperror", "required">, import("convex/values").VLiteral<"permerror", "required">], "optional", never>;
|
|
357
|
+
dkim: import("convex/values").VUnion<"fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined, [import("convex/values").VLiteral<"pass", "required">, import("convex/values").VLiteral<"fail", "required">, import("convex/values").VLiteral<"softfail", "required">, import("convex/values").VLiteral<"neutral", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"temperror", "required">, import("convex/values").VLiteral<"permerror", "required">], "optional", never>;
|
|
358
|
+
dmarc: import("convex/values").VUnion<"fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined, [import("convex/values").VLiteral<"pass", "required">, import("convex/values").VLiteral<"fail", "required">, import("convex/values").VLiteral<"softfail", "required">, import("convex/values").VLiteral<"neutral", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"temperror", "required">, import("convex/values").VLiteral<"permerror", "required">], "optional", never>;
|
|
359
|
+
}, "optional", "dkim" | "dmarc" | "spf">;
|
|
360
|
+
}, "required", "attachments" | "cc" | "date" | "from" | "from.address" | "from.name" | "headers" | "html" | "inReplyTo" | "messageId" | "references" | "replyTo" | "subject" | "text" | "to" | "truncated" | "verdicts" | "verdicts.dkim" | "verdicts.dmarc" | "verdicts.spf">;
|
|
361
|
+
export declare const vInboundForApp: import("convex/values").VObject<{
|
|
362
|
+
attachments: {
|
|
363
|
+
contentType: string;
|
|
364
|
+
filename: string;
|
|
365
|
+
id: string;
|
|
366
|
+
size: number;
|
|
367
|
+
}[];
|
|
368
|
+
bodyByReference: boolean;
|
|
369
|
+
cc: {
|
|
370
|
+
address: string;
|
|
371
|
+
name?: string | undefined;
|
|
372
|
+
}[];
|
|
373
|
+
from: {
|
|
374
|
+
address: string;
|
|
375
|
+
name?: string | undefined;
|
|
376
|
+
};
|
|
377
|
+
hasRemoteImages: boolean;
|
|
378
|
+
headers: {
|
|
379
|
+
name: string;
|
|
380
|
+
value: string;
|
|
381
|
+
}[];
|
|
382
|
+
html?: string | undefined;
|
|
383
|
+
messageId: string;
|
|
384
|
+
parent?: {
|
|
385
|
+
messageId: string;
|
|
386
|
+
senderWasRecipient: boolean;
|
|
387
|
+
tags: Record<string, string>;
|
|
388
|
+
} | undefined;
|
|
389
|
+
provider: "raw" | "resend" | "ses";
|
|
390
|
+
subject: string;
|
|
391
|
+
tenant?: string | undefined;
|
|
392
|
+
tenantAdopted?: true | undefined;
|
|
393
|
+
text?: string | undefined;
|
|
394
|
+
textFromHtml?: true | undefined;
|
|
395
|
+
threadId: string;
|
|
396
|
+
to: {
|
|
397
|
+
address: string;
|
|
398
|
+
name?: string | undefined;
|
|
399
|
+
}[];
|
|
400
|
+
truncated?: boolean | undefined;
|
|
401
|
+
verdicts: {
|
|
402
|
+
dkim?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
403
|
+
dmarc?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
404
|
+
spf?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
405
|
+
};
|
|
406
|
+
}, {
|
|
407
|
+
messageId: import("convex/values").VString<string, "required">;
|
|
408
|
+
tenant: import("convex/values").VString<string | undefined, "optional">;
|
|
409
|
+
provider: import("convex/values").VUnion<"raw" | "resend" | "ses", [import("convex/values").VUnion<"resend" | "ses", [import("convex/values").VLiteral<"resend", "required">, import("convex/values").VLiteral<"ses", "required">], "required", never>, import("convex/values").VLiteral<"raw", "required">], "required", never>;
|
|
410
|
+
from: import("convex/values").VObject<{
|
|
411
|
+
address: string;
|
|
412
|
+
name?: string | undefined;
|
|
413
|
+
}, {
|
|
414
|
+
address: import("convex/values").VString<string, "required">;
|
|
415
|
+
name: import("convex/values").VString<string | undefined, "optional">;
|
|
416
|
+
}, "required", "address" | "name">;
|
|
417
|
+
to: import("convex/values").VArray<{
|
|
418
|
+
address: string;
|
|
419
|
+
name?: string | undefined;
|
|
420
|
+
}[], import("convex/values").VObject<{
|
|
421
|
+
address: string;
|
|
422
|
+
name?: string | undefined;
|
|
423
|
+
}, {
|
|
424
|
+
address: import("convex/values").VString<string, "required">;
|
|
425
|
+
name: import("convex/values").VString<string | undefined, "optional">;
|
|
426
|
+
}, "required", "address" | "name">, "required">;
|
|
427
|
+
cc: import("convex/values").VArray<{
|
|
428
|
+
address: string;
|
|
429
|
+
name?: string | undefined;
|
|
430
|
+
}[], import("convex/values").VObject<{
|
|
431
|
+
address: string;
|
|
432
|
+
name?: string | undefined;
|
|
433
|
+
}, {
|
|
434
|
+
address: import("convex/values").VString<string, "required">;
|
|
435
|
+
name: import("convex/values").VString<string | undefined, "optional">;
|
|
436
|
+
}, "required", "address" | "name">, "required">;
|
|
437
|
+
subject: import("convex/values").VString<string, "required">;
|
|
438
|
+
text: import("convex/values").VString<string | undefined, "optional">;
|
|
439
|
+
textFromHtml: import("convex/values").VLiteral<true | undefined, "optional">;
|
|
440
|
+
html: import("convex/values").VString<string | undefined, "optional">;
|
|
441
|
+
bodyByReference: import("convex/values").VBoolean<boolean, "required">;
|
|
442
|
+
hasRemoteImages: import("convex/values").VBoolean<boolean, "required">;
|
|
443
|
+
attachments: import("convex/values").VArray<{
|
|
444
|
+
contentType: string;
|
|
445
|
+
filename: string;
|
|
446
|
+
id: string;
|
|
447
|
+
size: number;
|
|
448
|
+
}[], import("convex/values").VObject<{
|
|
449
|
+
contentType: string;
|
|
450
|
+
filename: string;
|
|
451
|
+
id: string;
|
|
452
|
+
size: number;
|
|
453
|
+
}, {
|
|
454
|
+
id: import("convex/values").VString<string, "required">;
|
|
455
|
+
filename: import("convex/values").VString<string, "required">;
|
|
456
|
+
contentType: import("convex/values").VString<string, "required">;
|
|
457
|
+
size: import("convex/values").VFloat64<number, "required">;
|
|
458
|
+
}, "required", "contentType" | "filename" | "id" | "size">, "required">;
|
|
459
|
+
verdicts: import("convex/values").VObject<{
|
|
460
|
+
dkim?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
461
|
+
dmarc?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
462
|
+
spf?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
463
|
+
}, {
|
|
464
|
+
spf: import("convex/values").VUnion<"fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined, [import("convex/values").VLiteral<"pass", "required">, import("convex/values").VLiteral<"fail", "required">, import("convex/values").VLiteral<"softfail", "required">, import("convex/values").VLiteral<"neutral", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"temperror", "required">, import("convex/values").VLiteral<"permerror", "required">], "optional", never>;
|
|
465
|
+
dkim: import("convex/values").VUnion<"fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined, [import("convex/values").VLiteral<"pass", "required">, import("convex/values").VLiteral<"fail", "required">, import("convex/values").VLiteral<"softfail", "required">, import("convex/values").VLiteral<"neutral", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"temperror", "required">, import("convex/values").VLiteral<"permerror", "required">], "optional", never>;
|
|
466
|
+
dmarc: import("convex/values").VUnion<"fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined, [import("convex/values").VLiteral<"pass", "required">, import("convex/values").VLiteral<"fail", "required">, import("convex/values").VLiteral<"softfail", "required">, import("convex/values").VLiteral<"neutral", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"temperror", "required">, import("convex/values").VLiteral<"permerror", "required">], "optional", never>;
|
|
467
|
+
}, "required", "dkim" | "dmarc" | "spf">;
|
|
468
|
+
threadId: import("convex/values").VString<string, "required">;
|
|
469
|
+
truncated: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
470
|
+
tenantAdopted: import("convex/values").VLiteral<true | undefined, "optional">;
|
|
471
|
+
parent: import("convex/values").VObject<{
|
|
472
|
+
messageId: string;
|
|
473
|
+
senderWasRecipient: boolean;
|
|
474
|
+
tags: Record<string, string>;
|
|
475
|
+
} | undefined, {
|
|
476
|
+
messageId: import("convex/values").VString<string, "required">;
|
|
477
|
+
tags: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
|
|
478
|
+
senderWasRecipient: import("convex/values").VBoolean<boolean, "required">;
|
|
479
|
+
}, "optional", "messageId" | "senderWasRecipient" | "tags" | `tags.${string}`>;
|
|
480
|
+
headers: import("convex/values").VArray<{
|
|
481
|
+
name: string;
|
|
482
|
+
value: string;
|
|
483
|
+
}[], import("convex/values").VObject<{
|
|
484
|
+
name: string;
|
|
485
|
+
value: string;
|
|
486
|
+
}, {
|
|
487
|
+
name: import("convex/values").VString<string, "required">;
|
|
488
|
+
value: import("convex/values").VString<string, "required">;
|
|
489
|
+
}, "required", "name" | "value">, "required">;
|
|
490
|
+
}, "required", "attachments" | "bodyByReference" | "cc" | "from" | "from.address" | "from.name" | "hasRemoteImages" | "headers" | "html" | "messageId" | "parent" | "parent.messageId" | "parent.senderWasRecipient" | "parent.tags" | "provider" | "subject" | "tenant" | "tenantAdopted" | "text" | "textFromHtml" | "threadId" | "to" | "truncated" | "verdicts" | "verdicts.dkim" | "verdicts.dmarc" | "verdicts.spf" | `parent.tags.${string}`>;
|
|
491
|
+
export declare const vSendResult: import("convex/values").VUnion<{
|
|
492
|
+
ok: true;
|
|
493
|
+
providerId: string;
|
|
494
|
+
rfcMessageId?: string | undefined;
|
|
495
|
+
} | {
|
|
496
|
+
ambiguous?: true | undefined;
|
|
497
|
+
error: string;
|
|
498
|
+
ok: false;
|
|
499
|
+
retryable: boolean;
|
|
500
|
+
}, [import("convex/values").VObject<{
|
|
501
|
+
ok: true;
|
|
502
|
+
providerId: string;
|
|
503
|
+
rfcMessageId?: string | undefined;
|
|
504
|
+
}, {
|
|
505
|
+
ok: import("convex/values").VLiteral<true, "required">;
|
|
506
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
507
|
+
rfcMessageId: import("convex/values").VString<string | undefined, "optional">;
|
|
508
|
+
}, "required", "ok" | "providerId" | "rfcMessageId">, import("convex/values").VObject<{
|
|
509
|
+
ambiguous?: true | undefined;
|
|
510
|
+
error: string;
|
|
511
|
+
ok: false;
|
|
512
|
+
retryable: boolean;
|
|
513
|
+
}, {
|
|
514
|
+
ok: import("convex/values").VLiteral<false, "required">;
|
|
515
|
+
retryable: import("convex/values").VBoolean<boolean, "required">;
|
|
516
|
+
error: import("convex/values").VString<string, "required">;
|
|
517
|
+
ambiguous: import("convex/values").VLiteral<true | undefined, "optional">;
|
|
518
|
+
}, "required", "ambiguous" | "error" | "ok" | "retryable">], "required", "ambiguous" | "error" | "ok" | "providerId" | "retryable" | "rfcMessageId">;
|
|
519
|
+
export declare const vWebhookRequest: import("convex/values").VObject<{
|
|
520
|
+
body: string;
|
|
521
|
+
headers: Record<string, string>;
|
|
522
|
+
tenant?: string | undefined;
|
|
523
|
+
}, {
|
|
524
|
+
headers: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
|
|
525
|
+
body: import("convex/values").VString<string, "required">;
|
|
526
|
+
tenant: import("convex/values").VString<string | undefined, "optional">;
|
|
527
|
+
}, "required", "body" | "headers" | "tenant" | `headers.${string}`>;
|
|
528
|
+
export declare const vVerifyResult: import("convex/values").VUnion<{
|
|
529
|
+
deliveryId: string;
|
|
530
|
+
ok: true;
|
|
531
|
+
payload: unknown;
|
|
532
|
+
} | {
|
|
533
|
+
handled: true;
|
|
534
|
+
ok: true;
|
|
535
|
+
status: number;
|
|
536
|
+
} | {
|
|
537
|
+
ok: false;
|
|
538
|
+
reason: string;
|
|
539
|
+
status: 400 | 401;
|
|
540
|
+
}, [import("convex/values").VObject<{
|
|
541
|
+
deliveryId: string;
|
|
542
|
+
ok: true;
|
|
543
|
+
payload: unknown;
|
|
544
|
+
}, {
|
|
545
|
+
ok: import("convex/values").VLiteral<true, "required">;
|
|
546
|
+
payload: Validator<unknown, "required", string>;
|
|
547
|
+
deliveryId: import("convex/values").VString<string, "required">;
|
|
548
|
+
}, "required", "deliveryId" | "ok" | "payload" | `payload.${string}`>, import("convex/values").VObject<{
|
|
549
|
+
handled: true;
|
|
550
|
+
ok: true;
|
|
551
|
+
status: number;
|
|
552
|
+
}, {
|
|
553
|
+
ok: import("convex/values").VLiteral<true, "required">;
|
|
554
|
+
handled: import("convex/values").VLiteral<true, "required">;
|
|
555
|
+
status: import("convex/values").VFloat64<number, "required">;
|
|
556
|
+
}, "required", "handled" | "ok" | "status">, import("convex/values").VObject<{
|
|
557
|
+
ok: false;
|
|
558
|
+
reason: string;
|
|
559
|
+
status: 400 | 401;
|
|
560
|
+
}, {
|
|
561
|
+
ok: import("convex/values").VLiteral<false, "required">;
|
|
562
|
+
status: import("convex/values").VUnion<400 | 401, [import("convex/values").VLiteral<401, "required">, import("convex/values").VLiteral<400, "required">], "required", never>;
|
|
563
|
+
reason: import("convex/values").VString<string, "required">;
|
|
564
|
+
}, "required", "ok" | "reason" | "status">], "required", "deliveryId" | "handled" | "ok" | "payload" | "reason" | "status" | `payload.${string}`>;
|
|
565
|
+
export declare const vParsedWebhook: import("convex/values").VObject<{
|
|
566
|
+
events: {
|
|
567
|
+
at: number;
|
|
568
|
+
bounceType?: "hard" | "soft" | "undetermined" | undefined;
|
|
569
|
+
detail?: string | undefined;
|
|
570
|
+
providerEventId: string;
|
|
571
|
+
providerId: string;
|
|
572
|
+
recipients: string[];
|
|
573
|
+
rfcMessageId?: string | undefined;
|
|
574
|
+
type: "bounced" | "complained" | "delivered" | "delivery_delayed" | "failed" | "rejected" | "sent";
|
|
575
|
+
}[];
|
|
576
|
+
ignored: number;
|
|
577
|
+
inbound: {
|
|
578
|
+
from?: string | undefined;
|
|
579
|
+
location: {
|
|
580
|
+
emailId: string;
|
|
581
|
+
kind: "resend";
|
|
582
|
+
} | {
|
|
583
|
+
bucket: string;
|
|
584
|
+
key: string;
|
|
585
|
+
kind: "s3";
|
|
586
|
+
};
|
|
587
|
+
providerId: string;
|
|
588
|
+
recipients: string[];
|
|
589
|
+
verdicts?: {
|
|
590
|
+
dkim?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
591
|
+
dmarc?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
592
|
+
spf?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
593
|
+
} | undefined;
|
|
594
|
+
}[];
|
|
595
|
+
}, {
|
|
596
|
+
events: import("convex/values").VArray<{
|
|
597
|
+
at: number;
|
|
598
|
+
bounceType?: "hard" | "soft" | "undetermined" | undefined;
|
|
599
|
+
detail?: string | undefined;
|
|
600
|
+
providerEventId: string;
|
|
601
|
+
providerId: string;
|
|
602
|
+
recipients: string[];
|
|
603
|
+
rfcMessageId?: string | undefined;
|
|
604
|
+
type: "bounced" | "complained" | "delivered" | "delivery_delayed" | "failed" | "rejected" | "sent";
|
|
605
|
+
}[], import("convex/values").VObject<{
|
|
606
|
+
at: number;
|
|
607
|
+
bounceType?: "hard" | "soft" | "undetermined" | undefined;
|
|
608
|
+
detail?: string | undefined;
|
|
609
|
+
providerEventId: string;
|
|
610
|
+
providerId: string;
|
|
611
|
+
recipients: string[];
|
|
612
|
+
rfcMessageId?: string | undefined;
|
|
613
|
+
type: "bounced" | "complained" | "delivered" | "delivery_delayed" | "failed" | "rejected" | "sent";
|
|
614
|
+
}, {
|
|
615
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
616
|
+
providerEventId: import("convex/values").VString<string, "required">;
|
|
617
|
+
type: import("convex/values").VUnion<"bounced" | "complained" | "delivered" | "delivery_delayed" | "failed" | "rejected" | "sent", [import("convex/values").VLiteral<"sent", "required">, import("convex/values").VLiteral<"delivered", "required">, import("convex/values").VLiteral<"delivery_delayed", "required">, import("convex/values").VLiteral<"bounced", "required">, import("convex/values").VLiteral<"complained", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"rejected", "required">], "required", never>;
|
|
618
|
+
bounceType: import("convex/values").VUnion<"hard" | "soft" | "undetermined" | undefined, [import("convex/values").VLiteral<"hard", "required">, import("convex/values").VLiteral<"soft", "required">, import("convex/values").VLiteral<"undetermined", "required">], "optional", never>;
|
|
619
|
+
at: import("convex/values").VFloat64<number, "required">;
|
|
620
|
+
recipients: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
621
|
+
detail: import("convex/values").VString<string | undefined, "optional">;
|
|
622
|
+
rfcMessageId: import("convex/values").VString<string | undefined, "optional">;
|
|
623
|
+
}, "required", "at" | "bounceType" | "detail" | "providerEventId" | "providerId" | "recipients" | "rfcMessageId" | "type">, "required">;
|
|
624
|
+
inbound: import("convex/values").VArray<{
|
|
625
|
+
from?: string | undefined;
|
|
626
|
+
location: {
|
|
627
|
+
emailId: string;
|
|
628
|
+
kind: "resend";
|
|
629
|
+
} | {
|
|
630
|
+
bucket: string;
|
|
631
|
+
key: string;
|
|
632
|
+
kind: "s3";
|
|
633
|
+
};
|
|
634
|
+
providerId: string;
|
|
635
|
+
recipients: string[];
|
|
636
|
+
verdicts?: {
|
|
637
|
+
dkim?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
638
|
+
dmarc?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
639
|
+
spf?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
640
|
+
} | undefined;
|
|
641
|
+
}[], import("convex/values").VObject<{
|
|
642
|
+
from?: string | undefined;
|
|
643
|
+
location: {
|
|
644
|
+
emailId: string;
|
|
645
|
+
kind: "resend";
|
|
646
|
+
} | {
|
|
647
|
+
bucket: string;
|
|
648
|
+
key: string;
|
|
649
|
+
kind: "s3";
|
|
650
|
+
};
|
|
651
|
+
providerId: string;
|
|
652
|
+
recipients: string[];
|
|
653
|
+
verdicts?: {
|
|
654
|
+
dkim?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
655
|
+
dmarc?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
656
|
+
spf?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
657
|
+
} | undefined;
|
|
658
|
+
}, {
|
|
659
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
660
|
+
recipients: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
661
|
+
from: import("convex/values").VString<string | undefined, "optional">;
|
|
662
|
+
location: import("convex/values").VUnion<{
|
|
663
|
+
emailId: string;
|
|
664
|
+
kind: "resend";
|
|
665
|
+
} | {
|
|
666
|
+
bucket: string;
|
|
667
|
+
key: string;
|
|
668
|
+
kind: "s3";
|
|
669
|
+
}, [import("convex/values").VObject<{
|
|
670
|
+
emailId: string;
|
|
671
|
+
kind: "resend";
|
|
672
|
+
}, {
|
|
673
|
+
kind: import("convex/values").VLiteral<"resend", "required">;
|
|
674
|
+
emailId: import("convex/values").VString<string, "required">;
|
|
675
|
+
}, "required", "emailId" | "kind">, import("convex/values").VObject<{
|
|
676
|
+
bucket: string;
|
|
677
|
+
key: string;
|
|
678
|
+
kind: "s3";
|
|
679
|
+
}, {
|
|
680
|
+
kind: import("convex/values").VLiteral<"s3", "required">;
|
|
681
|
+
bucket: import("convex/values").VString<string, "required">;
|
|
682
|
+
key: import("convex/values").VString<string, "required">;
|
|
683
|
+
}, "required", "bucket" | "key" | "kind">], "required", "bucket" | "emailId" | "key" | "kind">;
|
|
684
|
+
verdicts: import("convex/values").VObject<{
|
|
685
|
+
dkim?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
686
|
+
dmarc?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
687
|
+
spf?: "fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined;
|
|
688
|
+
} | undefined, {
|
|
689
|
+
spf: import("convex/values").VUnion<"fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined, [import("convex/values").VLiteral<"pass", "required">, import("convex/values").VLiteral<"fail", "required">, import("convex/values").VLiteral<"softfail", "required">, import("convex/values").VLiteral<"neutral", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"temperror", "required">, import("convex/values").VLiteral<"permerror", "required">], "optional", never>;
|
|
690
|
+
dkim: import("convex/values").VUnion<"fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined, [import("convex/values").VLiteral<"pass", "required">, import("convex/values").VLiteral<"fail", "required">, import("convex/values").VLiteral<"softfail", "required">, import("convex/values").VLiteral<"neutral", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"temperror", "required">, import("convex/values").VLiteral<"permerror", "required">], "optional", never>;
|
|
691
|
+
dmarc: import("convex/values").VUnion<"fail" | "neutral" | "none" | "pass" | "permerror" | "softfail" | "temperror" | undefined, [import("convex/values").VLiteral<"pass", "required">, import("convex/values").VLiteral<"fail", "required">, import("convex/values").VLiteral<"softfail", "required">, import("convex/values").VLiteral<"neutral", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"temperror", "required">, import("convex/values").VLiteral<"permerror", "required">], "optional", never>;
|
|
692
|
+
}, "optional", "dkim" | "dmarc" | "spf">;
|
|
693
|
+
}, "required", "from" | "location" | "location.bucket" | "location.emailId" | "location.key" | "location.kind" | "providerId" | "recipients" | "verdicts" | "verdicts.dkim" | "verdicts.dmarc" | "verdicts.spf">, "required">;
|
|
694
|
+
ignored: import("convex/values").VFloat64<number, "required">;
|
|
695
|
+
}, "required", "events" | "ignored" | "inbound">;
|
|
696
|
+
export declare const vAdapterOptions: import("convex/values").VObject<{
|
|
697
|
+
resend?: {
|
|
698
|
+
ownDomains: string[];
|
|
699
|
+
} | undefined;
|
|
700
|
+
}, {
|
|
701
|
+
resend: import("convex/values").VObject<{
|
|
702
|
+
ownDomains: string[];
|
|
703
|
+
} | undefined, {
|
|
704
|
+
ownDomains: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
705
|
+
}, "optional", "ownDomains">;
|
|
706
|
+
}, "required", "resend" | "resend.ownDomains">;
|
|
707
|
+
export declare const vMessageStatus: import("convex/values").VUnion<"bounced" | "complained" | "delivered" | "delivery_delayed" | "failed" | "queued" | "received" | "rejected" | "sending" | "sent" | "suppressed" | "test", [import("convex/values").VLiteral<"received", "required">, import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"test", "required">, import("convex/values").VLiteral<"suppressed", "required">, import("convex/values").VLiteral<"sending", "required">, import("convex/values").VLiteral<"sent", "required">, import("convex/values").VLiteral<"delivery_delayed", "required">, import("convex/values").VLiteral<"delivered", "required">, import("convex/values").VLiteral<"bounced", "required">, import("convex/values").VLiteral<"complained", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"rejected", "required">], "required", never>;
|
|
708
|
+
export declare const vRuntimeConfig: import("convex/values").VObject<{
|
|
709
|
+
adapterOptions: {
|
|
710
|
+
resend?: {
|
|
711
|
+
ownDomains: string[];
|
|
712
|
+
} | undefined;
|
|
713
|
+
};
|
|
714
|
+
credentialsHandle: string;
|
|
715
|
+
defaultTenant?: string | undefined;
|
|
716
|
+
keepRawMime: boolean;
|
|
717
|
+
messageIdDomain?: string | undefined;
|
|
718
|
+
onEventHandle?: string | undefined;
|
|
719
|
+
onInboundHandle?: string | undefined;
|
|
720
|
+
providers: ("resend" | "ses")[];
|
|
721
|
+
sendVia: "resend" | "ses";
|
|
722
|
+
testAllowlist: string[];
|
|
723
|
+
testMode: boolean;
|
|
724
|
+
trustedAuthServIds?: string[] | undefined;
|
|
725
|
+
unsubscribe?: {
|
|
726
|
+
mailto?: string | undefined;
|
|
727
|
+
url: string;
|
|
728
|
+
} | undefined;
|
|
729
|
+
}, {
|
|
730
|
+
providers: import("convex/values").VArray<("resend" | "ses")[], import("convex/values").VUnion<"resend" | "ses", [import("convex/values").VLiteral<"resend", "required">, import("convex/values").VLiteral<"ses", "required">], "required", never>, "required">;
|
|
731
|
+
sendVia: import("convex/values").VUnion<"resend" | "ses", [import("convex/values").VLiteral<"resend", "required">, import("convex/values").VLiteral<"ses", "required">], "required", never>;
|
|
732
|
+
credentialsHandle: import("convex/values").VString<string, "required">;
|
|
733
|
+
onInboundHandle: import("convex/values").VString<string | undefined, "optional">;
|
|
734
|
+
onEventHandle: import("convex/values").VString<string | undefined, "optional">;
|
|
735
|
+
testMode: import("convex/values").VBoolean<boolean, "required">;
|
|
736
|
+
testAllowlist: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
737
|
+
defaultTenant: import("convex/values").VString<string | undefined, "optional">;
|
|
738
|
+
adapterOptions: import("convex/values").VObject<{
|
|
739
|
+
resend?: {
|
|
740
|
+
ownDomains: string[];
|
|
741
|
+
} | undefined;
|
|
742
|
+
}, {
|
|
743
|
+
resend: import("convex/values").VObject<{
|
|
744
|
+
ownDomains: string[];
|
|
745
|
+
} | undefined, {
|
|
746
|
+
ownDomains: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
747
|
+
}, "optional", "ownDomains">;
|
|
748
|
+
}, "required", "resend" | "resend.ownDomains">;
|
|
749
|
+
unsubscribe: import("convex/values").VObject<{
|
|
750
|
+
mailto?: string | undefined;
|
|
751
|
+
url: string;
|
|
752
|
+
} | undefined, {
|
|
753
|
+
url: import("convex/values").VString<string, "required">;
|
|
754
|
+
mailto: import("convex/values").VString<string | undefined, "optional">;
|
|
755
|
+
}, "optional", "mailto" | "url">;
|
|
756
|
+
keepRawMime: import("convex/values").VBoolean<boolean, "required">;
|
|
757
|
+
messageIdDomain: import("convex/values").VString<string | undefined, "optional">;
|
|
758
|
+
trustedAuthServIds: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
759
|
+
}, "required", "adapterOptions" | "adapterOptions.resend" | "adapterOptions.resend.ownDomains" | "credentialsHandle" | "defaultTenant" | "keepRawMime" | "messageIdDomain" | "onEventHandle" | "onInboundHandle" | "providers" | "sendVia" | "testAllowlist" | "testMode" | "trustedAuthServIds" | "unsubscribe" | "unsubscribe.mailto" | "unsubscribe.url">;
|
|
760
|
+
//# sourceMappingURL=validators.d.ts.map
|