samva 0.53.0 → 0.55.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 (157) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +1 -0
  3. package/dist/_virtual/_rolldown/runtime.js +4 -4
  4. package/dist/agent/index.js +1 -1
  5. package/dist/client/client/client.gen.js +1 -2
  6. package/dist/client/client/utils.gen.js +1 -1
  7. package/dist/client/client.gen.js +1 -1
  8. package/dist/client/sdk.gen.d.ts +96 -12
  9. package/dist/client/sdk.gen.js +314 -25
  10. package/dist/client/types.gen.d.ts +647 -13
  11. package/dist/client-attribution.js +1 -1
  12. package/dist/effect/agents.js +1 -1
  13. package/dist/effect/analytics.js +1 -1
  14. package/dist/effect/api-keys.js +1 -1
  15. package/dist/effect/approval-requests.js +1 -1
  16. package/dist/effect/attachments.js +1 -1
  17. package/dist/effect/brands.d.ts +8 -1
  18. package/dist/effect/brands.js +2 -2
  19. package/dist/effect/campaigns.d.ts +66 -56
  20. package/dist/effect/campaigns.js +1 -1
  21. package/dist/effect/categories.js +6 -6
  22. package/dist/effect/contact-groups.js +1 -1
  23. package/dist/effect/contacts.js +1 -1
  24. package/dist/effect/conversations.js +1 -1
  25. package/dist/effect/custom-fields.js +1 -1
  26. package/dist/effect/descriptors/brands.d.ts +4 -4
  27. package/dist/effect/descriptors/brands.js +4 -4
  28. package/dist/effect/descriptors/email.d.ts +21 -1
  29. package/dist/effect/descriptors/email.js +21 -1
  30. package/dist/effect/descriptors/phone-numbers.d.ts +49 -0
  31. package/dist/effect/descriptors/phone-numbers.js +47 -0
  32. package/dist/effect/descriptors/topics.d.ts +1 -1
  33. package/dist/effect/descriptors/topics.js +1 -1
  34. package/dist/effect/email.d.ts +12 -0
  35. package/dist/effect/email.js +6 -2
  36. package/dist/effect/errors.d.ts +1 -1
  37. package/dist/effect/errors.js +2 -2
  38. package/dist/effect/events.js +2 -2
  39. package/dist/effect/feedback.js +2 -2
  40. package/dist/effect/generated/accounts.d.ts +12 -1
  41. package/dist/effect/generated/accounts.js +2 -1
  42. package/dist/effect/generated/agents.js +7 -7
  43. package/dist/effect/generated/analytics.js +16 -16
  44. package/dist/effect/generated/api-keys.js +7 -7
  45. package/dist/effect/generated/approval-requests.js +1 -1
  46. package/dist/effect/generated/attachments.js +4 -4
  47. package/dist/effect/generated/brands.d.ts +78 -8
  48. package/dist/effect/generated/brands.js +21 -12
  49. package/dist/effect/generated/campaigns.d.ts +17 -1
  50. package/dist/effect/generated/campaigns.js +15 -14
  51. package/dist/effect/generated/contact-events.js +1 -1
  52. package/dist/effect/generated/contact-groups.js +12 -12
  53. package/dist/effect/generated/contacts.js +50 -50
  54. package/dist/effect/generated/conversations.js +7 -7
  55. package/dist/effect/generated/custom-fields.js +6 -6
  56. package/dist/effect/generated/email.d.ts +473 -2
  57. package/dist/effect/generated/email.js +143 -44
  58. package/dist/effect/generated/events.js +5 -5
  59. package/dist/effect/generated/feedback.js +1 -1
  60. package/dist/effect/generated/index.d.ts +3 -1
  61. package/dist/effect/generated/integrations-catalog.d.ts +16 -0
  62. package/dist/effect/generated/integrations-catalog.js +10 -6
  63. package/dist/effect/generated/integrations.js +5 -5
  64. package/dist/effect/generated/journeys.d.ts +158 -1
  65. package/dist/effect/generated/journeys.js +16 -14
  66. package/dist/effect/generated/logs.js +2 -2
  67. package/dist/effect/generated/mailboxes.d.ts +41 -3
  68. package/dist/effect/generated/mailboxes.js +48 -50
  69. package/dist/effect/generated/media.js +1 -1
  70. package/dist/effect/generated/messages.d.ts +6 -0
  71. package/dist/effect/generated/messages.js +12 -6
  72. package/dist/effect/generated/namespaces.d.ts +9 -9
  73. package/dist/effect/generated/namespaces.js +1 -1
  74. package/dist/effect/generated/newsletter-domains.js +1 -1
  75. package/dist/effect/generated/newsletter-issues.js +69 -69
  76. package/dist/effect/generated/newsletters.js +1 -1
  77. package/dist/effect/generated/operations.js +1 -1
  78. package/dist/effect/generated/organizations.d.ts +3 -0
  79. package/dist/effect/generated/organizations.js +2 -1
  80. package/dist/effect/generated/phone-numbers.d.ts +817 -0
  81. package/dist/effect/generated/phone-numbers.js +230 -0
  82. package/dist/effect/generated/policies.js +2 -2
  83. package/dist/effect/generated/scheduled-messages.js +1 -1
  84. package/dist/effect/generated/shared.d.ts +75 -14
  85. package/dist/effect/generated/shared.js +46 -17
  86. package/dist/effect/generated/subscriptions.js +1 -1
  87. package/dist/effect/generated/template-registrations.js +1 -1
  88. package/dist/effect/generated/template-share-links.js +9 -9
  89. package/dist/effect/generated/templates.d.ts +34 -1
  90. package/dist/effect/generated/templates.js +136 -121
  91. package/dist/effect/generated/topic-forms.js +1 -1
  92. package/dist/effect/generated/topics.d.ts +10 -0
  93. package/dist/effect/generated/topics.js +20 -13
  94. package/dist/effect/generated/webhooks.js +18 -18
  95. package/dist/effect/generated/whats-app-flows.js +5 -5
  96. package/dist/effect/generated/whats-app-setup-links.js +1 -1
  97. package/dist/effect/generated/whats-app.d.ts +75 -0
  98. package/dist/effect/generated/whats-app.js +43 -18
  99. package/dist/effect/generated/whoami.js +1 -1
  100. package/dist/effect/generated-metadata.d.ts +47 -1
  101. package/dist/effect/generated-metadata.js +175 -146
  102. package/dist/effect/index.d.ts +1 -0
  103. package/dist/effect/index.js +6 -5
  104. package/dist/effect/integrations-catalog.js +1 -1
  105. package/dist/effect/integrations.js +1 -1
  106. package/dist/effect/internal/client.js +6 -6
  107. package/dist/effect/internal/email-sender.js +3 -3
  108. package/dist/effect/internal/log-events.js +2 -2
  109. package/dist/effect/internal/mailbox-events.js +1 -1
  110. package/dist/effect/internal/operation.js +2 -2
  111. package/dist/effect/internal/send.js +4 -4
  112. package/dist/effect/journeys.d.ts +20 -0
  113. package/dist/effect/journeys.js +1 -1
  114. package/dist/effect/logs.js +1 -1
  115. package/dist/effect/mailboxes.d.ts +191 -191
  116. package/dist/effect/mailboxes.js +3 -3
  117. package/dist/effect/media.js +2 -2
  118. package/dist/effect/messages.js +2 -2
  119. package/dist/effect/namespaces.d.ts +2 -2
  120. package/dist/effect/namespaces.js +1 -1
  121. package/dist/effect/newsletter-domains.js +1 -1
  122. package/dist/effect/newsletter-issues.js +1 -1
  123. package/dist/effect/newsletters.js +1 -1
  124. package/dist/effect/operations.js +1 -1
  125. package/dist/effect/organizations.js +1 -1
  126. package/dist/effect/phone-numbers.d.ts +22 -0
  127. package/dist/effect/phone-numbers.js +21 -0
  128. package/dist/effect/policies.js +1 -1
  129. package/dist/effect/retry.js +3 -3
  130. package/dist/effect/scheduled-messages.d.ts +350 -350
  131. package/dist/effect/scheduled-messages.js +1 -1
  132. package/dist/effect/subscriptions.js +1 -1
  133. package/dist/effect/template-registrations.js +1 -1
  134. package/dist/effect/template-share-links.js +1 -1
  135. package/dist/effect/templates.d.ts +1 -0
  136. package/dist/effect/templates.js +2 -2
  137. package/dist/effect/topic-forms.js +1 -1
  138. package/dist/effect/topics.d.ts +70 -2
  139. package/dist/effect/topics.js +1 -1
  140. package/dist/effect/webhooks.js +2 -2
  141. package/dist/effect/whatsapp-flows.js +1 -1
  142. package/dist/effect/whatsapp-setup-links.js +1 -1
  143. package/dist/effect/whatsapp.d.ts +10 -0
  144. package/dist/effect/whatsapp.js +1 -1
  145. package/dist/effect/whoami.js +1 -1
  146. package/dist/index.js +2 -2
  147. package/dist/package.json.js +5 -0
  148. package/dist/promises/client.d.ts +3 -1
  149. package/dist/promises/client.js +7 -5
  150. package/dist/promises/errors.gen.d.ts +16 -2
  151. package/dist/promises/errors.gen.js +48 -11
  152. package/dist/promises/index.js +3 -3
  153. package/dist/promises/types.gen.d.ts +1 -1
  154. package/dist/request-policy.js +1 -1
  155. package/dist/service-map.d.ts +40 -5
  156. package/package.json +9 -5
  157. package/dist/package.js +0 -5
@@ -1,6 +1,6 @@
1
- import { ApiKeySecurityMiddleware, ContactGroupId, ContactId, ContactIdentity, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
2
1
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
2
  import * as Schema from "effect/Schema";
3
+ import { ApiKeySecurityMiddleware, ContactGroupId, ContactId, ContactIdentity, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  // src/effect/generated/contact-groups.ts
5
5
  const ContactGroupPage = /* @__PURE__ */ (() => Schema.Struct({
6
6
  items: Schema.Array(Schema.Struct({
@@ -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" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
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(0x1fffffffffffff).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,
@@ -119,7 +119,7 @@ const ContactGroupsCreate201 = /* @__PURE__ */ (() => Schema.Struct({
119
119
  ]), 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." }),
120
120
  icon: Schema.Union([Schema.String, Schema.Null]),
121
121
  parentGroupId: Schema.Union([ContactGroupId, Schema.Null]),
122
- 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
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
123
123
  lastCalculatedAt: Schema.Union([Schema.String, Schema.Null]),
124
124
  isActive: Schema.Boolean,
125
125
  createdAt: Schema.String,
@@ -153,7 +153,7 @@ const ContactGroupsGetById200 = /* @__PURE__ */ (() => Schema.Struct({
153
153
  ]), 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." }),
154
154
  icon: Schema.Union([Schema.String, Schema.Null]),
155
155
  parentGroupId: Schema.Union([ContactGroupId, Schema.Null]),
156
- 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" })),
156
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
157
157
  lastCalculatedAt: Schema.Union([Schema.String, Schema.Null]),
158
158
  isActive: Schema.Boolean,
159
159
  createdAt: Schema.String,
@@ -218,7 +218,7 @@ const ContactGroupsUpdate200 = /* @__PURE__ */ (() => Schema.Struct({
218
218
  ]), 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." }),
219
219
  icon: Schema.Union([Schema.String, Schema.Null]),
220
220
  parentGroupId: Schema.Union([ContactGroupId, Schema.Null]),
221
- 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" })),
221
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
222
222
  lastCalculatedAt: Schema.Union([Schema.String, Schema.Null]),
223
223
  isActive: Schema.Boolean,
224
224
  createdAt: Schema.String,
@@ -233,9 +233,9 @@ const ContactGroupsUpdate500 = InternalError;
233
233
  const ContactGroupsUpdate504 = GatewayTimeoutError;
234
234
  const ContactGroupsEvaluateDynamicPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ContactGroupId }))();
235
235
  const ContactGroupsEvaluateDynamic200 = /* @__PURE__ */ (() => Schema.Struct({
236
- 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" })),
237
- 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" })),
238
- 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" }))
236
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
237
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
238
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
239
239
  }))();
240
240
  const ContactGroupsEvaluateDynamic400 = MalformedRequestError;
241
241
  const ContactGroupsEvaluateDynamic401 = UnauthorizedError;
@@ -267,8 +267,8 @@ const ContactGroupsAddMembersRequestJson = /* @__PURE__ */ (() => Schema.Struct(
267
267
  ]), Schema.Null]))
268
268
  }))();
269
269
  const ContactGroupsAddMembers200 = /* @__PURE__ */ (() => Schema.Struct({
270
- 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" })),
271
- 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" }))
270
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
271
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
272
272
  }))();
273
273
  const ContactGroupsAddMembers400 = MalformedRequestError;
274
274
  const ContactGroupsAddMembers401 = UnauthorizedError;
@@ -279,7 +279,7 @@ const ContactGroupsAddMembers500 = InternalError;
279
279
  const ContactGroupsAddMembers504 = GatewayTimeoutError;
280
280
  const ContactGroupsRemoveMembersPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ContactGroupId }))();
281
281
  const ContactGroupsRemoveMembersRequestJson = /* @__PURE__ */ (() => Schema.Struct({ contactIds: Schema.TupleWithRest(Schema.Tuple([ContactId]), [ContactId]).check(Schema.isMaxLength(1e3).annotate({ expected: "a value with a length of at most 1000" })) }))();
282
- 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" })) }))();
282
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })) }))();
283
283
  const ContactGroupsRemoveMembers400 = MalformedRequestError;
284
284
  const ContactGroupsRemoveMembers401 = UnauthorizedError;
285
285
  const ContactGroupsRemoveMembers403 = ForbiddenError;
@@ -298,7 +298,7 @@ const ContactGroupsPreviewRequestJson = /* @__PURE__ */ (() => Schema.Struct({ c
298
298
  })), Schema.Null]))
299
299
  }) }))();
300
300
  const ContactGroupsPreview200 = /* @__PURE__ */ (() => Schema.Struct({
301
- 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" })),
301
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
302
302
  sample: Schema.Array(Schema.Struct({
303
303
  id: ContactId,
304
304
  name: Schema.String,
@@ -1,6 +1,6 @@
1
- import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactGroupId, ContactId, ContactIdentity, ContactIdentityId, ConversationId, ForbiddenError, GatewayTimeoutError, IntegrationAccountId, InternalError, JsonObject, MalformedRequestError, MessageId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
2
1
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
2
  import * as Schema from "effect/Schema";
3
+ import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactGroupId, ContactId, ContactIdentity, ContactIdentityId, ConversationId, ForbiddenError, GatewayTimeoutError, IntegrationAccountId, InternalError, JsonObject, MalformedRequestError, MessageId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  // src/effect/generated/contacts.ts
5
5
  const ContactCustomFields = /* @__PURE__ */ (() => Schema.Record(Schema.String, Schema.Union([
6
6
  Schema.String,
@@ -42,8 +42,8 @@ const ContactImportJobId = /* @__PURE__ */ (() => Schema.String.check(Schema.isP
42
42
  identifier: "ContactImportJobId"
43
43
  })).pipe(Schema.brand("ContactImportJobId")))();
44
44
  const BulkUpdateResult = /* @__PURE__ */ (() => Schema.Struct({
45
- 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" })),
46
- 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" }))
45
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
46
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
47
47
  }).annotate({ identifier: "BulkUpdateResult" }))();
48
48
  const ContactLookup = /* @__PURE__ */ (() => Schema.Union([
49
49
  Schema.Struct({
@@ -189,11 +189,11 @@ const Contact = /* @__PURE__ */ (() => Schema.Struct({
189
189
  kind: Schema.Union([Schema.Literal("time"), Schema.Literal("text")])
190
190
  }), Schema.Null]),
191
191
  sources: Schema.Array(Schema.String.check(Schema.isMaxCodePoints(160).annotate({ expected: "a string with at most 160 code points" })).check(Schema.isMaxLength(160).annotate({ expected: "a value with a length of at most 160" }))).check(Schema.isMaxLength(8).annotate({ expected: "a value with a length of at most 8" })),
192
- omittedSources: 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" }))
192
+ omittedSources: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
193
193
  }), Schema.Null])),
194
194
  evidence: Schema.Array(Schema.Struct({
195
195
  file: Schema.String,
196
- row: 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" })),
196
+ row: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
197
197
  declared: Schema.optionalKey(Schema.Union([
198
198
  Schema.Struct({ kind: Schema.Literal("status_column") }),
199
199
  Schema.Struct({
@@ -231,11 +231,11 @@ const Contact = /* @__PURE__ */ (() => Schema.Struct({
231
231
  kind: Schema.Union([Schema.Literal("time"), Schema.Literal("text")])
232
232
  }), Schema.Null]),
233
233
  sources: Schema.Array(Schema.String.check(Schema.isMaxCodePoints(160).annotate({ expected: "a string with at most 160 code points" })).check(Schema.isMaxLength(160).annotate({ expected: "a value with a length of at most 160" }))).check(Schema.isMaxLength(8).annotate({ expected: "a value with a length of at most 8" })),
234
- omittedSources: 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
+ omittedSources: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
235
235
  }), Schema.Null])),
236
236
  evidence: Schema.Array(Schema.Struct({
237
237
  file: Schema.String,
238
- row: 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" })),
238
+ row: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
239
239
  declared: Schema.optionalKey(Schema.Union([
240
240
  Schema.Struct({ kind: Schema.Literal("status_column") }),
241
241
  Schema.Struct({
@@ -381,12 +381,12 @@ const ContactsGetActivityTimeline500 = InternalError;
381
381
  const ContactsGetActivityTimeline504 = GatewayTimeoutError;
382
382
  const ContactsGetEngagementPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ContactId }))();
383
383
  const ContactsGetEngagement200 = /* @__PURE__ */ (() => Schema.Struct({
384
- 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" })),
385
- 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" })),
386
- 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" })),
387
- 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" })),
384
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
385
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
386
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
387
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
388
388
  lastActivityAt: Schema.Union([Schema.String, Schema.Null]),
389
- 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" })))
389
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })))
390
390
  }))();
391
391
  const ContactsGetEngagement400 = MalformedRequestError;
392
392
  const ContactsGetEngagement401 = UnauthorizedError;
@@ -506,8 +506,8 @@ const ContactsRemoveTags500 = InternalError;
506
506
  const ContactsRemoveTags504 = GatewayTimeoutError;
507
507
  const ContactsBulkDeleteRequestJson = /* @__PURE__ */ (() => Schema.Struct({ ids: Schema.TupleWithRest(Schema.Tuple([ContactId]), [ContactId]).check(Schema.isMaxLength(1e3).annotate({ expected: "a value with a length of at most 1000" })) }))();
508
508
  const ContactsBulkDelete200 = /* @__PURE__ */ (() => Schema.Struct({
509
- 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" })),
510
- 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" }))
509
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
510
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
511
511
  }))();
512
512
  const ContactsBulkDelete400 = MalformedRequestError;
513
513
  const ContactsBulkDelete401 = UnauthorizedError;
@@ -567,7 +567,7 @@ const ContactsExportRequestJson = /* @__PURE__ */ (() => Schema.Struct({
567
567
  const ContactsExport200 = /* @__PURE__ */ (() => Schema.Struct({
568
568
  data: Schema.String,
569
569
  format: Schema.Union([Schema.Literal("json"), Schema.Literal("csv")]),
570
- 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" }))
570
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
571
571
  }))();
572
572
  const ContactsExport400 = MalformedRequestError;
573
573
  const ContactsExport401 = UnauthorizedError;
@@ -666,7 +666,7 @@ const ContactsStartImportRequestJson = /* @__PURE__ */ (() => Schema.Union([Sche
666
666
  }), Schema.Struct({
667
667
  mode: Schema.Literal("resume"),
668
668
  jobId: ContactImportJobId,
669
- expectedGeneration: 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" }))
669
+ expectedGeneration: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
670
670
  })]))();
671
671
  const ContactsStartImport202 = /* @__PURE__ */ (() => Schema.Struct({
672
672
  id: ContactImportJobId,
@@ -685,20 +685,20 @@ const ContactsStartImport202 = /* @__PURE__ */ (() => Schema.Struct({
685
685
  Schema.Literal("completed"),
686
686
  Schema.Literal("failed")
687
687
  ]),
688
- generation: 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" })),
688
+ generation: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
689
689
  counts: Schema.Struct({
690
- totalRows: 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" })),
691
- uniqueAddresses: 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" })),
692
- subscribed: 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" })),
693
- unsubscribed: 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" })),
694
- suppressed: 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" })),
695
- 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" })),
696
- conflicts: 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" })),
697
- 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" })),
698
- existing: 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" }))
690
+ totalRows: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
691
+ uniqueAddresses: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
692
+ subscribed: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
693
+ unsubscribed: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
694
+ suppressed: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
695
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
696
+ conflicts: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
697
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
698
+ existing: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
699
699
  }),
700
- processedRows: 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" })),
701
- totalRows: 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" })),
700
+ processedRows: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
701
+ totalRows: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
702
702
  createdAt: Schema.String,
703
703
  startedAt: Schema.Union([Schema.String, Schema.Null]),
704
704
  updatedAt: Schema.String,
@@ -738,20 +738,20 @@ const ContactsGetImportJob200 = /* @__PURE__ */ (() => Schema.Struct({
738
738
  Schema.Literal("completed"),
739
739
  Schema.Literal("failed")
740
740
  ]),
741
- generation: 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" })),
741
+ generation: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
742
742
  counts: Schema.Struct({
743
- totalRows: 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" })),
744
- uniqueAddresses: 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" })),
745
- subscribed: 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" })),
746
- unsubscribed: 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" })),
747
- suppressed: 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" })),
748
- 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" })),
749
- conflicts: 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" })),
750
- 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" })),
751
- existing: 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" }))
743
+ totalRows: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
744
+ uniqueAddresses: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
745
+ subscribed: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
746
+ unsubscribed: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
747
+ suppressed: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
748
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
749
+ conflicts: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
750
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
751
+ existing: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
752
752
  }),
753
- processedRows: 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" })),
754
- totalRows: 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" })),
753
+ processedRows: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
754
+ totalRows: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
755
755
  createdAt: Schema.String,
756
756
  startedAt: Schema.Union([Schema.String, Schema.Null]),
757
757
  updatedAt: Schema.String,
@@ -820,19 +820,19 @@ const ContactsPlanImport200 = /* @__PURE__ */ (() => Schema.Struct({
820
820
  topicId: TopicId,
821
821
  canStart: Schema.Boolean,
822
822
  counts: Schema.Struct({
823
- totalRows: 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" })),
824
- uniqueAddresses: 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" })),
825
- subscribed: 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" })),
826
- unsubscribed: 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" })),
827
- suppressed: 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" })),
828
- 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" })),
829
- conflicts: 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" })),
830
- 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" })),
831
- existing: 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" }))
823
+ totalRows: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
824
+ uniqueAddresses: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
825
+ subscribed: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
826
+ unsubscribed: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
827
+ suppressed: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
828
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
829
+ conflicts: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
830
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
831
+ existing: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
832
832
  }),
833
833
  diagnostics: Schema.Array(Schema.Struct({
834
834
  file: Schema.String,
835
- row: 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" })),
835
+ row: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
836
836
  code: Schema.String,
837
837
  message: Schema.String,
838
838
  email: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
@@ -1,6 +1,6 @@
1
- import { ApiKeySecurityMiddleware, ConflictError, ContactId, ConversationId, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, JsonValue, MailboxId, MalformedRequestError, MessagePage, NamespaceId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
2
1
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
2
  import * as Schema from "effect/Schema";
3
+ import { ApiKeySecurityMiddleware, ConflictError, ContactId, ConversationId, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, JsonValue, MailboxId, MalformedRequestError, MessagePage, NamespaceId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  // src/effect/generated/conversations.ts
5
5
  const UnknownRecord = /* @__PURE__ */ (() => Schema.Record(Schema.String, JsonValue).annotate({ identifier: "UnknownRecord" }))();
6
6
  const ConversationContact = /* @__PURE__ */ (() => Schema.Struct({
@@ -35,7 +35,7 @@ const ConversationSummary = /* @__PURE__ */ (() => Schema.Struct({
35
35
  Schema.Literal("whatsapp"),
36
36
  Schema.Literal("email")
37
37
  ])),
38
- 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" })),
38
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
39
39
  urgency: Schema.Union([
40
40
  Schema.Literal("low"),
41
41
  Schema.Literal("medium"),
@@ -44,7 +44,7 @@ const ConversationSummary = /* @__PURE__ */ (() => Schema.Struct({
44
44
  ]),
45
45
  tags: Schema.Array(Schema.String),
46
46
  isTest: Schema.Boolean,
47
- 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" })),
47
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
48
48
  lastActivityAt: Schema.String,
49
49
  createdAt: Schema.String
50
50
  }).annotate({ identifier: "ConversationSummary" }))();
@@ -85,7 +85,7 @@ const Conversation = /* @__PURE__ */ (() => Schema.Struct({
85
85
  Schema.Literal("whatsapp"),
86
86
  Schema.Literal("email")
87
87
  ])),
88
- 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" })),
88
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
89
89
  urgency: Schema.Union([
90
90
  Schema.Literal("low"),
91
91
  Schema.Literal("medium"),
@@ -94,7 +94,7 @@ const Conversation = /* @__PURE__ */ (() => Schema.Struct({
94
94
  ]),
95
95
  tags: Schema.Array(Schema.String),
96
96
  isTest: Schema.Boolean,
97
- 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" })),
97
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
98
98
  lastActivityAt: Schema.String,
99
99
  createdAt: Schema.String,
100
100
  description: Schema.Union([Schema.String, Schema.Null]),
@@ -177,7 +177,7 @@ const ConversationsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
177
177
  Schema.Literal("archived")
178
178
  ]), Schema.Null])),
179
179
  statusReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
180
- 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])),
180
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null])),
181
181
  urgency: Schema.optionalKey(Schema.Union([Schema.Union([
182
182
  Schema.Literal("low"),
183
183
  Schema.Literal("medium"),
@@ -234,7 +234,7 @@ const ConversationsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
234
234
  Schema.Literal("archived")
235
235
  ]), Schema.Null])),
236
236
  statusReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
237
- 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])),
237
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null])),
238
238
  urgency: Schema.optionalKey(Schema.Union([Schema.Union([
239
239
  Schema.Literal("low"),
240
240
  Schema.Literal("medium"),
@@ -1,6 +1,6 @@
1
- import { ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
2
1
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
2
  import * as Schema from "effect/Schema";
3
+ import { ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  // src/effect/generated/custom-fields.ts
5
5
  const CustomFieldDefinitionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^cfield_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
6
6
  expected: "a string matching the RegExp ^cfield_[0-9a-hjkmnp-tv-z]{16,24}$",
@@ -21,7 +21,7 @@ const CustomFieldList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Arr
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" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
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(0x1fffffffffffff).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" }))();
@@ -45,7 +45,7 @@ const CustomFieldsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
45
45
  options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
46
46
  defaultValue: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
47
47
  isRequired: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
48
- 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
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]))
49
49
  }))();
50
50
  const CustomFieldsCreate201 = /* @__PURE__ */ (() => Schema.Struct({
51
51
  id: CustomFieldDefinitionId,
@@ -62,7 +62,7 @@ const CustomFieldsCreate201 = /* @__PURE__ */ (() => Schema.Struct({
62
62
  options: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
63
63
  defaultValue: Schema.Union([Schema.String, Schema.Null]),
64
64
  isRequired: Schema.Boolean,
65
- 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
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
66
66
  createdAt: Schema.String,
67
67
  updatedAt: Schema.String
68
68
  }))();
@@ -88,7 +88,7 @@ const CustomFieldsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
88
88
  options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
89
89
  defaultValue: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
90
90
  isRequired: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
91
- 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]))
91
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]))
92
92
  }))();
93
93
  const CustomFieldsUpdate200 = /* @__PURE__ */ (() => Schema.Struct({
94
94
  id: CustomFieldDefinitionId,
@@ -105,7 +105,7 @@ const CustomFieldsUpdate200 = /* @__PURE__ */ (() => Schema.Struct({
105
105
  options: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
106
106
  defaultValue: Schema.Union([Schema.String, Schema.Null]),
107
107
  isRequired: Schema.Boolean,
108
- 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" })),
108
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
109
109
  createdAt: Schema.String,
110
110
  updatedAt: Schema.String
111
111
  }))();