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,7 +1,7 @@
1
1
  import { NonEmptySensitiveString, SensitiveString } from "../runtime.js";
2
- import { ApiKeySecurityMiddleware, BillingProviderError, CampaignId, ConflictError, CredentialsError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyId, MalformedRequestError, MessageDeliveryId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, TemplateId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } 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, CampaignId, ConflictError, CredentialsError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyId, MalformedRequestError, MessageDeliveryId, NamespaceId, OrganizationId, PaymentRequiredError, ResourceNotFoundError, TemplateId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared.js";
5
5
  // src/effect/generated/whats-app.ts
6
6
  const WhatsAppServiceWindowId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^wasw_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
7
7
  expected: "a string matching the RegExp ^wasw_[0-9a-hjkmnp-tv-z]{16,24}$",
@@ -34,10 +34,10 @@ const WhatsAppTemplateStatsRow = /* @__PURE__ */ (() => Schema.Struct({
34
34
  Schema.Literal("authentication")
35
35
  ]), Schema.Null]),
36
36
  source: WhatsAppTemplateStatsSource,
37
- sent: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
38
- 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" })),
39
- read: Schema.Finite.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" })),
40
- failed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
37
+ sent: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
38
+ 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" })),
39
+ read: Schema.Finite.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" })),
40
+ failed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
41
41
  estimatedProviderCosts: Schema.Array(MoneyAmount)
42
42
  }).annotate({ identifier: "WhatsAppTemplateStatsRow" }))();
43
43
  const WhatsAppTemplateStats = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Array(WhatsAppTemplateStatsRow) }).annotate({ identifier: "WhatsAppTemplateStats" }))();
@@ -59,6 +59,7 @@ const WhatsappListBusinessAccounts200 = /* @__PURE__ */ (() => Schema.Struct({
59
59
  organizationId: Schema.String,
60
60
  namespaceId: Schema.Union([NamespaceId, Schema.Null]),
61
61
  phoneNumber: Schema.String,
62
+ phoneNumberDisplay: Schema.String.annotate({ description: "The phone number formatted for display in international form." }),
62
63
  phoneNumberId: Schema.String,
63
64
  displayName: Schema.String,
64
65
  whatsappBusinessAccountId: Schema.String,
@@ -69,6 +70,10 @@ const WhatsappListBusinessAccounts200 = /* @__PURE__ */ (() => Schema.Struct({
69
70
  Schema.Literal("suspended")
70
71
  ]),
71
72
  credentialStatus: Schema.Union([Schema.Literal("active"), Schema.Literal("reconnect_required")]),
73
+ sendingLock: Schema.Union([Schema.Struct({
74
+ lockedAt: Schema.String,
75
+ reason: Schema.String
76
+ }), Schema.Null]).annotate({ description: "The account lock reported by Meta when sending, or null. A later successful message status clears it." }),
72
77
  tokenExpiresAt: Schema.Union([Schema.String, Schema.Null]),
73
78
  isDefault: Schema.Boolean,
74
79
  webhookUrl: Schema.Union([Schema.String, Schema.Null]),
@@ -79,7 +84,7 @@ const WhatsappListBusinessAccounts200 = /* @__PURE__ */ (() => Schema.Struct({
79
84
  Schema.Literal("unknown")
80
85
  ]),
81
86
  messagingLimit: Schema.Union([Schema.String, Schema.Null]),
82
- currentLimit: Schema.Finite.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" })),
87
+ currentLimit: Schema.Finite.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" })),
83
88
  businessPortfolioId: Schema.Union([Schema.String, Schema.Null]),
84
89
  businessAppConnectedAt: Schema.Union([Schema.String, Schema.Null]),
85
90
  businessAppDisconnectedAt: Schema.Union([Schema.String, Schema.Null]),
@@ -102,6 +107,7 @@ const WhatsappListBusinessAccounts200 = /* @__PURE__ */ (() => Schema.Struct({
102
107
  ]), Schema.Null]),
103
108
  historySyncProgress: 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(100).annotate({ expected: "a value less than or equal to 100" })), Schema.Null]),
104
109
  isActive: Schema.Boolean,
110
+ releasedAt: Schema.optionalKey(Schema.String),
105
111
  createdAt: Schema.String,
106
112
  updatedAt: Schema.String
107
113
  })),
@@ -124,6 +130,7 @@ const WhatsappConnectBusinessAccount201 = /* @__PURE__ */ (() => Schema.Struct({
124
130
  organizationId: Schema.String,
125
131
  namespaceId: Schema.Union([NamespaceId, Schema.Null]),
126
132
  phoneNumber: Schema.String,
133
+ phoneNumberDisplay: Schema.String.annotate({ description: "The phone number formatted for display in international form." }),
127
134
  phoneNumberId: Schema.String,
128
135
  displayName: Schema.String,
129
136
  whatsappBusinessAccountId: Schema.String,
@@ -134,6 +141,10 @@ const WhatsappConnectBusinessAccount201 = /* @__PURE__ */ (() => Schema.Struct({
134
141
  Schema.Literal("suspended")
135
142
  ]),
136
143
  credentialStatus: Schema.Union([Schema.Literal("active"), Schema.Literal("reconnect_required")]),
144
+ sendingLock: Schema.Union([Schema.Struct({
145
+ lockedAt: Schema.String,
146
+ reason: Schema.String
147
+ }), Schema.Null]).annotate({ description: "The account lock reported by Meta when sending, or null. A later successful message status clears it." }),
137
148
  tokenExpiresAt: Schema.Union([Schema.String, Schema.Null]),
138
149
  isDefault: Schema.Boolean,
139
150
  webhookUrl: Schema.Union([Schema.String, Schema.Null]),
@@ -144,7 +155,7 @@ const WhatsappConnectBusinessAccount201 = /* @__PURE__ */ (() => Schema.Struct({
144
155
  Schema.Literal("unknown")
145
156
  ]),
146
157
  messagingLimit: Schema.Union([Schema.String, Schema.Null]),
147
- currentLimit: Schema.Finite.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" })),
158
+ currentLimit: Schema.Finite.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" })),
148
159
  businessPortfolioId: Schema.Union([Schema.String, Schema.Null]),
149
160
  businessAppConnectedAt: Schema.Union([Schema.String, Schema.Null]),
150
161
  businessAppDisconnectedAt: Schema.Union([Schema.String, Schema.Null]),
@@ -167,6 +178,7 @@ const WhatsappConnectBusinessAccount201 = /* @__PURE__ */ (() => Schema.Struct({
167
178
  ]), Schema.Null]),
168
179
  historySyncProgress: 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(100).annotate({ expected: "a value less than or equal to 100" })), Schema.Null]),
169
180
  isActive: Schema.Boolean,
181
+ releasedAt: Schema.optionalKey(Schema.String),
170
182
  createdAt: Schema.String,
171
183
  updatedAt: Schema.String
172
184
  }))();
@@ -186,6 +198,7 @@ const WhatsappGetBusinessAccount200 = /* @__PURE__ */ (() => Schema.Struct({
186
198
  organizationId: Schema.String,
187
199
  namespaceId: Schema.Union([NamespaceId, Schema.Null]),
188
200
  phoneNumber: Schema.String,
201
+ phoneNumberDisplay: Schema.String.annotate({ description: "The phone number formatted for display in international form." }),
189
202
  phoneNumberId: Schema.String,
190
203
  displayName: Schema.String,
191
204
  whatsappBusinessAccountId: Schema.String,
@@ -196,6 +209,10 @@ const WhatsappGetBusinessAccount200 = /* @__PURE__ */ (() => Schema.Struct({
196
209
  Schema.Literal("suspended")
197
210
  ]),
198
211
  credentialStatus: Schema.Union([Schema.Literal("active"), Schema.Literal("reconnect_required")]),
212
+ sendingLock: Schema.Union([Schema.Struct({
213
+ lockedAt: Schema.String,
214
+ reason: Schema.String
215
+ }), Schema.Null]).annotate({ description: "The account lock reported by Meta when sending, or null. A later successful message status clears it." }),
199
216
  tokenExpiresAt: Schema.Union([Schema.String, Schema.Null]),
200
217
  isDefault: Schema.Boolean,
201
218
  webhookUrl: Schema.Union([Schema.String, Schema.Null]),
@@ -206,7 +223,7 @@ const WhatsappGetBusinessAccount200 = /* @__PURE__ */ (() => Schema.Struct({
206
223
  Schema.Literal("unknown")
207
224
  ]),
208
225
  messagingLimit: Schema.Union([Schema.String, Schema.Null]),
209
- currentLimit: Schema.Finite.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" })),
226
+ currentLimit: Schema.Finite.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" })),
210
227
  businessPortfolioId: Schema.Union([Schema.String, Schema.Null]),
211
228
  businessAppConnectedAt: Schema.Union([Schema.String, Schema.Null]),
212
229
  businessAppDisconnectedAt: Schema.Union([Schema.String, Schema.Null]),
@@ -229,6 +246,7 @@ const WhatsappGetBusinessAccount200 = /* @__PURE__ */ (() => Schema.Struct({
229
246
  ]), Schema.Null]),
230
247
  historySyncProgress: 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(100).annotate({ expected: "a value less than or equal to 100" })), Schema.Null]),
231
248
  isActive: Schema.Boolean,
249
+ releasedAt: Schema.optionalKey(Schema.String),
232
250
  createdAt: Schema.String,
233
251
  updatedAt: Schema.String
234
252
  }))();
@@ -258,6 +276,7 @@ const WhatsappUpdateBusinessAccount200 = /* @__PURE__ */ (() => Schema.Struct({
258
276
  organizationId: Schema.String,
259
277
  namespaceId: Schema.Union([NamespaceId, Schema.Null]),
260
278
  phoneNumber: Schema.String,
279
+ phoneNumberDisplay: Schema.String.annotate({ description: "The phone number formatted for display in international form." }),
261
280
  phoneNumberId: Schema.String,
262
281
  displayName: Schema.String,
263
282
  whatsappBusinessAccountId: Schema.String,
@@ -268,6 +287,10 @@ const WhatsappUpdateBusinessAccount200 = /* @__PURE__ */ (() => Schema.Struct({
268
287
  Schema.Literal("suspended")
269
288
  ]),
270
289
  credentialStatus: Schema.Union([Schema.Literal("active"), Schema.Literal("reconnect_required")]),
290
+ sendingLock: Schema.Union([Schema.Struct({
291
+ lockedAt: Schema.String,
292
+ reason: Schema.String
293
+ }), Schema.Null]).annotate({ description: "The account lock reported by Meta when sending, or null. A later successful message status clears it." }),
271
294
  tokenExpiresAt: Schema.Union([Schema.String, Schema.Null]),
272
295
  isDefault: Schema.Boolean,
273
296
  webhookUrl: Schema.Union([Schema.String, Schema.Null]),
@@ -278,7 +301,7 @@ const WhatsappUpdateBusinessAccount200 = /* @__PURE__ */ (() => Schema.Struct({
278
301
  Schema.Literal("unknown")
279
302
  ]),
280
303
  messagingLimit: Schema.Union([Schema.String, Schema.Null]),
281
- currentLimit: Schema.Finite.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" })),
304
+ currentLimit: Schema.Finite.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" })),
282
305
  businessPortfolioId: Schema.Union([Schema.String, Schema.Null]),
283
306
  businessAppConnectedAt: Schema.Union([Schema.String, Schema.Null]),
284
307
  businessAppDisconnectedAt: Schema.Union([Schema.String, Schema.Null]),
@@ -301,6 +324,7 @@ const WhatsappUpdateBusinessAccount200 = /* @__PURE__ */ (() => Schema.Struct({
301
324
  ]), Schema.Null]),
302
325
  historySyncProgress: 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(100).annotate({ expected: "a value less than or equal to 100" })), Schema.Null]),
303
326
  isActive: Schema.Boolean,
327
+ releasedAt: Schema.optionalKey(Schema.String),
304
328
  createdAt: Schema.String,
305
329
  updatedAt: Schema.String
306
330
  }))();
@@ -311,12 +335,24 @@ const WhatsappUpdateBusinessAccount404 = ResourceNotFoundError;
311
335
  const WhatsappUpdateBusinessAccount422 = ValidationError;
312
336
  const WhatsappUpdateBusinessAccount500 = InternalError;
313
337
  const WhatsappUpdateBusinessAccount504 = GatewayTimeoutError;
338
+ const WhatsappReleaseBusinessAccountPathParams = /* @__PURE__ */ (() => Schema.Struct({ accountId: WhatsAppBusinessAccountId }))();
339
+ const WhatsappReleaseBusinessAccountRequestJson = /* @__PURE__ */ (() => Schema.Struct({ targetOrganizationId: OrganizationId }))();
340
+ const WhatsappReleaseBusinessAccount200 = /* @__PURE__ */ (() => Schema.Struct({ success: Schema.Literal(true) }))();
341
+ const WhatsappReleaseBusinessAccount400 = MalformedRequestError;
342
+ const WhatsappReleaseBusinessAccount401 = UnauthorizedError;
343
+ const WhatsappReleaseBusinessAccount403 = ForbiddenError;
344
+ const WhatsappReleaseBusinessAccount404 = ResourceNotFoundError;
345
+ const WhatsappReleaseBusinessAccount409 = ConflictError;
346
+ const WhatsappReleaseBusinessAccount422 = ValidationError;
347
+ const WhatsappReleaseBusinessAccount500 = InternalError;
348
+ const WhatsappReleaseBusinessAccount504 = GatewayTimeoutError;
314
349
  const WhatsappSetDefaultBusinessAccountPathParams = /* @__PURE__ */ (() => Schema.Struct({ accountId: WhatsAppBusinessAccountId }))();
315
350
  const WhatsappSetDefaultBusinessAccount200 = /* @__PURE__ */ (() => Schema.Struct({
316
351
  id: WhatsAppBusinessAccountId,
317
352
  organizationId: Schema.String,
318
353
  namespaceId: Schema.Union([NamespaceId, Schema.Null]),
319
354
  phoneNumber: Schema.String,
355
+ phoneNumberDisplay: Schema.String.annotate({ description: "The phone number formatted for display in international form." }),
320
356
  phoneNumberId: Schema.String,
321
357
  displayName: Schema.String,
322
358
  whatsappBusinessAccountId: Schema.String,
@@ -327,6 +363,10 @@ const WhatsappSetDefaultBusinessAccount200 = /* @__PURE__ */ (() => Schema.Struc
327
363
  Schema.Literal("suspended")
328
364
  ]),
329
365
  credentialStatus: Schema.Union([Schema.Literal("active"), Schema.Literal("reconnect_required")]),
366
+ sendingLock: Schema.Union([Schema.Struct({
367
+ lockedAt: Schema.String,
368
+ reason: Schema.String
369
+ }), Schema.Null]).annotate({ description: "The account lock reported by Meta when sending, or null. A later successful message status clears it." }),
330
370
  tokenExpiresAt: Schema.Union([Schema.String, Schema.Null]),
331
371
  isDefault: Schema.Boolean,
332
372
  webhookUrl: Schema.Union([Schema.String, Schema.Null]),
@@ -337,7 +377,7 @@ const WhatsappSetDefaultBusinessAccount200 = /* @__PURE__ */ (() => Schema.Struc
337
377
  Schema.Literal("unknown")
338
378
  ]),
339
379
  messagingLimit: Schema.Union([Schema.String, Schema.Null]),
340
- currentLimit: Schema.Finite.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" })),
380
+ currentLimit: Schema.Finite.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" })),
341
381
  businessPortfolioId: Schema.Union([Schema.String, Schema.Null]),
342
382
  businessAppConnectedAt: Schema.Union([Schema.String, Schema.Null]),
343
383
  businessAppDisconnectedAt: Schema.Union([Schema.String, Schema.Null]),
@@ -360,6 +400,7 @@ const WhatsappSetDefaultBusinessAccount200 = /* @__PURE__ */ (() => Schema.Struc
360
400
  ]), Schema.Null]),
361
401
  historySyncProgress: 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(100).annotate({ expected: "a value less than or equal to 100" })), Schema.Null]),
362
402
  isActive: Schema.Boolean,
403
+ releasedAt: Schema.optionalKey(Schema.String),
363
404
  createdAt: Schema.String,
364
405
  updatedAt: Schema.String
365
406
  }))();
@@ -380,7 +421,7 @@ const WhatsappSyncAccountStatus200 = /* @__PURE__ */ (() => Schema.Struct({
380
421
  Schema.Literal("unknown")
381
422
  ]),
382
423
  messagingLimit: Schema.Union([Schema.String, Schema.Null]),
383
- currentLimit: Schema.Finite.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" })),
424
+ currentLimit: Schema.Finite.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" })),
384
425
  businessPortfolioId: Schema.Union([Schema.String, Schema.Null]),
385
426
  verificationStatus: Schema.Union([
386
427
  Schema.Literal("pending"),
@@ -412,9 +453,9 @@ const WhatsappGetMediaDownloadUrl500 = InternalError;
412
453
  const WhatsappGetMediaDownloadUrl504 = GatewayTimeoutError;
413
454
  const WhatsappGetServiceWindowBillingQuery = /* @__PURE__ */ (() => Schema.Struct({ serviceWindowId: WhatsAppServiceWindowId }))();
414
455
  const WhatsappGetServiceWindowBilling200 = /* @__PURE__ */ (() => Schema.Struct({
415
- totalMessages: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
416
- totalFreeMessages: Schema.Finite.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" })),
417
- totalPaidMessages: Schema.Finite.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" })),
456
+ totalMessages: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
457
+ totalFreeMessages: Schema.Finite.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" })),
458
+ totalPaidMessages: Schema.Finite.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" })),
418
459
  estimatedProviderCosts: Schema.Array(MoneyAmount)
419
460
  }))();
420
461
  const WhatsappGetServiceWindowBilling400 = MalformedRequestError;
@@ -447,10 +488,10 @@ const WhatsappGetStatsQuery = /* @__PURE__ */ (() => Schema.Struct({
447
488
  endDate: Schema.optionalKey(Schema.String)
448
489
  }))();
449
490
  const WhatsappGetStats200 = /* @__PURE__ */ (() => Schema.Struct({
450
- 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" })),
451
- 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" })),
452
- totalRead: Schema.Finite.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" })),
453
- totalFailed: Schema.Finite.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" })),
491
+ 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" })),
492
+ 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" })),
493
+ totalRead: Schema.Finite.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" })),
494
+ totalFailed: Schema.Finite.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" })),
454
495
  deliveryRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
455
496
  readRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
456
497
  failureRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
@@ -538,7 +579,21 @@ var WhatsAppGroup = class extends HttpApiGroup.make("WhatsApp").add(HttpApiEndpo
538
579
  WhatsappUpdateBusinessAccount500,
539
580
  WhatsappUpdateBusinessAccount504.pipe(HttpApiSchema.status(504))
540
581
  ]
541
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "whatsapp.updateBusinessAccount").annotate(OpenApi.Summary, "Update a WhatsApp business account").annotate(OpenApi.Description, "Updates the display name or webhook settings of a connected WhatsApp business account."), HttpApiEndpoint.post("whatsappSetDefaultBusinessAccount", "/v1/whatsapp/business-accounts/:accountId/set-default", {
582
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "whatsapp.updateBusinessAccount").annotate(OpenApi.Summary, "Update a WhatsApp business account").annotate(OpenApi.Description, "Updates the display name or webhook settings of a connected WhatsApp business account."), HttpApiEndpoint.post("whatsappReleaseBusinessAccount", "/v1/whatsapp/business-accounts/:accountId/release", {
583
+ params: WhatsappReleaseBusinessAccountPathParams,
584
+ payload: WhatsappReleaseBusinessAccountRequestJson,
585
+ success: WhatsappReleaseBusinessAccount200,
586
+ error: [
587
+ WhatsappReleaseBusinessAccount400.pipe(HttpApiSchema.status(400)),
588
+ WhatsappReleaseBusinessAccount401.pipe(HttpApiSchema.status(401)),
589
+ WhatsappReleaseBusinessAccount403.pipe(HttpApiSchema.status(403)),
590
+ WhatsappReleaseBusinessAccount404.pipe(HttpApiSchema.status(404)),
591
+ WhatsappReleaseBusinessAccount409.pipe(HttpApiSchema.status(409)),
592
+ WhatsappReleaseBusinessAccount422.pipe(HttpApiSchema.status(422)),
593
+ WhatsappReleaseBusinessAccount500,
594
+ WhatsappReleaseBusinessAccount504.pipe(HttpApiSchema.status(504))
595
+ ]
596
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "whatsapp.releaseBusinessAccount").annotate(OpenApi.Summary, "Release a WhatsApp number to another organization").annotate(OpenApi.Description, "Reserves a disconnected WhatsApp number for the named Samva organization. The recipient claims it through fresh Meta Embedded Signup for the same WhatsApp Business Account, Meta phone number ID, and E.164 number. The old account remains in history and cannot reconnect."), HttpApiEndpoint.post("whatsappSetDefaultBusinessAccount", "/v1/whatsapp/business-accounts/:accountId/set-default", {
542
597
  params: WhatsappSetDefaultBusinessAccountPathParams,
543
598
  success: WhatsappSetDefaultBusinessAccount200,
544
599
  error: [
@@ -622,6 +677,6 @@ var WhatsAppGroup = class extends HttpApiGroup.make("WhatsApp").add(HttpApiEndpo
622
677
  WhatsappGetTemplateStats504.pipe(HttpApiSchema.status(504))
623
678
  ]
624
679
  }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "whatsapp.getTemplateStats").annotate(OpenApi.Summary, "Get WhatsApp template stats").annotate(OpenApi.Description, "Returns sent, delivered, read, and failed counts and Meta's estimated cost for each WhatsApp template, split by what sent it: a campaign, a journey step, or a direct send. Filter by template, campaign, journey, or the time the message was created.")).annotate(OpenApi.Description, "WhatsApp Cloud API messaging, service windows, and business accounts") {};
625
- export { MoneyAmount, WhatsAppGroup, WhatsAppServiceWindowId, WhatsAppTemplateStats, WhatsAppTemplateStatsRow, WhatsAppTemplateStatsSource, WhatsappConnectBusinessAccount201, WhatsappConnectBusinessAccount400, WhatsappConnectBusinessAccount401, WhatsappConnectBusinessAccount402, WhatsappConnectBusinessAccount403, WhatsappConnectBusinessAccount404, WhatsappConnectBusinessAccount409, WhatsappConnectBusinessAccount422, WhatsappConnectBusinessAccount500, WhatsappConnectBusinessAccount502, WhatsappConnectBusinessAccount504, WhatsappConnectBusinessAccountRequestJson, WhatsappDisconnectBusinessAccount200, WhatsappDisconnectBusinessAccount400, WhatsappDisconnectBusinessAccount401, WhatsappDisconnectBusinessAccount403, WhatsappDisconnectBusinessAccount404, WhatsappDisconnectBusinessAccount422, WhatsappDisconnectBusinessAccount500, WhatsappDisconnectBusinessAccount504, WhatsappDisconnectBusinessAccountPathParams, WhatsappGetBusinessAccount200, WhatsappGetBusinessAccount400, WhatsappGetBusinessAccount401, WhatsappGetBusinessAccount403, WhatsappGetBusinessAccount404, WhatsappGetBusinessAccount422, WhatsappGetBusinessAccount500, WhatsappGetBusinessAccount504, WhatsappGetBusinessAccountPathParams, WhatsappGetMediaDownloadUrl200, WhatsappGetMediaDownloadUrl400, WhatsappGetMediaDownloadUrl401, WhatsappGetMediaDownloadUrl403, WhatsappGetMediaDownloadUrl404, WhatsappGetMediaDownloadUrl422, WhatsappGetMediaDownloadUrl500, WhatsappGetMediaDownloadUrl504, WhatsappGetMediaDownloadUrlPathParams, WhatsappGetServiceWindowBilling200, WhatsappGetServiceWindowBilling400, WhatsappGetServiceWindowBilling401, WhatsappGetServiceWindowBilling403, WhatsappGetServiceWindowBilling404, WhatsappGetServiceWindowBilling422, WhatsappGetServiceWindowBilling500, WhatsappGetServiceWindowBilling504, WhatsappGetServiceWindowBillingQuery, WhatsappGetServiceWindowStatus200, WhatsappGetServiceWindowStatus400, WhatsappGetServiceWindowStatus401, WhatsappGetServiceWindowStatus403, WhatsappGetServiceWindowStatus404, WhatsappGetServiceWindowStatus422, WhatsappGetServiceWindowStatus500, WhatsappGetServiceWindowStatus504, WhatsappGetServiceWindowStatusQuery, WhatsappGetStats200, WhatsappGetStats400, WhatsappGetStats401, WhatsappGetStats403, WhatsappGetStats422, WhatsappGetStats500, WhatsappGetStats504, WhatsappGetStatsQuery, WhatsappGetTemplateStats200, WhatsappGetTemplateStats400, WhatsappGetTemplateStats401, WhatsappGetTemplateStats403, WhatsappGetTemplateStats422, WhatsappGetTemplateStats500, WhatsappGetTemplateStats504, WhatsappGetTemplateStatsQuery, WhatsappListBusinessAccounts200, WhatsappListBusinessAccounts400, WhatsappListBusinessAccounts401, WhatsappListBusinessAccounts403, WhatsappListBusinessAccounts422, WhatsappListBusinessAccounts500, WhatsappListBusinessAccounts504, WhatsappListBusinessAccountsQuery, WhatsappSetDefaultBusinessAccount200, WhatsappSetDefaultBusinessAccount400, WhatsappSetDefaultBusinessAccount401, WhatsappSetDefaultBusinessAccount403, WhatsappSetDefaultBusinessAccount404, WhatsappSetDefaultBusinessAccount422, WhatsappSetDefaultBusinessAccount500, WhatsappSetDefaultBusinessAccount504, WhatsappSetDefaultBusinessAccountPathParams, WhatsappSyncAccountStatus200, WhatsappSyncAccountStatus400, WhatsappSyncAccountStatus401, WhatsappSyncAccountStatus403, WhatsappSyncAccountStatus404, WhatsappSyncAccountStatus422, WhatsappSyncAccountStatus500, WhatsappSyncAccountStatus502, WhatsappSyncAccountStatus504, WhatsappSyncAccountStatusPathParams, WhatsappUpdateBusinessAccount200, WhatsappUpdateBusinessAccount400, WhatsappUpdateBusinessAccount401, WhatsappUpdateBusinessAccount403, WhatsappUpdateBusinessAccount404, WhatsappUpdateBusinessAccount422, WhatsappUpdateBusinessAccount500, WhatsappUpdateBusinessAccount504, WhatsappUpdateBusinessAccountPathParams, WhatsappUpdateBusinessAccountRequestJson };
680
+ export { MoneyAmount, WhatsAppGroup, WhatsAppServiceWindowId, WhatsAppTemplateStats, WhatsAppTemplateStatsRow, WhatsAppTemplateStatsSource, WhatsappConnectBusinessAccount201, WhatsappConnectBusinessAccount400, WhatsappConnectBusinessAccount401, WhatsappConnectBusinessAccount402, WhatsappConnectBusinessAccount403, WhatsappConnectBusinessAccount404, WhatsappConnectBusinessAccount409, WhatsappConnectBusinessAccount422, WhatsappConnectBusinessAccount500, WhatsappConnectBusinessAccount502, WhatsappConnectBusinessAccount504, WhatsappConnectBusinessAccountRequestJson, WhatsappDisconnectBusinessAccount200, WhatsappDisconnectBusinessAccount400, WhatsappDisconnectBusinessAccount401, WhatsappDisconnectBusinessAccount403, WhatsappDisconnectBusinessAccount404, WhatsappDisconnectBusinessAccount422, WhatsappDisconnectBusinessAccount500, WhatsappDisconnectBusinessAccount504, WhatsappDisconnectBusinessAccountPathParams, WhatsappGetBusinessAccount200, WhatsappGetBusinessAccount400, WhatsappGetBusinessAccount401, WhatsappGetBusinessAccount403, WhatsappGetBusinessAccount404, WhatsappGetBusinessAccount422, WhatsappGetBusinessAccount500, WhatsappGetBusinessAccount504, WhatsappGetBusinessAccountPathParams, WhatsappGetMediaDownloadUrl200, WhatsappGetMediaDownloadUrl400, WhatsappGetMediaDownloadUrl401, WhatsappGetMediaDownloadUrl403, WhatsappGetMediaDownloadUrl404, WhatsappGetMediaDownloadUrl422, WhatsappGetMediaDownloadUrl500, WhatsappGetMediaDownloadUrl504, WhatsappGetMediaDownloadUrlPathParams, WhatsappGetServiceWindowBilling200, WhatsappGetServiceWindowBilling400, WhatsappGetServiceWindowBilling401, WhatsappGetServiceWindowBilling403, WhatsappGetServiceWindowBilling404, WhatsappGetServiceWindowBilling422, WhatsappGetServiceWindowBilling500, WhatsappGetServiceWindowBilling504, WhatsappGetServiceWindowBillingQuery, WhatsappGetServiceWindowStatus200, WhatsappGetServiceWindowStatus400, WhatsappGetServiceWindowStatus401, WhatsappGetServiceWindowStatus403, WhatsappGetServiceWindowStatus404, WhatsappGetServiceWindowStatus422, WhatsappGetServiceWindowStatus500, WhatsappGetServiceWindowStatus504, WhatsappGetServiceWindowStatusQuery, WhatsappGetStats200, WhatsappGetStats400, WhatsappGetStats401, WhatsappGetStats403, WhatsappGetStats422, WhatsappGetStats500, WhatsappGetStats504, WhatsappGetStatsQuery, WhatsappGetTemplateStats200, WhatsappGetTemplateStats400, WhatsappGetTemplateStats401, WhatsappGetTemplateStats403, WhatsappGetTemplateStats422, WhatsappGetTemplateStats500, WhatsappGetTemplateStats504, WhatsappGetTemplateStatsQuery, WhatsappListBusinessAccounts200, WhatsappListBusinessAccounts400, WhatsappListBusinessAccounts401, WhatsappListBusinessAccounts403, WhatsappListBusinessAccounts422, WhatsappListBusinessAccounts500, WhatsappListBusinessAccounts504, WhatsappListBusinessAccountsQuery, WhatsappReleaseBusinessAccount200, WhatsappReleaseBusinessAccount400, WhatsappReleaseBusinessAccount401, WhatsappReleaseBusinessAccount403, WhatsappReleaseBusinessAccount404, WhatsappReleaseBusinessAccount409, WhatsappReleaseBusinessAccount422, WhatsappReleaseBusinessAccount500, WhatsappReleaseBusinessAccount504, WhatsappReleaseBusinessAccountPathParams, WhatsappReleaseBusinessAccountRequestJson, WhatsappSetDefaultBusinessAccount200, WhatsappSetDefaultBusinessAccount400, WhatsappSetDefaultBusinessAccount401, WhatsappSetDefaultBusinessAccount403, WhatsappSetDefaultBusinessAccount404, WhatsappSetDefaultBusinessAccount422, WhatsappSetDefaultBusinessAccount500, WhatsappSetDefaultBusinessAccount504, WhatsappSetDefaultBusinessAccountPathParams, WhatsappSyncAccountStatus200, WhatsappSyncAccountStatus400, WhatsappSyncAccountStatus401, WhatsappSyncAccountStatus403, WhatsappSyncAccountStatus404, WhatsappSyncAccountStatus422, WhatsappSyncAccountStatus500, WhatsappSyncAccountStatus502, WhatsappSyncAccountStatus504, WhatsappSyncAccountStatusPathParams, WhatsappUpdateBusinessAccount200, WhatsappUpdateBusinessAccount400, WhatsappUpdateBusinessAccount401, WhatsappUpdateBusinessAccount403, WhatsappUpdateBusinessAccount404, WhatsappUpdateBusinessAccount422, WhatsappUpdateBusinessAccount500, WhatsappUpdateBusinessAccount504, WhatsappUpdateBusinessAccountPathParams, WhatsappUpdateBusinessAccountRequestJson };
626
681
 
627
682
  //# sourceMappingURL=whats-app.js.map
@@ -1,6 +1,6 @@
1
- import { ApiKeyAccess, ApiKeySecurityMiddleware, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, OrganizationId, 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 { ApiKeyAccess, ApiKeySecurityMiddleware, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, OrganizationId, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  // src/effect/generated/whoami.ts
5
5
  const WhoamiUser = /* @__PURE__ */ (() => Schema.Struct({
6
6
  id: Schema.String,
@@ -109,6 +109,10 @@ export declare const SamvaErrorMetadata: {
109
109
  readonly categories: readonly ["billing"];
110
110
  readonly retryable: false;
111
111
  };
112
+ readonly PhoneNumberProvisioningError: {
113
+ readonly categories: readonly [];
114
+ readonly retryable: false;
115
+ };
112
116
  readonly RateLimitedError: {
113
117
  readonly categories: readonly ["throttling", "transient"];
114
118
  readonly retryable: true;
@@ -2388,6 +2392,36 @@ export declare const SamvaOperations: {
2388
2392
  readonly idempotent: false;
2389
2393
  readonly paginated: false;
2390
2394
  };
2395
+ readonly phoneNumbersListPhoneNumbers: {
2396
+ readonly group: "Phone numbers";
2397
+ readonly method: "GET";
2398
+ readonly idempotent: false;
2399
+ readonly paginated: false;
2400
+ };
2401
+ readonly phoneNumbersPurchaseNumber: {
2402
+ readonly group: "Phone numbers";
2403
+ readonly method: "POST";
2404
+ readonly idempotent: false;
2405
+ readonly paginated: false;
2406
+ };
2407
+ readonly phoneNumbersGetPhoneNumber: {
2408
+ readonly group: "Phone numbers";
2409
+ readonly method: "GET";
2410
+ readonly idempotent: false;
2411
+ readonly paginated: false;
2412
+ };
2413
+ readonly phoneNumbersReleasePhoneNumber: {
2414
+ readonly group: "Phone numbers";
2415
+ readonly method: "DELETE";
2416
+ readonly idempotent: false;
2417
+ readonly paginated: false;
2418
+ };
2419
+ readonly phoneNumbersSearchAvailableNumbers: {
2420
+ readonly group: "Phone numbers";
2421
+ readonly method: "GET";
2422
+ readonly idempotent: false;
2423
+ readonly paginated: false;
2424
+ };
2391
2425
  readonly policiesGetPolicy: {
2392
2426
  readonly group: "Policies";
2393
2427
  readonly method: "GET";
@@ -2686,7 +2720,7 @@ export declare const SamvaOperations: {
2686
2720
  readonly group: "Topics";
2687
2721
  readonly method: "GET";
2688
2722
  readonly idempotent: false;
2689
- readonly paginated: false;
2723
+ readonly paginated: true;
2690
2724
  };
2691
2725
  readonly topicsCreate: {
2692
2726
  readonly group: "Topics";
@@ -2862,6 +2896,12 @@ export declare const SamvaOperations: {
2862
2896
  readonly idempotent: false;
2863
2897
  readonly paginated: false;
2864
2898
  };
2899
+ readonly whatsappReleaseBusinessAccount: {
2900
+ readonly group: "WhatsApp";
2901
+ readonly method: "POST";
2902
+ readonly idempotent: false;
2903
+ readonly paginated: false;
2904
+ };
2865
2905
  readonly whatsappSetDefaultBusinessAccount: {
2866
2906
  readonly group: "WhatsApp";
2867
2907
  readonly method: "POST";