samva 0.28.0 → 0.29.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 +8 -0
- package/README.md +2 -0
- package/dist/client/sdk.gen.d.ts +156 -1
- package/dist/client/sdk.gen.js +475 -1
- package/dist/client/types.gen.d.ts +1653 -183
- package/dist/effect/campaigns.d.ts +32 -0
- package/dist/effect/generated/agents.js +36 -36
- package/dist/effect/generated/analytics.js +24 -24
- package/dist/effect/generated/api-keys.js +29 -29
- package/dist/effect/generated/attachments.js +13 -13
- package/dist/effect/generated/brands.js +13 -13
- package/dist/effect/generated/campaigns.d.ts +178 -60
- package/dist/effect/generated/campaigns.js +92 -104
- package/dist/effect/generated/contact-events.js +5 -5
- package/dist/effect/generated/contact-groups.js +38 -38
- package/dist/effect/generated/contacts.js +93 -93
- package/dist/effect/generated/conversations.js +38 -38
- package/dist/effect/generated/custom-fields.js +15 -15
- package/dist/effect/generated/email.js +225 -225
- package/dist/effect/generated/events.js +5 -5
- package/dist/effect/generated/extension-installations.js +35 -35
- package/dist/effect/generated/extensions.js +24 -24
- package/dist/effect/generated/feedback.js +6 -6
- package/dist/effect/generated/index.d.ts +5 -1
- package/dist/effect/generated/journeys.js +67 -67
- package/dist/effect/generated/mailboxes.js +286 -286
- package/dist/effect/generated/media.js +16 -16
- package/dist/effect/generated/messages.js +65 -65
- package/dist/effect/generated/namespaces.js +27 -27
- package/dist/effect/generated/operations.js +6 -6
- package/dist/effect/generated/organizations.js +19 -19
- package/dist/effect/generated/publication-domains.d.ts +548 -0
- package/dist/effect/generated/publication-domains.js +163 -0
- package/dist/effect/generated/scheduled-messages.js +25 -25
- package/dist/effect/generated/shared.d.ts +142 -30
- package/dist/effect/generated/shared.js +356 -328
- package/dist/effect/generated/subscriptions.js +10 -10
- package/dist/effect/generated/templates.d.ts +172 -15
- package/dist/effect/generated/templates.js +207 -162
- package/dist/effect/generated/topic-forms.js +21 -21
- package/dist/effect/generated/topic-issues.d.ts +2995 -0
- package/dist/effect/generated/topic-issues.js +985 -0
- package/dist/effect/generated/topics.d.ts +61 -1
- package/dist/effect/generated/topics.js +39 -31
- package/dist/effect/generated/webhooks.js +50 -50
- package/dist/effect/generated/whoami.js +10 -10
- package/dist/effect/generated-metadata.d.ts +70 -0
- package/dist/effect/generated-metadata.js +57 -13
- package/dist/effect/index.d.ts +2 -0
- package/dist/effect/index.js +3 -1
- package/dist/effect/journeys.d.ts +112 -112
- package/dist/effect/mailboxes.d.ts +78 -78
- package/dist/effect/publication-domains.d.ts +14 -0
- package/dist/effect/publication-domains.js +17 -0
- package/dist/effect/topic-issues.d.ts +57 -0
- package/dist/effect/topic-issues.js +33 -0
- package/dist/effect/topics.d.ts +6 -2
- package/dist/package.js +1 -1
- package/dist/promises/index.d.ts +5 -1
- package/dist/promises/index.js +5 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +74 -0
- package/dist/service-map.js +56 -0
- package/package.json +11 -3
|
@@ -2,19 +2,19 @@ import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, Cursor,
|
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
//#region src/effect/generated/email.ts
|
|
5
|
-
const BlockedEmailId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^blk_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
5
|
+
const BlockedEmailId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^blk_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
6
6
|
expected: "a string matching the RegExp ^blk_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
7
7
|
identifier: "BlockedEmailId"
|
|
8
|
-
})).pipe(Schema.brand("BlockedEmailId"));
|
|
9
|
-
const SuccessResult = /* @__PURE__ */ Schema.Struct({
|
|
8
|
+
})).pipe(Schema.brand("BlockedEmailId")))();
|
|
9
|
+
const SuccessResult = /* @__PURE__ */ (() => Schema.Struct({
|
|
10
10
|
success: Schema.Boolean,
|
|
11
11
|
message: Schema.String
|
|
12
|
-
}).annotate({ identifier: "SuccessResult" });
|
|
13
|
-
const BlockedEmailLogId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^blklog_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
12
|
+
}).annotate({ identifier: "SuccessResult" }))();
|
|
13
|
+
const BlockedEmailLogId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^blklog_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
14
14
|
expected: "a string matching the RegExp ^blklog_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
15
15
|
identifier: "BlockedEmailLogId"
|
|
16
|
-
})).pipe(Schema.brand("BlockedEmailLogId"));
|
|
17
|
-
const DeliverabilityFacts = /* @__PURE__ */ Schema.Struct({
|
|
16
|
+
})).pipe(Schema.brand("BlockedEmailLogId")))();
|
|
17
|
+
const DeliverabilityFacts = /* @__PURE__ */ (() => Schema.Struct({
|
|
18
18
|
bounceRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })),
|
|
19
19
|
complaintRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })),
|
|
20
20
|
windowSends: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
@@ -27,8 +27,8 @@ const DeliverabilityFacts = /* @__PURE__ */ Schema.Struct({
|
|
|
27
27
|
}).annotate({
|
|
28
28
|
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.",
|
|
29
29
|
identifier: "DeliverabilityFacts"
|
|
30
|
-
});
|
|
31
|
-
const CustomTrackingCertificate = /* @__PURE__ */ Schema.Struct({
|
|
30
|
+
}))();
|
|
31
|
+
const CustomTrackingCertificate = /* @__PURE__ */ (() => Schema.Struct({
|
|
32
32
|
reason: Schema.Struct({
|
|
33
33
|
code: Schema.Union([
|
|
34
34
|
Schema.Literal("initializing"),
|
|
@@ -46,13 +46,13 @@ const CustomTrackingCertificate = /* @__PURE__ */ Schema.Struct({
|
|
|
46
46
|
}),
|
|
47
47
|
lastCheckedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
48
48
|
nextCheckAt: Schema.Union([Schema.String, Schema.Null])
|
|
49
|
-
}).annotate({ identifier: "CustomTrackingCertificate" });
|
|
50
|
-
const CustomTrackingDnsRecord = /* @__PURE__ */ Schema.Struct({
|
|
49
|
+
}).annotate({ identifier: "CustomTrackingCertificate" }))();
|
|
50
|
+
const CustomTrackingDnsRecord = /* @__PURE__ */ (() => Schema.Struct({
|
|
51
51
|
name: Schema.String,
|
|
52
52
|
type: Schema.String,
|
|
53
53
|
value: Schema.String
|
|
54
|
-
}).annotate({ identifier: "CustomTrackingDnsRecord" });
|
|
55
|
-
const DomainConnectEligibility = /* @__PURE__ */ Schema.Union([Schema.Struct({
|
|
54
|
+
}).annotate({ identifier: "CustomTrackingDnsRecord" }))();
|
|
55
|
+
const DomainConnectEligibility = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
|
|
56
56
|
eligible: Schema.Literal(false),
|
|
57
57
|
reason: Schema.Union([
|
|
58
58
|
Schema.Literal("no-record"),
|
|
@@ -64,22 +64,22 @@ const DomainConnectEligibility = /* @__PURE__ */ Schema.Union([Schema.Struct({
|
|
|
64
64
|
}), Schema.Struct({
|
|
65
65
|
eligible: Schema.Literal(true),
|
|
66
66
|
providerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
67
|
-
})]).annotate({ identifier: "DomainConnectEligibility" });
|
|
68
|
-
const DomainConnectApplyUrlResult = /* @__PURE__ */ Schema.Struct({ url: Schema.String }).annotate({ identifier: "DomainConnectApplyUrlResult" });
|
|
69
|
-
const CustomTrackingDomainConnectCompleteResult = /* @__PURE__ */ Schema.Struct({ status: Schema.Union([
|
|
67
|
+
})]).annotate({ identifier: "DomainConnectEligibility" }))();
|
|
68
|
+
const DomainConnectApplyUrlResult = /* @__PURE__ */ (() => Schema.Struct({ url: Schema.String }).annotate({ identifier: "DomainConnectApplyUrlResult" }))();
|
|
69
|
+
const CustomTrackingDomainConnectCompleteResult = /* @__PURE__ */ (() => Schema.Struct({ status: Schema.Union([
|
|
70
70
|
Schema.Literal("applied"),
|
|
71
71
|
Schema.Literal("cancelled"),
|
|
72
72
|
Schema.Literal("failed"),
|
|
73
73
|
Schema.Literal("stale"),
|
|
74
74
|
Schema.Literal("invalid")
|
|
75
|
-
]) }).annotate({ identifier: "CustomTrackingDomainConnectCompleteResult" });
|
|
76
|
-
const DomainConnectCompleteResult = /* @__PURE__ */ Schema.Struct({ status: Schema.Union([
|
|
75
|
+
]) }).annotate({ identifier: "CustomTrackingDomainConnectCompleteResult" }))();
|
|
76
|
+
const DomainConnectCompleteResult = /* @__PURE__ */ (() => Schema.Struct({ status: Schema.Union([
|
|
77
77
|
Schema.Literal("applied"),
|
|
78
78
|
Schema.Literal("cancelled"),
|
|
79
79
|
Schema.Literal("failed"),
|
|
80
80
|
Schema.Literal("invalid")
|
|
81
|
-
]) }).annotate({ identifier: "DomainConnectCompleteResult" });
|
|
82
|
-
const EmailDomainProvisioningExecution = /* @__PURE__ */ Schema.Struct({
|
|
81
|
+
]) }).annotate({ identifier: "DomainConnectCompleteResult" }))();
|
|
82
|
+
const EmailDomainProvisioningExecution = /* @__PURE__ */ (() => Schema.Struct({
|
|
83
83
|
status: Schema.Union([
|
|
84
84
|
Schema.Literal("none"),
|
|
85
85
|
Schema.Literal("running"),
|
|
@@ -88,25 +88,25 @@ const EmailDomainProvisioningExecution = /* @__PURE__ */ Schema.Struct({
|
|
|
88
88
|
]),
|
|
89
89
|
generation: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
90
90
|
revision: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
91
|
-
}).annotate({ identifier: "EmailDomainProvisioningExecution" });
|
|
92
|
-
const EmailDomainWarmingPlanId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^warm_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
91
|
+
}).annotate({ identifier: "EmailDomainProvisioningExecution" }))();
|
|
92
|
+
const EmailDomainWarmingPlanId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^warm_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
93
93
|
expected: "a string matching the RegExp ^warm_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
94
94
|
identifier: "EmailDomainWarmingPlanId"
|
|
95
|
-
})).pipe(Schema.brand("EmailDomainWarmingPlanId"));
|
|
96
|
-
const EmailDomainWarmingBatchId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^wbatch_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
95
|
+
})).pipe(Schema.brand("EmailDomainWarmingPlanId")))();
|
|
96
|
+
const EmailDomainWarmingBatchId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^wbatch_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
97
97
|
expected: "a string matching the RegExp ^wbatch_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
98
98
|
identifier: "EmailDomainWarmingBatchId"
|
|
99
|
-
})).pipe(Schema.brand("EmailDomainWarmingBatchId"));
|
|
100
|
-
const EmailDomainWarmingDecisionId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^wdec_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
99
|
+
})).pipe(Schema.brand("EmailDomainWarmingBatchId")))();
|
|
100
|
+
const EmailDomainWarmingDecisionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^wdec_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
101
101
|
expected: "a string matching the RegExp ^wdec_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
102
102
|
identifier: "EmailDomainWarmingDecisionId"
|
|
103
|
-
})).pipe(Schema.brand("EmailDomainWarmingDecisionId"));
|
|
104
|
-
const DomainWarmingWindowHour = /* @__PURE__ */ Schema.Struct({
|
|
103
|
+
})).pipe(Schema.brand("EmailDomainWarmingDecisionId")))();
|
|
104
|
+
const DomainWarmingWindowHour = /* @__PURE__ */ (() => Schema.Struct({
|
|
105
105
|
sent: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
106
106
|
bounced: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
107
107
|
complained: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
108
|
-
}).annotate({ identifier: "DomainWarmingWindowHour" });
|
|
109
|
-
const DomainWarmingHolds = /* @__PURE__ */ Schema.Struct({
|
|
108
|
+
}).annotate({ identifier: "DomainWarmingWindowHour" }))();
|
|
109
|
+
const DomainWarmingHolds = /* @__PURE__ */ (() => Schema.Struct({
|
|
110
110
|
workspacePausedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
111
111
|
workspacePauseReason: Schema.Union([Schema.String, Schema.Null]),
|
|
112
112
|
sendingStatus: Schema.Union([
|
|
@@ -115,17 +115,17 @@ const DomainWarmingHolds = /* @__PURE__ */ Schema.Struct({
|
|
|
115
115
|
Schema.Literal("reinstated"),
|
|
116
116
|
Schema.Literal("unknown")
|
|
117
117
|
])
|
|
118
|
-
}).annotate({ identifier: "DomainWarmingHolds" });
|
|
119
|
-
const EmailForwardingRuleId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^fwd_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
118
|
+
}).annotate({ identifier: "DomainWarmingHolds" }))();
|
|
119
|
+
const EmailForwardingRuleId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^fwd_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
120
120
|
expected: "a string matching the RegExp ^fwd_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
121
121
|
identifier: "EmailForwardingRuleId"
|
|
122
|
-
})).pipe(Schema.brand("EmailForwardingRuleId"));
|
|
123
|
-
const ForwardingConditions = /* @__PURE__ */ Schema.Struct({
|
|
122
|
+
})).pipe(Schema.brand("EmailForwardingRuleId")))();
|
|
123
|
+
const ForwardingConditions = /* @__PURE__ */ (() => Schema.Struct({
|
|
124
124
|
subjectContains: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
125
125
|
fromContains: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
126
126
|
hasAttachments: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
127
|
-
}).annotate({ identifier: "ForwardingConditions" });
|
|
128
|
-
const IdentityClearanceStatus = /* @__PURE__ */ Schema.Struct({
|
|
127
|
+
}).annotate({ identifier: "ForwardingConditions" }))();
|
|
128
|
+
const IdentityClearanceStatus = /* @__PURE__ */ (() => Schema.Struct({
|
|
129
129
|
identityId: Schema.String,
|
|
130
130
|
decision: Schema.Union([
|
|
131
131
|
Schema.Literal("undecided"),
|
|
@@ -151,26 +151,26 @@ const IdentityClearanceStatus = /* @__PURE__ */ Schema.Struct({
|
|
|
151
151
|
Schema.Literal("contact_support")
|
|
152
152
|
]), Schema.Null]),
|
|
153
153
|
updatedAt: Schema.String
|
|
154
|
-
}).annotate({ identifier: "IdentityClearanceStatus" });
|
|
155
|
-
const SuppressionId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^supp_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
154
|
+
}).annotate({ identifier: "IdentityClearanceStatus" }))();
|
|
155
|
+
const SuppressionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^supp_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
156
156
|
expected: "a string matching the RegExp ^supp_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
157
157
|
identifier: "SuppressionId"
|
|
158
|
-
})).pipe(Schema.brand("SuppressionId"));
|
|
159
|
-
const SuppressionCounts = /* @__PURE__ */ Schema.Struct({
|
|
158
|
+
})).pipe(Schema.brand("SuppressionId")))();
|
|
159
|
+
const SuppressionCounts = /* @__PURE__ */ (() => Schema.Struct({
|
|
160
160
|
bounce: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
161
161
|
complaint: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
162
162
|
unsubscribe: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
163
163
|
manual: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
164
|
-
}).annotate({ identifier: "SuppressionCounts" });
|
|
165
|
-
const EmailTrackingDefaults = /* @__PURE__ */ Schema.Struct({
|
|
164
|
+
}).annotate({ identifier: "SuppressionCounts" }))();
|
|
165
|
+
const EmailTrackingDefaults = /* @__PURE__ */ (() => Schema.Struct({
|
|
166
166
|
opens: Schema.Boolean,
|
|
167
167
|
clicks: Schema.Boolean
|
|
168
|
-
}).annotate({ identifier: "EmailTrackingDefaults" });
|
|
169
|
-
const TrackingRecipientEmail = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$", "u")).annotate({
|
|
168
|
+
}).annotate({ identifier: "EmailTrackingDefaults" }))();
|
|
169
|
+
const TrackingRecipientEmail = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$", "u")).annotate({
|
|
170
170
|
expected: "a string matching the RegExp ^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
|
|
171
171
|
identifier: "TrackingRecipientEmail"
|
|
172
|
-
}));
|
|
173
|
-
const EmailDkimRotation = /* @__PURE__ */ Schema.Struct({
|
|
172
|
+
})))();
|
|
173
|
+
const EmailDkimRotation = /* @__PURE__ */ (() => Schema.Struct({
|
|
174
174
|
id: Schema.String,
|
|
175
175
|
domainId: EmailDomainId,
|
|
176
176
|
phase: Schema.Union([
|
|
@@ -191,12 +191,12 @@ const EmailDkimRotation = /* @__PURE__ */ Schema.Struct({
|
|
|
191
191
|
value: Schema.String
|
|
192
192
|
}),
|
|
193
193
|
minimumRetainUntil: Schema.Union([Schema.String, Schema.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." })
|
|
194
|
-
}).annotate({ identifier: "EmailDkimRotation" });
|
|
195
|
-
const DomainWarmingDomainRef = /* @__PURE__ */ Schema.Struct({
|
|
194
|
+
}).annotate({ identifier: "EmailDkimRotation" }))();
|
|
195
|
+
const DomainWarmingDomainRef = /* @__PURE__ */ (() => Schema.Struct({
|
|
196
196
|
id: EmailDomainId,
|
|
197
197
|
domain: Schema.String
|
|
198
|
-
}).annotate({ identifier: "DomainWarmingDomainRef" });
|
|
199
|
-
const BlockPage = /* @__PURE__ */ Schema.Struct({
|
|
198
|
+
}).annotate({ identifier: "DomainWarmingDomainRef" }))();
|
|
199
|
+
const BlockPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
200
200
|
items: Schema.Array(Schema.Struct({
|
|
201
201
|
id: BlockedEmailId,
|
|
202
202
|
blockType: Schema.Union([Schema.Literal("email"), Schema.Literal("domain")]),
|
|
@@ -210,8 +210,8 @@ const BlockPage = /* @__PURE__ */ Schema.Struct({
|
|
|
210
210
|
createdAt: Schema.String
|
|
211
211
|
})),
|
|
212
212
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
213
|
-
}).annotate({ identifier: "BlockPage" });
|
|
214
|
-
const BlockLogPage = /* @__PURE__ */ Schema.Struct({
|
|
213
|
+
}).annotate({ identifier: "BlockPage" }))();
|
|
214
|
+
const BlockLogPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
215
215
|
items: Schema.Array(Schema.Struct({
|
|
216
216
|
id: BlockedEmailLogId,
|
|
217
217
|
fromAddress: Schema.String,
|
|
@@ -253,8 +253,8 @@ const BlockLogPage = /* @__PURE__ */ Schema.Struct({
|
|
|
253
253
|
blockedAt: Schema.String
|
|
254
254
|
})),
|
|
255
255
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
256
|
-
}).annotate({ identifier: "BlockLogPage" });
|
|
257
|
-
const ReceivingStatus = /* @__PURE__ */ Schema.Struct({
|
|
256
|
+
}).annotate({ identifier: "BlockLogPage" }))();
|
|
257
|
+
const ReceivingStatus = /* @__PURE__ */ (() => Schema.Struct({
|
|
258
258
|
domain: Schema.String,
|
|
259
259
|
receivingHost: Schema.String,
|
|
260
260
|
sending: Schema.Struct({
|
|
@@ -296,8 +296,8 @@ const ReceivingStatus = /* @__PURE__ */ Schema.Struct({
|
|
|
296
296
|
}))
|
|
297
297
|
}),
|
|
298
298
|
ready: Schema.Boolean
|
|
299
|
-
}).annotate({ identifier: "ReceivingStatus" });
|
|
300
|
-
const EmailDomainPage = /* @__PURE__ */ Schema.Struct({
|
|
299
|
+
}).annotate({ identifier: "ReceivingStatus" }))();
|
|
300
|
+
const EmailDomainPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
301
301
|
items: Schema.Array(Schema.Struct({
|
|
302
302
|
id: EmailDomainId,
|
|
303
303
|
domain: Schema.String,
|
|
@@ -319,8 +319,8 @@ const EmailDomainPage = /* @__PURE__ */ Schema.Struct({
|
|
|
319
319
|
updatedAt: Schema.String
|
|
320
320
|
})),
|
|
321
321
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
322
|
-
}).annotate({ identifier: "EmailDomainPage" });
|
|
323
|
-
const EmailDomainDetailed = /* @__PURE__ */ Schema.Struct({
|
|
322
|
+
}).annotate({ identifier: "EmailDomainPage" }))();
|
|
323
|
+
const EmailDomainDetailed = /* @__PURE__ */ (() => Schema.Struct({
|
|
324
324
|
id: EmailDomainId,
|
|
325
325
|
domain: Schema.String,
|
|
326
326
|
phase: Schema.Union([
|
|
@@ -358,8 +358,8 @@ const EmailDomainDetailed = /* @__PURE__ */ Schema.Struct({
|
|
|
358
358
|
deliverability: DeliverabilityFacts,
|
|
359
359
|
createdAt: Schema.String,
|
|
360
360
|
updatedAt: Schema.String
|
|
361
|
-
}).annotate({ identifier: "EmailDomainDetailed" });
|
|
362
|
-
const CustomTrackingStatus = /* @__PURE__ */ Schema.Struct({
|
|
361
|
+
}).annotate({ identifier: "EmailDomainDetailed" }))();
|
|
362
|
+
const CustomTrackingStatus = /* @__PURE__ */ (() => Schema.Struct({
|
|
363
363
|
enabled: Schema.Boolean,
|
|
364
364
|
customTracking: Schema.Union([Schema.Struct({
|
|
365
365
|
status: Schema.Union([
|
|
@@ -384,8 +384,8 @@ const CustomTrackingStatus = /* @__PURE__ */ Schema.Struct({
|
|
|
384
384
|
teardownScheduledAt: Schema.Union([Schema.String, Schema.Null])
|
|
385
385
|
}), Schema.Null]),
|
|
386
386
|
parentDomains: Schema.Array(Schema.String)
|
|
387
|
-
}).annotate({ identifier: "CustomTrackingStatus" });
|
|
388
|
-
const DomainWarmingPlan = /* @__PURE__ */ Schema.Struct({
|
|
387
|
+
}).annotate({ identifier: "CustomTrackingStatus" }))();
|
|
388
|
+
const DomainWarmingPlan = /* @__PURE__ */ (() => Schema.Struct({
|
|
389
389
|
id: EmailDomainWarmingPlanId,
|
|
390
390
|
status: Schema.Union([
|
|
391
391
|
Schema.Literal("active"),
|
|
@@ -406,8 +406,8 @@ const DomainWarmingPlan = /* @__PURE__ */ Schema.Struct({
|
|
|
406
406
|
completedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
407
407
|
createdAt: Schema.String,
|
|
408
408
|
updatedAt: Schema.String
|
|
409
|
-
}).annotate({ identifier: "DomainWarmingPlan" });
|
|
410
|
-
const DomainWarmingBatch = /* @__PURE__ */ Schema.Struct({
|
|
409
|
+
}).annotate({ identifier: "DomainWarmingPlan" }))();
|
|
410
|
+
const DomainWarmingBatch = /* @__PURE__ */ (() => Schema.Struct({
|
|
411
411
|
id: EmailDomainWarmingBatchId,
|
|
412
412
|
sequence: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
413
413
|
state: Schema.Union([
|
|
@@ -425,8 +425,8 @@ const DomainWarmingBatch = /* @__PURE__ */ Schema.Struct({
|
|
|
425
425
|
acceptedRecipients: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
426
426
|
cancelledAt: Schema.Union([Schema.String, Schema.Null]),
|
|
427
427
|
createdAt: Schema.String
|
|
428
|
-
}).annotate({ identifier: "DomainWarmingBatch" });
|
|
429
|
-
const DomainWarmingDecision = /* @__PURE__ */ Schema.Struct({
|
|
428
|
+
}).annotate({ identifier: "DomainWarmingBatch" }))();
|
|
429
|
+
const DomainWarmingDecision = /* @__PURE__ */ (() => Schema.Struct({
|
|
430
430
|
id: EmailDomainWarmingDecisionId,
|
|
431
431
|
kind: Schema.Union([
|
|
432
432
|
Schema.Literal("plan-created"),
|
|
@@ -442,8 +442,8 @@ const DomainWarmingDecision = /* @__PURE__ */ Schema.Struct({
|
|
|
442
442
|
actor: Schema.String,
|
|
443
443
|
note: Schema.Union([Schema.String, Schema.Null]),
|
|
444
444
|
createdAt: Schema.String
|
|
445
|
-
}).annotate({ identifier: "DomainWarmingDecision" });
|
|
446
|
-
const DomainWarmingEvidence = /* @__PURE__ */ Schema.Struct({
|
|
445
|
+
}).annotate({ identifier: "DomainWarmingDecision" }))();
|
|
446
|
+
const DomainWarmingEvidence = /* @__PURE__ */ (() => Schema.Struct({
|
|
447
447
|
observedAt: Schema.String,
|
|
448
448
|
windowHours: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
449
449
|
minimumSends: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
@@ -459,8 +459,8 @@ const DomainWarmingEvidence = /* @__PURE__ */ Schema.Struct({
|
|
|
459
459
|
Schema.Literal("over-threshold")
|
|
460
460
|
]),
|
|
461
461
|
thresholdReason: Schema.Union([Schema.String, Schema.Null])
|
|
462
|
-
}).annotate({ identifier: "DomainWarmingEvidence" });
|
|
463
|
-
const ForwardingRuleList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(Schema.Struct({
|
|
462
|
+
}).annotate({ identifier: "DomainWarmingEvidence" }))();
|
|
463
|
+
const ForwardingRuleList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Array(Schema.Struct({
|
|
464
464
|
id: EmailForwardingRuleId,
|
|
465
465
|
name: Schema.String,
|
|
466
466
|
description: Schema.Union([Schema.String, Schema.Null]),
|
|
@@ -474,8 +474,8 @@ const ForwardingRuleList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(S
|
|
|
474
474
|
failureCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
475
475
|
lastForwardedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
476
476
|
createdAt: Schema.String
|
|
477
|
-
})).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })) }).annotate({ identifier: "ForwardingRuleList" });
|
|
478
|
-
const ForwardingLogPage = /* @__PURE__ */ Schema.Struct({
|
|
477
|
+
})).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })) }).annotate({ identifier: "ForwardingRuleList" }))();
|
|
478
|
+
const ForwardingLogPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
479
479
|
items: Schema.Array(Schema.Struct({
|
|
480
480
|
id: Schema.String,
|
|
481
481
|
forwardingRuleId: Schema.Union([EmailForwardingRuleId, Schema.Null]),
|
|
@@ -494,8 +494,8 @@ const ForwardingLogPage = /* @__PURE__ */ Schema.Struct({
|
|
|
494
494
|
createdAt: Schema.String
|
|
495
495
|
})),
|
|
496
496
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
497
|
-
}).annotate({ identifier: "ForwardingLogPage" });
|
|
498
|
-
const OnboardingReviewStatus = /* @__PURE__ */ Schema.Struct({
|
|
497
|
+
}).annotate({ identifier: "ForwardingLogPage" }))();
|
|
498
|
+
const OnboardingReviewStatus = /* @__PURE__ */ (() => Schema.Struct({
|
|
499
499
|
decision: Schema.Union([
|
|
500
500
|
Schema.Literal("undecided"),
|
|
501
501
|
Schema.Literal("approved"),
|
|
@@ -540,8 +540,8 @@ const OnboardingReviewStatus = /* @__PURE__ */ Schema.Struct({
|
|
|
540
540
|
}), Schema.Null]),
|
|
541
541
|
identities: Schema.Array(IdentityClearanceStatus),
|
|
542
542
|
updatedAt: Schema.Union([Schema.String, Schema.Null])
|
|
543
|
-
}).annotate({ identifier: "OnboardingReviewStatus" });
|
|
544
|
-
const EmailSenderPage = /* @__PURE__ */ Schema.Struct({
|
|
543
|
+
}).annotate({ identifier: "OnboardingReviewStatus" }))();
|
|
544
|
+
const EmailSenderPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
545
545
|
items: Schema.Array(Schema.Struct({
|
|
546
546
|
id: EmailSenderId,
|
|
547
547
|
organizationId: Schema.String,
|
|
@@ -572,8 +572,8 @@ const EmailSenderPage = /* @__PURE__ */ Schema.Struct({
|
|
|
572
572
|
updatedAt: Schema.String
|
|
573
573
|
})),
|
|
574
574
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
575
|
-
}).annotate({ identifier: "EmailSenderPage" });
|
|
576
|
-
const SuppressionEntry = /* @__PURE__ */ Schema.Struct({
|
|
575
|
+
}).annotate({ identifier: "EmailSenderPage" }))();
|
|
576
|
+
const SuppressionEntry = /* @__PURE__ */ (() => Schema.Struct({
|
|
577
577
|
id: SuppressionId,
|
|
578
578
|
email: Schema.String,
|
|
579
579
|
type: Schema.Union([
|
|
@@ -589,15 +589,15 @@ const SuppressionEntry = /* @__PURE__ */ Schema.Struct({
|
|
|
589
589
|
isActive: Schema.Boolean,
|
|
590
590
|
expiresAt: Schema.Union([Schema.String, Schema.Null]),
|
|
591
591
|
createdAt: Schema.String
|
|
592
|
-
}).annotate({ identifier: "SuppressionEntry" });
|
|
593
|
-
const EmailRecipientTrackingPreference = /* @__PURE__ */ Schema.Struct({
|
|
592
|
+
}).annotate({ identifier: "SuppressionEntry" }))();
|
|
593
|
+
const EmailRecipientTrackingPreference = /* @__PURE__ */ (() => Schema.Struct({
|
|
594
594
|
email: TrackingRecipientEmail,
|
|
595
595
|
optedOut: Schema.Boolean,
|
|
596
596
|
trackingOptedOutAt: Schema.Union([Schema.String, Schema.Null]),
|
|
597
597
|
createdAt: Schema.Union([Schema.String, Schema.Null]),
|
|
598
598
|
updatedAt: Schema.Union([Schema.String, Schema.Null])
|
|
599
|
-
}).annotate({ identifier: "EmailRecipientTrackingPreference" });
|
|
600
|
-
const EmailDomainVerification = /* @__PURE__ */ Schema.Struct({
|
|
599
|
+
}).annotate({ identifier: "EmailRecipientTrackingPreference" }))();
|
|
600
|
+
const EmailDomainVerification = /* @__PURE__ */ (() => Schema.Struct({
|
|
601
601
|
domainId: EmailDomainId,
|
|
602
602
|
domain: Schema.String,
|
|
603
603
|
phase: Schema.Union([
|
|
@@ -804,39 +804,39 @@ const EmailDomainVerification = /* @__PURE__ */ Schema.Struct({
|
|
|
804
804
|
guidance: Schema.String
|
|
805
805
|
}),
|
|
806
806
|
rotation: Schema.Union([EmailDkimRotation, Schema.Null])
|
|
807
|
-
}).annotate({ identifier: "EmailDomainVerification" });
|
|
808
|
-
const DomainWarming = /* @__PURE__ */ Schema.Struct({
|
|
807
|
+
}).annotate({ identifier: "EmailDomainVerification" }))();
|
|
808
|
+
const DomainWarming = /* @__PURE__ */ (() => Schema.Struct({
|
|
809
809
|
domain: DomainWarmingDomainRef,
|
|
810
810
|
plan: Schema.Union([DomainWarmingPlan, Schema.Null]),
|
|
811
811
|
batches: Schema.Array(DomainWarmingBatch),
|
|
812
812
|
decisions: Schema.Array(DomainWarmingDecision),
|
|
813
813
|
evidence: DomainWarmingEvidence,
|
|
814
814
|
holds: DomainWarmingHolds
|
|
815
|
-
}).annotate({ identifier: "DomainWarming" });
|
|
816
|
-
const SuppressionPage = /* @__PURE__ */ Schema.Struct({
|
|
815
|
+
}).annotate({ identifier: "DomainWarming" }))();
|
|
816
|
+
const SuppressionPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
817
817
|
items: Schema.Array(SuppressionEntry),
|
|
818
818
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
819
|
-
}).annotate({ identifier: "SuppressionPage" });
|
|
820
|
-
const EmailListBlocksQuery = /* @__PURE__ */ Schema.Struct({
|
|
819
|
+
}).annotate({ identifier: "SuppressionPage" }))();
|
|
820
|
+
const EmailListBlocksQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
821
821
|
blockType: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("email"), Schema.Literal("domain")]), Schema.Null])),
|
|
822
822
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
823
823
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
824
824
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
825
|
-
});
|
|
825
|
+
}))();
|
|
826
826
|
const EmailListBlocks200 = BlockPage;
|
|
827
827
|
const EmailListBlocks401 = UnauthorizedError;
|
|
828
828
|
const EmailListBlocks403 = ForbiddenError;
|
|
829
829
|
const EmailListBlocks422 = ValidationError;
|
|
830
830
|
const EmailListBlocks500 = InternalError;
|
|
831
831
|
const EmailListBlocks504 = GatewayTimeoutError;
|
|
832
|
-
const EmailAddBlockRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
832
|
+
const EmailAddBlockRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
833
833
|
blockType: Schema.Union([Schema.Literal("email"), Schema.Literal("domain")]),
|
|
834
834
|
blockValue: Schema.String,
|
|
835
835
|
reason: Schema.String,
|
|
836
836
|
notes: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
837
837
|
expiresAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
838
|
-
});
|
|
839
|
-
const EmailAddBlock201 = /* @__PURE__ */ Schema.Struct({
|
|
838
|
+
}))();
|
|
839
|
+
const EmailAddBlock201 = /* @__PURE__ */ (() => Schema.Struct({
|
|
840
840
|
id: BlockedEmailId,
|
|
841
841
|
blockType: Schema.Union([Schema.Literal("email"), Schema.Literal("domain")]),
|
|
842
842
|
blockValue: Schema.String,
|
|
@@ -845,14 +845,14 @@ const EmailAddBlock201 = /* @__PURE__ */ Schema.Struct({
|
|
|
845
845
|
isActive: Schema.Boolean,
|
|
846
846
|
expiresAt: Schema.Union([Schema.String, Schema.Null]),
|
|
847
847
|
createdAt: Schema.String
|
|
848
|
-
});
|
|
848
|
+
}))();
|
|
849
849
|
const EmailAddBlock401 = UnauthorizedError;
|
|
850
850
|
const EmailAddBlock403 = ForbiddenError;
|
|
851
851
|
const EmailAddBlock409 = ConflictError;
|
|
852
852
|
const EmailAddBlock422 = ValidationError;
|
|
853
853
|
const EmailAddBlock500 = InternalError;
|
|
854
854
|
const EmailAddBlock504 = GatewayTimeoutError;
|
|
855
|
-
const EmailRemoveBlockPathParams = /* @__PURE__ */ Schema.Struct({ id: BlockedEmailId });
|
|
855
|
+
const EmailRemoveBlockPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: BlockedEmailId }))();
|
|
856
856
|
const EmailRemoveBlock200 = SuccessResult;
|
|
857
857
|
const EmailRemoveBlock401 = UnauthorizedError;
|
|
858
858
|
const EmailRemoveBlock403 = ForbiddenError;
|
|
@@ -860,14 +860,14 @@ const EmailRemoveBlock404 = ResourceNotFoundError;
|
|
|
860
860
|
const EmailRemoveBlock422 = ValidationError;
|
|
861
861
|
const EmailRemoveBlock500 = InternalError;
|
|
862
862
|
const EmailRemoveBlock504 = GatewayTimeoutError;
|
|
863
|
-
const EmailUpdateBlockPathParams = /* @__PURE__ */ Schema.Struct({ id: BlockedEmailId });
|
|
864
|
-
const EmailUpdateBlockRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
863
|
+
const EmailUpdateBlockPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: BlockedEmailId }))();
|
|
864
|
+
const EmailUpdateBlockRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
865
865
|
reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
866
866
|
notes: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
867
867
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
868
868
|
expiresAt: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null]))
|
|
869
|
-
});
|
|
870
|
-
const EmailUpdateBlock200 = /* @__PURE__ */ Schema.Struct({
|
|
869
|
+
}))();
|
|
870
|
+
const EmailUpdateBlock200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
871
871
|
id: BlockedEmailId,
|
|
872
872
|
blockType: Schema.Union([Schema.Literal("email"), Schema.Literal("domain")]),
|
|
873
873
|
blockValue: Schema.String,
|
|
@@ -876,15 +876,15 @@ const EmailUpdateBlock200 = /* @__PURE__ */ Schema.Struct({
|
|
|
876
876
|
isActive: Schema.Boolean,
|
|
877
877
|
expiresAt: Schema.Union([Schema.String, Schema.Null]),
|
|
878
878
|
updatedAt: Schema.String
|
|
879
|
-
});
|
|
879
|
+
}))();
|
|
880
880
|
const EmailUpdateBlock401 = UnauthorizedError;
|
|
881
881
|
const EmailUpdateBlock403 = ForbiddenError;
|
|
882
882
|
const EmailUpdateBlock404 = ResourceNotFoundError;
|
|
883
883
|
const EmailUpdateBlock422 = ValidationError;
|
|
884
884
|
const EmailUpdateBlock500 = InternalError;
|
|
885
885
|
const EmailUpdateBlock504 = GatewayTimeoutError;
|
|
886
|
-
const EmailCheckBlockedRequestJson = /* @__PURE__ */ Schema.Struct({ emailAddress: Schema.String });
|
|
887
|
-
const EmailCheckBlocked200 = /* @__PURE__ */ Schema.Struct({
|
|
886
|
+
const EmailCheckBlockedRequestJson = /* @__PURE__ */ (() => Schema.Struct({ emailAddress: Schema.String }))();
|
|
887
|
+
const EmailCheckBlocked200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
888
888
|
isBlocked: Schema.Boolean,
|
|
889
889
|
blockingRule: Schema.Union([Schema.Struct({
|
|
890
890
|
id: BlockedEmailId,
|
|
@@ -894,56 +894,56 @@ const EmailCheckBlocked200 = /* @__PURE__ */ Schema.Struct({
|
|
|
894
894
|
expiresAt: Schema.Union([Schema.String, Schema.Null])
|
|
895
895
|
}), Schema.Null]),
|
|
896
896
|
reason: Schema.Union([Schema.String, Schema.Null])
|
|
897
|
-
});
|
|
897
|
+
}))();
|
|
898
898
|
const EmailCheckBlocked401 = UnauthorizedError;
|
|
899
899
|
const EmailCheckBlocked403 = ForbiddenError;
|
|
900
900
|
const EmailCheckBlocked422 = ValidationError;
|
|
901
901
|
const EmailCheckBlocked500 = InternalError;
|
|
902
902
|
const EmailCheckBlocked504 = GatewayTimeoutError;
|
|
903
|
-
const EmailGetBlockLogsQuery = /* @__PURE__ */ Schema.Struct({
|
|
903
|
+
const EmailGetBlockLogsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
904
904
|
blockedEmailId: Schema.optionalKey(Schema.Union([BlockedEmailId, Schema.Null])),
|
|
905
905
|
fromAddress: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
906
906
|
after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
907
907
|
before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
908
908
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
909
909
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
910
|
-
});
|
|
910
|
+
}))();
|
|
911
911
|
const EmailGetBlockLogs200 = BlockLogPage;
|
|
912
912
|
const EmailGetBlockLogs401 = UnauthorizedError;
|
|
913
913
|
const EmailGetBlockLogs403 = ForbiddenError;
|
|
914
914
|
const EmailGetBlockLogs422 = ValidationError;
|
|
915
915
|
const EmailGetBlockLogs500 = InternalError;
|
|
916
916
|
const EmailGetBlockLogs504 = GatewayTimeoutError;
|
|
917
|
-
const EmailGetCatchAllConfigQuery = /* @__PURE__ */ Schema.Struct({ domainId: EmailDomainId });
|
|
918
|
-
const EmailGetCatchAllConfig200 = /* @__PURE__ */ Schema.Struct({
|
|
917
|
+
const EmailGetCatchAllConfigQuery = /* @__PURE__ */ (() => Schema.Struct({ domainId: EmailDomainId }))();
|
|
918
|
+
const EmailGetCatchAllConfig200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
919
919
|
enabled: Schema.Boolean,
|
|
920
920
|
endpointId: Schema.Union([WebhookEndpointId, Schema.Null]),
|
|
921
921
|
emailCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
922
922
|
lastEmailAt: Schema.Union([Schema.String, Schema.Null])
|
|
923
|
-
});
|
|
923
|
+
}))();
|
|
924
924
|
const EmailGetCatchAllConfig401 = UnauthorizedError;
|
|
925
925
|
const EmailGetCatchAllConfig403 = ForbiddenError;
|
|
926
926
|
const EmailGetCatchAllConfig404 = ResourceNotFoundError;
|
|
927
927
|
const EmailGetCatchAllConfig422 = ValidationError;
|
|
928
928
|
const EmailGetCatchAllConfig500 = InternalError;
|
|
929
929
|
const EmailGetCatchAllConfig504 = GatewayTimeoutError;
|
|
930
|
-
const EmailUpdateCatchAllConfigRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
930
|
+
const EmailUpdateCatchAllConfigRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
931
931
|
domainId: EmailDomainId,
|
|
932
932
|
endpointId: Schema.optionalKey(Schema.Union([WebhookEndpointId, Schema.Null]))
|
|
933
|
-
});
|
|
934
|
-
const EmailUpdateCatchAllConfig200 = /* @__PURE__ */ Schema.Struct({ success: Schema.Literal(true) });
|
|
933
|
+
}))();
|
|
934
|
+
const EmailUpdateCatchAllConfig200 = /* @__PURE__ */ (() => Schema.Struct({ success: Schema.Literal(true) }))();
|
|
935
935
|
const EmailUpdateCatchAllConfig401 = UnauthorizedError;
|
|
936
936
|
const EmailUpdateCatchAllConfig403 = ForbiddenError;
|
|
937
937
|
const EmailUpdateCatchAllConfig404 = ResourceNotFoundError;
|
|
938
938
|
const EmailUpdateCatchAllConfig422 = ValidationError;
|
|
939
939
|
const EmailUpdateCatchAllConfig500 = InternalError;
|
|
940
940
|
const EmailUpdateCatchAllConfig504 = GatewayTimeoutError;
|
|
941
|
-
const EmailGetCatchAllStatsQuery = /* @__PURE__ */ Schema.Struct({
|
|
941
|
+
const EmailGetCatchAllStatsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
942
942
|
domainId: EmailDomainId,
|
|
943
943
|
after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
944
944
|
before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
945
|
-
});
|
|
946
|
-
const EmailGetCatchAllStats200 = /* @__PURE__ */ Schema.Struct({
|
|
945
|
+
}))();
|
|
946
|
+
const EmailGetCatchAllStats200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
947
947
|
domain: Schema.String,
|
|
948
948
|
isCatchAllEnabled: Schema.Boolean,
|
|
949
949
|
catchAllEmailCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
@@ -954,33 +954,33 @@ const EmailGetCatchAllStats200 = /* @__PURE__ */ Schema.Struct({
|
|
|
954
954
|
lastEmail: Schema.Union([Schema.String, Schema.Null]),
|
|
955
955
|
avgPerDay: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
956
956
|
}), Schema.Null]))
|
|
957
|
-
});
|
|
957
|
+
}))();
|
|
958
958
|
const EmailGetCatchAllStats401 = UnauthorizedError;
|
|
959
959
|
const EmailGetCatchAllStats403 = ForbiddenError;
|
|
960
960
|
const EmailGetCatchAllStats404 = ResourceNotFoundError;
|
|
961
961
|
const EmailGetCatchAllStats422 = ValidationError;
|
|
962
962
|
const EmailGetCatchAllStats500 = InternalError;
|
|
963
963
|
const EmailGetCatchAllStats504 = GatewayTimeoutError;
|
|
964
|
-
const EmailListDomainsQuery = /* @__PURE__ */ Schema.Struct({
|
|
964
|
+
const EmailListDomainsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
965
965
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
966
966
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
|
|
967
967
|
sendable: Schema.optionalKey(Schema.Union([Schema.Literal(true), Schema.Null])),
|
|
968
968
|
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]))
|
|
969
|
-
});
|
|
969
|
+
}))();
|
|
970
970
|
const EmailListDomains200 = EmailDomainPage;
|
|
971
971
|
const EmailListDomains401 = UnauthorizedError;
|
|
972
972
|
const EmailListDomains403 = ForbiddenError;
|
|
973
973
|
const EmailListDomains422 = ValidationError;
|
|
974
974
|
const EmailListDomains500 = InternalError;
|
|
975
975
|
const EmailListDomains504 = GatewayTimeoutError;
|
|
976
|
-
const EmailAddDomainRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
976
|
+
const EmailAddDomainRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
977
977
|
domain: Schema.String,
|
|
978
978
|
connection: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
979
979
|
connectionId: Schema.String,
|
|
980
980
|
zone: Schema.String
|
|
981
981
|
}), Schema.Null])),
|
|
982
982
|
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]))
|
|
983
|
-
});
|
|
983
|
+
}))();
|
|
984
984
|
const EmailAddDomain201 = EmailDomainDetailed;
|
|
985
985
|
const EmailAddDomain401 = UnauthorizedError;
|
|
986
986
|
const EmailAddDomain402 = PaymentRequiredError;
|
|
@@ -990,9 +990,9 @@ const EmailAddDomain409 = ConflictError;
|
|
|
990
990
|
const EmailAddDomain422 = ValidationError;
|
|
991
991
|
const EmailAddDomain429 = RateLimitedError;
|
|
992
992
|
const EmailAddDomain500 = InternalError;
|
|
993
|
-
const EmailAddDomain502 = /* @__PURE__ */ Schema.Union([EmailChannelError, BillingProviderError]);
|
|
993
|
+
const EmailAddDomain502 = /* @__PURE__ */ (() => Schema.Union([EmailChannelError, BillingProviderError]))();
|
|
994
994
|
const EmailAddDomain504 = GatewayTimeoutError;
|
|
995
|
-
const EmailGetDomainByIdPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
995
|
+
const EmailGetDomainByIdPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
996
996
|
const EmailGetDomainById200 = EmailDomainDetailed;
|
|
997
997
|
const EmailGetDomainById401 = UnauthorizedError;
|
|
998
998
|
const EmailGetDomainById403 = ForbiddenError;
|
|
@@ -1000,25 +1000,25 @@ const EmailGetDomainById404 = ResourceNotFoundError;
|
|
|
1000
1000
|
const EmailGetDomainById422 = ValidationError;
|
|
1001
1001
|
const EmailGetDomainById500 = InternalError;
|
|
1002
1002
|
const EmailGetDomainById504 = GatewayTimeoutError;
|
|
1003
|
-
const EmailRemoveDomainPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1003
|
+
const EmailRemoveDomainPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1004
1004
|
const EmailRemoveDomain200 = SuccessResult;
|
|
1005
1005
|
const EmailRemoveDomain401 = UnauthorizedError;
|
|
1006
1006
|
const EmailRemoveDomain403 = ForbiddenError;
|
|
1007
1007
|
const EmailRemoveDomain404 = ResourceNotFoundError;
|
|
1008
1008
|
const EmailRemoveDomain422 = ValidationError;
|
|
1009
1009
|
const EmailRemoveDomain500 = InternalError;
|
|
1010
|
-
const EmailRemoveDomain502 = /* @__PURE__ */ Schema.Union([EmailChannelError, BillingProviderError]);
|
|
1010
|
+
const EmailRemoveDomain502 = /* @__PURE__ */ (() => Schema.Union([EmailChannelError, BillingProviderError]))();
|
|
1011
1011
|
const EmailRemoveDomain504 = GatewayTimeoutError;
|
|
1012
|
-
const EmailUpdateDomainConfigPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1013
|
-
const EmailUpdateDomainConfigRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1012
|
+
const EmailUpdateDomainConfigPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1013
|
+
const EmailUpdateDomainConfigRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1014
1014
|
openTracking: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Boolean, Schema.Null]), Schema.Null])),
|
|
1015
1015
|
clickTracking: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Boolean, Schema.Null]), Schema.Null])),
|
|
1016
1016
|
replyTo: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(Schema.String), Schema.Null]), Schema.Null])),
|
|
1017
1017
|
topicId: Schema.optionalKey(Schema.Union([Schema.Union([TopicId, Schema.Null]), Schema.Null])),
|
|
1018
1018
|
footerEnabled: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Boolean, Schema.Null]), Schema.Null])),
|
|
1019
1019
|
brandSlug: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String.check(Schema.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.Null]), Schema.Null]))
|
|
1020
|
-
});
|
|
1021
|
-
const EmailUpdateDomainConfig200 = /* @__PURE__ */ Schema.Struct({
|
|
1020
|
+
}))();
|
|
1021
|
+
const EmailUpdateDomainConfig200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1022
1022
|
id: EmailDomainId,
|
|
1023
1023
|
openTracking: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1024
1024
|
clickTracking: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
@@ -1026,14 +1026,14 @@ const EmailUpdateDomainConfig200 = /* @__PURE__ */ Schema.Struct({
|
|
|
1026
1026
|
topicId: Schema.Union([TopicId, Schema.Null]),
|
|
1027
1027
|
footerEnabled: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1028
1028
|
brandSlug: Schema.Union([Schema.String.check(Schema.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.Null])
|
|
1029
|
-
});
|
|
1029
|
+
}))();
|
|
1030
1030
|
const EmailUpdateDomainConfig401 = UnauthorizedError;
|
|
1031
1031
|
const EmailUpdateDomainConfig403 = ForbiddenError;
|
|
1032
1032
|
const EmailUpdateDomainConfig404 = ResourceNotFoundError;
|
|
1033
1033
|
const EmailUpdateDomainConfig422 = ValidationError;
|
|
1034
1034
|
const EmailUpdateDomainConfig500 = InternalError;
|
|
1035
1035
|
const EmailUpdateDomainConfig504 = GatewayTimeoutError;
|
|
1036
|
-
const EmailGetCustomTrackingPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1036
|
+
const EmailGetCustomTrackingPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1037
1037
|
const EmailGetCustomTracking200 = CustomTrackingStatus;
|
|
1038
1038
|
const EmailGetCustomTracking401 = UnauthorizedError;
|
|
1039
1039
|
const EmailGetCustomTracking403 = ForbiddenError;
|
|
@@ -1041,11 +1041,11 @@ const EmailGetCustomTracking404 = ResourceNotFoundError;
|
|
|
1041
1041
|
const EmailGetCustomTracking422 = ValidationError;
|
|
1042
1042
|
const EmailGetCustomTracking500 = InternalError;
|
|
1043
1043
|
const EmailGetCustomTracking504 = GatewayTimeoutError;
|
|
1044
|
-
const EmailEnableCustomTrackingPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1045
|
-
const EmailEnableCustomTrackingRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1044
|
+
const EmailEnableCustomTrackingPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1045
|
+
const EmailEnableCustomTrackingRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1046
1046
|
label: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "First label of the tracking host. Defaults to `track`." }), Schema.Null])),
|
|
1047
1047
|
parentDomain: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Domain the tracking host sits directly under: the sending domain (the default) or one of its parents up to its registrable domain, listed in `parentDomains`." }), Schema.Null]))
|
|
1048
|
-
});
|
|
1048
|
+
}))();
|
|
1049
1049
|
const EmailEnableCustomTracking200 = CustomTrackingStatus;
|
|
1050
1050
|
const EmailEnableCustomTracking401 = UnauthorizedError;
|
|
1051
1051
|
const EmailEnableCustomTracking403 = ForbiddenError;
|
|
@@ -1053,9 +1053,9 @@ const EmailEnableCustomTracking404 = ResourceNotFoundError;
|
|
|
1053
1053
|
const EmailEnableCustomTracking409 = ConflictError;
|
|
1054
1054
|
const EmailEnableCustomTracking422 = ValidationError;
|
|
1055
1055
|
const EmailEnableCustomTracking500 = InternalError;
|
|
1056
|
-
const EmailEnableCustomTracking502 = /* @__PURE__ */ Schema.Union([EmailChannelError, BillingProviderError]);
|
|
1056
|
+
const EmailEnableCustomTracking502 = /* @__PURE__ */ (() => Schema.Union([EmailChannelError, BillingProviderError]))();
|
|
1057
1057
|
const EmailEnableCustomTracking504 = GatewayTimeoutError;
|
|
1058
|
-
const EmailDisableCustomTrackingPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1058
|
+
const EmailDisableCustomTrackingPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1059
1059
|
const EmailDisableCustomTracking200 = SuccessResult;
|
|
1060
1060
|
const EmailDisableCustomTracking401 = UnauthorizedError;
|
|
1061
1061
|
const EmailDisableCustomTracking403 = ForbiddenError;
|
|
@@ -1065,7 +1065,7 @@ const EmailDisableCustomTracking422 = ValidationError;
|
|
|
1065
1065
|
const EmailDisableCustomTracking500 = InternalError;
|
|
1066
1066
|
const EmailDisableCustomTracking502 = EmailChannelError;
|
|
1067
1067
|
const EmailDisableCustomTracking504 = GatewayTimeoutError;
|
|
1068
|
-
const EmailGetCustomTrackingDomainConnectPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1068
|
+
const EmailGetCustomTrackingDomainConnectPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1069
1069
|
const EmailGetCustomTrackingDomainConnect200 = DomainConnectEligibility;
|
|
1070
1070
|
const EmailGetCustomTrackingDomainConnect401 = UnauthorizedError;
|
|
1071
1071
|
const EmailGetCustomTrackingDomainConnect403 = ForbiddenError;
|
|
@@ -1073,7 +1073,7 @@ const EmailGetCustomTrackingDomainConnect404 = ResourceNotFoundError;
|
|
|
1073
1073
|
const EmailGetCustomTrackingDomainConnect422 = ValidationError;
|
|
1074
1074
|
const EmailGetCustomTrackingDomainConnect500 = InternalError;
|
|
1075
1075
|
const EmailGetCustomTrackingDomainConnect504 = GatewayTimeoutError;
|
|
1076
|
-
const EmailBuildCustomTrackingDomainConnectApplyUrlPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1076
|
+
const EmailBuildCustomTrackingDomainConnectApplyUrlPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1077
1077
|
const EmailBuildCustomTrackingDomainConnectApplyUrl200 = DomainConnectApplyUrlResult;
|
|
1078
1078
|
const EmailBuildCustomTrackingDomainConnectApplyUrl401 = UnauthorizedError;
|
|
1079
1079
|
const EmailBuildCustomTrackingDomainConnectApplyUrl403 = ForbiddenError;
|
|
@@ -1083,12 +1083,12 @@ const EmailBuildCustomTrackingDomainConnectApplyUrl422 = ValidationError;
|
|
|
1083
1083
|
const EmailBuildCustomTrackingDomainConnectApplyUrl500 = InternalError;
|
|
1084
1084
|
const EmailBuildCustomTrackingDomainConnectApplyUrl502 = EmailChannelError;
|
|
1085
1085
|
const EmailBuildCustomTrackingDomainConnectApplyUrl504 = GatewayTimeoutError;
|
|
1086
|
-
const EmailCompleteCustomTrackingDomainConnectPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1087
|
-
const EmailCompleteCustomTrackingDomainConnectRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1086
|
+
const EmailCompleteCustomTrackingDomainConnectPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1087
|
+
const EmailCompleteCustomTrackingDomainConnectRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1088
1088
|
state: Schema.String,
|
|
1089
1089
|
error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1090
1090
|
errorDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
1091
|
-
});
|
|
1091
|
+
}))();
|
|
1092
1092
|
const EmailCompleteCustomTrackingDomainConnect200 = CustomTrackingDomainConnectCompleteResult;
|
|
1093
1093
|
const EmailCompleteCustomTrackingDomainConnect401 = UnauthorizedError;
|
|
1094
1094
|
const EmailCompleteCustomTrackingDomainConnect403 = ForbiddenError;
|
|
@@ -1096,7 +1096,7 @@ const EmailCompleteCustomTrackingDomainConnect404 = ResourceNotFoundError;
|
|
|
1096
1096
|
const EmailCompleteCustomTrackingDomainConnect422 = ValidationError;
|
|
1097
1097
|
const EmailCompleteCustomTrackingDomainConnect500 = InternalError;
|
|
1098
1098
|
const EmailCompleteCustomTrackingDomainConnect504 = GatewayTimeoutError;
|
|
1099
|
-
const EmailRecheckCustomTrackingPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1099
|
+
const EmailRecheckCustomTrackingPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1100
1100
|
const EmailRecheckCustomTracking200 = CustomTrackingStatus;
|
|
1101
1101
|
const EmailRecheckCustomTracking401 = UnauthorizedError;
|
|
1102
1102
|
const EmailRecheckCustomTracking403 = ForbiddenError;
|
|
@@ -1106,7 +1106,7 @@ const EmailRecheckCustomTracking422 = ValidationError;
|
|
|
1106
1106
|
const EmailRecheckCustomTracking500 = InternalError;
|
|
1107
1107
|
const EmailRecheckCustomTracking502 = EmailChannelError;
|
|
1108
1108
|
const EmailRecheckCustomTracking504 = GatewayTimeoutError;
|
|
1109
|
-
const EmailSetDefaultDomainPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1109
|
+
const EmailSetDefaultDomainPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1110
1110
|
const EmailSetDefaultDomain200 = SuccessResult;
|
|
1111
1111
|
const EmailSetDefaultDomain401 = UnauthorizedError;
|
|
1112
1112
|
const EmailSetDefaultDomain403 = ForbiddenError;
|
|
@@ -1114,8 +1114,8 @@ const EmailSetDefaultDomain404 = ResourceNotFoundError;
|
|
|
1114
1114
|
const EmailSetDefaultDomain422 = ValidationError;
|
|
1115
1115
|
const EmailSetDefaultDomain500 = InternalError;
|
|
1116
1116
|
const EmailSetDefaultDomain504 = GatewayTimeoutError;
|
|
1117
|
-
const EmailDisableCatchAllPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1118
|
-
const EmailDisableCatchAll200 = /* @__PURE__ */ Schema.Struct({ success: Schema.Literal(true) });
|
|
1117
|
+
const EmailDisableCatchAllPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1118
|
+
const EmailDisableCatchAll200 = /* @__PURE__ */ (() => Schema.Struct({ success: Schema.Literal(true) }))();
|
|
1119
1119
|
const EmailDisableCatchAll401 = UnauthorizedError;
|
|
1120
1120
|
const EmailDisableCatchAll403 = ForbiddenError;
|
|
1121
1121
|
const EmailDisableCatchAll404 = ResourceNotFoundError;
|
|
@@ -1123,8 +1123,8 @@ const EmailDisableCatchAll422 = ValidationError;
|
|
|
1123
1123
|
const EmailDisableCatchAll500 = InternalError;
|
|
1124
1124
|
const EmailDisableCatchAll502 = ExternalServiceError;
|
|
1125
1125
|
const EmailDisableCatchAll504 = GatewayTimeoutError;
|
|
1126
|
-
const EmailGetDomainConnectPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1127
|
-
const EmailGetDomainConnectQuery = /* @__PURE__ */ Schema.Struct({ mode: Schema.Union([Schema.Literal("send-only"), Schema.Literal("send-and-receive")]) });
|
|
1126
|
+
const EmailGetDomainConnectPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1127
|
+
const EmailGetDomainConnectQuery = /* @__PURE__ */ (() => Schema.Struct({ mode: Schema.Union([Schema.Literal("send-only"), Schema.Literal("send-and-receive")]) }))();
|
|
1128
1128
|
const EmailGetDomainConnect200 = DomainConnectEligibility;
|
|
1129
1129
|
const EmailGetDomainConnect401 = UnauthorizedError;
|
|
1130
1130
|
const EmailGetDomainConnect403 = ForbiddenError;
|
|
@@ -1132,8 +1132,8 @@ const EmailGetDomainConnect404 = ResourceNotFoundError;
|
|
|
1132
1132
|
const EmailGetDomainConnect422 = ValidationError;
|
|
1133
1133
|
const EmailGetDomainConnect500 = InternalError;
|
|
1134
1134
|
const EmailGetDomainConnect504 = GatewayTimeoutError;
|
|
1135
|
-
const EmailBuildDomainConnectApplyUrlPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1136
|
-
const EmailBuildDomainConnectApplyUrlRequestJson = /* @__PURE__ */ Schema.Struct({ mode: Schema.Union([Schema.Literal("send-only"), Schema.Literal("send-and-receive")]) });
|
|
1135
|
+
const EmailBuildDomainConnectApplyUrlPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1136
|
+
const EmailBuildDomainConnectApplyUrlRequestJson = /* @__PURE__ */ (() => Schema.Struct({ mode: Schema.Union([Schema.Literal("send-only"), Schema.Literal("send-and-receive")]) }))();
|
|
1137
1137
|
const EmailBuildDomainConnectApplyUrl200 = DomainConnectApplyUrlResult;
|
|
1138
1138
|
const EmailBuildDomainConnectApplyUrl401 = UnauthorizedError;
|
|
1139
1139
|
const EmailBuildDomainConnectApplyUrl403 = ForbiddenError;
|
|
@@ -1143,12 +1143,12 @@ const EmailBuildDomainConnectApplyUrl422 = ValidationError;
|
|
|
1143
1143
|
const EmailBuildDomainConnectApplyUrl500 = InternalError;
|
|
1144
1144
|
const EmailBuildDomainConnectApplyUrl502 = EmailChannelError;
|
|
1145
1145
|
const EmailBuildDomainConnectApplyUrl504 = GatewayTimeoutError;
|
|
1146
|
-
const EmailCompleteDomainConnectPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1147
|
-
const EmailCompleteDomainConnectRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1146
|
+
const EmailCompleteDomainConnectPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1147
|
+
const EmailCompleteDomainConnectRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1148
1148
|
state: Schema.String,
|
|
1149
1149
|
error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1150
1150
|
errorDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
1151
|
-
});
|
|
1151
|
+
}))();
|
|
1152
1152
|
const EmailCompleteDomainConnect200 = DomainConnectCompleteResult;
|
|
1153
1153
|
const EmailCompleteDomainConnect401 = UnauthorizedError;
|
|
1154
1154
|
const EmailCompleteDomainConnect403 = ForbiddenError;
|
|
@@ -1157,9 +1157,9 @@ const EmailCompleteDomainConnect422 = ValidationError;
|
|
|
1157
1157
|
const EmailCompleteDomainConnect500 = InternalError;
|
|
1158
1158
|
const EmailCompleteDomainConnect502 = EmailChannelError;
|
|
1159
1159
|
const EmailCompleteDomainConnect504 = GatewayTimeoutError;
|
|
1160
|
-
const EmailEnableCatchAllPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1161
|
-
const EmailEnableCatchAllRequestJson = /* @__PURE__ */ Schema.Struct({ endpointId: Schema.optionalKey(Schema.Union([WebhookEndpointId, Schema.Null])) });
|
|
1162
|
-
const EmailEnableCatchAll201 = /* @__PURE__ */ Schema.Struct({ success: Schema.Literal(true) });
|
|
1160
|
+
const EmailEnableCatchAllPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1161
|
+
const EmailEnableCatchAllRequestJson = /* @__PURE__ */ (() => Schema.Struct({ endpointId: Schema.optionalKey(Schema.Union([WebhookEndpointId, Schema.Null])) }))();
|
|
1162
|
+
const EmailEnableCatchAll201 = /* @__PURE__ */ (() => Schema.Struct({ success: Schema.Literal(true) }))();
|
|
1163
1163
|
const EmailEnableCatchAll401 = UnauthorizedError;
|
|
1164
1164
|
const EmailEnableCatchAll403 = ForbiddenError;
|
|
1165
1165
|
const EmailEnableCatchAll404 = ResourceNotFoundError;
|
|
@@ -1167,24 +1167,24 @@ const EmailEnableCatchAll422 = ValidationError;
|
|
|
1167
1167
|
const EmailEnableCatchAll500 = InternalError;
|
|
1168
1168
|
const EmailEnableCatchAll502 = ExternalServiceError;
|
|
1169
1169
|
const EmailEnableCatchAll504 = GatewayTimeoutError;
|
|
1170
|
-
const EmailEnableReceivingPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1171
|
-
const EmailEnableReceivingRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1170
|
+
const EmailEnableReceivingPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1171
|
+
const EmailEnableReceivingRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1172
1172
|
domain: Schema.String,
|
|
1173
1173
|
catchAll: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1174
1174
|
endpointId: Schema.optionalKey(Schema.Union([WebhookEndpointId, Schema.Null])),
|
|
1175
1175
|
addresses: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null]))
|
|
1176
|
-
});
|
|
1177
|
-
const EmailEnableReceiving200 = /* @__PURE__ */ Schema.Struct({
|
|
1176
|
+
}))();
|
|
1177
|
+
const EmailEnableReceiving200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1178
1178
|
success: Schema.Literal(true),
|
|
1179
1179
|
recipients: Schema.Array(Schema.String)
|
|
1180
|
-
});
|
|
1180
|
+
}))();
|
|
1181
1181
|
const EmailEnableReceiving401 = UnauthorizedError;
|
|
1182
1182
|
const EmailEnableReceiving403 = ForbiddenError;
|
|
1183
1183
|
const EmailEnableReceiving404 = ResourceNotFoundError;
|
|
1184
1184
|
const EmailEnableReceiving422 = ValidationError;
|
|
1185
1185
|
const EmailEnableReceiving500 = InternalError;
|
|
1186
1186
|
const EmailEnableReceiving504 = GatewayTimeoutError;
|
|
1187
|
-
const EmailGetReceivingStatusPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1187
|
+
const EmailGetReceivingStatusPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1188
1188
|
const EmailGetReceivingStatus200 = ReceivingStatus;
|
|
1189
1189
|
const EmailGetReceivingStatus401 = UnauthorizedError;
|
|
1190
1190
|
const EmailGetReceivingStatus403 = ForbiddenError;
|
|
@@ -1192,22 +1192,22 @@ const EmailGetReceivingStatus404 = ResourceNotFoundError;
|
|
|
1192
1192
|
const EmailGetReceivingStatus422 = ValidationError;
|
|
1193
1193
|
const EmailGetReceivingStatus500 = InternalError;
|
|
1194
1194
|
const EmailGetReceivingStatus504 = GatewayTimeoutError;
|
|
1195
|
-
const EmailDetectRegistrarPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1196
|
-
const EmailDetectRegistrarRequestJson = /* @__PURE__ */ Schema.Struct({ domain: Schema.String });
|
|
1197
|
-
const EmailDetectRegistrar200 = /* @__PURE__ */ Schema.Struct({
|
|
1195
|
+
const EmailDetectRegistrarPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1196
|
+
const EmailDetectRegistrarRequestJson = /* @__PURE__ */ (() => Schema.Struct({ domain: Schema.String }))();
|
|
1197
|
+
const EmailDetectRegistrar200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1198
1198
|
provider: Schema.String,
|
|
1199
1199
|
name: Schema.String,
|
|
1200
1200
|
nameservers: Schema.Array(Schema.String),
|
|
1201
1201
|
docsUrl: Schema.String
|
|
1202
|
-
});
|
|
1202
|
+
}))();
|
|
1203
1203
|
const EmailDetectRegistrar401 = UnauthorizedError;
|
|
1204
1204
|
const EmailDetectRegistrar403 = ForbiddenError;
|
|
1205
1205
|
const EmailDetectRegistrar404 = ResourceNotFoundError;
|
|
1206
1206
|
const EmailDetectRegistrar422 = ValidationError;
|
|
1207
1207
|
const EmailDetectRegistrar500 = InternalError;
|
|
1208
1208
|
const EmailDetectRegistrar504 = GatewayTimeoutError;
|
|
1209
|
-
const EmailRotateDomainDkimPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1210
|
-
const EmailRotateDomainDkimHeaders = /* @__PURE__ */ Schema.Struct({ "idempotency-key": Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })) });
|
|
1209
|
+
const EmailRotateDomainDkimPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1210
|
+
const EmailRotateDomainDkimHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })) }))();
|
|
1211
1211
|
const EmailRotateDomainDkim200 = EmailDkimRotation;
|
|
1212
1212
|
const EmailRotateDomainDkim401 = UnauthorizedError;
|
|
1213
1213
|
const EmailRotateDomainDkim403 = ForbiddenError;
|
|
@@ -1217,7 +1217,7 @@ const EmailRotateDomainDkim422 = ValidationError;
|
|
|
1217
1217
|
const EmailRotateDomainDkim500 = InternalError;
|
|
1218
1218
|
const EmailRotateDomainDkim502 = EmailChannelError;
|
|
1219
1219
|
const EmailRotateDomainDkim504 = GatewayTimeoutError;
|
|
1220
|
-
const EmailGetDomainVerificationPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1220
|
+
const EmailGetDomainVerificationPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1221
1221
|
const EmailGetDomainVerification200 = EmailDomainVerification;
|
|
1222
1222
|
const EmailGetDomainVerification401 = UnauthorizedError;
|
|
1223
1223
|
const EmailGetDomainVerification403 = ForbiddenError;
|
|
@@ -1225,7 +1225,7 @@ const EmailGetDomainVerification404 = ResourceNotFoundError;
|
|
|
1225
1225
|
const EmailGetDomainVerification422 = ValidationError;
|
|
1226
1226
|
const EmailGetDomainVerification500 = InternalError;
|
|
1227
1227
|
const EmailGetDomainVerification504 = GatewayTimeoutError;
|
|
1228
|
-
const EmailAdvanceDomainVerificationPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1228
|
+
const EmailAdvanceDomainVerificationPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1229
1229
|
const EmailAdvanceDomainVerification200 = EmailDomainVerification;
|
|
1230
1230
|
const EmailAdvanceDomainVerification401 = UnauthorizedError;
|
|
1231
1231
|
const EmailAdvanceDomainVerification403 = ForbiddenError;
|
|
@@ -1236,7 +1236,7 @@ const EmailAdvanceDomainVerification429 = RateLimitedError;
|
|
|
1236
1236
|
const EmailAdvanceDomainVerification500 = InternalError;
|
|
1237
1237
|
const EmailAdvanceDomainVerification502 = EmailChannelError;
|
|
1238
1238
|
const EmailAdvanceDomainVerification504 = GatewayTimeoutError;
|
|
1239
|
-
const EmailGetDomainWarmingPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1239
|
+
const EmailGetDomainWarmingPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1240
1240
|
const EmailGetDomainWarming200 = DomainWarming;
|
|
1241
1241
|
const EmailGetDomainWarming401 = UnauthorizedError;
|
|
1242
1242
|
const EmailGetDomainWarming403 = ForbiddenError;
|
|
@@ -1244,8 +1244,8 @@ const EmailGetDomainWarming404 = ResourceNotFoundError;
|
|
|
1244
1244
|
const EmailGetDomainWarming422 = ValidationError;
|
|
1245
1245
|
const EmailGetDomainWarming500 = InternalError;
|
|
1246
1246
|
const EmailGetDomainWarming504 = GatewayTimeoutError;
|
|
1247
|
-
const EmailCreateDomainWarmingPlanPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1248
|
-
const EmailCreateDomainWarmingPlanRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1247
|
+
const EmailCreateDomainWarmingPlanPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1248
|
+
const EmailCreateDomainWarmingPlanRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1249
1249
|
identity: Schema.Union([
|
|
1250
1250
|
Schema.Literal("new"),
|
|
1251
1251
|
Schema.Literal("migrating"),
|
|
@@ -1254,7 +1254,7 @@ const EmailCreateDomainWarmingPlanRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
1254
1254
|
initialDailyRecipients: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(1e6).annotate({ expected: "a value less than or equal to 1000000" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
1255
1255
|
dailyGrowthPercent: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(1e4).annotate({ expected: "a value less than or equal to 10000" })),
|
|
1256
1256
|
targetDailyRecipients: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(1e6).annotate({ expected: "a value less than or equal to 1000000" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))
|
|
1257
|
-
});
|
|
1257
|
+
}))();
|
|
1258
1258
|
const EmailCreateDomainWarmingPlan201 = DomainWarming;
|
|
1259
1259
|
const EmailCreateDomainWarmingPlan401 = UnauthorizedError;
|
|
1260
1260
|
const EmailCreateDomainWarmingPlan403 = ForbiddenError;
|
|
@@ -1263,10 +1263,10 @@ const EmailCreateDomainWarmingPlan409 = ConflictError;
|
|
|
1263
1263
|
const EmailCreateDomainWarmingPlan422 = ValidationError;
|
|
1264
1264
|
const EmailCreateDomainWarmingPlan500 = InternalError;
|
|
1265
1265
|
const EmailCreateDomainWarmingPlan504 = GatewayTimeoutError;
|
|
1266
|
-
const EmailCancelDomainWarmingBatchPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1266
|
+
const EmailCancelDomainWarmingBatchPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1267
1267
|
id: EmailDomainId,
|
|
1268
1268
|
batchId: EmailDomainWarmingBatchId
|
|
1269
|
-
});
|
|
1269
|
+
}))();
|
|
1270
1270
|
const EmailCancelDomainWarmingBatch200 = DomainWarming;
|
|
1271
1271
|
const EmailCancelDomainWarmingBatch401 = UnauthorizedError;
|
|
1272
1272
|
const EmailCancelDomainWarmingBatch403 = ForbiddenError;
|
|
@@ -1275,8 +1275,8 @@ const EmailCancelDomainWarmingBatch409 = ConflictError;
|
|
|
1275
1275
|
const EmailCancelDomainWarmingBatch422 = ValidationError;
|
|
1276
1276
|
const EmailCancelDomainWarmingBatch500 = InternalError;
|
|
1277
1277
|
const EmailCancelDomainWarmingBatch504 = GatewayTimeoutError;
|
|
1278
|
-
const EmailCompleteDomainWarmingPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1279
|
-
const EmailCompleteDomainWarmingRequestJson = /* @__PURE__ */ Schema.Struct({ note: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(500).annotate({ expected: "a string with at most 500 code points" })).check(Schema.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })), Schema.Null])) });
|
|
1278
|
+
const EmailCompleteDomainWarmingPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1279
|
+
const EmailCompleteDomainWarmingRequestJson = /* @__PURE__ */ (() => Schema.Struct({ note: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(500).annotate({ expected: "a string with at most 500 code points" })).check(Schema.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })), Schema.Null])) }))();
|
|
1280
1280
|
const EmailCompleteDomainWarming200 = DomainWarming;
|
|
1281
1281
|
const EmailCompleteDomainWarming401 = UnauthorizedError;
|
|
1282
1282
|
const EmailCompleteDomainWarming403 = ForbiddenError;
|
|
@@ -1285,8 +1285,8 @@ const EmailCompleteDomainWarming409 = ConflictError;
|
|
|
1285
1285
|
const EmailCompleteDomainWarming422 = ValidationError;
|
|
1286
1286
|
const EmailCompleteDomainWarming500 = InternalError;
|
|
1287
1287
|
const EmailCompleteDomainWarming504 = GatewayTimeoutError;
|
|
1288
|
-
const EmailPauseDomainWarmingPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1289
|
-
const EmailPauseDomainWarmingRequestJson = /* @__PURE__ */ Schema.Struct({ note: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(500).annotate({ expected: "a string with at most 500 code points" })).check(Schema.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })), Schema.Null])) });
|
|
1288
|
+
const EmailPauseDomainWarmingPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1289
|
+
const EmailPauseDomainWarmingRequestJson = /* @__PURE__ */ (() => Schema.Struct({ note: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(500).annotate({ expected: "a string with at most 500 code points" })).check(Schema.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })), Schema.Null])) }))();
|
|
1290
1290
|
const EmailPauseDomainWarming200 = DomainWarming;
|
|
1291
1291
|
const EmailPauseDomainWarming401 = UnauthorizedError;
|
|
1292
1292
|
const EmailPauseDomainWarming403 = ForbiddenError;
|
|
@@ -1295,12 +1295,12 @@ const EmailPauseDomainWarming409 = ConflictError;
|
|
|
1295
1295
|
const EmailPauseDomainWarming422 = ValidationError;
|
|
1296
1296
|
const EmailPauseDomainWarming500 = InternalError;
|
|
1297
1297
|
const EmailPauseDomainWarming504 = GatewayTimeoutError;
|
|
1298
|
-
const EmailUpdateDomainWarmingPolicyPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1299
|
-
const EmailUpdateDomainWarmingPolicyRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1298
|
+
const EmailUpdateDomainWarmingPolicyPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1299
|
+
const EmailUpdateDomainWarmingPolicyRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1300
1300
|
dailyGrowthPercent: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(1e4).annotate({ expected: "a value less than or equal to 10000" })),
|
|
1301
1301
|
targetDailyRecipients: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(1e6).annotate({ expected: "a value less than or equal to 1000000" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
1302
1302
|
note: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(500).annotate({ expected: "a string with at most 500 code points" })).check(Schema.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })), Schema.Null]))
|
|
1303
|
-
});
|
|
1303
|
+
}))();
|
|
1304
1304
|
const EmailUpdateDomainWarmingPolicy200 = DomainWarming;
|
|
1305
1305
|
const EmailUpdateDomainWarmingPolicy401 = UnauthorizedError;
|
|
1306
1306
|
const EmailUpdateDomainWarmingPolicy403 = ForbiddenError;
|
|
@@ -1309,8 +1309,8 @@ const EmailUpdateDomainWarmingPolicy409 = ConflictError;
|
|
|
1309
1309
|
const EmailUpdateDomainWarmingPolicy422 = ValidationError;
|
|
1310
1310
|
const EmailUpdateDomainWarmingPolicy500 = InternalError;
|
|
1311
1311
|
const EmailUpdateDomainWarmingPolicy504 = GatewayTimeoutError;
|
|
1312
|
-
const EmailResumeDomainWarmingPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailDomainId });
|
|
1313
|
-
const EmailResumeDomainWarmingRequestJson = /* @__PURE__ */ Schema.Struct({ note: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(500).annotate({ expected: "a string with at most 500 code points" })).check(Schema.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })), Schema.Null])) });
|
|
1312
|
+
const EmailResumeDomainWarmingPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1313
|
+
const EmailResumeDomainWarmingRequestJson = /* @__PURE__ */ (() => Schema.Struct({ note: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(500).annotate({ expected: "a string with at most 500 code points" })).check(Schema.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })), Schema.Null])) }))();
|
|
1314
1314
|
const EmailResumeDomainWarming200 = DomainWarming;
|
|
1315
1315
|
const EmailResumeDomainWarming401 = UnauthorizedError;
|
|
1316
1316
|
const EmailResumeDomainWarming403 = ForbiddenError;
|
|
@@ -1319,17 +1319,17 @@ const EmailResumeDomainWarming409 = ConflictError;
|
|
|
1319
1319
|
const EmailResumeDomainWarming422 = ValidationError;
|
|
1320
1320
|
const EmailResumeDomainWarming500 = InternalError;
|
|
1321
1321
|
const EmailResumeDomainWarming504 = GatewayTimeoutError;
|
|
1322
|
-
const EmailListForwardingRulesQuery = /* @__PURE__ */ Schema.Struct({
|
|
1322
|
+
const EmailListForwardingRulesQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1323
1323
|
domainId: Schema.optionalKey(Schema.Union([EmailDomainId, Schema.Null])),
|
|
1324
1324
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
1325
|
-
});
|
|
1325
|
+
}))();
|
|
1326
1326
|
const EmailListForwardingRules200 = ForwardingRuleList;
|
|
1327
1327
|
const EmailListForwardingRules401 = UnauthorizedError;
|
|
1328
1328
|
const EmailListForwardingRules403 = ForbiddenError;
|
|
1329
1329
|
const EmailListForwardingRules422 = ValidationError;
|
|
1330
1330
|
const EmailListForwardingRules500 = InternalError;
|
|
1331
1331
|
const EmailListForwardingRules504 = GatewayTimeoutError;
|
|
1332
|
-
const EmailCreateForwardingRuleRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1332
|
+
const EmailCreateForwardingRuleRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1333
1333
|
name: Schema.String,
|
|
1334
1334
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1335
1335
|
domainId: Schema.optionalKey(Schema.Union([EmailDomainId, Schema.Null])),
|
|
@@ -1341,15 +1341,15 @@ const EmailCreateForwardingRuleRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
1341
1341
|
priority: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(2147483647).annotate({ expected: "a value less than or equal to 2147483647" })), Schema.Null])),
|
|
1342
1342
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1343
1343
|
metadata: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null]), Schema.Null]))
|
|
1344
|
-
});
|
|
1345
|
-
const EmailCreateForwardingRule201 = /* @__PURE__ */ Schema.Struct({
|
|
1344
|
+
}))();
|
|
1345
|
+
const EmailCreateForwardingRule201 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1346
1346
|
id: EmailForwardingRuleId,
|
|
1347
1347
|
name: Schema.String,
|
|
1348
1348
|
forwardTo: Schema.Array(Schema.String),
|
|
1349
1349
|
priority: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(2147483647).annotate({ expected: "a value less than or equal to 2147483647" })),
|
|
1350
1350
|
isActive: Schema.Boolean,
|
|
1351
1351
|
createdAt: Schema.String
|
|
1352
|
-
});
|
|
1352
|
+
}))();
|
|
1353
1353
|
const EmailCreateForwardingRule401 = UnauthorizedError;
|
|
1354
1354
|
const EmailCreateForwardingRule403 = ForbiddenError;
|
|
1355
1355
|
const EmailCreateForwardingRule404 = ResourceNotFoundError;
|
|
@@ -1357,7 +1357,7 @@ const EmailCreateForwardingRule409 = ConflictError;
|
|
|
1357
1357
|
const EmailCreateForwardingRule422 = ValidationError;
|
|
1358
1358
|
const EmailCreateForwardingRule500 = InternalError;
|
|
1359
1359
|
const EmailCreateForwardingRule504 = GatewayTimeoutError;
|
|
1360
|
-
const EmailDeleteForwardingRulePathParams = /* @__PURE__ */ Schema.Struct({ id: EmailForwardingRuleId });
|
|
1360
|
+
const EmailDeleteForwardingRulePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailForwardingRuleId }))();
|
|
1361
1361
|
const EmailDeleteForwardingRule200 = SuccessResult;
|
|
1362
1362
|
const EmailDeleteForwardingRule401 = UnauthorizedError;
|
|
1363
1363
|
const EmailDeleteForwardingRule403 = ForbiddenError;
|
|
@@ -1365,8 +1365,8 @@ const EmailDeleteForwardingRule404 = ResourceNotFoundError;
|
|
|
1365
1365
|
const EmailDeleteForwardingRule422 = ValidationError;
|
|
1366
1366
|
const EmailDeleteForwardingRule500 = InternalError;
|
|
1367
1367
|
const EmailDeleteForwardingRule504 = GatewayTimeoutError;
|
|
1368
|
-
const EmailUpdateForwardingRulePathParams = /* @__PURE__ */ Schema.Struct({ id: EmailForwardingRuleId });
|
|
1369
|
-
const EmailUpdateForwardingRuleRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1368
|
+
const EmailUpdateForwardingRulePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailForwardingRuleId }))();
|
|
1369
|
+
const EmailUpdateForwardingRuleRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1370
1370
|
name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1371
1371
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1372
1372
|
domainId: Schema.optionalKey(Schema.Union([EmailDomainId, Schema.Null])),
|
|
@@ -1378,22 +1378,22 @@ const EmailUpdateForwardingRuleRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
1378
1378
|
priority: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(2147483647).annotate({ expected: "a value less than or equal to 2147483647" })), Schema.Null])),
|
|
1379
1379
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1380
1380
|
metadata: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null]), Schema.Null]))
|
|
1381
|
-
});
|
|
1382
|
-
const EmailUpdateForwardingRule200 = /* @__PURE__ */ Schema.Struct({
|
|
1381
|
+
}))();
|
|
1382
|
+
const EmailUpdateForwardingRule200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1383
1383
|
id: EmailForwardingRuleId,
|
|
1384
1384
|
name: Schema.String,
|
|
1385
1385
|
forwardTo: Schema.Array(Schema.String),
|
|
1386
1386
|
priority: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(2147483647).annotate({ expected: "a value less than or equal to 2147483647" })),
|
|
1387
1387
|
isActive: Schema.Boolean,
|
|
1388
1388
|
updatedAt: Schema.String
|
|
1389
|
-
});
|
|
1389
|
+
}))();
|
|
1390
1390
|
const EmailUpdateForwardingRule401 = UnauthorizedError;
|
|
1391
1391
|
const EmailUpdateForwardingRule403 = ForbiddenError;
|
|
1392
1392
|
const EmailUpdateForwardingRule404 = ResourceNotFoundError;
|
|
1393
1393
|
const EmailUpdateForwardingRule422 = ValidationError;
|
|
1394
1394
|
const EmailUpdateForwardingRule500 = InternalError;
|
|
1395
1395
|
const EmailUpdateForwardingRule504 = GatewayTimeoutError;
|
|
1396
|
-
const EmailGetForwardingLogQuery = /* @__PURE__ */ Schema.Struct({
|
|
1396
|
+
const EmailGetForwardingLogQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1397
1397
|
forwardingRuleId: Schema.optionalKey(Schema.Union([EmailForwardingRuleId, Schema.Null])),
|
|
1398
1398
|
status: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
1399
1399
|
Schema.Literal("pending"),
|
|
@@ -1404,7 +1404,7 @@ const EmailGetForwardingLogQuery = /* @__PURE__ */ Schema.Struct({
|
|
|
1404
1404
|
before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1405
1405
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
1406
1406
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
1407
|
-
});
|
|
1407
|
+
}))();
|
|
1408
1408
|
const EmailGetForwardingLog200 = ForwardingLogPage;
|
|
1409
1409
|
const EmailGetForwardingLog401 = UnauthorizedError;
|
|
1410
1410
|
const EmailGetForwardingLog403 = ForbiddenError;
|
|
@@ -1417,7 +1417,7 @@ const EmailGetOnboardingReview403 = ForbiddenError;
|
|
|
1417
1417
|
const EmailGetOnboardingReview422 = ValidationError;
|
|
1418
1418
|
const EmailGetOnboardingReview500 = InternalError;
|
|
1419
1419
|
const EmailGetOnboardingReview504 = GatewayTimeoutError;
|
|
1420
|
-
const EmailReapplyOnboardingReviewRequestJson = /* @__PURE__ */ Schema.Struct({ expectedGeneration: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })) });
|
|
1420
|
+
const EmailReapplyOnboardingReviewRequestJson = /* @__PURE__ */ (() => Schema.Struct({ expectedGeneration: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })) }))();
|
|
1421
1421
|
const EmailReapplyOnboardingReview200 = OnboardingReviewStatus;
|
|
1422
1422
|
const EmailReapplyOnboardingReview401 = UnauthorizedError;
|
|
1423
1423
|
const EmailReapplyOnboardingReview403 = ForbiddenError;
|
|
@@ -1425,11 +1425,11 @@ const EmailReapplyOnboardingReview409 = ConflictError;
|
|
|
1425
1425
|
const EmailReapplyOnboardingReview422 = ValidationError;
|
|
1426
1426
|
const EmailReapplyOnboardingReview500 = InternalError;
|
|
1427
1427
|
const EmailReapplyOnboardingReview504 = GatewayTimeoutError;
|
|
1428
|
-
const EmailRespondToOnboardingInformationRequestRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1428
|
+
const EmailRespondToOnboardingInformationRequestRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1429
1429
|
expectedGeneration: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
1430
1430
|
responseText: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(4e3).annotate({ expected: "a string with at most 4000 code points" })).check(Schema.isMaxLength(4e3).annotate({ expected: "a value with a length of at most 4000" })),
|
|
1431
1431
|
evidenceMediaIds: Schema.Array(MediaId).check(Schema.isMaxLength(3).annotate({ expected: "a value with a length of at most 3" }))
|
|
1432
|
-
});
|
|
1432
|
+
}))();
|
|
1433
1433
|
const EmailRespondToOnboardingInformationRequest200 = OnboardingReviewStatus;
|
|
1434
1434
|
const EmailRespondToOnboardingInformationRequest401 = UnauthorizedError;
|
|
1435
1435
|
const EmailRespondToOnboardingInformationRequest403 = ForbiddenError;
|
|
@@ -1437,7 +1437,7 @@ const EmailRespondToOnboardingInformationRequest409 = ConflictError;
|
|
|
1437
1437
|
const EmailRespondToOnboardingInformationRequest422 = ValidationError;
|
|
1438
1438
|
const EmailRespondToOnboardingInformationRequest500 = InternalError;
|
|
1439
1439
|
const EmailRespondToOnboardingInformationRequest504 = GatewayTimeoutError;
|
|
1440
|
-
const EmailListSendersQuery = /* @__PURE__ */ Schema.Struct({
|
|
1440
|
+
const EmailListSendersQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1441
1441
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
1442
1442
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
|
|
1443
1443
|
verificationStatus: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
@@ -1448,22 +1448,22 @@ const EmailListSendersQuery = /* @__PURE__ */ Schema.Struct({
|
|
|
1448
1448
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1449
1449
|
isDefault: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1450
1450
|
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]))
|
|
1451
|
-
});
|
|
1451
|
+
}))();
|
|
1452
1452
|
const EmailListSenders200 = EmailSenderPage;
|
|
1453
1453
|
const EmailListSenders401 = UnauthorizedError;
|
|
1454
1454
|
const EmailListSenders403 = ForbiddenError;
|
|
1455
1455
|
const EmailListSenders422 = ValidationError;
|
|
1456
1456
|
const EmailListSenders500 = InternalError;
|
|
1457
1457
|
const EmailListSenders504 = GatewayTimeoutError;
|
|
1458
|
-
const EmailAddSenderHeaders = /* @__PURE__ */ Schema.Struct({ "idempotency-key": Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })) });
|
|
1459
|
-
const EmailAddSenderRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1458
|
+
const EmailAddSenderHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })) }))();
|
|
1459
|
+
const EmailAddSenderRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1460
1460
|
email: Schema.String,
|
|
1461
1461
|
domainId: Schema.optionalKey(Schema.Union([EmailDomainId, Schema.Null])),
|
|
1462
1462
|
name: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
1463
1463
|
replyToEmails: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(Schema.String), Schema.Null]), Schema.Null])),
|
|
1464
1464
|
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]))
|
|
1465
|
-
});
|
|
1466
|
-
const EmailAddSender201 = /* @__PURE__ */ Schema.Struct({
|
|
1465
|
+
}))();
|
|
1466
|
+
const EmailAddSender201 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1467
1467
|
id: EmailSenderId,
|
|
1468
1468
|
email: Schema.String,
|
|
1469
1469
|
status: Schema.Union([
|
|
@@ -1479,7 +1479,7 @@ const EmailAddSender201 = /* @__PURE__ */ Schema.Struct({
|
|
|
1479
1479
|
]),
|
|
1480
1480
|
providerFailureCode: Schema.Union([Schema.String, Schema.Null]),
|
|
1481
1481
|
createdAt: Schema.String
|
|
1482
|
-
});
|
|
1482
|
+
}))();
|
|
1483
1483
|
const EmailAddSender401 = UnauthorizedError;
|
|
1484
1484
|
const EmailAddSender403 = ForbiddenError;
|
|
1485
1485
|
const EmailAddSender404 = ResourceNotFoundError;
|
|
@@ -1488,8 +1488,8 @@ const EmailAddSender422 = ValidationError;
|
|
|
1488
1488
|
const EmailAddSender500 = InternalError;
|
|
1489
1489
|
const EmailAddSender502 = ExternalServiceError;
|
|
1490
1490
|
const EmailAddSender504 = GatewayTimeoutError;
|
|
1491
|
-
const EmailGetSenderPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailSenderId });
|
|
1492
|
-
const EmailGetSender200 = /* @__PURE__ */ Schema.Struct({
|
|
1491
|
+
const EmailGetSenderPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailSenderId }))();
|
|
1492
|
+
const EmailGetSender200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1493
1493
|
id: EmailSenderId,
|
|
1494
1494
|
organizationId: Schema.String,
|
|
1495
1495
|
email: Schema.String,
|
|
@@ -1517,14 +1517,14 @@ const EmailGetSender200 = /* @__PURE__ */ Schema.Struct({
|
|
|
1517
1517
|
isActive: Schema.Boolean,
|
|
1518
1518
|
createdAt: Schema.String,
|
|
1519
1519
|
updatedAt: Schema.String
|
|
1520
|
-
});
|
|
1520
|
+
}))();
|
|
1521
1521
|
const EmailGetSender401 = UnauthorizedError;
|
|
1522
1522
|
const EmailGetSender403 = ForbiddenError;
|
|
1523
1523
|
const EmailGetSender404 = ResourceNotFoundError;
|
|
1524
1524
|
const EmailGetSender422 = ValidationError;
|
|
1525
1525
|
const EmailGetSender500 = InternalError;
|
|
1526
1526
|
const EmailGetSender504 = GatewayTimeoutError;
|
|
1527
|
-
const EmailRemoveSenderPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailSenderId });
|
|
1527
|
+
const EmailRemoveSenderPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailSenderId }))();
|
|
1528
1528
|
const EmailRemoveSender200 = SuccessResult;
|
|
1529
1529
|
const EmailRemoveSender401 = UnauthorizedError;
|
|
1530
1530
|
const EmailRemoveSender403 = ForbiddenError;
|
|
@@ -1532,7 +1532,7 @@ const EmailRemoveSender404 = ResourceNotFoundError;
|
|
|
1532
1532
|
const EmailRemoveSender422 = ValidationError;
|
|
1533
1533
|
const EmailRemoveSender500 = InternalError;
|
|
1534
1534
|
const EmailRemoveSender504 = GatewayTimeoutError;
|
|
1535
|
-
const EmailSetDefaultSenderPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailSenderId });
|
|
1535
|
+
const EmailSetDefaultSenderPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailSenderId }))();
|
|
1536
1536
|
const EmailSetDefaultSender200 = SuccessResult;
|
|
1537
1537
|
const EmailSetDefaultSender401 = UnauthorizedError;
|
|
1538
1538
|
const EmailSetDefaultSender403 = ForbiddenError;
|
|
@@ -1540,8 +1540,8 @@ const EmailSetDefaultSender404 = ResourceNotFoundError;
|
|
|
1540
1540
|
const EmailSetDefaultSender422 = ValidationError;
|
|
1541
1541
|
const EmailSetDefaultSender500 = InternalError;
|
|
1542
1542
|
const EmailSetDefaultSender504 = GatewayTimeoutError;
|
|
1543
|
-
const EmailCheckSenderVerificationPathParams = /* @__PURE__ */ Schema.Struct({ id: EmailSenderId });
|
|
1544
|
-
const EmailCheckSenderVerification200 = /* @__PURE__ */ Schema.Struct({
|
|
1543
|
+
const EmailCheckSenderVerificationPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailSenderId }))();
|
|
1544
|
+
const EmailCheckSenderVerification200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1545
1545
|
id: EmailSenderId,
|
|
1546
1546
|
email: Schema.String,
|
|
1547
1547
|
status: Schema.Union([
|
|
@@ -1550,7 +1550,7 @@ const EmailCheckSenderVerification200 = /* @__PURE__ */ Schema.Struct({
|
|
|
1550
1550
|
Schema.Literal("failed")
|
|
1551
1551
|
]),
|
|
1552
1552
|
verifiedAt: Schema.Union([Schema.String, Schema.Null])
|
|
1553
|
-
});
|
|
1553
|
+
}))();
|
|
1554
1554
|
const EmailCheckSenderVerification401 = UnauthorizedError;
|
|
1555
1555
|
const EmailCheckSenderVerification403 = ForbiddenError;
|
|
1556
1556
|
const EmailCheckSenderVerification404 = ResourceNotFoundError;
|
|
@@ -1558,11 +1558,11 @@ const EmailCheckSenderVerification422 = ValidationError;
|
|
|
1558
1558
|
const EmailCheckSenderVerification500 = InternalError;
|
|
1559
1559
|
const EmailCheckSenderVerification502 = ExternalServiceError;
|
|
1560
1560
|
const EmailCheckSenderVerification504 = GatewayTimeoutError;
|
|
1561
|
-
const EmailGetStatsQuery = /* @__PURE__ */ Schema.Struct({
|
|
1561
|
+
const EmailGetStatsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1562
1562
|
after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1563
1563
|
before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
1564
|
-
});
|
|
1565
|
-
const EmailGetStats200 = /* @__PURE__ */ Schema.Struct({
|
|
1564
|
+
}))();
|
|
1565
|
+
const EmailGetStats200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1566
1566
|
totalSent: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
1567
1567
|
totalDelivered: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
1568
1568
|
totalBounced: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
@@ -1570,13 +1570,13 @@ const EmailGetStats200 = /* @__PURE__ */ Schema.Struct({
|
|
|
1570
1570
|
deliveryRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
1571
1571
|
bounceRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
1572
1572
|
complaintRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
1573
|
-
});
|
|
1573
|
+
}))();
|
|
1574
1574
|
const EmailGetStats401 = UnauthorizedError;
|
|
1575
1575
|
const EmailGetStats403 = ForbiddenError;
|
|
1576
1576
|
const EmailGetStats422 = ValidationError;
|
|
1577
1577
|
const EmailGetStats500 = InternalError;
|
|
1578
1578
|
const EmailGetStats504 = GatewayTimeoutError;
|
|
1579
|
-
const EmailListSuppressionsQuery = /* @__PURE__ */ Schema.Struct({
|
|
1579
|
+
const EmailListSuppressionsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1580
1580
|
type: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
1581
1581
|
Schema.Literal("bounce"),
|
|
1582
1582
|
Schema.Literal("complaint"),
|
|
@@ -1587,14 +1587,14 @@ const EmailListSuppressionsQuery = /* @__PURE__ */ Schema.Struct({
|
|
|
1587
1587
|
search: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" })), Schema.Null])),
|
|
1588
1588
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
1589
1589
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
1590
|
-
});
|
|
1590
|
+
}))();
|
|
1591
1591
|
const EmailListSuppressions200 = SuppressionPage;
|
|
1592
1592
|
const EmailListSuppressions401 = UnauthorizedError;
|
|
1593
1593
|
const EmailListSuppressions403 = ForbiddenError;
|
|
1594
1594
|
const EmailListSuppressions422 = ValidationError;
|
|
1595
1595
|
const EmailListSuppressions500 = InternalError;
|
|
1596
1596
|
const EmailListSuppressions504 = GatewayTimeoutError;
|
|
1597
|
-
const EmailRemoveSuppressionPathParams = /* @__PURE__ */ Schema.Struct({ id: SuppressionId });
|
|
1597
|
+
const EmailRemoveSuppressionPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: SuppressionId }))();
|
|
1598
1598
|
const EmailRemoveSuppression200 = SuccessResult;
|
|
1599
1599
|
const EmailRemoveSuppression401 = UnauthorizedError;
|
|
1600
1600
|
const EmailRemoveSuppression403 = ForbiddenError;
|
|
@@ -1616,10 +1616,10 @@ const EmailGetTrackingDefaults404 = ResourceNotFoundError;
|
|
|
1616
1616
|
const EmailGetTrackingDefaults422 = ValidationError;
|
|
1617
1617
|
const EmailGetTrackingDefaults500 = InternalError;
|
|
1618
1618
|
const EmailGetTrackingDefaults504 = GatewayTimeoutError;
|
|
1619
|
-
const EmailUpdateTrackingDefaultsRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1619
|
+
const EmailUpdateTrackingDefaultsRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1620
1620
|
opens: Schema.optionalKey(Schema.Boolean),
|
|
1621
1621
|
clicks: Schema.optionalKey(Schema.Boolean)
|
|
1622
|
-
});
|
|
1622
|
+
}))();
|
|
1623
1623
|
const EmailUpdateTrackingDefaults200 = EmailTrackingDefaults;
|
|
1624
1624
|
const EmailUpdateTrackingDefaults401 = UnauthorizedError;
|
|
1625
1625
|
const EmailUpdateTrackingDefaults403 = ForbiddenError;
|
|
@@ -1627,17 +1627,17 @@ const EmailUpdateTrackingDefaults404 = ResourceNotFoundError;
|
|
|
1627
1627
|
const EmailUpdateTrackingDefaults422 = ValidationError;
|
|
1628
1628
|
const EmailUpdateTrackingDefaults500 = InternalError;
|
|
1629
1629
|
const EmailUpdateTrackingDefaults504 = GatewayTimeoutError;
|
|
1630
|
-
const EmailGetRecipientTrackingPreferenceQuery = /* @__PURE__ */ Schema.Struct({ email: TrackingRecipientEmail });
|
|
1630
|
+
const EmailGetRecipientTrackingPreferenceQuery = /* @__PURE__ */ (() => Schema.Struct({ email: TrackingRecipientEmail }))();
|
|
1631
1631
|
const EmailGetRecipientTrackingPreference200 = EmailRecipientTrackingPreference;
|
|
1632
1632
|
const EmailGetRecipientTrackingPreference401 = UnauthorizedError;
|
|
1633
1633
|
const EmailGetRecipientTrackingPreference403 = ForbiddenError;
|
|
1634
1634
|
const EmailGetRecipientTrackingPreference422 = ValidationError;
|
|
1635
1635
|
const EmailGetRecipientTrackingPreference500 = InternalError;
|
|
1636
1636
|
const EmailGetRecipientTrackingPreference504 = GatewayTimeoutError;
|
|
1637
|
-
const EmailUpdateRecipientTrackingPreferenceRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1637
|
+
const EmailUpdateRecipientTrackingPreferenceRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1638
1638
|
email: TrackingRecipientEmail,
|
|
1639
1639
|
optedOut: Schema.Boolean
|
|
1640
|
-
});
|
|
1640
|
+
}))();
|
|
1641
1641
|
const EmailUpdateRecipientTrackingPreference200 = EmailRecipientTrackingPreference;
|
|
1642
1642
|
const EmailUpdateRecipientTrackingPreference401 = UnauthorizedError;
|
|
1643
1643
|
const EmailUpdateRecipientTrackingPreference403 = ForbiddenError;
|