samva 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +4 -1
- package/README.md +46 -1
- package/dist/analytics-CaqPRsry.js +207 -0
- package/dist/api-keys-Ce1Y4_Ip.js +274 -0
- package/dist/attachments-DYqVIraC.js +140 -0
- package/dist/brands-ZwuOGIWO.js +175 -0
- package/dist/campaigns-DZlz1E9E.js +522 -0
- package/dist/categories-CA4XIQAb.js +1011 -0
- package/dist/client/sdk.gen.d.ts +234 -49
- package/dist/client/types.gen.d.ts +1521 -348
- package/dist/client-DOzUrdTE.js +1115 -0
- package/dist/contact-groups-BLbFXnjq.js +446 -0
- package/dist/contacts-BbsoXXB4.js +787 -0
- package/dist/conversations-_sRHueML.js +494 -0
- package/dist/custom-fields-BHWbwlKn.js +176 -0
- package/dist/effect/analytics.js +2 -21
- package/dist/effect/api-keys.d.ts +1 -0
- package/dist/effect/api-keys.js +2 -25
- package/dist/effect/attachments.js +2 -17
- package/dist/effect/brands.d.ts +1 -1
- package/dist/effect/brands.js +3 -24
- package/dist/effect/campaigns.js +2 -33
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/client.js +3 -4
- package/dist/effect/contact-groups.js +2 -29
- package/dist/effect/contacts.d.ts +52 -0
- package/dist/effect/contacts.js +2 -47
- package/dist/effect/conversations.js +2 -35
- package/dist/effect/custom-fields.js +2 -17
- package/dist/effect/email.d.ts +3 -20
- package/dist/effect/email.js +2 -141
- package/dist/effect/events.d.ts +121 -0
- package/dist/effect/events.js +3 -0
- package/dist/effect/extension-installations.js +2 -27
- package/dist/effect/extensions.js +2 -19
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +3 -13
- package/dist/effect/generated/analytics.d.ts +715 -0
- package/dist/effect/generated/api-keys.d.ts +1627 -0
- package/dist/effect/generated/attachments.d.ts +554 -0
- package/dist/effect/generated/brands.d.ts +1118 -0
- package/dist/effect/generated/campaigns.d.ts +3783 -0
- package/dist/effect/generated/contact-events.d.ts +158 -0
- package/dist/effect/generated/contact-groups.d.ts +1445 -0
- package/dist/effect/generated/contacts.d.ts +3789 -0
- package/dist/effect/generated/conversations.d.ts +2870 -0
- package/dist/effect/generated/custom-fields.d.ts +562 -0
- package/dist/effect/generated/email.d.ts +10622 -0
- package/dist/effect/generated/events.d.ts +463 -0
- package/dist/effect/generated/extension-installations.d.ts +1786 -0
- package/dist/effect/generated/extensions.d.ts +927 -0
- package/dist/effect/generated/feedback.d.ts +116 -0
- package/dist/effect/generated/index.d.ts +61 -0
- package/dist/effect/generated/journeys.d.ts +6135 -0
- package/dist/effect/generated/mailboxes.d.ts +13641 -0
- package/dist/effect/generated/media.d.ts +741 -0
- package/dist/effect/generated/messages.d.ts +2355 -0
- package/dist/effect/generated/namespaces.d.ts +654 -0
- package/dist/effect/generated/operations.d.ts +514 -0
- package/dist/effect/generated/organizations.d.ts +1111 -0
- package/dist/effect/generated/scheduled-messages.d.ts +1798 -0
- package/dist/effect/generated/shared.d.ts +3250 -0
- package/dist/effect/generated/subscriptions.d.ts +188 -0
- package/dist/effect/generated/templates.d.ts +8177 -0
- package/dist/effect/generated/unsubscribe-groups.d.ts +1153 -0
- package/dist/effect/generated/webhooks.d.ts +1697 -0
- package/dist/effect/generated/whoami.d.ts +291 -0
- package/dist/effect/generated-metadata.d.ts +1631 -0
- package/dist/effect/index.d.ts +4 -1
- package/dist/effect/index.js +29 -26
- package/dist/effect/internal/client.d.ts +10 -7
- package/dist/effect/internal/email-sender.d.ts +17 -0
- package/dist/effect/internal/operation.d.ts +12 -72
- package/dist/effect/internal/send.d.ts +60 -0
- package/dist/effect/journeys.d.ts +2153 -0
- package/dist/effect/journeys.js +2 -0
- package/dist/effect/mailboxes.d.ts +255 -205
- package/dist/effect/mailboxes.js +2 -2
- package/dist/effect/media.js +3 -1
- package/dist/effect/messages.d.ts +2 -2
- package/dist/effect/messages.js +3 -1
- package/dist/effect/namespaces.js +2 -19
- package/dist/effect/operations.js +2 -15
- package/dist/effect/organizations.js +2 -23
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.js +2 -19
- package/dist/effect/subscriptions.js +2 -9
- package/dist/effect/templates.d.ts +1 -1
- package/dist/effect/templates.js +3 -78
- package/dist/effect/unsubscribe-groups.js +2 -27
- package/dist/effect/webhooks.d.ts +9 -9
- package/dist/effect/webhooks.js +3 -33
- package/dist/effect/whoami.d.ts +46 -0
- package/dist/effect/whoami.js +2 -0
- package/dist/email-R0NAA9PW.js +2498 -0
- package/dist/events-CxbTUHYT.js +82 -0
- package/dist/extension-installations-CD94LPmk.js +407 -0
- package/dist/extensions-BKyNQLvu.js +220 -0
- package/dist/feedback-Bpa09JOS.js +52 -0
- package/dist/index.js +3 -3
- package/dist/{inline-attachments-UxLeyytJ.js → inline-attachments-Bi1hDltp.js} +2 -2
- package/dist/journeys-CARo_BJT.js +499 -0
- package/dist/mailboxes-BRDn7BIK.js +2470 -0
- package/dist/media-VrrtNnft.js +181 -0
- package/dist/namespaces-CcvEbG-y.js +152 -0
- package/dist/{operation-BZ5Xov-x.js → operation-n_IYgNVK.js} +85 -102
- package/dist/operations-CmB3FHwf.js +93 -0
- package/dist/organizations-A-plufWc.js +252 -0
- package/dist/promises/errors.gen.d.ts +12 -2
- package/dist/promises/index.d.ts +9 -3
- package/dist/promises/index.js +3 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-Cd6Jamqk.js → promises---Kbh-7z.js} +745 -195
- package/dist/runtime-P0l1_2-C.js +25 -0
- package/dist/scheduled-messages-DkKZRRaN.js +207 -0
- package/dist/send-Bxc0XfGE.js +722 -0
- package/dist/service-map.d.ts +101 -15
- package/dist/subscriptions-DEXYtMXg.js +67 -0
- package/dist/templates-DZomxsG7.js +2289 -0
- package/dist/unsubscribe-groups-Iqk4Isf9.js +291 -0
- package/dist/webhooks-CPXuu8Xf.js +530 -0
- package/dist/whoami-Ccz0jwlt.js +59 -0
- package/package.json +17 -3
- package/dist/categories-BGUBFdH9.js +0 -183
- package/dist/client-CDg7zJs0.js +0 -13726
- package/dist/effect/generated.d.ts +0 -64059
- package/dist/mailboxes-BH_JPmOE.js +0 -159
|
@@ -0,0 +1,2498 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { r as replyToEmailsPayload } from "./normalize-B79uJIeb.js";
|
|
3
|
+
import { Bt as SendsSeries, Ct as MessageId, D as Cursor, F as EmailDomainId, Jt as UnauthorizedError, K as ForbiddenError, Lt as ResourceNotFoundError, M as EmailChannelError, Nt as PaymentRequiredError, Pt as RateLimitedError, R as EmailSenderId, St as MediaId, U as ExternalServiceError, Y as InternalError, Yt as UnsubscribeId, en as ValidationError, et as JsonValue, jt as OperationId, l as BillingProviderError, m as ConflictError, q as GatewayTimeoutError, s as ApiKeySecurityMiddleware, tn as WebhookEndpointId } from "./client-DOzUrdTE.js";
|
|
4
|
+
import { n as forGroup, r as stripUndefined, t as callEndpoint } from "./operation-n_IYgNVK.js";
|
|
5
|
+
import { generateIdempotencyKey, withRetry } from "./effect/retry.js";
|
|
6
|
+
import { t as sendEmail } from "./send-Bxc0XfGE.js";
|
|
7
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
8
|
+
import * as Schema$1 from "effect/Schema";
|
|
9
|
+
import { Effect } from "effect";
|
|
10
|
+
//#region src/effect/generated/email.ts
|
|
11
|
+
const BlockedEmailId = /* @__PURE__ */ Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^blk_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
12
|
+
expected: "a string matching the RegExp ^blk_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
13
|
+
identifier: "BlockedEmailId"
|
|
14
|
+
})).pipe(Schema$1.brand("BlockedEmailId"));
|
|
15
|
+
const SuccessResult = /* @__PURE__ */ Schema$1.Struct({
|
|
16
|
+
success: Schema$1.Boolean,
|
|
17
|
+
message: Schema$1.String
|
|
18
|
+
}).annotate({ identifier: "SuccessResult" });
|
|
19
|
+
const BlockedEmailLogId = /* @__PURE__ */ Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^blklog_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
20
|
+
expected: "a string matching the RegExp ^blklog_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
21
|
+
identifier: "BlockedEmailLogId"
|
|
22
|
+
})).pipe(Schema$1.brand("BlockedEmailLogId"));
|
|
23
|
+
const DeliverabilityFacts = /* @__PURE__ */ Schema$1.Struct({
|
|
24
|
+
bounceRate: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })),
|
|
25
|
+
complaintRate: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })),
|
|
26
|
+
windowSends: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
27
|
+
sendingStatus: Schema$1.Union([
|
|
28
|
+
Schema$1.Literal("enabled"),
|
|
29
|
+
Schema$1.Literal("disabled"),
|
|
30
|
+
Schema$1.Literal("reinstated"),
|
|
31
|
+
Schema$1.Literal("unknown")
|
|
32
|
+
])
|
|
33
|
+
}).annotate({
|
|
34
|
+
description: "Bounce and complaint rates over the last 24 hours, as fractions between 0 and 1, with `windowSends`, the deliveries they were divided by, plus `sendingStatus`, which says whether the organization can currently send. The window matches the one the sending-pause rule reads. Below 200 sends that rule ignores the window entirely, so a rate over a smaller `windowSends` is a quotient rather than a reading. These are not a lifetime record; an identity with no traffic in the window reports zeroes.",
|
|
35
|
+
identifier: "DeliverabilityFacts"
|
|
36
|
+
});
|
|
37
|
+
const CustomTrackingCertificate = /* @__PURE__ */ Schema$1.Struct({
|
|
38
|
+
reason: Schema$1.Struct({
|
|
39
|
+
code: Schema$1.Union([
|
|
40
|
+
Schema$1.Literal("initializing"),
|
|
41
|
+
Schema$1.Literal("awaiting-hostname"),
|
|
42
|
+
Schema$1.Literal("awaiting-dcv"),
|
|
43
|
+
Schema$1.Literal("issuing"),
|
|
44
|
+
Schema$1.Literal("caa-blocked"),
|
|
45
|
+
Schema$1.Literal("validation-error"),
|
|
46
|
+
Schema$1.Literal("timed-out"),
|
|
47
|
+
Schema$1.Literal("verifying-route"),
|
|
48
|
+
Schema$1.Literal("ready"),
|
|
49
|
+
Schema$1.Literal("provider-unreachable")
|
|
50
|
+
]),
|
|
51
|
+
message: Schema$1.String
|
|
52
|
+
}),
|
|
53
|
+
lastCheckedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
54
|
+
nextCheckAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
55
|
+
}).annotate({ identifier: "CustomTrackingCertificate" });
|
|
56
|
+
const CustomTrackingDnsRecord = /* @__PURE__ */ Schema$1.Struct({
|
|
57
|
+
name: Schema$1.String,
|
|
58
|
+
type: Schema$1.String,
|
|
59
|
+
value: Schema$1.String
|
|
60
|
+
}).annotate({ identifier: "CustomTrackingDnsRecord" });
|
|
61
|
+
const DomainConnectEligibility = /* @__PURE__ */ Schema$1.Union([Schema$1.Struct({
|
|
62
|
+
eligible: Schema$1.Literal(false),
|
|
63
|
+
reason: Schema$1.Union([
|
|
64
|
+
Schema$1.Literal("no-record"),
|
|
65
|
+
Schema$1.Literal("no-settings"),
|
|
66
|
+
Schema$1.Literal("no-sync"),
|
|
67
|
+
Schema$1.Literal("no-template"),
|
|
68
|
+
Schema$1.Literal("unavailable")
|
|
69
|
+
])
|
|
70
|
+
}), Schema$1.Struct({
|
|
71
|
+
eligible: Schema$1.Literal(true),
|
|
72
|
+
providerName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
73
|
+
})]).annotate({ identifier: "DomainConnectEligibility" });
|
|
74
|
+
const DomainConnectApplyUrlResult = /* @__PURE__ */ Schema$1.Struct({ url: Schema$1.String }).annotate({ identifier: "DomainConnectApplyUrlResult" });
|
|
75
|
+
const CustomTrackingDomainConnectCompleteResult = /* @__PURE__ */ Schema$1.Struct({ status: Schema$1.Union([
|
|
76
|
+
Schema$1.Literal("applied"),
|
|
77
|
+
Schema$1.Literal("cancelled"),
|
|
78
|
+
Schema$1.Literal("failed"),
|
|
79
|
+
Schema$1.Literal("stale"),
|
|
80
|
+
Schema$1.Literal("invalid")
|
|
81
|
+
]) }).annotate({ identifier: "CustomTrackingDomainConnectCompleteResult" });
|
|
82
|
+
const DomainConnectCompleteResult = /* @__PURE__ */ Schema$1.Struct({ status: Schema$1.Union([
|
|
83
|
+
Schema$1.Literal("applied"),
|
|
84
|
+
Schema$1.Literal("cancelled"),
|
|
85
|
+
Schema$1.Literal("failed"),
|
|
86
|
+
Schema$1.Literal("invalid")
|
|
87
|
+
]) }).annotate({ identifier: "DomainConnectCompleteResult" });
|
|
88
|
+
const EmailDomainProvisioningExecution = /* @__PURE__ */ Schema$1.Struct({
|
|
89
|
+
status: Schema$1.Union([
|
|
90
|
+
Schema$1.Literal("none"),
|
|
91
|
+
Schema$1.Literal("running"),
|
|
92
|
+
Schema$1.Literal("succeeded"),
|
|
93
|
+
Schema$1.Literal("failed")
|
|
94
|
+
]),
|
|
95
|
+
generation: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })),
|
|
96
|
+
revision: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" }))
|
|
97
|
+
}).annotate({ identifier: "EmailDomainProvisioningExecution" });
|
|
98
|
+
const EmailDomainWarmingPlanId = /* @__PURE__ */ Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^warm_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
99
|
+
expected: "a string matching the RegExp ^warm_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
100
|
+
identifier: "EmailDomainWarmingPlanId"
|
|
101
|
+
})).pipe(Schema$1.brand("EmailDomainWarmingPlanId"));
|
|
102
|
+
const EmailDomainWarmingBatchId = /* @__PURE__ */ Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^wbatch_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
103
|
+
expected: "a string matching the RegExp ^wbatch_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
104
|
+
identifier: "EmailDomainWarmingBatchId"
|
|
105
|
+
})).pipe(Schema$1.brand("EmailDomainWarmingBatchId"));
|
|
106
|
+
const EmailDomainWarmingDecisionId = /* @__PURE__ */ Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^wdec_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
107
|
+
expected: "a string matching the RegExp ^wdec_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
108
|
+
identifier: "EmailDomainWarmingDecisionId"
|
|
109
|
+
})).pipe(Schema$1.brand("EmailDomainWarmingDecisionId"));
|
|
110
|
+
const DomainWarmingWindowHour = /* @__PURE__ */ Schema$1.Struct({
|
|
111
|
+
sent: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
112
|
+
bounced: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
113
|
+
complained: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))
|
|
114
|
+
}).annotate({ identifier: "DomainWarmingWindowHour" });
|
|
115
|
+
const DomainWarmingHolds = /* @__PURE__ */ Schema$1.Struct({
|
|
116
|
+
workspacePausedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
117
|
+
workspacePauseReason: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
118
|
+
sendingStatus: Schema$1.Union([
|
|
119
|
+
Schema$1.Literal("enabled"),
|
|
120
|
+
Schema$1.Literal("disabled"),
|
|
121
|
+
Schema$1.Literal("reinstated"),
|
|
122
|
+
Schema$1.Literal("unknown")
|
|
123
|
+
])
|
|
124
|
+
}).annotate({ identifier: "DomainWarmingHolds" });
|
|
125
|
+
const EmailForwardingRuleId = /* @__PURE__ */ Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^fwd_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
126
|
+
expected: "a string matching the RegExp ^fwd_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
127
|
+
identifier: "EmailForwardingRuleId"
|
|
128
|
+
})).pipe(Schema$1.brand("EmailForwardingRuleId"));
|
|
129
|
+
const ForwardingConditions = /* @__PURE__ */ Schema$1.Struct({
|
|
130
|
+
subjectContains: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
131
|
+
fromContains: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
132
|
+
hasAttachments: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null]))
|
|
133
|
+
}).annotate({ identifier: "ForwardingConditions" });
|
|
134
|
+
const IdentityClearanceStatus = /* @__PURE__ */ Schema$1.Struct({
|
|
135
|
+
identityId: Schema$1.String,
|
|
136
|
+
decision: Schema$1.Union([
|
|
137
|
+
Schema$1.Literal("undecided"),
|
|
138
|
+
Schema$1.Literal("approved"),
|
|
139
|
+
Schema$1.Literal("rejected")
|
|
140
|
+
]),
|
|
141
|
+
generation: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })),
|
|
142
|
+
canSend: Schema$1.Boolean,
|
|
143
|
+
code: Schema$1.Union([Schema$1.Union([
|
|
144
|
+
Schema$1.Literal("review_required"),
|
|
145
|
+
Schema$1.Literal("review_in_progress"),
|
|
146
|
+
Schema$1.Literal("information_required"),
|
|
147
|
+
Schema$1.Literal("review_rejected"),
|
|
148
|
+
Schema$1.Literal("identity_review_required"),
|
|
149
|
+
Schema$1.Literal("identity_review_rejected"),
|
|
150
|
+
Schema$1.Literal("identity_changed")
|
|
151
|
+
]), Schema$1.Null]),
|
|
152
|
+
nextAction: Schema$1.Union([Schema$1.Union([
|
|
153
|
+
Schema$1.Literal("wait_for_review"),
|
|
154
|
+
Schema$1.Literal("provide_information"),
|
|
155
|
+
Schema$1.Literal("verify_sending_identity"),
|
|
156
|
+
Schema$1.Literal("reapply"),
|
|
157
|
+
Schema$1.Literal("contact_support")
|
|
158
|
+
]), Schema$1.Null]),
|
|
159
|
+
updatedAt: Schema$1.String
|
|
160
|
+
}).annotate({ identifier: "IdentityClearanceStatus" });
|
|
161
|
+
const SuppressionId = /* @__PURE__ */ Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^supp_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
162
|
+
expected: "a string matching the RegExp ^supp_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
163
|
+
identifier: "SuppressionId"
|
|
164
|
+
})).pipe(Schema$1.brand("SuppressionId"));
|
|
165
|
+
const SuppressionCounts = /* @__PURE__ */ Schema$1.Struct({
|
|
166
|
+
bounce: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
167
|
+
complaint: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
168
|
+
unsubscribe: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
169
|
+
manual: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
170
|
+
}).annotate({ identifier: "SuppressionCounts" });
|
|
171
|
+
const EmailTrackingDefaults = /* @__PURE__ */ Schema$1.Struct({
|
|
172
|
+
opens: Schema$1.Boolean,
|
|
173
|
+
clicks: Schema$1.Boolean
|
|
174
|
+
}).annotate({ identifier: "EmailTrackingDefaults" });
|
|
175
|
+
const TrackingRecipientEmail = /* @__PURE__ */ Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$", "u")).annotate({
|
|
176
|
+
expected: "a string matching the RegExp ^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
|
|
177
|
+
identifier: "TrackingRecipientEmail"
|
|
178
|
+
}));
|
|
179
|
+
const EmailDkimRotation = /* @__PURE__ */ Schema$1.Struct({
|
|
180
|
+
id: Schema$1.String,
|
|
181
|
+
domainId: EmailDomainId,
|
|
182
|
+
phase: Schema$1.Union([
|
|
183
|
+
Schema$1.Literal("staged"),
|
|
184
|
+
Schema$1.Literal("cutover"),
|
|
185
|
+
Schema$1.Literal("complete")
|
|
186
|
+
]),
|
|
187
|
+
selector: Schema$1.String,
|
|
188
|
+
record: Schema$1.Struct({
|
|
189
|
+
name: Schema$1.String,
|
|
190
|
+
type: Schema$1.Literal("TXT"),
|
|
191
|
+
value: Schema$1.String,
|
|
192
|
+
ttl: Schema$1.String
|
|
193
|
+
}),
|
|
194
|
+
formerRecord: Schema$1.Struct({
|
|
195
|
+
name: Schema$1.String,
|
|
196
|
+
type: Schema$1.Literal("TXT"),
|
|
197
|
+
value: Schema$1.String
|
|
198
|
+
}),
|
|
199
|
+
minimumRetainUntil: Schema$1.Union([Schema$1.String, Schema$1.Null]).annotate({ description: "The earliest time the former DKIM record may be removed. Keep it published at least until then so mail signed with the former key still verifies." })
|
|
200
|
+
}).annotate({ identifier: "EmailDkimRotation" });
|
|
201
|
+
const DomainWarmingDomainRef = /* @__PURE__ */ Schema$1.Struct({
|
|
202
|
+
id: EmailDomainId,
|
|
203
|
+
domain: Schema$1.String
|
|
204
|
+
}).annotate({ identifier: "DomainWarmingDomainRef" });
|
|
205
|
+
const BlockPage = /* @__PURE__ */ Schema$1.Struct({
|
|
206
|
+
items: Schema$1.Array(Schema$1.Struct({
|
|
207
|
+
id: BlockedEmailId,
|
|
208
|
+
blockType: Schema$1.Union([Schema$1.Literal("email"), Schema$1.Literal("domain")]),
|
|
209
|
+
blockValue: Schema$1.String,
|
|
210
|
+
reason: Schema$1.String,
|
|
211
|
+
notes: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
212
|
+
isActive: Schema$1.Boolean,
|
|
213
|
+
blockCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
214
|
+
lastBlockedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
215
|
+
expiresAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
216
|
+
createdAt: Schema$1.String
|
|
217
|
+
})),
|
|
218
|
+
nextCursor: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
219
|
+
}).annotate({ identifier: "BlockPage" });
|
|
220
|
+
const BlockLogPage = /* @__PURE__ */ Schema$1.Struct({
|
|
221
|
+
items: Schema$1.Array(Schema$1.Struct({
|
|
222
|
+
id: BlockedEmailLogId,
|
|
223
|
+
fromAddress: Schema$1.String,
|
|
224
|
+
toAddress: Schema$1.String,
|
|
225
|
+
subject: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
226
|
+
blockType: Schema$1.Union([Schema$1.Literal("email"), Schema$1.Literal("domain")]),
|
|
227
|
+
blockValue: Schema$1.String,
|
|
228
|
+
blockReason: Schema$1.String,
|
|
229
|
+
spfResult: Schema$1.Union([Schema$1.Union([
|
|
230
|
+
Schema$1.Literal("pass"),
|
|
231
|
+
Schema$1.Literal("fail"),
|
|
232
|
+
Schema$1.Literal("softfail"),
|
|
233
|
+
Schema$1.Literal("neutral"),
|
|
234
|
+
Schema$1.Literal("none"),
|
|
235
|
+
Schema$1.Literal("policy"),
|
|
236
|
+
Schema$1.Literal("temperror"),
|
|
237
|
+
Schema$1.Literal("permerror")
|
|
238
|
+
]), Schema$1.Null]),
|
|
239
|
+
dkimResult: Schema$1.Union([Schema$1.Union([
|
|
240
|
+
Schema$1.Literal("pass"),
|
|
241
|
+
Schema$1.Literal("fail"),
|
|
242
|
+
Schema$1.Literal("softfail"),
|
|
243
|
+
Schema$1.Literal("neutral"),
|
|
244
|
+
Schema$1.Literal("none"),
|
|
245
|
+
Schema$1.Literal("policy"),
|
|
246
|
+
Schema$1.Literal("temperror"),
|
|
247
|
+
Schema$1.Literal("permerror")
|
|
248
|
+
]), Schema$1.Null]),
|
|
249
|
+
dmarcResult: Schema$1.Union([Schema$1.Union([
|
|
250
|
+
Schema$1.Literal("pass"),
|
|
251
|
+
Schema$1.Literal("fail"),
|
|
252
|
+
Schema$1.Literal("softfail"),
|
|
253
|
+
Schema$1.Literal("neutral"),
|
|
254
|
+
Schema$1.Literal("none"),
|
|
255
|
+
Schema$1.Literal("policy"),
|
|
256
|
+
Schema$1.Literal("temperror"),
|
|
257
|
+
Schema$1.Literal("permerror")
|
|
258
|
+
]), Schema$1.Null]),
|
|
259
|
+
blockedAt: Schema$1.String
|
|
260
|
+
})),
|
|
261
|
+
nextCursor: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
262
|
+
}).annotate({ identifier: "BlockLogPage" });
|
|
263
|
+
const ReceivingStatus = /* @__PURE__ */ Schema$1.Struct({
|
|
264
|
+
domain: Schema$1.String,
|
|
265
|
+
receivingHost: Schema$1.String,
|
|
266
|
+
sending: Schema$1.Struct({
|
|
267
|
+
satisfied: Schema$1.Boolean,
|
|
268
|
+
phase: Schema$1.Union([
|
|
269
|
+
Schema$1.Literal("dns-setup"),
|
|
270
|
+
Schema$1.Literal("provisioning"),
|
|
271
|
+
Schema$1.Literal("verifying"),
|
|
272
|
+
Schema$1.Literal("ready"),
|
|
273
|
+
Schema$1.Literal("degraded"),
|
|
274
|
+
Schema$1.Literal("failed")
|
|
275
|
+
])
|
|
276
|
+
}),
|
|
277
|
+
destination: Schema$1.Struct({
|
|
278
|
+
satisfied: Schema$1.Boolean,
|
|
279
|
+
endpointId: Schema$1.Union([WebhookEndpointId, Schema$1.Null]),
|
|
280
|
+
forwardingRules: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
281
|
+
mailboxes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
282
|
+
}),
|
|
283
|
+
receiving: Schema$1.Struct({
|
|
284
|
+
satisfied: Schema$1.Boolean,
|
|
285
|
+
catchAll: Schema$1.Boolean
|
|
286
|
+
}),
|
|
287
|
+
mx: Schema$1.Struct({
|
|
288
|
+
satisfied: Schema$1.Boolean,
|
|
289
|
+
state: Schema$1.Union([
|
|
290
|
+
Schema$1.Literal("pointing-here"),
|
|
291
|
+
Schema$1.Literal("elsewhere"),
|
|
292
|
+
Schema$1.Literal("missing"),
|
|
293
|
+
Schema$1.Literal("unknown")
|
|
294
|
+
]),
|
|
295
|
+
expected: Schema$1.Struct({
|
|
296
|
+
exchange: Schema$1.String,
|
|
297
|
+
priority: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
298
|
+
}),
|
|
299
|
+
current: Schema$1.Array(Schema$1.Struct({
|
|
300
|
+
exchange: Schema$1.String,
|
|
301
|
+
priority: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
302
|
+
}))
|
|
303
|
+
}),
|
|
304
|
+
ready: Schema$1.Boolean
|
|
305
|
+
}).annotate({ identifier: "ReceivingStatus" });
|
|
306
|
+
const EmailDomainPage = /* @__PURE__ */ Schema$1.Struct({
|
|
307
|
+
items: Schema$1.Array(Schema$1.Struct({
|
|
308
|
+
id: EmailDomainId,
|
|
309
|
+
domain: Schema$1.String,
|
|
310
|
+
phase: Schema$1.Union([
|
|
311
|
+
Schema$1.Literal("dns-setup"),
|
|
312
|
+
Schema$1.Literal("provisioning"),
|
|
313
|
+
Schema$1.Literal("verifying"),
|
|
314
|
+
Schema$1.Literal("ready"),
|
|
315
|
+
Schema$1.Literal("degraded"),
|
|
316
|
+
Schema$1.Literal("failed")
|
|
317
|
+
]),
|
|
318
|
+
dkimSelector: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
319
|
+
dkimPublicKey: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
320
|
+
isDefault: Schema$1.Boolean,
|
|
321
|
+
deliverability: DeliverabilityFacts,
|
|
322
|
+
series: SendsSeries,
|
|
323
|
+
createdAt: Schema$1.String,
|
|
324
|
+
updatedAt: Schema$1.String
|
|
325
|
+
})),
|
|
326
|
+
nextCursor: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
327
|
+
}).annotate({ identifier: "EmailDomainPage" });
|
|
328
|
+
const EmailDomainDetailed = /* @__PURE__ */ Schema$1.Struct({
|
|
329
|
+
id: EmailDomainId,
|
|
330
|
+
domain: Schema$1.String,
|
|
331
|
+
phase: Schema$1.Union([
|
|
332
|
+
Schema$1.Literal("dns-setup"),
|
|
333
|
+
Schema$1.Literal("provisioning"),
|
|
334
|
+
Schema$1.Literal("verifying"),
|
|
335
|
+
Schema$1.Literal("ready"),
|
|
336
|
+
Schema$1.Literal("degraded"),
|
|
337
|
+
Schema$1.Literal("failed")
|
|
338
|
+
]),
|
|
339
|
+
dkimSelector: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
340
|
+
dkimPublicKey: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
341
|
+
dnsRecords: Schema$1.Array(Schema$1.Struct({
|
|
342
|
+
type: Schema$1.Union([
|
|
343
|
+
Schema$1.Literal("A"),
|
|
344
|
+
Schema$1.Literal("AAAA"),
|
|
345
|
+
Schema$1.Literal("CNAME"),
|
|
346
|
+
Schema$1.Literal("MX"),
|
|
347
|
+
Schema$1.Literal("NS"),
|
|
348
|
+
Schema$1.Literal("SOA"),
|
|
349
|
+
Schema$1.Literal("PTR"),
|
|
350
|
+
Schema$1.Literal("SRV"),
|
|
351
|
+
Schema$1.Literal("TXT"),
|
|
352
|
+
Schema$1.Literal("CAA")
|
|
353
|
+
]),
|
|
354
|
+
name: Schema$1.String,
|
|
355
|
+
value: Schema$1.String,
|
|
356
|
+
ttl: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
357
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
358
|
+
priority: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null]))
|
|
359
|
+
})),
|
|
360
|
+
verifiedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
361
|
+
isDefault: Schema$1.Boolean,
|
|
362
|
+
deliverability: DeliverabilityFacts,
|
|
363
|
+
createdAt: Schema$1.String,
|
|
364
|
+
updatedAt: Schema$1.String
|
|
365
|
+
}).annotate({ identifier: "EmailDomainDetailed" });
|
|
366
|
+
const CustomTrackingStatus = /* @__PURE__ */ Schema$1.Struct({
|
|
367
|
+
enabled: Schema$1.Boolean,
|
|
368
|
+
customTracking: Schema$1.Union([Schema$1.Struct({
|
|
369
|
+
status: Schema$1.Union([
|
|
370
|
+
Schema$1.Literal("pending"),
|
|
371
|
+
Schema$1.Literal("caa-blocked"),
|
|
372
|
+
Schema$1.Literal("active"),
|
|
373
|
+
Schema$1.Literal("teardown-scheduled"),
|
|
374
|
+
Schema$1.Literal("disabled")
|
|
375
|
+
]),
|
|
376
|
+
label: Schema$1.String,
|
|
377
|
+
hostname: Schema$1.String,
|
|
378
|
+
region: Schema$1.String,
|
|
379
|
+
sslStatus: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
380
|
+
certificate: Schema$1.Union([CustomTrackingCertificate, Schema$1.Null]),
|
|
381
|
+
dnsRecords: Schema$1.Struct({
|
|
382
|
+
tracking: Schema$1.Union([CustomTrackingDnsRecord, Schema$1.Null]),
|
|
383
|
+
dcvDelegation: Schema$1.Union([CustomTrackingDnsRecord, Schema$1.Null])
|
|
384
|
+
}),
|
|
385
|
+
caaBlocked: Schema$1.Boolean,
|
|
386
|
+
verificationErrors: Schema$1.Array(Schema$1.String),
|
|
387
|
+
teardownScheduledAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
388
|
+
}), Schema$1.Null])
|
|
389
|
+
}).annotate({ identifier: "CustomTrackingStatus" });
|
|
390
|
+
const DomainWarmingPlan = /* @__PURE__ */ Schema$1.Struct({
|
|
391
|
+
id: EmailDomainWarmingPlanId,
|
|
392
|
+
status: Schema$1.Union([
|
|
393
|
+
Schema$1.Literal("active"),
|
|
394
|
+
Schema$1.Literal("paused"),
|
|
395
|
+
Schema$1.Literal("completed")
|
|
396
|
+
]),
|
|
397
|
+
identity: Schema$1.Union([
|
|
398
|
+
Schema$1.Literal("new"),
|
|
399
|
+
Schema$1.Literal("migrating"),
|
|
400
|
+
Schema$1.Literal("returning")
|
|
401
|
+
]),
|
|
402
|
+
initialDailyRecipients: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
403
|
+
dailyGrowthPercent: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
404
|
+
targetDailyRecipients: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
405
|
+
holdReason: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
406
|
+
heldAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
407
|
+
pausedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
408
|
+
completedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
409
|
+
createdAt: Schema$1.String,
|
|
410
|
+
updatedAt: Schema$1.String
|
|
411
|
+
}).annotate({ identifier: "DomainWarmingPlan" });
|
|
412
|
+
const DomainWarmingBatch = /* @__PURE__ */ Schema$1.Struct({
|
|
413
|
+
id: EmailDomainWarmingBatchId,
|
|
414
|
+
sequence: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
415
|
+
state: Schema$1.Union([
|
|
416
|
+
Schema$1.Literal("scheduled"),
|
|
417
|
+
Schema$1.Literal("open"),
|
|
418
|
+
Schema$1.Literal("closed"),
|
|
419
|
+
Schema$1.Literal("cancelled")
|
|
420
|
+
]),
|
|
421
|
+
startsAt: Schema$1.String,
|
|
422
|
+
endsAt: Schema$1.String,
|
|
423
|
+
allowanceRecipients: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
424
|
+
dailyGrowthPercent: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
425
|
+
targetDailyRecipients: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
426
|
+
reservedRecipients: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
427
|
+
acceptedRecipients: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
428
|
+
cancelledAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
429
|
+
createdAt: Schema$1.String
|
|
430
|
+
}).annotate({ identifier: "DomainWarmingBatch" });
|
|
431
|
+
const DomainWarmingDecision = /* @__PURE__ */ Schema$1.Struct({
|
|
432
|
+
id: EmailDomainWarmingDecisionId,
|
|
433
|
+
kind: Schema$1.Union([
|
|
434
|
+
Schema$1.Literal("plan-created"),
|
|
435
|
+
Schema$1.Literal("policy-updated"),
|
|
436
|
+
Schema$1.Literal("window-opened"),
|
|
437
|
+
Schema$1.Literal("window-cancelled"),
|
|
438
|
+
Schema$1.Literal("paused"),
|
|
439
|
+
Schema$1.Literal("resumed"),
|
|
440
|
+
Schema$1.Literal("held"),
|
|
441
|
+
Schema$1.Literal("completed")
|
|
442
|
+
]),
|
|
443
|
+
batchId: Schema$1.Union([EmailDomainWarmingBatchId, Schema$1.Null]),
|
|
444
|
+
actor: Schema$1.String,
|
|
445
|
+
note: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
446
|
+
createdAt: Schema$1.String
|
|
447
|
+
}).annotate({ identifier: "DomainWarmingDecision" });
|
|
448
|
+
const DomainWarmingEvidence = /* @__PURE__ */ Schema$1.Struct({
|
|
449
|
+
observedAt: Schema$1.String,
|
|
450
|
+
windowHours: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
451
|
+
minimumSends: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
452
|
+
sent: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
453
|
+
bounced: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
454
|
+
complained: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
455
|
+
hourly: Schema$1.Array(DomainWarmingWindowHour),
|
|
456
|
+
bounceThreshold: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
457
|
+
complaintThreshold: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
458
|
+
verdict: Schema$1.Union([
|
|
459
|
+
Schema$1.Literal("insufficient-evidence"),
|
|
460
|
+
Schema$1.Literal("healthy"),
|
|
461
|
+
Schema$1.Literal("over-threshold")
|
|
462
|
+
]),
|
|
463
|
+
thresholdReason: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
464
|
+
}).annotate({ identifier: "DomainWarmingEvidence" });
|
|
465
|
+
const ForwardingRuleList = /* @__PURE__ */ Schema$1.Struct({ items: Schema$1.Array(Schema$1.Struct({
|
|
466
|
+
id: EmailForwardingRuleId,
|
|
467
|
+
name: Schema$1.String,
|
|
468
|
+
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
469
|
+
domainId: Schema$1.Union([EmailDomainId, Schema$1.Null]),
|
|
470
|
+
sourcePattern: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
471
|
+
forwardTo: Schema$1.Array(Schema$1.String),
|
|
472
|
+
preserveHeaders: Schema$1.Boolean,
|
|
473
|
+
priority: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(2147483647).annotate({ expected: "a value less than or equal to 2147483647" })),
|
|
474
|
+
isActive: Schema$1.Boolean,
|
|
475
|
+
forwardCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
476
|
+
failureCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
477
|
+
lastForwardedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
478
|
+
createdAt: Schema$1.String
|
|
479
|
+
})).check(Schema$1.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })) }).annotate({ identifier: "ForwardingRuleList" });
|
|
480
|
+
const ForwardingLogPage = /* @__PURE__ */ Schema$1.Struct({
|
|
481
|
+
items: Schema$1.Array(Schema$1.Struct({
|
|
482
|
+
id: Schema$1.String,
|
|
483
|
+
forwardingRuleId: Schema$1.Union([EmailForwardingRuleId, Schema$1.Null]),
|
|
484
|
+
originalFromAddress: Schema$1.String,
|
|
485
|
+
originalToAddress: Schema$1.String,
|
|
486
|
+
originalSubject: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
487
|
+
forwardedTo: Schema$1.Array(Schema$1.String),
|
|
488
|
+
status: Schema$1.Union([
|
|
489
|
+
Schema$1.Literal("pending"),
|
|
490
|
+
Schema$1.Literal("forwarded"),
|
|
491
|
+
Schema$1.Literal("failed")
|
|
492
|
+
]),
|
|
493
|
+
errorMessage: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
494
|
+
messageId: Schema$1.Union([MessageId, Schema$1.Null]),
|
|
495
|
+
forwardedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
496
|
+
createdAt: Schema$1.String
|
|
497
|
+
})),
|
|
498
|
+
nextCursor: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
499
|
+
}).annotate({ identifier: "ForwardingLogPage" });
|
|
500
|
+
const OnboardingReviewStatus = /* @__PURE__ */ Schema$1.Struct({
|
|
501
|
+
decision: Schema$1.Union([
|
|
502
|
+
Schema$1.Literal("undecided"),
|
|
503
|
+
Schema$1.Literal("approved"),
|
|
504
|
+
Schema$1.Literal("rejected")
|
|
505
|
+
]),
|
|
506
|
+
trustTier: Schema$1.Union([
|
|
507
|
+
Schema$1.Literal("screened"),
|
|
508
|
+
Schema$1.Literal("probation"),
|
|
509
|
+
Schema$1.Literal("established")
|
|
510
|
+
]),
|
|
511
|
+
stage: Schema$1.Union([
|
|
512
|
+
Schema$1.Literal("collecting"),
|
|
513
|
+
Schema$1.Literal("automated_review"),
|
|
514
|
+
Schema$1.Literal("manual_review"),
|
|
515
|
+
Schema$1.Literal("information_requested"),
|
|
516
|
+
Schema$1.Literal("complete")
|
|
517
|
+
]),
|
|
518
|
+
generation: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })),
|
|
519
|
+
canSend: Schema$1.Boolean,
|
|
520
|
+
code: Schema$1.Union([Schema$1.Union([
|
|
521
|
+
Schema$1.Literal("review_required"),
|
|
522
|
+
Schema$1.Literal("review_in_progress"),
|
|
523
|
+
Schema$1.Literal("information_required"),
|
|
524
|
+
Schema$1.Literal("review_rejected"),
|
|
525
|
+
Schema$1.Literal("identity_review_required"),
|
|
526
|
+
Schema$1.Literal("identity_review_rejected"),
|
|
527
|
+
Schema$1.Literal("identity_changed")
|
|
528
|
+
]), Schema$1.Null]),
|
|
529
|
+
nextAction: Schema$1.Union([Schema$1.Union([
|
|
530
|
+
Schema$1.Literal("wait_for_review"),
|
|
531
|
+
Schema$1.Literal("provide_information"),
|
|
532
|
+
Schema$1.Literal("verify_sending_identity"),
|
|
533
|
+
Schema$1.Literal("reapply"),
|
|
534
|
+
Schema$1.Literal("contact_support")
|
|
535
|
+
]), Schema$1.Null]),
|
|
536
|
+
canReapply: Schema$1.Boolean,
|
|
537
|
+
informationRequest: Schema$1.Union([Schema$1.Struct({
|
|
538
|
+
id: Schema$1.String,
|
|
539
|
+
requestedFields: Schema$1.Array(Schema$1.String),
|
|
540
|
+
requestedAt: Schema$1.String,
|
|
541
|
+
canRespond: Schema$1.Boolean
|
|
542
|
+
}), Schema$1.Null]),
|
|
543
|
+
identities: Schema$1.Array(IdentityClearanceStatus),
|
|
544
|
+
updatedAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
545
|
+
}).annotate({ identifier: "OnboardingReviewStatus" });
|
|
546
|
+
const EmailSenderPage = /* @__PURE__ */ Schema$1.Struct({
|
|
547
|
+
items: Schema$1.Array(Schema$1.Struct({
|
|
548
|
+
id: EmailSenderId,
|
|
549
|
+
organizationId: Schema$1.String,
|
|
550
|
+
email: Schema$1.String,
|
|
551
|
+
name: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
552
|
+
domainId: Schema$1.Union([EmailDomainId, Schema$1.Null]),
|
|
553
|
+
verificationStatus: Schema$1.Union([
|
|
554
|
+
Schema$1.Literal("pending"),
|
|
555
|
+
Schema$1.Literal("verified"),
|
|
556
|
+
Schema$1.Literal("failed")
|
|
557
|
+
]),
|
|
558
|
+
verifiedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
559
|
+
verificationToken: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
560
|
+
providerLifecycle: Schema$1.Union([
|
|
561
|
+
Schema$1.Literal("provisioning"),
|
|
562
|
+
Schema$1.Literal("active"),
|
|
563
|
+
Schema$1.Literal("deleting"),
|
|
564
|
+
Schema$1.Literal("failed")
|
|
565
|
+
]),
|
|
566
|
+
providerFailureCode: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
567
|
+
isDefault: Schema$1.Boolean,
|
|
568
|
+
replyToEmails: Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]),
|
|
569
|
+
deliverability: DeliverabilityFacts,
|
|
570
|
+
series: SendsSeries,
|
|
571
|
+
isActive: Schema$1.Boolean,
|
|
572
|
+
createdAt: Schema$1.String,
|
|
573
|
+
updatedAt: Schema$1.String
|
|
574
|
+
})),
|
|
575
|
+
nextCursor: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
576
|
+
}).annotate({ identifier: "EmailSenderPage" });
|
|
577
|
+
const SuppressionEntry = /* @__PURE__ */ Schema$1.Struct({
|
|
578
|
+
id: SuppressionId,
|
|
579
|
+
email: Schema$1.String,
|
|
580
|
+
type: Schema$1.Union([
|
|
581
|
+
Schema$1.Literal("bounce"),
|
|
582
|
+
Schema$1.Literal("complaint"),
|
|
583
|
+
Schema$1.Literal("unsubscribe"),
|
|
584
|
+
Schema$1.Literal("manual")
|
|
585
|
+
]),
|
|
586
|
+
bounceType: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
587
|
+
bounceSubType: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
588
|
+
reason: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
589
|
+
messageId: Schema$1.Union([MessageId, Schema$1.Null]),
|
|
590
|
+
isActive: Schema$1.Boolean,
|
|
591
|
+
expiresAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
592
|
+
createdAt: Schema$1.String
|
|
593
|
+
}).annotate({ identifier: "SuppressionEntry" });
|
|
594
|
+
const EmailRecipientTrackingPreference = /* @__PURE__ */ Schema$1.Struct({
|
|
595
|
+
email: TrackingRecipientEmail,
|
|
596
|
+
optedOut: Schema$1.Boolean,
|
|
597
|
+
trackingOptedOutAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
598
|
+
createdAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
599
|
+
updatedAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
600
|
+
}).annotate({ identifier: "EmailRecipientTrackingPreference" });
|
|
601
|
+
const EmailDomainVerification = /* @__PURE__ */ Schema$1.Struct({
|
|
602
|
+
domainId: EmailDomainId,
|
|
603
|
+
domain: Schema$1.String,
|
|
604
|
+
phase: Schema$1.Union([
|
|
605
|
+
Schema$1.Literal("dns-setup"),
|
|
606
|
+
Schema$1.Literal("provisioning"),
|
|
607
|
+
Schema$1.Literal("verifying"),
|
|
608
|
+
Schema$1.Literal("ready"),
|
|
609
|
+
Schema$1.Literal("degraded"),
|
|
610
|
+
Schema$1.Literal("failed")
|
|
611
|
+
]),
|
|
612
|
+
dns: Schema$1.Struct({
|
|
613
|
+
observed: Schema$1.Boolean,
|
|
614
|
+
total: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })),
|
|
615
|
+
satisfied: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })),
|
|
616
|
+
missing: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })),
|
|
617
|
+
mismatch: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })),
|
|
618
|
+
unknown: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" }))
|
|
619
|
+
}),
|
|
620
|
+
requirements: Schema$1.Array(Schema$1.Struct({
|
|
621
|
+
key: Schema$1.String,
|
|
622
|
+
record: Schema$1.Struct({
|
|
623
|
+
type: Schema$1.Union([
|
|
624
|
+
Schema$1.Literal("A"),
|
|
625
|
+
Schema$1.Literal("AAAA"),
|
|
626
|
+
Schema$1.Literal("CNAME"),
|
|
627
|
+
Schema$1.Literal("MX"),
|
|
628
|
+
Schema$1.Literal("NS"),
|
|
629
|
+
Schema$1.Literal("SOA"),
|
|
630
|
+
Schema$1.Literal("PTR"),
|
|
631
|
+
Schema$1.Literal("SRV"),
|
|
632
|
+
Schema$1.Literal("TXT"),
|
|
633
|
+
Schema$1.Literal("CAA")
|
|
634
|
+
]),
|
|
635
|
+
name: Schema$1.String,
|
|
636
|
+
value: Schema$1.String,
|
|
637
|
+
ttl: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
638
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
639
|
+
priority: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null]))
|
|
640
|
+
}),
|
|
641
|
+
status: Schema$1.Union([
|
|
642
|
+
Schema$1.Literal("satisfied"),
|
|
643
|
+
Schema$1.Literal("missing"),
|
|
644
|
+
Schema$1.Literal("mismatch"),
|
|
645
|
+
Schema$1.Literal("unknown")
|
|
646
|
+
]),
|
|
647
|
+
evidence: Schema$1.Array(Schema$1.Union([
|
|
648
|
+
Schema$1.Struct({
|
|
649
|
+
_tag: Schema$1.Literal("PublicDns"),
|
|
650
|
+
resolver: Schema$1.String,
|
|
651
|
+
status: Schema$1.Union([
|
|
652
|
+
Schema$1.Literal("satisfied"),
|
|
653
|
+
Schema$1.Literal("missing"),
|
|
654
|
+
Schema$1.Literal("mismatch"),
|
|
655
|
+
Schema$1.Literal("unknown")
|
|
656
|
+
]),
|
|
657
|
+
values: Schema$1.Array(Schema$1.String),
|
|
658
|
+
detail: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
659
|
+
observedAt: Schema$1.String
|
|
660
|
+
}),
|
|
661
|
+
Schema$1.Struct({
|
|
662
|
+
_tag: Schema$1.Literal("Provider"),
|
|
663
|
+
provider: Schema$1.String,
|
|
664
|
+
status: Schema$1.Union([
|
|
665
|
+
Schema$1.Literal("satisfied"),
|
|
666
|
+
Schema$1.Literal("missing"),
|
|
667
|
+
Schema$1.Literal("mismatch"),
|
|
668
|
+
Schema$1.Literal("unknown")
|
|
669
|
+
]),
|
|
670
|
+
values: Schema$1.Array(Schema$1.String),
|
|
671
|
+
detail: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
672
|
+
observedAt: Schema$1.String
|
|
673
|
+
}),
|
|
674
|
+
Schema$1.Struct({
|
|
675
|
+
_tag: Schema$1.Literal("Host"),
|
|
676
|
+
source: Schema$1.String,
|
|
677
|
+
status: Schema$1.Union([
|
|
678
|
+
Schema$1.Literal("ok"),
|
|
679
|
+
Schema$1.Literal("pending"),
|
|
680
|
+
Schema$1.Literal("failed")
|
|
681
|
+
]),
|
|
682
|
+
label: Schema$1.String,
|
|
683
|
+
detail: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
684
|
+
observedAt: Schema$1.String
|
|
685
|
+
})
|
|
686
|
+
]))
|
|
687
|
+
})),
|
|
688
|
+
provider: Schema$1.Union([Schema$1.Struct({
|
|
689
|
+
identity: Schema$1.Union([
|
|
690
|
+
Schema$1.Literal("pending"),
|
|
691
|
+
Schema$1.Literal("verified"),
|
|
692
|
+
Schema$1.Literal("failed"),
|
|
693
|
+
Schema$1.Literal("unknown")
|
|
694
|
+
]),
|
|
695
|
+
dkim: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([
|
|
696
|
+
Schema$1.Literal("pending"),
|
|
697
|
+
Schema$1.Literal("verified"),
|
|
698
|
+
Schema$1.Literal("failed"),
|
|
699
|
+
Schema$1.Literal("unknown")
|
|
700
|
+
]), Schema$1.Null])),
|
|
701
|
+
mailFrom: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([
|
|
702
|
+
Schema$1.Literal("pending"),
|
|
703
|
+
Schema$1.Literal("verified"),
|
|
704
|
+
Schema$1.Literal("failed"),
|
|
705
|
+
Schema$1.Literal("unknown")
|
|
706
|
+
]), Schema$1.Null]))
|
|
707
|
+
}), Schema$1.Null]),
|
|
708
|
+
operationId: Schema$1.Union([OperationId, Schema$1.Null]),
|
|
709
|
+
checkedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
710
|
+
nextCheckAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
711
|
+
failure: Schema$1.Union([Schema$1.Struct({
|
|
712
|
+
code: Schema$1.String,
|
|
713
|
+
message: Schema$1.String,
|
|
714
|
+
failedAt: Schema$1.String
|
|
715
|
+
}), Schema$1.Null]),
|
|
716
|
+
provisioning: EmailDomainProvisioningExecution,
|
|
717
|
+
health: Schema$1.Struct({
|
|
718
|
+
actionOwner: Schema$1.Union([
|
|
719
|
+
Schema$1.Literal("customer"),
|
|
720
|
+
Schema$1.Literal("samva"),
|
|
721
|
+
Schema$1.Literal("upstream"),
|
|
722
|
+
Schema$1.Literal("none")
|
|
723
|
+
]),
|
|
724
|
+
action: Schema$1.String,
|
|
725
|
+
freshness: Schema$1.Union([
|
|
726
|
+
Schema$1.Literal("current"),
|
|
727
|
+
Schema$1.Literal("stale"),
|
|
728
|
+
Schema$1.Literal("unknown")
|
|
729
|
+
]),
|
|
730
|
+
observedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
731
|
+
staleAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
732
|
+
nextRetryAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
733
|
+
reason: Schema$1.Union([
|
|
734
|
+
Schema$1.Literal("ready"),
|
|
735
|
+
Schema$1.Literal("dns-action-required"),
|
|
736
|
+
Schema$1.Literal("dns-unavailable"),
|
|
737
|
+
Schema$1.Literal("verification-pending"),
|
|
738
|
+
Schema$1.Literal("verification-failed"),
|
|
739
|
+
Schema$1.Literal("samva-repair"),
|
|
740
|
+
Schema$1.Literal("signing-custody-action-required"),
|
|
741
|
+
Schema$1.Literal("ownership-conflict"),
|
|
742
|
+
Schema$1.Literal("inactive"),
|
|
743
|
+
Schema$1.Literal("observation-stale"),
|
|
744
|
+
Schema$1.Literal("observation-unknown")
|
|
745
|
+
])
|
|
746
|
+
}),
|
|
747
|
+
sending: Schema$1.Struct({
|
|
748
|
+
actionOwner: Schema$1.Union([
|
|
749
|
+
Schema$1.Literal("customer"),
|
|
750
|
+
Schema$1.Literal("samva"),
|
|
751
|
+
Schema$1.Literal("upstream"),
|
|
752
|
+
Schema$1.Literal("none")
|
|
753
|
+
]),
|
|
754
|
+
action: Schema$1.String,
|
|
755
|
+
freshness: Schema$1.Union([
|
|
756
|
+
Schema$1.Literal("current"),
|
|
757
|
+
Schema$1.Literal("stale"),
|
|
758
|
+
Schema$1.Literal("unknown")
|
|
759
|
+
]),
|
|
760
|
+
observedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
761
|
+
staleAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
762
|
+
nextRetryAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
763
|
+
status: Schema$1.Union([
|
|
764
|
+
Schema$1.Literal("ready"),
|
|
765
|
+
Schema$1.Literal("blocked"),
|
|
766
|
+
Schema$1.Literal("unknown")
|
|
767
|
+
]),
|
|
768
|
+
reason: Schema$1.Union([
|
|
769
|
+
Schema$1.Literal("domain-not-ready"),
|
|
770
|
+
Schema$1.Literal("domain-observation-stale"),
|
|
771
|
+
Schema$1.Literal("operator-paused"),
|
|
772
|
+
Schema$1.Literal("sending-paused"),
|
|
773
|
+
Schema$1.Literal("sending-status-unknown"),
|
|
774
|
+
Schema$1.Literal("ready")
|
|
775
|
+
])
|
|
776
|
+
}).annotate({ description: "Whether the domain, the organization, and its sending account are healthy enough to send, as last observed. Ready does not guarantee that a particular send is accepted." }),
|
|
777
|
+
dmarc: Schema$1.Struct({
|
|
778
|
+
status: Schema$1.Union([
|
|
779
|
+
Schema$1.Literal("valid"),
|
|
780
|
+
Schema$1.Literal("missing"),
|
|
781
|
+
Schema$1.Literal("invalid"),
|
|
782
|
+
Schema$1.Literal("multiple"),
|
|
783
|
+
Schema$1.Literal("unknown")
|
|
784
|
+
]),
|
|
785
|
+
source: Schema$1.Union([
|
|
786
|
+
Schema$1.Literal("direct"),
|
|
787
|
+
Schema$1.Literal("organizational"),
|
|
788
|
+
Schema$1.Literal("none")
|
|
789
|
+
]),
|
|
790
|
+
policyDomain: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
791
|
+
policy: Schema$1.Union([Schema$1.Union([
|
|
792
|
+
Schema$1.Literal("none"),
|
|
793
|
+
Schema$1.Literal("quarantine"),
|
|
794
|
+
Schema$1.Literal("reject")
|
|
795
|
+
]), Schema$1.Null]),
|
|
796
|
+
subdomainPolicy: Schema$1.Union([Schema$1.Union([
|
|
797
|
+
Schema$1.Literal("none"),
|
|
798
|
+
Schema$1.Literal("quarantine"),
|
|
799
|
+
Schema$1.Literal("reject")
|
|
800
|
+
]), Schema$1.Null]),
|
|
801
|
+
effectivePolicy: Schema$1.Union([Schema$1.Union([
|
|
802
|
+
Schema$1.Literal("none"),
|
|
803
|
+
Schema$1.Literal("quarantine"),
|
|
804
|
+
Schema$1.Literal("reject")
|
|
805
|
+
]), Schema$1.Null]),
|
|
806
|
+
observedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
807
|
+
staleAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
808
|
+
guidance: Schema$1.String
|
|
809
|
+
}),
|
|
810
|
+
rotation: Schema$1.Union([EmailDkimRotation, Schema$1.Null])
|
|
811
|
+
}).annotate({ identifier: "EmailDomainVerification" });
|
|
812
|
+
const DomainWarming = /* @__PURE__ */ Schema$1.Struct({
|
|
813
|
+
domain: DomainWarmingDomainRef,
|
|
814
|
+
plan: Schema$1.Union([DomainWarmingPlan, Schema$1.Null]),
|
|
815
|
+
batches: Schema$1.Array(DomainWarmingBatch),
|
|
816
|
+
decisions: Schema$1.Array(DomainWarmingDecision),
|
|
817
|
+
evidence: DomainWarmingEvidence,
|
|
818
|
+
holds: DomainWarmingHolds
|
|
819
|
+
}).annotate({ identifier: "DomainWarming" });
|
|
820
|
+
const SuppressionPage = /* @__PURE__ */ Schema$1.Struct({
|
|
821
|
+
items: Schema$1.Array(SuppressionEntry),
|
|
822
|
+
nextCursor: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
823
|
+
}).annotate({ identifier: "SuppressionPage" });
|
|
824
|
+
const EmailListBlocksQuery = /* @__PURE__ */ Schema$1.Struct({
|
|
825
|
+
blockType: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literal("email"), Schema$1.Literal("domain")]), Schema$1.Null])),
|
|
826
|
+
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.annotate({ contentMediaType: "application/json" }), Schema$1.Null])),
|
|
827
|
+
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
828
|
+
cursor: Schema$1.optionalKey(Schema$1.Union([Cursor, Schema$1.Null]))
|
|
829
|
+
});
|
|
830
|
+
const EmailListBlocks200 = BlockPage;
|
|
831
|
+
const EmailListBlocks401 = UnauthorizedError;
|
|
832
|
+
const EmailListBlocks403 = ForbiddenError;
|
|
833
|
+
const EmailListBlocks422 = ValidationError;
|
|
834
|
+
const EmailListBlocks500 = InternalError;
|
|
835
|
+
const EmailListBlocks504 = GatewayTimeoutError;
|
|
836
|
+
const EmailAddBlockRequestJson = /* @__PURE__ */ Schema$1.Struct({
|
|
837
|
+
blockType: Schema$1.Union([Schema$1.Literal("email"), Schema$1.Literal("domain")]),
|
|
838
|
+
blockValue: Schema$1.String,
|
|
839
|
+
reason: Schema$1.String,
|
|
840
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
841
|
+
expiresAt: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
842
|
+
});
|
|
843
|
+
const EmailAddBlock201 = /* @__PURE__ */ Schema$1.Struct({
|
|
844
|
+
id: BlockedEmailId,
|
|
845
|
+
blockType: Schema$1.Union([Schema$1.Literal("email"), Schema$1.Literal("domain")]),
|
|
846
|
+
blockValue: Schema$1.String,
|
|
847
|
+
reason: Schema$1.String,
|
|
848
|
+
notes: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
849
|
+
isActive: Schema$1.Boolean,
|
|
850
|
+
expiresAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
851
|
+
createdAt: Schema$1.String
|
|
852
|
+
});
|
|
853
|
+
const EmailAddBlock401 = UnauthorizedError;
|
|
854
|
+
const EmailAddBlock403 = ForbiddenError;
|
|
855
|
+
const EmailAddBlock409 = ConflictError;
|
|
856
|
+
const EmailAddBlock422 = ValidationError;
|
|
857
|
+
const EmailAddBlock500 = InternalError;
|
|
858
|
+
const EmailAddBlock504 = GatewayTimeoutError;
|
|
859
|
+
const EmailRemoveBlockPathParams = /* @__PURE__ */ Schema$1.Struct({ id: BlockedEmailId });
|
|
860
|
+
const EmailRemoveBlock200 = SuccessResult;
|
|
861
|
+
const EmailRemoveBlock401 = UnauthorizedError;
|
|
862
|
+
const EmailRemoveBlock403 = ForbiddenError;
|
|
863
|
+
const EmailRemoveBlock404 = ResourceNotFoundError;
|
|
864
|
+
const EmailRemoveBlock422 = ValidationError;
|
|
865
|
+
const EmailRemoveBlock500 = InternalError;
|
|
866
|
+
const EmailRemoveBlock504 = GatewayTimeoutError;
|
|
867
|
+
const EmailUpdateBlockPathParams = /* @__PURE__ */ Schema$1.Struct({ id: BlockedEmailId });
|
|
868
|
+
const EmailUpdateBlockRequestJson = /* @__PURE__ */ Schema$1.Struct({
|
|
869
|
+
reason: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
870
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
871
|
+
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
872
|
+
expiresAt: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null]))
|
|
873
|
+
});
|
|
874
|
+
const EmailUpdateBlock200 = /* @__PURE__ */ Schema$1.Struct({
|
|
875
|
+
id: BlockedEmailId,
|
|
876
|
+
blockType: Schema$1.Union([Schema$1.Literal("email"), Schema$1.Literal("domain")]),
|
|
877
|
+
blockValue: Schema$1.String,
|
|
878
|
+
reason: Schema$1.String,
|
|
879
|
+
notes: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
880
|
+
isActive: Schema$1.Boolean,
|
|
881
|
+
expiresAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
882
|
+
updatedAt: Schema$1.String
|
|
883
|
+
});
|
|
884
|
+
const EmailUpdateBlock401 = UnauthorizedError;
|
|
885
|
+
const EmailUpdateBlock403 = ForbiddenError;
|
|
886
|
+
const EmailUpdateBlock404 = ResourceNotFoundError;
|
|
887
|
+
const EmailUpdateBlock422 = ValidationError;
|
|
888
|
+
const EmailUpdateBlock500 = InternalError;
|
|
889
|
+
const EmailUpdateBlock504 = GatewayTimeoutError;
|
|
890
|
+
const EmailCheckBlockedRequestJson = /* @__PURE__ */ Schema$1.Struct({ emailAddress: Schema$1.String });
|
|
891
|
+
const EmailCheckBlocked200 = /* @__PURE__ */ Schema$1.Struct({
|
|
892
|
+
isBlocked: Schema$1.Boolean,
|
|
893
|
+
blockingRule: Schema$1.Union([Schema$1.Struct({
|
|
894
|
+
id: BlockedEmailId,
|
|
895
|
+
blockType: Schema$1.Union([Schema$1.Literal("email"), Schema$1.Literal("domain")]),
|
|
896
|
+
blockValue: Schema$1.String,
|
|
897
|
+
reason: Schema$1.String,
|
|
898
|
+
expiresAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
899
|
+
}), Schema$1.Null]),
|
|
900
|
+
reason: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
901
|
+
});
|
|
902
|
+
const EmailCheckBlocked401 = UnauthorizedError;
|
|
903
|
+
const EmailCheckBlocked403 = ForbiddenError;
|
|
904
|
+
const EmailCheckBlocked422 = ValidationError;
|
|
905
|
+
const EmailCheckBlocked500 = InternalError;
|
|
906
|
+
const EmailCheckBlocked504 = GatewayTimeoutError;
|
|
907
|
+
const EmailGetBlockLogsQuery = /* @__PURE__ */ Schema$1.Struct({
|
|
908
|
+
blockedEmailId: Schema$1.optionalKey(Schema$1.Union([BlockedEmailId, Schema$1.Null])),
|
|
909
|
+
fromAddress: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
910
|
+
after: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
911
|
+
before: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
912
|
+
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
913
|
+
cursor: Schema$1.optionalKey(Schema$1.Union([Cursor, Schema$1.Null]))
|
|
914
|
+
});
|
|
915
|
+
const EmailGetBlockLogs200 = BlockLogPage;
|
|
916
|
+
const EmailGetBlockLogs401 = UnauthorizedError;
|
|
917
|
+
const EmailGetBlockLogs403 = ForbiddenError;
|
|
918
|
+
const EmailGetBlockLogs422 = ValidationError;
|
|
919
|
+
const EmailGetBlockLogs500 = InternalError;
|
|
920
|
+
const EmailGetBlockLogs504 = GatewayTimeoutError;
|
|
921
|
+
const EmailGetCatchAllConfigQuery = /* @__PURE__ */ Schema$1.Struct({ domainId: EmailDomainId });
|
|
922
|
+
const EmailGetCatchAllConfig200 = /* @__PURE__ */ Schema$1.Struct({
|
|
923
|
+
enabled: Schema$1.Boolean,
|
|
924
|
+
endpointId: Schema$1.Union([WebhookEndpointId, Schema$1.Null]),
|
|
925
|
+
emailCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
926
|
+
lastEmailAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
927
|
+
});
|
|
928
|
+
const EmailGetCatchAllConfig401 = UnauthorizedError;
|
|
929
|
+
const EmailGetCatchAllConfig403 = ForbiddenError;
|
|
930
|
+
const EmailGetCatchAllConfig404 = ResourceNotFoundError;
|
|
931
|
+
const EmailGetCatchAllConfig422 = ValidationError;
|
|
932
|
+
const EmailGetCatchAllConfig500 = InternalError;
|
|
933
|
+
const EmailGetCatchAllConfig504 = GatewayTimeoutError;
|
|
934
|
+
const EmailUpdateCatchAllConfigRequestJson = /* @__PURE__ */ Schema$1.Struct({
|
|
935
|
+
domainId: EmailDomainId,
|
|
936
|
+
endpointId: Schema$1.optionalKey(Schema$1.Union([WebhookEndpointId, Schema$1.Null]))
|
|
937
|
+
});
|
|
938
|
+
const EmailUpdateCatchAllConfig200 = /* @__PURE__ */ Schema$1.Struct({ success: Schema$1.Literal(true) });
|
|
939
|
+
const EmailUpdateCatchAllConfig401 = UnauthorizedError;
|
|
940
|
+
const EmailUpdateCatchAllConfig403 = ForbiddenError;
|
|
941
|
+
const EmailUpdateCatchAllConfig404 = ResourceNotFoundError;
|
|
942
|
+
const EmailUpdateCatchAllConfig422 = ValidationError;
|
|
943
|
+
const EmailUpdateCatchAllConfig500 = InternalError;
|
|
944
|
+
const EmailUpdateCatchAllConfig504 = GatewayTimeoutError;
|
|
945
|
+
const EmailGetCatchAllStatsQuery = /* @__PURE__ */ Schema$1.Struct({
|
|
946
|
+
domainId: EmailDomainId,
|
|
947
|
+
after: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
948
|
+
before: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
949
|
+
});
|
|
950
|
+
const EmailGetCatchAllStats200 = /* @__PURE__ */ Schema$1.Struct({
|
|
951
|
+
domain: Schema$1.String,
|
|
952
|
+
isCatchAllEnabled: Schema$1.Boolean,
|
|
953
|
+
catchAllEmailCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
954
|
+
catchAllLastEmailAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
955
|
+
timeRange: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
956
|
+
emailsReceived: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
957
|
+
firstEmail: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
958
|
+
lastEmail: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
959
|
+
avgPerDay: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))
|
|
960
|
+
}), Schema$1.Null]))
|
|
961
|
+
});
|
|
962
|
+
const EmailGetCatchAllStats401 = UnauthorizedError;
|
|
963
|
+
const EmailGetCatchAllStats403 = ForbiddenError;
|
|
964
|
+
const EmailGetCatchAllStats404 = ResourceNotFoundError;
|
|
965
|
+
const EmailGetCatchAllStats422 = ValidationError;
|
|
966
|
+
const EmailGetCatchAllStats500 = InternalError;
|
|
967
|
+
const EmailGetCatchAllStats504 = GatewayTimeoutError;
|
|
968
|
+
const EmailListDomainsQuery = /* @__PURE__ */ Schema$1.Struct({
|
|
969
|
+
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
970
|
+
cursor: Schema$1.optionalKey(Schema$1.Union([Cursor, Schema$1.Null])),
|
|
971
|
+
sendable: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literal("true"), Schema$1.Null]))
|
|
972
|
+
});
|
|
973
|
+
const EmailListDomains200 = EmailDomainPage;
|
|
974
|
+
const EmailListDomains401 = UnauthorizedError;
|
|
975
|
+
const EmailListDomains403 = ForbiddenError;
|
|
976
|
+
const EmailListDomains422 = ValidationError;
|
|
977
|
+
const EmailListDomains500 = InternalError;
|
|
978
|
+
const EmailListDomains504 = GatewayTimeoutError;
|
|
979
|
+
const EmailAddDomainRequestJson = /* @__PURE__ */ Schema$1.Struct({
|
|
980
|
+
domain: Schema$1.String,
|
|
981
|
+
connection: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
982
|
+
connectionId: Schema$1.String,
|
|
983
|
+
zone: Schema$1.String
|
|
984
|
+
}), Schema$1.Null]))
|
|
985
|
+
});
|
|
986
|
+
const EmailAddDomain201 = EmailDomainDetailed;
|
|
987
|
+
const EmailAddDomain401 = UnauthorizedError;
|
|
988
|
+
const EmailAddDomain402 = PaymentRequiredError;
|
|
989
|
+
const EmailAddDomain403 = ForbiddenError;
|
|
990
|
+
const EmailAddDomain409 = ConflictError;
|
|
991
|
+
const EmailAddDomain422 = ValidationError;
|
|
992
|
+
const EmailAddDomain429 = RateLimitedError;
|
|
993
|
+
const EmailAddDomain500 = InternalError;
|
|
994
|
+
const EmailAddDomain502 = /* @__PURE__ */ Schema$1.Union([EmailChannelError, BillingProviderError]);
|
|
995
|
+
const EmailAddDomain504 = GatewayTimeoutError;
|
|
996
|
+
const EmailGetDomainByIdPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
997
|
+
const EmailGetDomainById200 = EmailDomainDetailed;
|
|
998
|
+
const EmailGetDomainById401 = UnauthorizedError;
|
|
999
|
+
const EmailGetDomainById403 = ForbiddenError;
|
|
1000
|
+
const EmailGetDomainById404 = ResourceNotFoundError;
|
|
1001
|
+
const EmailGetDomainById422 = ValidationError;
|
|
1002
|
+
const EmailGetDomainById500 = InternalError;
|
|
1003
|
+
const EmailGetDomainById504 = GatewayTimeoutError;
|
|
1004
|
+
const EmailRemoveDomainPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1005
|
+
const EmailRemoveDomain200 = SuccessResult;
|
|
1006
|
+
const EmailRemoveDomain401 = UnauthorizedError;
|
|
1007
|
+
const EmailRemoveDomain403 = ForbiddenError;
|
|
1008
|
+
const EmailRemoveDomain404 = ResourceNotFoundError;
|
|
1009
|
+
const EmailRemoveDomain422 = ValidationError;
|
|
1010
|
+
const EmailRemoveDomain500 = InternalError;
|
|
1011
|
+
const EmailRemoveDomain502 = /* @__PURE__ */ Schema$1.Union([EmailChannelError, BillingProviderError]);
|
|
1012
|
+
const EmailRemoveDomain504 = GatewayTimeoutError;
|
|
1013
|
+
const EmailUpdateDomainConfigPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1014
|
+
const EmailUpdateDomainConfigRequestJson = /* @__PURE__ */ Schema$1.Struct({
|
|
1015
|
+
openTracking: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Boolean, Schema$1.Null]), Schema$1.Null])),
|
|
1016
|
+
clickTracking: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Boolean, Schema$1.Null]), Schema$1.Null])),
|
|
1017
|
+
replyTo: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
1018
|
+
unsubscribeGroupId: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([UnsubscribeId, Schema$1.Null]), Schema$1.Null])),
|
|
1019
|
+
footerEnabled: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Boolean, Schema$1.Null]), Schema$1.Null])),
|
|
1020
|
+
brandSlug: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })), Schema$1.Null]), Schema$1.Null]))
|
|
1021
|
+
});
|
|
1022
|
+
const EmailUpdateDomainConfig200 = /* @__PURE__ */ Schema$1.Struct({
|
|
1023
|
+
id: EmailDomainId,
|
|
1024
|
+
openTracking: Schema$1.Union([Schema$1.Boolean, Schema$1.Null]),
|
|
1025
|
+
clickTracking: Schema$1.Union([Schema$1.Boolean, Schema$1.Null]),
|
|
1026
|
+
replyTo: Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]),
|
|
1027
|
+
unsubscribeGroupId: Schema$1.Union([UnsubscribeId, Schema$1.Null]),
|
|
1028
|
+
footerEnabled: Schema$1.Union([Schema$1.Boolean, Schema$1.Null]),
|
|
1029
|
+
brandSlug: Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })), Schema$1.Null])
|
|
1030
|
+
});
|
|
1031
|
+
const EmailUpdateDomainConfig401 = UnauthorizedError;
|
|
1032
|
+
const EmailUpdateDomainConfig403 = ForbiddenError;
|
|
1033
|
+
const EmailUpdateDomainConfig404 = ResourceNotFoundError;
|
|
1034
|
+
const EmailUpdateDomainConfig422 = ValidationError;
|
|
1035
|
+
const EmailUpdateDomainConfig500 = InternalError;
|
|
1036
|
+
const EmailUpdateDomainConfig504 = GatewayTimeoutError;
|
|
1037
|
+
const EmailGetCustomTrackingPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1038
|
+
const EmailGetCustomTracking200 = CustomTrackingStatus;
|
|
1039
|
+
const EmailGetCustomTracking401 = UnauthorizedError;
|
|
1040
|
+
const EmailGetCustomTracking403 = ForbiddenError;
|
|
1041
|
+
const EmailGetCustomTracking422 = ValidationError;
|
|
1042
|
+
const EmailGetCustomTracking500 = InternalError;
|
|
1043
|
+
const EmailGetCustomTracking504 = GatewayTimeoutError;
|
|
1044
|
+
const EmailEnableCustomTrackingPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1045
|
+
const EmailEnableCustomTrackingRequestJson = /* @__PURE__ */ Schema$1.Struct({ label: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])) });
|
|
1046
|
+
const EmailEnableCustomTracking200 = CustomTrackingStatus;
|
|
1047
|
+
const EmailEnableCustomTracking401 = UnauthorizedError;
|
|
1048
|
+
const EmailEnableCustomTracking403 = ForbiddenError;
|
|
1049
|
+
const EmailEnableCustomTracking409 = ConflictError;
|
|
1050
|
+
const EmailEnableCustomTracking422 = ValidationError;
|
|
1051
|
+
const EmailEnableCustomTracking500 = InternalError;
|
|
1052
|
+
const EmailEnableCustomTracking502 = /* @__PURE__ */ Schema$1.Union([EmailChannelError, BillingProviderError]);
|
|
1053
|
+
const EmailEnableCustomTracking504 = GatewayTimeoutError;
|
|
1054
|
+
const EmailDisableCustomTrackingPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1055
|
+
const EmailDisableCustomTracking200 = SuccessResult;
|
|
1056
|
+
const EmailDisableCustomTracking401 = UnauthorizedError;
|
|
1057
|
+
const EmailDisableCustomTracking403 = ForbiddenError;
|
|
1058
|
+
const EmailDisableCustomTracking409 = ConflictError;
|
|
1059
|
+
const EmailDisableCustomTracking422 = ValidationError;
|
|
1060
|
+
const EmailDisableCustomTracking500 = InternalError;
|
|
1061
|
+
const EmailDisableCustomTracking502 = EmailChannelError;
|
|
1062
|
+
const EmailDisableCustomTracking504 = GatewayTimeoutError;
|
|
1063
|
+
const EmailGetCustomTrackingDomainConnectPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1064
|
+
const EmailGetCustomTrackingDomainConnect200 = DomainConnectEligibility;
|
|
1065
|
+
const EmailGetCustomTrackingDomainConnect401 = UnauthorizedError;
|
|
1066
|
+
const EmailGetCustomTrackingDomainConnect403 = ForbiddenError;
|
|
1067
|
+
const EmailGetCustomTrackingDomainConnect404 = ResourceNotFoundError;
|
|
1068
|
+
const EmailGetCustomTrackingDomainConnect422 = ValidationError;
|
|
1069
|
+
const EmailGetCustomTrackingDomainConnect500 = InternalError;
|
|
1070
|
+
const EmailGetCustomTrackingDomainConnect504 = GatewayTimeoutError;
|
|
1071
|
+
const EmailBuildCustomTrackingDomainConnectApplyUrlPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1072
|
+
const EmailBuildCustomTrackingDomainConnectApplyUrl200 = DomainConnectApplyUrlResult;
|
|
1073
|
+
const EmailBuildCustomTrackingDomainConnectApplyUrl401 = UnauthorizedError;
|
|
1074
|
+
const EmailBuildCustomTrackingDomainConnectApplyUrl403 = ForbiddenError;
|
|
1075
|
+
const EmailBuildCustomTrackingDomainConnectApplyUrl404 = ResourceNotFoundError;
|
|
1076
|
+
const EmailBuildCustomTrackingDomainConnectApplyUrl409 = ConflictError;
|
|
1077
|
+
const EmailBuildCustomTrackingDomainConnectApplyUrl422 = ValidationError;
|
|
1078
|
+
const EmailBuildCustomTrackingDomainConnectApplyUrl500 = InternalError;
|
|
1079
|
+
const EmailBuildCustomTrackingDomainConnectApplyUrl502 = EmailChannelError;
|
|
1080
|
+
const EmailBuildCustomTrackingDomainConnectApplyUrl504 = GatewayTimeoutError;
|
|
1081
|
+
const EmailCompleteCustomTrackingDomainConnectPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1082
|
+
const EmailCompleteCustomTrackingDomainConnectRequestJson = /* @__PURE__ */ Schema$1.Struct({
|
|
1083
|
+
state: Schema$1.String,
|
|
1084
|
+
error: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1085
|
+
errorDescription: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
1086
|
+
});
|
|
1087
|
+
const EmailCompleteCustomTrackingDomainConnect200 = CustomTrackingDomainConnectCompleteResult;
|
|
1088
|
+
const EmailCompleteCustomTrackingDomainConnect401 = UnauthorizedError;
|
|
1089
|
+
const EmailCompleteCustomTrackingDomainConnect403 = ForbiddenError;
|
|
1090
|
+
const EmailCompleteCustomTrackingDomainConnect422 = ValidationError;
|
|
1091
|
+
const EmailCompleteCustomTrackingDomainConnect500 = InternalError;
|
|
1092
|
+
const EmailCompleteCustomTrackingDomainConnect504 = GatewayTimeoutError;
|
|
1093
|
+
const EmailRecheckCustomTrackingPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1094
|
+
const EmailRecheckCustomTracking200 = CustomTrackingStatus;
|
|
1095
|
+
const EmailRecheckCustomTracking401 = UnauthorizedError;
|
|
1096
|
+
const EmailRecheckCustomTracking403 = ForbiddenError;
|
|
1097
|
+
const EmailRecheckCustomTracking404 = ResourceNotFoundError;
|
|
1098
|
+
const EmailRecheckCustomTracking409 = ConflictError;
|
|
1099
|
+
const EmailRecheckCustomTracking422 = ValidationError;
|
|
1100
|
+
const EmailRecheckCustomTracking500 = InternalError;
|
|
1101
|
+
const EmailRecheckCustomTracking502 = EmailChannelError;
|
|
1102
|
+
const EmailRecheckCustomTracking504 = GatewayTimeoutError;
|
|
1103
|
+
const EmailSetDefaultDomainPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1104
|
+
const EmailSetDefaultDomain200 = SuccessResult;
|
|
1105
|
+
const EmailSetDefaultDomain401 = UnauthorizedError;
|
|
1106
|
+
const EmailSetDefaultDomain403 = ForbiddenError;
|
|
1107
|
+
const EmailSetDefaultDomain404 = ResourceNotFoundError;
|
|
1108
|
+
const EmailSetDefaultDomain422 = ValidationError;
|
|
1109
|
+
const EmailSetDefaultDomain500 = InternalError;
|
|
1110
|
+
const EmailSetDefaultDomain504 = GatewayTimeoutError;
|
|
1111
|
+
const EmailDisableCatchAllPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1112
|
+
const EmailDisableCatchAll200 = /* @__PURE__ */ Schema$1.Struct({ success: Schema$1.Literal(true) });
|
|
1113
|
+
const EmailDisableCatchAll401 = UnauthorizedError;
|
|
1114
|
+
const EmailDisableCatchAll403 = ForbiddenError;
|
|
1115
|
+
const EmailDisableCatchAll404 = ResourceNotFoundError;
|
|
1116
|
+
const EmailDisableCatchAll422 = ValidationError;
|
|
1117
|
+
const EmailDisableCatchAll500 = InternalError;
|
|
1118
|
+
const EmailDisableCatchAll502 = ExternalServiceError;
|
|
1119
|
+
const EmailDisableCatchAll504 = GatewayTimeoutError;
|
|
1120
|
+
const EmailGetDomainConnectPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1121
|
+
const EmailGetDomainConnectQuery = /* @__PURE__ */ Schema$1.Struct({ mode: Schema$1.Union([Schema$1.Literal("send-only"), Schema$1.Literal("send-and-receive")]) });
|
|
1122
|
+
const EmailGetDomainConnect200 = DomainConnectEligibility;
|
|
1123
|
+
const EmailGetDomainConnect401 = UnauthorizedError;
|
|
1124
|
+
const EmailGetDomainConnect403 = ForbiddenError;
|
|
1125
|
+
const EmailGetDomainConnect404 = ResourceNotFoundError;
|
|
1126
|
+
const EmailGetDomainConnect422 = ValidationError;
|
|
1127
|
+
const EmailGetDomainConnect500 = InternalError;
|
|
1128
|
+
const EmailGetDomainConnect504 = GatewayTimeoutError;
|
|
1129
|
+
const EmailBuildDomainConnectApplyUrlPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1130
|
+
const EmailBuildDomainConnectApplyUrlRequestJson = /* @__PURE__ */ Schema$1.Struct({ mode: Schema$1.Union([Schema$1.Literal("send-only"), Schema$1.Literal("send-and-receive")]) });
|
|
1131
|
+
const EmailBuildDomainConnectApplyUrl200 = DomainConnectApplyUrlResult;
|
|
1132
|
+
const EmailBuildDomainConnectApplyUrl401 = UnauthorizedError;
|
|
1133
|
+
const EmailBuildDomainConnectApplyUrl403 = ForbiddenError;
|
|
1134
|
+
const EmailBuildDomainConnectApplyUrl404 = ResourceNotFoundError;
|
|
1135
|
+
const EmailBuildDomainConnectApplyUrl409 = ConflictError;
|
|
1136
|
+
const EmailBuildDomainConnectApplyUrl422 = ValidationError;
|
|
1137
|
+
const EmailBuildDomainConnectApplyUrl500 = InternalError;
|
|
1138
|
+
const EmailBuildDomainConnectApplyUrl502 = EmailChannelError;
|
|
1139
|
+
const EmailBuildDomainConnectApplyUrl504 = GatewayTimeoutError;
|
|
1140
|
+
const EmailCompleteDomainConnectPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1141
|
+
const EmailCompleteDomainConnectRequestJson = /* @__PURE__ */ Schema$1.Struct({
|
|
1142
|
+
state: Schema$1.String,
|
|
1143
|
+
error: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1144
|
+
errorDescription: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
1145
|
+
});
|
|
1146
|
+
const EmailCompleteDomainConnect200 = DomainConnectCompleteResult;
|
|
1147
|
+
const EmailCompleteDomainConnect401 = UnauthorizedError;
|
|
1148
|
+
const EmailCompleteDomainConnect403 = ForbiddenError;
|
|
1149
|
+
const EmailCompleteDomainConnect404 = ResourceNotFoundError;
|
|
1150
|
+
const EmailCompleteDomainConnect422 = ValidationError;
|
|
1151
|
+
const EmailCompleteDomainConnect500 = InternalError;
|
|
1152
|
+
const EmailCompleteDomainConnect502 = EmailChannelError;
|
|
1153
|
+
const EmailCompleteDomainConnect504 = GatewayTimeoutError;
|
|
1154
|
+
const EmailEnableCatchAllPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1155
|
+
const EmailEnableCatchAllRequestJson = /* @__PURE__ */ Schema$1.Struct({ endpointId: Schema$1.optionalKey(Schema$1.Union([WebhookEndpointId, Schema$1.Null])) });
|
|
1156
|
+
const EmailEnableCatchAll201 = /* @__PURE__ */ Schema$1.Struct({ success: Schema$1.Literal(true) });
|
|
1157
|
+
const EmailEnableCatchAll401 = UnauthorizedError;
|
|
1158
|
+
const EmailEnableCatchAll403 = ForbiddenError;
|
|
1159
|
+
const EmailEnableCatchAll404 = ResourceNotFoundError;
|
|
1160
|
+
const EmailEnableCatchAll422 = ValidationError;
|
|
1161
|
+
const EmailEnableCatchAll500 = InternalError;
|
|
1162
|
+
const EmailEnableCatchAll502 = ExternalServiceError;
|
|
1163
|
+
const EmailEnableCatchAll504 = GatewayTimeoutError;
|
|
1164
|
+
const EmailEnableReceivingPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1165
|
+
const EmailEnableReceivingRequestJson = /* @__PURE__ */ Schema$1.Struct({
|
|
1166
|
+
domain: Schema$1.String,
|
|
1167
|
+
catchAll: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1168
|
+
endpointId: Schema$1.optionalKey(Schema$1.Union([WebhookEndpointId, Schema$1.Null])),
|
|
1169
|
+
addresses: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]))
|
|
1170
|
+
});
|
|
1171
|
+
const EmailEnableReceiving200 = /* @__PURE__ */ Schema$1.Struct({
|
|
1172
|
+
success: Schema$1.Literal(true),
|
|
1173
|
+
recipients: Schema$1.Array(Schema$1.String)
|
|
1174
|
+
});
|
|
1175
|
+
const EmailEnableReceiving401 = UnauthorizedError;
|
|
1176
|
+
const EmailEnableReceiving403 = ForbiddenError;
|
|
1177
|
+
const EmailEnableReceiving404 = ResourceNotFoundError;
|
|
1178
|
+
const EmailEnableReceiving422 = ValidationError;
|
|
1179
|
+
const EmailEnableReceiving500 = InternalError;
|
|
1180
|
+
const EmailEnableReceiving504 = GatewayTimeoutError;
|
|
1181
|
+
const EmailGetReceivingStatusPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1182
|
+
const EmailGetReceivingStatus200 = ReceivingStatus;
|
|
1183
|
+
const EmailGetReceivingStatus401 = UnauthorizedError;
|
|
1184
|
+
const EmailGetReceivingStatus403 = ForbiddenError;
|
|
1185
|
+
const EmailGetReceivingStatus404 = ResourceNotFoundError;
|
|
1186
|
+
const EmailGetReceivingStatus422 = ValidationError;
|
|
1187
|
+
const EmailGetReceivingStatus500 = InternalError;
|
|
1188
|
+
const EmailGetReceivingStatus504 = GatewayTimeoutError;
|
|
1189
|
+
const EmailDetectRegistrarPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1190
|
+
const EmailDetectRegistrarRequestJson = /* @__PURE__ */ Schema$1.Struct({ domain: Schema$1.String });
|
|
1191
|
+
const EmailDetectRegistrar200 = /* @__PURE__ */ Schema$1.Struct({
|
|
1192
|
+
provider: Schema$1.String,
|
|
1193
|
+
name: Schema$1.String,
|
|
1194
|
+
nameservers: Schema$1.Array(Schema$1.String),
|
|
1195
|
+
docsUrl: Schema$1.String
|
|
1196
|
+
});
|
|
1197
|
+
const EmailDetectRegistrar401 = UnauthorizedError;
|
|
1198
|
+
const EmailDetectRegistrar403 = ForbiddenError;
|
|
1199
|
+
const EmailDetectRegistrar422 = ValidationError;
|
|
1200
|
+
const EmailDetectRegistrar500 = InternalError;
|
|
1201
|
+
const EmailDetectRegistrar504 = GatewayTimeoutError;
|
|
1202
|
+
const EmailRotateDomainDkimPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1203
|
+
const EmailRotateDomainDkimHeaders = /* @__PURE__ */ Schema$1.Struct({ "idempotency-key": Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })) });
|
|
1204
|
+
const EmailRotateDomainDkim200 = EmailDkimRotation;
|
|
1205
|
+
const EmailRotateDomainDkim401 = UnauthorizedError;
|
|
1206
|
+
const EmailRotateDomainDkim403 = ForbiddenError;
|
|
1207
|
+
const EmailRotateDomainDkim404 = ResourceNotFoundError;
|
|
1208
|
+
const EmailRotateDomainDkim409 = ConflictError;
|
|
1209
|
+
const EmailRotateDomainDkim422 = ValidationError;
|
|
1210
|
+
const EmailRotateDomainDkim500 = InternalError;
|
|
1211
|
+
const EmailRotateDomainDkim502 = EmailChannelError;
|
|
1212
|
+
const EmailRotateDomainDkim504 = GatewayTimeoutError;
|
|
1213
|
+
const EmailGetDomainVerificationPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1214
|
+
const EmailGetDomainVerification200 = EmailDomainVerification;
|
|
1215
|
+
const EmailGetDomainVerification401 = UnauthorizedError;
|
|
1216
|
+
const EmailGetDomainVerification403 = ForbiddenError;
|
|
1217
|
+
const EmailGetDomainVerification404 = ResourceNotFoundError;
|
|
1218
|
+
const EmailGetDomainVerification422 = ValidationError;
|
|
1219
|
+
const EmailGetDomainVerification500 = InternalError;
|
|
1220
|
+
const EmailGetDomainVerification504 = GatewayTimeoutError;
|
|
1221
|
+
const EmailAdvanceDomainVerificationPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1222
|
+
const EmailAdvanceDomainVerification200 = EmailDomainVerification;
|
|
1223
|
+
const EmailAdvanceDomainVerification401 = UnauthorizedError;
|
|
1224
|
+
const EmailAdvanceDomainVerification403 = ForbiddenError;
|
|
1225
|
+
const EmailAdvanceDomainVerification404 = ResourceNotFoundError;
|
|
1226
|
+
const EmailAdvanceDomainVerification409 = ConflictError;
|
|
1227
|
+
const EmailAdvanceDomainVerification422 = ValidationError;
|
|
1228
|
+
const EmailAdvanceDomainVerification429 = RateLimitedError;
|
|
1229
|
+
const EmailAdvanceDomainVerification500 = InternalError;
|
|
1230
|
+
const EmailAdvanceDomainVerification502 = EmailChannelError;
|
|
1231
|
+
const EmailAdvanceDomainVerification504 = GatewayTimeoutError;
|
|
1232
|
+
const EmailGetDomainWarmingPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1233
|
+
const EmailGetDomainWarming200 = DomainWarming;
|
|
1234
|
+
const EmailGetDomainWarming401 = UnauthorizedError;
|
|
1235
|
+
const EmailGetDomainWarming403 = ForbiddenError;
|
|
1236
|
+
const EmailGetDomainWarming404 = ResourceNotFoundError;
|
|
1237
|
+
const EmailGetDomainWarming422 = ValidationError;
|
|
1238
|
+
const EmailGetDomainWarming500 = InternalError;
|
|
1239
|
+
const EmailGetDomainWarming504 = GatewayTimeoutError;
|
|
1240
|
+
const EmailCreateDomainWarmingPlanPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1241
|
+
const EmailCreateDomainWarmingPlanRequestJson = /* @__PURE__ */ Schema$1.Struct({
|
|
1242
|
+
identity: Schema$1.Union([
|
|
1243
|
+
Schema$1.Literal("new"),
|
|
1244
|
+
Schema$1.Literal("migrating"),
|
|
1245
|
+
Schema$1.Literal("returning")
|
|
1246
|
+
]),
|
|
1247
|
+
initialDailyRecipients: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isLessThanOrEqualTo(1e6).annotate({ expected: "a value less than or equal to 1000000" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
1248
|
+
dailyGrowthPercent: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1e4).annotate({ expected: "a value less than or equal to 10000" })),
|
|
1249
|
+
targetDailyRecipients: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isLessThanOrEqualTo(1e6).annotate({ expected: "a value less than or equal to 1000000" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))
|
|
1250
|
+
});
|
|
1251
|
+
const EmailCreateDomainWarmingPlan201 = DomainWarming;
|
|
1252
|
+
const EmailCreateDomainWarmingPlan401 = UnauthorizedError;
|
|
1253
|
+
const EmailCreateDomainWarmingPlan403 = ForbiddenError;
|
|
1254
|
+
const EmailCreateDomainWarmingPlan404 = ResourceNotFoundError;
|
|
1255
|
+
const EmailCreateDomainWarmingPlan409 = ConflictError;
|
|
1256
|
+
const EmailCreateDomainWarmingPlan422 = ValidationError;
|
|
1257
|
+
const EmailCreateDomainWarmingPlan500 = InternalError;
|
|
1258
|
+
const EmailCreateDomainWarmingPlan504 = GatewayTimeoutError;
|
|
1259
|
+
const EmailCancelDomainWarmingBatchPathParams = /* @__PURE__ */ Schema$1.Struct({
|
|
1260
|
+
id: EmailDomainId,
|
|
1261
|
+
batchId: EmailDomainWarmingBatchId
|
|
1262
|
+
});
|
|
1263
|
+
const EmailCancelDomainWarmingBatch200 = DomainWarming;
|
|
1264
|
+
const EmailCancelDomainWarmingBatch401 = UnauthorizedError;
|
|
1265
|
+
const EmailCancelDomainWarmingBatch403 = ForbiddenError;
|
|
1266
|
+
const EmailCancelDomainWarmingBatch404 = ResourceNotFoundError;
|
|
1267
|
+
const EmailCancelDomainWarmingBatch409 = ConflictError;
|
|
1268
|
+
const EmailCancelDomainWarmingBatch422 = ValidationError;
|
|
1269
|
+
const EmailCancelDomainWarmingBatch500 = InternalError;
|
|
1270
|
+
const EmailCancelDomainWarmingBatch504 = GatewayTimeoutError;
|
|
1271
|
+
const EmailCompleteDomainWarmingPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1272
|
+
const EmailCompleteDomainWarmingRequestJson = /* @__PURE__ */ Schema$1.Struct({ note: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMaxCodePoints(500).annotate({ expected: "a string with at most 500 code points" })).check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })), Schema$1.Null])) });
|
|
1273
|
+
const EmailCompleteDomainWarming200 = DomainWarming;
|
|
1274
|
+
const EmailCompleteDomainWarming401 = UnauthorizedError;
|
|
1275
|
+
const EmailCompleteDomainWarming403 = ForbiddenError;
|
|
1276
|
+
const EmailCompleteDomainWarming404 = ResourceNotFoundError;
|
|
1277
|
+
const EmailCompleteDomainWarming409 = ConflictError;
|
|
1278
|
+
const EmailCompleteDomainWarming422 = ValidationError;
|
|
1279
|
+
const EmailCompleteDomainWarming500 = InternalError;
|
|
1280
|
+
const EmailCompleteDomainWarming504 = GatewayTimeoutError;
|
|
1281
|
+
const EmailPauseDomainWarmingPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1282
|
+
const EmailPauseDomainWarmingRequestJson = /* @__PURE__ */ Schema$1.Struct({ note: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMaxCodePoints(500).annotate({ expected: "a string with at most 500 code points" })).check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })), Schema$1.Null])) });
|
|
1283
|
+
const EmailPauseDomainWarming200 = DomainWarming;
|
|
1284
|
+
const EmailPauseDomainWarming401 = UnauthorizedError;
|
|
1285
|
+
const EmailPauseDomainWarming403 = ForbiddenError;
|
|
1286
|
+
const EmailPauseDomainWarming404 = ResourceNotFoundError;
|
|
1287
|
+
const EmailPauseDomainWarming409 = ConflictError;
|
|
1288
|
+
const EmailPauseDomainWarming422 = ValidationError;
|
|
1289
|
+
const EmailPauseDomainWarming500 = InternalError;
|
|
1290
|
+
const EmailPauseDomainWarming504 = GatewayTimeoutError;
|
|
1291
|
+
const EmailUpdateDomainWarmingPolicyPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1292
|
+
const EmailUpdateDomainWarmingPolicyRequestJson = /* @__PURE__ */ Schema$1.Struct({
|
|
1293
|
+
dailyGrowthPercent: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1e4).annotate({ expected: "a value less than or equal to 10000" })),
|
|
1294
|
+
targetDailyRecipients: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isLessThanOrEqualTo(1e6).annotate({ expected: "a value less than or equal to 1000000" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
1295
|
+
note: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMaxCodePoints(500).annotate({ expected: "a string with at most 500 code points" })).check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })), Schema$1.Null]))
|
|
1296
|
+
});
|
|
1297
|
+
const EmailUpdateDomainWarmingPolicy200 = DomainWarming;
|
|
1298
|
+
const EmailUpdateDomainWarmingPolicy401 = UnauthorizedError;
|
|
1299
|
+
const EmailUpdateDomainWarmingPolicy403 = ForbiddenError;
|
|
1300
|
+
const EmailUpdateDomainWarmingPolicy404 = ResourceNotFoundError;
|
|
1301
|
+
const EmailUpdateDomainWarmingPolicy409 = ConflictError;
|
|
1302
|
+
const EmailUpdateDomainWarmingPolicy422 = ValidationError;
|
|
1303
|
+
const EmailUpdateDomainWarmingPolicy500 = InternalError;
|
|
1304
|
+
const EmailUpdateDomainWarmingPolicy504 = GatewayTimeoutError;
|
|
1305
|
+
const EmailResumeDomainWarmingPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailDomainId });
|
|
1306
|
+
const EmailResumeDomainWarmingRequestJson = /* @__PURE__ */ Schema$1.Struct({ note: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMaxCodePoints(500).annotate({ expected: "a string with at most 500 code points" })).check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })), Schema$1.Null])) });
|
|
1307
|
+
const EmailResumeDomainWarming200 = DomainWarming;
|
|
1308
|
+
const EmailResumeDomainWarming401 = UnauthorizedError;
|
|
1309
|
+
const EmailResumeDomainWarming403 = ForbiddenError;
|
|
1310
|
+
const EmailResumeDomainWarming404 = ResourceNotFoundError;
|
|
1311
|
+
const EmailResumeDomainWarming409 = ConflictError;
|
|
1312
|
+
const EmailResumeDomainWarming422 = ValidationError;
|
|
1313
|
+
const EmailResumeDomainWarming500 = InternalError;
|
|
1314
|
+
const EmailResumeDomainWarming504 = GatewayTimeoutError;
|
|
1315
|
+
const EmailListForwardingRulesQuery = /* @__PURE__ */ Schema$1.Struct({
|
|
1316
|
+
domainId: Schema$1.optionalKey(Schema$1.Union([EmailDomainId, Schema$1.Null])),
|
|
1317
|
+
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.annotate({ contentMediaType: "application/json" }), Schema$1.Null]))
|
|
1318
|
+
});
|
|
1319
|
+
const EmailListForwardingRules200 = ForwardingRuleList;
|
|
1320
|
+
const EmailListForwardingRules401 = UnauthorizedError;
|
|
1321
|
+
const EmailListForwardingRules403 = ForbiddenError;
|
|
1322
|
+
const EmailListForwardingRules422 = ValidationError;
|
|
1323
|
+
const EmailListForwardingRules500 = InternalError;
|
|
1324
|
+
const EmailListForwardingRules504 = GatewayTimeoutError;
|
|
1325
|
+
const EmailCreateForwardingRuleRequestJson = /* @__PURE__ */ Schema$1.Struct({
|
|
1326
|
+
name: Schema$1.String,
|
|
1327
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1328
|
+
domainId: Schema$1.optionalKey(Schema$1.Union([EmailDomainId, Schema$1.Null])),
|
|
1329
|
+
sourcePattern: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1330
|
+
forwardTo: Schema$1.Array(Schema$1.String),
|
|
1331
|
+
preserveHeaders: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1332
|
+
appendNote: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1333
|
+
conditions: Schema$1.optionalKey(Schema$1.Union([ForwardingConditions, Schema$1.Null])),
|
|
1334
|
+
priority: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(2147483647).annotate({ expected: "a value less than or equal to 2147483647" })), Schema$1.Null])),
|
|
1335
|
+
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1336
|
+
metadata: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]), Schema$1.Null]))
|
|
1337
|
+
});
|
|
1338
|
+
const EmailCreateForwardingRule201 = /* @__PURE__ */ Schema$1.Struct({
|
|
1339
|
+
id: EmailForwardingRuleId,
|
|
1340
|
+
name: Schema$1.String,
|
|
1341
|
+
forwardTo: Schema$1.Array(Schema$1.String),
|
|
1342
|
+
priority: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(2147483647).annotate({ expected: "a value less than or equal to 2147483647" })),
|
|
1343
|
+
isActive: Schema$1.Boolean,
|
|
1344
|
+
createdAt: Schema$1.String
|
|
1345
|
+
});
|
|
1346
|
+
const EmailCreateForwardingRule401 = UnauthorizedError;
|
|
1347
|
+
const EmailCreateForwardingRule403 = ForbiddenError;
|
|
1348
|
+
const EmailCreateForwardingRule404 = ResourceNotFoundError;
|
|
1349
|
+
const EmailCreateForwardingRule409 = ConflictError;
|
|
1350
|
+
const EmailCreateForwardingRule422 = ValidationError;
|
|
1351
|
+
const EmailCreateForwardingRule500 = InternalError;
|
|
1352
|
+
const EmailCreateForwardingRule504 = GatewayTimeoutError;
|
|
1353
|
+
const EmailDeleteForwardingRulePathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailForwardingRuleId });
|
|
1354
|
+
const EmailDeleteForwardingRule200 = SuccessResult;
|
|
1355
|
+
const EmailDeleteForwardingRule401 = UnauthorizedError;
|
|
1356
|
+
const EmailDeleteForwardingRule403 = ForbiddenError;
|
|
1357
|
+
const EmailDeleteForwardingRule404 = ResourceNotFoundError;
|
|
1358
|
+
const EmailDeleteForwardingRule422 = ValidationError;
|
|
1359
|
+
const EmailDeleteForwardingRule500 = InternalError;
|
|
1360
|
+
const EmailDeleteForwardingRule504 = GatewayTimeoutError;
|
|
1361
|
+
const EmailUpdateForwardingRulePathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailForwardingRuleId });
|
|
1362
|
+
const EmailUpdateForwardingRuleRequestJson = /* @__PURE__ */ Schema$1.Struct({
|
|
1363
|
+
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1364
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1365
|
+
domainId: Schema$1.optionalKey(Schema$1.Union([EmailDomainId, Schema$1.Null])),
|
|
1366
|
+
sourcePattern: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1367
|
+
forwardTo: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
1368
|
+
preserveHeaders: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1369
|
+
appendNote: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1370
|
+
conditions: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([ForwardingConditions, Schema$1.Null]), Schema$1.Null])),
|
|
1371
|
+
priority: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(2147483647).annotate({ expected: "a value less than or equal to 2147483647" })), Schema$1.Null])),
|
|
1372
|
+
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1373
|
+
metadata: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]), Schema$1.Null]))
|
|
1374
|
+
});
|
|
1375
|
+
const EmailUpdateForwardingRule200 = /* @__PURE__ */ Schema$1.Struct({
|
|
1376
|
+
id: EmailForwardingRuleId,
|
|
1377
|
+
name: Schema$1.String,
|
|
1378
|
+
forwardTo: Schema$1.Array(Schema$1.String),
|
|
1379
|
+
priority: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(2147483647).annotate({ expected: "a value less than or equal to 2147483647" })),
|
|
1380
|
+
isActive: Schema$1.Boolean,
|
|
1381
|
+
updatedAt: Schema$1.String
|
|
1382
|
+
});
|
|
1383
|
+
const EmailUpdateForwardingRule401 = UnauthorizedError;
|
|
1384
|
+
const EmailUpdateForwardingRule403 = ForbiddenError;
|
|
1385
|
+
const EmailUpdateForwardingRule404 = ResourceNotFoundError;
|
|
1386
|
+
const EmailUpdateForwardingRule422 = ValidationError;
|
|
1387
|
+
const EmailUpdateForwardingRule500 = InternalError;
|
|
1388
|
+
const EmailUpdateForwardingRule504 = GatewayTimeoutError;
|
|
1389
|
+
const EmailGetForwardingLogQuery = /* @__PURE__ */ Schema$1.Struct({
|
|
1390
|
+
forwardingRuleId: Schema$1.optionalKey(Schema$1.Union([EmailForwardingRuleId, Schema$1.Null])),
|
|
1391
|
+
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([
|
|
1392
|
+
Schema$1.Literal("pending"),
|
|
1393
|
+
Schema$1.Literal("forwarded"),
|
|
1394
|
+
Schema$1.Literal("failed")
|
|
1395
|
+
]), Schema$1.Null])),
|
|
1396
|
+
after: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1397
|
+
before: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1398
|
+
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1399
|
+
cursor: Schema$1.optionalKey(Schema$1.Union([Cursor, Schema$1.Null]))
|
|
1400
|
+
});
|
|
1401
|
+
const EmailGetForwardingLog200 = ForwardingLogPage;
|
|
1402
|
+
const EmailGetForwardingLog401 = UnauthorizedError;
|
|
1403
|
+
const EmailGetForwardingLog403 = ForbiddenError;
|
|
1404
|
+
const EmailGetForwardingLog422 = ValidationError;
|
|
1405
|
+
const EmailGetForwardingLog500 = InternalError;
|
|
1406
|
+
const EmailGetForwardingLog504 = GatewayTimeoutError;
|
|
1407
|
+
const EmailGetOnboardingReview200 = OnboardingReviewStatus;
|
|
1408
|
+
const EmailGetOnboardingReview401 = UnauthorizedError;
|
|
1409
|
+
const EmailGetOnboardingReview403 = ForbiddenError;
|
|
1410
|
+
const EmailGetOnboardingReview422 = ValidationError;
|
|
1411
|
+
const EmailGetOnboardingReview500 = InternalError;
|
|
1412
|
+
const EmailGetOnboardingReview504 = GatewayTimeoutError;
|
|
1413
|
+
const EmailReapplyOnboardingReviewRequestJson = /* @__PURE__ */ Schema$1.Struct({ expectedGeneration: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })) });
|
|
1414
|
+
const EmailReapplyOnboardingReview200 = OnboardingReviewStatus;
|
|
1415
|
+
const EmailReapplyOnboardingReview401 = UnauthorizedError;
|
|
1416
|
+
const EmailReapplyOnboardingReview403 = ForbiddenError;
|
|
1417
|
+
const EmailReapplyOnboardingReview409 = ConflictError;
|
|
1418
|
+
const EmailReapplyOnboardingReview422 = ValidationError;
|
|
1419
|
+
const EmailReapplyOnboardingReview500 = InternalError;
|
|
1420
|
+
const EmailReapplyOnboardingReview504 = GatewayTimeoutError;
|
|
1421
|
+
const EmailRespondToOnboardingInformationRequestRequestJson = /* @__PURE__ */ Schema$1.Struct({
|
|
1422
|
+
expectedGeneration: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
1423
|
+
responseText: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxCodePoints(4e3).annotate({ expected: "a string with at most 4000 code points" })).check(Schema$1.isMaxLength(4e3).annotate({ expected: "a value with a length of at most 4000" })),
|
|
1424
|
+
evidenceMediaIds: Schema$1.Array(MediaId).check(Schema$1.isMaxLength(3).annotate({ expected: "a value with a length of at most 3" }))
|
|
1425
|
+
});
|
|
1426
|
+
const EmailRespondToOnboardingInformationRequest200 = OnboardingReviewStatus;
|
|
1427
|
+
const EmailRespondToOnboardingInformationRequest401 = UnauthorizedError;
|
|
1428
|
+
const EmailRespondToOnboardingInformationRequest403 = ForbiddenError;
|
|
1429
|
+
const EmailRespondToOnboardingInformationRequest409 = ConflictError;
|
|
1430
|
+
const EmailRespondToOnboardingInformationRequest422 = ValidationError;
|
|
1431
|
+
const EmailRespondToOnboardingInformationRequest500 = InternalError;
|
|
1432
|
+
const EmailRespondToOnboardingInformationRequest504 = GatewayTimeoutError;
|
|
1433
|
+
const EmailListSendersQuery = /* @__PURE__ */ Schema$1.Struct({
|
|
1434
|
+
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1435
|
+
cursor: Schema$1.optionalKey(Schema$1.Union([Cursor, Schema$1.Null])),
|
|
1436
|
+
verificationStatus: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([
|
|
1437
|
+
Schema$1.Literal("pending"),
|
|
1438
|
+
Schema$1.Literal("verified"),
|
|
1439
|
+
Schema$1.Literal("failed")
|
|
1440
|
+
]), Schema$1.Null])),
|
|
1441
|
+
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1442
|
+
isDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
1443
|
+
});
|
|
1444
|
+
const EmailListSenders200 = EmailSenderPage;
|
|
1445
|
+
const EmailListSenders401 = UnauthorizedError;
|
|
1446
|
+
const EmailListSenders403 = ForbiddenError;
|
|
1447
|
+
const EmailListSenders422 = ValidationError;
|
|
1448
|
+
const EmailListSenders500 = InternalError;
|
|
1449
|
+
const EmailListSenders504 = GatewayTimeoutError;
|
|
1450
|
+
const EmailAddSenderHeaders = /* @__PURE__ */ Schema$1.Struct({ "idempotency-key": Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })) });
|
|
1451
|
+
const EmailAddSenderRequestJson = /* @__PURE__ */ Schema$1.Struct({
|
|
1452
|
+
email: Schema$1.String,
|
|
1453
|
+
domainId: Schema$1.optionalKey(Schema$1.Union([EmailDomainId, Schema$1.Null])),
|
|
1454
|
+
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1455
|
+
replyToEmails: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null]))
|
|
1456
|
+
});
|
|
1457
|
+
const EmailAddSender201 = /* @__PURE__ */ Schema$1.Struct({
|
|
1458
|
+
id: EmailSenderId,
|
|
1459
|
+
email: Schema$1.String,
|
|
1460
|
+
status: Schema$1.Union([
|
|
1461
|
+
Schema$1.Literal("pending"),
|
|
1462
|
+
Schema$1.Literal("verified"),
|
|
1463
|
+
Schema$1.Literal("failed")
|
|
1464
|
+
]),
|
|
1465
|
+
providerLifecycle: Schema$1.Union([
|
|
1466
|
+
Schema$1.Literal("provisioning"),
|
|
1467
|
+
Schema$1.Literal("active"),
|
|
1468
|
+
Schema$1.Literal("deleting"),
|
|
1469
|
+
Schema$1.Literal("failed")
|
|
1470
|
+
]),
|
|
1471
|
+
providerFailureCode: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1472
|
+
createdAt: Schema$1.String
|
|
1473
|
+
});
|
|
1474
|
+
const EmailAddSender401 = UnauthorizedError;
|
|
1475
|
+
const EmailAddSender403 = ForbiddenError;
|
|
1476
|
+
const EmailAddSender404 = ResourceNotFoundError;
|
|
1477
|
+
const EmailAddSender409 = ConflictError;
|
|
1478
|
+
const EmailAddSender422 = ValidationError;
|
|
1479
|
+
const EmailAddSender500 = InternalError;
|
|
1480
|
+
const EmailAddSender502 = ExternalServiceError;
|
|
1481
|
+
const EmailAddSender504 = GatewayTimeoutError;
|
|
1482
|
+
const EmailGetSenderPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailSenderId });
|
|
1483
|
+
const EmailGetSender200 = /* @__PURE__ */ Schema$1.Struct({
|
|
1484
|
+
id: EmailSenderId,
|
|
1485
|
+
organizationId: Schema$1.String,
|
|
1486
|
+
email: Schema$1.String,
|
|
1487
|
+
name: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1488
|
+
domainId: Schema$1.Union([EmailDomainId, Schema$1.Null]),
|
|
1489
|
+
verificationStatus: Schema$1.Union([
|
|
1490
|
+
Schema$1.Literal("pending"),
|
|
1491
|
+
Schema$1.Literal("verified"),
|
|
1492
|
+
Schema$1.Literal("failed")
|
|
1493
|
+
]),
|
|
1494
|
+
verifiedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1495
|
+
verificationToken: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1496
|
+
providerLifecycle: Schema$1.Union([
|
|
1497
|
+
Schema$1.Literal("provisioning"),
|
|
1498
|
+
Schema$1.Literal("active"),
|
|
1499
|
+
Schema$1.Literal("deleting"),
|
|
1500
|
+
Schema$1.Literal("failed")
|
|
1501
|
+
]),
|
|
1502
|
+
providerFailureCode: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1503
|
+
isDefault: Schema$1.Boolean,
|
|
1504
|
+
replyToEmails: Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]),
|
|
1505
|
+
deliverability: DeliverabilityFacts,
|
|
1506
|
+
series: SendsSeries,
|
|
1507
|
+
isActive: Schema$1.Boolean,
|
|
1508
|
+
createdAt: Schema$1.String,
|
|
1509
|
+
updatedAt: Schema$1.String
|
|
1510
|
+
});
|
|
1511
|
+
const EmailGetSender401 = UnauthorizedError;
|
|
1512
|
+
const EmailGetSender403 = ForbiddenError;
|
|
1513
|
+
const EmailGetSender404 = ResourceNotFoundError;
|
|
1514
|
+
const EmailGetSender422 = ValidationError;
|
|
1515
|
+
const EmailGetSender500 = InternalError;
|
|
1516
|
+
const EmailGetSender504 = GatewayTimeoutError;
|
|
1517
|
+
const EmailRemoveSenderPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailSenderId });
|
|
1518
|
+
const EmailRemoveSender200 = SuccessResult;
|
|
1519
|
+
const EmailRemoveSender401 = UnauthorizedError;
|
|
1520
|
+
const EmailRemoveSender403 = ForbiddenError;
|
|
1521
|
+
const EmailRemoveSender404 = ResourceNotFoundError;
|
|
1522
|
+
const EmailRemoveSender422 = ValidationError;
|
|
1523
|
+
const EmailRemoveSender500 = InternalError;
|
|
1524
|
+
const EmailRemoveSender504 = GatewayTimeoutError;
|
|
1525
|
+
const EmailSetDefaultSenderPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailSenderId });
|
|
1526
|
+
const EmailSetDefaultSender200 = SuccessResult;
|
|
1527
|
+
const EmailSetDefaultSender401 = UnauthorizedError;
|
|
1528
|
+
const EmailSetDefaultSender403 = ForbiddenError;
|
|
1529
|
+
const EmailSetDefaultSender404 = ResourceNotFoundError;
|
|
1530
|
+
const EmailSetDefaultSender422 = ValidationError;
|
|
1531
|
+
const EmailSetDefaultSender500 = InternalError;
|
|
1532
|
+
const EmailSetDefaultSender504 = GatewayTimeoutError;
|
|
1533
|
+
const EmailCheckSenderVerificationPathParams = /* @__PURE__ */ Schema$1.Struct({ id: EmailSenderId });
|
|
1534
|
+
const EmailCheckSenderVerification200 = /* @__PURE__ */ Schema$1.Struct({
|
|
1535
|
+
id: EmailSenderId,
|
|
1536
|
+
email: Schema$1.String,
|
|
1537
|
+
status: Schema$1.Union([
|
|
1538
|
+
Schema$1.Literal("pending"),
|
|
1539
|
+
Schema$1.Literal("verified"),
|
|
1540
|
+
Schema$1.Literal("failed")
|
|
1541
|
+
]),
|
|
1542
|
+
verifiedAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
1543
|
+
});
|
|
1544
|
+
const EmailCheckSenderVerification401 = UnauthorizedError;
|
|
1545
|
+
const EmailCheckSenderVerification403 = ForbiddenError;
|
|
1546
|
+
const EmailCheckSenderVerification404 = ResourceNotFoundError;
|
|
1547
|
+
const EmailCheckSenderVerification422 = ValidationError;
|
|
1548
|
+
const EmailCheckSenderVerification500 = InternalError;
|
|
1549
|
+
const EmailCheckSenderVerification502 = ExternalServiceError;
|
|
1550
|
+
const EmailCheckSenderVerification504 = GatewayTimeoutError;
|
|
1551
|
+
const EmailGetStatsQuery = /* @__PURE__ */ Schema$1.Struct({
|
|
1552
|
+
after: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1553
|
+
before: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
1554
|
+
});
|
|
1555
|
+
const EmailGetStats200 = /* @__PURE__ */ Schema$1.Struct({
|
|
1556
|
+
totalSent: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1557
|
+
totalDelivered: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1558
|
+
totalBounced: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1559
|
+
totalComplained: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1560
|
+
deliveryRate: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1561
|
+
bounceRate: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1562
|
+
complaintRate: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))
|
|
1563
|
+
});
|
|
1564
|
+
const EmailGetStats401 = UnauthorizedError;
|
|
1565
|
+
const EmailGetStats403 = ForbiddenError;
|
|
1566
|
+
const EmailGetStats422 = ValidationError;
|
|
1567
|
+
const EmailGetStats500 = InternalError;
|
|
1568
|
+
const EmailGetStats504 = GatewayTimeoutError;
|
|
1569
|
+
const EmailListSuppressionsQuery = /* @__PURE__ */ Schema$1.Struct({
|
|
1570
|
+
type: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([
|
|
1571
|
+
Schema$1.Literal("bounce"),
|
|
1572
|
+
Schema$1.Literal("complaint"),
|
|
1573
|
+
Schema$1.Literal("unsubscribe"),
|
|
1574
|
+
Schema$1.Literal("manual")
|
|
1575
|
+
]), Schema$1.Null])),
|
|
1576
|
+
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literal("active"), Schema$1.Literal("expired")]), Schema$1.Null])),
|
|
1577
|
+
search: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" })), Schema$1.Null])),
|
|
1578
|
+
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1579
|
+
cursor: Schema$1.optionalKey(Schema$1.Union([Cursor, Schema$1.Null]))
|
|
1580
|
+
});
|
|
1581
|
+
const EmailListSuppressions200 = SuppressionPage;
|
|
1582
|
+
const EmailListSuppressions401 = UnauthorizedError;
|
|
1583
|
+
const EmailListSuppressions403 = ForbiddenError;
|
|
1584
|
+
const EmailListSuppressions422 = ValidationError;
|
|
1585
|
+
const EmailListSuppressions500 = InternalError;
|
|
1586
|
+
const EmailListSuppressions504 = GatewayTimeoutError;
|
|
1587
|
+
const EmailRemoveSuppressionPathParams = /* @__PURE__ */ Schema$1.Struct({ id: SuppressionId });
|
|
1588
|
+
const EmailRemoveSuppression200 = SuccessResult;
|
|
1589
|
+
const EmailRemoveSuppression401 = UnauthorizedError;
|
|
1590
|
+
const EmailRemoveSuppression403 = ForbiddenError;
|
|
1591
|
+
const EmailRemoveSuppression404 = ResourceNotFoundError;
|
|
1592
|
+
const EmailRemoveSuppression422 = ValidationError;
|
|
1593
|
+
const EmailRemoveSuppression500 = InternalError;
|
|
1594
|
+
const EmailRemoveSuppression502 = EmailChannelError;
|
|
1595
|
+
const EmailRemoveSuppression504 = GatewayTimeoutError;
|
|
1596
|
+
const EmailCountSuppressions200 = SuppressionCounts;
|
|
1597
|
+
const EmailCountSuppressions401 = UnauthorizedError;
|
|
1598
|
+
const EmailCountSuppressions403 = ForbiddenError;
|
|
1599
|
+
const EmailCountSuppressions422 = ValidationError;
|
|
1600
|
+
const EmailCountSuppressions500 = InternalError;
|
|
1601
|
+
const EmailCountSuppressions504 = GatewayTimeoutError;
|
|
1602
|
+
const EmailGetTrackingDefaults200 = EmailTrackingDefaults;
|
|
1603
|
+
const EmailGetTrackingDefaults401 = UnauthorizedError;
|
|
1604
|
+
const EmailGetTrackingDefaults403 = ForbiddenError;
|
|
1605
|
+
const EmailGetTrackingDefaults404 = ResourceNotFoundError;
|
|
1606
|
+
const EmailGetTrackingDefaults422 = ValidationError;
|
|
1607
|
+
const EmailGetTrackingDefaults500 = InternalError;
|
|
1608
|
+
const EmailGetTrackingDefaults504 = GatewayTimeoutError;
|
|
1609
|
+
const EmailUpdateTrackingDefaultsRequestJson = /* @__PURE__ */ Schema$1.Struct({
|
|
1610
|
+
opens: Schema$1.optionalKey(Schema$1.Boolean),
|
|
1611
|
+
clicks: Schema$1.optionalKey(Schema$1.Boolean)
|
|
1612
|
+
});
|
|
1613
|
+
const EmailUpdateTrackingDefaults200 = EmailTrackingDefaults;
|
|
1614
|
+
const EmailUpdateTrackingDefaults401 = UnauthorizedError;
|
|
1615
|
+
const EmailUpdateTrackingDefaults403 = ForbiddenError;
|
|
1616
|
+
const EmailUpdateTrackingDefaults404 = ResourceNotFoundError;
|
|
1617
|
+
const EmailUpdateTrackingDefaults422 = ValidationError;
|
|
1618
|
+
const EmailUpdateTrackingDefaults500 = InternalError;
|
|
1619
|
+
const EmailUpdateTrackingDefaults504 = GatewayTimeoutError;
|
|
1620
|
+
const EmailGetRecipientTrackingPreferenceQuery = /* @__PURE__ */ Schema$1.Struct({ email: TrackingRecipientEmail });
|
|
1621
|
+
const EmailGetRecipientTrackingPreference200 = EmailRecipientTrackingPreference;
|
|
1622
|
+
const EmailGetRecipientTrackingPreference401 = UnauthorizedError;
|
|
1623
|
+
const EmailGetRecipientTrackingPreference403 = ForbiddenError;
|
|
1624
|
+
const EmailGetRecipientTrackingPreference422 = ValidationError;
|
|
1625
|
+
const EmailGetRecipientTrackingPreference500 = InternalError;
|
|
1626
|
+
const EmailGetRecipientTrackingPreference504 = GatewayTimeoutError;
|
|
1627
|
+
const EmailUpdateRecipientTrackingPreferenceRequestJson = /* @__PURE__ */ Schema$1.Struct({
|
|
1628
|
+
email: TrackingRecipientEmail,
|
|
1629
|
+
optedOut: Schema$1.Boolean
|
|
1630
|
+
});
|
|
1631
|
+
const EmailUpdateRecipientTrackingPreference200 = EmailRecipientTrackingPreference;
|
|
1632
|
+
const EmailUpdateRecipientTrackingPreference401 = UnauthorizedError;
|
|
1633
|
+
const EmailUpdateRecipientTrackingPreference403 = ForbiddenError;
|
|
1634
|
+
const EmailUpdateRecipientTrackingPreference422 = ValidationError;
|
|
1635
|
+
const EmailUpdateRecipientTrackingPreference500 = InternalError;
|
|
1636
|
+
const EmailUpdateRecipientTrackingPreference504 = GatewayTimeoutError;
|
|
1637
|
+
var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.get("emailListBlocks", "/v1/email/blocks", {
|
|
1638
|
+
query: EmailListBlocksQuery,
|
|
1639
|
+
success: EmailListBlocks200,
|
|
1640
|
+
error: [
|
|
1641
|
+
EmailListBlocks401.pipe(HttpApiSchema.status(401)),
|
|
1642
|
+
EmailListBlocks403.pipe(HttpApiSchema.status(403)),
|
|
1643
|
+
EmailListBlocks422.pipe(HttpApiSchema.status(422)),
|
|
1644
|
+
EmailListBlocks500,
|
|
1645
|
+
EmailListBlocks504.pipe(HttpApiSchema.status(504))
|
|
1646
|
+
]
|
|
1647
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.listBlocks").annotate(OpenApi.Summary, "List block entries").annotate(OpenApi.Description, "Returns block entries, newest first, optionally filtered by block type and active state. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.post("emailAddBlock", "/v1/email/blocks", {
|
|
1648
|
+
payload: EmailAddBlockRequestJson,
|
|
1649
|
+
success: EmailAddBlock201.pipe(HttpApiSchema.status(201)),
|
|
1650
|
+
error: [
|
|
1651
|
+
EmailAddBlock401.pipe(HttpApiSchema.status(401)),
|
|
1652
|
+
EmailAddBlock403.pipe(HttpApiSchema.status(403)),
|
|
1653
|
+
EmailAddBlock409.pipe(HttpApiSchema.status(409)),
|
|
1654
|
+
EmailAddBlock422.pipe(HttpApiSchema.status(422)),
|
|
1655
|
+
EmailAddBlock500,
|
|
1656
|
+
EmailAddBlock504.pipe(HttpApiSchema.status(504))
|
|
1657
|
+
]
|
|
1658
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.addBlock").annotate(OpenApi.Summary, "Add a block entry").annotate(OpenApi.Description, "Blocks an email address or domain from inbound receiving and returns the created block entry. Responds with 201."), HttpApiEndpoint.delete("emailRemoveBlock", "/v1/email/blocks/:id", {
|
|
1659
|
+
params: EmailRemoveBlockPathParams,
|
|
1660
|
+
success: EmailRemoveBlock200,
|
|
1661
|
+
error: [
|
|
1662
|
+
EmailRemoveBlock401.pipe(HttpApiSchema.status(401)),
|
|
1663
|
+
EmailRemoveBlock403.pipe(HttpApiSchema.status(403)),
|
|
1664
|
+
EmailRemoveBlock404.pipe(HttpApiSchema.status(404)),
|
|
1665
|
+
EmailRemoveBlock422.pipe(HttpApiSchema.status(422)),
|
|
1666
|
+
EmailRemoveBlock500,
|
|
1667
|
+
EmailRemoveBlock504.pipe(HttpApiSchema.status(504))
|
|
1668
|
+
]
|
|
1669
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.removeBlock").annotate(OpenApi.Summary, "Remove a block entry").annotate(OpenApi.Description, "Permanently deletes a block entry, unblocking the associated address or domain."), HttpApiEndpoint.patch("emailUpdateBlock", "/v1/email/blocks/:id", {
|
|
1670
|
+
params: EmailUpdateBlockPathParams,
|
|
1671
|
+
payload: EmailUpdateBlockRequestJson,
|
|
1672
|
+
success: EmailUpdateBlock200,
|
|
1673
|
+
error: [
|
|
1674
|
+
EmailUpdateBlock401.pipe(HttpApiSchema.status(401)),
|
|
1675
|
+
EmailUpdateBlock403.pipe(HttpApiSchema.status(403)),
|
|
1676
|
+
EmailUpdateBlock404.pipe(HttpApiSchema.status(404)),
|
|
1677
|
+
EmailUpdateBlock422.pipe(HttpApiSchema.status(422)),
|
|
1678
|
+
EmailUpdateBlock500,
|
|
1679
|
+
EmailUpdateBlock504.pipe(HttpApiSchema.status(504))
|
|
1680
|
+
]
|
|
1681
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.updateBlock").annotate(OpenApi.Summary, "Update a block entry").annotate(OpenApi.Description, "Updates a block entry's reason, notes, active state, or expiry."), HttpApiEndpoint.post("emailCheckBlocked", "/v1/email/blocks/check", {
|
|
1682
|
+
payload: EmailCheckBlockedRequestJson,
|
|
1683
|
+
success: EmailCheckBlocked200,
|
|
1684
|
+
error: [
|
|
1685
|
+
EmailCheckBlocked401.pipe(HttpApiSchema.status(401)),
|
|
1686
|
+
EmailCheckBlocked403.pipe(HttpApiSchema.status(403)),
|
|
1687
|
+
EmailCheckBlocked422.pipe(HttpApiSchema.status(422)),
|
|
1688
|
+
EmailCheckBlocked500,
|
|
1689
|
+
EmailCheckBlocked504.pipe(HttpApiSchema.status(504))
|
|
1690
|
+
]
|
|
1691
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.checkBlocked").annotate(OpenApi.Summary, "Check whether an address is blocked").annotate(OpenApi.Description, "Checks whether an email address is currently blocked and returns the matching block rule when one applies."), HttpApiEndpoint.get("emailGetBlockLogs", "/v1/email/blocks/logs", {
|
|
1692
|
+
query: EmailGetBlockLogsQuery,
|
|
1693
|
+
success: EmailGetBlockLogs200,
|
|
1694
|
+
error: [
|
|
1695
|
+
EmailGetBlockLogs401.pipe(HttpApiSchema.status(401)),
|
|
1696
|
+
EmailGetBlockLogs403.pipe(HttpApiSchema.status(403)),
|
|
1697
|
+
EmailGetBlockLogs422.pipe(HttpApiSchema.status(422)),
|
|
1698
|
+
EmailGetBlockLogs500,
|
|
1699
|
+
EmailGetBlockLogs504.pipe(HttpApiSchema.status(504))
|
|
1700
|
+
]
|
|
1701
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getBlockLogs").annotate(OpenApi.Summary, "List blocked email logs").annotate(OpenApi.Description, "Returns inbound emails that were blocked, most recently blocked first, optionally filtered by block entry, sender, or block time (`after`, `before`). Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.get("emailGetCatchAllConfig", "/v1/email/catch-all/config", {
|
|
1702
|
+
query: EmailGetCatchAllConfigQuery,
|
|
1703
|
+
success: EmailGetCatchAllConfig200,
|
|
1704
|
+
error: [
|
|
1705
|
+
EmailGetCatchAllConfig401.pipe(HttpApiSchema.status(401)),
|
|
1706
|
+
EmailGetCatchAllConfig403.pipe(HttpApiSchema.status(403)),
|
|
1707
|
+
EmailGetCatchAllConfig404.pipe(HttpApiSchema.status(404)),
|
|
1708
|
+
EmailGetCatchAllConfig422.pipe(HttpApiSchema.status(422)),
|
|
1709
|
+
EmailGetCatchAllConfig500,
|
|
1710
|
+
EmailGetCatchAllConfig504.pipe(HttpApiSchema.status(504))
|
|
1711
|
+
]
|
|
1712
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getCatchAllConfig").annotate(OpenApi.Summary, "Get catch-all configuration").annotate(OpenApi.Description, "Returns the catch-all receiving configuration for a domain, including the webhook endpoint that receives its inbound mail and its email counts."), HttpApiEndpoint.patch("emailUpdateCatchAllConfig", "/v1/email/catch-all/config", {
|
|
1713
|
+
payload: EmailUpdateCatchAllConfigRequestJson,
|
|
1714
|
+
success: EmailUpdateCatchAllConfig200,
|
|
1715
|
+
error: [
|
|
1716
|
+
EmailUpdateCatchAllConfig401.pipe(HttpApiSchema.status(401)),
|
|
1717
|
+
EmailUpdateCatchAllConfig403.pipe(HttpApiSchema.status(403)),
|
|
1718
|
+
EmailUpdateCatchAllConfig404.pipe(HttpApiSchema.status(404)),
|
|
1719
|
+
EmailUpdateCatchAllConfig422.pipe(HttpApiSchema.status(422)),
|
|
1720
|
+
EmailUpdateCatchAllConfig500,
|
|
1721
|
+
EmailUpdateCatchAllConfig504.pipe(HttpApiSchema.status(504))
|
|
1722
|
+
]
|
|
1723
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.updateCatchAllConfig").annotate(OpenApi.Summary, "Update catch-all configuration").annotate(OpenApi.Description, "Updates a domain's catch-all receiving configuration: the webhook endpoint that receives its inbound mail."), HttpApiEndpoint.get("emailGetCatchAllStats", "/v1/email/catch-all/stats", {
|
|
1724
|
+
query: EmailGetCatchAllStatsQuery,
|
|
1725
|
+
success: EmailGetCatchAllStats200,
|
|
1726
|
+
error: [
|
|
1727
|
+
EmailGetCatchAllStats401.pipe(HttpApiSchema.status(401)),
|
|
1728
|
+
EmailGetCatchAllStats403.pipe(HttpApiSchema.status(403)),
|
|
1729
|
+
EmailGetCatchAllStats404.pipe(HttpApiSchema.status(404)),
|
|
1730
|
+
EmailGetCatchAllStats422.pipe(HttpApiSchema.status(422)),
|
|
1731
|
+
EmailGetCatchAllStats500,
|
|
1732
|
+
EmailGetCatchAllStats504.pipe(HttpApiSchema.status(504))
|
|
1733
|
+
]
|
|
1734
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getCatchAllStats").annotate(OpenApi.Summary, "Get catch-all statistics").annotate(OpenApi.Description, "Returns catch-all receiving counters for a domain, adding an aggregated breakdown when `after` or `before` bounds a range: `after` inclusive, `before` exclusive."), HttpApiEndpoint.get("emailListDomains", "/v1/email/domains", {
|
|
1735
|
+
query: EmailListDomainsQuery,
|
|
1736
|
+
success: EmailListDomains200,
|
|
1737
|
+
error: [
|
|
1738
|
+
EmailListDomains401.pipe(HttpApiSchema.status(401)),
|
|
1739
|
+
EmailListDomains403.pipe(HttpApiSchema.status(403)),
|
|
1740
|
+
EmailListDomains422.pipe(HttpApiSchema.status(422)),
|
|
1741
|
+
EmailListDomains500,
|
|
1742
|
+
EmailListDomains504.pipe(HttpApiSchema.status(504))
|
|
1743
|
+
]
|
|
1744
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.listDomains").annotate(OpenApi.Summary, "List sending domains").annotate(OpenApi.Description, "Returns the organization's sending domains, newest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. `sendable=true` lists only domains a send can use now: active, and verified, or verified before and degraded since. Each row carries `deliverability` (bounce and complaint rates over the last 24 hours, the window the 5% bounce limit is enforced over) and `series`, the last 14 days of daily email sends attributed to the domain, oldest first."), HttpApiEndpoint.post("emailAddDomain", "/v1/email/domains", {
|
|
1745
|
+
payload: EmailAddDomainRequestJson,
|
|
1746
|
+
success: EmailAddDomain201.pipe(HttpApiSchema.status(201)),
|
|
1747
|
+
error: [
|
|
1748
|
+
EmailAddDomain401.pipe(HttpApiSchema.status(401)),
|
|
1749
|
+
EmailAddDomain402.pipe(HttpApiSchema.status(402)),
|
|
1750
|
+
EmailAddDomain403.pipe(HttpApiSchema.status(403)),
|
|
1751
|
+
EmailAddDomain409.pipe(HttpApiSchema.status(409)),
|
|
1752
|
+
EmailAddDomain422.pipe(HttpApiSchema.status(422)),
|
|
1753
|
+
EmailAddDomain429.pipe(HttpApiSchema.status(429)),
|
|
1754
|
+
EmailAddDomain500,
|
|
1755
|
+
EmailAddDomain502.pipe(HttpApiSchema.status(502)),
|
|
1756
|
+
EmailAddDomain504.pipe(HttpApiSchema.status(504))
|
|
1757
|
+
]
|
|
1758
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.addDomain").annotate(OpenApi.Summary, "Add a sending domain").annotate(OpenApi.Description, "Registers a domain for sending and returns it with the DNS records required to verify ownership and configure DKIM. Responds with 201. Supplying a connection attaches the domain to that DNS account; the domain must sit inside the zone given with it. When Samva cannot register another sending domain right now, this responds with 429 and no domain is created. A banned organization is refused with 403."), HttpApiEndpoint.get("emailGetDomainById", "/v1/email/domains/:id", {
|
|
1759
|
+
params: EmailGetDomainByIdPathParams,
|
|
1760
|
+
success: EmailGetDomainById200,
|
|
1761
|
+
error: [
|
|
1762
|
+
EmailGetDomainById401.pipe(HttpApiSchema.status(401)),
|
|
1763
|
+
EmailGetDomainById403.pipe(HttpApiSchema.status(403)),
|
|
1764
|
+
EmailGetDomainById404.pipe(HttpApiSchema.status(404)),
|
|
1765
|
+
EmailGetDomainById422.pipe(HttpApiSchema.status(422)),
|
|
1766
|
+
EmailGetDomainById500,
|
|
1767
|
+
EmailGetDomainById504.pipe(HttpApiSchema.status(504))
|
|
1768
|
+
]
|
|
1769
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getDomainById").annotate(OpenApi.Summary, "Get a sending domain").annotate(OpenApi.Description, "Returns a single sending domain, including its DNS records and verification details."), HttpApiEndpoint.delete("emailRemoveDomain", "/v1/email/domains/:id", {
|
|
1770
|
+
params: EmailRemoveDomainPathParams,
|
|
1771
|
+
success: EmailRemoveDomain200,
|
|
1772
|
+
error: [
|
|
1773
|
+
EmailRemoveDomain401.pipe(HttpApiSchema.status(401)),
|
|
1774
|
+
EmailRemoveDomain403.pipe(HttpApiSchema.status(403)),
|
|
1775
|
+
EmailRemoveDomain404.pipe(HttpApiSchema.status(404)),
|
|
1776
|
+
EmailRemoveDomain422.pipe(HttpApiSchema.status(422)),
|
|
1777
|
+
EmailRemoveDomain500,
|
|
1778
|
+
EmailRemoveDomain502.pipe(HttpApiSchema.status(502)),
|
|
1779
|
+
EmailRemoveDomain504.pipe(HttpApiSchema.status(504))
|
|
1780
|
+
]
|
|
1781
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.removeDomain").annotate(OpenApi.Summary, "Remove a sending domain").annotate(OpenApi.Description, "Permanently deletes a sending domain from the organization."), HttpApiEndpoint.patch("emailUpdateDomainConfig", "/v1/email/domains/:id/config", {
|
|
1782
|
+
params: EmailUpdateDomainConfigPathParams,
|
|
1783
|
+
payload: EmailUpdateDomainConfigRequestJson,
|
|
1784
|
+
success: EmailUpdateDomainConfig200,
|
|
1785
|
+
error: [
|
|
1786
|
+
EmailUpdateDomainConfig401.pipe(HttpApiSchema.status(401)),
|
|
1787
|
+
EmailUpdateDomainConfig403.pipe(HttpApiSchema.status(403)),
|
|
1788
|
+
EmailUpdateDomainConfig404.pipe(HttpApiSchema.status(404)),
|
|
1789
|
+
EmailUpdateDomainConfig422.pipe(HttpApiSchema.status(422)),
|
|
1790
|
+
EmailUpdateDomainConfig500,
|
|
1791
|
+
EmailUpdateDomainConfig504.pipe(HttpApiSchema.status(504))
|
|
1792
|
+
]
|
|
1793
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.updateDomainConfig").annotate(OpenApi.Summary, "Update a domain's send-settings config").annotate(OpenApi.Description, "Overrides the domain's open/click tracking, reply-to, unsubscribe-group defaults, and the brand its mail uses for the settings cascade. An omitted field is left unchanged; null clears it back to the organization default. Returns the saved config."), HttpApiEndpoint.get("emailGetCustomTracking", "/v1/email/domains/:id/custom-tracking", {
|
|
1794
|
+
params: EmailGetCustomTrackingPathParams,
|
|
1795
|
+
success: EmailGetCustomTracking200,
|
|
1796
|
+
error: [
|
|
1797
|
+
EmailGetCustomTracking401.pipe(HttpApiSchema.status(401)),
|
|
1798
|
+
EmailGetCustomTracking403.pipe(HttpApiSchema.status(403)),
|
|
1799
|
+
EmailGetCustomTracking422.pipe(HttpApiSchema.status(422)),
|
|
1800
|
+
EmailGetCustomTracking500,
|
|
1801
|
+
EmailGetCustomTracking504.pipe(HttpApiSchema.status(504))
|
|
1802
|
+
]
|
|
1803
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getCustomTracking").annotate(OpenApi.Summary, "Get custom tracking status").annotate(OpenApi.Description, "Returns the custom tracking state for a sending domain: lifecycle status, the required DNS records, certificate and CAA readiness, and any scheduled teardown. `enabled` is false when no custom tracking domain is provisioned."), HttpApiEndpoint.post("emailEnableCustomTracking", "/v1/email/domains/:id/custom-tracking", {
|
|
1804
|
+
params: EmailEnableCustomTrackingPathParams,
|
|
1805
|
+
payload: EmailEnableCustomTrackingRequestJson,
|
|
1806
|
+
success: EmailEnableCustomTracking200,
|
|
1807
|
+
error: [
|
|
1808
|
+
EmailEnableCustomTracking401.pipe(HttpApiSchema.status(401)),
|
|
1809
|
+
EmailEnableCustomTracking403.pipe(HttpApiSchema.status(403)),
|
|
1810
|
+
EmailEnableCustomTracking409.pipe(HttpApiSchema.status(409)),
|
|
1811
|
+
EmailEnableCustomTracking422.pipe(HttpApiSchema.status(422)),
|
|
1812
|
+
EmailEnableCustomTracking500,
|
|
1813
|
+
EmailEnableCustomTracking502.pipe(HttpApiSchema.status(502)),
|
|
1814
|
+
EmailEnableCustomTracking504.pipe(HttpApiSchema.status(504))
|
|
1815
|
+
]
|
|
1816
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.enableCustomTracking").annotate(OpenApi.Summary, "Enable a custom tracking domain").annotate(OpenApi.Description, "Provisions a custom tracking domain (default label `track`) for a verified sending domain so open/click links redirect through the customer's own subdomain. Requires a plan that includes custom tracking domains. Returns the resulting state including the two DNS records the customer must create."), HttpApiEndpoint.delete("emailDisableCustomTracking", "/v1/email/domains/:id/custom-tracking", {
|
|
1817
|
+
params: EmailDisableCustomTrackingPathParams,
|
|
1818
|
+
success: EmailDisableCustomTracking200,
|
|
1819
|
+
error: [
|
|
1820
|
+
EmailDisableCustomTracking401.pipe(HttpApiSchema.status(401)),
|
|
1821
|
+
EmailDisableCustomTracking403.pipe(HttpApiSchema.status(403)),
|
|
1822
|
+
EmailDisableCustomTracking409.pipe(HttpApiSchema.status(409)),
|
|
1823
|
+
EmailDisableCustomTracking422.pipe(HttpApiSchema.status(422)),
|
|
1824
|
+
EmailDisableCustomTracking500,
|
|
1825
|
+
EmailDisableCustomTracking502.pipe(HttpApiSchema.status(502)),
|
|
1826
|
+
EmailDisableCustomTracking504.pipe(HttpApiSchema.status(504))
|
|
1827
|
+
]
|
|
1828
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.disableCustomTracking").annotate(OpenApi.Summary, "Disable a custom tracking domain").annotate(OpenApi.Description, "Disables a domain's custom tracking, removes its managed resources, and immediately returns sends to the shared tracking host. Existing custom links in already-delivered mail stop working."), HttpApiEndpoint.get("emailGetCustomTrackingDomainConnect", "/v1/email/domains/:id/custom-tracking/domain-connect", {
|
|
1829
|
+
params: EmailGetCustomTrackingDomainConnectPathParams,
|
|
1830
|
+
success: EmailGetCustomTrackingDomainConnect200,
|
|
1831
|
+
error: [
|
|
1832
|
+
EmailGetCustomTrackingDomainConnect401.pipe(HttpApiSchema.status(401)),
|
|
1833
|
+
EmailGetCustomTrackingDomainConnect403.pipe(HttpApiSchema.status(403)),
|
|
1834
|
+
EmailGetCustomTrackingDomainConnect404.pipe(HttpApiSchema.status(404)),
|
|
1835
|
+
EmailGetCustomTrackingDomainConnect422.pipe(HttpApiSchema.status(422)),
|
|
1836
|
+
EmailGetCustomTrackingDomainConnect500,
|
|
1837
|
+
EmailGetCustomTrackingDomainConnect504.pipe(HttpApiSchema.status(504))
|
|
1838
|
+
]
|
|
1839
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getCustomTrackingDomainConnect").annotate(OpenApi.Summary, "Check automatic Custom Tracking Domain setup eligibility").annotate(OpenApi.Description, "Reports whether the domain's DNS provider supports Domain Connect for its current Custom Tracking Domain. Ineligible is a normal result and the exact manual CNAME records remain available."), HttpApiEndpoint.post("emailBuildCustomTrackingDomainConnectApplyUrl", "/v1/email/domains/:id/custom-tracking/domain-connect/apply-url", {
|
|
1840
|
+
params: EmailBuildCustomTrackingDomainConnectApplyUrlPathParams,
|
|
1841
|
+
success: EmailBuildCustomTrackingDomainConnectApplyUrl200,
|
|
1842
|
+
error: [
|
|
1843
|
+
EmailBuildCustomTrackingDomainConnectApplyUrl401.pipe(HttpApiSchema.status(401)),
|
|
1844
|
+
EmailBuildCustomTrackingDomainConnectApplyUrl403.pipe(HttpApiSchema.status(403)),
|
|
1845
|
+
EmailBuildCustomTrackingDomainConnectApplyUrl404.pipe(HttpApiSchema.status(404)),
|
|
1846
|
+
EmailBuildCustomTrackingDomainConnectApplyUrl409.pipe(HttpApiSchema.status(409)),
|
|
1847
|
+
EmailBuildCustomTrackingDomainConnectApplyUrl422.pipe(HttpApiSchema.status(422)),
|
|
1848
|
+
EmailBuildCustomTrackingDomainConnectApplyUrl500,
|
|
1849
|
+
EmailBuildCustomTrackingDomainConnectApplyUrl502.pipe(HttpApiSchema.status(502)),
|
|
1850
|
+
EmailBuildCustomTrackingDomainConnectApplyUrl504.pipe(HttpApiSchema.status(504))
|
|
1851
|
+
]
|
|
1852
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.buildCustomTrackingDomainConnectApplyUrl").annotate(OpenApi.Summary, "Build an automatic Custom Tracking Domain apply URL").annotate(OpenApi.Description, "Builds the signed Domain Connect URL for the current customer-selected tracking host. Samva fills in the host and the certificate validation record; the manual CNAME records remain available."), HttpApiEndpoint.post("emailCompleteCustomTrackingDomainConnect", "/v1/email/domains/:id/custom-tracking/domain-connect/complete", {
|
|
1853
|
+
params: EmailCompleteCustomTrackingDomainConnectPathParams,
|
|
1854
|
+
payload: EmailCompleteCustomTrackingDomainConnectRequestJson,
|
|
1855
|
+
success: EmailCompleteCustomTrackingDomainConnect200,
|
|
1856
|
+
error: [
|
|
1857
|
+
EmailCompleteCustomTrackingDomainConnect401.pipe(HttpApiSchema.status(401)),
|
|
1858
|
+
EmailCompleteCustomTrackingDomainConnect403.pipe(HttpApiSchema.status(403)),
|
|
1859
|
+
EmailCompleteCustomTrackingDomainConnect422.pipe(HttpApiSchema.status(422)),
|
|
1860
|
+
EmailCompleteCustomTrackingDomainConnect500,
|
|
1861
|
+
EmailCompleteCustomTrackingDomainConnect504.pipe(HttpApiSchema.status(504))
|
|
1862
|
+
]
|
|
1863
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.completeCustomTrackingDomainConnect").annotate(OpenApi.Summary, "Complete an automatic Custom Tracking Domain return").annotate(OpenApi.Description, "Validates the signed state returned by the DNS provider, then checks the tracking host again. Returning here never marks the host ready or changes which tracking host email uses."), HttpApiEndpoint.post("emailRecheckCustomTracking", "/v1/email/domains/:id/custom-tracking/recheck", {
|
|
1864
|
+
params: EmailRecheckCustomTrackingPathParams,
|
|
1865
|
+
success: EmailRecheckCustomTracking200,
|
|
1866
|
+
error: [
|
|
1867
|
+
EmailRecheckCustomTracking401.pipe(HttpApiSchema.status(401)),
|
|
1868
|
+
EmailRecheckCustomTracking403.pipe(HttpApiSchema.status(403)),
|
|
1869
|
+
EmailRecheckCustomTracking404.pipe(HttpApiSchema.status(404)),
|
|
1870
|
+
EmailRecheckCustomTracking409.pipe(HttpApiSchema.status(409)),
|
|
1871
|
+
EmailRecheckCustomTracking422.pipe(HttpApiSchema.status(422)),
|
|
1872
|
+
EmailRecheckCustomTracking500,
|
|
1873
|
+
EmailRecheckCustomTracking502.pipe(HttpApiSchema.status(502)),
|
|
1874
|
+
EmailRecheckCustomTracking504.pipe(HttpApiSchema.status(504))
|
|
1875
|
+
]
|
|
1876
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.recheckCustomTracking").annotate(OpenApi.Summary, "Recheck a custom tracking domain's certificate").annotate(OpenApi.Description, "Checks the hostname's certificate now instead of waiting for the next scheduled check, and returns the refreshed state. Samva checks a hostname at most once every 30 seconds; a recheck inside that window returns the state from the last check. Returns a conflict when custom tracking is disabled or being torn down."), HttpApiEndpoint.post("emailSetDefaultDomain", "/v1/email/domains/:id/default", {
|
|
1877
|
+
params: EmailSetDefaultDomainPathParams,
|
|
1878
|
+
success: EmailSetDefaultDomain200,
|
|
1879
|
+
error: [
|
|
1880
|
+
EmailSetDefaultDomain401.pipe(HttpApiSchema.status(401)),
|
|
1881
|
+
EmailSetDefaultDomain403.pipe(HttpApiSchema.status(403)),
|
|
1882
|
+
EmailSetDefaultDomain404.pipe(HttpApiSchema.status(404)),
|
|
1883
|
+
EmailSetDefaultDomain422.pipe(HttpApiSchema.status(422)),
|
|
1884
|
+
EmailSetDefaultDomain500,
|
|
1885
|
+
EmailSetDefaultDomain504.pipe(HttpApiSchema.status(504))
|
|
1886
|
+
]
|
|
1887
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.setDefaultDomain").annotate(OpenApi.Summary, "Set the default sending domain").annotate(OpenApi.Description, "Marks a verified domain as the organization's default sending domain, atomically clearing any previous default. Provisioning and inbound routing prefer the default domain when several apply. It does not choose the `from` of omitted-`from` sends; those use the organization default sender."), HttpApiEndpoint.post("emailDisableCatchAll", "/v1/email/domains/:id/disable-catch-all", {
|
|
1888
|
+
params: EmailDisableCatchAllPathParams,
|
|
1889
|
+
success: EmailDisableCatchAll200,
|
|
1890
|
+
error: [
|
|
1891
|
+
EmailDisableCatchAll401.pipe(HttpApiSchema.status(401)),
|
|
1892
|
+
EmailDisableCatchAll403.pipe(HttpApiSchema.status(403)),
|
|
1893
|
+
EmailDisableCatchAll404.pipe(HttpApiSchema.status(404)),
|
|
1894
|
+
EmailDisableCatchAll422.pipe(HttpApiSchema.status(422)),
|
|
1895
|
+
EmailDisableCatchAll500,
|
|
1896
|
+
EmailDisableCatchAll502.pipe(HttpApiSchema.status(502)),
|
|
1897
|
+
EmailDisableCatchAll504.pipe(HttpApiSchema.status(504))
|
|
1898
|
+
]
|
|
1899
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.disableCatchAll").annotate(OpenApi.Summary, "Disable catch-all receiving").annotate(OpenApi.Description, "Disables catch-all inbound receiving for a domain."), HttpApiEndpoint.get("emailGetDomainConnect", "/v1/email/domains/:id/domain-connect", {
|
|
1900
|
+
params: EmailGetDomainConnectPathParams,
|
|
1901
|
+
query: EmailGetDomainConnectQuery,
|
|
1902
|
+
success: EmailGetDomainConnect200,
|
|
1903
|
+
error: [
|
|
1904
|
+
EmailGetDomainConnect401.pipe(HttpApiSchema.status(401)),
|
|
1905
|
+
EmailGetDomainConnect403.pipe(HttpApiSchema.status(403)),
|
|
1906
|
+
EmailGetDomainConnect404.pipe(HttpApiSchema.status(404)),
|
|
1907
|
+
EmailGetDomainConnect422.pipe(HttpApiSchema.status(422)),
|
|
1908
|
+
EmailGetDomainConnect500,
|
|
1909
|
+
EmailGetDomainConnect504.pipe(HttpApiSchema.status(504))
|
|
1910
|
+
]
|
|
1911
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getDomainConnect").annotate(OpenApi.Summary, "Check one-click DNS eligibility").annotate(OpenApi.Description, "Reports whether the domain's DNS provider supports Domain Connect one-click setup for Samva, and the provider's name when it does. Ineligible is a normal result — the manual DNS records remain the way to verify."), HttpApiEndpoint.post("emailBuildDomainConnectApplyUrl", "/v1/email/domains/:id/domain-connect/apply-url", {
|
|
1912
|
+
params: EmailBuildDomainConnectApplyUrlPathParams,
|
|
1913
|
+
payload: EmailBuildDomainConnectApplyUrlRequestJson,
|
|
1914
|
+
success: EmailBuildDomainConnectApplyUrl200,
|
|
1915
|
+
error: [
|
|
1916
|
+
EmailBuildDomainConnectApplyUrl401.pipe(HttpApiSchema.status(401)),
|
|
1917
|
+
EmailBuildDomainConnectApplyUrl403.pipe(HttpApiSchema.status(403)),
|
|
1918
|
+
EmailBuildDomainConnectApplyUrl404.pipe(HttpApiSchema.status(404)),
|
|
1919
|
+
EmailBuildDomainConnectApplyUrl409.pipe(HttpApiSchema.status(409)),
|
|
1920
|
+
EmailBuildDomainConnectApplyUrl422.pipe(HttpApiSchema.status(422)),
|
|
1921
|
+
EmailBuildDomainConnectApplyUrl500,
|
|
1922
|
+
EmailBuildDomainConnectApplyUrl502.pipe(HttpApiSchema.status(502)),
|
|
1923
|
+
EmailBuildDomainConnectApplyUrl504.pipe(HttpApiSchema.status(504))
|
|
1924
|
+
]
|
|
1925
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.buildDomainConnectApplyUrl").annotate(OpenApi.Summary, "Build a one-click DNS apply URL").annotate(OpenApi.Description, "Builds the signed Domain Connect apply URL for the selected sending-only or sending-and-receiving service. The sending-and-receiving service writes the apex inbound MX, so it is refused until the domain's receiving is enabled. Manual DNS remains available for either mode."), HttpApiEndpoint.post("emailCompleteDomainConnect", "/v1/email/domains/:id/domain-connect/complete", {
|
|
1926
|
+
params: EmailCompleteDomainConnectPathParams,
|
|
1927
|
+
payload: EmailCompleteDomainConnectRequestJson,
|
|
1928
|
+
success: EmailCompleteDomainConnect200,
|
|
1929
|
+
error: [
|
|
1930
|
+
EmailCompleteDomainConnect401.pipe(HttpApiSchema.status(401)),
|
|
1931
|
+
EmailCompleteDomainConnect403.pipe(HttpApiSchema.status(403)),
|
|
1932
|
+
EmailCompleteDomainConnect404.pipe(HttpApiSchema.status(404)),
|
|
1933
|
+
EmailCompleteDomainConnect422.pipe(HttpApiSchema.status(422)),
|
|
1934
|
+
EmailCompleteDomainConnect500,
|
|
1935
|
+
EmailCompleteDomainConnect502.pipe(HttpApiSchema.status(502)),
|
|
1936
|
+
EmailCompleteDomainConnect504.pipe(HttpApiSchema.status(504))
|
|
1937
|
+
]
|
|
1938
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.completeDomainConnect").annotate(OpenApi.Summary, "Complete a one-click DNS return").annotate(OpenApi.Description, "Consumes the Domain Connect provider's redirect. Validates the signed state and, when the DNS provider reports success, starts checking the domain's records. A DNS provider error is reported separately from a customer cancelling setup."), HttpApiEndpoint.post("emailEnableCatchAll", "/v1/email/domains/:id/enable-catch-all", {
|
|
1939
|
+
params: EmailEnableCatchAllPathParams,
|
|
1940
|
+
payload: EmailEnableCatchAllRequestJson,
|
|
1941
|
+
success: EmailEnableCatchAll201.pipe(HttpApiSchema.status(201)),
|
|
1942
|
+
error: [
|
|
1943
|
+
EmailEnableCatchAll401.pipe(HttpApiSchema.status(401)),
|
|
1944
|
+
EmailEnableCatchAll403.pipe(HttpApiSchema.status(403)),
|
|
1945
|
+
EmailEnableCatchAll404.pipe(HttpApiSchema.status(404)),
|
|
1946
|
+
EmailEnableCatchAll422.pipe(HttpApiSchema.status(422)),
|
|
1947
|
+
EmailEnableCatchAll500,
|
|
1948
|
+
EmailEnableCatchAll502.pipe(HttpApiSchema.status(502)),
|
|
1949
|
+
EmailEnableCatchAll504.pipe(HttpApiSchema.status(504))
|
|
1950
|
+
]
|
|
1951
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.enableCatchAll").annotate(OpenApi.Summary, "Enable catch-all receiving").annotate(OpenApi.Description, "Enables catch-all inbound receiving for a verified domain. `endpointId` is one of the organization's webhook endpoints; every address on the domain delivers `message.received` to it. Omit it to deliver through forwarding rules alone, which needs at least one active forwarding rule covering the domain. Mail that matches neither a rule nor an endpoint is rejected as an unknown recipient. Responds with 201."), HttpApiEndpoint.post("emailEnableReceiving", "/v1/email/domains/:id/enable-receiving", {
|
|
1952
|
+
params: EmailEnableReceivingPathParams,
|
|
1953
|
+
payload: EmailEnableReceivingRequestJson,
|
|
1954
|
+
success: EmailEnableReceiving200,
|
|
1955
|
+
error: [
|
|
1956
|
+
EmailEnableReceiving401.pipe(HttpApiSchema.status(401)),
|
|
1957
|
+
EmailEnableReceiving403.pipe(HttpApiSchema.status(403)),
|
|
1958
|
+
EmailEnableReceiving404.pipe(HttpApiSchema.status(404)),
|
|
1959
|
+
EmailEnableReceiving422.pipe(HttpApiSchema.status(422)),
|
|
1960
|
+
EmailEnableReceiving500,
|
|
1961
|
+
EmailEnableReceiving504.pipe(HttpApiSchema.status(504))
|
|
1962
|
+
]
|
|
1963
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.enableReceiving").annotate(OpenApi.Summary, "Enable inbound email for a domain").annotate(OpenApi.Description, "Enables inbound receiving for a verified domain and returns the recipient addresses it accepts. Set `catchAll` to route every address on the domain; that needs a destination: a webhook endpoint, supplied as `endpointId` or already configured on the domain, or at least one active forwarding rule that covers the domain. Mail that matches neither is rejected, never accepted and dropped."), HttpApiEndpoint.get("emailGetReceivingStatus", "/v1/email/domains/:id/receiving-status", {
|
|
1964
|
+
params: EmailGetReceivingStatusPathParams,
|
|
1965
|
+
success: EmailGetReceivingStatus200,
|
|
1966
|
+
error: [
|
|
1967
|
+
EmailGetReceivingStatus401.pipe(HttpApiSchema.status(401)),
|
|
1968
|
+
EmailGetReceivingStatus403.pipe(HttpApiSchema.status(403)),
|
|
1969
|
+
EmailGetReceivingStatus404.pipe(HttpApiSchema.status(404)),
|
|
1970
|
+
EmailGetReceivingStatus422.pipe(HttpApiSchema.status(422)),
|
|
1971
|
+
EmailGetReceivingStatus500,
|
|
1972
|
+
EmailGetReceivingStatus504.pipe(HttpApiSchema.status(504))
|
|
1973
|
+
]
|
|
1974
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getReceivingStatus").annotate(OpenApi.Summary, "Get receiving setup status").annotate(OpenApi.Description, "Reports each prerequisite for receiving a domain's mail at Samva, in order: sending verified, a destination (a webhook endpoint or an active forwarding rule), receiving enabled, and the inbound MX record. The MX answer is a live DNS lookup that names the current target when mail is routed elsewhere."), HttpApiEndpoint.post("emailDetectRegistrar", "/v1/email/domains/:id/registrar", {
|
|
1975
|
+
params: EmailDetectRegistrarPathParams,
|
|
1976
|
+
payload: EmailDetectRegistrarRequestJson,
|
|
1977
|
+
success: EmailDetectRegistrar200,
|
|
1978
|
+
error: [
|
|
1979
|
+
EmailDetectRegistrar401.pipe(HttpApiSchema.status(401)),
|
|
1980
|
+
EmailDetectRegistrar403.pipe(HttpApiSchema.status(403)),
|
|
1981
|
+
EmailDetectRegistrar422.pipe(HttpApiSchema.status(422)),
|
|
1982
|
+
EmailDetectRegistrar500,
|
|
1983
|
+
EmailDetectRegistrar504.pipe(HttpApiSchema.status(504))
|
|
1984
|
+
]
|
|
1985
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.detectRegistrar").annotate(OpenApi.Summary, "Detect a domain's registrar").annotate(OpenApi.Description, "Looks up the domain's nameservers to detect its DNS registrar and returns the provider, nameservers, and a link to its setup docs."), HttpApiEndpoint.post("emailRotateDomainDkim", "/v1/email/domains/:id/rotate-dkim", {
|
|
1986
|
+
params: EmailRotateDomainDkimPathParams,
|
|
1987
|
+
headers: EmailRotateDomainDkimHeaders,
|
|
1988
|
+
success: EmailRotateDomainDkim200,
|
|
1989
|
+
error: [
|
|
1990
|
+
EmailRotateDomainDkim401.pipe(HttpApiSchema.status(401)),
|
|
1991
|
+
EmailRotateDomainDkim403.pipe(HttpApiSchema.status(403)),
|
|
1992
|
+
EmailRotateDomainDkim404.pipe(HttpApiSchema.status(404)),
|
|
1993
|
+
EmailRotateDomainDkim409.pipe(HttpApiSchema.status(409)),
|
|
1994
|
+
EmailRotateDomainDkim422.pipe(HttpApiSchema.status(422)),
|
|
1995
|
+
EmailRotateDomainDkim500,
|
|
1996
|
+
EmailRotateDomainDkim502.pipe(HttpApiSchema.status(502)),
|
|
1997
|
+
EmailRotateDomainDkim504.pipe(HttpApiSchema.status(504))
|
|
1998
|
+
]
|
|
1999
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.rotateDomainDkim").annotate(OpenApi.Summary, "Stage a DKIM selector rotation").annotate(OpenApi.Description, "Creates a new DKIM signing key and returns its public DKIM record. Publish it, then advance domain verification to switch signing to the new key. Keep the former record published at least until `minimumRetainUntil`."), HttpApiEndpoint.get("emailGetDomainVerification", "/v1/email/domains/:id/verification", {
|
|
2000
|
+
params: EmailGetDomainVerificationPathParams,
|
|
2001
|
+
success: EmailGetDomainVerification200,
|
|
2002
|
+
error: [
|
|
2003
|
+
EmailGetDomainVerification401.pipe(HttpApiSchema.status(401)),
|
|
2004
|
+
EmailGetDomainVerification403.pipe(HttpApiSchema.status(403)),
|
|
2005
|
+
EmailGetDomainVerification404.pipe(HttpApiSchema.status(404)),
|
|
2006
|
+
EmailGetDomainVerification422.pipe(HttpApiSchema.status(422)),
|
|
2007
|
+
EmailGetDomainVerification500,
|
|
2008
|
+
EmailGetDomainVerification504.pipe(HttpApiSchema.status(504))
|
|
2009
|
+
]
|
|
2010
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getDomainVerification").annotate(OpenApi.Summary, "Get domain verification").annotate(OpenApi.Description, "Returns the domain's last observed DNS and verification state. Reading it does not check DNS again or change anything; use advance to check now."), HttpApiEndpoint.post("emailAdvanceDomainVerification", "/v1/email/domains/:id/verify", {
|
|
2011
|
+
params: EmailAdvanceDomainVerificationPathParams,
|
|
2012
|
+
success: EmailAdvanceDomainVerification200,
|
|
2013
|
+
error: [
|
|
2014
|
+
EmailAdvanceDomainVerification401.pipe(HttpApiSchema.status(401)),
|
|
2015
|
+
EmailAdvanceDomainVerification403.pipe(HttpApiSchema.status(403)),
|
|
2016
|
+
EmailAdvanceDomainVerification404.pipe(HttpApiSchema.status(404)),
|
|
2017
|
+
EmailAdvanceDomainVerification409.pipe(HttpApiSchema.status(409)),
|
|
2018
|
+
EmailAdvanceDomainVerification422.pipe(HttpApiSchema.status(422)),
|
|
2019
|
+
EmailAdvanceDomainVerification429.pipe(HttpApiSchema.status(429)),
|
|
2020
|
+
EmailAdvanceDomainVerification500,
|
|
2021
|
+
EmailAdvanceDomainVerification502.pipe(HttpApiSchema.status(502)),
|
|
2022
|
+
EmailAdvanceDomainVerification504.pipe(HttpApiSchema.status(504))
|
|
2023
|
+
]
|
|
2024
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.advanceDomainVerification").annotate(OpenApi.Summary, "Advance domain verification").annotate(OpenApi.Description, "Checks the required DNS records now and, once they all match, moves the domain toward verified. Safe to call repeatedly."), HttpApiEndpoint.get("emailGetDomainWarming", "/v1/email/domains/:id/warming", {
|
|
2025
|
+
params: EmailGetDomainWarmingPathParams,
|
|
2026
|
+
success: EmailGetDomainWarming200,
|
|
2027
|
+
error: [
|
|
2028
|
+
EmailGetDomainWarming401.pipe(HttpApiSchema.status(401)),
|
|
2029
|
+
EmailGetDomainWarming403.pipe(HttpApiSchema.status(403)),
|
|
2030
|
+
EmailGetDomainWarming404.pipe(HttpApiSchema.status(404)),
|
|
2031
|
+
EmailGetDomainWarming422.pipe(HttpApiSchema.status(422)),
|
|
2032
|
+
EmailGetDomainWarming500,
|
|
2033
|
+
EmailGetDomainWarming504.pipe(HttpApiSchema.status(504))
|
|
2034
|
+
]
|
|
2035
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getDomainWarming").annotate(OpenApi.Summary, "Get domain warming").annotate(OpenApi.Description, "Returns the domain's automated warming policy, its system-created 24-hour windows and policy snapshots, the rolling bounce and complaint window the safety rule reads, every pause above the plan, and the decision history. A domain without a plan returns the evidence and a null plan."), HttpApiEndpoint.post("emailCreateDomainWarmingPlan", "/v1/email/domains/:id/warming", {
|
|
2036
|
+
params: EmailCreateDomainWarmingPlanPathParams,
|
|
2037
|
+
payload: EmailCreateDomainWarmingPlanRequestJson,
|
|
2038
|
+
success: EmailCreateDomainWarmingPlan201.pipe(HttpApiSchema.status(201)),
|
|
2039
|
+
error: [
|
|
2040
|
+
EmailCreateDomainWarmingPlan401.pipe(HttpApiSchema.status(401)),
|
|
2041
|
+
EmailCreateDomainWarmingPlan403.pipe(HttpApiSchema.status(403)),
|
|
2042
|
+
EmailCreateDomainWarmingPlan404.pipe(HttpApiSchema.status(404)),
|
|
2043
|
+
EmailCreateDomainWarmingPlan409.pipe(HttpApiSchema.status(409)),
|
|
2044
|
+
EmailCreateDomainWarmingPlan422.pipe(HttpApiSchema.status(422)),
|
|
2045
|
+
EmailCreateDomainWarmingPlan500,
|
|
2046
|
+
EmailCreateDomainWarmingPlan504.pipe(HttpApiSchema.status(504))
|
|
2047
|
+
]
|
|
2048
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.createDomainWarmingPlan").annotate(OpenApi.Summary, "Start domain warming").annotate(OpenApi.Description, "Starts an automated warming policy on a verified sending domain. Samva opens the first 24-hour campaign window immediately, then opens later windows from the saved growth policy after safe windows close. Direct sends are counted in the domain's window but never delayed. Responds with 201."), HttpApiEndpoint.delete("emailCancelDomainWarmingBatch", "/v1/email/domains/:id/warming/batches/:batchId", {
|
|
2049
|
+
params: EmailCancelDomainWarmingBatchPathParams,
|
|
2050
|
+
success: EmailCancelDomainWarmingBatch200,
|
|
2051
|
+
error: [
|
|
2052
|
+
EmailCancelDomainWarmingBatch401.pipe(HttpApiSchema.status(401)),
|
|
2053
|
+
EmailCancelDomainWarmingBatch403.pipe(HttpApiSchema.status(403)),
|
|
2054
|
+
EmailCancelDomainWarmingBatch404.pipe(HttpApiSchema.status(404)),
|
|
2055
|
+
EmailCancelDomainWarmingBatch409.pipe(HttpApiSchema.status(409)),
|
|
2056
|
+
EmailCancelDomainWarmingBatch422.pipe(HttpApiSchema.status(422)),
|
|
2057
|
+
EmailCancelDomainWarmingBatch500,
|
|
2058
|
+
EmailCancelDomainWarmingBatch504.pipe(HttpApiSchema.status(504))
|
|
2059
|
+
]
|
|
2060
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.cancelDomainWarmingBatch").annotate(OpenApi.Summary, "Cancel a warming window").annotate(OpenApi.Description, "Cancels a scheduled or open system-created warming window. Recipients a campaign run already reserved from it stay reserved; no further runs draw from it."), HttpApiEndpoint.post("emailCompleteDomainWarming", "/v1/email/domains/:id/warming/complete", {
|
|
2061
|
+
params: EmailCompleteDomainWarmingPathParams,
|
|
2062
|
+
payload: EmailCompleteDomainWarmingRequestJson,
|
|
2063
|
+
success: EmailCompleteDomainWarming200,
|
|
2064
|
+
error: [
|
|
2065
|
+
EmailCompleteDomainWarming401.pipe(HttpApiSchema.status(401)),
|
|
2066
|
+
EmailCompleteDomainWarming403.pipe(HttpApiSchema.status(403)),
|
|
2067
|
+
EmailCompleteDomainWarming404.pipe(HttpApiSchema.status(404)),
|
|
2068
|
+
EmailCompleteDomainWarming409.pipe(HttpApiSchema.status(409)),
|
|
2069
|
+
EmailCompleteDomainWarming422.pipe(HttpApiSchema.status(422)),
|
|
2070
|
+
EmailCompleteDomainWarming500,
|
|
2071
|
+
EmailCompleteDomainWarming504.pipe(HttpApiSchema.status(504))
|
|
2072
|
+
]
|
|
2073
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.completeDomainWarming").annotate(OpenApi.Summary, "Complete domain warming").annotate(OpenApi.Description, "Ends the policy. Campaign runs from the domain are no longer gated by warming windows; the organization safeguards still apply."), HttpApiEndpoint.post("emailPauseDomainWarming", "/v1/email/domains/:id/warming/pause", {
|
|
2074
|
+
params: EmailPauseDomainWarmingPathParams,
|
|
2075
|
+
payload: EmailPauseDomainWarmingRequestJson,
|
|
2076
|
+
success: EmailPauseDomainWarming200,
|
|
2077
|
+
error: [
|
|
2078
|
+
EmailPauseDomainWarming401.pipe(HttpApiSchema.status(401)),
|
|
2079
|
+
EmailPauseDomainWarming403.pipe(HttpApiSchema.status(403)),
|
|
2080
|
+
EmailPauseDomainWarming404.pipe(HttpApiSchema.status(404)),
|
|
2081
|
+
EmailPauseDomainWarming409.pipe(HttpApiSchema.status(409)),
|
|
2082
|
+
EmailPauseDomainWarming422.pipe(HttpApiSchema.status(422)),
|
|
2083
|
+
EmailPauseDomainWarming500,
|
|
2084
|
+
EmailPauseDomainWarming504.pipe(HttpApiSchema.status(504))
|
|
2085
|
+
]
|
|
2086
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.pauseDomainWarming").annotate(OpenApi.Summary, "Pause domain warming").annotate(OpenApi.Description, "Pauses the plan. Campaign runs from the domain stop at their next page and queued campaign email waits until it expires; direct sends are unaffected."), HttpApiEndpoint.patch("emailUpdateDomainWarmingPolicy", "/v1/email/domains/:id/warming/policy", {
|
|
2087
|
+
params: EmailUpdateDomainWarmingPolicyPathParams,
|
|
2088
|
+
payload: EmailUpdateDomainWarmingPolicyRequestJson,
|
|
2089
|
+
success: EmailUpdateDomainWarmingPolicy200,
|
|
2090
|
+
error: [
|
|
2091
|
+
EmailUpdateDomainWarmingPolicy401.pipe(HttpApiSchema.status(401)),
|
|
2092
|
+
EmailUpdateDomainWarmingPolicy403.pipe(HttpApiSchema.status(403)),
|
|
2093
|
+
EmailUpdateDomainWarmingPolicy404.pipe(HttpApiSchema.status(404)),
|
|
2094
|
+
EmailUpdateDomainWarmingPolicy409.pipe(HttpApiSchema.status(409)),
|
|
2095
|
+
EmailUpdateDomainWarmingPolicy422.pipe(HttpApiSchema.status(422)),
|
|
2096
|
+
EmailUpdateDomainWarmingPolicy500,
|
|
2097
|
+
EmailUpdateDomainWarmingPolicy504.pipe(HttpApiSchema.status(504))
|
|
2098
|
+
]
|
|
2099
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.updateDomainWarmingPolicy").annotate(OpenApi.Summary, "Update domain warming policy").annotate(OpenApi.Description, "Updates the growth percentage and daily target Samva uses for future 24-hour warming windows. Existing windows keep their policy snapshot, including a scheduled window, so prior authorization remains auditable."), HttpApiEndpoint.post("emailResumeDomainWarming", "/v1/email/domains/:id/warming/resume", {
|
|
2100
|
+
params: EmailResumeDomainWarmingPathParams,
|
|
2101
|
+
payload: EmailResumeDomainWarmingRequestJson,
|
|
2102
|
+
success: EmailResumeDomainWarming200,
|
|
2103
|
+
error: [
|
|
2104
|
+
EmailResumeDomainWarming401.pipe(HttpApiSchema.status(401)),
|
|
2105
|
+
EmailResumeDomainWarming403.pipe(HttpApiSchema.status(403)),
|
|
2106
|
+
EmailResumeDomainWarming404.pipe(HttpApiSchema.status(404)),
|
|
2107
|
+
EmailResumeDomainWarming409.pipe(HttpApiSchema.status(409)),
|
|
2108
|
+
EmailResumeDomainWarming422.pipe(HttpApiSchema.status(422)),
|
|
2109
|
+
EmailResumeDomainWarming500,
|
|
2110
|
+
EmailResumeDomainWarming504.pipe(HttpApiSchema.status(504))
|
|
2111
|
+
]
|
|
2112
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.resumeDomainWarming").annotate(OpenApi.Summary, "Resume domain warming").annotate(OpenApi.Description, "Resumes a paused or held plan and the campaign runs it was holding. A plan the domain rule held resumes only once the domain's rolling window is under both limits again; until then the request is refused with the observed rate."), HttpApiEndpoint.get("emailListForwardingRules", "/v1/email/forwarding", {
|
|
2113
|
+
query: EmailListForwardingRulesQuery,
|
|
2114
|
+
success: EmailListForwardingRules200,
|
|
2115
|
+
error: [
|
|
2116
|
+
EmailListForwardingRules401.pipe(HttpApiSchema.status(401)),
|
|
2117
|
+
EmailListForwardingRules403.pipe(HttpApiSchema.status(403)),
|
|
2118
|
+
EmailListForwardingRules422.pipe(HttpApiSchema.status(422)),
|
|
2119
|
+
EmailListForwardingRules500,
|
|
2120
|
+
EmailListForwardingRules504.pipe(HttpApiSchema.status(504))
|
|
2121
|
+
]
|
|
2122
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.listForwardingRules").annotate(OpenApi.Summary, "List forwarding rules").annotate(OpenApi.Description, "Returns every inbound email forwarding rule in the order inbound mail is matched against them: highest priority first, then an exact address before a wildcard pattern at equal priority, then oldest first. The first rule that matches is the one that forwards. Filtering by domain returns that domain's rules and the rules that apply to every domain (domainId null). An organization holds at most 100, so the list is never paged."), HttpApiEndpoint.post("emailCreateForwardingRule", "/v1/email/forwarding", {
|
|
2123
|
+
payload: EmailCreateForwardingRuleRequestJson,
|
|
2124
|
+
success: EmailCreateForwardingRule201.pipe(HttpApiSchema.status(201)),
|
|
2125
|
+
error: [
|
|
2126
|
+
EmailCreateForwardingRule401.pipe(HttpApiSchema.status(401)),
|
|
2127
|
+
EmailCreateForwardingRule403.pipe(HttpApiSchema.status(403)),
|
|
2128
|
+
EmailCreateForwardingRule404.pipe(HttpApiSchema.status(404)),
|
|
2129
|
+
EmailCreateForwardingRule409.pipe(HttpApiSchema.status(409)),
|
|
2130
|
+
EmailCreateForwardingRule422.pipe(HttpApiSchema.status(422)),
|
|
2131
|
+
EmailCreateForwardingRule500,
|
|
2132
|
+
EmailCreateForwardingRule504.pipe(HttpApiSchema.status(504))
|
|
2133
|
+
]
|
|
2134
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.createForwardingRule").annotate(OpenApi.Summary, "Create a forwarding rule").annotate(OpenApi.Description, "Creates an inbound email forwarding rule and returns it. Responds with 201. Priority is a non-negative integer, default 0; higher priority rules are tried first, and at equal priority an exact address outranks a wildcard pattern. An organization holds at most 100 forwarding rules."), HttpApiEndpoint.delete("emailDeleteForwardingRule", "/v1/email/forwarding/:id", {
|
|
2135
|
+
params: EmailDeleteForwardingRulePathParams,
|
|
2136
|
+
success: EmailDeleteForwardingRule200,
|
|
2137
|
+
error: [
|
|
2138
|
+
EmailDeleteForwardingRule401.pipe(HttpApiSchema.status(401)),
|
|
2139
|
+
EmailDeleteForwardingRule403.pipe(HttpApiSchema.status(403)),
|
|
2140
|
+
EmailDeleteForwardingRule404.pipe(HttpApiSchema.status(404)),
|
|
2141
|
+
EmailDeleteForwardingRule422.pipe(HttpApiSchema.status(422)),
|
|
2142
|
+
EmailDeleteForwardingRule500,
|
|
2143
|
+
EmailDeleteForwardingRule504.pipe(HttpApiSchema.status(504))
|
|
2144
|
+
]
|
|
2145
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.deleteForwardingRule").annotate(OpenApi.Summary, "Delete a forwarding rule").annotate(OpenApi.Description, "Permanently deletes an inbound email forwarding rule."), HttpApiEndpoint.patch("emailUpdateForwardingRule", "/v1/email/forwarding/:id", {
|
|
2146
|
+
params: EmailUpdateForwardingRulePathParams,
|
|
2147
|
+
payload: EmailUpdateForwardingRuleRequestJson,
|
|
2148
|
+
success: EmailUpdateForwardingRule200,
|
|
2149
|
+
error: [
|
|
2150
|
+
EmailUpdateForwardingRule401.pipe(HttpApiSchema.status(401)),
|
|
2151
|
+
EmailUpdateForwardingRule403.pipe(HttpApiSchema.status(403)),
|
|
2152
|
+
EmailUpdateForwardingRule404.pipe(HttpApiSchema.status(404)),
|
|
2153
|
+
EmailUpdateForwardingRule422.pipe(HttpApiSchema.status(422)),
|
|
2154
|
+
EmailUpdateForwardingRule500,
|
|
2155
|
+
EmailUpdateForwardingRule504.pipe(HttpApiSchema.status(504))
|
|
2156
|
+
]
|
|
2157
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.updateForwardingRule").annotate(OpenApi.Summary, "Update a forwarding rule").annotate(OpenApi.Description, "Updates an inbound email forwarding rule and returns its current summary."), HttpApiEndpoint.get("emailGetForwardingLog", "/v1/email/forwarding/logs", {
|
|
2158
|
+
query: EmailGetForwardingLogQuery,
|
|
2159
|
+
success: EmailGetForwardingLog200,
|
|
2160
|
+
error: [
|
|
2161
|
+
EmailGetForwardingLog401.pipe(HttpApiSchema.status(401)),
|
|
2162
|
+
EmailGetForwardingLog403.pipe(HttpApiSchema.status(403)),
|
|
2163
|
+
EmailGetForwardingLog422.pipe(HttpApiSchema.status(422)),
|
|
2164
|
+
EmailGetForwardingLog500,
|
|
2165
|
+
EmailGetForwardingLog504.pipe(HttpApiSchema.status(504))
|
|
2166
|
+
]
|
|
2167
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getForwardingLog").annotate(OpenApi.Summary, "List email forwarding logs").annotate(OpenApi.Description, "Returns forwarded inbound emails with their delivery outcomes, newest first, optionally filtered by rule, status, or creation time (`after`, `before`). Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.get("emailGetOnboardingReview", "/v1/email/onboarding-review", {
|
|
2168
|
+
success: EmailGetOnboardingReview200,
|
|
2169
|
+
error: [
|
|
2170
|
+
EmailGetOnboardingReview401.pipe(HttpApiSchema.status(401)),
|
|
2171
|
+
EmailGetOnboardingReview403.pipe(HttpApiSchema.status(403)),
|
|
2172
|
+
EmailGetOnboardingReview422.pipe(HttpApiSchema.status(422)),
|
|
2173
|
+
EmailGetOnboardingReview500,
|
|
2174
|
+
EmailGetOnboardingReview504.pipe(HttpApiSchema.status(504))
|
|
2175
|
+
]
|
|
2176
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getOnboardingReview").annotate(OpenApi.Summary, "Get email onboarding review status").annotate(OpenApi.Description, "Returns the customer-safe organization review decision, workflow stage, next action, and current sending-identity clearances. An organization that has not been reviewed yet is returned in the blocked initial state."), HttpApiEndpoint.post("emailReapplyOnboardingReview", "/v1/email/onboarding-review/reapply", {
|
|
2177
|
+
payload: EmailReapplyOnboardingReviewRequestJson,
|
|
2178
|
+
success: EmailReapplyOnboardingReview200,
|
|
2179
|
+
error: [
|
|
2180
|
+
EmailReapplyOnboardingReview401.pipe(HttpApiSchema.status(401)),
|
|
2181
|
+
EmailReapplyOnboardingReview403.pipe(HttpApiSchema.status(403)),
|
|
2182
|
+
EmailReapplyOnboardingReview409.pipe(HttpApiSchema.status(409)),
|
|
2183
|
+
EmailReapplyOnboardingReview422.pipe(HttpApiSchema.status(422)),
|
|
2184
|
+
EmailReapplyOnboardingReview500,
|
|
2185
|
+
EmailReapplyOnboardingReview504.pipe(HttpApiSchema.status(504))
|
|
2186
|
+
]
|
|
2187
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.reapplyOnboardingReview").annotate(OpenApi.Summary, "Reapply for email onboarding review").annotate(OpenApi.Description, "Allows an organization owner or admin to submit a rejected organization for review again. The expected generation prevents acting on stale status."), HttpApiEndpoint.post("emailRespondToOnboardingInformationRequest", "/v1/email/onboarding-review/respond", {
|
|
2188
|
+
payload: EmailRespondToOnboardingInformationRequestRequestJson,
|
|
2189
|
+
success: EmailRespondToOnboardingInformationRequest200,
|
|
2190
|
+
error: [
|
|
2191
|
+
EmailRespondToOnboardingInformationRequest401.pipe(HttpApiSchema.status(401)),
|
|
2192
|
+
EmailRespondToOnboardingInformationRequest403.pipe(HttpApiSchema.status(403)),
|
|
2193
|
+
EmailRespondToOnboardingInformationRequest409.pipe(HttpApiSchema.status(409)),
|
|
2194
|
+
EmailRespondToOnboardingInformationRequest422.pipe(HttpApiSchema.status(422)),
|
|
2195
|
+
EmailRespondToOnboardingInformationRequest500,
|
|
2196
|
+
EmailRespondToOnboardingInformationRequest504.pipe(HttpApiSchema.status(504))
|
|
2197
|
+
]
|
|
2198
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.respondToOnboardingInformationRequest").annotate(OpenApi.Summary, "Respond to an email onboarding information request").annotate(OpenApi.Description, "Allows organization owners and admins to submit a text response and up to three evidence uploads for the current information request."), HttpApiEndpoint.get("emailListSenders", "/v1/email/senders", {
|
|
2199
|
+
query: EmailListSendersQuery,
|
|
2200
|
+
success: EmailListSenders200,
|
|
2201
|
+
error: [
|
|
2202
|
+
EmailListSenders401.pipe(HttpApiSchema.status(401)),
|
|
2203
|
+
EmailListSenders403.pipe(HttpApiSchema.status(403)),
|
|
2204
|
+
EmailListSenders422.pipe(HttpApiSchema.status(422)),
|
|
2205
|
+
EmailListSenders500,
|
|
2206
|
+
EmailListSenders504.pipe(HttpApiSchema.status(504))
|
|
2207
|
+
]
|
|
2208
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.listSenders").annotate(OpenApi.Summary, "List senders").annotate(OpenApi.Description, "Returns senders, newest first, optionally filtered by verification status, active state, or default flag. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Each row carries `deliverability` (bounce and complaint rates over the last 24 hours) and `series`, the last 14 days of daily email sends from the address, oldest first."), HttpApiEndpoint.post("emailAddSender", "/v1/email/senders", {
|
|
2209
|
+
headers: EmailAddSenderHeaders,
|
|
2210
|
+
payload: EmailAddSenderRequestJson,
|
|
2211
|
+
success: EmailAddSender201.pipe(HttpApiSchema.status(201)),
|
|
2212
|
+
error: [
|
|
2213
|
+
EmailAddSender401.pipe(HttpApiSchema.status(401)),
|
|
2214
|
+
EmailAddSender403.pipe(HttpApiSchema.status(403)),
|
|
2215
|
+
EmailAddSender404.pipe(HttpApiSchema.status(404)),
|
|
2216
|
+
EmailAddSender409.pipe(HttpApiSchema.status(409)),
|
|
2217
|
+
EmailAddSender422.pipe(HttpApiSchema.status(422)),
|
|
2218
|
+
EmailAddSender500,
|
|
2219
|
+
EmailAddSender502.pipe(HttpApiSchema.status(502)),
|
|
2220
|
+
EmailAddSender504.pipe(HttpApiSchema.status(504))
|
|
2221
|
+
]
|
|
2222
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.addSender").annotate(OpenApi.Summary, "Add a sender").annotate(OpenApi.Description, "Creates a sender. The required Idempotency-Key replays the original sender for an identical request and conflicts when reused with different input."), HttpApiEndpoint.get("emailGetSender", "/v1/email/senders/:id", {
|
|
2223
|
+
params: EmailGetSenderPathParams,
|
|
2224
|
+
success: EmailGetSender200,
|
|
2225
|
+
error: [
|
|
2226
|
+
EmailGetSender401.pipe(HttpApiSchema.status(401)),
|
|
2227
|
+
EmailGetSender403.pipe(HttpApiSchema.status(403)),
|
|
2228
|
+
EmailGetSender404.pipe(HttpApiSchema.status(404)),
|
|
2229
|
+
EmailGetSender422.pipe(HttpApiSchema.status(422)),
|
|
2230
|
+
EmailGetSender500,
|
|
2231
|
+
EmailGetSender504.pipe(HttpApiSchema.status(504))
|
|
2232
|
+
]
|
|
2233
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getSender").annotate(OpenApi.Summary, "Get a sender").annotate(OpenApi.Description, "Returns one sender owned by the authenticated organization. Other organizations' ids are reported as not found."), HttpApiEndpoint.delete("emailRemoveSender", "/v1/email/senders/:id", {
|
|
2234
|
+
params: EmailRemoveSenderPathParams,
|
|
2235
|
+
success: EmailRemoveSender200,
|
|
2236
|
+
error: [
|
|
2237
|
+
EmailRemoveSender401.pipe(HttpApiSchema.status(401)),
|
|
2238
|
+
EmailRemoveSender403.pipe(HttpApiSchema.status(403)),
|
|
2239
|
+
EmailRemoveSender404.pipe(HttpApiSchema.status(404)),
|
|
2240
|
+
EmailRemoveSender422.pipe(HttpApiSchema.status(422)),
|
|
2241
|
+
EmailRemoveSender500,
|
|
2242
|
+
EmailRemoveSender504.pipe(HttpApiSchema.status(504))
|
|
2243
|
+
]
|
|
2244
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.removeSender").annotate(OpenApi.Summary, "Remove a sender").annotate(OpenApi.Description, "Accepts sender removal and marks the sender inactive. A default sender can be removed when no other active sender remains in the organization. It reports the `deleting` lifecycle until removal finishes."), HttpApiEndpoint.post("emailSetDefaultSender", "/v1/email/senders/:id/default", {
|
|
2245
|
+
params: EmailSetDefaultSenderPathParams,
|
|
2246
|
+
success: EmailSetDefaultSender200,
|
|
2247
|
+
error: [
|
|
2248
|
+
EmailSetDefaultSender401.pipe(HttpApiSchema.status(401)),
|
|
2249
|
+
EmailSetDefaultSender403.pipe(HttpApiSchema.status(403)),
|
|
2250
|
+
EmailSetDefaultSender404.pipe(HttpApiSchema.status(404)),
|
|
2251
|
+
EmailSetDefaultSender422.pipe(HttpApiSchema.status(422)),
|
|
2252
|
+
EmailSetDefaultSender500,
|
|
2253
|
+
EmailSetDefaultSender504.pipe(HttpApiSchema.status(504))
|
|
2254
|
+
]
|
|
2255
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.setDefaultSender").annotate(OpenApi.Summary, "Set the organization default sender").annotate(OpenApi.Description, "Marks a verified, active sender as the organization default, atomically clearing any previous default. Omitted-`from` sends use it when neither the request nor the template names a `from`; with no default, the organization's sole verified sender is used."), HttpApiEndpoint.get("emailCheckSenderVerification", "/v1/email/senders/:id/verification", {
|
|
2256
|
+
params: EmailCheckSenderVerificationPathParams,
|
|
2257
|
+
success: EmailCheckSenderVerification200,
|
|
2258
|
+
error: [
|
|
2259
|
+
EmailCheckSenderVerification401.pipe(HttpApiSchema.status(401)),
|
|
2260
|
+
EmailCheckSenderVerification403.pipe(HttpApiSchema.status(403)),
|
|
2261
|
+
EmailCheckSenderVerification404.pipe(HttpApiSchema.status(404)),
|
|
2262
|
+
EmailCheckSenderVerification422.pipe(HttpApiSchema.status(422)),
|
|
2263
|
+
EmailCheckSenderVerification500,
|
|
2264
|
+
EmailCheckSenderVerification502.pipe(HttpApiSchema.status(502)),
|
|
2265
|
+
EmailCheckSenderVerification504.pipe(HttpApiSchema.status(504))
|
|
2266
|
+
]
|
|
2267
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.checkSenderVerification").annotate(OpenApi.Summary, "Check sender verification status").annotate(OpenApi.Description, "Returns the current verification status of a sender."), HttpApiEndpoint.get("emailGetStats", "/v1/email/stats", {
|
|
2268
|
+
query: EmailGetStatsQuery,
|
|
2269
|
+
success: EmailGetStats200,
|
|
2270
|
+
error: [
|
|
2271
|
+
EmailGetStats401.pipe(HttpApiSchema.status(401)),
|
|
2272
|
+
EmailGetStats403.pipe(HttpApiSchema.status(403)),
|
|
2273
|
+
EmailGetStats422.pipe(HttpApiSchema.status(422)),
|
|
2274
|
+
EmailGetStats500,
|
|
2275
|
+
EmailGetStats504.pipe(HttpApiSchema.status(504))
|
|
2276
|
+
]
|
|
2277
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getStats").annotate(OpenApi.Summary, "Get email statistics").annotate(OpenApi.Description, "Returns aggregate email statistics — sent, delivered, bounced, and complained counts with their rates — optionally scoped to messages created from `after` (inclusive) to `before` (exclusive)."), HttpApiEndpoint.get("emailListSuppressions", "/v1/email/suppressions", {
|
|
2278
|
+
query: EmailListSuppressionsQuery,
|
|
2279
|
+
success: EmailListSuppressions200,
|
|
2280
|
+
error: [
|
|
2281
|
+
EmailListSuppressions401.pipe(HttpApiSchema.status(401)),
|
|
2282
|
+
EmailListSuppressions403.pipe(HttpApiSchema.status(403)),
|
|
2283
|
+
EmailListSuppressions422.pipe(HttpApiSchema.status(422)),
|
|
2284
|
+
EmailListSuppressions500,
|
|
2285
|
+
EmailListSuppressions504.pipe(HttpApiSchema.status(504))
|
|
2286
|
+
]
|
|
2287
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.listSuppressions").annotate(OpenApi.Summary, "List suppressed addresses").annotate(OpenApi.Description, "Returns the addresses this organization will not send to, newest first, optionally filtered by suppression type, active or expired state, and an address substring. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.delete("emailRemoveSuppression", "/v1/email/suppressions/:id", {
|
|
2288
|
+
params: EmailRemoveSuppressionPathParams,
|
|
2289
|
+
success: EmailRemoveSuppression200,
|
|
2290
|
+
error: [
|
|
2291
|
+
EmailRemoveSuppression401.pipe(HttpApiSchema.status(401)),
|
|
2292
|
+
EmailRemoveSuppression403.pipe(HttpApiSchema.status(403)),
|
|
2293
|
+
EmailRemoveSuppression404.pipe(HttpApiSchema.status(404)),
|
|
2294
|
+
EmailRemoveSuppression422.pipe(HttpApiSchema.status(422)),
|
|
2295
|
+
EmailRemoveSuppression500,
|
|
2296
|
+
EmailRemoveSuppression502.pipe(HttpApiSchema.status(502)),
|
|
2297
|
+
EmailRemoveSuppression504.pipe(HttpApiSchema.status(504))
|
|
2298
|
+
]
|
|
2299
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.removeSuppression").annotate(OpenApi.Summary, "Remove a suppressed address").annotate(OpenApi.Description, "Deletes a suppression so this organization can send to the address again. If the deletion cannot complete, it fails rather than reporting success, and it is safe to retry. Deliverability caveat: a bounce or complaint suppression records a real delivery failure, and sending to the address again risks the reputation damage the suppression prevented."), HttpApiEndpoint.get("emailCountSuppressions", "/v1/email/suppressions/counts", {
|
|
2300
|
+
success: EmailCountSuppressions200,
|
|
2301
|
+
error: [
|
|
2302
|
+
EmailCountSuppressions401.pipe(HttpApiSchema.status(401)),
|
|
2303
|
+
EmailCountSuppressions403.pipe(HttpApiSchema.status(403)),
|
|
2304
|
+
EmailCountSuppressions422.pipe(HttpApiSchema.status(422)),
|
|
2305
|
+
EmailCountSuppressions500,
|
|
2306
|
+
EmailCountSuppressions504.pipe(HttpApiSchema.status(504))
|
|
2307
|
+
]
|
|
2308
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.countSuppressions").annotate(OpenApi.Summary, "Count suppressed addresses").annotate(OpenApi.Description, "Returns how many addresses this organization will not send to now, by suppression type. Expired suppressions are not counted."), HttpApiEndpoint.get("emailGetTrackingDefaults", "/v1/email/tracking/defaults", {
|
|
2309
|
+
success: EmailGetTrackingDefaults200,
|
|
2310
|
+
error: [
|
|
2311
|
+
EmailGetTrackingDefaults401.pipe(HttpApiSchema.status(401)),
|
|
2312
|
+
EmailGetTrackingDefaults403.pipe(HttpApiSchema.status(403)),
|
|
2313
|
+
EmailGetTrackingDefaults404.pipe(HttpApiSchema.status(404)),
|
|
2314
|
+
EmailGetTrackingDefaults422.pipe(HttpApiSchema.status(422)),
|
|
2315
|
+
EmailGetTrackingDefaults500,
|
|
2316
|
+
EmailGetTrackingDefaults504.pipe(HttpApiSchema.status(504))
|
|
2317
|
+
]
|
|
2318
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getTrackingDefaults").annotate(OpenApi.Summary, "Get email tracking defaults").annotate(OpenApi.Description, "Returns the organization's independent defaults for open and click tracking, both enabled unless configured otherwise. Recipient opt-out takes precedence over these defaults."), HttpApiEndpoint.patch("emailUpdateTrackingDefaults", "/v1/email/tracking/defaults", {
|
|
2319
|
+
payload: EmailUpdateTrackingDefaultsRequestJson,
|
|
2320
|
+
success: EmailUpdateTrackingDefaults200,
|
|
2321
|
+
error: [
|
|
2322
|
+
EmailUpdateTrackingDefaults401.pipe(HttpApiSchema.status(401)),
|
|
2323
|
+
EmailUpdateTrackingDefaults403.pipe(HttpApiSchema.status(403)),
|
|
2324
|
+
EmailUpdateTrackingDefaults404.pipe(HttpApiSchema.status(404)),
|
|
2325
|
+
EmailUpdateTrackingDefaults422.pipe(HttpApiSchema.status(422)),
|
|
2326
|
+
EmailUpdateTrackingDefaults500,
|
|
2327
|
+
EmailUpdateTrackingDefaults504.pipe(HttpApiSchema.status(504))
|
|
2328
|
+
]
|
|
2329
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.updateTrackingDefaults").annotate(OpenApi.Summary, "Update email tracking defaults").annotate(OpenApi.Description, "Updates one or both organization email tracking defaults and returns the complete saved policy. Recipient opt-out still takes precedence."), HttpApiEndpoint.get("emailGetRecipientTrackingPreference", "/v1/email/tracking/recipients", {
|
|
2330
|
+
query: EmailGetRecipientTrackingPreferenceQuery,
|
|
2331
|
+
success: EmailGetRecipientTrackingPreference200,
|
|
2332
|
+
error: [
|
|
2333
|
+
EmailGetRecipientTrackingPreference401.pipe(HttpApiSchema.status(401)),
|
|
2334
|
+
EmailGetRecipientTrackingPreference403.pipe(HttpApiSchema.status(403)),
|
|
2335
|
+
EmailGetRecipientTrackingPreference422.pipe(HttpApiSchema.status(422)),
|
|
2336
|
+
EmailGetRecipientTrackingPreference500,
|
|
2337
|
+
EmailGetRecipientTrackingPreference504.pipe(HttpApiSchema.status(504))
|
|
2338
|
+
]
|
|
2339
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getRecipientTrackingPreference").annotate(OpenApi.Summary, "Get a recipient tracking preference").annotate(OpenApi.Description, "Returns the organization-scoped tracking opt-out for a normalized recipient email. A missing preference reads as opted in and is not created."), HttpApiEndpoint.patch("emailUpdateRecipientTrackingPreference", "/v1/email/tracking/recipients", {
|
|
2340
|
+
payload: EmailUpdateRecipientTrackingPreferenceRequestJson,
|
|
2341
|
+
success: EmailUpdateRecipientTrackingPreference200,
|
|
2342
|
+
error: [
|
|
2343
|
+
EmailUpdateRecipientTrackingPreference401.pipe(HttpApiSchema.status(401)),
|
|
2344
|
+
EmailUpdateRecipientTrackingPreference403.pipe(HttpApiSchema.status(403)),
|
|
2345
|
+
EmailUpdateRecipientTrackingPreference422.pipe(HttpApiSchema.status(422)),
|
|
2346
|
+
EmailUpdateRecipientTrackingPreference500,
|
|
2347
|
+
EmailUpdateRecipientTrackingPreference504.pipe(HttpApiSchema.status(504))
|
|
2348
|
+
]
|
|
2349
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.updateRecipientTrackingPreference").annotate(OpenApi.Summary, "Update a recipient tracking preference").annotate(OpenApi.Description, "Opts a normalized recipient email in or out of open and click tracking. Opt-out takes precedence over per-send overrides and organization defaults without changing suppression or send eligibility.")).annotate(OpenApi.Description, "Unified email domain for sending, domains, templates, threads, catch-all, blocking, forwarding, and onboarding") {};
|
|
2350
|
+
//#endregion
|
|
2351
|
+
//#region src/effect/internal/email-sender.ts
|
|
2352
|
+
const addEmailSender = Effect.fn("Email.addSender")(function* (input, options) {
|
|
2353
|
+
const idempotencyKey = options?.idempotencyKey ?? (yield* generateIdempotencyKey);
|
|
2354
|
+
const { replyToEmails, ...sender } = input;
|
|
2355
|
+
return yield* withRetry(callEndpoint(EmailGroup, "emailAddSender", {
|
|
2356
|
+
headers: { "idempotency-key": idempotencyKey },
|
|
2357
|
+
payload: stripUndefined({
|
|
2358
|
+
...sender,
|
|
2359
|
+
...replyToEmailsPayload(replyToEmails)
|
|
2360
|
+
})
|
|
2361
|
+
}));
|
|
2362
|
+
});
|
|
2363
|
+
//#endregion
|
|
2364
|
+
//#region src/effect/email.ts
|
|
2365
|
+
var email_exports = /* @__PURE__ */ __exportAll({
|
|
2366
|
+
TrackingRecipientEmail: () => TrackingRecipientEmail,
|
|
2367
|
+
addBlock: () => addBlock,
|
|
2368
|
+
addDomain: () => addDomain,
|
|
2369
|
+
addSender: () => addSender,
|
|
2370
|
+
advanceDomainVerification: () => advanceDomainVerification,
|
|
2371
|
+
buildCustomTrackingDomainConnectApplyUrl: () => buildCustomTrackingDomainConnectApplyUrl,
|
|
2372
|
+
buildDomainConnectApplyUrl: () => buildDomainConnectApplyUrl,
|
|
2373
|
+
cancelDomainWarmingBatch: () => cancelDomainWarmingBatch,
|
|
2374
|
+
checkBlocked: () => checkBlocked,
|
|
2375
|
+
checkSenderVerification: () => checkSenderVerification,
|
|
2376
|
+
completeCustomTrackingDomainConnect: () => completeCustomTrackingDomainConnect,
|
|
2377
|
+
completeDomainConnect: () => completeDomainConnect,
|
|
2378
|
+
completeDomainWarming: () => completeDomainWarming,
|
|
2379
|
+
countSuppressions: () => countSuppressions,
|
|
2380
|
+
createDomainWarmingPlan: () => createDomainWarmingPlan,
|
|
2381
|
+
createForwardingRule: () => createForwardingRule,
|
|
2382
|
+
deleteForwardingRule: () => deleteForwardingRule,
|
|
2383
|
+
detectRegistrar: () => detectRegistrar,
|
|
2384
|
+
disableCatchAll: () => disableCatchAll,
|
|
2385
|
+
disableCustomTracking: () => disableCustomTracking,
|
|
2386
|
+
enableCatchAll: () => enableCatchAll,
|
|
2387
|
+
enableCustomTracking: () => enableCustomTracking,
|
|
2388
|
+
enableReceiving: () => enableReceiving,
|
|
2389
|
+
getBlockLogs: () => getBlockLogs,
|
|
2390
|
+
getCatchAllConfig: () => getCatchAllConfig,
|
|
2391
|
+
getCatchAllStats: () => getCatchAllStats,
|
|
2392
|
+
getCustomTracking: () => getCustomTracking,
|
|
2393
|
+
getCustomTrackingDomainConnect: () => getCustomTrackingDomainConnect,
|
|
2394
|
+
getDomainById: () => getDomainById,
|
|
2395
|
+
getDomainConnect: () => getDomainConnect,
|
|
2396
|
+
getDomainVerification: () => getDomainVerification,
|
|
2397
|
+
getDomainWarming: () => getDomainWarming,
|
|
2398
|
+
getForwardingLog: () => getForwardingLog,
|
|
2399
|
+
getOnboardingReview: () => getOnboardingReview,
|
|
2400
|
+
getReceivingStatus: () => getReceivingStatus,
|
|
2401
|
+
getRecipientTrackingPreference: () => getRecipientTrackingPreference,
|
|
2402
|
+
getSender: () => getSender,
|
|
2403
|
+
getStats: () => getStats,
|
|
2404
|
+
getTrackingDefaults: () => getTrackingDefaults,
|
|
2405
|
+
listBlocks: () => listBlocks,
|
|
2406
|
+
listDomains: () => listDomains,
|
|
2407
|
+
listForwardingRules: () => listForwardingRules,
|
|
2408
|
+
listSenders: () => listSenders,
|
|
2409
|
+
listSuppressions: () => listSuppressions,
|
|
2410
|
+
pauseDomainWarming: () => pauseDomainWarming,
|
|
2411
|
+
reapplyOnboardingReview: () => reapplyOnboardingReview,
|
|
2412
|
+
recheckCustomTracking: () => recheckCustomTracking,
|
|
2413
|
+
removeBlock: () => removeBlock,
|
|
2414
|
+
removeDomain: () => removeDomain,
|
|
2415
|
+
removeSender: () => removeSender,
|
|
2416
|
+
removeSuppression: () => removeSuppression,
|
|
2417
|
+
respondToOnboardingInformationRequest: () => respondToOnboardingInformationRequest,
|
|
2418
|
+
resumeDomainWarming: () => resumeDomainWarming,
|
|
2419
|
+
rotateDomainDkim: () => rotateDomainDkim,
|
|
2420
|
+
send: () => send,
|
|
2421
|
+
setDefaultDomain: () => setDefaultDomain,
|
|
2422
|
+
setDefaultSender: () => setDefaultSender,
|
|
2423
|
+
updateBlock: () => updateBlock,
|
|
2424
|
+
updateCatchAllConfig: () => updateCatchAllConfig,
|
|
2425
|
+
updateDomainConfig: () => updateDomainConfig,
|
|
2426
|
+
updateDomainWarmingPolicy: () => updateDomainWarmingPolicy,
|
|
2427
|
+
updateForwardingRule: () => updateForwardingRule,
|
|
2428
|
+
updateRecipientTrackingPreference: () => updateRecipientTrackingPreference,
|
|
2429
|
+
updateTrackingDefaults: () => updateTrackingDefaults
|
|
2430
|
+
});
|
|
2431
|
+
const make = forGroup(EmailGroup);
|
|
2432
|
+
const send = sendEmail;
|
|
2433
|
+
const getTrackingDefaults = make("emailGetTrackingDefaults");
|
|
2434
|
+
const updateTrackingDefaults = make("emailUpdateTrackingDefaults");
|
|
2435
|
+
const getRecipientTrackingPreference = make("emailGetRecipientTrackingPreference");
|
|
2436
|
+
const updateRecipientTrackingPreference = make("emailUpdateRecipientTrackingPreference");
|
|
2437
|
+
const listDomains = make("emailListDomains");
|
|
2438
|
+
const addDomain = make("emailAddDomain");
|
|
2439
|
+
const rotateDomainDkim = make("emailRotateDomainDkim");
|
|
2440
|
+
const getDomainVerification = make("emailGetDomainVerification");
|
|
2441
|
+
const advanceDomainVerification = make("emailAdvanceDomainVerification");
|
|
2442
|
+
const getDomainById = make("emailGetDomainById");
|
|
2443
|
+
const removeDomain = make("emailRemoveDomain");
|
|
2444
|
+
const setDefaultDomain = make("emailSetDefaultDomain");
|
|
2445
|
+
const updateDomainConfig = make("emailUpdateDomainConfig");
|
|
2446
|
+
const detectRegistrar = make("emailDetectRegistrar");
|
|
2447
|
+
const getDomainConnect = make("emailGetDomainConnect");
|
|
2448
|
+
const buildDomainConnectApplyUrl = make("emailBuildDomainConnectApplyUrl");
|
|
2449
|
+
const completeDomainConnect = make("emailCompleteDomainConnect");
|
|
2450
|
+
const enableReceiving = make("emailEnableReceiving");
|
|
2451
|
+
const getReceivingStatus = make("emailGetReceivingStatus");
|
|
2452
|
+
const enableCustomTracking = make("emailEnableCustomTracking");
|
|
2453
|
+
const getCustomTracking = make("emailGetCustomTracking");
|
|
2454
|
+
const recheckCustomTracking = make("emailRecheckCustomTracking");
|
|
2455
|
+
const getCustomTrackingDomainConnect = make("emailGetCustomTrackingDomainConnect");
|
|
2456
|
+
const buildCustomTrackingDomainConnectApplyUrl = make("emailBuildCustomTrackingDomainConnectApplyUrl");
|
|
2457
|
+
const completeCustomTrackingDomainConnect = make("emailCompleteCustomTrackingDomainConnect");
|
|
2458
|
+
const disableCustomTracking = make("emailDisableCustomTracking");
|
|
2459
|
+
const getDomainWarming = make("emailGetDomainWarming");
|
|
2460
|
+
const createDomainWarmingPlan = make("emailCreateDomainWarmingPlan");
|
|
2461
|
+
const updateDomainWarmingPolicy = make("emailUpdateDomainWarmingPolicy");
|
|
2462
|
+
const cancelDomainWarmingBatch = make("emailCancelDomainWarmingBatch");
|
|
2463
|
+
const pauseDomainWarming = make("emailPauseDomainWarming");
|
|
2464
|
+
const resumeDomainWarming = make("emailResumeDomainWarming");
|
|
2465
|
+
const completeDomainWarming = make("emailCompleteDomainWarming");
|
|
2466
|
+
const getOnboardingReview = make("emailGetOnboardingReview");
|
|
2467
|
+
const reapplyOnboardingReview = make("emailReapplyOnboardingReview");
|
|
2468
|
+
const respondToOnboardingInformationRequest = make("emailRespondToOnboardingInformationRequest");
|
|
2469
|
+
const listSenders = make("emailListSenders");
|
|
2470
|
+
const getSender = make("emailGetSender");
|
|
2471
|
+
const addSender = addEmailSender;
|
|
2472
|
+
const checkSenderVerification = make("emailCheckSenderVerification");
|
|
2473
|
+
const removeSender = make("emailRemoveSender");
|
|
2474
|
+
const setDefaultSender = make("emailSetDefaultSender");
|
|
2475
|
+
const getStats = make("emailGetStats");
|
|
2476
|
+
const enableCatchAll = make("emailEnableCatchAll");
|
|
2477
|
+
const disableCatchAll = make("emailDisableCatchAll");
|
|
2478
|
+
const getCatchAllConfig = make("emailGetCatchAllConfig");
|
|
2479
|
+
const updateCatchAllConfig = make("emailUpdateCatchAllConfig");
|
|
2480
|
+
const getCatchAllStats = make("emailGetCatchAllStats");
|
|
2481
|
+
const listSuppressions = make("emailListSuppressions");
|
|
2482
|
+
const countSuppressions = make("emailCountSuppressions");
|
|
2483
|
+
const removeSuppression = make("emailRemoveSuppression");
|
|
2484
|
+
const listBlocks = make("emailListBlocks");
|
|
2485
|
+
const addBlock = make("emailAddBlock");
|
|
2486
|
+
const removeBlock = make("emailRemoveBlock");
|
|
2487
|
+
const updateBlock = make("emailUpdateBlock");
|
|
2488
|
+
const getBlockLogs = make("emailGetBlockLogs");
|
|
2489
|
+
const checkBlocked = make("emailCheckBlocked");
|
|
2490
|
+
const listForwardingRules = make("emailListForwardingRules");
|
|
2491
|
+
const createForwardingRule = make("emailCreateForwardingRule");
|
|
2492
|
+
const deleteForwardingRule = make("emailDeleteForwardingRule");
|
|
2493
|
+
const updateForwardingRule = make("emailUpdateForwardingRule");
|
|
2494
|
+
const getForwardingLog = make("emailGetForwardingLog");
|
|
2495
|
+
//#endregion
|
|
2496
|
+
export { resumeDomainWarming as $, getDomainConnect as A, listBlocks as B, enableReceiving as C, getCustomTracking as D, getCatchAllStats as E, getReceivingStatus as F, pauseDomainWarming as G, listForwardingRules as H, getRecipientTrackingPreference as I, removeBlock as J, reapplyOnboardingReview as K, getSender as L, getDomainWarming as M, getForwardingLog as N, getCustomTrackingDomainConnect as O, getOnboardingReview as P, respondToOnboardingInformationRequest as Q, getStats as R, enableCustomTracking as S, getCatchAllConfig as T, listSenders as U, listDomains as V, listSuppressions as W, removeSender as X, removeDomain as Y, removeSuppression as Z, detectRegistrar as _, buildCustomTrackingDomainConnectApplyUrl as a, updateCatchAllConfig as at, email_exports as b, checkBlocked as c, updateForwardingRule as ct, completeDomainConnect as d, TrackingRecipientEmail as dt, rotateDomainDkim as et, completeDomainWarming as f, deleteForwardingRule as g, createForwardingRule as h, advanceDomainVerification as i, updateBlock as it, getDomainVerification as j, getDomainById as k, checkSenderVerification as l, updateRecipientTrackingPreference as lt, createDomainWarmingPlan as m, addDomain as n, setDefaultDomain as nt, buildDomainConnectApplyUrl as o, updateDomainConfig as ot, countSuppressions as p, recheckCustomTracking as q, addSender as r, setDefaultSender as rt, cancelDomainWarmingBatch as s, updateDomainWarmingPolicy as st, addBlock as t, send as tt, completeCustomTrackingDomainConnect as u, updateTrackingDefaults as ut, disableCatchAll as v, getBlockLogs as w, enableCatchAll as x, disableCustomTracking as y, getTrackingDefaults as z };
|
|
2497
|
+
|
|
2498
|
+
//# sourceMappingURL=email-R0NAA9PW.js.map
|