samva 0.22.1 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/client/sdk.gen.d.ts +10 -3
  2. package/dist/client/sdk.gen.js +21 -2
  3. package/dist/client/types.gen.d.ts +69 -12
  4. package/dist/effect/generated/analytics.js +8 -8
  5. package/dist/effect/generated/api-keys.js +4 -4
  6. package/dist/effect/generated/attachments.js +3 -3
  7. package/dist/effect/generated/contact-groups.js +11 -11
  8. package/dist/effect/generated/contacts.js +16 -16
  9. package/dist/effect/generated/conversations.js +6 -6
  10. package/dist/effect/generated/custom-fields.js +5 -5
  11. package/dist/effect/generated/email.js +32 -32
  12. package/dist/effect/generated/events.js +4 -4
  13. package/dist/effect/generated/extension-installations.js +4 -4
  14. package/dist/effect/generated/extensions.js +1 -1
  15. package/dist/effect/generated/journeys.js +12 -12
  16. package/dist/effect/generated/mailboxes.js +10 -10
  17. package/dist/effect/generated/messages.js +4 -4
  18. package/dist/effect/generated/organizations.d.ts +116 -9
  19. package/dist/effect/generated/organizations.js +31 -6
  20. package/dist/effect/generated/shared.js +1 -1
  21. package/dist/effect/generated/templates.d.ts +37 -72
  22. package/dist/effect/generated/templates.js +121 -122
  23. package/dist/effect/generated/unsubscribe-groups.js +7 -7
  24. package/dist/effect/generated/webhooks.js +17 -17
  25. package/dist/effect/generated-metadata.d.ts +5 -0
  26. package/dist/effect/generated-metadata.js +1 -0
  27. package/dist/effect/organizations.d.ts +2 -0
  28. package/dist/effect/organizations.js +3 -1
  29. package/dist/package.js +1 -1
  30. package/dist/promises/types.gen.d.ts +1 -1
  31. package/dist/service-map.d.ts +4 -0
  32. package/dist/service-map.js +1 -0
  33. package/package.json +2 -2
@@ -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]))
@@ -19,9 +19,9 @@ const ExtensionRunSummary = /* @__PURE__ */ Schema.Struct({
19
19
  Schema.Literal("mailbox.message.released"),
20
20
  Schema.Literal("mailbox.message.discarded")
21
21
  ]),
22
- attempt: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
22
+ attempt: 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" })),
23
23
  startedAt: Schema.String,
24
- durationMs: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
24
+ durationMs: 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" })),
25
25
  outcome: Schema.Union([
26
26
  Schema.Literal("succeeded"),
27
27
  Schema.Literal("failed"),
@@ -43,9 +43,9 @@ const ExtensionRun = /* @__PURE__ */ Schema.Struct({
43
43
  Schema.Literal("mailbox.message.released"),
44
44
  Schema.Literal("mailbox.message.discarded")
45
45
  ]),
46
- attempt: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
46
+ attempt: 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" })),
47
47
  startedAt: Schema.String,
48
- durationMs: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
48
+ durationMs: 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" })),
49
49
  outcome: Schema.Union([
50
50
  Schema.Literal("succeeded"),
51
51
  Schema.Literal("failed"),
@@ -4,7 +4,7 @@ import * as Schema from "effect/Schema";
4
4
  //#region src/effect/generated/extensions.ts
5
5
  const ExtensionBundle = /* @__PURE__ */ Schema.Struct({
6
6
  sha256: Schema.String,
7
- sizeBytes: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" }))
7
+ sizeBytes: 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
8
  }).annotate({ identifier: "ExtensionBundle" });
9
9
  const ExtensionVersion = /* @__PURE__ */ Schema.Struct({
10
10
  id: ExtensionVersionId,
@@ -36,10 +36,10 @@ const JourneyRunStepOutcome = /* @__PURE__ */ Schema.Union([
36
36
  Schema.Literal("failed")
37
37
  ]).annotate({ identifier: "JourneyRunStepOutcome" });
38
38
  const JourneyRunCounts = /* @__PURE__ */ Schema.Struct({
39
- active: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
40
- paused: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
41
- exited: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
42
- failed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" }))
39
+ active: 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" })),
40
+ paused: 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" })),
41
+ exited: 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" })),
42
+ failed: 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" }))
43
43
  }).annotate({ identifier: "JourneyRunCounts" });
44
44
  const JourneyRunTrigger = /* @__PURE__ */ Schema.Struct({
45
45
  eventId: Schema.String,
@@ -50,7 +50,7 @@ const JourneyListItem = /* @__PURE__ */ Schema.Struct({
50
50
  id: JourneyId,
51
51
  name: Schema.String,
52
52
  status: JourneyStatus,
53
- publishedVersion: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })), Schema.Null]),
53
+ publishedVersion: Schema.Union([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" })), Schema.Null]),
54
54
  publishedAt: Schema.Union([Schema.String, Schema.Null]),
55
55
  createdAt: Schema.String,
56
56
  updatedAt: Schema.String
@@ -61,8 +61,8 @@ const DeleteJourneyResponse = /* @__PURE__ */ Schema.Struct({
61
61
  }).annotate({ identifier: "DeleteJourneyResponse" });
62
62
  const JourneyNodeStats = /* @__PURE__ */ Schema.Struct({
63
63
  nodeId: JourneyNodeId,
64
- current: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
65
- entered: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" }))
64
+ current: 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" })),
65
+ entered: 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" }))
66
66
  }).annotate({ identifier: "JourneyNodeStats" });
67
67
  const JourneyRunStep = /* @__PURE__ */ Schema.Struct({
68
68
  nodeId: JourneyNodeId,
@@ -77,7 +77,7 @@ const JourneyRunStep = /* @__PURE__ */ Schema.Struct({
77
77
  const JourneyRun = /* @__PURE__ */ Schema.Struct({
78
78
  id: JourneyRunId,
79
79
  journeyId: JourneyId,
80
- version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
80
+ version: 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" })),
81
81
  contactId: ContactId,
82
82
  status: JourneyRunStatus,
83
83
  exitReason: Schema.Union([JourneyRunExitReason, Schema.Null]),
@@ -95,14 +95,14 @@ const JourneyPage = /* @__PURE__ */ Schema.Struct({
95
95
  }).annotate({ identifier: "JourneyPage" });
96
96
  const JourneyStats = /* @__PURE__ */ Schema.Struct({
97
97
  journeyId: JourneyId,
98
- version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
98
+ version: 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" })),
99
99
  runs: JourneyRunCounts,
100
100
  nodes: Schema.Array(JourneyNodeStats)
101
101
  }).annotate({ identifier: "JourneyStats" });
102
102
  const JourneyRunDetail = /* @__PURE__ */ Schema.Struct({
103
103
  id: JourneyRunId,
104
104
  journeyId: JourneyId,
105
- version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
105
+ version: 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" })),
106
106
  contactId: ContactId,
107
107
  status: JourneyRunStatus,
108
108
  exitReason: Schema.Union([JourneyRunExitReason, Schema.Null]),
@@ -125,14 +125,14 @@ const Journey = /* @__PURE__ */ Schema.Struct({
125
125
  status: JourneyStatus,
126
126
  revision: Schema.String,
127
127
  draft: JourneyDefinition,
128
- publishedVersion: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })), Schema.Null]),
128
+ publishedVersion: Schema.Union([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" })), Schema.Null]),
129
129
  publishedAt: Schema.Union([Schema.String, Schema.Null]),
130
130
  createdAt: Schema.String,
131
131
  updatedAt: Schema.String
132
132
  }).annotate({ identifier: "Journey" });
133
133
  const JourneyVersion = /* @__PURE__ */ Schema.Struct({
134
134
  journeyId: JourneyId,
135
- version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
135
+ version: 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
  definition: JourneyDefinition,
137
137
  publishedAt: Schema.String
138
138
  }).annotate({ identifier: "JourneyVersion" });
@@ -47,7 +47,7 @@ const MailboxAgentActivity = /* @__PURE__ */ Schema.Struct({
47
47
  Schema.Literal("call"),
48
48
  Schema.Literal("extensionRequest")
49
49
  ]),
50
- count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
50
+ 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" }))
51
51
  })),
52
52
  byState: Schema.Array(Schema.Struct({
53
53
  state: Schema.Union([
@@ -66,7 +66,7 @@ const MailboxAgentActivity = /* @__PURE__ */ Schema.Struct({
66
66
  Schema.Literal("notSent"),
67
67
  Schema.Literal("uncertain")
68
68
  ]),
69
- count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
69
+ 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" }))
70
70
  }))
71
71
  }),
72
72
  events: Schema.Struct({ byType: Schema.Array(Schema.Struct({
@@ -86,9 +86,9 @@ const MailboxAgentActivity = /* @__PURE__ */ Schema.Struct({
86
86
  Schema.Literal("action.executed"),
87
87
  Schema.Literal("action.failed")
88
88
  ]),
89
- count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
89
+ 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" }))
90
90
  })) }),
91
- pendingApprovals: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
91
+ pendingApprovals: 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" }))
92
92
  }).annotate({ identifier: "MailboxAgentActivity" });
93
93
  const MailboxDraftState = /* @__PURE__ */ Schema.Union([
94
94
  Schema.Literal("saved"),
@@ -276,8 +276,8 @@ const MailboxEvent = /* @__PURE__ */ Schema.Struct({
276
276
  }).annotate({ identifier: "MailboxEvent" });
277
277
  const MailboxFolderCount = /* @__PURE__ */ Schema.Struct({
278
278
  folder: MailboxThreadFolder,
279
- count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
280
- unreadCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
279
+ 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" })),
280
+ unreadCount: 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" }))
281
281
  }).annotate({ identifier: "MailboxFolderCount" });
282
282
  const MailboxGrant = /* @__PURE__ */ Schema.Struct({
283
283
  id: MailboxGrantId,
@@ -372,7 +372,7 @@ const MailboxMessage = /* @__PURE__ */ Schema.Struct({
372
372
  id: AttachmentId,
373
373
  filename: Schema.String,
374
374
  contentType: Schema.String,
375
- size: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
375
+ 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" })),
376
376
  isInline: Schema.Boolean
377
377
  }))
378
378
  }).annotate({ identifier: "MailboxMessage" });
@@ -392,7 +392,7 @@ const MailboxThreadSummary = /* @__PURE__ */ Schema.Struct({
392
392
  subject: Schema.Union([Schema.String, Schema.Null]),
393
393
  preview: Schema.Union([Schema.String, Schema.Null]),
394
394
  from: Schema.Union([MailboxThreadSender, Schema.Null]),
395
- messageCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
395
+ 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" })),
396
396
  hasAttachments: Schema.Boolean,
397
397
  hasDraft: Schema.Boolean,
398
398
  folder: MailboxThreadFolder,
@@ -419,7 +419,7 @@ const MailboxThread = /* @__PURE__ */ Schema.Struct({
419
419
  subject: Schema.Union([Schema.String, Schema.Null]),
420
420
  preview: Schema.Union([Schema.String, Schema.Null]),
421
421
  from: Schema.Union([MailboxThreadSender, Schema.Null]),
422
- messageCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
422
+ 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" })),
423
423
  hasAttachments: Schema.Boolean,
424
424
  hasDraft: Schema.Boolean,
425
425
  folder: MailboxThreadFolder,
@@ -455,7 +455,7 @@ const MailboxNote = /* @__PURE__ */ Schema.Struct({
455
455
  }).annotate({ identifier: "MailboxNote" });
456
456
  const MailboxSendSnapshot = /* @__PURE__ */ Schema.Struct({
457
457
  channel: Schema.Literal("email"),
458
- draftRevision: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
458
+ draftRevision: 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" })),
459
459
  from: Schema.String,
460
460
  fromName: Schema.Union([Schema.String, Schema.Null]),
461
461
  to: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]),
@@ -54,7 +54,7 @@ const ValidateEmailResponse = /* @__PURE__ */ Schema.Struct({
54
54
  email: Schema.String,
55
55
  name: Schema.Union([Schema.String, Schema.Null])
56
56
  }),
57
- recipientCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
57
+ recipientCount: 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" })),
58
58
  content: Schema.Struct({
59
59
  source: Schema.Union([Schema.Literal("inline"), Schema.Literal("template")]),
60
60
  subject: Schema.String,
@@ -423,7 +423,7 @@ const MessagesGetEmail200 = /* @__PURE__ */ Schema.Struct({
423
423
  messageIdHeader: Schema.String,
424
424
  inReplyTo: Schema.Union([Schema.String, Schema.Null]),
425
425
  references: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
426
- threadPosition: 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]),
426
+ threadPosition: 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]),
427
427
  newContent: Schema.Union([Schema.String, Schema.Null]),
428
428
  quotedContent: Schema.Union([Schema.String, Schema.Null]),
429
429
  hasQuotedContent: Schema.Boolean,
@@ -474,12 +474,12 @@ const MessagesGetEmail200 = /* @__PURE__ */ Schema.Struct({
474
474
  parsingErrors: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
475
475
  parsingDuration: Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema.Null]),
476
476
  hasAttachments: Schema.Boolean,
477
- attachmentCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
477
+ attachmentCount: 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" })),
478
478
  attachments: Schema.Array(Schema.Struct({
479
479
  id: AttachmentId,
480
480
  filename: Schema.String,
481
481
  contentType: Schema.String,
482
- size: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
482
+ 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" })),
483
483
  isInline: Schema.Boolean,
484
484
  contentId: Schema.Union([Schema.String, Schema.Null])
485
485
  })),