samva 0.22.1 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/sdk.gen.d.ts +64 -57
- package/dist/client/sdk.gen.js +21 -2
- package/dist/client/types.gen.d.ts +203 -49
- package/dist/effect/generated/analytics.js +8 -8
- package/dist/effect/generated/api-keys.js +4 -4
- package/dist/effect/generated/attachments.js +3 -3
- package/dist/effect/generated/contact-groups.js +11 -11
- package/dist/effect/generated/contacts.js +16 -16
- package/dist/effect/generated/conversations.js +6 -6
- package/dist/effect/generated/custom-fields.js +5 -5
- package/dist/effect/generated/email.js +32 -32
- package/dist/effect/generated/events.js +4 -4
- package/dist/effect/generated/extension-installations.js +4 -4
- package/dist/effect/generated/extensions.js +1 -1
- package/dist/effect/generated/journeys.js +12 -12
- package/dist/effect/generated/mailboxes.js +10 -10
- package/dist/effect/generated/messages.js +4 -4
- package/dist/effect/generated/organizations.d.ts +116 -9
- package/dist/effect/generated/organizations.js +31 -6
- package/dist/effect/generated/shared.js +1 -1
- package/dist/effect/generated/templates.d.ts +37 -72
- package/dist/effect/generated/templates.js +121 -122
- package/dist/effect/generated/unsubscribe-groups.js +7 -7
- package/dist/effect/generated/webhooks.js +17 -17
- package/dist/effect/generated-metadata.d.ts +5 -0
- package/dist/effect/generated-metadata.js +1 -0
- package/dist/effect/organizations.d.ts +2 -0
- package/dist/effect/organizations.js +3 -1
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +4 -0
- package/dist/service-map.js +1 -0
- package/package.json +4 -4
|
@@ -8,13 +8,13 @@ const AnalyticsGetChannelStatsQuery = /* @__PURE__ */ Schema.Struct({
|
|
|
8
8
|
before: Schema.optionalKey(Schema.Union([AbsoluteInstant, Schema.Null]))
|
|
9
9
|
});
|
|
10
10
|
const AnalyticsGetChannelStats200 = /* @__PURE__ */ Schema.Struct({ email: Schema.Struct({
|
|
11
|
-
sent: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
11
|
+
sent: 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" })),
|
|
12
12
|
deliveryRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
13
|
-
uniqueOpenedMessages: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
14
|
-
openTrackingEligibleDeliveredMessages: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
13
|
+
uniqueOpenedMessages: 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" })),
|
|
14
|
+
openTrackingEligibleDeliveredMessages: 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" })),
|
|
15
15
|
uniqueMessageOpenRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
16
|
-
uniqueClickedMessages: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
17
|
-
clickTrackingEligibleDeliveredMessages: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
16
|
+
uniqueClickedMessages: 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" })),
|
|
17
|
+
clickTrackingEligibleDeliveredMessages: 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" })),
|
|
18
18
|
uniqueMessageClickRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
19
19
|
bounceRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
20
20
|
}) });
|
|
@@ -64,7 +64,7 @@ const AnalyticsGetHourlyDistributionQuery = /* @__PURE__ */ Schema.Struct({
|
|
|
64
64
|
});
|
|
65
65
|
const AnalyticsGetHourlyDistribution200 = /* @__PURE__ */ Schema.Array(Schema.Struct({
|
|
66
66
|
hour: Schema.String,
|
|
67
|
-
count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
67
|
+
count: 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" }))
|
|
68
68
|
}));
|
|
69
69
|
const AnalyticsGetHourlyDistribution400 = AnalyticsQueryError;
|
|
70
70
|
const AnalyticsGetHourlyDistribution401 = UnauthorizedError;
|
|
@@ -84,7 +84,7 @@ const AnalyticsGetStatsQuery = /* @__PURE__ */ Schema.Struct({
|
|
|
84
84
|
});
|
|
85
85
|
const AnalyticsGetStats200 = /* @__PURE__ */ Schema.Struct({ volumeHistory: Schema.Array(Schema.Struct({
|
|
86
86
|
date: Schema.String,
|
|
87
|
-
email: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
87
|
+
email: 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" }))
|
|
88
88
|
})) });
|
|
89
89
|
const AnalyticsGetStats400 = AnalyticsQueryError;
|
|
90
90
|
const AnalyticsGetStats401 = UnauthorizedError;
|
|
@@ -107,7 +107,7 @@ const AnalyticsGetTopContacts200 = /* @__PURE__ */ Schema.Array(Schema.Struct({
|
|
|
107
107
|
name: Schema.Union([Schema.String, Schema.Null]),
|
|
108
108
|
email: Schema.Union([Schema.String, Schema.Null]),
|
|
109
109
|
phone: Schema.Union([Schema.String, Schema.Null]),
|
|
110
|
-
messageCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
110
|
+
messageCount: 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" }))
|
|
111
111
|
}));
|
|
112
112
|
const AnalyticsGetTopContacts400 = AnalyticsQueryError;
|
|
113
113
|
const AnalyticsGetTopContacts401 = UnauthorizedError;
|
|
@@ -136,12 +136,12 @@ const ApiKeysGetStatsQuery = /* @__PURE__ */ Schema.Struct({
|
|
|
136
136
|
before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
137
137
|
});
|
|
138
138
|
const ApiKeysGetStats200 = /* @__PURE__ */ Schema.Struct({
|
|
139
|
-
totalRequests: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
140
|
-
successfulRequests: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
141
|
-
failedRequests: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
139
|
+
totalRequests: 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" })),
|
|
140
|
+
successfulRequests: 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" })),
|
|
141
|
+
failedRequests: 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" })),
|
|
142
142
|
dailyVolume: Schema.Array(Schema.Struct({
|
|
143
143
|
date: Schema.String,
|
|
144
|
-
requests: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
144
|
+
requests: 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" }))
|
|
145
145
|
}))
|
|
146
146
|
});
|
|
147
147
|
const ApiKeysGetStats401 = UnauthorizedError;
|
|
@@ -8,7 +8,7 @@ const AttachmentList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(Schem
|
|
|
8
8
|
organizationId: OrganizationId,
|
|
9
9
|
filename: Schema.String,
|
|
10
10
|
contentType: Schema.String,
|
|
11
|
-
size: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
11
|
+
size: 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" })),
|
|
12
12
|
contentId: Schema.Union([Schema.String, Schema.Null]),
|
|
13
13
|
isInline: Schema.Boolean,
|
|
14
14
|
createdAt: Schema.String
|
|
@@ -28,7 +28,7 @@ const AttachmentsGetById200 = /* @__PURE__ */ Schema.Struct({
|
|
|
28
28
|
organizationId: OrganizationId,
|
|
29
29
|
filename: Schema.String,
|
|
30
30
|
contentType: Schema.String,
|
|
31
|
-
size: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
31
|
+
size: 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" })),
|
|
32
32
|
contentId: Schema.Union([Schema.String, Schema.Null]),
|
|
33
33
|
isInline: Schema.Boolean,
|
|
34
34
|
createdAt: Schema.String
|
|
@@ -61,7 +61,7 @@ const AttachmentsDownloadUrl200 = /* @__PURE__ */ Schema.Struct({
|
|
|
61
61
|
organizationId: OrganizationId,
|
|
62
62
|
filename: Schema.String,
|
|
63
63
|
contentType: Schema.String,
|
|
64
|
-
size: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
64
|
+
size: 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" })),
|
|
65
65
|
contentId: Schema.Union([Schema.String, Schema.Null]),
|
|
66
66
|
isInline: Schema.Boolean,
|
|
67
67
|
createdAt: Schema.String
|
|
@@ -24,7 +24,7 @@ const ContactGroupPage = /* @__PURE__ */ Schema.Struct({
|
|
|
24
24
|
]), Schema.Null]).annotate({ description: "The list's label color, one of six families, or null for the neutral chip. Customer-chosen and purely presentational; it carries no meaning the API enforces." }),
|
|
25
25
|
icon: Schema.Union([Schema.String, Schema.Null]),
|
|
26
26
|
parentGroupId: Schema.Union([ContactGroupId, Schema.Null]),
|
|
27
|
-
contactCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
27
|
+
contactCount: 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" })),
|
|
28
28
|
lastCalculatedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
29
29
|
isActive: Schema.Boolean,
|
|
30
30
|
createdAt: Schema.String,
|
|
@@ -118,7 +118,7 @@ const ContactGroupsCreate201 = /* @__PURE__ */ Schema.Struct({
|
|
|
118
118
|
]), Schema.Null]).annotate({ description: "The list's label color, one of six families, or null for the neutral chip. Customer-chosen and purely presentational; it carries no meaning the API enforces." }),
|
|
119
119
|
icon: Schema.Union([Schema.String, Schema.Null]),
|
|
120
120
|
parentGroupId: Schema.Union([ContactGroupId, Schema.Null]),
|
|
121
|
-
contactCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
121
|
+
contactCount: 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" })),
|
|
122
122
|
lastCalculatedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
123
123
|
isActive: Schema.Boolean,
|
|
124
124
|
createdAt: Schema.String,
|
|
@@ -151,7 +151,7 @@ const ContactGroupsGetById200 = /* @__PURE__ */ Schema.Struct({
|
|
|
151
151
|
]), Schema.Null]).annotate({ description: "The list's label color, one of six families, or null for the neutral chip. Customer-chosen and purely presentational; it carries no meaning the API enforces." }),
|
|
152
152
|
icon: Schema.Union([Schema.String, Schema.Null]),
|
|
153
153
|
parentGroupId: Schema.Union([ContactGroupId, Schema.Null]),
|
|
154
|
-
contactCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
154
|
+
contactCount: 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" })),
|
|
155
155
|
lastCalculatedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
156
156
|
isActive: Schema.Boolean,
|
|
157
157
|
createdAt: Schema.String,
|
|
@@ -214,7 +214,7 @@ const ContactGroupsUpdate200 = /* @__PURE__ */ Schema.Struct({
|
|
|
214
214
|
]), Schema.Null]).annotate({ description: "The list's label color, one of six families, or null for the neutral chip. Customer-chosen and purely presentational; it carries no meaning the API enforces." }),
|
|
215
215
|
icon: Schema.Union([Schema.String, Schema.Null]),
|
|
216
216
|
parentGroupId: Schema.Union([ContactGroupId, Schema.Null]),
|
|
217
|
-
contactCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
217
|
+
contactCount: 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" })),
|
|
218
218
|
lastCalculatedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
219
219
|
isActive: Schema.Boolean,
|
|
220
220
|
createdAt: Schema.String,
|
|
@@ -228,9 +228,9 @@ const ContactGroupsUpdate500 = InternalError;
|
|
|
228
228
|
const ContactGroupsUpdate504 = GatewayTimeoutError;
|
|
229
229
|
const ContactGroupsEvaluateDynamicPathParams = /* @__PURE__ */ Schema.Struct({ id: ContactGroupId });
|
|
230
230
|
const ContactGroupsEvaluateDynamic200 = /* @__PURE__ */ Schema.Struct({
|
|
231
|
-
added: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
232
|
-
removed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
233
|
-
total: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
231
|
+
added: 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" })),
|
|
232
|
+
removed: 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" })),
|
|
233
|
+
total: 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" }))
|
|
234
234
|
});
|
|
235
235
|
const ContactGroupsEvaluateDynamic401 = UnauthorizedError;
|
|
236
236
|
const ContactGroupsEvaluateDynamic403 = ForbiddenError;
|
|
@@ -260,8 +260,8 @@ const ContactGroupsAddMembersRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
260
260
|
]), Schema.Null]))
|
|
261
261
|
});
|
|
262
262
|
const ContactGroupsAddMembers200 = /* @__PURE__ */ Schema.Struct({
|
|
263
|
-
added: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
264
|
-
skipped: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
263
|
+
added: 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" })),
|
|
264
|
+
skipped: 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" }))
|
|
265
265
|
});
|
|
266
266
|
const ContactGroupsAddMembers401 = UnauthorizedError;
|
|
267
267
|
const ContactGroupsAddMembers403 = ForbiddenError;
|
|
@@ -271,7 +271,7 @@ const ContactGroupsAddMembers500 = InternalError;
|
|
|
271
271
|
const ContactGroupsAddMembers504 = GatewayTimeoutError;
|
|
272
272
|
const ContactGroupsRemoveMembersPathParams = /* @__PURE__ */ Schema.Struct({ id: ContactGroupId });
|
|
273
273
|
const ContactGroupsRemoveMembersRequestJson = /* @__PURE__ */ Schema.Struct({ contactIds: Schema.TupleWithRest(Schema.Tuple([ContactId]), [ContactId]) });
|
|
274
|
-
const ContactGroupsRemoveMembers200 = /* @__PURE__ */ Schema.Struct({ removed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })) });
|
|
274
|
+
const ContactGroupsRemoveMembers200 = /* @__PURE__ */ Schema.Struct({ removed: 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" })) });
|
|
275
275
|
const ContactGroupsRemoveMembers401 = UnauthorizedError;
|
|
276
276
|
const ContactGroupsRemoveMembers403 = ForbiddenError;
|
|
277
277
|
const ContactGroupsRemoveMembers404 = ResourceNotFoundError;
|
|
@@ -289,7 +289,7 @@ const ContactGroupsPreviewRequestJson = /* @__PURE__ */ Schema.Struct({ criteria
|
|
|
289
289
|
})), Schema.Null]))
|
|
290
290
|
}) });
|
|
291
291
|
const ContactGroupsPreview200 = /* @__PURE__ */ Schema.Struct({
|
|
292
|
-
count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
292
|
+
count: 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" })),
|
|
293
293
|
sample: Schema.Array(Schema.Struct({
|
|
294
294
|
id: ContactId,
|
|
295
295
|
name: Schema.String,
|
|
@@ -32,8 +32,8 @@ const ContactPreferences = /* @__PURE__ */ Schema.Struct({
|
|
|
32
32
|
}), Schema.Null]))
|
|
33
33
|
}).annotate({ identifier: "ContactPreferences" });
|
|
34
34
|
const BulkUpdateResult = /* @__PURE__ */ Schema.Struct({
|
|
35
|
-
updated: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
36
|
-
failed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
35
|
+
updated: 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" })),
|
|
36
|
+
failed: 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" }))
|
|
37
37
|
}).annotate({ identifier: "BulkUpdateResult" });
|
|
38
38
|
const ContactLookup = /* @__PURE__ */ Schema.Union([
|
|
39
39
|
Schema.Struct({
|
|
@@ -269,12 +269,12 @@ const ContactsGetActivityTimeline500 = InternalError;
|
|
|
269
269
|
const ContactsGetActivityTimeline504 = GatewayTimeoutError;
|
|
270
270
|
const ContactsGetEngagementPathParams = /* @__PURE__ */ Schema.Struct({ id: ContactId });
|
|
271
271
|
const ContactsGetEngagement200 = /* @__PURE__ */ Schema.Struct({
|
|
272
|
-
totalMessages: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
273
|
-
messagesSent: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
274
|
-
messagesReceived: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
275
|
-
activeConversations: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
272
|
+
totalMessages: 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" })),
|
|
273
|
+
messagesSent: 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" })),
|
|
274
|
+
messagesReceived: 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" })),
|
|
275
|
+
activeConversations: 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" })),
|
|
276
276
|
lastActivityAt: Schema.Union([Schema.String, Schema.Null]),
|
|
277
|
-
channelsUsed: Schema.Record(Schema.String, Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })))
|
|
277
|
+
channelsUsed: Schema.Record(Schema.String, 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" })))
|
|
278
278
|
});
|
|
279
279
|
const ContactsGetEngagement401 = UnauthorizedError;
|
|
280
280
|
const ContactsGetEngagement403 = ForbiddenError;
|
|
@@ -357,8 +357,8 @@ const ContactsRemoveTags500 = InternalError;
|
|
|
357
357
|
const ContactsRemoveTags504 = GatewayTimeoutError;
|
|
358
358
|
const ContactsBulkDeleteRequestJson = /* @__PURE__ */ Schema.Struct({ ids: Schema.TupleWithRest(Schema.Tuple([ContactId]), [ContactId]) });
|
|
359
359
|
const ContactsBulkDelete200 = /* @__PURE__ */ Schema.Struct({
|
|
360
|
-
deleted: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
361
|
-
failed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
360
|
+
deleted: 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" })),
|
|
361
|
+
failed: 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" }))
|
|
362
362
|
});
|
|
363
363
|
const ContactsBulkDelete401 = UnauthorizedError;
|
|
364
364
|
const ContactsBulkDelete403 = ForbiddenError;
|
|
@@ -389,13 +389,13 @@ const ContactsBulkImportRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
389
389
|
onConflict: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("skip"), Schema.Literal("update")]), Schema.Null]))
|
|
390
390
|
});
|
|
391
391
|
const ContactsBulkImport200 = /* @__PURE__ */ Schema.Struct({
|
|
392
|
-
total: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
393
|
-
created: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
394
|
-
updated: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
395
|
-
skipped: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
396
|
-
errors: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
392
|
+
total: 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" })),
|
|
393
|
+
created: 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" })),
|
|
394
|
+
updated: 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" })),
|
|
395
|
+
skipped: 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" })),
|
|
396
|
+
errors: 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" })),
|
|
397
397
|
results: Schema.Array(Schema.Struct({
|
|
398
|
-
index: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
398
|
+
index: 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" })),
|
|
399
399
|
status: Schema.Union([
|
|
400
400
|
Schema.Literal("created"),
|
|
401
401
|
Schema.Literal("updated"),
|
|
@@ -463,7 +463,7 @@ const ContactsExportRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
463
463
|
const ContactsExport200 = /* @__PURE__ */ Schema.Struct({
|
|
464
464
|
data: Schema.String,
|
|
465
465
|
format: Schema.Union([Schema.Literal("json"), Schema.Literal("csv")]),
|
|
466
|
-
count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
466
|
+
count: 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" }))
|
|
467
467
|
});
|
|
468
468
|
const ContactsExport401 = UnauthorizedError;
|
|
469
469
|
const ContactsExport403 = ForbiddenError;
|
|
@@ -16,7 +16,7 @@ const ConversationSummary = /* @__PURE__ */ Schema.Struct({
|
|
|
16
16
|
]),
|
|
17
17
|
primaryChannel: Schema.Literal("email"),
|
|
18
18
|
channels: Schema.Array(Schema.Literal("email")),
|
|
19
|
-
priority: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
19
|
+
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(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
20
20
|
urgency: Schema.Union([
|
|
21
21
|
Schema.Literal("low"),
|
|
22
22
|
Schema.Literal("medium"),
|
|
@@ -25,7 +25,7 @@ const ConversationSummary = /* @__PURE__ */ Schema.Struct({
|
|
|
25
25
|
]),
|
|
26
26
|
tags: Schema.Array(Schema.String),
|
|
27
27
|
isTest: Schema.Boolean,
|
|
28
|
-
messageCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
28
|
+
messageCount: 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" })),
|
|
29
29
|
lastActivityAt: Schema.String,
|
|
30
30
|
createdAt: Schema.String
|
|
31
31
|
}).annotate({ identifier: "ConversationSummary" });
|
|
@@ -67,7 +67,7 @@ const Conversation = /* @__PURE__ */ Schema.Struct({
|
|
|
67
67
|
]),
|
|
68
68
|
primaryChannel: Schema.Literal("email"),
|
|
69
69
|
channels: Schema.Array(Schema.Literal("email")),
|
|
70
|
-
priority: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
70
|
+
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(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
71
71
|
urgency: Schema.Union([
|
|
72
72
|
Schema.Literal("low"),
|
|
73
73
|
Schema.Literal("medium"),
|
|
@@ -76,7 +76,7 @@ const Conversation = /* @__PURE__ */ Schema.Struct({
|
|
|
76
76
|
]),
|
|
77
77
|
tags: Schema.Array(Schema.String),
|
|
78
78
|
isTest: Schema.Boolean,
|
|
79
|
-
messageCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
79
|
+
messageCount: 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" })),
|
|
80
80
|
lastActivityAt: Schema.String,
|
|
81
81
|
createdAt: Schema.String,
|
|
82
82
|
description: Schema.Union([Schema.String, Schema.Null]),
|
|
@@ -143,7 +143,7 @@ const ConversationsCreateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
143
143
|
Schema.Literal("archived")
|
|
144
144
|
]), Schema.Null])),
|
|
145
145
|
statusReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
146
|
-
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" })), Schema.Null])),
|
|
146
|
+
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(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null])),
|
|
147
147
|
urgency: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
148
148
|
Schema.Literal("low"),
|
|
149
149
|
Schema.Literal("medium"),
|
|
@@ -192,7 +192,7 @@ const ConversationsUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
192
192
|
Schema.Literal("archived")
|
|
193
193
|
]), Schema.Null])),
|
|
194
194
|
statusReason: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
195
|
-
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" })), Schema.Null])),
|
|
195
|
+
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(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null])),
|
|
196
196
|
urgency: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
197
197
|
Schema.Literal("low"),
|
|
198
198
|
Schema.Literal("medium"),
|
|
@@ -21,7 +21,7 @@ const CustomFieldList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(Sche
|
|
|
21
21
|
options: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
22
22
|
defaultValue: Schema.Union([Schema.String, Schema.Null]),
|
|
23
23
|
isRequired: Schema.Boolean,
|
|
24
|
-
sortOrder: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
24
|
+
sortOrder: 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" })),
|
|
25
25
|
createdAt: Schema.String,
|
|
26
26
|
updatedAt: Schema.String
|
|
27
27
|
})).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })) }).annotate({ identifier: "CustomFieldList" });
|
|
@@ -44,7 +44,7 @@ const CustomFieldsCreateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
44
44
|
options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
45
45
|
defaultValue: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
46
46
|
isRequired: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
47
|
-
sortOrder: 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" })), Schema.Null]))
|
|
47
|
+
sortOrder: 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(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]))
|
|
48
48
|
});
|
|
49
49
|
const CustomFieldsCreate201 = /* @__PURE__ */ Schema.Struct({
|
|
50
50
|
id: CustomFieldDefinitionId,
|
|
@@ -61,7 +61,7 @@ const CustomFieldsCreate201 = /* @__PURE__ */ Schema.Struct({
|
|
|
61
61
|
options: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
62
62
|
defaultValue: Schema.Union([Schema.String, Schema.Null]),
|
|
63
63
|
isRequired: Schema.Boolean,
|
|
64
|
-
sortOrder: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
64
|
+
sortOrder: 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" })),
|
|
65
65
|
createdAt: Schema.String,
|
|
66
66
|
updatedAt: Schema.String
|
|
67
67
|
});
|
|
@@ -85,7 +85,7 @@ const CustomFieldsUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
85
85
|
options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
86
86
|
defaultValue: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
87
87
|
isRequired: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
88
|
-
sortOrder: 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" })), Schema.Null]))
|
|
88
|
+
sortOrder: 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(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]))
|
|
89
89
|
});
|
|
90
90
|
const CustomFieldsUpdate200 = /* @__PURE__ */ Schema.Struct({
|
|
91
91
|
id: CustomFieldDefinitionId,
|
|
@@ -102,7 +102,7 @@ const CustomFieldsUpdate200 = /* @__PURE__ */ Schema.Struct({
|
|
|
102
102
|
options: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
103
103
|
defaultValue: Schema.Union([Schema.String, Schema.Null]),
|
|
104
104
|
isRequired: Schema.Boolean,
|
|
105
|
-
sortOrder: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
105
|
+
sortOrder: 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" })),
|
|
106
106
|
createdAt: Schema.String,
|
|
107
107
|
updatedAt: Schema.String
|
|
108
108
|
});
|
|
@@ -17,7 +17,7 @@ const BlockedEmailLogId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/
|
|
|
17
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
|
-
windowSends: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
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" })),
|
|
21
21
|
sendingStatus: Schema.Union([
|
|
22
22
|
Schema.Literal("enabled"),
|
|
23
23
|
Schema.Literal("disabled"),
|
|
@@ -86,8 +86,8 @@ const EmailDomainProvisioningExecution = /* @__PURE__ */ Schema.Struct({
|
|
|
86
86
|
Schema.Literal("succeeded"),
|
|
87
87
|
Schema.Literal("failed")
|
|
88
88
|
]),
|
|
89
|
-
generation: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
90
|
-
revision: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" }))
|
|
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
|
+
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
91
|
}).annotate({ identifier: "EmailDomainProvisioningExecution" });
|
|
92
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}$",
|
|
@@ -132,7 +132,7 @@ const IdentityClearanceStatus = /* @__PURE__ */ Schema.Struct({
|
|
|
132
132
|
Schema.Literal("approved"),
|
|
133
133
|
Schema.Literal("rejected")
|
|
134
134
|
]),
|
|
135
|
-
generation: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
135
|
+
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" })),
|
|
136
136
|
canSend: Schema.Boolean,
|
|
137
137
|
code: Schema.Union([Schema.Union([
|
|
138
138
|
Schema.Literal("review_required"),
|
|
@@ -157,10 +157,10 @@ const SuppressionId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @_
|
|
|
157
157
|
identifier: "SuppressionId"
|
|
158
158
|
})).pipe(Schema.brand("SuppressionId"));
|
|
159
159
|
const SuppressionCounts = /* @__PURE__ */ Schema.Struct({
|
|
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" })),
|
|
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" })),
|
|
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" })),
|
|
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" }))
|
|
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
|
+
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
|
+
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
|
+
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
164
|
}).annotate({ identifier: "SuppressionCounts" });
|
|
165
165
|
const EmailTrackingDefaults = /* @__PURE__ */ Schema.Struct({
|
|
166
166
|
opens: Schema.Boolean,
|
|
@@ -204,7 +204,7 @@ const BlockPage = /* @__PURE__ */ Schema.Struct({
|
|
|
204
204
|
reason: Schema.String,
|
|
205
205
|
notes: Schema.Union([Schema.String, Schema.Null]),
|
|
206
206
|
isActive: Schema.Boolean,
|
|
207
|
-
blockCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
207
|
+
blockCount: 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" })),
|
|
208
208
|
lastBlockedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
209
209
|
expiresAt: Schema.Union([Schema.String, Schema.Null]),
|
|
210
210
|
createdAt: Schema.String
|
|
@@ -271,8 +271,8 @@ const ReceivingStatus = /* @__PURE__ */ Schema.Struct({
|
|
|
271
271
|
destination: Schema.Struct({
|
|
272
272
|
satisfied: Schema.Boolean,
|
|
273
273
|
endpointId: Schema.Union([WebhookEndpointId, Schema.Null]),
|
|
274
|
-
forwardingRules: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
275
|
-
mailboxes: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
274
|
+
forwardingRules: 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" })),
|
|
275
|
+
mailboxes: 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" }))
|
|
276
276
|
}),
|
|
277
277
|
receiving: Schema.Struct({
|
|
278
278
|
satisfied: Schema.Boolean,
|
|
@@ -288,11 +288,11 @@ const ReceivingStatus = /* @__PURE__ */ Schema.Struct({
|
|
|
288
288
|
]),
|
|
289
289
|
expected: Schema.Struct({
|
|
290
290
|
exchange: Schema.String,
|
|
291
|
-
priority: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
291
|
+
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(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
292
292
|
}),
|
|
293
293
|
current: Schema.Array(Schema.Struct({
|
|
294
294
|
exchange: Schema.String,
|
|
295
|
-
priority: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
295
|
+
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(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
296
296
|
}))
|
|
297
297
|
}),
|
|
298
298
|
ready: Schema.Boolean
|
|
@@ -350,7 +350,7 @@ const EmailDomainDetailed = /* @__PURE__ */ Schema.Struct({
|
|
|
350
350
|
value: Schema.String,
|
|
351
351
|
ttl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
352
352
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
353
|
-
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" })), Schema.Null]))
|
|
353
|
+
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(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]))
|
|
354
354
|
})),
|
|
355
355
|
verifiedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
356
356
|
namespaceId: Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the domain belongs to, or null at organization level. Only that namespace's keys and organization-wide callers reach it." }),
|
|
@@ -468,8 +468,8 @@ const ForwardingRuleList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(S
|
|
|
468
468
|
preserveHeaders: Schema.Boolean,
|
|
469
469
|
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" })),
|
|
470
470
|
isActive: Schema.Boolean,
|
|
471
|
-
forwardCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
472
|
-
failureCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
471
|
+
forwardCount: 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" })),
|
|
472
|
+
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" })),
|
|
473
473
|
lastForwardedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
474
474
|
createdAt: Schema.String
|
|
475
475
|
})).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })) }).annotate({ identifier: "ForwardingRuleList" });
|
|
@@ -511,7 +511,7 @@ const OnboardingReviewStatus = /* @__PURE__ */ Schema.Struct({
|
|
|
511
511
|
Schema.Literal("information_requested"),
|
|
512
512
|
Schema.Literal("complete")
|
|
513
513
|
]),
|
|
514
|
-
generation: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
514
|
+
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" })),
|
|
515
515
|
canSend: Schema.Boolean,
|
|
516
516
|
code: Schema.Union([Schema.Union([
|
|
517
517
|
Schema.Literal("review_required"),
|
|
@@ -608,11 +608,11 @@ const EmailDomainVerification = /* @__PURE__ */ Schema.Struct({
|
|
|
608
608
|
]),
|
|
609
609
|
dns: Schema.Struct({
|
|
610
610
|
observed: Schema.Boolean,
|
|
611
|
-
total: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
612
|
-
satisfied: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
613
|
-
missing: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
614
|
-
mismatch: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
615
|
-
unknown: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" }))
|
|
611
|
+
total: 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" })),
|
|
612
|
+
satisfied: 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" })),
|
|
613
|
+
missing: 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" })),
|
|
614
|
+
mismatch: 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" })),
|
|
615
|
+
unknown: 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" }))
|
|
616
616
|
}),
|
|
617
617
|
requirements: Schema.Array(Schema.Struct({
|
|
618
618
|
key: Schema.String,
|
|
@@ -633,7 +633,7 @@ const EmailDomainVerification = /* @__PURE__ */ Schema.Struct({
|
|
|
633
633
|
value: Schema.String,
|
|
634
634
|
ttl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
635
635
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
636
|
-
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" })), Schema.Null]))
|
|
636
|
+
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(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]))
|
|
637
637
|
}),
|
|
638
638
|
status: Schema.Union([
|
|
639
639
|
Schema.Literal("satisfied"),
|
|
@@ -919,7 +919,7 @@ const EmailGetCatchAllConfigQuery = /* @__PURE__ */ Schema.Struct({ domainId: Em
|
|
|
919
919
|
const EmailGetCatchAllConfig200 = /* @__PURE__ */ Schema.Struct({
|
|
920
920
|
enabled: Schema.Boolean,
|
|
921
921
|
endpointId: Schema.Union([WebhookEndpointId, Schema.Null]),
|
|
922
|
-
emailCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
922
|
+
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" })),
|
|
923
923
|
lastEmailAt: Schema.Union([Schema.String, Schema.Null])
|
|
924
924
|
});
|
|
925
925
|
const EmailGetCatchAllConfig401 = UnauthorizedError;
|
|
@@ -947,10 +947,10 @@ const EmailGetCatchAllStatsQuery = /* @__PURE__ */ Schema.Struct({
|
|
|
947
947
|
const EmailGetCatchAllStats200 = /* @__PURE__ */ Schema.Struct({
|
|
948
948
|
domain: Schema.String,
|
|
949
949
|
isCatchAllEnabled: Schema.Boolean,
|
|
950
|
-
catchAllEmailCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
950
|
+
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" })),
|
|
951
951
|
catchAllLastEmailAt: Schema.Union([Schema.String, Schema.Null]),
|
|
952
952
|
timeRange: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
953
|
-
emailsReceived: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
953
|
+
emailsReceived: 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
954
|
firstEmail: Schema.Union([Schema.String, Schema.Null]),
|
|
955
955
|
lastEmail: Schema.Union([Schema.String, Schema.Null]),
|
|
956
956
|
avgPerDay: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
@@ -1415,7 +1415,7 @@ const EmailGetOnboardingReview403 = ForbiddenError;
|
|
|
1415
1415
|
const EmailGetOnboardingReview422 = ValidationError;
|
|
1416
1416
|
const EmailGetOnboardingReview500 = InternalError;
|
|
1417
1417
|
const EmailGetOnboardingReview504 = GatewayTimeoutError;
|
|
1418
|
-
const EmailReapplyOnboardingReviewRequestJson = /* @__PURE__ */ Schema.Struct({ expectedGeneration: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })) });
|
|
1418
|
+
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" })) });
|
|
1419
1419
|
const EmailReapplyOnboardingReview200 = OnboardingReviewStatus;
|
|
1420
1420
|
const EmailReapplyOnboardingReview401 = UnauthorizedError;
|
|
1421
1421
|
const EmailReapplyOnboardingReview403 = ForbiddenError;
|
|
@@ -1424,7 +1424,7 @@ const EmailReapplyOnboardingReview422 = ValidationError;
|
|
|
1424
1424
|
const EmailReapplyOnboardingReview500 = InternalError;
|
|
1425
1425
|
const EmailReapplyOnboardingReview504 = GatewayTimeoutError;
|
|
1426
1426
|
const EmailRespondToOnboardingInformationRequestRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1427
|
-
expectedGeneration: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
1427
|
+
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" })),
|
|
1428
1428
|
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" })),
|
|
1429
1429
|
evidenceMediaIds: Schema.Array(MediaId).check(Schema.isMaxLength(3).annotate({ expected: "a value with a length of at most 3" }))
|
|
1430
1430
|
});
|
|
@@ -1561,10 +1561,10 @@ const EmailGetStatsQuery = /* @__PURE__ */ Schema.Struct({
|
|
|
1561
1561
|
before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
1562
1562
|
});
|
|
1563
1563
|
const EmailGetStats200 = /* @__PURE__ */ Schema.Struct({
|
|
1564
|
-
totalSent: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1565
|
-
totalDelivered: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1566
|
-
totalBounced: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1567
|
-
totalComplained: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1564
|
+
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" })),
|
|
1565
|
+
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" })),
|
|
1566
|
+
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" })),
|
|
1567
|
+
totalComplained: 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
|
deliveryRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
1569
1569
|
bounceRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
1570
1570
|
complaintRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
@@ -3,11 +3,11 @@ import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/ht
|
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
//#region src/effect/generated/events.ts
|
|
5
5
|
const BatchEventsResult = /* @__PURE__ */ Schema.Struct({
|
|
6
|
-
total: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
7
|
-
accepted: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
8
|
-
errors: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
6
|
+
total: 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" })),
|
|
7
|
+
accepted: 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" })),
|
|
8
|
+
errors: 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" })),
|
|
9
9
|
results: Schema.Array(Schema.Struct({
|
|
10
|
-
index: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
10
|
+
index: 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" })),
|
|
11
11
|
status: Schema.Union([Schema.Literal("accepted"), Schema.Literal("error")]),
|
|
12
12
|
event: Schema.optionalKey(Schema.Union([ContactEvent, Schema.Null])),
|
|
13
13
|
error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|