samva 0.51.0 → 0.53.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 (89) hide show
  1. package/AGENTS.md +5 -2
  2. package/README.md +1 -0
  3. package/dist/client/sdk.gen.d.ts +82 -36
  4. package/dist/client/sdk.gen.js +192 -57
  5. package/dist/client/types.gen.d.ts +607 -291
  6. package/dist/effect/campaigns.d.ts +56 -56
  7. package/dist/effect/descriptors/integrations-catalog.d.ts +1 -1
  8. package/dist/effect/descriptors/integrations-catalog.js +1 -1
  9. package/dist/effect/descriptors/integrations.d.ts +1 -1
  10. package/dist/effect/descriptors/integrations.js +1 -1
  11. package/dist/effect/descriptors/logs.d.ts +21 -0
  12. package/dist/effect/descriptors/logs.js +23 -0
  13. package/dist/effect/descriptors/whats-app.d.ts +1 -1
  14. package/dist/effect/descriptors/whats-app.js +1 -1
  15. package/dist/effect/events.d.ts +16 -0
  16. package/dist/effect/generated/agents.js +4 -4
  17. package/dist/effect/generated/campaigns.d.ts +18 -6
  18. package/dist/effect/generated/campaigns.js +2 -6
  19. package/dist/effect/generated/email.js +3 -3
  20. package/dist/effect/generated/events.d.ts +48 -0
  21. package/dist/effect/generated/events.js +1 -1
  22. package/dist/effect/generated/index.d.ts +3 -1
  23. package/dist/effect/generated/integrations-catalog.d.ts +93 -49
  24. package/dist/effect/generated/integrations-catalog.js +17 -28
  25. package/dist/effect/generated/integrations.d.ts +20 -40
  26. package/dist/effect/generated/integrations.js +9 -13
  27. package/dist/effect/generated/journeys.d.ts +1113 -67
  28. package/dist/effect/generated/journeys.js +14 -8
  29. package/dist/effect/generated/logs.d.ts +2323 -0
  30. package/dist/effect/generated/logs.js +312 -0
  31. package/dist/effect/generated/mailboxes.d.ts +38 -24
  32. package/dist/effect/generated/mailboxes.js +22 -21
  33. package/dist/effect/generated/messages.d.ts +11 -882
  34. package/dist/effect/generated/messages.js +4 -243
  35. package/dist/effect/generated/newsletter-domains.d.ts +61 -13
  36. package/dist/effect/generated/newsletter-domains.js +5 -5
  37. package/dist/effect/generated/newsletter-issues.d.ts +166 -34
  38. package/dist/effect/generated/newsletter-issues.js +12 -12
  39. package/dist/effect/generated/newsletters.d.ts +76 -16
  40. package/dist/effect/generated/newsletters.js +6 -6
  41. package/dist/effect/generated/organizations.js +1 -1
  42. package/dist/effect/generated/scheduled-messages.d.ts +36 -0
  43. package/dist/effect/generated/scheduled-messages.js +1 -1
  44. package/dist/effect/generated/shared.d.ts +1706 -442
  45. package/dist/effect/generated/shared.js +370 -93
  46. package/dist/effect/generated/subscriptions.d.ts +4 -4
  47. package/dist/effect/generated/subscriptions.js +2 -6
  48. package/dist/effect/generated/template-registrations.d.ts +46 -10
  49. package/dist/effect/generated/template-registrations.js +4 -4
  50. package/dist/effect/generated/templates.js +2 -2
  51. package/dist/effect/generated/whats-app-flows.d.ts +173 -35
  52. package/dist/effect/generated/whats-app-flows.js +19 -17
  53. package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
  54. package/dist/effect/generated/whats-app-setup-links.js +5 -5
  55. package/dist/effect/generated/whats-app.d.ts +187 -65
  56. package/dist/effect/generated/whats-app.js +18 -24
  57. package/dist/effect/generated-metadata.d.ts +15 -3
  58. package/dist/effect/generated-metadata.js +375 -349
  59. package/dist/effect/index.d.ts +1 -0
  60. package/dist/effect/index.js +2 -1
  61. package/dist/effect/integrations-catalog.d.ts +92 -4
  62. package/dist/effect/integrations.d.ts +40 -8
  63. package/dist/effect/internal/client.js +25 -3
  64. package/dist/effect/internal/log-events.d.ts +19 -0
  65. package/dist/effect/internal/log-events.js +53 -0
  66. package/dist/effect/internal/mailbox-events.d.ts +6 -2
  67. package/dist/effect/internal/mailbox-events.js +4 -3
  68. package/dist/effect/journeys.d.ts +212 -146
  69. package/dist/effect/logs.d.ts +149 -0
  70. package/dist/effect/logs.js +18 -0
  71. package/dist/effect/mailboxes.d.ts +158 -150
  72. package/dist/effect/mailboxes.js +1 -1
  73. package/dist/effect/newsletter-domains.d.ts +2 -2
  74. package/dist/effect/scheduled-messages.d.ts +66 -0
  75. package/dist/effect/whatsapp-flows.d.ts +30 -0
  76. package/dist/effect/whatsapp-setup-links.d.ts +2 -2
  77. package/dist/effect/whatsapp.d.ts +73 -3
  78. package/dist/mailbox-events.d.ts +50 -3
  79. package/dist/mailbox-events.js +38 -19
  80. package/dist/package.js +1 -1
  81. package/dist/promises/client.d.ts +3 -1
  82. package/dist/promises/client.js +3 -1
  83. package/dist/promises/errors.gen.d.ts +2 -0
  84. package/dist/promises/errors.gen.js +137 -34
  85. package/dist/promises/types.gen.d.ts +1 -1
  86. package/dist/request-id.d.ts +3 -0
  87. package/dist/request-id.js +7 -0
  88. package/dist/service-map.d.ts +14 -3
  89. package/package.json +6 -2
@@ -1,7 +1,7 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { ApiKeySecurityMiddleware, BillingProviderError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, OrganizationId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppSetupLinkMetadata, WhatsAppSetupLinkRedirectUrl, WhatsAppSetupLinkUnavailableError, __SamvaRuntimeSensitiveString } from "./shared.js";
4
+ import { ApiKeySecurityMiddleware, BillingProviderError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, OrganizationId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppSetupLinkMetadata, WhatsAppSetupLinkRedirectUrl, WhatsAppSetupLinkUnavailableError, __SamvaRuntimeSensitiveString } from "./shared.js";
5
5
  export type WhatsAppSetupLinkStatus = "pending" | "completed" | "revoked" | "expired";
6
6
  export declare const WhatsAppSetupLinkStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>;
7
7
  export type WhatsAppSetupLinkId = string & EffectBrand.Brand<"WhatsAppSetupLinkId">;
@@ -119,8 +119,8 @@ export type WhatsappSetupLinksList400 = MalformedRequestError;
119
119
  export declare const WhatsappSetupLinksList400: typeof MalformedRequestError;
120
120
  export type WhatsappSetupLinksList401 = UnauthorizedError;
121
121
  export declare const WhatsappSetupLinksList401: typeof UnauthorizedError;
122
- export type WhatsappSetupLinksList403 = ForbiddenError | FlagDisabledError;
123
- export declare const WhatsappSetupLinksList403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
122
+ export type WhatsappSetupLinksList403 = ForbiddenError;
123
+ export declare const WhatsappSetupLinksList403: typeof ForbiddenError;
124
124
  export type WhatsappSetupLinksList422 = ValidationError;
125
125
  export declare const WhatsappSetupLinksList422: typeof ValidationError;
126
126
  export type WhatsappSetupLinksList500 = InternalError;
@@ -161,8 +161,8 @@ export type WhatsappSetupLinksCreate401 = UnauthorizedError;
161
161
  export declare const WhatsappSetupLinksCreate401: typeof UnauthorizedError;
162
162
  export type WhatsappSetupLinksCreate402 = PaymentRequiredError;
163
163
  export declare const WhatsappSetupLinksCreate402: typeof PaymentRequiredError;
164
- export type WhatsappSetupLinksCreate403 = ForbiddenError | FlagDisabledError;
165
- export declare const WhatsappSetupLinksCreate403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
164
+ export type WhatsappSetupLinksCreate403 = ForbiddenError;
165
+ export declare const WhatsappSetupLinksCreate403: typeof ForbiddenError;
166
166
  export type WhatsappSetupLinksCreate404 = ResourceNotFoundError;
167
167
  export declare const WhatsappSetupLinksCreate404: typeof ResourceNotFoundError;
168
168
  export type WhatsappSetupLinksCreate422 = ValidationError;
@@ -198,8 +198,8 @@ export type WhatsappSetupLinksGet400 = MalformedRequestError;
198
198
  export declare const WhatsappSetupLinksGet400: typeof MalformedRequestError;
199
199
  export type WhatsappSetupLinksGet401 = UnauthorizedError;
200
200
  export declare const WhatsappSetupLinksGet401: typeof UnauthorizedError;
201
- export type WhatsappSetupLinksGet403 = FlagDisabledError | ForbiddenError;
202
- export declare const WhatsappSetupLinksGet403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
201
+ export type WhatsappSetupLinksGet403 = ForbiddenError;
202
+ export declare const WhatsappSetupLinksGet403: typeof ForbiddenError;
203
203
  export type WhatsappSetupLinksGet404 = ResourceNotFoundError;
204
204
  export declare const WhatsappSetupLinksGet404: typeof ResourceNotFoundError;
205
205
  export type WhatsappSetupLinksGet422 = ValidationError;
@@ -233,8 +233,8 @@ export type WhatsappSetupLinksRevoke400 = MalformedRequestError;
233
233
  export declare const WhatsappSetupLinksRevoke400: typeof MalformedRequestError;
234
234
  export type WhatsappSetupLinksRevoke401 = UnauthorizedError;
235
235
  export declare const WhatsappSetupLinksRevoke401: typeof UnauthorizedError;
236
- export type WhatsappSetupLinksRevoke403 = FlagDisabledError | ForbiddenError;
237
- export declare const WhatsappSetupLinksRevoke403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
236
+ export type WhatsappSetupLinksRevoke403 = ForbiddenError;
237
+ export declare const WhatsappSetupLinksRevoke403: typeof ForbiddenError;
238
238
  export type WhatsappSetupLinksRevoke404 = ResourceNotFoundError;
239
239
  export declare const WhatsappSetupLinksRevoke404: typeof ResourceNotFoundError;
240
240
  export type WhatsappSetupLinksRevoke410 = WhatsAppSetupLinkUnavailableError;
@@ -264,7 +264,7 @@ declare const WhatsAppSetupLinksGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp
264
264
  readonly createdAt: Schema.String;
265
265
  readonly updatedAt: Schema.String;
266
266
  readonly url: Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>;
267
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
267
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
268
268
  readonly _tag: "BillingProviderError";
269
269
  readonly message: string;
270
270
  }, readonly [Schema.Struct<{
@@ -276,6 +276,18 @@ declare const WhatsAppSetupLinksGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp
276
276
  }>, Schema.Struct<{
277
277
  readonly _tag: Schema.tag<"BillingProviderError">;
278
278
  readonly message: Schema.String;
279
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
280
+ readonly _tag: "ForbiddenError";
281
+ readonly message: string;
282
+ }, readonly [Schema.Struct<{
283
+ readonly _tag: Schema.tag<"ForbiddenError">;
284
+ readonly message: Schema.String;
285
+ }>], {
286
+ readonly _tag: "ForbiddenError";
287
+ readonly message: string;
288
+ }>, Schema.Struct<{
289
+ readonly _tag: Schema.tag<"ForbiddenError">;
290
+ readonly message: Schema.String;
279
291
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
280
292
  readonly _tag: "GatewayTimeoutError";
281
293
  readonly message: string;
@@ -403,7 +415,19 @@ declare const WhatsAppSetupLinksGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp
403
415
  readonly revokedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
404
416
  readonly createdAt: Schema.String;
405
417
  readonly updatedAt: Schema.String;
406
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
418
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
419
+ readonly _tag: "ForbiddenError";
420
+ readonly message: string;
421
+ }, readonly [Schema.Struct<{
422
+ readonly _tag: Schema.tag<"ForbiddenError">;
423
+ readonly message: Schema.String;
424
+ }>], {
425
+ readonly _tag: "ForbiddenError";
426
+ readonly message: string;
427
+ }>, Schema.Struct<{
428
+ readonly _tag: Schema.tag<"ForbiddenError">;
429
+ readonly message: Schema.String;
430
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
407
431
  readonly _tag: "GatewayTimeoutError";
408
432
  readonly message: string;
409
433
  readonly retryAfterSeconds: number;
@@ -512,7 +536,19 @@ declare const WhatsAppSetupLinksGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp
512
536
  readonly updatedAt: Schema.String;
513
537
  }>>;
514
538
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
515
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
539
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
540
+ readonly _tag: "ForbiddenError";
541
+ readonly message: string;
542
+ }, readonly [Schema.Struct<{
543
+ readonly _tag: Schema.tag<"ForbiddenError">;
544
+ readonly message: Schema.String;
545
+ }>], {
546
+ readonly _tag: "ForbiddenError";
547
+ readonly message: string;
548
+ }>, Schema.Struct<{
549
+ readonly _tag: Schema.tag<"ForbiddenError">;
550
+ readonly message: Schema.String;
551
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
516
552
  readonly _tag: "GatewayTimeoutError";
517
553
  readonly message: string;
518
554
  readonly retryAfterSeconds: number;
@@ -595,7 +631,19 @@ declare const WhatsAppSetupLinksGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp
595
631
  readonly revokedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
596
632
  readonly createdAt: Schema.String;
597
633
  readonly updatedAt: Schema.String;
598
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
634
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
635
+ readonly _tag: "ForbiddenError";
636
+ readonly message: string;
637
+ }, readonly [Schema.Struct<{
638
+ readonly _tag: Schema.tag<"ForbiddenError">;
639
+ readonly message: Schema.String;
640
+ }>], {
641
+ readonly _tag: "ForbiddenError";
642
+ readonly message: string;
643
+ }>, Schema.Struct<{
644
+ readonly _tag: Schema.tag<"ForbiddenError">;
645
+ readonly message: Schema.String;
646
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
599
647
  readonly _tag: "GatewayTimeoutError";
600
648
  readonly message: string;
601
649
  readonly retryAfterSeconds: number;
@@ -1,5 +1,5 @@
1
1
  import { SensitiveString } from "../runtime.js";
2
- import { ApiKeySecurityMiddleware, BillingProviderError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, OrganizationId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppSetupLinkMetadata, WhatsAppSetupLinkRedirectUrl, WhatsAppSetupLinkUnavailableError } from "./shared.js";
2
+ import { ApiKeySecurityMiddleware, BillingProviderError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, OrganizationId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppSetupLinkMetadata, WhatsAppSetupLinkRedirectUrl, WhatsAppSetupLinkUnavailableError } from "./shared.js";
3
3
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
4
4
  import * as Schema from "effect/Schema";
5
5
  // src/effect/generated/whats-app-setup-links.ts
@@ -55,7 +55,7 @@ const WhatsappSetupLinksListQuery = /* @__PURE__ */ (() => Schema.Struct({
55
55
  const WhatsappSetupLinksList200 = WhatsAppSetupLinkPage;
56
56
  const WhatsappSetupLinksList400 = MalformedRequestError;
57
57
  const WhatsappSetupLinksList401 = UnauthorizedError;
58
- const WhatsappSetupLinksList403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
58
+ const WhatsappSetupLinksList403 = ForbiddenError;
59
59
  const WhatsappSetupLinksList422 = ValidationError;
60
60
  const WhatsappSetupLinksList500 = InternalError;
61
61
  const WhatsappSetupLinksList504 = GatewayTimeoutError;
@@ -69,7 +69,7 @@ const WhatsappSetupLinksCreate201 = CreatedWhatsAppSetupLink;
69
69
  const WhatsappSetupLinksCreate400 = MalformedRequestError;
70
70
  const WhatsappSetupLinksCreate401 = UnauthorizedError;
71
71
  const WhatsappSetupLinksCreate402 = PaymentRequiredError;
72
- const WhatsappSetupLinksCreate403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
72
+ const WhatsappSetupLinksCreate403 = ForbiddenError;
73
73
  const WhatsappSetupLinksCreate404 = ResourceNotFoundError;
74
74
  const WhatsappSetupLinksCreate422 = ValidationError;
75
75
  const WhatsappSetupLinksCreate500 = InternalError;
@@ -79,7 +79,7 @@ const WhatsappSetupLinksGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ l
79
79
  const WhatsappSetupLinksGet200 = WhatsAppSetupLink;
80
80
  const WhatsappSetupLinksGet400 = MalformedRequestError;
81
81
  const WhatsappSetupLinksGet401 = UnauthorizedError;
82
- const WhatsappSetupLinksGet403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
82
+ const WhatsappSetupLinksGet403 = ForbiddenError;
83
83
  const WhatsappSetupLinksGet404 = ResourceNotFoundError;
84
84
  const WhatsappSetupLinksGet422 = ValidationError;
85
85
  const WhatsappSetupLinksGet500 = InternalError;
@@ -88,7 +88,7 @@ const WhatsappSetupLinksRevokePathParams = /* @__PURE__ */ (() => Schema.Struct(
88
88
  const WhatsappSetupLinksRevoke200 = WhatsAppSetupLink;
89
89
  const WhatsappSetupLinksRevoke400 = MalformedRequestError;
90
90
  const WhatsappSetupLinksRevoke401 = UnauthorizedError;
91
- const WhatsappSetupLinksRevoke403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
91
+ const WhatsappSetupLinksRevoke403 = ForbiddenError;
92
92
  const WhatsappSetupLinksRevoke404 = ResourceNotFoundError;
93
93
  const WhatsappSetupLinksRevoke410 = WhatsAppSetupLinkUnavailableError;
94
94
  const WhatsappSetupLinksRevoke422 = ValidationError;
@@ -1,19 +1,7 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { ApiKeySecurityMiddleware, BillingProviderError, CampaignId, ConflictError, CredentialsError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyId, MalformedRequestError, MessageDeliveryId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, TemplateId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError, __SamvaRuntimeNonEmptySensitiveString, __SamvaRuntimeSensitiveString } from "./shared.js";
5
- export type PaginationMeta = {
6
- readonly page: number;
7
- readonly limit: number;
8
- readonly total: number;
9
- readonly totalPages: number;
10
- };
11
- export declare const PaginationMeta: Schema.Struct<{
12
- readonly page: Schema.Finite;
13
- readonly limit: Schema.Finite;
14
- readonly total: Schema.Finite;
15
- readonly totalPages: Schema.Finite;
16
- }>;
4
+ import { ApiKeySecurityMiddleware, BillingProviderError, CampaignId, ConflictError, CredentialsError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyId, MalformedRequestError, MessageDeliveryId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, TemplateId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError, __SamvaRuntimeNonEmptySensitiveString, __SamvaRuntimeSensitiveString } from "./shared.js";
17
5
  export type WhatsAppServiceWindowId = string & EffectBrand.Brand<"WhatsAppServiceWindowId">;
18
6
  export declare const WhatsAppServiceWindowId: Schema.brand<Schema.String, "WhatsAppServiceWindowId">;
19
7
  export type MoneyAmount = {
@@ -113,15 +101,15 @@ export declare const WhatsAppTemplateStats: Schema.Struct<{
113
101
  }>>;
114
102
  }>;
115
103
  export type WhatsappListBusinessAccountsQuery = {
116
- readonly page?: number | null;
117
104
  readonly limit?: number | null;
105
+ readonly cursor?: string;
118
106
  readonly isActive?: boolean | null;
119
107
  readonly verificationStatus?: "pending" | "verified" | "failed" | "suspended";
120
108
  readonly namespaceId?: NamespaceId;
121
109
  };
122
110
  export declare const WhatsappListBusinessAccountsQuery: Schema.Struct<{
123
- readonly page: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
124
111
  readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
112
+ readonly cursor: Schema.optionalKey<Schema.String>;
125
113
  readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
126
114
  readonly verificationStatus: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">, Schema.Literal<"suspended">]>>;
127
115
  readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
@@ -154,7 +142,7 @@ export type WhatsappListBusinessAccounts200 = {
154
142
  readonly createdAt: string;
155
143
  readonly updatedAt: string;
156
144
  }>;
157
- readonly pagination: PaginationMeta;
145
+ readonly nextCursor: string | null;
158
146
  };
159
147
  export declare const WhatsappListBusinessAccounts200: Schema.Struct<{
160
148
  readonly items: Schema.$Array<Schema.Struct<{
@@ -184,19 +172,14 @@ export declare const WhatsappListBusinessAccounts200: Schema.Struct<{
184
172
  readonly createdAt: Schema.String;
185
173
  readonly updatedAt: Schema.String;
186
174
  }>>;
187
- readonly pagination: Schema.Struct<{
188
- readonly page: Schema.Finite;
189
- readonly limit: Schema.Finite;
190
- readonly total: Schema.Finite;
191
- readonly totalPages: Schema.Finite;
192
- }>;
175
+ readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
193
176
  }>;
194
177
  export type WhatsappListBusinessAccounts400 = MalformedRequestError;
195
178
  export declare const WhatsappListBusinessAccounts400: typeof MalformedRequestError;
196
179
  export type WhatsappListBusinessAccounts401 = UnauthorizedError;
197
180
  export declare const WhatsappListBusinessAccounts401: typeof UnauthorizedError;
198
- export type WhatsappListBusinessAccounts403 = ForbiddenError | FlagDisabledError;
199
- export declare const WhatsappListBusinessAccounts403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
181
+ export type WhatsappListBusinessAccounts403 = ForbiddenError;
182
+ export declare const WhatsappListBusinessAccounts403: typeof ForbiddenError;
200
183
  export type WhatsappListBusinessAccounts422 = ValidationError;
201
184
  export declare const WhatsappListBusinessAccounts422: typeof ValidationError;
202
185
  export type WhatsappListBusinessAccounts500 = InternalError;
@@ -275,8 +258,8 @@ export type WhatsappConnectBusinessAccount401 = UnauthorizedError;
275
258
  export declare const WhatsappConnectBusinessAccount401: typeof UnauthorizedError;
276
259
  export type WhatsappConnectBusinessAccount402 = PaymentRequiredError;
277
260
  export declare const WhatsappConnectBusinessAccount402: typeof PaymentRequiredError;
278
- export type WhatsappConnectBusinessAccount403 = ForbiddenError | FlagDisabledError;
279
- export declare const WhatsappConnectBusinessAccount403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
261
+ export type WhatsappConnectBusinessAccount403 = ForbiddenError;
262
+ export declare const WhatsappConnectBusinessAccount403: typeof ForbiddenError;
280
263
  export type WhatsappConnectBusinessAccount404 = ResourceNotFoundError;
281
264
  export declare const WhatsappConnectBusinessAccount404: typeof ResourceNotFoundError;
282
265
  export type WhatsappConnectBusinessAccount409 = ConflictError;
@@ -353,8 +336,8 @@ export type WhatsappGetBusinessAccount400 = MalformedRequestError;
353
336
  export declare const WhatsappGetBusinessAccount400: typeof MalformedRequestError;
354
337
  export type WhatsappGetBusinessAccount401 = UnauthorizedError;
355
338
  export declare const WhatsappGetBusinessAccount401: typeof UnauthorizedError;
356
- export type WhatsappGetBusinessAccount403 = FlagDisabledError | ForbiddenError;
357
- export declare const WhatsappGetBusinessAccount403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
339
+ export type WhatsappGetBusinessAccount403 = ForbiddenError;
340
+ export declare const WhatsappGetBusinessAccount403: typeof ForbiddenError;
358
341
  export type WhatsappGetBusinessAccount404 = ResourceNotFoundError;
359
342
  export declare const WhatsappGetBusinessAccount404: typeof ResourceNotFoundError;
360
343
  export type WhatsappGetBusinessAccount422 = ValidationError;
@@ -379,8 +362,8 @@ export type WhatsappDisconnectBusinessAccount400 = MalformedRequestError;
379
362
  export declare const WhatsappDisconnectBusinessAccount400: typeof MalformedRequestError;
380
363
  export type WhatsappDisconnectBusinessAccount401 = UnauthorizedError;
381
364
  export declare const WhatsappDisconnectBusinessAccount401: typeof UnauthorizedError;
382
- export type WhatsappDisconnectBusinessAccount403 = FlagDisabledError | ForbiddenError;
383
- export declare const WhatsappDisconnectBusinessAccount403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
365
+ export type WhatsappDisconnectBusinessAccount403 = ForbiddenError;
366
+ export declare const WhatsappDisconnectBusinessAccount403: typeof ForbiddenError;
384
367
  export type WhatsappDisconnectBusinessAccount404 = ResourceNotFoundError;
385
368
  export declare const WhatsappDisconnectBusinessAccount404: typeof ResourceNotFoundError;
386
369
  export type WhatsappDisconnectBusinessAccount422 = ValidationError;
@@ -461,8 +444,8 @@ export type WhatsappUpdateBusinessAccount400 = MalformedRequestError;
461
444
  export declare const WhatsappUpdateBusinessAccount400: typeof MalformedRequestError;
462
445
  export type WhatsappUpdateBusinessAccount401 = UnauthorizedError;
463
446
  export declare const WhatsappUpdateBusinessAccount401: typeof UnauthorizedError;
464
- export type WhatsappUpdateBusinessAccount403 = FlagDisabledError | ForbiddenError;
465
- export declare const WhatsappUpdateBusinessAccount403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
447
+ export type WhatsappUpdateBusinessAccount403 = ForbiddenError;
448
+ export declare const WhatsappUpdateBusinessAccount403: typeof ForbiddenError;
466
449
  export type WhatsappUpdateBusinessAccount404 = ResourceNotFoundError;
467
450
  export declare const WhatsappUpdateBusinessAccount404: typeof ResourceNotFoundError;
468
451
  export type WhatsappUpdateBusinessAccount422 = ValidationError;
@@ -535,8 +518,8 @@ export type WhatsappSetDefaultBusinessAccount400 = MalformedRequestError;
535
518
  export declare const WhatsappSetDefaultBusinessAccount400: typeof MalformedRequestError;
536
519
  export type WhatsappSetDefaultBusinessAccount401 = UnauthorizedError;
537
520
  export declare const WhatsappSetDefaultBusinessAccount401: typeof UnauthorizedError;
538
- export type WhatsappSetDefaultBusinessAccount403 = FlagDisabledError | ForbiddenError;
539
- export declare const WhatsappSetDefaultBusinessAccount403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
521
+ export type WhatsappSetDefaultBusinessAccount403 = ForbiddenError;
522
+ export declare const WhatsappSetDefaultBusinessAccount403: typeof ForbiddenError;
540
523
  export type WhatsappSetDefaultBusinessAccount404 = ResourceNotFoundError;
541
524
  export declare const WhatsappSetDefaultBusinessAccount404: typeof ResourceNotFoundError;
542
525
  export type WhatsappSetDefaultBusinessAccount422 = ValidationError;
@@ -573,8 +556,8 @@ export type WhatsappSyncAccountStatus400 = MalformedRequestError;
573
556
  export declare const WhatsappSyncAccountStatus400: typeof MalformedRequestError;
574
557
  export type WhatsappSyncAccountStatus401 = UnauthorizedError;
575
558
  export declare const WhatsappSyncAccountStatus401: typeof UnauthorizedError;
576
- export type WhatsappSyncAccountStatus403 = FlagDisabledError | ForbiddenError;
577
- export declare const WhatsappSyncAccountStatus403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
559
+ export type WhatsappSyncAccountStatus403 = ForbiddenError;
560
+ export declare const WhatsappSyncAccountStatus403: typeof ForbiddenError;
578
561
  export type WhatsappSyncAccountStatus404 = ResourceNotFoundError;
579
562
  export declare const WhatsappSyncAccountStatus404: typeof ResourceNotFoundError;
580
563
  export type WhatsappSyncAccountStatus422 = ValidationError;
@@ -603,8 +586,8 @@ export type WhatsappGetMediaDownloadUrl400 = MalformedRequestError;
603
586
  export declare const WhatsappGetMediaDownloadUrl400: typeof MalformedRequestError;
604
587
  export type WhatsappGetMediaDownloadUrl401 = UnauthorizedError;
605
588
  export declare const WhatsappGetMediaDownloadUrl401: typeof UnauthorizedError;
606
- export type WhatsappGetMediaDownloadUrl403 = FlagDisabledError | ForbiddenError;
607
- export declare const WhatsappGetMediaDownloadUrl403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
589
+ export type WhatsappGetMediaDownloadUrl403 = ForbiddenError;
590
+ export declare const WhatsappGetMediaDownloadUrl403: typeof ForbiddenError;
608
591
  export type WhatsappGetMediaDownloadUrl404 = ResourceNotFoundError;
609
592
  export declare const WhatsappGetMediaDownloadUrl404: typeof ResourceNotFoundError;
610
593
  export type WhatsappGetMediaDownloadUrl422 = ValidationError;
@@ -638,8 +621,8 @@ export type WhatsappGetServiceWindowBilling400 = MalformedRequestError;
638
621
  export declare const WhatsappGetServiceWindowBilling400: typeof MalformedRequestError;
639
622
  export type WhatsappGetServiceWindowBilling401 = UnauthorizedError;
640
623
  export declare const WhatsappGetServiceWindowBilling401: typeof UnauthorizedError;
641
- export type WhatsappGetServiceWindowBilling403 = FlagDisabledError | ForbiddenError;
642
- export declare const WhatsappGetServiceWindowBilling403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
624
+ export type WhatsappGetServiceWindowBilling403 = ForbiddenError;
625
+ export declare const WhatsappGetServiceWindowBilling403: typeof ForbiddenError;
643
626
  export type WhatsappGetServiceWindowBilling404 = ResourceNotFoundError;
644
627
  export declare const WhatsappGetServiceWindowBilling404: typeof ResourceNotFoundError;
645
628
  export type WhatsappGetServiceWindowBilling422 = ValidationError;
@@ -674,8 +657,8 @@ export type WhatsappGetServiceWindowStatus400 = MalformedRequestError;
674
657
  export declare const WhatsappGetServiceWindowStatus400: typeof MalformedRequestError;
675
658
  export type WhatsappGetServiceWindowStatus401 = UnauthorizedError;
676
659
  export declare const WhatsappGetServiceWindowStatus401: typeof UnauthorizedError;
677
- export type WhatsappGetServiceWindowStatus403 = FlagDisabledError | ForbiddenError;
678
- export declare const WhatsappGetServiceWindowStatus403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
660
+ export type WhatsappGetServiceWindowStatus403 = ForbiddenError;
661
+ export declare const WhatsappGetServiceWindowStatus403: typeof ForbiddenError;
679
662
  export type WhatsappGetServiceWindowStatus404 = ResourceNotFoundError;
680
663
  export declare const WhatsappGetServiceWindowStatus404: typeof ResourceNotFoundError;
681
664
  export type WhatsappGetServiceWindowStatus422 = ValidationError;
@@ -714,8 +697,8 @@ export type WhatsappGetStats400 = MalformedRequestError;
714
697
  export declare const WhatsappGetStats400: typeof MalformedRequestError;
715
698
  export type WhatsappGetStats401 = UnauthorizedError;
716
699
  export declare const WhatsappGetStats401: typeof UnauthorizedError;
717
- export type WhatsappGetStats403 = FlagDisabledError | ForbiddenError;
718
- export declare const WhatsappGetStats403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
700
+ export type WhatsappGetStats403 = ForbiddenError;
701
+ export declare const WhatsappGetStats403: typeof ForbiddenError;
719
702
  export type WhatsappGetStats422 = ValidationError;
720
703
  export declare const WhatsappGetStats422: typeof ValidationError;
721
704
  export type WhatsappGetStats500 = InternalError;
@@ -768,8 +751,8 @@ export type WhatsappGetTemplateStats400 = MalformedRequestError;
768
751
  export declare const WhatsappGetTemplateStats400: typeof MalformedRequestError;
769
752
  export type WhatsappGetTemplateStats401 = UnauthorizedError;
770
753
  export declare const WhatsappGetTemplateStats401: typeof UnauthorizedError;
771
- export type WhatsappGetTemplateStats403 = FlagDisabledError | ForbiddenError;
772
- export declare const WhatsappGetTemplateStats403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
754
+ export type WhatsappGetTemplateStats403 = ForbiddenError;
755
+ export declare const WhatsappGetTemplateStats403: typeof ForbiddenError;
773
756
  export type WhatsappGetTemplateStats422 = ValidationError;
774
757
  export declare const WhatsappGetTemplateStats422: typeof ValidationError;
775
758
  export type WhatsappGetTemplateStats500 = InternalError;
@@ -807,7 +790,7 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
807
790
  readonly isActive: Schema.Boolean;
808
791
  readonly createdAt: Schema.String;
809
792
  readonly updatedAt: Schema.String;
810
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.Union<readonly [typeof InternalError, typeof CredentialsError]> | Schema.Union<readonly [typeof WhatsAppChannelError, typeof BillingProviderError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
793
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof InternalError, typeof CredentialsError]> | Schema.Union<readonly [typeof WhatsAppChannelError, typeof BillingProviderError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
811
794
  readonly _tag: "ConflictError";
812
795
  readonly message: string;
813
796
  readonly resource: string;
@@ -827,6 +810,18 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
827
810
  readonly message: Schema.String;
828
811
  readonly resource: Schema.String;
829
812
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
813
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
814
+ readonly _tag: "ForbiddenError";
815
+ readonly message: string;
816
+ }, readonly [Schema.Struct<{
817
+ readonly _tag: Schema.tag<"ForbiddenError">;
818
+ readonly message: Schema.String;
819
+ }>], {
820
+ readonly _tag: "ForbiddenError";
821
+ readonly message: string;
822
+ }>, Schema.Struct<{
823
+ readonly _tag: Schema.tag<"ForbiddenError">;
824
+ readonly message: Schema.String;
830
825
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
831
826
  readonly _tag: "GatewayTimeoutError";
832
827
  readonly message: string;
@@ -943,7 +938,19 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
943
938
  readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
944
939
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
945
940
  readonly success: Schema.Literal<true>;
946
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
941
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
942
+ readonly _tag: "ForbiddenError";
943
+ readonly message: string;
944
+ }, readonly [Schema.Struct<{
945
+ readonly _tag: Schema.tag<"ForbiddenError">;
946
+ readonly message: Schema.String;
947
+ }>], {
948
+ readonly _tag: "ForbiddenError";
949
+ readonly message: string;
950
+ }>, Schema.Struct<{
951
+ readonly _tag: Schema.tag<"ForbiddenError">;
952
+ readonly message: Schema.String;
953
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
947
954
  readonly _tag: "GatewayTimeoutError";
948
955
  readonly message: string;
949
956
  readonly retryAfterSeconds: number;
@@ -1059,7 +1066,19 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
1059
1066
  readonly isActive: Schema.Boolean;
1060
1067
  readonly createdAt: Schema.String;
1061
1068
  readonly updatedAt: Schema.String;
1062
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1069
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1070
+ readonly _tag: "ForbiddenError";
1071
+ readonly message: string;
1072
+ }, readonly [Schema.Struct<{
1073
+ readonly _tag: Schema.tag<"ForbiddenError">;
1074
+ readonly message: Schema.String;
1075
+ }>], {
1076
+ readonly _tag: "ForbiddenError";
1077
+ readonly message: string;
1078
+ }>, Schema.Struct<{
1079
+ readonly _tag: Schema.tag<"ForbiddenError">;
1080
+ readonly message: Schema.String;
1081
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1063
1082
  readonly _tag: "GatewayTimeoutError";
1064
1083
  readonly message: string;
1065
1084
  readonly retryAfterSeconds: number;
@@ -1152,7 +1171,19 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
1152
1171
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
1153
1172
  readonly url: Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>;
1154
1173
  readonly expiresAt: Schema.String;
1155
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1174
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1175
+ readonly _tag: "ForbiddenError";
1176
+ readonly message: string;
1177
+ }, readonly [Schema.Struct<{
1178
+ readonly _tag: Schema.tag<"ForbiddenError">;
1179
+ readonly message: Schema.String;
1180
+ }>], {
1181
+ readonly _tag: "ForbiddenError";
1182
+ readonly message: string;
1183
+ }>, Schema.Struct<{
1184
+ readonly _tag: Schema.tag<"ForbiddenError">;
1185
+ readonly message: Schema.String;
1186
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1156
1187
  readonly _tag: "GatewayTimeoutError";
1157
1188
  readonly message: string;
1158
1189
  readonly retryAfterSeconds: number;
@@ -1250,7 +1281,19 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
1250
1281
  readonly amount: Schema.String;
1251
1282
  readonly currency: Schema.String;
1252
1283
  }>>;
1253
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1284
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1285
+ readonly _tag: "ForbiddenError";
1286
+ readonly message: string;
1287
+ }, readonly [Schema.Struct<{
1288
+ readonly _tag: Schema.tag<"ForbiddenError">;
1289
+ readonly message: Schema.String;
1290
+ }>], {
1291
+ readonly _tag: "ForbiddenError";
1292
+ readonly message: string;
1293
+ }>, Schema.Struct<{
1294
+ readonly _tag: Schema.tag<"ForbiddenError">;
1295
+ readonly message: Schema.String;
1296
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1254
1297
  readonly _tag: "GatewayTimeoutError";
1255
1298
  readonly message: string;
1256
1299
  readonly retryAfterSeconds: number;
@@ -1347,7 +1390,19 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
1347
1390
  readonly isFreeEntryPointActive: Schema.Boolean;
1348
1391
  readonly serviceWindowExpiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1349
1392
  readonly freeEntryPointExpiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1350
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1393
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1394
+ readonly _tag: "ForbiddenError";
1395
+ readonly message: string;
1396
+ }, readonly [Schema.Struct<{
1397
+ readonly _tag: Schema.tag<"ForbiddenError">;
1398
+ readonly message: Schema.String;
1399
+ }>], {
1400
+ readonly _tag: "ForbiddenError";
1401
+ readonly message: string;
1402
+ }>, Schema.Struct<{
1403
+ readonly _tag: Schema.tag<"ForbiddenError">;
1404
+ readonly message: Schema.String;
1405
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1351
1406
  readonly _tag: "GatewayTimeoutError";
1352
1407
  readonly message: string;
1353
1408
  readonly retryAfterSeconds: number;
@@ -1446,7 +1501,19 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
1446
1501
  readonly deliveryRate: Schema.Finite;
1447
1502
  readonly readRate: Schema.Finite;
1448
1503
  readonly failureRate: Schema.Finite;
1449
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1504
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1505
+ readonly _tag: "ForbiddenError";
1506
+ readonly message: string;
1507
+ }, readonly [Schema.Struct<{
1508
+ readonly _tag: Schema.tag<"ForbiddenError">;
1509
+ readonly message: Schema.String;
1510
+ }>], {
1511
+ readonly _tag: "ForbiddenError";
1512
+ readonly message: string;
1513
+ }>, Schema.Struct<{
1514
+ readonly _tag: Schema.tag<"ForbiddenError">;
1515
+ readonly message: Schema.String;
1516
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1450
1517
  readonly _tag: "GatewayTimeoutError";
1451
1518
  readonly message: string;
1452
1519
  readonly retryAfterSeconds: number;
@@ -1546,7 +1613,19 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
1546
1613
  readonly currency: Schema.String;
1547
1614
  }>>;
1548
1615
  }>>;
1549
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1616
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1617
+ readonly _tag: "ForbiddenError";
1618
+ readonly message: string;
1619
+ }, readonly [Schema.Struct<{
1620
+ readonly _tag: Schema.tag<"ForbiddenError">;
1621
+ readonly message: Schema.String;
1622
+ }>], {
1623
+ readonly _tag: "ForbiddenError";
1624
+ readonly message: string;
1625
+ }>, Schema.Struct<{
1626
+ readonly _tag: Schema.tag<"ForbiddenError">;
1627
+ readonly message: Schema.String;
1628
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1550
1629
  readonly _tag: "GatewayTimeoutError";
1551
1630
  readonly message: string;
1552
1631
  readonly retryAfterSeconds: number;
@@ -1615,8 +1694,8 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
1615
1694
  readonly message: Schema.String;
1616
1695
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
1617
1696
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"whatsappListBusinessAccounts", "GET", "/v1/whatsapp/business-accounts", never, Schema.toCodecStringTree<Schema.Struct<{
1618
- readonly page: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1619
1697
  readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1698
+ readonly cursor: Schema.optionalKey<Schema.String>;
1620
1699
  readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
1621
1700
  readonly verificationStatus: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">, Schema.Literal<"suspended">]>>;
1622
1701
  readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
@@ -1648,13 +1727,20 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
1648
1727
  readonly createdAt: Schema.String;
1649
1728
  readonly updatedAt: Schema.String;
1650
1729
  }>>;
1651
- readonly pagination: Schema.Struct<{
1652
- readonly page: Schema.Finite;
1653
- readonly limit: Schema.Finite;
1654
- readonly total: Schema.Finite;
1655
- readonly totalPages: Schema.Finite;
1656
- }>;
1657
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1730
+ readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
1731
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1732
+ readonly _tag: "ForbiddenError";
1733
+ readonly message: string;
1734
+ }, readonly [Schema.Struct<{
1735
+ readonly _tag: Schema.tag<"ForbiddenError">;
1736
+ readonly message: Schema.String;
1737
+ }>], {
1738
+ readonly _tag: "ForbiddenError";
1739
+ readonly message: string;
1740
+ }>, Schema.Struct<{
1741
+ readonly _tag: Schema.tag<"ForbiddenError">;
1742
+ readonly message: Schema.String;
1743
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1658
1744
  readonly _tag: "GatewayTimeoutError";
1659
1745
  readonly message: string;
1660
1746
  readonly retryAfterSeconds: number;
@@ -1750,7 +1836,19 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
1750
1836
  readonly isActive: Schema.Boolean;
1751
1837
  readonly createdAt: Schema.String;
1752
1838
  readonly updatedAt: Schema.String;
1753
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1839
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1840
+ readonly _tag: "ForbiddenError";
1841
+ readonly message: string;
1842
+ }, readonly [Schema.Struct<{
1843
+ readonly _tag: Schema.tag<"ForbiddenError">;
1844
+ readonly message: Schema.String;
1845
+ }>], {
1846
+ readonly _tag: "ForbiddenError";
1847
+ readonly message: string;
1848
+ }>, Schema.Struct<{
1849
+ readonly _tag: Schema.tag<"ForbiddenError">;
1850
+ readonly message: Schema.String;
1851
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1754
1852
  readonly _tag: "GatewayTimeoutError";
1755
1853
  readonly message: string;
1756
1854
  readonly retryAfterSeconds: number;
@@ -1848,7 +1946,19 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
1848
1946
  readonly businessPortfolioId: Schema.Union<readonly [Schema.String, Schema.Null]>;
1849
1947
  readonly verificationStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">, Schema.Literal<"suspended">]>;
1850
1948
  readonly syncedAt: Schema.String;
1851
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof InternalError, typeof CredentialsError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1949
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof InternalError, typeof CredentialsError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1950
+ readonly _tag: "ForbiddenError";
1951
+ readonly message: string;
1952
+ }, readonly [Schema.Struct<{
1953
+ readonly _tag: Schema.tag<"ForbiddenError">;
1954
+ readonly message: Schema.String;
1955
+ }>], {
1956
+ readonly _tag: "ForbiddenError";
1957
+ readonly message: string;
1958
+ }>, Schema.Struct<{
1959
+ readonly _tag: Schema.tag<"ForbiddenError">;
1960
+ readonly message: Schema.String;
1961
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1852
1962
  readonly _tag: "GatewayTimeoutError";
1853
1963
  readonly message: string;
1854
1964
  readonly retryAfterSeconds: number;
@@ -1995,7 +2105,19 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
1995
2105
  readonly isActive: Schema.Boolean;
1996
2106
  readonly createdAt: Schema.String;
1997
2107
  readonly updatedAt: Schema.String;
1998
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
2108
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
2109
+ readonly _tag: "ForbiddenError";
2110
+ readonly message: string;
2111
+ }, readonly [Schema.Struct<{
2112
+ readonly _tag: Schema.tag<"ForbiddenError">;
2113
+ readonly message: Schema.String;
2114
+ }>], {
2115
+ readonly _tag: "ForbiddenError";
2116
+ readonly message: string;
2117
+ }>, Schema.Struct<{
2118
+ readonly _tag: Schema.tag<"ForbiddenError">;
2119
+ readonly message: Schema.String;
2120
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1999
2121
  readonly _tag: "GatewayTimeoutError";
2000
2122
  readonly message: string;
2001
2123
  readonly retryAfterSeconds: number;