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,14 +1,14 @@
1
1
  import { SensitiveString } from "../runtime.js";
2
- import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MailboxId, MalformedRequestError, NamespaceId, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError, WebhookEndpointId } from "./shared.js";
3
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
4
3
  import * as Schema from "effect/Schema";
4
+ import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MailboxId, MalformedRequestError, NamespaceId, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError, WebhookEndpointId } from "./shared.js";
5
5
  // src/effect/generated/webhooks.ts
6
6
  const WebhookDeliveryCounts = /* @__PURE__ */ (() => Schema.Struct({
7
- 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" })),
8
- pending: Schema.Finite.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" })),
9
- delivered: Schema.Finite.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" })),
10
- exhausted: Schema.Finite.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" })),
11
- cancelled: Schema.Finite.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" }))
7
+ 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" })),
8
+ pending: Schema.Finite.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" })),
9
+ delivered: Schema.Finite.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" })),
10
+ exhausted: Schema.Finite.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" })),
11
+ cancelled: Schema.Finite.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" }))
12
12
  }).annotate({ identifier: "WebhookDeliveryCounts" }))();
13
13
  const WebhookDeliveryId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^whdel_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
14
14
  expected: "a string matching the RegExp ^whdel_[0-9a-hjkmnp-tv-z]{16,24}$",
@@ -24,10 +24,10 @@ const WebhookEventId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPatte
24
24
  })).pipe(Schema.brand("WebhookEventId")))();
25
25
  const WebhookDailyDeliveries = /* @__PURE__ */ (() => Schema.Struct({
26
26
  date: Schema.String,
27
- pending: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
28
- delivered: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
29
- exhausted: Schema.Finite.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" })),
30
- cancelled: Schema.Finite.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
+ pending: Schema.Finite.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
+ delivered: Schema.Finite.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" })),
29
+ exhausted: Schema.Finite.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" })),
30
+ cancelled: Schema.Finite.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" }))
31
31
  }).annotate({ identifier: "WebhookDailyDeliveries" }))();
32
32
  const WebhookSigningSecret = /* @__PURE__ */ (() => Schema.Struct({
33
33
  secret: SensitiveString,
@@ -69,6 +69,7 @@ const WebhookEndpoint = /* @__PURE__ */ (() => Schema.Struct({
69
69
  Schema.Literal("template.registration.updated"),
70
70
  Schema.Literal("flow.registration.updated"),
71
71
  Schema.Literal("whatsapp.number.connected"),
72
+ Schema.Literal("whatsapp.number.updated"),
72
73
  Schema.Literal("mailbox.message.received"),
73
74
  Schema.Literal("mailbox.message.sent"),
74
75
  Schema.Literal("mailbox.action.pending_approval"),
@@ -130,6 +131,7 @@ const WebhookEndpointListItem = /* @__PURE__ */ (() => Schema.Struct({
130
131
  Schema.Literal("template.registration.updated"),
131
132
  Schema.Literal("flow.registration.updated"),
132
133
  Schema.Literal("whatsapp.number.connected"),
134
+ Schema.Literal("whatsapp.number.updated"),
133
135
  Schema.Literal("mailbox.message.received"),
134
136
  Schema.Literal("mailbox.message.sent"),
135
137
  Schema.Literal("mailbox.action.pending_approval"),
@@ -170,7 +172,7 @@ const WebhookDeliveryPage = /* @__PURE__ */ (() => Schema.Struct({
170
172
  Schema.Literal("exhausted"),
171
173
  Schema.Literal("cancelled")
172
174
  ]),
173
- automaticAttempts: Schema.Finite.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" })),
175
+ automaticAttempts: Schema.Finite.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
176
  nextAttemptAt: Schema.Union([Schema.String, Schema.Null]),
175
177
  completedAt: Schema.Union([Schema.String, Schema.Null]),
176
178
  createdAt: Schema.String,
@@ -184,7 +186,7 @@ const WebhookDeliveryPage = /* @__PURE__ */ (() => Schema.Struct({
184
186
  Schema.Literal("replay")
185
187
  ]),
186
188
  queueMessageId: Schema.Union([Schema.String, Schema.Null]),
187
- attemptNumber: 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" })),
189
+ attemptNumber: 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" })),
188
190
  classification: Schema.Union([
189
191
  Schema.Literal("success"),
190
192
  Schema.Literal("http-error"),
@@ -194,7 +196,7 @@ const WebhookDeliveryPage = /* @__PURE__ */ (() => Schema.Struct({
194
196
  Schema.Literal("skipped")
195
197
  ]),
196
198
  attemptedAt: Schema.String,
197
- responseStatus: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]),
199
+ responseStatus: Schema.Union([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" })), Schema.Null]),
198
200
  responseHeaders: Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]),
199
201
  durationMs: 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]),
200
202
  errorCode: Schema.Union([Schema.String, Schema.Null]),
@@ -205,11 +207,11 @@ const WebhookDeliveryPage = /* @__PURE__ */ (() => Schema.Struct({
205
207
  nextCursor: Schema.Union([Schema.String, Schema.Null])
206
208
  }).annotate({ identifier: "WebhookDeliveryPage" }))();
207
209
  const WebhookStatsResponse = /* @__PURE__ */ (() => Schema.Struct({
208
- 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" })),
209
- pending: Schema.Finite.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" })),
210
- delivered: Schema.Finite.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" })),
211
- exhausted: Schema.Finite.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" })),
212
- cancelled: Schema.Finite.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" })),
210
+ 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" })),
211
+ pending: Schema.Finite.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" })),
212
+ delivered: Schema.Finite.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" })),
213
+ exhausted: Schema.Finite.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" })),
214
+ cancelled: Schema.Finite.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" })),
213
215
  daily: Schema.Array(WebhookDailyDeliveries),
214
216
  latestAttempt: Schema.Union([Schema.Struct({
215
217
  errorCode: Schema.Union([Schema.String, Schema.Null]),
@@ -268,6 +270,7 @@ const WebhooksCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
268
270
  Schema.Literal("template.registration.updated"),
269
271
  Schema.Literal("flow.registration.updated"),
270
272
  Schema.Literal("whatsapp.number.connected"),
273
+ Schema.Literal("whatsapp.number.updated"),
271
274
  Schema.Literal("mailbox.message.received"),
272
275
  Schema.Literal("mailbox.message.sent"),
273
276
  Schema.Literal("mailbox.action.pending_approval"),
@@ -358,6 +361,7 @@ const WebhooksUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
358
361
  Schema.Literal("template.registration.updated"),
359
362
  Schema.Literal("flow.registration.updated"),
360
363
  Schema.Literal("whatsapp.number.connected"),
364
+ Schema.Literal("whatsapp.number.updated"),
361
365
  Schema.Literal("mailbox.message.received"),
362
366
  Schema.Literal("mailbox.message.sent"),
363
367
  Schema.Literal("mailbox.action.pending_approval"),
@@ -1,7 +1,7 @@
1
1
  import { SensitiveString } from "../runtime.js";
2
- import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MalformedRequestError, ResourceNotFoundError, ServiceUnavailableError, TemplateProjectId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError, WhatsAppFlowId, WhatsAppFlowVersionId } from "./shared.js";
3
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
4
3
  import * as Schema from "effect/Schema";
4
+ import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MalformedRequestError, ResourceNotFoundError, ServiceUnavailableError, TemplateProjectId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError, WhatsAppFlowId, WhatsAppFlowVersionId } from "./shared.js";
5
5
  // src/effect/generated/whats-app-flows.ts
6
6
  const WhatsAppFlowEndpoint = /* @__PURE__ */ (() => Schema.Struct({
7
7
  url: Schema.String,
@@ -15,8 +15,8 @@ const WhatsAppFlowValidationError = /* @__PURE__ */ (() => Schema.Struct({
15
15
  error: Schema.String,
16
16
  message: Schema.String,
17
17
  path: Schema.optionalKey(Schema.String),
18
- line: Schema.optionalKey(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" }))),
19
- column: Schema.optionalKey(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" })))
18
+ line: Schema.optionalKey(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" }))),
19
+ column: Schema.optionalKey(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" })))
20
20
  }).annotate({ identifier: "WhatsAppFlowValidationError" }))();
21
21
  const WhatsAppFlowEndpointAlert = /* @__PURE__ */ (() => Schema.Struct({
22
22
  kind: Schema.String,
@@ -39,7 +39,7 @@ const WhatsAppFlowEndpointSettings = /* @__PURE__ */ (() => Schema.Struct({
39
39
  const WhatsAppFlowVersion = /* @__PURE__ */ (() => Schema.Struct({
40
40
  id: WhatsAppFlowVersionId,
41
41
  flowId: WhatsAppFlowId,
42
- number: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
42
+ number: 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" })),
43
43
  commitSha: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
44
44
  digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
45
45
  jsonVersion: Schema.String,
@@ -51,7 +51,7 @@ const WhatsAppFlowRegistration = /* @__PURE__ */ (() => Schema.Struct({
51
51
  id: WhatsAppFlowRegistrationId,
52
52
  flowId: WhatsAppFlowId,
53
53
  versionId: WhatsAppFlowVersionId,
54
- versionNumber: 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" })),
54
+ versionNumber: 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" })),
55
55
  wabaId: Schema.String,
56
56
  providerFlowId: Schema.Union([Schema.String, Schema.Null]),
57
57
  name: Schema.String,
@@ -1,7 +1,7 @@
1
1
  import { SensitiveString } from "../runtime.js";
2
- import { ApiKeySecurityMiddleware, BillingProviderError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, OrganizationId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppSetupLinkMetadata, WhatsAppSetupLinkRedirectUrl, WhatsAppSetupLinkUnavailableError } from "./shared.js";
3
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
4
3
  import * as Schema from "effect/Schema";
4
+ import { ApiKeySecurityMiddleware, BillingProviderError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, OrganizationId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppSetupLinkMetadata, WhatsAppSetupLinkRedirectUrl, WhatsAppSetupLinkUnavailableError } from "./shared.js";
5
5
  // src/effect/generated/whats-app-setup-links.ts
6
6
  const WhatsAppSetupLinkStatus = /* @__PURE__ */ (() => Schema.Union([
7
7
  Schema.Literal("pending"),