samva 0.54.0 → 0.56.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 (151) 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 +69 -6
  9. package/dist/client/sdk.gen.js +216 -9
  10. package/dist/client/types.gen.d.ts +486 -7
  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.js +2 -2
  18. package/dist/effect/campaigns.d.ts +66 -56
  19. package/dist/effect/campaigns.js +1 -1
  20. package/dist/effect/categories.js +6 -6
  21. package/dist/effect/contact-groups.js +1 -1
  22. package/dist/effect/contacts.js +1 -1
  23. package/dist/effect/conversations.js +1 -1
  24. package/dist/effect/custom-fields.js +1 -1
  25. package/dist/effect/descriptors/phone-numbers.d.ts +49 -0
  26. package/dist/effect/descriptors/phone-numbers.js +47 -0
  27. package/dist/effect/descriptors/topics.d.ts +1 -1
  28. package/dist/effect/descriptors/topics.js +1 -1
  29. package/dist/effect/descriptors/whats-app.d.ts +10 -0
  30. package/dist/effect/descriptors/whats-app.js +10 -0
  31. package/dist/effect/email.js +1 -1
  32. package/dist/effect/errors.d.ts +1 -1
  33. package/dist/effect/errors.js +2 -2
  34. package/dist/effect/events.js +2 -2
  35. package/dist/effect/feedback.js +2 -2
  36. package/dist/effect/generated/accounts.d.ts +12 -1
  37. package/dist/effect/generated/accounts.js +2 -1
  38. package/dist/effect/generated/agents.js +7 -7
  39. package/dist/effect/generated/analytics.js +16 -16
  40. package/dist/effect/generated/api-keys.js +5 -5
  41. package/dist/effect/generated/approval-requests.js +1 -1
  42. package/dist/effect/generated/attachments.js +4 -4
  43. package/dist/effect/generated/brands.js +1 -1
  44. package/dist/effect/generated/campaigns.d.ts +17 -1
  45. package/dist/effect/generated/campaigns.js +15 -14
  46. package/dist/effect/generated/contact-events.js +1 -1
  47. package/dist/effect/generated/contact-groups.js +12 -12
  48. package/dist/effect/generated/contacts.js +50 -50
  49. package/dist/effect/generated/conversations.js +7 -7
  50. package/dist/effect/generated/custom-fields.js +6 -6
  51. package/dist/effect/generated/email.js +48 -48
  52. package/dist/effect/generated/events.js +5 -5
  53. package/dist/effect/generated/feedback.js +1 -1
  54. package/dist/effect/generated/index.d.ts +3 -1
  55. package/dist/effect/generated/integrations-catalog.d.ts +16 -0
  56. package/dist/effect/generated/integrations-catalog.js +10 -6
  57. package/dist/effect/generated/integrations.js +5 -5
  58. package/dist/effect/generated/journeys.d.ts +38 -1
  59. package/dist/effect/generated/journeys.js +16 -14
  60. package/dist/effect/generated/logs.js +2 -2
  61. package/dist/effect/generated/mailboxes.d.ts +41 -3
  62. package/dist/effect/generated/mailboxes.js +48 -50
  63. package/dist/effect/generated/media.js +1 -1
  64. package/dist/effect/generated/messages.js +5 -5
  65. package/dist/effect/generated/namespaces.d.ts +9 -9
  66. package/dist/effect/generated/namespaces.js +1 -1
  67. package/dist/effect/generated/newsletter-domains.js +1 -1
  68. package/dist/effect/generated/newsletter-issues.js +69 -69
  69. package/dist/effect/generated/newsletters.js +1 -1
  70. package/dist/effect/generated/operations.js +1 -1
  71. package/dist/effect/generated/organizations.d.ts +3 -0
  72. package/dist/effect/generated/organizations.js +2 -1
  73. package/dist/effect/generated/phone-numbers.d.ts +817 -0
  74. package/dist/effect/generated/phone-numbers.js +230 -0
  75. package/dist/effect/generated/policies.js +2 -2
  76. package/dist/effect/generated/scheduled-messages.js +1 -1
  77. package/dist/effect/generated/shared.d.ts +35 -14
  78. package/dist/effect/generated/shared.js +36 -13
  79. package/dist/effect/generated/subscriptions.js +1 -1
  80. package/dist/effect/generated/template-registrations.d.ts +9 -0
  81. package/dist/effect/generated/template-registrations.js +3 -2
  82. package/dist/effect/generated/template-share-links.js +9 -9
  83. package/dist/effect/generated/templates.js +119 -119
  84. package/dist/effect/generated/topic-forms.js +1 -1
  85. package/dist/effect/generated/topics.d.ts +10 -0
  86. package/dist/effect/generated/topics.js +20 -13
  87. package/dist/effect/generated/webhooks.d.ts +19 -19
  88. package/dist/effect/generated/webhooks.js +22 -18
  89. package/dist/effect/generated/whats-app-flows.js +5 -5
  90. package/dist/effect/generated/whats-app-setup-links.js +1 -1
  91. package/dist/effect/generated/whats-app.d.ts +251 -1
  92. package/dist/effect/generated/whats-app.js +75 -20
  93. package/dist/effect/generated/whoami.js +1 -1
  94. package/dist/effect/generated-metadata.d.ts +41 -1
  95. package/dist/effect/generated-metadata.js +174 -146
  96. package/dist/effect/index.d.ts +1 -0
  97. package/dist/effect/index.js +6 -5
  98. package/dist/effect/integrations-catalog.js +1 -1
  99. package/dist/effect/integrations.js +1 -1
  100. package/dist/effect/internal/client.js +6 -6
  101. package/dist/effect/internal/email-sender.js +3 -3
  102. package/dist/effect/internal/log-events.js +2 -2
  103. package/dist/effect/internal/mailbox-events.js +1 -1
  104. package/dist/effect/internal/operation.js +2 -2
  105. package/dist/effect/internal/send.js +4 -4
  106. package/dist/effect/journeys.d.ts +10 -0
  107. package/dist/effect/journeys.js +1 -1
  108. package/dist/effect/logs.js +1 -1
  109. package/dist/effect/mailboxes.d.ts +191 -191
  110. package/dist/effect/mailboxes.js +3 -3
  111. package/dist/effect/media.js +2 -2
  112. package/dist/effect/messages.js +2 -2
  113. package/dist/effect/namespaces.d.ts +2 -2
  114. package/dist/effect/namespaces.js +1 -1
  115. package/dist/effect/newsletter-domains.js +1 -1
  116. package/dist/effect/newsletter-issues.js +1 -1
  117. package/dist/effect/newsletters.js +1 -1
  118. package/dist/effect/operations.js +1 -1
  119. package/dist/effect/organizations.js +1 -1
  120. package/dist/effect/phone-numbers.d.ts +22 -0
  121. package/dist/effect/phone-numbers.js +21 -0
  122. package/dist/effect/policies.js +1 -1
  123. package/dist/effect/retry.js +3 -3
  124. package/dist/effect/scheduled-messages.d.ts +350 -350
  125. package/dist/effect/scheduled-messages.js +1 -1
  126. package/dist/effect/subscriptions.js +1 -1
  127. package/dist/effect/template-registrations.js +1 -1
  128. package/dist/effect/template-share-links.js +1 -1
  129. package/dist/effect/templates.js +2 -2
  130. package/dist/effect/topic-forms.js +1 -1
  131. package/dist/effect/topics.d.ts +70 -2
  132. package/dist/effect/topics.js +1 -1
  133. package/dist/effect/webhooks.d.ts +4 -4
  134. package/dist/effect/webhooks.js +2 -2
  135. package/dist/effect/whatsapp-flows.js +1 -1
  136. package/dist/effect/whatsapp-setup-links.js +1 -1
  137. package/dist/effect/whatsapp.d.ts +16 -0
  138. package/dist/effect/whatsapp.js +4 -2
  139. package/dist/effect/whoami.js +1 -1
  140. package/dist/index.js +2 -2
  141. package/dist/package.json.js +5 -0
  142. package/dist/promises/client.d.ts +3 -1
  143. package/dist/promises/client.js +7 -5
  144. package/dist/promises/errors.gen.d.ts +16 -2
  145. package/dist/promises/errors.gen.js +48 -11
  146. package/dist/promises/index.js +3 -3
  147. package/dist/promises/types.gen.d.ts +1 -1
  148. package/dist/request-policy.js +1 -1
  149. package/dist/service-map.d.ts +30 -0
  150. package/package.json +9 -5
  151. package/dist/package.js +0 -5
@@ -1,6 +1,6 @@
1
- import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, EmailChannelError, EmailDomainId, EmailSenderId, ExternalServiceError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MailboxId, MalformedRequestError, MediaId, MessageId, NamespaceId, OperationId, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SendsSeries, ServiceUnavailableError, TopicId, UnauthorizedError, ValidationError, WebhookEndpointId } 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, EmailChannelError, EmailDomainId, EmailSenderId, ExternalServiceError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MailboxId, MalformedRequestError, MediaId, MessageId, NamespaceId, OperationId, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SendsSeries, ServiceUnavailableError, TopicId, UnauthorizedError, ValidationError, WebhookEndpointId } from "./shared.js";
4
4
  // src/effect/generated/email.ts
5
5
  const BlockedEmailId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^blk_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
6
6
  expected: "a string matching the RegExp ^blk_[0-9a-hjkmnp-tv-z]{16,24}$",
@@ -17,7 +17,7 @@ const BlockedEmailLogId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPa
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" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
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(0x1fffffffffffff).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"),
@@ -97,8 +97,8 @@ const EmailDomainProvisioningExecution = /* @__PURE__ */ (() => Schema.Struct({
97
97
  Schema.Literal("succeeded"),
98
98
  Schema.Literal("failed")
99
99
  ]),
100
- 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" })),
101
- 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" }))
100
+ generation: 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" })),
101
+ revision: 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" }))
102
102
  }).annotate({ identifier: "EmailDomainProvisioningExecution" }))();
103
103
  const EmailDomainWarmingPlanId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^warm_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
104
104
  expected: "a string matching the RegExp ^warm_[0-9a-hjkmnp-tv-z]{16,24}$",
@@ -143,7 +143,7 @@ const IdentityClearanceStatus = /* @__PURE__ */ (() => Schema.Struct({
143
143
  Schema.Literal("approved"),
144
144
  Schema.Literal("rejected")
145
145
  ]),
146
- 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" })),
146
+ generation: 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" })),
147
147
  canSend: Schema.Boolean,
148
148
  code: Schema.Union([Schema.Union([
149
149
  Schema.Literal("review_required"),
@@ -168,10 +168,10 @@ const SuppressionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPatter
168
168
  identifier: "SuppressionId"
169
169
  })).pipe(Schema.brand("SuppressionId")))();
170
170
  const SuppressionCounts = /* @__PURE__ */ (() => Schema.Struct({
171
- 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" })),
172
- 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" })),
173
- 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" })),
174
- 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" }))
171
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
172
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
173
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
174
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
175
175
  }).annotate({ identifier: "SuppressionCounts" }))();
176
176
  const EmailTrackingDefaults = /* @__PURE__ */ (() => Schema.Struct({
177
177
  opens: Schema.Boolean,
@@ -212,7 +212,7 @@ const BlockPage = /* @__PURE__ */ (() => Schema.Struct({
212
212
  reason: Schema.String,
213
213
  notes: Schema.Union([Schema.String, Schema.Null]),
214
214
  isActive: Schema.Boolean,
215
- 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" })),
215
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
216
216
  lastBlockedAt: Schema.Union([Schema.String, Schema.Null]),
217
217
  expiresAt: Schema.Union([Schema.String, Schema.Null]),
218
218
  createdAt: Schema.String
@@ -279,8 +279,8 @@ const ReceivingStatus = /* @__PURE__ */ (() => Schema.Struct({
279
279
  destination: Schema.Struct({
280
280
  satisfied: Schema.Boolean,
281
281
  endpointId: Schema.Union([WebhookEndpointId, Schema.Null]),
282
- 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" })),
283
- 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" }))
282
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
283
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
284
284
  }),
285
285
  receiving: Schema.Struct({
286
286
  satisfied: Schema.Boolean,
@@ -296,11 +296,11 @@ const ReceivingStatus = /* @__PURE__ */ (() => Schema.Struct({
296
296
  ]),
297
297
  expected: Schema.Struct({
298
298
  exchange: Schema.String,
299
- 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" }))
299
+ 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" }))
300
300
  }),
301
301
  current: Schema.Array(Schema.Struct({
302
302
  exchange: Schema.String,
303
- 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" }))
303
+ 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" }))
304
304
  }))
305
305
  }),
306
306
  ready: Schema.Boolean
@@ -362,7 +362,7 @@ const EmailDomainDetailed = /* @__PURE__ */ (() => Schema.Struct({
362
362
  value: Schema.String,
363
363
  ttl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
364
364
  description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
365
- 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]))
365
+ 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]))
366
366
  })),
367
367
  verifiedAt: Schema.Union([Schema.String, Schema.Null]),
368
368
  namespaceId: Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the domain belongs to, or null at organization level. Namespace callers also reach organization-level domains whose shared flag is true." }),
@@ -405,12 +405,12 @@ const DeliverabilityInsights = /* @__PURE__ */ (() => Schema.Struct({
405
405
  end: Schema.String,
406
406
  providers: Schema.Array(Schema.Struct({
407
407
  mailboxProvider: Schema.String,
408
- sent: 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" })),
409
- delivered: 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" })),
410
- permanentBounces: 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" })),
411
- transientBounces: 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" })),
412
- complaintEligibleDeliveries: 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" })),
413
- complaints: 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" })),
408
+ sent: 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" })),
409
+ delivered: 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" })),
410
+ permanentBounces: 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" })),
411
+ transientBounces: 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" })),
412
+ complaintEligibleDeliveries: 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" })),
413
+ complaints: 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" })),
414
414
  deliveryRate: 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]).annotate({ description: "A fraction (0.01 is 1%), or null when the denominator is zero." }),
415
415
  permanentBounceRate: 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]).annotate({ description: "A fraction (0.01 is 1%), or null when the denominator is zero." }),
416
416
  transientBounceRate: 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]).annotate({ description: "A fraction (0.01 is 1%), or null when the denominator is zero." }),
@@ -418,10 +418,10 @@ const DeliverabilityInsights = /* @__PURE__ */ (() => Schema.Struct({
418
418
  })),
419
419
  recommendations: Schema.Union([Schema.Array(DeliverabilityRecommendation), Schema.Null]).annotate({ description: "Findings for this domain, or null if recommendations are temporarily unavailable." }),
420
420
  samvaTracking: Schema.Struct({
421
- openEligibleDeliveries: 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" })),
422
- clickEligibleDeliveries: 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" })),
423
- uniqueOpens: 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" })),
424
- uniqueClicks: 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" })),
421
+ openEligibleDeliveries: 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" })),
422
+ clickEligibleDeliveries: 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" })),
423
+ uniqueOpens: 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" })),
424
+ uniqueClicks: 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" })),
425
425
  openRate: 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]).annotate({ description: "A fraction (0.01 is 1%), or null when the denominator is zero." }),
426
426
  clickRate: 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]).annotate({ description: "A fraction (0.01 is 1%), or null when the denominator is zero." })
427
427
  })
@@ -509,10 +509,10 @@ const ForwardingRuleList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.
509
509
  sourcePattern: Schema.Union([Schema.String, Schema.Null]),
510
510
  forwardTo: Schema.Array(Schema.String),
511
511
  preserveHeaders: Schema.Boolean,
512
- 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" })),
512
+ 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(0x7fffffff).annotate({ expected: "a value less than or equal to 2147483647" })),
513
513
  isActive: Schema.Boolean,
514
- 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" })),
515
- 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" })),
514
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
515
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
516
516
  lastForwardedAt: Schema.Union([Schema.String, Schema.Null]),
517
517
  createdAt: Schema.String
518
518
  })).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })) }).annotate({ identifier: "ForwardingRuleList" }))();
@@ -554,7 +554,7 @@ const OnboardingReviewStatus = /* @__PURE__ */ (() => Schema.Struct({
554
554
  Schema.Literal("information_requested"),
555
555
  Schema.Literal("complete")
556
556
  ]),
557
- 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" })),
557
+ generation: 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" })),
558
558
  canSend: Schema.Boolean,
559
559
  code: Schema.Union([Schema.Union([
560
560
  Schema.Literal("review_required"),
@@ -653,11 +653,11 @@ const EmailDomainVerification = /* @__PURE__ */ (() => Schema.Struct({
653
653
  ]),
654
654
  dns: Schema.Struct({
655
655
  observed: Schema.Boolean,
656
- 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" })),
657
- 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" })),
658
- 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" })),
659
- 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" })),
660
- 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" }))
656
+ total: 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" })),
657
+ satisfied: 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" })),
658
+ missing: 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" })),
659
+ mismatch: 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" })),
660
+ unknown: 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" }))
661
661
  }),
662
662
  requirements: Schema.Array(Schema.Struct({
663
663
  key: Schema.String,
@@ -678,7 +678,7 @@ const EmailDomainVerification = /* @__PURE__ */ (() => Schema.Struct({
678
678
  value: Schema.String,
679
679
  ttl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
680
680
  description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
681
- 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]))
681
+ 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]))
682
682
  }),
683
683
  status: Schema.Union([
684
684
  Schema.Literal("satisfied"),
@@ -968,7 +968,7 @@ const EmailGetCatchAllConfig200 = /* @__PURE__ */ (() => Schema.Struct({
968
968
  unknownRecipientMailboxId: Schema.Union([MailboxId, Schema.Null]).annotate({ description: "The active mailbox on this domain that receives unknown addresses when catch-all has no webhook endpoint, or null to drop them without a bounce." }),
969
969
  enabled: Schema.Boolean,
970
970
  endpointId: Schema.Union([WebhookEndpointId, Schema.Null]),
971
- 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" })),
971
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
972
972
  lastEmailAt: Schema.Union([Schema.String, Schema.Null])
973
973
  }))();
974
974
  const EmailGetCatchAllConfig400 = MalformedRequestError;
@@ -999,10 +999,10 @@ const EmailGetCatchAllStatsQuery = /* @__PURE__ */ (() => Schema.Struct({
999
999
  const EmailGetCatchAllStats200 = /* @__PURE__ */ (() => Schema.Struct({
1000
1000
  domain: Schema.String,
1001
1001
  isCatchAllEnabled: Schema.Boolean,
1002
- 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" })),
1002
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
1003
1003
  catchAllLastEmailAt: Schema.Union([Schema.String, Schema.Null]),
1004
1004
  timeRange: Schema.optionalKey(Schema.Union([Schema.Struct({
1005
- 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" })),
1005
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
1006
1006
  firstEmail: Schema.Union([Schema.String, Schema.Null]),
1007
1007
  lastEmail: Schema.Union([Schema.String, Schema.Null]),
1008
1008
  avgPerDay: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
@@ -1451,7 +1451,7 @@ const EmailCreateForwardingRuleRequestJson = /* @__PURE__ */ (() => Schema.Struc
1451
1451
  preserveHeaders: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1452
1452
  appendNote: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1453
1453
  conditions: Schema.optionalKey(Schema.Union([ForwardingConditions, Schema.Null])),
1454
- priority: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(2147483647).annotate({ expected: "a value less than or equal to 2147483647" })), Schema.Null])),
1454
+ 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(0x7fffffff).annotate({ expected: "a value less than or equal to 2147483647" })), Schema.Null])),
1455
1455
  isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1456
1456
  metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null]))
1457
1457
  }))();
@@ -1459,7 +1459,7 @@ const EmailCreateForwardingRule201 = /* @__PURE__ */ (() => Schema.Struct({
1459
1459
  id: EmailForwardingRuleId,
1460
1460
  name: Schema.String,
1461
1461
  forwardTo: Schema.Array(Schema.String),
1462
- 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" })),
1462
+ 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(0x7fffffff).annotate({ expected: "a value less than or equal to 2147483647" })),
1463
1463
  isActive: Schema.Boolean,
1464
1464
  createdAt: Schema.String
1465
1465
  }))();
@@ -1490,7 +1490,7 @@ const EmailUpdateForwardingRuleRequestJson = /* @__PURE__ */ (() => Schema.Struc
1490
1490
  preserveHeaders: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1491
1491
  appendNote: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1492
1492
  conditions: Schema.optionalKey(Schema.Union([ForwardingConditions, Schema.Null])),
1493
- priority: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(2147483647).annotate({ expected: "a value less than or equal to 2147483647" })), Schema.Null])),
1493
+ 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(0x7fffffff).annotate({ expected: "a value less than or equal to 2147483647" })), Schema.Null])),
1494
1494
  isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1495
1495
  metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null]))
1496
1496
  }))();
@@ -1498,7 +1498,7 @@ const EmailUpdateForwardingRule200 = /* @__PURE__ */ (() => Schema.Struct({
1498
1498
  id: EmailForwardingRuleId,
1499
1499
  name: Schema.String,
1500
1500
  forwardTo: Schema.Array(Schema.String),
1501
- 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" })),
1501
+ 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(0x7fffffff).annotate({ expected: "a value less than or equal to 2147483647" })),
1502
1502
  isActive: Schema.Boolean,
1503
1503
  updatedAt: Schema.String
1504
1504
  }))();
@@ -1535,7 +1535,7 @@ const EmailGetOnboardingReview403 = ForbiddenError;
1535
1535
  const EmailGetOnboardingReview422 = ValidationError;
1536
1536
  const EmailGetOnboardingReview500 = InternalError;
1537
1537
  const EmailGetOnboardingReview504 = GatewayTimeoutError;
1538
- 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" })) }))();
1538
+ const EmailReapplyOnboardingReviewRequestJson = /* @__PURE__ */ (() => Schema.Struct({ expectedGeneration: 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" })) }))();
1539
1539
  const EmailReapplyOnboardingReview200 = OnboardingReviewStatus;
1540
1540
  const EmailReapplyOnboardingReview400 = MalformedRequestError;
1541
1541
  const EmailReapplyOnboardingReview401 = UnauthorizedError;
@@ -1545,7 +1545,7 @@ const EmailReapplyOnboardingReview422 = ValidationError;
1545
1545
  const EmailReapplyOnboardingReview500 = InternalError;
1546
1546
  const EmailReapplyOnboardingReview504 = GatewayTimeoutError;
1547
1547
  const EmailRespondToOnboardingInformationRequestRequestJson = /* @__PURE__ */ (() => Schema.Struct({
1548
- 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" })),
1548
+ expectedGeneration: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
1549
1549
  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" })),
1550
1550
  evidenceMediaIds: Schema.Array(MediaId).check(Schema.isMaxLength(3).annotate({ expected: "a value with a length of at most 3" }))
1551
1551
  }))();
@@ -1707,10 +1707,10 @@ const EmailGetStatsQuery = /* @__PURE__ */ (() => Schema.Struct({
1707
1707
  before: Schema.optionalKey(Schema.String)
1708
1708
  }))();
1709
1709
  const EmailGetStats200 = /* @__PURE__ */ (() => Schema.Struct({
1710
- 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" })),
1711
- 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" })),
1712
- 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" })),
1713
- 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" })),
1710
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
1711
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
1712
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
1713
+ 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
1714
1714
  deliveryRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
1715
1715
  bounceRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
1716
1716
  complaintRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
@@ -1,13 +1,13 @@
1
- import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactEvent, ContactEventReference, CreateEventPayload, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MalformedRequestError, PaymentRequiredError, 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, BillingProviderError, ConflictError, ContactEvent, ContactEventReference, CreateEventPayload, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MalformedRequestError, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  // src/effect/generated/events.ts
5
5
  const BatchEventsResult = /* @__PURE__ */ (() => Schema.Struct({
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" })),
6
+ total: 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" })),
7
+ accepted: 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" })),
8
+ errors: 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" })),
9
9
  results: Schema.Array(Schema.Struct({
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" })),
10
+ index: 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" })),
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]))
@@ -1,6 +1,6 @@
1
- import { ApiKeySecurityMiddleware, FeedbackContext, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, 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, FeedbackContext, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  // src/effect/generated/feedback.ts
5
5
  const FeedbackId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^fdbk_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
6
6
  expected: "a string matching the RegExp ^fdbk_[0-9a-hjkmnp-tv-z]{16,24}$",
@@ -28,6 +28,7 @@ import { NewsletterIssuesGroup } from "./newsletter-issues.js";
28
28
  import { NewslettersGroup } from "./newsletters.js";
29
29
  import { OperationsGroup } from "./operations.js";
30
30
  import { OrganizationsGroup } from "./organizations.js";
31
+ import { PhoneNumbersGroup } from "./phone-numbers.js";
31
32
  import { PoliciesGroup } from "./policies.js";
32
33
  import { ScheduledMessagesGroup } from "./scheduled-messages.js";
33
34
  import { SubscriptionsGroup } from "./subscriptions.js";
@@ -72,6 +73,7 @@ export * from "./newsletter-domains.js";
72
73
  export * from "./newsletter-issues.js";
73
74
  export * from "./operations.js";
74
75
  export * from "./organizations.js";
76
+ export * from "./phone-numbers.js";
75
77
  export * from "./policies.js";
76
78
  export * from "./subscriptions.js";
77
79
  export * from "./template-share-links.js";
@@ -84,6 +86,6 @@ export * from "./whats-app.js";
84
86
  export * from "./whats-app-flows.js";
85
87
  export * from "./whats-app-setup-links.js";
86
88
  export * from "./whoami.js";
87
- declare const SamvaApi_base: HttpApi.HttpApi<"SamvaApi", typeof AccountsGroup | typeof AgentsGroup | typeof AnalyticsGroup | typeof APIKeysGroup | typeof ApprovalRequestsGroup | typeof AttachmentsGroup | typeof BrandsGroup | typeof CampaignsGroup | typeof ContactEventsGroup | typeof ContactGroupsGroup | typeof ContactsGroup | typeof ConversationsGroup | typeof CustomFieldsGroup | typeof EmailGroup | typeof EventsGroup | typeof FeedbackGroup | typeof IntegrationsGroup | typeof IntegrationsCatalogGroup | typeof JourneysGroup | typeof LogsGroup | typeof MailboxesGroup | typeof MediaGroup | typeof MessagesGroup | typeof NamespacesGroup | typeof NewsletterDomainsGroup | typeof NewsletterIssuesGroup | typeof NewslettersGroup | typeof OperationsGroup | typeof OrganizationsGroup | typeof PoliciesGroup | typeof ScheduledMessagesGroup | typeof SubscriptionsGroup | typeof TemplateRegistrationsGroup | typeof TemplateShareLinksGroup | typeof TemplatesGroup | typeof TopicFormsGroup | typeof TopicsGroup | typeof WebhooksGroup | typeof WhatsAppGroup | typeof WhatsAppFlowsGroup | typeof WhatsAppSetupLinksGroup | typeof WhoamiGroup>;
89
+ declare const SamvaApi_base: HttpApi.HttpApi<"SamvaApi", typeof AccountsGroup | typeof AgentsGroup | typeof AnalyticsGroup | typeof APIKeysGroup | typeof ApprovalRequestsGroup | typeof AttachmentsGroup | typeof BrandsGroup | typeof CampaignsGroup | typeof ContactEventsGroup | typeof ContactGroupsGroup | typeof ContactsGroup | typeof ConversationsGroup | typeof CustomFieldsGroup | typeof EmailGroup | typeof EventsGroup | typeof FeedbackGroup | typeof IntegrationsGroup | typeof IntegrationsCatalogGroup | typeof JourneysGroup | typeof LogsGroup | typeof MailboxesGroup | typeof MediaGroup | typeof MessagesGroup | typeof NamespacesGroup | typeof NewsletterDomainsGroup | typeof NewsletterIssuesGroup | typeof NewslettersGroup | typeof OperationsGroup | typeof OrganizationsGroup | typeof PhoneNumbersGroup | typeof PoliciesGroup | typeof ScheduledMessagesGroup | typeof SubscriptionsGroup | typeof TemplateRegistrationsGroup | typeof TemplateShareLinksGroup | typeof TemplatesGroup | typeof TopicFormsGroup | typeof TopicsGroup | typeof WebhooksGroup | typeof WhatsAppGroup | typeof WhatsAppFlowsGroup | typeof WhatsAppSetupLinksGroup | typeof WhoamiGroup>;
88
90
  export declare class SamvaApi extends SamvaApi_base {
89
91
  }
@@ -239,6 +239,10 @@ export type RecipeReadinessResponse = {
239
239
  readonly accountId: WhatsAppBusinessAccountId;
240
240
  readonly address: string;
241
241
  readonly status: "ready" | "reconnect" | "unverified" | "inactive";
242
+ readonly sendingLock: {
243
+ readonly lockedAt: string;
244
+ readonly reason: string;
245
+ } | null;
242
246
  readonly registration: {
243
247
  readonly id: TemplateRegistrationId;
244
248
  readonly status: "draft" | "submitted" | "approved" | "rejected" | "paused" | "disabled";
@@ -281,6 +285,10 @@ export declare const RecipeReadinessResponse: Schema.Struct<{
281
285
  readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
282
286
  readonly address: Schema.String;
283
287
  readonly status: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"reconnect">, Schema.Literal<"unverified">, Schema.Literal<"inactive">]>;
288
+ readonly sendingLock: Schema.Union<readonly [Schema.Struct<{
289
+ readonly lockedAt: Schema.String;
290
+ readonly reason: Schema.String;
291
+ }>, Schema.Null]>;
284
292
  readonly registration: Schema.Union<readonly [Schema.Struct<{
285
293
  readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
286
294
  readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
@@ -991,6 +999,10 @@ export declare const IntegrationCatalogRecipeReadiness200: Schema.Struct<{
991
999
  readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
992
1000
  readonly address: Schema.String;
993
1001
  readonly status: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"reconnect">, Schema.Literal<"unverified">, Schema.Literal<"inactive">]>;
1002
+ readonly sendingLock: Schema.Union<readonly [Schema.Struct<{
1003
+ readonly lockedAt: Schema.String;
1004
+ readonly reason: Schema.String;
1005
+ }>, Schema.Null]>;
994
1006
  readonly registration: Schema.Union<readonly [Schema.Struct<{
995
1007
  readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
996
1008
  readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
@@ -1870,6 +1882,10 @@ declare const IntegrationsCatalogGroup_base: HttpApiGroup.HttpApiGroup<"Integrat
1870
1882
  readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
1871
1883
  readonly address: Schema.String;
1872
1884
  readonly status: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"reconnect">, Schema.Literal<"unverified">, Schema.Literal<"inactive">]>;
1885
+ readonly sendingLock: Schema.Union<readonly [Schema.Struct<{
1886
+ readonly lockedAt: Schema.String;
1887
+ readonly reason: Schema.String;
1888
+ }>, Schema.Null]>;
1873
1889
  readonly registration: Schema.Union<readonly [Schema.Struct<{
1874
1890
  readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
1875
1891
  readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
@@ -1,6 +1,6 @@
1
- import { AccountStatus, ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailDomainId, EmailSenderId, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IntegrationAccountId, IntegrationKey, IntegrationStatus, InternalError, JourneyId, JourneyStatus, JsonObject, MailboxEndpointId, MailboxId, MalformedRequestError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RecipeSetupReferences, ResourceNotFoundError, SenderNotReadyError, TemplateId, TemplatePublicationId, TemplateRegistrationId, TopicId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId } from "./shared.js";
2
1
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
2
  import * as Schema from "effect/Schema";
3
+ import { AccountStatus, ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailDomainId, EmailSenderId, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IntegrationAccountId, IntegrationKey, IntegrationStatus, InternalError, JourneyId, JourneyStatus, JsonObject, MailboxEndpointId, MailboxId, MalformedRequestError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RecipeSetupReferences, ResourceNotFoundError, SenderNotReadyError, TemplateId, TemplatePublicationId, TemplateRegistrationId, TopicId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId } from "./shared.js";
4
4
  // src/effect/generated/integrations-catalog.ts
5
5
  const RecipeHandoff = /* @__PURE__ */ (() => Schema.Struct({
6
6
  url: Schema.String,
@@ -95,7 +95,7 @@ const RecipeCatalogResponse = /* @__PURE__ */ (() => Schema.Struct({
95
95
  Schema.Literal("shopify.refund_created"),
96
96
  Schema.Literal("shopify.checkout_started")
97
97
  ]),
98
- waitDays: 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" })),
98
+ waitDays: 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" })),
99
99
  channels: Schema.Array(Schema.Union([Schema.Literal("email"), Schema.Literal("whatsapp")]))
100
100
  })),
101
101
  events: Schema.Array(Schema.Struct({
@@ -106,7 +106,7 @@ const RecipeCatalogResponse = /* @__PURE__ */ (() => Schema.Struct({
106
106
  Schema.Literal("shopify.refund_created"),
107
107
  Schema.Literal("shopify.checkout_started")
108
108
  ]),
109
- 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" })),
109
+ version: 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" })),
110
110
  producer: Schema.String,
111
111
  schema: JsonObject,
112
112
  paths: Schema.Array(Schema.Struct({
@@ -191,6 +191,10 @@ const RecipeReadinessResponse = /* @__PURE__ */ (() => Schema.Struct({
191
191
  Schema.Literal("unverified"),
192
192
  Schema.Literal("inactive")
193
193
  ]),
194
+ sendingLock: Schema.Union([Schema.Struct({
195
+ lockedAt: Schema.String,
196
+ reason: Schema.String
197
+ }), Schema.Null]).annotate({ description: "The account lock reported by Meta when sending, or null. A later successful message status clears it." }),
194
198
  registration: Schema.Union([Schema.Struct({
195
199
  id: TemplateRegistrationId,
196
200
  status: Schema.Union([
@@ -248,8 +252,8 @@ const IntegrationCatalogEntry = /* @__PURE__ */ (() => Schema.Struct({
248
252
  href: Schema.optionalKey(Schema.Union([Schema.Literal("/whatsapp"), Schema.Null])),
249
253
  connections: Schema.Array(IntegrationCatalogConnection),
250
254
  usedBy: Schema.Struct({
251
- agents: Schema.Finite.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" })),
252
- journeys: Schema.Finite.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" }))
255
+ agents: Schema.Finite.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" })),
256
+ journeys: Schema.Finite.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" }))
253
257
  })
254
258
  }).annotate({ identifier: "IntegrationCatalogEntry" }))();
255
259
  const RecipeSetup = /* @__PURE__ */ (() => Schema.Struct({
@@ -265,7 +269,7 @@ const ActivatedRecipeSetup = /* @__PURE__ */ (() => Schema.Struct({
265
269
  journey: Schema.Struct({
266
270
  id: JourneyId,
267
271
  status: JourneyStatus,
268
- publishedVersion: 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" }))
272
+ publishedVersion: 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" }))
269
273
  })
270
274
  }).annotate({ identifier: "ActivatedRecipeSetup" }))();
271
275
  const IntegrationCatalogList200 = IntegrationCatalogResponse;
@@ -1,6 +1,6 @@
1
- import { AccountLinks, AnswerWithoutApproval, ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, IntegrationId, IntegrationKey, IntegrationStatus, IntegrationTool, InternalError, JsonObject, MalformedRequestError, ResourceNotFoundError, UnauthorizedError, UserId, 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 { AccountLinks, AnswerWithoutApproval, ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, IntegrationId, IntegrationKey, IntegrationStatus, IntegrationTool, InternalError, JsonObject, MalformedRequestError, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared.js";
4
4
  // src/effect/generated/integrations.ts
5
5
  const IntegrationToolKind = /* @__PURE__ */ (() => Schema.Union([Schema.Literal("query"), Schema.Literal("mutation")]).annotate({ identifier: "IntegrationToolKind" }))();
6
6
  const DeleteIntegrationResponse = /* @__PURE__ */ (() => Schema.Struct({
@@ -128,14 +128,14 @@ const IntegrationsReadToolPathParams = /* @__PURE__ */ (() => Schema.Struct({
128
128
  tool: IntegrationTool
129
129
  }))();
130
130
  const IntegrationsReadToolQuery = /* @__PURE__ */ (() => Schema.Struct({
131
- offset: 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])),
131
+ offset: 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])),
132
132
  revision: Schema.optionalKey(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })))
133
133
  }))();
134
134
  const IntegrationsReadTool200 = /* @__PURE__ */ (() => Schema.Struct({
135
135
  data: Schema.String.check(Schema.isMaxCodePoints(32e3).annotate({ expected: "a string with at most 32000 code points" })).check(Schema.isMaxLength(32e3).annotate({ expected: "a value with a length of at most 32000" })),
136
- offset: Schema.Finite.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" })),
137
- nextOffset: 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]),
138
- totalCharacters: Schema.Finite.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" })),
136
+ offset: Schema.Finite.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" })),
137
+ nextOffset: 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]),
138
+ totalCharacters: Schema.Finite.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" })),
139
139
  revision: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
140
140
  }))();
141
141
  const IntegrationsReadTool400 = MalformedRequestError;