samva 0.54.0 → 0.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/README.md +1 -0
- package/dist/_virtual/_rolldown/runtime.js +4 -4
- package/dist/agent/index.js +1 -1
- package/dist/client/client/client.gen.js +1 -2
- package/dist/client/client/utils.gen.js +1 -1
- package/dist/client/client.gen.js +1 -1
- package/dist/client/sdk.gen.d.ts +69 -6
- package/dist/client/sdk.gen.js +216 -9
- package/dist/client/types.gen.d.ts +486 -7
- package/dist/client-attribution.js +1 -1
- package/dist/effect/agents.js +1 -1
- package/dist/effect/analytics.js +1 -1
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/approval-requests.js +1 -1
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/brands.js +2 -2
- package/dist/effect/campaigns.d.ts +66 -56
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.js +6 -6
- package/dist/effect/contact-groups.js +1 -1
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/custom-fields.js +1 -1
- package/dist/effect/descriptors/phone-numbers.d.ts +49 -0
- package/dist/effect/descriptors/phone-numbers.js +47 -0
- package/dist/effect/descriptors/topics.d.ts +1 -1
- package/dist/effect/descriptors/topics.js +1 -1
- package/dist/effect/descriptors/whats-app.d.ts +10 -0
- package/dist/effect/descriptors/whats-app.js +10 -0
- package/dist/effect/email.js +1 -1
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/events.js +2 -2
- package/dist/effect/feedback.js +2 -2
- package/dist/effect/generated/accounts.d.ts +12 -1
- package/dist/effect/generated/accounts.js +2 -1
- package/dist/effect/generated/agents.js +7 -7
- package/dist/effect/generated/analytics.js +16 -16
- package/dist/effect/generated/api-keys.js +5 -5
- package/dist/effect/generated/approval-requests.js +1 -1
- package/dist/effect/generated/attachments.js +4 -4
- package/dist/effect/generated/brands.js +1 -1
- package/dist/effect/generated/campaigns.d.ts +17 -1
- package/dist/effect/generated/campaigns.js +15 -14
- package/dist/effect/generated/contact-events.js +1 -1
- package/dist/effect/generated/contact-groups.js +12 -12
- package/dist/effect/generated/contacts.js +50 -50
- package/dist/effect/generated/conversations.js +7 -7
- package/dist/effect/generated/custom-fields.js +6 -6
- package/dist/effect/generated/email.js +48 -48
- package/dist/effect/generated/events.js +5 -5
- package/dist/effect/generated/feedback.js +1 -1
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/integrations-catalog.d.ts +16 -0
- package/dist/effect/generated/integrations-catalog.js +10 -6
- package/dist/effect/generated/integrations.js +5 -5
- package/dist/effect/generated/journeys.d.ts +38 -1
- package/dist/effect/generated/journeys.js +16 -14
- package/dist/effect/generated/logs.js +2 -2
- package/dist/effect/generated/mailboxes.d.ts +41 -3
- package/dist/effect/generated/mailboxes.js +48 -50
- package/dist/effect/generated/media.js +1 -1
- package/dist/effect/generated/messages.js +5 -5
- package/dist/effect/generated/namespaces.d.ts +9 -9
- package/dist/effect/generated/namespaces.js +1 -1
- package/dist/effect/generated/newsletter-domains.js +1 -1
- package/dist/effect/generated/newsletter-issues.js +69 -69
- package/dist/effect/generated/newsletters.js +1 -1
- package/dist/effect/generated/operations.js +1 -1
- package/dist/effect/generated/organizations.d.ts +3 -0
- package/dist/effect/generated/organizations.js +2 -1
- package/dist/effect/generated/phone-numbers.d.ts +817 -0
- package/dist/effect/generated/phone-numbers.js +230 -0
- package/dist/effect/generated/policies.js +2 -2
- package/dist/effect/generated/scheduled-messages.js +1 -1
- package/dist/effect/generated/shared.d.ts +35 -14
- package/dist/effect/generated/shared.js +36 -13
- package/dist/effect/generated/subscriptions.js +1 -1
- package/dist/effect/generated/template-registrations.d.ts +9 -0
- package/dist/effect/generated/template-registrations.js +3 -2
- package/dist/effect/generated/template-share-links.js +9 -9
- package/dist/effect/generated/templates.js +119 -119
- package/dist/effect/generated/topic-forms.js +1 -1
- package/dist/effect/generated/topics.d.ts +10 -0
- package/dist/effect/generated/topics.js +20 -13
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/effect/generated/webhooks.js +22 -18
- package/dist/effect/generated/whats-app-flows.js +5 -5
- package/dist/effect/generated/whats-app-setup-links.js +1 -1
- package/dist/effect/generated/whats-app.d.ts +251 -1
- package/dist/effect/generated/whats-app.js +75 -20
- package/dist/effect/generated/whoami.js +1 -1
- package/dist/effect/generated-metadata.d.ts +41 -1
- package/dist/effect/generated-metadata.js +174 -146
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +6 -5
- package/dist/effect/integrations-catalog.js +1 -1
- package/dist/effect/integrations.js +1 -1
- package/dist/effect/internal/client.js +6 -6
- package/dist/effect/internal/email-sender.js +3 -3
- package/dist/effect/internal/log-events.js +2 -2
- package/dist/effect/internal/mailbox-events.js +1 -1
- package/dist/effect/internal/operation.js +2 -2
- package/dist/effect/internal/send.js +4 -4
- package/dist/effect/journeys.d.ts +10 -0
- package/dist/effect/journeys.js +1 -1
- package/dist/effect/logs.js +1 -1
- package/dist/effect/mailboxes.d.ts +191 -191
- package/dist/effect/mailboxes.js +3 -3
- package/dist/effect/media.js +2 -2
- package/dist/effect/messages.js +2 -2
- package/dist/effect/namespaces.d.ts +2 -2
- package/dist/effect/namespaces.js +1 -1
- package/dist/effect/newsletter-domains.js +1 -1
- package/dist/effect/newsletter-issues.js +1 -1
- package/dist/effect/newsletters.js +1 -1
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/phone-numbers.d.ts +22 -0
- package/dist/effect/phone-numbers.js +21 -0
- package/dist/effect/policies.js +1 -1
- package/dist/effect/retry.js +3 -3
- package/dist/effect/scheduled-messages.d.ts +350 -350
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/subscriptions.js +1 -1
- package/dist/effect/template-registrations.js +1 -1
- package/dist/effect/template-share-links.js +1 -1
- package/dist/effect/templates.js +2 -2
- package/dist/effect/topic-forms.js +1 -1
- package/dist/effect/topics.d.ts +70 -2
- package/dist/effect/topics.js +1 -1
- package/dist/effect/webhooks.d.ts +4 -4
- package/dist/effect/webhooks.js +2 -2
- package/dist/effect/whatsapp-flows.js +1 -1
- package/dist/effect/whatsapp-setup-links.js +1 -1
- package/dist/effect/whatsapp.d.ts +16 -0
- package/dist/effect/whatsapp.js +4 -2
- package/dist/effect/whoami.js +1 -1
- package/dist/index.js +2 -2
- package/dist/package.json.js +5 -0
- package/dist/promises/client.d.ts +3 -1
- package/dist/promises/client.js +7 -5
- package/dist/promises/errors.gen.d.ts +16 -2
- package/dist/promises/errors.gen.js +48 -11
- package/dist/promises/index.js +3 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.js +1 -1
- package/dist/service-map.d.ts +30 -0
- package/package.json +9 -5
- package/dist/package.js +0 -5
|
@@ -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, CampaignId, ConflictError, CredentialsError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyId, MalformedRequestError, MessageDeliveryId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, TemplateId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError, __SamvaRuntimeNonEmptySensitiveString, __SamvaRuntimeSensitiveString } from "./shared.js";
|
|
4
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, CampaignId, ConflictError, CredentialsError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyId, MalformedRequestError, MessageDeliveryId, NamespaceId, OrganizationId, PaymentRequiredError, ResourceNotFoundError, TemplateId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError, __SamvaRuntimeNonEmptySensitiveString, __SamvaRuntimeSensitiveString } from "./shared.js";
|
|
5
5
|
export type WhatsAppServiceWindowId = string & EffectBrand.Brand<"WhatsAppServiceWindowId">;
|
|
6
6
|
export declare const WhatsAppServiceWindowId: Schema.brand<Schema.String, "WhatsAppServiceWindowId">;
|
|
7
7
|
export type MoneyAmount = {
|
|
@@ -120,11 +120,16 @@ export type WhatsappListBusinessAccounts200 = {
|
|
|
120
120
|
readonly organizationId: string;
|
|
121
121
|
readonly namespaceId: NamespaceId | null;
|
|
122
122
|
readonly phoneNumber: string;
|
|
123
|
+
readonly phoneNumberDisplay: string;
|
|
123
124
|
readonly phoneNumberId: string;
|
|
124
125
|
readonly displayName: string;
|
|
125
126
|
readonly whatsappBusinessAccountId: string;
|
|
126
127
|
readonly verificationStatus: "pending" | "verified" | "failed" | "suspended";
|
|
127
128
|
readonly credentialStatus: "active" | "reconnect_required";
|
|
129
|
+
readonly sendingLock: {
|
|
130
|
+
readonly lockedAt: string;
|
|
131
|
+
readonly reason: string;
|
|
132
|
+
} | null;
|
|
128
133
|
readonly tokenExpiresAt: string | null;
|
|
129
134
|
readonly isDefault: boolean;
|
|
130
135
|
readonly webhookUrl: string | null;
|
|
@@ -139,6 +144,7 @@ export type WhatsappListBusinessAccounts200 = {
|
|
|
139
144
|
readonly historySyncStatus: "requested" | "importing" | "completed" | "declined" | null;
|
|
140
145
|
readonly historySyncProgress: number | null;
|
|
141
146
|
readonly isActive: boolean;
|
|
147
|
+
readonly releasedAt?: string;
|
|
142
148
|
readonly createdAt: string;
|
|
143
149
|
readonly updatedAt: string;
|
|
144
150
|
}>;
|
|
@@ -150,11 +156,16 @@ export declare const WhatsappListBusinessAccounts200: Schema.Struct<{
|
|
|
150
156
|
readonly organizationId: Schema.String;
|
|
151
157
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
152
158
|
readonly phoneNumber: Schema.String;
|
|
159
|
+
readonly phoneNumberDisplay: Schema.String;
|
|
153
160
|
readonly phoneNumberId: Schema.String;
|
|
154
161
|
readonly displayName: Schema.String;
|
|
155
162
|
readonly whatsappBusinessAccountId: Schema.String;
|
|
156
163
|
readonly verificationStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">, Schema.Literal<"suspended">]>;
|
|
157
164
|
readonly credentialStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"reconnect_required">]>;
|
|
165
|
+
readonly sendingLock: Schema.Union<readonly [Schema.Struct<{
|
|
166
|
+
readonly lockedAt: Schema.String;
|
|
167
|
+
readonly reason: Schema.String;
|
|
168
|
+
}>, Schema.Null]>;
|
|
158
169
|
readonly tokenExpiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
159
170
|
readonly isDefault: Schema.Boolean;
|
|
160
171
|
readonly webhookUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -169,6 +180,7 @@ export declare const WhatsappListBusinessAccounts200: Schema.Struct<{
|
|
|
169
180
|
readonly historySyncStatus: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"requested">, Schema.Literal<"importing">, Schema.Literal<"completed">, Schema.Literal<"declined">]>, Schema.Null]>;
|
|
170
181
|
readonly historySyncProgress: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
171
182
|
readonly isActive: Schema.Boolean;
|
|
183
|
+
readonly releasedAt: Schema.optionalKey<Schema.String>;
|
|
172
184
|
readonly createdAt: Schema.String;
|
|
173
185
|
readonly updatedAt: Schema.String;
|
|
174
186
|
}>>;
|
|
@@ -203,11 +215,16 @@ export type WhatsappConnectBusinessAccount201 = {
|
|
|
203
215
|
readonly organizationId: string;
|
|
204
216
|
readonly namespaceId: NamespaceId | null;
|
|
205
217
|
readonly phoneNumber: string;
|
|
218
|
+
readonly phoneNumberDisplay: string;
|
|
206
219
|
readonly phoneNumberId: string;
|
|
207
220
|
readonly displayName: string;
|
|
208
221
|
readonly whatsappBusinessAccountId: string;
|
|
209
222
|
readonly verificationStatus: "pending" | "verified" | "failed" | "suspended";
|
|
210
223
|
readonly credentialStatus: "active" | "reconnect_required";
|
|
224
|
+
readonly sendingLock: {
|
|
225
|
+
readonly lockedAt: string;
|
|
226
|
+
readonly reason: string;
|
|
227
|
+
} | null;
|
|
211
228
|
readonly tokenExpiresAt: string | null;
|
|
212
229
|
readonly isDefault: boolean;
|
|
213
230
|
readonly webhookUrl: string | null;
|
|
@@ -222,6 +239,7 @@ export type WhatsappConnectBusinessAccount201 = {
|
|
|
222
239
|
readonly historySyncStatus: "requested" | "importing" | "completed" | "declined" | null;
|
|
223
240
|
readonly historySyncProgress: number | null;
|
|
224
241
|
readonly isActive: boolean;
|
|
242
|
+
readonly releasedAt?: string;
|
|
225
243
|
readonly createdAt: string;
|
|
226
244
|
readonly updatedAt: string;
|
|
227
245
|
};
|
|
@@ -230,11 +248,16 @@ export declare const WhatsappConnectBusinessAccount201: Schema.Struct<{
|
|
|
230
248
|
readonly organizationId: Schema.String;
|
|
231
249
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
232
250
|
readonly phoneNumber: Schema.String;
|
|
251
|
+
readonly phoneNumberDisplay: Schema.String;
|
|
233
252
|
readonly phoneNumberId: Schema.String;
|
|
234
253
|
readonly displayName: Schema.String;
|
|
235
254
|
readonly whatsappBusinessAccountId: Schema.String;
|
|
236
255
|
readonly verificationStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">, Schema.Literal<"suspended">]>;
|
|
237
256
|
readonly credentialStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"reconnect_required">]>;
|
|
257
|
+
readonly sendingLock: Schema.Union<readonly [Schema.Struct<{
|
|
258
|
+
readonly lockedAt: Schema.String;
|
|
259
|
+
readonly reason: Schema.String;
|
|
260
|
+
}>, Schema.Null]>;
|
|
238
261
|
readonly tokenExpiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
239
262
|
readonly isDefault: Schema.Boolean;
|
|
240
263
|
readonly webhookUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -249,6 +272,7 @@ export declare const WhatsappConnectBusinessAccount201: Schema.Struct<{
|
|
|
249
272
|
readonly historySyncStatus: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"requested">, Schema.Literal<"importing">, Schema.Literal<"completed">, Schema.Literal<"declined">]>, Schema.Null]>;
|
|
250
273
|
readonly historySyncProgress: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
251
274
|
readonly isActive: Schema.Boolean;
|
|
275
|
+
readonly releasedAt: Schema.optionalKey<Schema.String>;
|
|
252
276
|
readonly createdAt: Schema.String;
|
|
253
277
|
readonly updatedAt: Schema.String;
|
|
254
278
|
}>;
|
|
@@ -283,11 +307,16 @@ export type WhatsappGetBusinessAccount200 = {
|
|
|
283
307
|
readonly organizationId: string;
|
|
284
308
|
readonly namespaceId: NamespaceId | null;
|
|
285
309
|
readonly phoneNumber: string;
|
|
310
|
+
readonly phoneNumberDisplay: string;
|
|
286
311
|
readonly phoneNumberId: string;
|
|
287
312
|
readonly displayName: string;
|
|
288
313
|
readonly whatsappBusinessAccountId: string;
|
|
289
314
|
readonly verificationStatus: "pending" | "verified" | "failed" | "suspended";
|
|
290
315
|
readonly credentialStatus: "active" | "reconnect_required";
|
|
316
|
+
readonly sendingLock: {
|
|
317
|
+
readonly lockedAt: string;
|
|
318
|
+
readonly reason: string;
|
|
319
|
+
} | null;
|
|
291
320
|
readonly tokenExpiresAt: string | null;
|
|
292
321
|
readonly isDefault: boolean;
|
|
293
322
|
readonly webhookUrl: string | null;
|
|
@@ -302,6 +331,7 @@ export type WhatsappGetBusinessAccount200 = {
|
|
|
302
331
|
readonly historySyncStatus: "requested" | "importing" | "completed" | "declined" | null;
|
|
303
332
|
readonly historySyncProgress: number | null;
|
|
304
333
|
readonly isActive: boolean;
|
|
334
|
+
readonly releasedAt?: string;
|
|
305
335
|
readonly createdAt: string;
|
|
306
336
|
readonly updatedAt: string;
|
|
307
337
|
};
|
|
@@ -310,11 +340,16 @@ export declare const WhatsappGetBusinessAccount200: Schema.Struct<{
|
|
|
310
340
|
readonly organizationId: Schema.String;
|
|
311
341
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
312
342
|
readonly phoneNumber: Schema.String;
|
|
343
|
+
readonly phoneNumberDisplay: Schema.String;
|
|
313
344
|
readonly phoneNumberId: Schema.String;
|
|
314
345
|
readonly displayName: Schema.String;
|
|
315
346
|
readonly whatsappBusinessAccountId: Schema.String;
|
|
316
347
|
readonly verificationStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">, Schema.Literal<"suspended">]>;
|
|
317
348
|
readonly credentialStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"reconnect_required">]>;
|
|
349
|
+
readonly sendingLock: Schema.Union<readonly [Schema.Struct<{
|
|
350
|
+
readonly lockedAt: Schema.String;
|
|
351
|
+
readonly reason: Schema.String;
|
|
352
|
+
}>, Schema.Null]>;
|
|
318
353
|
readonly tokenExpiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
319
354
|
readonly isDefault: Schema.Boolean;
|
|
320
355
|
readonly webhookUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -329,6 +364,7 @@ export declare const WhatsappGetBusinessAccount200: Schema.Struct<{
|
|
|
329
364
|
readonly historySyncStatus: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"requested">, Schema.Literal<"importing">, Schema.Literal<"completed">, Schema.Literal<"declined">]>, Schema.Null]>;
|
|
330
365
|
readonly historySyncProgress: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
331
366
|
readonly isActive: Schema.Boolean;
|
|
367
|
+
readonly releasedAt: Schema.optionalKey<Schema.String>;
|
|
332
368
|
readonly createdAt: Schema.String;
|
|
333
369
|
readonly updatedAt: Schema.String;
|
|
334
370
|
}>;
|
|
@@ -391,11 +427,16 @@ export type WhatsappUpdateBusinessAccount200 = {
|
|
|
391
427
|
readonly organizationId: string;
|
|
392
428
|
readonly namespaceId: NamespaceId | null;
|
|
393
429
|
readonly phoneNumber: string;
|
|
430
|
+
readonly phoneNumberDisplay: string;
|
|
394
431
|
readonly phoneNumberId: string;
|
|
395
432
|
readonly displayName: string;
|
|
396
433
|
readonly whatsappBusinessAccountId: string;
|
|
397
434
|
readonly verificationStatus: "pending" | "verified" | "failed" | "suspended";
|
|
398
435
|
readonly credentialStatus: "active" | "reconnect_required";
|
|
436
|
+
readonly sendingLock: {
|
|
437
|
+
readonly lockedAt: string;
|
|
438
|
+
readonly reason: string;
|
|
439
|
+
} | null;
|
|
399
440
|
readonly tokenExpiresAt: string | null;
|
|
400
441
|
readonly isDefault: boolean;
|
|
401
442
|
readonly webhookUrl: string | null;
|
|
@@ -410,6 +451,7 @@ export type WhatsappUpdateBusinessAccount200 = {
|
|
|
410
451
|
readonly historySyncStatus: "requested" | "importing" | "completed" | "declined" | null;
|
|
411
452
|
readonly historySyncProgress: number | null;
|
|
412
453
|
readonly isActive: boolean;
|
|
454
|
+
readonly releasedAt?: string;
|
|
413
455
|
readonly createdAt: string;
|
|
414
456
|
readonly updatedAt: string;
|
|
415
457
|
};
|
|
@@ -418,11 +460,16 @@ export declare const WhatsappUpdateBusinessAccount200: Schema.Struct<{
|
|
|
418
460
|
readonly organizationId: Schema.String;
|
|
419
461
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
420
462
|
readonly phoneNumber: Schema.String;
|
|
463
|
+
readonly phoneNumberDisplay: Schema.String;
|
|
421
464
|
readonly phoneNumberId: Schema.String;
|
|
422
465
|
readonly displayName: Schema.String;
|
|
423
466
|
readonly whatsappBusinessAccountId: Schema.String;
|
|
424
467
|
readonly verificationStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">, Schema.Literal<"suspended">]>;
|
|
425
468
|
readonly credentialStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"reconnect_required">]>;
|
|
469
|
+
readonly sendingLock: Schema.Union<readonly [Schema.Struct<{
|
|
470
|
+
readonly lockedAt: Schema.String;
|
|
471
|
+
readonly reason: Schema.String;
|
|
472
|
+
}>, Schema.Null]>;
|
|
426
473
|
readonly tokenExpiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
427
474
|
readonly isDefault: Schema.Boolean;
|
|
428
475
|
readonly webhookUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -437,6 +484,7 @@ export declare const WhatsappUpdateBusinessAccount200: Schema.Struct<{
|
|
|
437
484
|
readonly historySyncStatus: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"requested">, Schema.Literal<"importing">, Schema.Literal<"completed">, Schema.Literal<"declined">]>, Schema.Null]>;
|
|
438
485
|
readonly historySyncProgress: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
439
486
|
readonly isActive: Schema.Boolean;
|
|
487
|
+
readonly releasedAt: Schema.optionalKey<Schema.String>;
|
|
440
488
|
readonly createdAt: Schema.String;
|
|
441
489
|
readonly updatedAt: Schema.String;
|
|
442
490
|
}>;
|
|
@@ -454,6 +502,40 @@ export type WhatsappUpdateBusinessAccount500 = InternalError;
|
|
|
454
502
|
export declare const WhatsappUpdateBusinessAccount500: typeof InternalError;
|
|
455
503
|
export type WhatsappUpdateBusinessAccount504 = GatewayTimeoutError;
|
|
456
504
|
export declare const WhatsappUpdateBusinessAccount504: typeof GatewayTimeoutError;
|
|
505
|
+
export type WhatsappReleaseBusinessAccountPathParams = {
|
|
506
|
+
readonly accountId: WhatsAppBusinessAccountId;
|
|
507
|
+
};
|
|
508
|
+
export declare const WhatsappReleaseBusinessAccountPathParams: Schema.Struct<{
|
|
509
|
+
readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
|
|
510
|
+
}>;
|
|
511
|
+
export type WhatsappReleaseBusinessAccountRequestJson = {
|
|
512
|
+
readonly targetOrganizationId: OrganizationId;
|
|
513
|
+
};
|
|
514
|
+
export declare const WhatsappReleaseBusinessAccountRequestJson: Schema.Struct<{
|
|
515
|
+
readonly targetOrganizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
516
|
+
}>;
|
|
517
|
+
export type WhatsappReleaseBusinessAccount200 = {
|
|
518
|
+
readonly success: true;
|
|
519
|
+
};
|
|
520
|
+
export declare const WhatsappReleaseBusinessAccount200: Schema.Struct<{
|
|
521
|
+
readonly success: Schema.Literal<true>;
|
|
522
|
+
}>;
|
|
523
|
+
export type WhatsappReleaseBusinessAccount400 = MalformedRequestError;
|
|
524
|
+
export declare const WhatsappReleaseBusinessAccount400: typeof MalformedRequestError;
|
|
525
|
+
export type WhatsappReleaseBusinessAccount401 = UnauthorizedError;
|
|
526
|
+
export declare const WhatsappReleaseBusinessAccount401: typeof UnauthorizedError;
|
|
527
|
+
export type WhatsappReleaseBusinessAccount403 = ForbiddenError;
|
|
528
|
+
export declare const WhatsappReleaseBusinessAccount403: typeof ForbiddenError;
|
|
529
|
+
export type WhatsappReleaseBusinessAccount404 = ResourceNotFoundError;
|
|
530
|
+
export declare const WhatsappReleaseBusinessAccount404: typeof ResourceNotFoundError;
|
|
531
|
+
export type WhatsappReleaseBusinessAccount409 = ConflictError;
|
|
532
|
+
export declare const WhatsappReleaseBusinessAccount409: typeof ConflictError;
|
|
533
|
+
export type WhatsappReleaseBusinessAccount422 = ValidationError;
|
|
534
|
+
export declare const WhatsappReleaseBusinessAccount422: typeof ValidationError;
|
|
535
|
+
export type WhatsappReleaseBusinessAccount500 = InternalError;
|
|
536
|
+
export declare const WhatsappReleaseBusinessAccount500: typeof InternalError;
|
|
537
|
+
export type WhatsappReleaseBusinessAccount504 = GatewayTimeoutError;
|
|
538
|
+
export declare const WhatsappReleaseBusinessAccount504: typeof GatewayTimeoutError;
|
|
457
539
|
export type WhatsappSetDefaultBusinessAccountPathParams = {
|
|
458
540
|
readonly accountId: WhatsAppBusinessAccountId;
|
|
459
541
|
};
|
|
@@ -465,11 +547,16 @@ export type WhatsappSetDefaultBusinessAccount200 = {
|
|
|
465
547
|
readonly organizationId: string;
|
|
466
548
|
readonly namespaceId: NamespaceId | null;
|
|
467
549
|
readonly phoneNumber: string;
|
|
550
|
+
readonly phoneNumberDisplay: string;
|
|
468
551
|
readonly phoneNumberId: string;
|
|
469
552
|
readonly displayName: string;
|
|
470
553
|
readonly whatsappBusinessAccountId: string;
|
|
471
554
|
readonly verificationStatus: "pending" | "verified" | "failed" | "suspended";
|
|
472
555
|
readonly credentialStatus: "active" | "reconnect_required";
|
|
556
|
+
readonly sendingLock: {
|
|
557
|
+
readonly lockedAt: string;
|
|
558
|
+
readonly reason: string;
|
|
559
|
+
} | null;
|
|
473
560
|
readonly tokenExpiresAt: string | null;
|
|
474
561
|
readonly isDefault: boolean;
|
|
475
562
|
readonly webhookUrl: string | null;
|
|
@@ -484,6 +571,7 @@ export type WhatsappSetDefaultBusinessAccount200 = {
|
|
|
484
571
|
readonly historySyncStatus: "requested" | "importing" | "completed" | "declined" | null;
|
|
485
572
|
readonly historySyncProgress: number | null;
|
|
486
573
|
readonly isActive: boolean;
|
|
574
|
+
readonly releasedAt?: string;
|
|
487
575
|
readonly createdAt: string;
|
|
488
576
|
readonly updatedAt: string;
|
|
489
577
|
};
|
|
@@ -492,11 +580,16 @@ export declare const WhatsappSetDefaultBusinessAccount200: Schema.Struct<{
|
|
|
492
580
|
readonly organizationId: Schema.String;
|
|
493
581
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
494
582
|
readonly phoneNumber: Schema.String;
|
|
583
|
+
readonly phoneNumberDisplay: Schema.String;
|
|
495
584
|
readonly phoneNumberId: Schema.String;
|
|
496
585
|
readonly displayName: Schema.String;
|
|
497
586
|
readonly whatsappBusinessAccountId: Schema.String;
|
|
498
587
|
readonly verificationStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">, Schema.Literal<"suspended">]>;
|
|
499
588
|
readonly credentialStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"reconnect_required">]>;
|
|
589
|
+
readonly sendingLock: Schema.Union<readonly [Schema.Struct<{
|
|
590
|
+
readonly lockedAt: Schema.String;
|
|
591
|
+
readonly reason: Schema.String;
|
|
592
|
+
}>, Schema.Null]>;
|
|
500
593
|
readonly tokenExpiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
501
594
|
readonly isDefault: Schema.Boolean;
|
|
502
595
|
readonly webhookUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -511,6 +604,7 @@ export declare const WhatsappSetDefaultBusinessAccount200: Schema.Struct<{
|
|
|
511
604
|
readonly historySyncStatus: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"requested">, Schema.Literal<"importing">, Schema.Literal<"completed">, Schema.Literal<"declined">]>, Schema.Null]>;
|
|
512
605
|
readonly historySyncProgress: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
513
606
|
readonly isActive: Schema.Boolean;
|
|
607
|
+
readonly releasedAt: Schema.optionalKey<Schema.String>;
|
|
514
608
|
readonly createdAt: Schema.String;
|
|
515
609
|
readonly updatedAt: Schema.String;
|
|
516
610
|
}>;
|
|
@@ -769,11 +863,16 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
|
|
|
769
863
|
readonly organizationId: Schema.String;
|
|
770
864
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
771
865
|
readonly phoneNumber: Schema.String;
|
|
866
|
+
readonly phoneNumberDisplay: Schema.String;
|
|
772
867
|
readonly phoneNumberId: Schema.String;
|
|
773
868
|
readonly displayName: Schema.String;
|
|
774
869
|
readonly whatsappBusinessAccountId: Schema.String;
|
|
775
870
|
readonly verificationStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">, Schema.Literal<"suspended">]>;
|
|
776
871
|
readonly credentialStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"reconnect_required">]>;
|
|
872
|
+
readonly sendingLock: Schema.Union<readonly [Schema.Struct<{
|
|
873
|
+
readonly lockedAt: Schema.String;
|
|
874
|
+
readonly reason: Schema.String;
|
|
875
|
+
}>, Schema.Null]>;
|
|
777
876
|
readonly tokenExpiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
778
877
|
readonly isDefault: Schema.Boolean;
|
|
779
878
|
readonly webhookUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -788,6 +887,7 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
|
|
|
788
887
|
readonly historySyncStatus: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"requested">, Schema.Literal<"importing">, Schema.Literal<"completed">, Schema.Literal<"declined">]>, Schema.Null]>;
|
|
789
888
|
readonly historySyncProgress: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
790
889
|
readonly isActive: Schema.Boolean;
|
|
890
|
+
readonly releasedAt: Schema.optionalKey<Schema.String>;
|
|
791
891
|
readonly createdAt: Schema.String;
|
|
792
892
|
readonly updatedAt: Schema.String;
|
|
793
893
|
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof InternalError, typeof CredentialsError]> | Schema.Union<readonly [typeof WhatsAppChannelError, typeof BillingProviderError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
@@ -1045,11 +1145,16 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
|
|
|
1045
1145
|
readonly organizationId: Schema.String;
|
|
1046
1146
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1047
1147
|
readonly phoneNumber: Schema.String;
|
|
1148
|
+
readonly phoneNumberDisplay: Schema.String;
|
|
1048
1149
|
readonly phoneNumberId: Schema.String;
|
|
1049
1150
|
readonly displayName: Schema.String;
|
|
1050
1151
|
readonly whatsappBusinessAccountId: Schema.String;
|
|
1051
1152
|
readonly verificationStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">, Schema.Literal<"suspended">]>;
|
|
1052
1153
|
readonly credentialStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"reconnect_required">]>;
|
|
1154
|
+
readonly sendingLock: Schema.Union<readonly [Schema.Struct<{
|
|
1155
|
+
readonly lockedAt: Schema.String;
|
|
1156
|
+
readonly reason: Schema.String;
|
|
1157
|
+
}>, Schema.Null]>;
|
|
1053
1158
|
readonly tokenExpiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1054
1159
|
readonly isDefault: Schema.Boolean;
|
|
1055
1160
|
readonly webhookUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1064,6 +1169,7 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
|
|
|
1064
1169
|
readonly historySyncStatus: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"requested">, Schema.Literal<"importing">, Schema.Literal<"completed">, Schema.Literal<"declined">]>, Schema.Null]>;
|
|
1065
1170
|
readonly historySyncProgress: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1066
1171
|
readonly isActive: Schema.Boolean;
|
|
1172
|
+
readonly releasedAt: Schema.optionalKey<Schema.String>;
|
|
1067
1173
|
readonly createdAt: Schema.String;
|
|
1068
1174
|
readonly updatedAt: Schema.String;
|
|
1069
1175
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
@@ -1705,11 +1811,16 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
|
|
|
1705
1811
|
readonly organizationId: Schema.String;
|
|
1706
1812
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1707
1813
|
readonly phoneNumber: Schema.String;
|
|
1814
|
+
readonly phoneNumberDisplay: Schema.String;
|
|
1708
1815
|
readonly phoneNumberId: Schema.String;
|
|
1709
1816
|
readonly displayName: Schema.String;
|
|
1710
1817
|
readonly whatsappBusinessAccountId: Schema.String;
|
|
1711
1818
|
readonly verificationStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">, Schema.Literal<"suspended">]>;
|
|
1712
1819
|
readonly credentialStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"reconnect_required">]>;
|
|
1820
|
+
readonly sendingLock: Schema.Union<readonly [Schema.Struct<{
|
|
1821
|
+
readonly lockedAt: Schema.String;
|
|
1822
|
+
readonly reason: Schema.String;
|
|
1823
|
+
}>, Schema.Null]>;
|
|
1713
1824
|
readonly tokenExpiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1714
1825
|
readonly isDefault: Schema.Boolean;
|
|
1715
1826
|
readonly webhookUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1724,6 +1835,7 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
|
|
|
1724
1835
|
readonly historySyncStatus: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"requested">, Schema.Literal<"importing">, Schema.Literal<"completed">, Schema.Literal<"declined">]>, Schema.Null]>;
|
|
1725
1836
|
readonly historySyncProgress: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1726
1837
|
readonly isActive: Schema.Boolean;
|
|
1838
|
+
readonly releasedAt: Schema.optionalKey<Schema.String>;
|
|
1727
1839
|
readonly createdAt: Schema.String;
|
|
1728
1840
|
readonly updatedAt: Schema.String;
|
|
1729
1841
|
}>>;
|
|
@@ -1808,6 +1920,132 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
|
|
|
1808
1920
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
1809
1921
|
readonly message: Schema.String;
|
|
1810
1922
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1923
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"whatsappReleaseBusinessAccount", "POST", "/v1/whatsapp/business-accounts/:accountId/release", Schema.toCodecStringTree<Schema.Struct<{
|
|
1924
|
+
readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
|
|
1925
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1926
|
+
readonly targetOrganizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
1927
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1928
|
+
readonly success: Schema.Literal<true>;
|
|
1929
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
1930
|
+
readonly _tag: "ConflictError";
|
|
1931
|
+
readonly message: string;
|
|
1932
|
+
readonly resource: string;
|
|
1933
|
+
readonly id?: string | null;
|
|
1934
|
+
}, readonly [Schema.Struct<{
|
|
1935
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
1936
|
+
readonly message: Schema.String;
|
|
1937
|
+
readonly resource: Schema.String;
|
|
1938
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1939
|
+
}>], {
|
|
1940
|
+
readonly _tag: "ConflictError";
|
|
1941
|
+
readonly message: string;
|
|
1942
|
+
readonly resource: string;
|
|
1943
|
+
readonly id?: string | null;
|
|
1944
|
+
}>, Schema.Struct<{
|
|
1945
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
1946
|
+
readonly message: Schema.String;
|
|
1947
|
+
readonly resource: Schema.String;
|
|
1948
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1949
|
+
}>, never, never> | 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, {
|
|
1962
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1963
|
+
readonly message: string;
|
|
1964
|
+
readonly retryAfterSeconds: number;
|
|
1965
|
+
}, readonly [Schema.Struct<{
|
|
1966
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1967
|
+
readonly message: Schema.String;
|
|
1968
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1969
|
+
}>], {
|
|
1970
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1971
|
+
readonly message: string;
|
|
1972
|
+
readonly retryAfterSeconds: number;
|
|
1973
|
+
}>, Schema.Struct<{
|
|
1974
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1975
|
+
readonly message: Schema.String;
|
|
1976
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1977
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1978
|
+
readonly _tag: "MalformedRequestError";
|
|
1979
|
+
readonly message: string;
|
|
1980
|
+
readonly fields: {
|
|
1981
|
+
readonly [x: string]: readonly string[];
|
|
1982
|
+
};
|
|
1983
|
+
}, readonly [Schema.Struct<{
|
|
1984
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1985
|
+
readonly message: Schema.String;
|
|
1986
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1987
|
+
}>], {
|
|
1988
|
+
readonly _tag: "MalformedRequestError";
|
|
1989
|
+
readonly message: string;
|
|
1990
|
+
readonly fields: {
|
|
1991
|
+
readonly [x: string]: readonly string[];
|
|
1992
|
+
};
|
|
1993
|
+
}>, Schema.Struct<{
|
|
1994
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1995
|
+
readonly message: Schema.String;
|
|
1996
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1997
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1998
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1999
|
+
readonly resource: string;
|
|
2000
|
+
readonly id: string;
|
|
2001
|
+
readonly message: string;
|
|
2002
|
+
}, readonly [Schema.Struct<{
|
|
2003
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
2004
|
+
readonly resource: Schema.String;
|
|
2005
|
+
readonly id: Schema.String;
|
|
2006
|
+
readonly message: Schema.String;
|
|
2007
|
+
}>], {
|
|
2008
|
+
readonly _tag: "ResourceNotFoundError";
|
|
2009
|
+
readonly resource: string;
|
|
2010
|
+
readonly id: string;
|
|
2011
|
+
readonly message: string;
|
|
2012
|
+
}>, Schema.Struct<{
|
|
2013
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
2014
|
+
readonly resource: Schema.String;
|
|
2015
|
+
readonly id: Schema.String;
|
|
2016
|
+
readonly message: Schema.String;
|
|
2017
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
2018
|
+
readonly _tag: "UnauthorizedError";
|
|
2019
|
+
readonly message: string;
|
|
2020
|
+
}, readonly [Schema.Struct<{
|
|
2021
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
2022
|
+
readonly message: Schema.String;
|
|
2023
|
+
}>], {
|
|
2024
|
+
readonly _tag: "UnauthorizedError";
|
|
2025
|
+
readonly message: string;
|
|
2026
|
+
}>, Schema.Struct<{
|
|
2027
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
2028
|
+
readonly message: Schema.String;
|
|
2029
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
2030
|
+
readonly _tag: "ValidationError";
|
|
2031
|
+
readonly message: string;
|
|
2032
|
+
readonly fields?: {
|
|
2033
|
+
readonly [x: string]: readonly string[];
|
|
2034
|
+
} | null;
|
|
2035
|
+
}, readonly [Schema.Struct<{
|
|
2036
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
2037
|
+
readonly message: Schema.String;
|
|
2038
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
2039
|
+
}>], {
|
|
2040
|
+
readonly _tag: "ValidationError";
|
|
2041
|
+
readonly message: string;
|
|
2042
|
+
readonly fields?: {
|
|
2043
|
+
readonly [x: string]: readonly string[];
|
|
2044
|
+
} | null;
|
|
2045
|
+
}>, Schema.Struct<{
|
|
2046
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
2047
|
+
readonly message: Schema.String;
|
|
2048
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1811
2049
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"whatsappSetDefaultBusinessAccount", "POST", "/v1/whatsapp/business-accounts/:accountId/set-default", Schema.toCodecStringTree<Schema.Struct<{
|
|
1812
2050
|
readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
|
|
1813
2051
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -1815,11 +2053,16 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
|
|
|
1815
2053
|
readonly organizationId: Schema.String;
|
|
1816
2054
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1817
2055
|
readonly phoneNumber: Schema.String;
|
|
2056
|
+
readonly phoneNumberDisplay: Schema.String;
|
|
1818
2057
|
readonly phoneNumberId: Schema.String;
|
|
1819
2058
|
readonly displayName: Schema.String;
|
|
1820
2059
|
readonly whatsappBusinessAccountId: Schema.String;
|
|
1821
2060
|
readonly verificationStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">, Schema.Literal<"suspended">]>;
|
|
1822
2061
|
readonly credentialStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"reconnect_required">]>;
|
|
2062
|
+
readonly sendingLock: Schema.Union<readonly [Schema.Struct<{
|
|
2063
|
+
readonly lockedAt: Schema.String;
|
|
2064
|
+
readonly reason: Schema.String;
|
|
2065
|
+
}>, Schema.Null]>;
|
|
1823
2066
|
readonly tokenExpiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1824
2067
|
readonly isDefault: Schema.Boolean;
|
|
1825
2068
|
readonly webhookUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1834,6 +2077,7 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
|
|
|
1834
2077
|
readonly historySyncStatus: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"requested">, Schema.Literal<"importing">, Schema.Literal<"completed">, Schema.Literal<"declined">]>, Schema.Null]>;
|
|
1835
2078
|
readonly historySyncProgress: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1836
2079
|
readonly isActive: Schema.Boolean;
|
|
2080
|
+
readonly releasedAt: Schema.optionalKey<Schema.String>;
|
|
1837
2081
|
readonly createdAt: Schema.String;
|
|
1838
2082
|
readonly updatedAt: Schema.String;
|
|
1839
2083
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
@@ -2084,11 +2328,16 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
|
|
|
2084
2328
|
readonly organizationId: Schema.String;
|
|
2085
2329
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
2086
2330
|
readonly phoneNumber: Schema.String;
|
|
2331
|
+
readonly phoneNumberDisplay: Schema.String;
|
|
2087
2332
|
readonly phoneNumberId: Schema.String;
|
|
2088
2333
|
readonly displayName: Schema.String;
|
|
2089
2334
|
readonly whatsappBusinessAccountId: Schema.String;
|
|
2090
2335
|
readonly verificationStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">, Schema.Literal<"suspended">]>;
|
|
2091
2336
|
readonly credentialStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"reconnect_required">]>;
|
|
2337
|
+
readonly sendingLock: Schema.Union<readonly [Schema.Struct<{
|
|
2338
|
+
readonly lockedAt: Schema.String;
|
|
2339
|
+
readonly reason: Schema.String;
|
|
2340
|
+
}>, Schema.Null]>;
|
|
2092
2341
|
readonly tokenExpiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2093
2342
|
readonly isDefault: Schema.Boolean;
|
|
2094
2343
|
readonly webhookUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2103,6 +2352,7 @@ declare const WhatsAppGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp", HttpApiE
|
|
|
2103
2352
|
readonly historySyncStatus: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"requested">, Schema.Literal<"importing">, Schema.Literal<"completed">, Schema.Literal<"declined">]>, Schema.Null]>;
|
|
2104
2353
|
readonly historySyncProgress: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
2105
2354
|
readonly isActive: Schema.Boolean;
|
|
2355
|
+
readonly releasedAt: Schema.optionalKey<Schema.String>;
|
|
2106
2356
|
readonly createdAt: Schema.String;
|
|
2107
2357
|
readonly updatedAt: Schema.String;
|
|
2108
2358
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|