samva 0.44.0 → 0.45.1

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 (93) hide show
  1. package/AGENTS.md +3 -0
  2. package/README.md +4 -0
  3. package/dist/client/sdk.gen.d.ts +281 -1
  4. package/dist/client/sdk.gen.js +856 -1
  5. package/dist/client/types.gen.d.ts +1858 -46
  6. package/dist/effect/agents.d.ts +86 -86
  7. package/dist/effect/agents.js +2 -2
  8. package/dist/effect/api-keys.d.ts +36 -36
  9. package/dist/effect/api-keys.js +2 -2
  10. package/dist/effect/attachments.d.ts +3 -3
  11. package/dist/effect/attachments.js +1 -1
  12. package/dist/effect/campaigns.d.ts +250 -250
  13. package/dist/effect/campaigns.js +3 -3
  14. package/dist/effect/categories.d.ts +23 -5
  15. package/dist/effect/categories.js +11 -20
  16. package/dist/effect/contact-groups.d.ts +44 -44
  17. package/dist/effect/contact-groups.js +3 -3
  18. package/dist/effect/contacts.d.ts +3 -3
  19. package/dist/effect/contacts.js +1 -1
  20. package/dist/effect/conversations.d.ts +53 -53
  21. package/dist/effect/conversations.js +1 -1
  22. package/dist/effect/email.d.ts +97 -97
  23. package/dist/effect/email.js +21 -21
  24. package/dist/effect/errors.d.ts +1 -1
  25. package/dist/effect/errors.js +2 -2
  26. package/dist/effect/extension-installations.d.ts +6 -6
  27. package/dist/effect/extension-installations.js +1 -1
  28. package/dist/effect/generated/analytics.d.ts +6 -0
  29. package/dist/effect/generated/analytics.js +4 -2
  30. package/dist/effect/generated/index.d.ts +9 -1
  31. package/dist/effect/generated/journeys.d.ts +1 -3
  32. package/dist/effect/generated/journeys.js +2 -6
  33. package/dist/effect/generated/messages.d.ts +1 -5
  34. package/dist/effect/generated/messages.js +2 -10
  35. package/dist/effect/generated/shared.d.ts +92 -2
  36. package/dist/effect/generated/shared.js +43 -2
  37. package/dist/effect/generated/template-registrations.d.ts +651 -0
  38. package/dist/effect/generated/template-registrations.js +138 -0
  39. package/dist/effect/generated/whats-app-flows.d.ts +1838 -0
  40. package/dist/effect/generated/whats-app-flows.js +338 -0
  41. package/dist/effect/generated/whats-app-setup-links.d.ts +705 -0
  42. package/dist/effect/generated/whats-app-setup-links.js +150 -0
  43. package/dist/effect/generated/whats-app.d.ts +2089 -0
  44. package/dist/effect/generated/whats-app.js +633 -0
  45. package/dist/effect/generated-metadata.d.ts +245 -0
  46. package/dist/effect/generated-metadata.js +221 -48
  47. package/dist/effect/index.d.ts +4 -0
  48. package/dist/effect/index.js +6 -2
  49. package/dist/effect/mailboxes.d.ts +298 -298
  50. package/dist/effect/mailboxes.js +3 -3
  51. package/dist/effect/media.d.ts +4 -4
  52. package/dist/effect/media.js +2 -2
  53. package/dist/effect/messages.d.ts +17 -17
  54. package/dist/effect/messages.js +4 -4
  55. package/dist/effect/namespaces.d.ts +5 -5
  56. package/dist/effect/namespaces.js +1 -1
  57. package/dist/effect/newsletter-issues.d.ts +8 -8
  58. package/dist/effect/newsletter-issues.js +2 -2
  59. package/dist/effect/newsletters.d.ts +3 -3
  60. package/dist/effect/newsletters.js +1 -1
  61. package/dist/effect/organizations.d.ts +10 -10
  62. package/dist/effect/organizations.js +1 -1
  63. package/dist/effect/runtime.d.ts +2 -0
  64. package/dist/effect/runtime.js +2 -1
  65. package/dist/effect/scheduled-messages.d.ts +839 -839
  66. package/dist/effect/scheduled-messages.js +1 -1
  67. package/dist/effect/template-registrations.d.ts +12 -0
  68. package/dist/effect/template-registrations.js +16 -0
  69. package/dist/effect/templates.d.ts +66 -66
  70. package/dist/effect/templates.js +13 -13
  71. package/dist/effect/topic-forms.d.ts +4 -4
  72. package/dist/effect/topic-forms.js +1 -1
  73. package/dist/effect/topics.d.ts +11 -11
  74. package/dist/effect/topics.js +2 -2
  75. package/dist/effect/webhooks.d.ts +18 -18
  76. package/dist/effect/webhooks.js +3 -3
  77. package/dist/effect/whatsapp-flows.d.ts +34 -0
  78. package/dist/effect/whatsapp-flows.js +30 -0
  79. package/dist/effect/whatsapp-setup-links.d.ts +66 -0
  80. package/dist/effect/whatsapp-setup-links.js +18 -0
  81. package/dist/effect/whatsapp.d.ts +51 -0
  82. package/dist/effect/whatsapp.js +34 -0
  83. package/dist/index.js +2 -2
  84. package/dist/package.js +1 -1
  85. package/dist/promises/client.d.ts +9 -1
  86. package/dist/promises/client.js +11 -3
  87. package/dist/promises/errors.gen.d.ts +38 -2
  88. package/dist/promises/errors.gen.js +160 -3
  89. package/dist/promises/index.js +2 -2
  90. package/dist/promises/types.gen.d.ts +1 -1
  91. package/dist/service-map.d.ts +917 -736
  92. package/dist/service-map.js +288 -235
  93. package/package.json +19 -3
@@ -0,0 +1,705 @@
1
+ import type * as EffectBrand from "effect/Brand";
2
+ import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
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";
5
+ export type WhatsAppSetupLinkStatus = "pending" | "completed" | "revoked" | "expired";
6
+ export declare const WhatsAppSetupLinkStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>;
7
+ export type WhatsAppSetupLinkId = string & EffectBrand.Brand<"WhatsAppSetupLinkId">;
8
+ export declare const WhatsAppSetupLinkId: Schema.brand<Schema.String, "WhatsAppSetupLinkId">;
9
+ export type WhatsAppSetupLink = {
10
+ readonly id: WhatsAppSetupLinkId;
11
+ readonly organizationId: OrganizationId;
12
+ readonly namespaceId: NamespaceId;
13
+ readonly status: WhatsAppSetupLinkStatus;
14
+ readonly redirectUrl: string | null;
15
+ readonly metadata: WhatsAppSetupLinkMetadata;
16
+ readonly expiresAt: string;
17
+ readonly businessAccountId: WhatsAppBusinessAccountId | null;
18
+ readonly completedAt: string | null;
19
+ readonly revokedAt: string | null;
20
+ readonly createdAt: string;
21
+ readonly updatedAt: string;
22
+ };
23
+ export declare const WhatsAppSetupLink: Schema.Struct<{
24
+ readonly id: Schema.brand<Schema.String, "WhatsAppSetupLinkId">;
25
+ readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
26
+ readonly namespaceId: Schema.brand<Schema.String, "NamespaceId">;
27
+ readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>;
28
+ readonly redirectUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
29
+ readonly metadata: Schema.$Record<Schema.String, Schema.String>;
30
+ readonly expiresAt: Schema.String;
31
+ readonly businessAccountId: Schema.Union<readonly [Schema.brand<Schema.String, "WhatsAppBusinessAccountId">, Schema.Null]>;
32
+ readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
33
+ readonly revokedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
34
+ readonly createdAt: Schema.String;
35
+ readonly updatedAt: Schema.String;
36
+ }>;
37
+ export type CreatedWhatsAppSetupLink = {
38
+ readonly id: WhatsAppSetupLinkId;
39
+ readonly organizationId: OrganizationId;
40
+ readonly namespaceId: NamespaceId;
41
+ readonly status: WhatsAppSetupLinkStatus;
42
+ readonly redirectUrl: string | null;
43
+ readonly metadata: WhatsAppSetupLinkMetadata;
44
+ readonly expiresAt: string;
45
+ readonly businessAccountId: WhatsAppBusinessAccountId | null;
46
+ readonly completedAt: string | null;
47
+ readonly revokedAt: string | null;
48
+ readonly createdAt: string;
49
+ readonly updatedAt: string;
50
+ readonly url: __SamvaRuntimeSensitiveString;
51
+ };
52
+ export declare const CreatedWhatsAppSetupLink: Schema.Struct<{
53
+ readonly id: Schema.brand<Schema.String, "WhatsAppSetupLinkId">;
54
+ readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
55
+ readonly namespaceId: Schema.brand<Schema.String, "NamespaceId">;
56
+ readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>;
57
+ readonly redirectUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
58
+ readonly metadata: Schema.$Record<Schema.String, Schema.String>;
59
+ readonly expiresAt: Schema.String;
60
+ readonly businessAccountId: Schema.Union<readonly [Schema.brand<Schema.String, "WhatsAppBusinessAccountId">, Schema.Null]>;
61
+ readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
62
+ readonly revokedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
63
+ readonly createdAt: Schema.String;
64
+ readonly updatedAt: Schema.String;
65
+ readonly url: Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>;
66
+ }>;
67
+ export type WhatsAppSetupLinkPage = {
68
+ readonly items: ReadonlyArray<WhatsAppSetupLink>;
69
+ readonly nextCursor: string | null;
70
+ };
71
+ export declare const WhatsAppSetupLinkPage: Schema.Struct<{
72
+ readonly items: Schema.$Array<Schema.Struct<{
73
+ readonly id: Schema.brand<Schema.String, "WhatsAppSetupLinkId">;
74
+ readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
75
+ readonly namespaceId: Schema.brand<Schema.String, "NamespaceId">;
76
+ readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>;
77
+ readonly redirectUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
78
+ readonly metadata: Schema.$Record<Schema.String, Schema.String>;
79
+ readonly expiresAt: Schema.String;
80
+ readonly businessAccountId: Schema.Union<readonly [Schema.brand<Schema.String, "WhatsAppBusinessAccountId">, Schema.Null]>;
81
+ readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
82
+ readonly revokedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
83
+ readonly createdAt: Schema.String;
84
+ readonly updatedAt: Schema.String;
85
+ }>>;
86
+ readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
87
+ }>;
88
+ export type WhatsappSetupLinksListQuery = {
89
+ readonly limit?: number | null;
90
+ readonly cursor?: string;
91
+ readonly namespaceId?: NamespaceId;
92
+ readonly status?: WhatsAppSetupLinkStatus;
93
+ };
94
+ export declare const WhatsappSetupLinksListQuery: Schema.Struct<{
95
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
96
+ readonly cursor: Schema.optionalKey<Schema.String>;
97
+ readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
98
+ readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>>;
99
+ }>;
100
+ export type WhatsappSetupLinksList200 = WhatsAppSetupLinkPage;
101
+ export declare const WhatsappSetupLinksList200: Schema.Struct<{
102
+ readonly items: Schema.$Array<Schema.Struct<{
103
+ readonly id: Schema.brand<Schema.String, "WhatsAppSetupLinkId">;
104
+ readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
105
+ readonly namespaceId: Schema.brand<Schema.String, "NamespaceId">;
106
+ readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>;
107
+ readonly redirectUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
108
+ readonly metadata: Schema.$Record<Schema.String, Schema.String>;
109
+ readonly expiresAt: Schema.String;
110
+ readonly businessAccountId: Schema.Union<readonly [Schema.brand<Schema.String, "WhatsAppBusinessAccountId">, Schema.Null]>;
111
+ readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
112
+ readonly revokedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
113
+ readonly createdAt: Schema.String;
114
+ readonly updatedAt: Schema.String;
115
+ }>>;
116
+ readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
117
+ }>;
118
+ export type WhatsappSetupLinksList400 = MalformedRequestError;
119
+ export declare const WhatsappSetupLinksList400: typeof MalformedRequestError;
120
+ export type WhatsappSetupLinksList401 = UnauthorizedError;
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]>;
124
+ export type WhatsappSetupLinksList422 = ValidationError;
125
+ export declare const WhatsappSetupLinksList422: typeof ValidationError;
126
+ export type WhatsappSetupLinksList500 = InternalError;
127
+ export declare const WhatsappSetupLinksList500: typeof InternalError;
128
+ export type WhatsappSetupLinksList504 = GatewayTimeoutError;
129
+ export declare const WhatsappSetupLinksList504: typeof GatewayTimeoutError;
130
+ export type WhatsappSetupLinksCreateRequestJson = {
131
+ readonly namespaceId: NamespaceId;
132
+ readonly redirectUrl?: WhatsAppSetupLinkRedirectUrl | null;
133
+ readonly metadata?: WhatsAppSetupLinkMetadata | null;
134
+ readonly expiresAt?: string | null;
135
+ };
136
+ export declare const WhatsappSetupLinksCreateRequestJson: Schema.Struct<{
137
+ readonly namespaceId: Schema.brand<Schema.String, "NamespaceId">;
138
+ readonly redirectUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
139
+ readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
140
+ readonly expiresAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
141
+ }>;
142
+ export type WhatsappSetupLinksCreate201 = CreatedWhatsAppSetupLink;
143
+ export declare const WhatsappSetupLinksCreate201: Schema.Struct<{
144
+ readonly id: Schema.brand<Schema.String, "WhatsAppSetupLinkId">;
145
+ readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
146
+ readonly namespaceId: Schema.brand<Schema.String, "NamespaceId">;
147
+ readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>;
148
+ readonly redirectUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
149
+ readonly metadata: Schema.$Record<Schema.String, Schema.String>;
150
+ readonly expiresAt: Schema.String;
151
+ readonly businessAccountId: Schema.Union<readonly [Schema.brand<Schema.String, "WhatsAppBusinessAccountId">, Schema.Null]>;
152
+ readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
153
+ readonly revokedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
154
+ readonly createdAt: Schema.String;
155
+ readonly updatedAt: Schema.String;
156
+ readonly url: Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>;
157
+ }>;
158
+ export type WhatsappSetupLinksCreate400 = MalformedRequestError;
159
+ export declare const WhatsappSetupLinksCreate400: typeof MalformedRequestError;
160
+ export type WhatsappSetupLinksCreate401 = UnauthorizedError;
161
+ export declare const WhatsappSetupLinksCreate401: typeof UnauthorizedError;
162
+ export type WhatsappSetupLinksCreate402 = PaymentRequiredError;
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]>;
166
+ export type WhatsappSetupLinksCreate404 = ResourceNotFoundError;
167
+ export declare const WhatsappSetupLinksCreate404: typeof ResourceNotFoundError;
168
+ export type WhatsappSetupLinksCreate422 = ValidationError;
169
+ export declare const WhatsappSetupLinksCreate422: typeof ValidationError;
170
+ export type WhatsappSetupLinksCreate500 = InternalError;
171
+ export declare const WhatsappSetupLinksCreate500: typeof InternalError;
172
+ export type WhatsappSetupLinksCreate502 = BillingProviderError;
173
+ export declare const WhatsappSetupLinksCreate502: typeof BillingProviderError;
174
+ export type WhatsappSetupLinksCreate504 = GatewayTimeoutError;
175
+ export declare const WhatsappSetupLinksCreate504: typeof GatewayTimeoutError;
176
+ export type WhatsappSetupLinksGetPathParams = {
177
+ readonly linkId: WhatsAppSetupLinkId;
178
+ };
179
+ export declare const WhatsappSetupLinksGetPathParams: Schema.Struct<{
180
+ readonly linkId: Schema.brand<Schema.String, "WhatsAppSetupLinkId">;
181
+ }>;
182
+ export type WhatsappSetupLinksGet200 = WhatsAppSetupLink;
183
+ export declare const WhatsappSetupLinksGet200: Schema.Struct<{
184
+ readonly id: Schema.brand<Schema.String, "WhatsAppSetupLinkId">;
185
+ readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
186
+ readonly namespaceId: Schema.brand<Schema.String, "NamespaceId">;
187
+ readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>;
188
+ readonly redirectUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
189
+ readonly metadata: Schema.$Record<Schema.String, Schema.String>;
190
+ readonly expiresAt: Schema.String;
191
+ readonly businessAccountId: Schema.Union<readonly [Schema.brand<Schema.String, "WhatsAppBusinessAccountId">, Schema.Null]>;
192
+ readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
193
+ readonly revokedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
194
+ readonly createdAt: Schema.String;
195
+ readonly updatedAt: Schema.String;
196
+ }>;
197
+ export type WhatsappSetupLinksGet400 = MalformedRequestError;
198
+ export declare const WhatsappSetupLinksGet400: typeof MalformedRequestError;
199
+ export type WhatsappSetupLinksGet401 = UnauthorizedError;
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]>;
203
+ export type WhatsappSetupLinksGet404 = ResourceNotFoundError;
204
+ export declare const WhatsappSetupLinksGet404: typeof ResourceNotFoundError;
205
+ export type WhatsappSetupLinksGet422 = ValidationError;
206
+ export declare const WhatsappSetupLinksGet422: typeof ValidationError;
207
+ export type WhatsappSetupLinksGet500 = InternalError;
208
+ export declare const WhatsappSetupLinksGet500: typeof InternalError;
209
+ export type WhatsappSetupLinksGet504 = GatewayTimeoutError;
210
+ export declare const WhatsappSetupLinksGet504: typeof GatewayTimeoutError;
211
+ export type WhatsappSetupLinksRevokePathParams = {
212
+ readonly linkId: WhatsAppSetupLinkId;
213
+ };
214
+ export declare const WhatsappSetupLinksRevokePathParams: Schema.Struct<{
215
+ readonly linkId: Schema.brand<Schema.String, "WhatsAppSetupLinkId">;
216
+ }>;
217
+ export type WhatsappSetupLinksRevoke200 = WhatsAppSetupLink;
218
+ export declare const WhatsappSetupLinksRevoke200: Schema.Struct<{
219
+ readonly id: Schema.brand<Schema.String, "WhatsAppSetupLinkId">;
220
+ readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
221
+ readonly namespaceId: Schema.brand<Schema.String, "NamespaceId">;
222
+ readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>;
223
+ readonly redirectUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
224
+ readonly metadata: Schema.$Record<Schema.String, Schema.String>;
225
+ readonly expiresAt: Schema.String;
226
+ readonly businessAccountId: Schema.Union<readonly [Schema.brand<Schema.String, "WhatsAppBusinessAccountId">, Schema.Null]>;
227
+ readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
228
+ readonly revokedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
229
+ readonly createdAt: Schema.String;
230
+ readonly updatedAt: Schema.String;
231
+ }>;
232
+ export type WhatsappSetupLinksRevoke400 = MalformedRequestError;
233
+ export declare const WhatsappSetupLinksRevoke400: typeof MalformedRequestError;
234
+ export type WhatsappSetupLinksRevoke401 = UnauthorizedError;
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]>;
238
+ export type WhatsappSetupLinksRevoke404 = ResourceNotFoundError;
239
+ export declare const WhatsappSetupLinksRevoke404: typeof ResourceNotFoundError;
240
+ export type WhatsappSetupLinksRevoke410 = WhatsAppSetupLinkUnavailableError;
241
+ export declare const WhatsappSetupLinksRevoke410: typeof WhatsAppSetupLinkUnavailableError;
242
+ export type WhatsappSetupLinksRevoke422 = ValidationError;
243
+ export declare const WhatsappSetupLinksRevoke422: typeof ValidationError;
244
+ export type WhatsappSetupLinksRevoke500 = InternalError;
245
+ export declare const WhatsappSetupLinksRevoke500: typeof InternalError;
246
+ export type WhatsappSetupLinksRevoke504 = GatewayTimeoutError;
247
+ export declare const WhatsappSetupLinksRevoke504: typeof GatewayTimeoutError;
248
+ declare const WhatsAppSetupLinksGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp setup links", HttpApiEndpoint.HttpApiEndpoint<"whatsappSetupLinksCreate", "POST", "/v1/whatsapp/setup-links", never, never, Schema.toCodecJson<Schema.Struct<{
249
+ readonly namespaceId: Schema.brand<Schema.String, "NamespaceId">;
250
+ readonly redirectUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
251
+ readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
252
+ readonly expiresAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
253
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
254
+ readonly id: Schema.brand<Schema.String, "WhatsAppSetupLinkId">;
255
+ readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
256
+ readonly namespaceId: Schema.brand<Schema.String, "NamespaceId">;
257
+ readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>;
258
+ readonly redirectUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
259
+ readonly metadata: Schema.$Record<Schema.String, Schema.String>;
260
+ readonly expiresAt: Schema.String;
261
+ readonly businessAccountId: Schema.Union<readonly [Schema.brand<Schema.String, "WhatsAppBusinessAccountId">, Schema.Null]>;
262
+ readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
263
+ readonly revokedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
264
+ readonly createdAt: Schema.String;
265
+ readonly updatedAt: Schema.String;
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, {
268
+ readonly _tag: "BillingProviderError";
269
+ readonly message: string;
270
+ }, readonly [Schema.Struct<{
271
+ readonly _tag: Schema.tag<"BillingProviderError">;
272
+ readonly message: Schema.String;
273
+ }>], {
274
+ readonly _tag: "BillingProviderError";
275
+ readonly message: string;
276
+ }>, Schema.Struct<{
277
+ readonly _tag: Schema.tag<"BillingProviderError">;
278
+ readonly message: Schema.String;
279
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
280
+ readonly _tag: "GatewayTimeoutError";
281
+ readonly message: string;
282
+ readonly retryAfterSeconds: number;
283
+ }, readonly [Schema.Struct<{
284
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
285
+ readonly message: Schema.String;
286
+ readonly retryAfterSeconds: Schema.Finite;
287
+ }>], {
288
+ readonly _tag: "GatewayTimeoutError";
289
+ readonly message: string;
290
+ readonly retryAfterSeconds: number;
291
+ }>, Schema.Struct<{
292
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
293
+ readonly message: Schema.String;
294
+ readonly retryAfterSeconds: Schema.Finite;
295
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
296
+ readonly _tag: "MalformedRequestError";
297
+ readonly message: string;
298
+ readonly fields: {
299
+ readonly [x: string]: readonly string[];
300
+ };
301
+ }, readonly [Schema.Struct<{
302
+ readonly _tag: Schema.tag<"MalformedRequestError">;
303
+ readonly message: Schema.String;
304
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
305
+ }>], {
306
+ readonly _tag: "MalformedRequestError";
307
+ readonly message: string;
308
+ readonly fields: {
309
+ readonly [x: string]: readonly string[];
310
+ };
311
+ }>, Schema.Struct<{
312
+ readonly _tag: Schema.tag<"MalformedRequestError">;
313
+ readonly message: Schema.String;
314
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
315
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
316
+ readonly _tag: "PaymentRequiredError";
317
+ readonly message: string;
318
+ readonly resource: string;
319
+ readonly currentUsage: number;
320
+ readonly limit: number;
321
+ }, readonly [Schema.Struct<{
322
+ readonly _tag: Schema.tag<"PaymentRequiredError">;
323
+ readonly message: Schema.String;
324
+ readonly resource: Schema.String;
325
+ readonly currentUsage: Schema.Finite;
326
+ readonly limit: Schema.Finite;
327
+ }>], {
328
+ readonly _tag: "PaymentRequiredError";
329
+ readonly message: string;
330
+ readonly resource: string;
331
+ readonly currentUsage: number;
332
+ readonly limit: number;
333
+ }>, Schema.Struct<{
334
+ readonly _tag: Schema.tag<"PaymentRequiredError">;
335
+ readonly message: Schema.String;
336
+ readonly resource: Schema.String;
337
+ readonly currentUsage: Schema.Finite;
338
+ readonly limit: Schema.Finite;
339
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
340
+ readonly _tag: "ResourceNotFoundError";
341
+ readonly resource: string;
342
+ readonly id: string;
343
+ readonly message: string;
344
+ }, readonly [Schema.Struct<{
345
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
346
+ readonly resource: Schema.String;
347
+ readonly id: Schema.String;
348
+ readonly message: Schema.String;
349
+ }>], {
350
+ readonly _tag: "ResourceNotFoundError";
351
+ readonly resource: string;
352
+ readonly id: string;
353
+ readonly message: string;
354
+ }>, Schema.Struct<{
355
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
356
+ readonly resource: Schema.String;
357
+ readonly id: Schema.String;
358
+ readonly message: Schema.String;
359
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
360
+ readonly _tag: "UnauthorizedError";
361
+ readonly message: string;
362
+ }, readonly [Schema.Struct<{
363
+ readonly _tag: Schema.tag<"UnauthorizedError">;
364
+ readonly message: Schema.String;
365
+ }>], {
366
+ readonly _tag: "UnauthorizedError";
367
+ readonly message: string;
368
+ }>, Schema.Struct<{
369
+ readonly _tag: Schema.tag<"UnauthorizedError">;
370
+ readonly message: Schema.String;
371
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
372
+ readonly _tag: "ValidationError";
373
+ readonly message: string;
374
+ readonly fields?: {
375
+ readonly [x: string]: readonly string[];
376
+ } | null;
377
+ }, readonly [Schema.Struct<{
378
+ readonly _tag: Schema.tag<"ValidationError">;
379
+ readonly message: Schema.String;
380
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
381
+ }>], {
382
+ readonly _tag: "ValidationError";
383
+ readonly message: string;
384
+ readonly fields?: {
385
+ readonly [x: string]: readonly string[];
386
+ } | null;
387
+ }>, Schema.Struct<{
388
+ readonly _tag: Schema.tag<"ValidationError">;
389
+ readonly message: Schema.String;
390
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
391
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"whatsappSetupLinksGet", "GET", "/v1/whatsapp/setup-links/:linkId", Schema.toCodecStringTree<Schema.Struct<{
392
+ readonly linkId: Schema.brand<Schema.String, "WhatsAppSetupLinkId">;
393
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
394
+ readonly id: Schema.brand<Schema.String, "WhatsAppSetupLinkId">;
395
+ readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
396
+ readonly namespaceId: Schema.brand<Schema.String, "NamespaceId">;
397
+ readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>;
398
+ readonly redirectUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
399
+ readonly metadata: Schema.$Record<Schema.String, Schema.String>;
400
+ readonly expiresAt: Schema.String;
401
+ readonly businessAccountId: Schema.Union<readonly [Schema.brand<Schema.String, "WhatsAppBusinessAccountId">, Schema.Null]>;
402
+ readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
403
+ readonly revokedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
404
+ readonly createdAt: Schema.String;
405
+ readonly updatedAt: Schema.String;
406
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
407
+ readonly _tag: "GatewayTimeoutError";
408
+ readonly message: string;
409
+ readonly retryAfterSeconds: number;
410
+ }, readonly [Schema.Struct<{
411
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
412
+ readonly message: Schema.String;
413
+ readonly retryAfterSeconds: Schema.Finite;
414
+ }>], {
415
+ readonly _tag: "GatewayTimeoutError";
416
+ readonly message: string;
417
+ readonly retryAfterSeconds: number;
418
+ }>, Schema.Struct<{
419
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
420
+ readonly message: Schema.String;
421
+ readonly retryAfterSeconds: Schema.Finite;
422
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
423
+ readonly _tag: "MalformedRequestError";
424
+ readonly message: string;
425
+ readonly fields: {
426
+ readonly [x: string]: readonly string[];
427
+ };
428
+ }, readonly [Schema.Struct<{
429
+ readonly _tag: Schema.tag<"MalformedRequestError">;
430
+ readonly message: Schema.String;
431
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
432
+ }>], {
433
+ readonly _tag: "MalformedRequestError";
434
+ readonly message: string;
435
+ readonly fields: {
436
+ readonly [x: string]: readonly string[];
437
+ };
438
+ }>, Schema.Struct<{
439
+ readonly _tag: Schema.tag<"MalformedRequestError">;
440
+ readonly message: Schema.String;
441
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
442
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
443
+ readonly _tag: "ResourceNotFoundError";
444
+ readonly resource: string;
445
+ readonly id: string;
446
+ readonly message: string;
447
+ }, readonly [Schema.Struct<{
448
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
449
+ readonly resource: Schema.String;
450
+ readonly id: Schema.String;
451
+ readonly message: Schema.String;
452
+ }>], {
453
+ readonly _tag: "ResourceNotFoundError";
454
+ readonly resource: string;
455
+ readonly id: string;
456
+ readonly message: string;
457
+ }>, Schema.Struct<{
458
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
459
+ readonly resource: Schema.String;
460
+ readonly id: Schema.String;
461
+ readonly message: Schema.String;
462
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
463
+ readonly _tag: "UnauthorizedError";
464
+ readonly message: string;
465
+ }, readonly [Schema.Struct<{
466
+ readonly _tag: Schema.tag<"UnauthorizedError">;
467
+ readonly message: Schema.String;
468
+ }>], {
469
+ readonly _tag: "UnauthorizedError";
470
+ readonly message: string;
471
+ }>, Schema.Struct<{
472
+ readonly _tag: Schema.tag<"UnauthorizedError">;
473
+ readonly message: Schema.String;
474
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
475
+ readonly _tag: "ValidationError";
476
+ readonly message: string;
477
+ readonly fields?: {
478
+ readonly [x: string]: readonly string[];
479
+ } | null;
480
+ }, readonly [Schema.Struct<{
481
+ readonly _tag: Schema.tag<"ValidationError">;
482
+ readonly message: Schema.String;
483
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
484
+ }>], {
485
+ readonly _tag: "ValidationError";
486
+ readonly message: string;
487
+ readonly fields?: {
488
+ readonly [x: string]: readonly string[];
489
+ } | null;
490
+ }>, Schema.Struct<{
491
+ readonly _tag: Schema.tag<"ValidationError">;
492
+ readonly message: Schema.String;
493
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
494
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"whatsappSetupLinksList", "GET", "/v1/whatsapp/setup-links", never, Schema.toCodecStringTree<Schema.Struct<{
495
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
496
+ readonly cursor: Schema.optionalKey<Schema.String>;
497
+ readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
498
+ readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>>;
499
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
500
+ readonly items: Schema.$Array<Schema.Struct<{
501
+ readonly id: Schema.brand<Schema.String, "WhatsAppSetupLinkId">;
502
+ readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
503
+ readonly namespaceId: Schema.brand<Schema.String, "NamespaceId">;
504
+ readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>;
505
+ readonly redirectUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
506
+ readonly metadata: Schema.$Record<Schema.String, Schema.String>;
507
+ readonly expiresAt: Schema.String;
508
+ readonly businessAccountId: Schema.Union<readonly [Schema.brand<Schema.String, "WhatsAppBusinessAccountId">, Schema.Null]>;
509
+ readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
510
+ readonly revokedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
511
+ readonly createdAt: Schema.String;
512
+ readonly updatedAt: Schema.String;
513
+ }>>;
514
+ readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
515
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
516
+ readonly _tag: "GatewayTimeoutError";
517
+ readonly message: string;
518
+ readonly retryAfterSeconds: number;
519
+ }, readonly [Schema.Struct<{
520
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
521
+ readonly message: Schema.String;
522
+ readonly retryAfterSeconds: Schema.Finite;
523
+ }>], {
524
+ readonly _tag: "GatewayTimeoutError";
525
+ readonly message: string;
526
+ readonly retryAfterSeconds: number;
527
+ }>, Schema.Struct<{
528
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
529
+ readonly message: Schema.String;
530
+ readonly retryAfterSeconds: Schema.Finite;
531
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
532
+ readonly _tag: "MalformedRequestError";
533
+ readonly message: string;
534
+ readonly fields: {
535
+ readonly [x: string]: readonly string[];
536
+ };
537
+ }, readonly [Schema.Struct<{
538
+ readonly _tag: Schema.tag<"MalformedRequestError">;
539
+ readonly message: Schema.String;
540
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
541
+ }>], {
542
+ readonly _tag: "MalformedRequestError";
543
+ readonly message: string;
544
+ readonly fields: {
545
+ readonly [x: string]: readonly string[];
546
+ };
547
+ }>, Schema.Struct<{
548
+ readonly _tag: Schema.tag<"MalformedRequestError">;
549
+ readonly message: Schema.String;
550
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
551
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
552
+ readonly _tag: "UnauthorizedError";
553
+ readonly message: string;
554
+ }, readonly [Schema.Struct<{
555
+ readonly _tag: Schema.tag<"UnauthorizedError">;
556
+ readonly message: Schema.String;
557
+ }>], {
558
+ readonly _tag: "UnauthorizedError";
559
+ readonly message: string;
560
+ }>, Schema.Struct<{
561
+ readonly _tag: Schema.tag<"UnauthorizedError">;
562
+ readonly message: Schema.String;
563
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
564
+ readonly _tag: "ValidationError";
565
+ readonly message: string;
566
+ readonly fields?: {
567
+ readonly [x: string]: readonly string[];
568
+ } | null;
569
+ }, readonly [Schema.Struct<{
570
+ readonly _tag: Schema.tag<"ValidationError">;
571
+ readonly message: Schema.String;
572
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
573
+ }>], {
574
+ readonly _tag: "ValidationError";
575
+ readonly message: string;
576
+ readonly fields?: {
577
+ readonly [x: string]: readonly string[];
578
+ } | null;
579
+ }>, Schema.Struct<{
580
+ readonly _tag: Schema.tag<"ValidationError">;
581
+ readonly message: Schema.String;
582
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
583
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"whatsappSetupLinksRevoke", "POST", "/v1/whatsapp/setup-links/:linkId/revoke", Schema.toCodecStringTree<Schema.Struct<{
584
+ readonly linkId: Schema.brand<Schema.String, "WhatsAppSetupLinkId">;
585
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
586
+ readonly id: Schema.brand<Schema.String, "WhatsAppSetupLinkId">;
587
+ readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
588
+ readonly namespaceId: Schema.brand<Schema.String, "NamespaceId">;
589
+ readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>;
590
+ readonly redirectUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
591
+ readonly metadata: Schema.$Record<Schema.String, Schema.String>;
592
+ readonly expiresAt: Schema.String;
593
+ readonly businessAccountId: Schema.Union<readonly [Schema.brand<Schema.String, "WhatsAppBusinessAccountId">, Schema.Null]>;
594
+ readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
595
+ readonly revokedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
596
+ readonly createdAt: Schema.String;
597
+ readonly updatedAt: Schema.String;
598
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
599
+ readonly _tag: "GatewayTimeoutError";
600
+ readonly message: string;
601
+ readonly retryAfterSeconds: number;
602
+ }, readonly [Schema.Struct<{
603
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
604
+ readonly message: Schema.String;
605
+ readonly retryAfterSeconds: Schema.Finite;
606
+ }>], {
607
+ readonly _tag: "GatewayTimeoutError";
608
+ readonly message: string;
609
+ readonly retryAfterSeconds: number;
610
+ }>, Schema.Struct<{
611
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
612
+ readonly message: Schema.String;
613
+ readonly retryAfterSeconds: Schema.Finite;
614
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
615
+ readonly _tag: "MalformedRequestError";
616
+ readonly message: string;
617
+ readonly fields: {
618
+ readonly [x: string]: readonly string[];
619
+ };
620
+ }, readonly [Schema.Struct<{
621
+ readonly _tag: Schema.tag<"MalformedRequestError">;
622
+ readonly message: Schema.String;
623
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
624
+ }>], {
625
+ readonly _tag: "MalformedRequestError";
626
+ readonly message: string;
627
+ readonly fields: {
628
+ readonly [x: string]: readonly string[];
629
+ };
630
+ }>, Schema.Struct<{
631
+ readonly _tag: Schema.tag<"MalformedRequestError">;
632
+ readonly message: Schema.String;
633
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
634
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
635
+ readonly _tag: "ResourceNotFoundError";
636
+ readonly resource: string;
637
+ readonly id: string;
638
+ readonly message: string;
639
+ }, readonly [Schema.Struct<{
640
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
641
+ readonly resource: Schema.String;
642
+ readonly id: Schema.String;
643
+ readonly message: Schema.String;
644
+ }>], {
645
+ readonly _tag: "ResourceNotFoundError";
646
+ readonly resource: string;
647
+ readonly id: string;
648
+ readonly message: string;
649
+ }>, Schema.Struct<{
650
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
651
+ readonly resource: Schema.String;
652
+ readonly id: Schema.String;
653
+ readonly message: Schema.String;
654
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
655
+ readonly _tag: "UnauthorizedError";
656
+ readonly message: string;
657
+ }, readonly [Schema.Struct<{
658
+ readonly _tag: Schema.tag<"UnauthorizedError">;
659
+ readonly message: Schema.String;
660
+ }>], {
661
+ readonly _tag: "UnauthorizedError";
662
+ readonly message: string;
663
+ }>, Schema.Struct<{
664
+ readonly _tag: Schema.tag<"UnauthorizedError">;
665
+ readonly message: Schema.String;
666
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
667
+ readonly _tag: "ValidationError";
668
+ readonly message: string;
669
+ readonly fields?: {
670
+ readonly [x: string]: readonly string[];
671
+ } | null;
672
+ }, readonly [Schema.Struct<{
673
+ readonly _tag: Schema.tag<"ValidationError">;
674
+ readonly message: Schema.String;
675
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
676
+ }>], {
677
+ readonly _tag: "ValidationError";
678
+ readonly message: string;
679
+ readonly fields?: {
680
+ readonly [x: string]: readonly string[];
681
+ } | null;
682
+ }>, Schema.Struct<{
683
+ readonly _tag: Schema.tag<"ValidationError">;
684
+ readonly message: Schema.String;
685
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
686
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<WhatsAppSetupLinkUnavailableError, {
687
+ readonly _tag: "WhatsAppSetupLinkUnavailableError";
688
+ readonly reason: "completed" | "expired" | "revoked";
689
+ readonly message: string;
690
+ }, readonly [Schema.Struct<{
691
+ readonly _tag: Schema.tag<"WhatsAppSetupLinkUnavailableError">;
692
+ readonly reason: Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>;
693
+ readonly message: Schema.String;
694
+ }>], {
695
+ readonly _tag: "WhatsAppSetupLinkUnavailableError";
696
+ readonly reason: "completed" | "expired" | "revoked";
697
+ readonly message: string;
698
+ }>, Schema.Struct<{
699
+ readonly _tag: Schema.tag<"WhatsAppSetupLinkUnavailableError">;
700
+ readonly reason: Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>;
701
+ readonly message: Schema.String;
702
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>, false>;
703
+ export declare class WhatsAppSetupLinksGroup extends WhatsAppSetupLinksGroup_base {
704
+ }
705
+ export {};