samva 0.56.2 → 0.56.4
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/dist/client/types.gen.d.ts +24 -0
- package/dist/effect/generated/agents.d.ts +16 -0
- package/dist/effect/generated/approval-requests.d.ts +12 -0
- package/dist/effect/generated/brands.d.ts +12 -0
- package/dist/effect/generated/campaigns.d.ts +32 -0
- package/dist/effect/generated/contacts.d.ts +28 -0
- package/dist/effect/generated/conversations.d.ts +8 -0
- package/dist/effect/generated/custom-fields.d.ts +4 -0
- package/dist/effect/generated/email.d.ts +92 -0
- package/dist/effect/generated/events.d.ts +4 -0
- package/dist/effect/generated/integrations-catalog.d.ts +24 -0
- package/dist/effect/generated/integrations.d.ts +16 -0
- package/dist/effect/generated/journeys.d.ts +28 -0
- package/dist/effect/generated/mailboxes.d.ts +76 -0
- package/dist/effect/generated/messages.d.ts +6 -0
- package/dist/effect/generated/namespaces.d.ts +20 -0
- package/dist/effect/generated/newsletter-domains.d.ts +16 -0
- package/dist/effect/generated/newsletter-issues.d.ts +56 -0
- package/dist/effect/generated/newsletter-issues.js +4 -0
- package/dist/effect/generated/newsletters.d.ts +20 -0
- package/dist/effect/generated/operations.d.ts +4 -0
- package/dist/effect/generated/organizations.d.ts +12 -0
- package/dist/effect/generated/phone-numbers.d.ts +4 -0
- package/dist/effect/generated/policies.d.ts +12 -0
- package/dist/effect/generated/scheduled-messages.d.ts +32 -0
- package/dist/effect/generated/scheduled-messages.js +2 -0
- package/dist/effect/generated/shared.d.ts +4 -0
- package/dist/effect/generated/shared.js +3 -1
- package/dist/effect/generated/subscriptions.d.ts +4 -0
- package/dist/effect/generated/template-registrations.d.ts +4 -0
- package/dist/effect/generated/templates.d.ts +45 -0
- package/dist/effect/generated/templates.js +7 -0
- package/dist/effect/generated/topics.d.ts +12 -0
- package/dist/effect/generated/webhooks.d.ts +8 -0
- package/dist/effect/generated/whats-app-flows.d.ts +12 -0
- package/dist/effect/generated/whats-app.d.ts +8 -0
- package/dist/effect/scheduled-messages.d.ts +3 -0
- package/dist/package.json.js +1 -1
- package/dist/promises/errors.gen.d.ts +2 -0
- package/dist/promises/errors.gen.js +5 -1
- package/package.json +2 -2
|
@@ -461,21 +461,25 @@ export declare const OperationsRetryEndpoint: HttpApiEndpoint.HttpApiEndpoint<"o
|
|
|
461
461
|
readonly message: string;
|
|
462
462
|
readonly resource: string;
|
|
463
463
|
readonly id?: string | null;
|
|
464
|
+
readonly code?: "stale_revision";
|
|
464
465
|
}, readonly [Schema.Struct<{
|
|
465
466
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
466
467
|
readonly message: Schema.String;
|
|
467
468
|
readonly resource: Schema.String;
|
|
468
469
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
470
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
469
471
|
}>], {
|
|
470
472
|
readonly _tag: "ConflictError";
|
|
471
473
|
readonly message: string;
|
|
472
474
|
readonly resource: string;
|
|
473
475
|
readonly id?: string | null;
|
|
476
|
+
readonly code?: "stale_revision";
|
|
474
477
|
}>, Schema.Struct<{
|
|
475
478
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
476
479
|
readonly message: Schema.String;
|
|
477
480
|
readonly resource: Schema.String;
|
|
478
481
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
482
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
479
483
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
480
484
|
readonly _tag: "ForbiddenError";
|
|
481
485
|
readonly message: string;
|
|
@@ -1240,21 +1240,25 @@ export declare const OrganizationsDeleteEndpoint: HttpApiEndpoint.HttpApiEndpoin
|
|
|
1240
1240
|
readonly message: string;
|
|
1241
1241
|
readonly resource: string;
|
|
1242
1242
|
readonly id?: string | null;
|
|
1243
|
+
readonly code?: "stale_revision";
|
|
1243
1244
|
}, readonly [Schema.Struct<{
|
|
1244
1245
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
1245
1246
|
readonly message: Schema.String;
|
|
1246
1247
|
readonly resource: Schema.String;
|
|
1247
1248
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1249
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
1248
1250
|
}>], {
|
|
1249
1251
|
readonly _tag: "ConflictError";
|
|
1250
1252
|
readonly message: string;
|
|
1251
1253
|
readonly resource: string;
|
|
1252
1254
|
readonly id?: string | null;
|
|
1255
|
+
readonly code?: "stale_revision";
|
|
1253
1256
|
}>, Schema.Struct<{
|
|
1254
1257
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
1255
1258
|
readonly message: Schema.String;
|
|
1256
1259
|
readonly resource: Schema.String;
|
|
1257
1260
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1261
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
1258
1262
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1259
1263
|
readonly _tag: "ForbiddenError";
|
|
1260
1264
|
readonly message: string;
|
|
@@ -1359,21 +1363,25 @@ export declare const OrganizationsAssignPersonalMailboxEndpoint: HttpApiEndpoint
|
|
|
1359
1363
|
readonly message: string;
|
|
1360
1364
|
readonly resource: string;
|
|
1361
1365
|
readonly id?: string | null;
|
|
1366
|
+
readonly code?: "stale_revision";
|
|
1362
1367
|
}, readonly [Schema.Struct<{
|
|
1363
1368
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
1364
1369
|
readonly message: Schema.String;
|
|
1365
1370
|
readonly resource: Schema.String;
|
|
1366
1371
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1372
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
1367
1373
|
}>], {
|
|
1368
1374
|
readonly _tag: "ConflictError";
|
|
1369
1375
|
readonly message: string;
|
|
1370
1376
|
readonly resource: string;
|
|
1371
1377
|
readonly id?: string | null;
|
|
1378
|
+
readonly code?: "stale_revision";
|
|
1372
1379
|
}>, Schema.Struct<{
|
|
1373
1380
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
1374
1381
|
readonly message: Schema.String;
|
|
1375
1382
|
readonly resource: Schema.String;
|
|
1376
1383
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1384
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
1377
1385
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1378
1386
|
readonly _tag: "ForbiddenError";
|
|
1379
1387
|
readonly message: string;
|
|
@@ -1528,21 +1536,25 @@ export declare const OrganizationsInviteMemberEndpoint: HttpApiEndpoint.HttpApiE
|
|
|
1528
1536
|
readonly message: string;
|
|
1529
1537
|
readonly resource: string;
|
|
1530
1538
|
readonly id?: string | null;
|
|
1539
|
+
readonly code?: "stale_revision";
|
|
1531
1540
|
}, readonly [Schema.Struct<{
|
|
1532
1541
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
1533
1542
|
readonly message: Schema.String;
|
|
1534
1543
|
readonly resource: Schema.String;
|
|
1535
1544
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1545
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
1536
1546
|
}>], {
|
|
1537
1547
|
readonly _tag: "ConflictError";
|
|
1538
1548
|
readonly message: string;
|
|
1539
1549
|
readonly resource: string;
|
|
1540
1550
|
readonly id?: string | null;
|
|
1551
|
+
readonly code?: "stale_revision";
|
|
1541
1552
|
}>, Schema.Struct<{
|
|
1542
1553
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
1543
1554
|
readonly message: Schema.String;
|
|
1544
1555
|
readonly resource: Schema.String;
|
|
1545
1556
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1557
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
1546
1558
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1547
1559
|
readonly _tag: "ForbiddenError";
|
|
1548
1560
|
readonly message: string;
|
|
@@ -374,21 +374,25 @@ export declare const PhoneNumbersPurchaseNumberEndpoint: HttpApiEndpoint.HttpApi
|
|
|
374
374
|
readonly message: string;
|
|
375
375
|
readonly resource: string;
|
|
376
376
|
readonly id?: string | null;
|
|
377
|
+
readonly code?: "stale_revision";
|
|
377
378
|
}, readonly [Schema.Struct<{
|
|
378
379
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
379
380
|
readonly message: Schema.String;
|
|
380
381
|
readonly resource: Schema.String;
|
|
381
382
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
383
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
382
384
|
}>], {
|
|
383
385
|
readonly _tag: "ConflictError";
|
|
384
386
|
readonly message: string;
|
|
385
387
|
readonly resource: string;
|
|
386
388
|
readonly id?: string | null;
|
|
389
|
+
readonly code?: "stale_revision";
|
|
387
390
|
}>, Schema.Struct<{
|
|
388
391
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
389
392
|
readonly message: Schema.String;
|
|
390
393
|
readonly resource: Schema.String;
|
|
391
394
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
395
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
392
396
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
393
397
|
readonly _tag: "GatewayTimeoutError";
|
|
394
398
|
readonly message: string;
|
|
@@ -425,21 +425,25 @@ export declare const PoliciesGetPolicyEndpoint: HttpApiEndpoint.HttpApiEndpoint<
|
|
|
425
425
|
readonly message: string;
|
|
426
426
|
readonly resource: string;
|
|
427
427
|
readonly id?: string | null;
|
|
428
|
+
readonly code?: "stale_revision";
|
|
428
429
|
}, readonly [Schema.Struct<{
|
|
429
430
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
430
431
|
readonly message: Schema.String;
|
|
431
432
|
readonly resource: Schema.String;
|
|
432
433
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
434
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
433
435
|
}>], {
|
|
434
436
|
readonly _tag: "ConflictError";
|
|
435
437
|
readonly message: string;
|
|
436
438
|
readonly resource: string;
|
|
437
439
|
readonly id?: string | null;
|
|
440
|
+
readonly code?: "stale_revision";
|
|
438
441
|
}>, Schema.Struct<{
|
|
439
442
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
440
443
|
readonly message: Schema.String;
|
|
441
444
|
readonly resource: Schema.String;
|
|
442
445
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
446
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
443
447
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
444
448
|
readonly _tag: "ForbiddenError";
|
|
445
449
|
readonly message: string;
|
|
@@ -655,21 +659,25 @@ export declare const PoliciesSetPolicyEndpoint: HttpApiEndpoint.HttpApiEndpoint<
|
|
|
655
659
|
readonly message: string;
|
|
656
660
|
readonly resource: string;
|
|
657
661
|
readonly id?: string | null;
|
|
662
|
+
readonly code?: "stale_revision";
|
|
658
663
|
}, readonly [Schema.Struct<{
|
|
659
664
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
660
665
|
readonly message: Schema.String;
|
|
661
666
|
readonly resource: Schema.String;
|
|
662
667
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
668
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
663
669
|
}>], {
|
|
664
670
|
readonly _tag: "ConflictError";
|
|
665
671
|
readonly message: string;
|
|
666
672
|
readonly resource: string;
|
|
667
673
|
readonly id?: string | null;
|
|
674
|
+
readonly code?: "stale_revision";
|
|
668
675
|
}>, Schema.Struct<{
|
|
669
676
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
670
677
|
readonly message: Schema.String;
|
|
671
678
|
readonly resource: Schema.String;
|
|
672
679
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
680
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
673
681
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
674
682
|
readonly _tag: "ForbiddenError";
|
|
675
683
|
readonly message: string;
|
|
@@ -834,21 +842,25 @@ export declare const PoliciesDeletePolicyEndpoint: HttpApiEndpoint.HttpApiEndpoi
|
|
|
834
842
|
readonly message: string;
|
|
835
843
|
readonly resource: string;
|
|
836
844
|
readonly id?: string | null;
|
|
845
|
+
readonly code?: "stale_revision";
|
|
837
846
|
}, readonly [Schema.Struct<{
|
|
838
847
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
839
848
|
readonly message: Schema.String;
|
|
840
849
|
readonly resource: Schema.String;
|
|
841
850
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
851
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
842
852
|
}>], {
|
|
843
853
|
readonly _tag: "ConflictError";
|
|
844
854
|
readonly message: string;
|
|
845
855
|
readonly resource: string;
|
|
846
856
|
readonly id?: string | null;
|
|
857
|
+
readonly code?: "stale_revision";
|
|
847
858
|
}>, Schema.Struct<{
|
|
848
859
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
849
860
|
readonly message: Schema.String;
|
|
850
861
|
readonly resource: Schema.String;
|
|
851
862
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
863
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
852
864
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
853
865
|
readonly _tag: "ForbiddenError";
|
|
854
866
|
readonly message: string;
|
|
@@ -327,6 +327,7 @@ export type StoredWhatsAppSendMessage = {
|
|
|
327
327
|
readonly conversationId?: ConversationId | null;
|
|
328
328
|
readonly metadata?: MessageMetadata;
|
|
329
329
|
readonly channel: "whatsapp";
|
|
330
|
+
readonly from?: string;
|
|
330
331
|
readonly to: ReadonlyArray<SavedPhoneRecipient>;
|
|
331
332
|
readonly whatsapp: WhatsAppContent;
|
|
332
333
|
};
|
|
@@ -334,6 +335,7 @@ export declare const StoredWhatsAppSendMessage: Schema.Struct<{
|
|
|
334
335
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
335
336
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
336
337
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
338
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
337
339
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
338
340
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
339
341
|
}>, Schema.Struct<{
|
|
@@ -545,6 +547,7 @@ export type WhatsAppDispatchSendMessagePayload = {
|
|
|
545
547
|
readonly conversationId?: ConversationId | null;
|
|
546
548
|
readonly metadata?: MessageMetadata;
|
|
547
549
|
readonly channel: "whatsapp";
|
|
550
|
+
readonly from?: string;
|
|
548
551
|
readonly to: WhatsAppRecipients;
|
|
549
552
|
readonly whatsapp: WhatsAppContent;
|
|
550
553
|
};
|
|
@@ -552,6 +555,7 @@ export declare const WhatsAppDispatchSendMessagePayload: Schema.Struct<{
|
|
|
552
555
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
553
556
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
554
557
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
558
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
555
559
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
556
560
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
557
561
|
}>, Schema.Struct<{
|
|
@@ -840,6 +844,7 @@ export declare const StoredSendMessagePayload: Schema.Union<readonly [Schema.Str
|
|
|
840
844
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
841
845
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
842
846
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
847
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
843
848
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
844
849
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
845
850
|
}>, Schema.Struct<{
|
|
@@ -1128,6 +1133,7 @@ export declare const DispatchSendMessagePayload: Schema.Union<readonly [Schema.S
|
|
|
1128
1133
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1129
1134
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1130
1135
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
1136
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
1131
1137
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1132
1138
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
1133
1139
|
}>, Schema.Struct<{
|
|
@@ -1437,6 +1443,7 @@ export declare const ScheduledMessage: Schema.Struct<{
|
|
|
1437
1443
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1438
1444
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1439
1445
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
1446
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
1440
1447
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1441
1448
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
1442
1449
|
}>, Schema.Struct<{
|
|
@@ -1744,6 +1751,7 @@ export declare const ScheduledMessagePage: Schema.Struct<{
|
|
|
1744
1751
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1745
1752
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1746
1753
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
1754
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
1747
1755
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1748
1756
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
1749
1757
|
}>, Schema.Struct<{
|
|
@@ -2062,6 +2070,7 @@ export declare const ScheduledMessagesList200: Schema.Struct<{
|
|
|
2062
2070
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2063
2071
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2064
2072
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
2073
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
2065
2074
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2066
2075
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
2067
2076
|
}>, Schema.Struct<{
|
|
@@ -2387,6 +2396,7 @@ export declare const ScheduledMessagesCreateRequestJson: Schema.Struct<{
|
|
|
2387
2396
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2388
2397
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2389
2398
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
2399
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
2390
2400
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2391
2401
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
2392
2402
|
}>, Schema.Struct<{
|
|
@@ -2685,6 +2695,7 @@ export declare const ScheduledMessagesCreate201: Schema.Struct<{
|
|
|
2685
2695
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2686
2696
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2687
2697
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
2698
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
2688
2699
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2689
2700
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
2690
2701
|
}>, Schema.Struct<{
|
|
@@ -3012,6 +3023,7 @@ export declare const ScheduledMessagesGet200: Schema.Struct<{
|
|
|
3012
3023
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3013
3024
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3014
3025
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
3026
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
3015
3027
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3016
3028
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
3017
3029
|
}>, Schema.Struct<{
|
|
@@ -3340,6 +3352,7 @@ export declare const ScheduledMessagesCancel200: Schema.Struct<{
|
|
|
3340
3352
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3341
3353
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3342
3354
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
3355
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
3343
3356
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3344
3357
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
3345
3358
|
}>, Schema.Struct<{
|
|
@@ -3678,6 +3691,7 @@ export declare const ScheduledMessagesResume200: Schema.Struct<{
|
|
|
3678
3691
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3679
3692
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3680
3693
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
3694
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
3681
3695
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3682
3696
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
3683
3697
|
}>, Schema.Struct<{
|
|
@@ -4006,6 +4020,7 @@ export declare const ScheduledMessagesListEndpoint: HttpApiEndpoint.HttpApiEndpo
|
|
|
4006
4020
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4007
4021
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4008
4022
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
4023
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
4009
4024
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4010
4025
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
4011
4026
|
}>, Schema.Struct<{
|
|
@@ -4386,6 +4401,7 @@ export declare const ScheduledMessagesCreateEndpoint: HttpApiEndpoint.HttpApiEnd
|
|
|
4386
4401
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4387
4402
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4388
4403
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
4404
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
4389
4405
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4390
4406
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
4391
4407
|
}>, Schema.Struct<{
|
|
@@ -4684,6 +4700,7 @@ export declare const ScheduledMessagesCreateEndpoint: HttpApiEndpoint.HttpApiEnd
|
|
|
4684
4700
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4685
4701
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4686
4702
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
4703
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
4687
4704
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4688
4705
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
4689
4706
|
}>, Schema.Struct<{
|
|
@@ -4904,21 +4921,25 @@ export declare const ScheduledMessagesCreateEndpoint: HttpApiEndpoint.HttpApiEnd
|
|
|
4904
4921
|
readonly message: string;
|
|
4905
4922
|
readonly resource: string;
|
|
4906
4923
|
readonly id?: string | null;
|
|
4924
|
+
readonly code?: "stale_revision";
|
|
4907
4925
|
}, readonly [Schema.Struct<{
|
|
4908
4926
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
4909
4927
|
readonly message: Schema.String;
|
|
4910
4928
|
readonly resource: Schema.String;
|
|
4911
4929
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4930
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
4912
4931
|
}>], {
|
|
4913
4932
|
readonly _tag: "ConflictError";
|
|
4914
4933
|
readonly message: string;
|
|
4915
4934
|
readonly resource: string;
|
|
4916
4935
|
readonly id?: string | null;
|
|
4936
|
+
readonly code?: "stale_revision";
|
|
4917
4937
|
}>, Schema.Struct<{
|
|
4918
4938
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
4919
4939
|
readonly message: Schema.String;
|
|
4920
4940
|
readonly resource: Schema.String;
|
|
4921
4941
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4942
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
4922
4943
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ExternalServiceError, {
|
|
4923
4944
|
readonly _tag: "ExternalServiceError";
|
|
4924
4945
|
readonly message: string;
|
|
@@ -5108,6 +5129,7 @@ export declare const ScheduledMessagesGetEndpoint: HttpApiEndpoint.HttpApiEndpoi
|
|
|
5108
5129
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5109
5130
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5110
5131
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
5132
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
5111
5133
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5112
5134
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
5113
5135
|
}>, Schema.Struct<{
|
|
@@ -5514,6 +5536,7 @@ export declare const ScheduledMessagesCancelEndpoint: HttpApiEndpoint.HttpApiEnd
|
|
|
5514
5536
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5515
5537
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5516
5538
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
5539
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
5517
5540
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5518
5541
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
5519
5542
|
}>, Schema.Struct<{
|
|
@@ -5735,21 +5758,25 @@ export declare const ScheduledMessagesCancelEndpoint: HttpApiEndpoint.HttpApiEnd
|
|
|
5735
5758
|
readonly message: string;
|
|
5736
5759
|
readonly resource: string;
|
|
5737
5760
|
readonly id?: string | null;
|
|
5761
|
+
readonly code?: "stale_revision";
|
|
5738
5762
|
}, readonly [Schema.Struct<{
|
|
5739
5763
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
5740
5764
|
readonly message: Schema.String;
|
|
5741
5765
|
readonly resource: Schema.String;
|
|
5742
5766
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5767
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
5743
5768
|
}>], {
|
|
5744
5769
|
readonly _tag: "ConflictError";
|
|
5745
5770
|
readonly message: string;
|
|
5746
5771
|
readonly resource: string;
|
|
5747
5772
|
readonly id?: string | null;
|
|
5773
|
+
readonly code?: "stale_revision";
|
|
5748
5774
|
}>, Schema.Struct<{
|
|
5749
5775
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
5750
5776
|
readonly message: Schema.String;
|
|
5751
5777
|
readonly resource: Schema.String;
|
|
5752
5778
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5779
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
5753
5780
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
5754
5781
|
readonly _tag: "ForbiddenError";
|
|
5755
5782
|
readonly message: string;
|
|
@@ -5944,6 +5971,7 @@ export declare const ScheduledMessagesResumeEndpoint: HttpApiEndpoint.HttpApiEnd
|
|
|
5944
5971
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5945
5972
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5946
5973
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
5974
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
5947
5975
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5948
5976
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
5949
5977
|
}>, Schema.Struct<{
|
|
@@ -6164,21 +6192,25 @@ export declare const ScheduledMessagesResumeEndpoint: HttpApiEndpoint.HttpApiEnd
|
|
|
6164
6192
|
readonly message: string;
|
|
6165
6193
|
readonly resource: string;
|
|
6166
6194
|
readonly id?: string | null;
|
|
6195
|
+
readonly code?: "stale_revision";
|
|
6167
6196
|
}, readonly [Schema.Struct<{
|
|
6168
6197
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
6169
6198
|
readonly message: Schema.String;
|
|
6170
6199
|
readonly resource: Schema.String;
|
|
6171
6200
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6201
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
6172
6202
|
}>], {
|
|
6173
6203
|
readonly _tag: "ConflictError";
|
|
6174
6204
|
readonly message: string;
|
|
6175
6205
|
readonly resource: string;
|
|
6176
6206
|
readonly id?: string | null;
|
|
6207
|
+
readonly code?: "stale_revision";
|
|
6177
6208
|
}>, Schema.Struct<{
|
|
6178
6209
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
6179
6210
|
readonly message: Schema.String;
|
|
6180
6211
|
readonly resource: Schema.String;
|
|
6181
6212
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6213
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
6182
6214
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ExternalServiceError, {
|
|
6183
6215
|
readonly _tag: "ExternalServiceError";
|
|
6184
6216
|
readonly message: string;
|
|
@@ -99,6 +99,7 @@ const StoredWhatsAppSendMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
99
99
|
conversationId: Schema.optionalKey(Schema.Union([ConversationId, Schema.Null])),
|
|
100
100
|
metadata: Schema.optionalKey(MessageMetadata),
|
|
101
101
|
channel: Schema.Literal("whatsapp"),
|
|
102
|
+
from: Schema.optionalKey(Schema.String.annotate({ description: "Sending WhatsApp business number in E.164 format. Omit to use the default number." }).check(Schema.isPattern(new globalThis.RegExp("^\\+[1-9]\\d{1,14}$", "u")).annotate({ expected: "a string matching the RegExp ^\\+[1-9]\\d{1,14}$" }))),
|
|
102
103
|
to: Schema.Array(SavedPhoneRecipient).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxLength(1).annotate({ expected: "a value with a length of at most 1" })),
|
|
103
104
|
whatsapp: WhatsAppContent
|
|
104
105
|
}).annotate({ identifier: "StoredWhatsAppSendMessage" }))();
|
|
@@ -106,6 +107,7 @@ const WhatsAppDispatchSendMessagePayload = /* @__PURE__ */ (() => Schema.Struct(
|
|
|
106
107
|
conversationId: Schema.optionalKey(Schema.Union([ConversationId, Schema.Null])),
|
|
107
108
|
metadata: Schema.optionalKey(MessageMetadata),
|
|
108
109
|
channel: Schema.Literal("whatsapp"),
|
|
110
|
+
from: Schema.optionalKey(Schema.String.annotate({ description: "Sending WhatsApp business number in E.164 format. Omit to use the default number." }).check(Schema.isPattern(new globalThis.RegExp("^\\+[1-9]\\d{1,14}$", "u")).annotate({ expected: "a string matching the RegExp ^\\+[1-9]\\d{1,14}$" }))),
|
|
109
111
|
to: WhatsAppRecipients,
|
|
110
112
|
whatsapp: WhatsAppContent
|
|
111
113
|
}).annotate({
|
|
@@ -139,6 +139,7 @@ declare const ConflictError_base: Schema.Class<ConflictError, Schema.Struct<{
|
|
|
139
139
|
readonly message: Schema.String;
|
|
140
140
|
readonly resource: Schema.String;
|
|
141
141
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
142
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
142
143
|
}>, import("effect/Cause").YieldableError>;
|
|
143
144
|
export declare class ConflictError extends /* @__PURE__ */ ConflictError_base {
|
|
144
145
|
}
|
|
@@ -7571,6 +7572,7 @@ export type WhatsAppSendMessagePayload = {
|
|
|
7571
7572
|
readonly conversationId?: ConversationId | null;
|
|
7572
7573
|
readonly metadata?: MessageMetadata;
|
|
7573
7574
|
readonly channel: "whatsapp";
|
|
7575
|
+
readonly from?: string;
|
|
7574
7576
|
readonly to: WhatsAppRecipients;
|
|
7575
7577
|
readonly whatsapp: WhatsAppContent;
|
|
7576
7578
|
};
|
|
@@ -7578,6 +7580,7 @@ export declare const WhatsAppSendMessagePayload: Schema.Struct<{
|
|
|
7578
7580
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
7579
7581
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
7580
7582
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
7583
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
7581
7584
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
7582
7585
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
7583
7586
|
}>, Schema.Struct<{
|
|
@@ -8110,6 +8113,7 @@ export declare const SendMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
|
8110
8113
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
8111
8114
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
8112
8115
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
8116
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
8113
8117
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
8114
8118
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
8115
8119
|
}>, Schema.Struct<{
|
|
@@ -151,7 +151,8 @@ const MonthlySpendCapDollars = /* @__PURE__ */ (() => Schema.Finite.check(Schema
|
|
|
151
151
|
var ConflictError = class extends (/* @__PURE__ */ (() => Schema.TaggedError()("ConflictError", Schema.Struct({
|
|
152
152
|
message: Schema.String,
|
|
153
153
|
resource: Schema.String,
|
|
154
|
-
id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
154
|
+
id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
155
|
+
code: Schema.optionalKey(Schema.Literal("stale_revision"))
|
|
155
156
|
})))()) {};
|
|
156
157
|
var AnalyticsQueryError = class extends (/* @__PURE__ */ (() => Schema.TaggedError()("AnalyticsQueryError", Schema.Struct({ message: Schema.String })))()) {};
|
|
157
158
|
const ApiKeyResourceAccess = /* @__PURE__ */ (() => Schema.Struct({
|
|
@@ -2299,6 +2300,7 @@ const WhatsAppSendMessagePayload = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
2299
2300
|
conversationId: Schema.optionalKey(Schema.Union([ConversationId, Schema.Null])),
|
|
2300
2301
|
metadata: Schema.optionalKey(MessageMetadata),
|
|
2301
2302
|
channel: Schema.Literal("whatsapp"),
|
|
2303
|
+
from: Schema.optionalKey(Schema.String.annotate({ description: "Sending WhatsApp business number in E.164 format. Omit to use the default number." }).check(Schema.isPattern(new globalThis.RegExp("^\\+[1-9]\\d{1,14}$", "u")).annotate({ expected: "a string matching the RegExp ^\\+[1-9]\\d{1,14}$" }))),
|
|
2302
2304
|
to: WhatsAppRecipients,
|
|
2303
2305
|
whatsapp: WhatsAppContent
|
|
2304
2306
|
}).annotate({
|
|
@@ -78,21 +78,25 @@ export declare const SubscriptionsSubscribeEndpoint: HttpApiEndpoint.HttpApiEndp
|
|
|
78
78
|
readonly message: string;
|
|
79
79
|
readonly resource: string;
|
|
80
80
|
readonly id?: string | null;
|
|
81
|
+
readonly code?: "stale_revision";
|
|
81
82
|
}, readonly [Schema.Struct<{
|
|
82
83
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
83
84
|
readonly message: Schema.String;
|
|
84
85
|
readonly resource: Schema.String;
|
|
85
86
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
87
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
86
88
|
}>], {
|
|
87
89
|
readonly _tag: "ConflictError";
|
|
88
90
|
readonly message: string;
|
|
89
91
|
readonly resource: string;
|
|
90
92
|
readonly id?: string | null;
|
|
93
|
+
readonly code?: "stale_revision";
|
|
91
94
|
}>, Schema.Struct<{
|
|
92
95
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
93
96
|
readonly message: Schema.String;
|
|
94
97
|
readonly resource: Schema.String;
|
|
95
98
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
99
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
96
100
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
97
101
|
readonly _tag: "GatewayTimeoutError";
|
|
98
102
|
readonly message: string;
|
|
@@ -449,21 +449,25 @@ export declare const TemplateRegistrationsSubmitEndpoint: HttpApiEndpoint.HttpAp
|
|
|
449
449
|
readonly message: string;
|
|
450
450
|
readonly resource: string;
|
|
451
451
|
readonly id?: string | null;
|
|
452
|
+
readonly code?: "stale_revision";
|
|
452
453
|
}, readonly [Schema.Struct<{
|
|
453
454
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
454
455
|
readonly message: Schema.String;
|
|
455
456
|
readonly resource: Schema.String;
|
|
456
457
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
458
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
457
459
|
}>], {
|
|
458
460
|
readonly _tag: "ConflictError";
|
|
459
461
|
readonly message: string;
|
|
460
462
|
readonly resource: string;
|
|
461
463
|
readonly id?: string | null;
|
|
464
|
+
readonly code?: "stale_revision";
|
|
462
465
|
}>, Schema.Struct<{
|
|
463
466
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
464
467
|
readonly message: Schema.String;
|
|
465
468
|
readonly resource: Schema.String;
|
|
466
469
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
470
|
+
readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
|
|
467
471
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
468
472
|
readonly _tag: "ForbiddenError";
|
|
469
473
|
readonly message: string;
|