samva 0.51.0 → 0.52.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 +5 -2
- package/README.md +1 -0
- package/dist/client/sdk.gen.d.ts +67 -28
- package/dist/client/sdk.gen.js +157 -29
- package/dist/client/types.gen.d.ts +520 -281
- package/dist/effect/campaigns.d.ts +56 -56
- package/dist/effect/descriptors/integrations-catalog.d.ts +1 -1
- package/dist/effect/descriptors/integrations-catalog.js +1 -1
- package/dist/effect/descriptors/integrations.d.ts +1 -1
- package/dist/effect/descriptors/integrations.js +1 -1
- package/dist/effect/descriptors/logs.d.ts +21 -0
- package/dist/effect/descriptors/logs.js +23 -0
- package/dist/effect/descriptors/whats-app.d.ts +1 -1
- package/dist/effect/descriptors/whats-app.js +1 -1
- package/dist/effect/generated/agents.js +4 -4
- package/dist/effect/generated/campaigns.d.ts +18 -6
- package/dist/effect/generated/campaigns.js +2 -6
- package/dist/effect/generated/email.js +3 -3
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/integrations-catalog.d.ts +93 -49
- package/dist/effect/generated/integrations-catalog.js +17 -28
- package/dist/effect/generated/integrations.d.ts +20 -40
- package/dist/effect/generated/integrations.js +9 -13
- package/dist/effect/generated/journeys.d.ts +61 -13
- package/dist/effect/generated/journeys.js +5 -5
- package/dist/effect/generated/logs.d.ts +2311 -0
- package/dist/effect/generated/logs.js +312 -0
- package/dist/effect/generated/mailboxes.d.ts +30 -24
- package/dist/effect/generated/mailboxes.js +20 -20
- package/dist/effect/generated/messages.d.ts +1 -882
- package/dist/effect/generated/messages.js +4 -243
- package/dist/effect/generated/newsletter-domains.d.ts +61 -13
- package/dist/effect/generated/newsletter-domains.js +5 -5
- package/dist/effect/generated/newsletter-issues.d.ts +166 -34
- package/dist/effect/generated/newsletter-issues.js +12 -12
- package/dist/effect/generated/newsletters.d.ts +76 -16
- package/dist/effect/generated/newsletters.js +6 -6
- package/dist/effect/generated/organizations.js +1 -1
- package/dist/effect/generated/scheduled-messages.js +1 -1
- package/dist/effect/generated/shared.d.ts +1138 -257
- package/dist/effect/generated/shared.js +321 -82
- package/dist/effect/generated/subscriptions.d.ts +4 -4
- package/dist/effect/generated/subscriptions.js +2 -6
- package/dist/effect/generated/template-registrations.d.ts +46 -10
- package/dist/effect/generated/template-registrations.js +4 -4
- package/dist/effect/generated/templates.js +2 -2
- package/dist/effect/generated/whats-app-flows.d.ts +151 -31
- package/dist/effect/generated/whats-app-flows.js +11 -11
- package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
- package/dist/effect/generated/whats-app-setup-links.js +5 -5
- package/dist/effect/generated/whats-app.d.ts +187 -65
- package/dist/effect/generated/whats-app.js +18 -24
- package/dist/effect/generated-metadata.d.ts +15 -3
- package/dist/effect/generated-metadata.js +375 -349
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +2 -1
- package/dist/effect/integrations-catalog.d.ts +92 -4
- package/dist/effect/integrations.d.ts +40 -8
- package/dist/effect/internal/client.js +25 -3
- package/dist/effect/internal/log-events.d.ts +19 -0
- package/dist/effect/internal/log-events.js +53 -0
- package/dist/effect/internal/mailbox-events.d.ts +6 -2
- package/dist/effect/internal/mailbox-events.js +4 -3
- package/dist/effect/journeys.d.ts +148 -148
- package/dist/effect/logs.d.ts +149 -0
- package/dist/effect/logs.js +18 -0
- package/dist/effect/mailboxes.d.ts +156 -150
- package/dist/effect/mailboxes.js +1 -1
- package/dist/effect/newsletter-domains.d.ts +2 -2
- package/dist/effect/whatsapp-setup-links.d.ts +2 -2
- package/dist/effect/whatsapp.d.ts +73 -3
- package/dist/mailbox-events.d.ts +50 -3
- package/dist/mailbox-events.js +38 -19
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +3 -1
- package/dist/promises/client.js +3 -1
- package/dist/promises/errors.gen.d.ts +2 -0
- package/dist/promises/errors.gen.js +137 -34
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-id.d.ts +3 -0
- package/dist/request-id.js +7 -0
- package/dist/service-map.d.ts +14 -3
- package/package.json +6 -2
|
@@ -538,6 +538,220 @@ export declare const JourneyUpdateTagsConfig: Schema.Struct<{
|
|
|
538
538
|
}>;
|
|
539
539
|
export type ShopifyShop = string;
|
|
540
540
|
export declare const ShopifyShop: Schema.String;
|
|
541
|
+
export type SubmissionClient = {
|
|
542
|
+
readonly surface: "typescript-promise" | "typescript-effect" | "cli" | "mcp";
|
|
543
|
+
readonly version: string;
|
|
544
|
+
};
|
|
545
|
+
export declare const SubmissionClient: Schema.Struct<{
|
|
546
|
+
readonly surface: Schema.Union<readonly [Schema.Literal<"typescript-promise">, Schema.Literal<"typescript-effect">, Schema.Literal<"cli">, Schema.Literal<"mcp">]>;
|
|
547
|
+
readonly version: Schema.String;
|
|
548
|
+
}>;
|
|
549
|
+
export type DeliveryErrorDetails = {
|
|
550
|
+
readonly code?: string | null;
|
|
551
|
+
readonly name?: string | null;
|
|
552
|
+
readonly message?: string | null;
|
|
553
|
+
readonly details?: {
|
|
554
|
+
readonly [x: string]: string | number | null;
|
|
555
|
+
} | null;
|
|
556
|
+
readonly retryable?: boolean | null;
|
|
557
|
+
};
|
|
558
|
+
export declare const DeliveryErrorDetails: Schema.Struct<{
|
|
559
|
+
readonly code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
560
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
561
|
+
readonly message: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
562
|
+
readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Null]>>, Schema.Null]>>;
|
|
563
|
+
readonly retryable: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
564
|
+
}>;
|
|
565
|
+
export type SmsMessageContent = {
|
|
566
|
+
readonly text: string;
|
|
567
|
+
readonly unicode?: boolean | null;
|
|
568
|
+
readonly parts?: number | null;
|
|
569
|
+
};
|
|
570
|
+
export declare const SmsMessageContent: Schema.Struct<{
|
|
571
|
+
readonly text: Schema.String;
|
|
572
|
+
readonly unicode: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
573
|
+
readonly parts: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
574
|
+
}>;
|
|
575
|
+
export type WhatsAppTextHeader = {
|
|
576
|
+
readonly type: "text";
|
|
577
|
+
readonly text: string;
|
|
578
|
+
};
|
|
579
|
+
export declare const WhatsAppTextHeader: Schema.Struct<{
|
|
580
|
+
readonly type: Schema.Literal<"text">;
|
|
581
|
+
readonly text: Schema.String;
|
|
582
|
+
}>;
|
|
583
|
+
export type WhatsAppImageHeaderLink = {
|
|
584
|
+
readonly type: "image";
|
|
585
|
+
readonly url: string;
|
|
586
|
+
};
|
|
587
|
+
export declare const WhatsAppImageHeaderLink: Schema.Struct<{
|
|
588
|
+
readonly type: Schema.Literal<"image">;
|
|
589
|
+
readonly url: Schema.String;
|
|
590
|
+
}>;
|
|
591
|
+
export type WhatsAppVideoHeaderLink = {
|
|
592
|
+
readonly type: "video";
|
|
593
|
+
readonly url: string;
|
|
594
|
+
};
|
|
595
|
+
export declare const WhatsAppVideoHeaderLink: Schema.Struct<{
|
|
596
|
+
readonly type: Schema.Literal<"video">;
|
|
597
|
+
readonly url: Schema.String;
|
|
598
|
+
}>;
|
|
599
|
+
export type WhatsAppDocumentHeaderLink = {
|
|
600
|
+
readonly type: "document";
|
|
601
|
+
readonly filename?: string;
|
|
602
|
+
readonly url: string;
|
|
603
|
+
};
|
|
604
|
+
export declare const WhatsAppDocumentHeaderLink: Schema.Struct<{
|
|
605
|
+
readonly type: Schema.Literal<"document">;
|
|
606
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
607
|
+
readonly url: Schema.String;
|
|
608
|
+
}>;
|
|
609
|
+
export type WhatsAppReplyButton = {
|
|
610
|
+
readonly id: string;
|
|
611
|
+
readonly title: string;
|
|
612
|
+
};
|
|
613
|
+
export declare const WhatsAppReplyButton: Schema.Struct<{
|
|
614
|
+
readonly id: Schema.String;
|
|
615
|
+
readonly title: Schema.String;
|
|
616
|
+
}>;
|
|
617
|
+
export type WhatsAppListRow = {
|
|
618
|
+
readonly id: string;
|
|
619
|
+
readonly title: string;
|
|
620
|
+
readonly description?: string;
|
|
621
|
+
};
|
|
622
|
+
export declare const WhatsAppListRow: Schema.Struct<{
|
|
623
|
+
readonly id: Schema.String;
|
|
624
|
+
readonly title: Schema.String;
|
|
625
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
626
|
+
}>;
|
|
627
|
+
export type WhatsAppFlowId = string & EffectBrand.Brand<"WhatsAppFlowId">;
|
|
628
|
+
export declare const WhatsAppFlowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
629
|
+
export type WhatsAppFlowVersionId = string & EffectBrand.Brand<"WhatsAppFlowVersionId">;
|
|
630
|
+
export declare const WhatsAppFlowVersionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
631
|
+
export type WhatsAppStoredLocation = {
|
|
632
|
+
readonly latitude: number;
|
|
633
|
+
readonly longitude: number;
|
|
634
|
+
readonly name?: string;
|
|
635
|
+
readonly address?: string;
|
|
636
|
+
readonly url?: string;
|
|
637
|
+
};
|
|
638
|
+
export declare const WhatsAppStoredLocation: Schema.Struct<{
|
|
639
|
+
readonly latitude: Schema.Finite;
|
|
640
|
+
readonly longitude: Schema.Finite;
|
|
641
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
642
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
643
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
644
|
+
}>;
|
|
645
|
+
export type WhatsAppStoredContactCard = {
|
|
646
|
+
readonly name?: {
|
|
647
|
+
readonly formattedName?: string;
|
|
648
|
+
readonly firstName?: string;
|
|
649
|
+
readonly lastName?: string;
|
|
650
|
+
readonly middleName?: string;
|
|
651
|
+
readonly prefix?: string;
|
|
652
|
+
readonly suffix?: string;
|
|
653
|
+
};
|
|
654
|
+
readonly phones?: ReadonlyArray<{
|
|
655
|
+
readonly phone?: string;
|
|
656
|
+
readonly type?: string;
|
|
657
|
+
readonly waId?: string;
|
|
658
|
+
}>;
|
|
659
|
+
readonly emails?: ReadonlyArray<{
|
|
660
|
+
readonly email?: string;
|
|
661
|
+
readonly type?: string;
|
|
662
|
+
}>;
|
|
663
|
+
readonly urls?: ReadonlyArray<{
|
|
664
|
+
readonly url?: string;
|
|
665
|
+
readonly type?: string;
|
|
666
|
+
}>;
|
|
667
|
+
readonly org?: {
|
|
668
|
+
readonly company?: string;
|
|
669
|
+
readonly department?: string;
|
|
670
|
+
readonly title?: string;
|
|
671
|
+
};
|
|
672
|
+
readonly addresses?: ReadonlyArray<{
|
|
673
|
+
readonly street?: string;
|
|
674
|
+
readonly city?: string;
|
|
675
|
+
readonly state?: string;
|
|
676
|
+
readonly zip?: string;
|
|
677
|
+
readonly country?: string;
|
|
678
|
+
readonly countryCode?: string;
|
|
679
|
+
readonly type?: string;
|
|
680
|
+
}>;
|
|
681
|
+
readonly birthday?: string;
|
|
682
|
+
};
|
|
683
|
+
export declare const WhatsAppStoredContactCard: Schema.Struct<{
|
|
684
|
+
readonly name: Schema.optionalKey<Schema.Struct<{
|
|
685
|
+
readonly formattedName: Schema.optionalKey<Schema.String>;
|
|
686
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
687
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
688
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
689
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
690
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
691
|
+
}>>;
|
|
692
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
693
|
+
readonly phone: Schema.optionalKey<Schema.String>;
|
|
694
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
695
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
696
|
+
}>>>;
|
|
697
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
698
|
+
readonly email: Schema.optionalKey<Schema.String>;
|
|
699
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
700
|
+
}>>>;
|
|
701
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
702
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
703
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
704
|
+
}>>>;
|
|
705
|
+
readonly org: Schema.optionalKey<Schema.Struct<{
|
|
706
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
707
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
708
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
709
|
+
}>>;
|
|
710
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
711
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
712
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
713
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
714
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
715
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
716
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
717
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
718
|
+
}>>>;
|
|
719
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
720
|
+
}>;
|
|
721
|
+
export type WhatsAppReceivedReply = {
|
|
722
|
+
readonly type: "button" | "list" | "template_button";
|
|
723
|
+
readonly id: string;
|
|
724
|
+
readonly title: string;
|
|
725
|
+
readonly description?: string;
|
|
726
|
+
};
|
|
727
|
+
export declare const WhatsAppReceivedReply: Schema.Struct<{
|
|
728
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"button">, Schema.Literal<"list">, Schema.Literal<"template_button">]>;
|
|
729
|
+
readonly id: Schema.String;
|
|
730
|
+
readonly title: Schema.String;
|
|
731
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
732
|
+
}>;
|
|
733
|
+
export type WhatsAppReceivedFlowResponse = {
|
|
734
|
+
readonly flowToken: string | null;
|
|
735
|
+
readonly response: {
|
|
736
|
+
readonly [x: string]: JsonValue;
|
|
737
|
+
};
|
|
738
|
+
readonly body?: string;
|
|
739
|
+
};
|
|
740
|
+
export declare const WhatsAppReceivedFlowResponse: Schema.Struct<{
|
|
741
|
+
readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
742
|
+
readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
743
|
+
readonly body: Schema.optionalKey<Schema.String>;
|
|
744
|
+
}>;
|
|
745
|
+
export type WhatsAppStructuredContent = {
|
|
746
|
+
readonly type: string;
|
|
747
|
+
readonly data: {
|
|
748
|
+
readonly [x: string]: JsonValue;
|
|
749
|
+
};
|
|
750
|
+
};
|
|
751
|
+
export declare const WhatsAppStructuredContent: Schema.Struct<{
|
|
752
|
+
readonly type: Schema.String;
|
|
753
|
+
readonly data: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
754
|
+
}>;
|
|
541
755
|
export type MailboxChannel = "sms" | "whatsapp" | "email";
|
|
542
756
|
export declare const MailboxChannel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
543
757
|
export type MailboxMetadata = {
|
|
@@ -712,60 +926,6 @@ export declare const WhatsAppStickerLink: Schema.Struct<{
|
|
|
712
926
|
readonly type: Schema.Literal<"sticker">;
|
|
713
927
|
readonly url: Schema.String;
|
|
714
928
|
}>;
|
|
715
|
-
export type WhatsAppTextHeader = {
|
|
716
|
-
readonly type: "text";
|
|
717
|
-
readonly text: string;
|
|
718
|
-
};
|
|
719
|
-
export declare const WhatsAppTextHeader: Schema.Struct<{
|
|
720
|
-
readonly type: Schema.Literal<"text">;
|
|
721
|
-
readonly text: Schema.String;
|
|
722
|
-
}>;
|
|
723
|
-
export type WhatsAppImageHeaderLink = {
|
|
724
|
-
readonly type: "image";
|
|
725
|
-
readonly url: string;
|
|
726
|
-
};
|
|
727
|
-
export declare const WhatsAppImageHeaderLink: Schema.Struct<{
|
|
728
|
-
readonly type: Schema.Literal<"image">;
|
|
729
|
-
readonly url: Schema.String;
|
|
730
|
-
}>;
|
|
731
|
-
export type WhatsAppVideoHeaderLink = {
|
|
732
|
-
readonly type: "video";
|
|
733
|
-
readonly url: string;
|
|
734
|
-
};
|
|
735
|
-
export declare const WhatsAppVideoHeaderLink: Schema.Struct<{
|
|
736
|
-
readonly type: Schema.Literal<"video">;
|
|
737
|
-
readonly url: Schema.String;
|
|
738
|
-
}>;
|
|
739
|
-
export type WhatsAppDocumentHeaderLink = {
|
|
740
|
-
readonly type: "document";
|
|
741
|
-
readonly filename?: string;
|
|
742
|
-
readonly url: string;
|
|
743
|
-
};
|
|
744
|
-
export declare const WhatsAppDocumentHeaderLink: Schema.Struct<{
|
|
745
|
-
readonly type: Schema.Literal<"document">;
|
|
746
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
747
|
-
readonly url: Schema.String;
|
|
748
|
-
}>;
|
|
749
|
-
export type WhatsAppReplyButton = {
|
|
750
|
-
readonly id: string;
|
|
751
|
-
readonly title: string;
|
|
752
|
-
};
|
|
753
|
-
export declare const WhatsAppReplyButton: Schema.Struct<{
|
|
754
|
-
readonly id: Schema.String;
|
|
755
|
-
readonly title: Schema.String;
|
|
756
|
-
}>;
|
|
757
|
-
export type WhatsAppListRow = {
|
|
758
|
-
readonly id: string;
|
|
759
|
-
readonly title: string;
|
|
760
|
-
readonly description?: string;
|
|
761
|
-
};
|
|
762
|
-
export declare const WhatsAppListRow: Schema.Struct<{
|
|
763
|
-
readonly id: Schema.String;
|
|
764
|
-
readonly title: Schema.String;
|
|
765
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
766
|
-
}>;
|
|
767
|
-
export type WhatsAppFlowId = string & EffectBrand.Brand<"WhatsAppFlowId">;
|
|
768
|
-
export declare const WhatsAppFlowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
769
929
|
export type WhatsAppLocation = {
|
|
770
930
|
readonly latitude: number;
|
|
771
931
|
readonly longitude: number;
|
|
@@ -854,8 +1014,6 @@ export declare const WhatsAppContactCard: Schema.Struct<{
|
|
|
854
1014
|
}>>>;
|
|
855
1015
|
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
856
1016
|
}>;
|
|
857
|
-
export type WhatsAppFlowVersionId = string & EffectBrand.Brand<"WhatsAppFlowVersionId">;
|
|
858
|
-
export declare const WhatsAppFlowVersionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
859
1017
|
export type MessageDeliveryId = string & EffectBrand.Brand<"MessageDeliveryId">;
|
|
860
1018
|
export declare const MessageDeliveryId: Schema.brand<Schema.String, "MessageDeliveryId">;
|
|
861
1019
|
export type IanaTimezone = string;
|
|
@@ -1691,6 +1849,24 @@ export declare const UpdateWebhookPayload: Schema.Struct<{
|
|
|
1691
1849
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1692
1850
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>, Schema.Null]>>;
|
|
1693
1851
|
}>;
|
|
1852
|
+
export type WhatsAppStoredReaction = {
|
|
1853
|
+
readonly messageId: MessageId | null;
|
|
1854
|
+
readonly providerMessageId: string;
|
|
1855
|
+
readonly emoji: string | null;
|
|
1856
|
+
};
|
|
1857
|
+
export declare const WhatsAppStoredReaction: Schema.Struct<{
|
|
1858
|
+
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
1859
|
+
readonly providerMessageId: Schema.String;
|
|
1860
|
+
readonly emoji: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1861
|
+
}>;
|
|
1862
|
+
export type WhatsAppMessageReference = {
|
|
1863
|
+
readonly messageId: MessageId | null;
|
|
1864
|
+
readonly providerMessageId: string;
|
|
1865
|
+
};
|
|
1866
|
+
export declare const WhatsAppMessageReference: Schema.Struct<{
|
|
1867
|
+
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
1868
|
+
readonly providerMessageId: Schema.String;
|
|
1869
|
+
}>;
|
|
1694
1870
|
export type CreateMailboxChatDraftPayload = {
|
|
1695
1871
|
readonly channel: "whatsapp" | "sms";
|
|
1696
1872
|
readonly to?: string | null;
|
|
@@ -1747,80 +1923,114 @@ export declare const EmailAttachment: Schema.Struct<{
|
|
|
1747
1923
|
readonly contentType: Schema.String;
|
|
1748
1924
|
readonly size: Schema.Finite;
|
|
1749
1925
|
}>;
|
|
1750
|
-
export type
|
|
1926
|
+
export type WhatsAppImageHeaderUpload = {
|
|
1751
1927
|
readonly type: "image";
|
|
1752
|
-
readonly caption?: string;
|
|
1753
1928
|
readonly mediaId: MediaId;
|
|
1754
1929
|
};
|
|
1755
|
-
export declare const
|
|
1930
|
+
export declare const WhatsAppImageHeaderUpload: Schema.Struct<{
|
|
1756
1931
|
readonly type: Schema.Literal<"image">;
|
|
1757
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1758
1932
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1759
1933
|
}>;
|
|
1760
|
-
export type
|
|
1934
|
+
export type WhatsAppVideoHeaderUpload = {
|
|
1761
1935
|
readonly type: "video";
|
|
1762
|
-
readonly caption?: string;
|
|
1763
1936
|
readonly mediaId: MediaId;
|
|
1764
1937
|
};
|
|
1765
|
-
export declare const
|
|
1938
|
+
export declare const WhatsAppVideoHeaderUpload: Schema.Struct<{
|
|
1766
1939
|
readonly type: Schema.Literal<"video">;
|
|
1767
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1768
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1769
|
-
}>;
|
|
1770
|
-
export type WhatsAppAudioUpload = {
|
|
1771
|
-
readonly type: "audio";
|
|
1772
|
-
readonly mediaId: MediaId;
|
|
1773
|
-
};
|
|
1774
|
-
export declare const WhatsAppAudioUpload: Schema.Struct<{
|
|
1775
|
-
readonly type: Schema.Literal<"audio">;
|
|
1776
1940
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1777
1941
|
}>;
|
|
1778
|
-
export type
|
|
1942
|
+
export type WhatsAppDocumentHeaderUpload = {
|
|
1779
1943
|
readonly type: "document";
|
|
1780
|
-
readonly caption?: string;
|
|
1781
1944
|
readonly filename?: string;
|
|
1782
1945
|
readonly mediaId: MediaId;
|
|
1783
1946
|
};
|
|
1784
|
-
export declare const
|
|
1947
|
+
export declare const WhatsAppDocumentHeaderUpload: Schema.Struct<{
|
|
1785
1948
|
readonly type: Schema.Literal<"document">;
|
|
1786
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1787
1949
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1788
1950
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1789
1951
|
}>;
|
|
1790
|
-
export type
|
|
1791
|
-
readonly type: "sticker";
|
|
1792
|
-
readonly
|
|
1952
|
+
export type WhatsAppStoredMedia = {
|
|
1953
|
+
readonly type: "image" | "video" | "audio" | "document" | "sticker";
|
|
1954
|
+
readonly url: string;
|
|
1955
|
+
readonly caption?: string;
|
|
1956
|
+
readonly filename?: string;
|
|
1957
|
+
} | {
|
|
1958
|
+
readonly type: "image" | "video" | "audio" | "document" | "sticker";
|
|
1959
|
+
readonly mediaId: MediaId;
|
|
1960
|
+
readonly caption?: string;
|
|
1961
|
+
readonly filename?: string;
|
|
1962
|
+
} | {
|
|
1963
|
+
readonly type: "image" | "video" | "audio" | "document" | "sticker";
|
|
1964
|
+
readonly providerMediaId: string;
|
|
1965
|
+
readonly mimeType?: string | null;
|
|
1966
|
+
readonly caption?: string | null;
|
|
1967
|
+
readonly filename?: string;
|
|
1793
1968
|
};
|
|
1794
|
-
export declare const
|
|
1795
|
-
readonly type: Schema.Literal<"sticker">;
|
|
1969
|
+
export declare const WhatsAppStoredMedia: Schema.Union<readonly [Schema.Struct<{
|
|
1970
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
1971
|
+
readonly url: Schema.String;
|
|
1972
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1973
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1974
|
+
}>, Schema.Struct<{
|
|
1975
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
1796
1976
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1797
|
-
|
|
1798
|
-
|
|
1977
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1978
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1979
|
+
}>, Schema.Struct<{
|
|
1980
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
1981
|
+
readonly providerMediaId: Schema.String;
|
|
1982
|
+
readonly mimeType: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1983
|
+
readonly caption: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1984
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1985
|
+
}>]>;
|
|
1986
|
+
export type WhatsAppImageUpload = {
|
|
1799
1987
|
readonly type: "image";
|
|
1988
|
+
readonly caption?: string;
|
|
1800
1989
|
readonly mediaId: MediaId;
|
|
1801
1990
|
};
|
|
1802
|
-
export declare const
|
|
1991
|
+
export declare const WhatsAppImageUpload: Schema.Struct<{
|
|
1803
1992
|
readonly type: Schema.Literal<"image">;
|
|
1993
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1804
1994
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1805
1995
|
}>;
|
|
1806
|
-
export type
|
|
1996
|
+
export type WhatsAppVideoUpload = {
|
|
1807
1997
|
readonly type: "video";
|
|
1998
|
+
readonly caption?: string;
|
|
1808
1999
|
readonly mediaId: MediaId;
|
|
1809
2000
|
};
|
|
1810
|
-
export declare const
|
|
2001
|
+
export declare const WhatsAppVideoUpload: Schema.Struct<{
|
|
1811
2002
|
readonly type: Schema.Literal<"video">;
|
|
2003
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1812
2004
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1813
2005
|
}>;
|
|
1814
|
-
export type
|
|
2006
|
+
export type WhatsAppAudioUpload = {
|
|
2007
|
+
readonly type: "audio";
|
|
2008
|
+
readonly mediaId: MediaId;
|
|
2009
|
+
};
|
|
2010
|
+
export declare const WhatsAppAudioUpload: Schema.Struct<{
|
|
2011
|
+
readonly type: Schema.Literal<"audio">;
|
|
2012
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2013
|
+
}>;
|
|
2014
|
+
export type WhatsAppDocumentUpload = {
|
|
1815
2015
|
readonly type: "document";
|
|
2016
|
+
readonly caption?: string;
|
|
1816
2017
|
readonly filename?: string;
|
|
1817
2018
|
readonly mediaId: MediaId;
|
|
1818
2019
|
};
|
|
1819
|
-
export declare const
|
|
2020
|
+
export declare const WhatsAppDocumentUpload: Schema.Struct<{
|
|
1820
2021
|
readonly type: Schema.Literal<"document">;
|
|
2022
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1821
2023
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1822
2024
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1823
2025
|
}>;
|
|
2026
|
+
export type WhatsAppStickerUpload = {
|
|
2027
|
+
readonly type: "sticker";
|
|
2028
|
+
readonly mediaId: MediaId;
|
|
2029
|
+
};
|
|
2030
|
+
export declare const WhatsAppStickerUpload: Schema.Struct<{
|
|
2031
|
+
readonly type: Schema.Literal<"sticker">;
|
|
2032
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2033
|
+
}>;
|
|
1824
2034
|
export type RespondToOnboardingInformationRequestInput = {
|
|
1825
2035
|
readonly expectedGeneration: number;
|
|
1826
2036
|
readonly responseText: string;
|
|
@@ -2265,6 +2475,80 @@ export declare const JourneyComparison: Schema.Union<readonly [Schema.Struct<{
|
|
|
2265
2475
|
}>, Schema.Struct<{
|
|
2266
2476
|
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
2267
2477
|
}>]>;
|
|
2478
|
+
export type WhatsAppListSection = {
|
|
2479
|
+
readonly title?: string;
|
|
2480
|
+
readonly rows: ReadonlyArray<WhatsAppListRow>;
|
|
2481
|
+
};
|
|
2482
|
+
export declare const WhatsAppListSection: Schema.Struct<{
|
|
2483
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
2484
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
2485
|
+
readonly id: Schema.String;
|
|
2486
|
+
readonly title: Schema.String;
|
|
2487
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
2488
|
+
}>>;
|
|
2489
|
+
}>;
|
|
2490
|
+
export type WhatsAppFlowMessage = {
|
|
2491
|
+
readonly type: "flow";
|
|
2492
|
+
readonly header?: WhatsAppTextHeader;
|
|
2493
|
+
readonly body: string;
|
|
2494
|
+
readonly footer?: string;
|
|
2495
|
+
readonly flowId: WhatsAppFlowId;
|
|
2496
|
+
readonly cta: string;
|
|
2497
|
+
readonly token?: string;
|
|
2498
|
+
readonly action?: "navigate" | "data_exchange";
|
|
2499
|
+
readonly screen?: string;
|
|
2500
|
+
readonly data?: {
|
|
2501
|
+
readonly [x: string]: JsonValue;
|
|
2502
|
+
};
|
|
2503
|
+
};
|
|
2504
|
+
export declare const WhatsAppFlowMessage: Schema.Struct<{
|
|
2505
|
+
readonly type: Schema.Literal<"flow">;
|
|
2506
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
2507
|
+
readonly type: Schema.Literal<"text">;
|
|
2508
|
+
readonly text: Schema.String;
|
|
2509
|
+
}>>;
|
|
2510
|
+
readonly body: Schema.String;
|
|
2511
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
2512
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
2513
|
+
readonly cta: Schema.String;
|
|
2514
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
2515
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
2516
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
2517
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2518
|
+
}>;
|
|
2519
|
+
export type WhatsAppStoredFlowMessage = {
|
|
2520
|
+
readonly type: "flow";
|
|
2521
|
+
readonly header?: WhatsAppTextHeader;
|
|
2522
|
+
readonly body: string;
|
|
2523
|
+
readonly footer?: string;
|
|
2524
|
+
readonly flowId: WhatsAppFlowId;
|
|
2525
|
+
readonly cta: string;
|
|
2526
|
+
readonly token?: string;
|
|
2527
|
+
readonly action?: "navigate" | "data_exchange";
|
|
2528
|
+
readonly screen?: string;
|
|
2529
|
+
readonly data?: {
|
|
2530
|
+
readonly [x: string]: JsonValue;
|
|
2531
|
+
};
|
|
2532
|
+
readonly flowVersionId: WhatsAppFlowVersionId;
|
|
2533
|
+
readonly providerFlowId: string;
|
|
2534
|
+
};
|
|
2535
|
+
export declare const WhatsAppStoredFlowMessage: Schema.Struct<{
|
|
2536
|
+
readonly type: Schema.Literal<"flow">;
|
|
2537
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
2538
|
+
readonly type: Schema.Literal<"text">;
|
|
2539
|
+
readonly text: Schema.String;
|
|
2540
|
+
}>>;
|
|
2541
|
+
readonly body: Schema.String;
|
|
2542
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
2543
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
2544
|
+
readonly cta: Schema.String;
|
|
2545
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
2546
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
2547
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
2548
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2549
|
+
readonly flowVersionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
2550
|
+
readonly providerFlowId: Schema.String;
|
|
2551
|
+
}>;
|
|
2268
2552
|
export type CreateMailboxEndpointPayload = {
|
|
2269
2553
|
readonly channel: MailboxChannel;
|
|
2270
2554
|
readonly address: string;
|
|
@@ -2479,47 +2763,6 @@ export declare const WhatsAppTemplateSlugContent: Schema.Struct<{
|
|
|
2479
2763
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2480
2764
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
2481
2765
|
}>;
|
|
2482
|
-
export type WhatsAppListSection = {
|
|
2483
|
-
readonly title?: string;
|
|
2484
|
-
readonly rows: ReadonlyArray<WhatsAppListRow>;
|
|
2485
|
-
};
|
|
2486
|
-
export declare const WhatsAppListSection: Schema.Struct<{
|
|
2487
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
2488
|
-
readonly rows: Schema.$Array<Schema.Struct<{
|
|
2489
|
-
readonly id: Schema.String;
|
|
2490
|
-
readonly title: Schema.String;
|
|
2491
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
2492
|
-
}>>;
|
|
2493
|
-
}>;
|
|
2494
|
-
export type WhatsAppFlowMessage = {
|
|
2495
|
-
readonly type: "flow";
|
|
2496
|
-
readonly header?: WhatsAppTextHeader;
|
|
2497
|
-
readonly body: string;
|
|
2498
|
-
readonly footer?: string;
|
|
2499
|
-
readonly flowId: WhatsAppFlowId;
|
|
2500
|
-
readonly cta: string;
|
|
2501
|
-
readonly token?: string;
|
|
2502
|
-
readonly action?: "navigate" | "data_exchange";
|
|
2503
|
-
readonly screen?: string;
|
|
2504
|
-
readonly data?: {
|
|
2505
|
-
readonly [x: string]: JsonValue;
|
|
2506
|
-
};
|
|
2507
|
-
};
|
|
2508
|
-
export declare const WhatsAppFlowMessage: Schema.Struct<{
|
|
2509
|
-
readonly type: Schema.Literal<"flow">;
|
|
2510
|
-
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
2511
|
-
readonly type: Schema.Literal<"text">;
|
|
2512
|
-
readonly text: Schema.String;
|
|
2513
|
-
}>>;
|
|
2514
|
-
readonly body: Schema.String;
|
|
2515
|
-
readonly footer: Schema.optionalKey<Schema.String>;
|
|
2516
|
-
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
2517
|
-
readonly cta: Schema.String;
|
|
2518
|
-
readonly token: Schema.optionalKey<Schema.String>;
|
|
2519
|
-
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
2520
|
-
readonly screen: Schema.optionalKey<Schema.String>;
|
|
2521
|
-
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2522
|
-
}>;
|
|
2523
2766
|
export type WhatsAppLocationContent = {
|
|
2524
2767
|
readonly location: WhatsAppLocation;
|
|
2525
2768
|
};
|
|
@@ -3128,6 +3371,32 @@ export declare const UpdateMailboxDraftPayload: Schema.Struct<{
|
|
|
3128
3371
|
readonly size: Schema.Finite;
|
|
3129
3372
|
}>>, Schema.Null]>>;
|
|
3130
3373
|
}>;
|
|
3374
|
+
export type WhatsAppImageHeader = WhatsAppImageHeaderLink | WhatsAppImageHeaderUpload;
|
|
3375
|
+
export declare const WhatsAppImageHeader: Schema.Union<readonly [Schema.Struct<{
|
|
3376
|
+
readonly type: Schema.Literal<"image">;
|
|
3377
|
+
readonly url: Schema.String;
|
|
3378
|
+
}>, Schema.Struct<{
|
|
3379
|
+
readonly type: Schema.Literal<"image">;
|
|
3380
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3381
|
+
}>]>;
|
|
3382
|
+
export type WhatsAppVideoHeader = WhatsAppVideoHeaderLink | WhatsAppVideoHeaderUpload;
|
|
3383
|
+
export declare const WhatsAppVideoHeader: Schema.Union<readonly [Schema.Struct<{
|
|
3384
|
+
readonly type: Schema.Literal<"video">;
|
|
3385
|
+
readonly url: Schema.String;
|
|
3386
|
+
}>, Schema.Struct<{
|
|
3387
|
+
readonly type: Schema.Literal<"video">;
|
|
3388
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3389
|
+
}>]>;
|
|
3390
|
+
export type WhatsAppDocumentHeader = WhatsAppDocumentHeaderLink | WhatsAppDocumentHeaderUpload;
|
|
3391
|
+
export declare const WhatsAppDocumentHeader: Schema.Union<readonly [Schema.Struct<{
|
|
3392
|
+
readonly type: Schema.Literal<"document">;
|
|
3393
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3394
|
+
readonly url: Schema.String;
|
|
3395
|
+
}>, Schema.Struct<{
|
|
3396
|
+
readonly type: Schema.Literal<"document">;
|
|
3397
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3398
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3399
|
+
}>]>;
|
|
3131
3400
|
export type WhatsAppImage = WhatsAppImageLink | WhatsAppImageUpload;
|
|
3132
3401
|
export declare const WhatsAppImage: Schema.Union<readonly [Schema.Struct<{
|
|
3133
3402
|
readonly type: Schema.Literal<"image">;
|
|
@@ -3176,32 +3445,6 @@ export declare const WhatsAppSticker: Schema.Union<readonly [Schema.Struct<{
|
|
|
3176
3445
|
readonly type: Schema.Literal<"sticker">;
|
|
3177
3446
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3178
3447
|
}>]>;
|
|
3179
|
-
export type WhatsAppImageHeader = WhatsAppImageHeaderLink | WhatsAppImageHeaderUpload;
|
|
3180
|
-
export declare const WhatsAppImageHeader: Schema.Union<readonly [Schema.Struct<{
|
|
3181
|
-
readonly type: Schema.Literal<"image">;
|
|
3182
|
-
readonly url: Schema.String;
|
|
3183
|
-
}>, Schema.Struct<{
|
|
3184
|
-
readonly type: Schema.Literal<"image">;
|
|
3185
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3186
|
-
}>]>;
|
|
3187
|
-
export type WhatsAppVideoHeader = WhatsAppVideoHeaderLink | WhatsAppVideoHeaderUpload;
|
|
3188
|
-
export declare const WhatsAppVideoHeader: Schema.Union<readonly [Schema.Struct<{
|
|
3189
|
-
readonly type: Schema.Literal<"video">;
|
|
3190
|
-
readonly url: Schema.String;
|
|
3191
|
-
}>, Schema.Struct<{
|
|
3192
|
-
readonly type: Schema.Literal<"video">;
|
|
3193
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3194
|
-
}>]>;
|
|
3195
|
-
export type WhatsAppDocumentHeader = WhatsAppDocumentHeaderLink | WhatsAppDocumentHeaderUpload;
|
|
3196
|
-
export declare const WhatsAppDocumentHeader: Schema.Union<readonly [Schema.Struct<{
|
|
3197
|
-
readonly type: Schema.Literal<"document">;
|
|
3198
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3199
|
-
readonly url: Schema.String;
|
|
3200
|
-
}>, Schema.Struct<{
|
|
3201
|
-
readonly type: Schema.Literal<"document">;
|
|
3202
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3203
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3204
|
-
}>]>;
|
|
3205
3448
|
export type WhatsAppTemplateBindings = {
|
|
3206
3449
|
readonly [x: string]: WhatsAppTemplateBinding;
|
|
3207
3450
|
};
|
|
@@ -3405,6 +3648,32 @@ export declare const JourneyCustomFieldPredicate: Schema.Struct<{
|
|
|
3405
3648
|
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
3406
3649
|
}>]>;
|
|
3407
3650
|
}>;
|
|
3651
|
+
export type WhatsAppListMessage = {
|
|
3652
|
+
readonly type: "list";
|
|
3653
|
+
readonly header?: WhatsAppTextHeader;
|
|
3654
|
+
readonly body: string;
|
|
3655
|
+
readonly footer?: string;
|
|
3656
|
+
readonly button: string;
|
|
3657
|
+
readonly sections: ReadonlyArray<WhatsAppListSection>;
|
|
3658
|
+
};
|
|
3659
|
+
export declare const WhatsAppListMessage: Schema.Struct<{
|
|
3660
|
+
readonly type: Schema.Literal<"list">;
|
|
3661
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
3662
|
+
readonly type: Schema.Literal<"text">;
|
|
3663
|
+
readonly text: Schema.String;
|
|
3664
|
+
}>>;
|
|
3665
|
+
readonly body: Schema.String;
|
|
3666
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
3667
|
+
readonly button: Schema.String;
|
|
3668
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
3669
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
3670
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
3671
|
+
readonly id: Schema.String;
|
|
3672
|
+
readonly title: Schema.String;
|
|
3673
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
3674
|
+
}>>;
|
|
3675
|
+
}>>;
|
|
3676
|
+
}>;
|
|
3408
3677
|
export type CreateMailboxPayload = {
|
|
3409
3678
|
readonly namespaceId?: NamespaceId | null;
|
|
3410
3679
|
readonly endpoint: CreateMailboxEndpointPayload;
|
|
@@ -3530,38 +3799,12 @@ export declare const MailboxSendReceipt: Schema.Struct<{
|
|
|
3530
3799
|
readonly createdAt: Schema.String;
|
|
3531
3800
|
readonly updatedAt: Schema.String;
|
|
3532
3801
|
}>;
|
|
3533
|
-
export type
|
|
3534
|
-
readonly
|
|
3535
|
-
readonly
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
readonly sections: ReadonlyArray<WhatsAppListSection>;
|
|
3540
|
-
};
|
|
3541
|
-
export declare const WhatsAppListMessage: Schema.Struct<{
|
|
3542
|
-
readonly type: Schema.Literal<"list">;
|
|
3543
|
-
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
3544
|
-
readonly type: Schema.Literal<"text">;
|
|
3545
|
-
readonly text: Schema.String;
|
|
3546
|
-
}>>;
|
|
3547
|
-
readonly body: Schema.String;
|
|
3548
|
-
readonly footer: Schema.optionalKey<Schema.String>;
|
|
3549
|
-
readonly button: Schema.String;
|
|
3550
|
-
readonly sections: Schema.$Array<Schema.Struct<{
|
|
3551
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
3552
|
-
readonly rows: Schema.$Array<Schema.Struct<{
|
|
3553
|
-
readonly id: Schema.String;
|
|
3554
|
-
readonly title: Schema.String;
|
|
3555
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
3556
|
-
}>>;
|
|
3557
|
-
}>>;
|
|
3558
|
-
}>;
|
|
3559
|
-
export type OperationAccepted = {
|
|
3560
|
-
readonly operation: Operation;
|
|
3561
|
-
readonly links: {
|
|
3562
|
-
readonly self: string;
|
|
3563
|
-
readonly resource: OperationResourceLink;
|
|
3564
|
-
};
|
|
3802
|
+
export type OperationAccepted = {
|
|
3803
|
+
readonly operation: Operation;
|
|
3804
|
+
readonly links: {
|
|
3805
|
+
readonly self: string;
|
|
3806
|
+
readonly resource: OperationResourceLink;
|
|
3807
|
+
};
|
|
3565
3808
|
};
|
|
3566
3809
|
export declare const OperationAccepted: Schema.Struct<{
|
|
3567
3810
|
readonly operation: Schema.Struct<{
|
|
@@ -3950,70 +4193,70 @@ export declare const ReplyMailboxMessagePayload: Schema.Union<readonly [Schema.S
|
|
|
3950
4193
|
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3951
4194
|
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3952
4195
|
}>]>;
|
|
3953
|
-
export type
|
|
3954
|
-
export declare const
|
|
4196
|
+
export type WhatsAppInteractiveHeader = WhatsAppTextHeader | WhatsAppImageHeader | WhatsAppVideoHeader | WhatsAppDocumentHeader;
|
|
4197
|
+
export declare const WhatsAppInteractiveHeader: Schema.Union<readonly [Schema.Struct<{
|
|
4198
|
+
readonly type: Schema.Literal<"text">;
|
|
4199
|
+
readonly text: Schema.String;
|
|
4200
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
3955
4201
|
readonly type: Schema.Literal<"image">;
|
|
3956
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3957
4202
|
readonly url: Schema.String;
|
|
3958
4203
|
}>, Schema.Struct<{
|
|
3959
4204
|
readonly type: Schema.Literal<"image">;
|
|
3960
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3961
4205
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3962
4206
|
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3963
4207
|
readonly type: Schema.Literal<"video">;
|
|
3964
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3965
4208
|
readonly url: Schema.String;
|
|
3966
4209
|
}>, Schema.Struct<{
|
|
3967
4210
|
readonly type: Schema.Literal<"video">;
|
|
3968
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3969
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3970
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3971
|
-
readonly type: Schema.Literal<"audio">;
|
|
3972
|
-
readonly url: Schema.String;
|
|
3973
|
-
}>, Schema.Struct<{
|
|
3974
|
-
readonly type: Schema.Literal<"audio">;
|
|
3975
4211
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3976
4212
|
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3977
4213
|
readonly type: Schema.Literal<"document">;
|
|
3978
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3979
4214
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3980
4215
|
readonly url: Schema.String;
|
|
3981
4216
|
}>, Schema.Struct<{
|
|
3982
4217
|
readonly type: Schema.Literal<"document">;
|
|
3983
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3984
4218
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3985
4219
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3986
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3987
|
-
readonly type: Schema.Literal<"sticker">;
|
|
3988
|
-
readonly url: Schema.String;
|
|
3989
|
-
}>, Schema.Struct<{
|
|
3990
|
-
readonly type: Schema.Literal<"sticker">;
|
|
3991
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3992
4220
|
}>]>]>;
|
|
3993
|
-
export type
|
|
3994
|
-
export declare const
|
|
3995
|
-
readonly type: Schema.Literal<"text">;
|
|
3996
|
-
readonly text: Schema.String;
|
|
3997
|
-
}>, Schema.Union<readonly [Schema.Struct<{
|
|
4221
|
+
export type WhatsAppOutboundMedia = WhatsAppImage | WhatsAppVideo | WhatsAppAudio | WhatsAppDocument | WhatsAppSticker;
|
|
4222
|
+
export declare const WhatsAppOutboundMedia: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
3998
4223
|
readonly type: Schema.Literal<"image">;
|
|
4224
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3999
4225
|
readonly url: Schema.String;
|
|
4000
4226
|
}>, Schema.Struct<{
|
|
4001
4227
|
readonly type: Schema.Literal<"image">;
|
|
4228
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4002
4229
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4003
4230
|
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4004
4231
|
readonly type: Schema.Literal<"video">;
|
|
4232
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4005
4233
|
readonly url: Schema.String;
|
|
4006
4234
|
}>, Schema.Struct<{
|
|
4007
4235
|
readonly type: Schema.Literal<"video">;
|
|
4236
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4237
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4238
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4239
|
+
readonly type: Schema.Literal<"audio">;
|
|
4240
|
+
readonly url: Schema.String;
|
|
4241
|
+
}>, Schema.Struct<{
|
|
4242
|
+
readonly type: Schema.Literal<"audio">;
|
|
4008
4243
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4009
4244
|
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4010
4245
|
readonly type: Schema.Literal<"document">;
|
|
4246
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4011
4247
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4012
4248
|
readonly url: Schema.String;
|
|
4013
4249
|
}>, Schema.Struct<{
|
|
4014
4250
|
readonly type: Schema.Literal<"document">;
|
|
4251
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4015
4252
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4016
4253
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4254
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4255
|
+
readonly type: Schema.Literal<"sticker">;
|
|
4256
|
+
readonly url: Schema.String;
|
|
4257
|
+
}>, Schema.Struct<{
|
|
4258
|
+
readonly type: Schema.Literal<"sticker">;
|
|
4259
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4017
4260
|
}>]>]>;
|
|
4018
4261
|
export type WhatsAppTemplateDispatch = {
|
|
4019
4262
|
readonly template: TemplateId | string;
|
|
@@ -4555,50 +4798,6 @@ export declare const EmailSendMessagePayload: Schema.Struct<{
|
|
|
4555
4798
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
4556
4799
|
}>;
|
|
4557
4800
|
}>;
|
|
4558
|
-
export type WhatsAppMediaContent = {
|
|
4559
|
-
readonly media: WhatsAppOutboundMedia;
|
|
4560
|
-
};
|
|
4561
|
-
export declare const WhatsAppMediaContent: Schema.Struct<{
|
|
4562
|
-
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4563
|
-
readonly type: Schema.Literal<"image">;
|
|
4564
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4565
|
-
readonly url: Schema.String;
|
|
4566
|
-
}>, Schema.Struct<{
|
|
4567
|
-
readonly type: Schema.Literal<"image">;
|
|
4568
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4569
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4570
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4571
|
-
readonly type: Schema.Literal<"video">;
|
|
4572
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4573
|
-
readonly url: Schema.String;
|
|
4574
|
-
}>, Schema.Struct<{
|
|
4575
|
-
readonly type: Schema.Literal<"video">;
|
|
4576
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4577
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4578
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4579
|
-
readonly type: Schema.Literal<"audio">;
|
|
4580
|
-
readonly url: Schema.String;
|
|
4581
|
-
}>, Schema.Struct<{
|
|
4582
|
-
readonly type: Schema.Literal<"audio">;
|
|
4583
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4584
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4585
|
-
readonly type: Schema.Literal<"document">;
|
|
4586
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4587
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4588
|
-
readonly url: Schema.String;
|
|
4589
|
-
}>, Schema.Struct<{
|
|
4590
|
-
readonly type: Schema.Literal<"document">;
|
|
4591
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4592
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4593
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4594
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4595
|
-
readonly type: Schema.Literal<"sticker">;
|
|
4596
|
-
readonly url: Schema.String;
|
|
4597
|
-
}>, Schema.Struct<{
|
|
4598
|
-
readonly type: Schema.Literal<"sticker">;
|
|
4599
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4600
|
-
}>]>]>;
|
|
4601
|
-
}>;
|
|
4602
4801
|
export type WhatsAppButtonsMessage = {
|
|
4603
4802
|
readonly type: "buttons";
|
|
4604
4803
|
readonly header?: WhatsAppInteractiveHeader;
|
|
@@ -4678,6 +4877,50 @@ export declare const WhatsAppCtaUrlMessage: Schema.Struct<{
|
|
|
4678
4877
|
readonly displayText: Schema.String;
|
|
4679
4878
|
readonly url: Schema.String;
|
|
4680
4879
|
}>;
|
|
4880
|
+
export type WhatsAppMediaContent = {
|
|
4881
|
+
readonly media: WhatsAppOutboundMedia;
|
|
4882
|
+
};
|
|
4883
|
+
export declare const WhatsAppMediaContent: Schema.Struct<{
|
|
4884
|
+
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4885
|
+
readonly type: Schema.Literal<"image">;
|
|
4886
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4887
|
+
readonly url: Schema.String;
|
|
4888
|
+
}>, Schema.Struct<{
|
|
4889
|
+
readonly type: Schema.Literal<"image">;
|
|
4890
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4891
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4892
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4893
|
+
readonly type: Schema.Literal<"video">;
|
|
4894
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4895
|
+
readonly url: Schema.String;
|
|
4896
|
+
}>, Schema.Struct<{
|
|
4897
|
+
readonly type: Schema.Literal<"video">;
|
|
4898
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4899
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4900
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4901
|
+
readonly type: Schema.Literal<"audio">;
|
|
4902
|
+
readonly url: Schema.String;
|
|
4903
|
+
}>, Schema.Struct<{
|
|
4904
|
+
readonly type: Schema.Literal<"audio">;
|
|
4905
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4906
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4907
|
+
readonly type: Schema.Literal<"document">;
|
|
4908
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4909
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4910
|
+
readonly url: Schema.String;
|
|
4911
|
+
}>, Schema.Struct<{
|
|
4912
|
+
readonly type: Schema.Literal<"document">;
|
|
4913
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4914
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4915
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4916
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4917
|
+
readonly type: Schema.Literal<"sticker">;
|
|
4918
|
+
readonly url: Schema.String;
|
|
4919
|
+
}>, Schema.Struct<{
|
|
4920
|
+
readonly type: Schema.Literal<"sticker">;
|
|
4921
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4922
|
+
}>]>]>;
|
|
4923
|
+
}>;
|
|
4681
4924
|
export type WhatsAppCampaignContentInput = {
|
|
4682
4925
|
readonly channel: "whatsapp";
|
|
4683
4926
|
readonly whatsapp: WhatsAppTemplateDispatch;
|
|
@@ -5020,6 +5263,103 @@ export declare const AgentModuleManifest: Schema.Struct<{
|
|
|
5020
5263
|
readonly events: Schema.$Array<Schema.String>;
|
|
5021
5264
|
readonly schedules: Schema.$Array<Schema.String>;
|
|
5022
5265
|
}>;
|
|
5266
|
+
export type WhatsAppStoredInteractive = WhatsAppButtonsMessage | WhatsAppListMessage | WhatsAppCtaUrlMessage | WhatsAppStoredFlowMessage;
|
|
5267
|
+
export declare const WhatsAppStoredInteractive: Schema.Union<readonly [Schema.Struct<{
|
|
5268
|
+
readonly type: Schema.Literal<"buttons">;
|
|
5269
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5270
|
+
readonly type: Schema.Literal<"text">;
|
|
5271
|
+
readonly text: Schema.String;
|
|
5272
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
5273
|
+
readonly type: Schema.Literal<"image">;
|
|
5274
|
+
readonly url: Schema.String;
|
|
5275
|
+
}>, Schema.Struct<{
|
|
5276
|
+
readonly type: Schema.Literal<"image">;
|
|
5277
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5278
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5279
|
+
readonly type: Schema.Literal<"video">;
|
|
5280
|
+
readonly url: Schema.String;
|
|
5281
|
+
}>, Schema.Struct<{
|
|
5282
|
+
readonly type: Schema.Literal<"video">;
|
|
5283
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5284
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5285
|
+
readonly type: Schema.Literal<"document">;
|
|
5286
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5287
|
+
readonly url: Schema.String;
|
|
5288
|
+
}>, Schema.Struct<{
|
|
5289
|
+
readonly type: Schema.Literal<"document">;
|
|
5290
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5291
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5292
|
+
}>]>]>>;
|
|
5293
|
+
readonly body: Schema.String;
|
|
5294
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5295
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
5296
|
+
readonly id: Schema.String;
|
|
5297
|
+
readonly title: Schema.String;
|
|
5298
|
+
}>>;
|
|
5299
|
+
}>, Schema.Struct<{
|
|
5300
|
+
readonly type: Schema.Literal<"list">;
|
|
5301
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
5302
|
+
readonly type: Schema.Literal<"text">;
|
|
5303
|
+
readonly text: Schema.String;
|
|
5304
|
+
}>>;
|
|
5305
|
+
readonly body: Schema.String;
|
|
5306
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5307
|
+
readonly button: Schema.String;
|
|
5308
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
5309
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5310
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
5311
|
+
readonly id: Schema.String;
|
|
5312
|
+
readonly title: Schema.String;
|
|
5313
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
5314
|
+
}>>;
|
|
5315
|
+
}>>;
|
|
5316
|
+
}>, Schema.Struct<{
|
|
5317
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
5318
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5319
|
+
readonly type: Schema.Literal<"text">;
|
|
5320
|
+
readonly text: Schema.String;
|
|
5321
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
5322
|
+
readonly type: Schema.Literal<"image">;
|
|
5323
|
+
readonly url: Schema.String;
|
|
5324
|
+
}>, Schema.Struct<{
|
|
5325
|
+
readonly type: Schema.Literal<"image">;
|
|
5326
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5327
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5328
|
+
readonly type: Schema.Literal<"video">;
|
|
5329
|
+
readonly url: Schema.String;
|
|
5330
|
+
}>, Schema.Struct<{
|
|
5331
|
+
readonly type: Schema.Literal<"video">;
|
|
5332
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5333
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5334
|
+
readonly type: Schema.Literal<"document">;
|
|
5335
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5336
|
+
readonly url: Schema.String;
|
|
5337
|
+
}>, Schema.Struct<{
|
|
5338
|
+
readonly type: Schema.Literal<"document">;
|
|
5339
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5340
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5341
|
+
}>]>]>>;
|
|
5342
|
+
readonly body: Schema.String;
|
|
5343
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5344
|
+
readonly displayText: Schema.String;
|
|
5345
|
+
readonly url: Schema.String;
|
|
5346
|
+
}>, Schema.Struct<{
|
|
5347
|
+
readonly type: Schema.Literal<"flow">;
|
|
5348
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
5349
|
+
readonly type: Schema.Literal<"text">;
|
|
5350
|
+
readonly text: Schema.String;
|
|
5351
|
+
}>>;
|
|
5352
|
+
readonly body: Schema.String;
|
|
5353
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5354
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
5355
|
+
readonly cta: Schema.String;
|
|
5356
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
5357
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
5358
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
5359
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5360
|
+
readonly flowVersionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
5361
|
+
readonly providerFlowId: Schema.String;
|
|
5362
|
+
}>]>;
|
|
5023
5363
|
export type WhatsAppInteractive = WhatsAppButtonsMessage | WhatsAppListMessage | WhatsAppCtaUrlMessage | WhatsAppFlowMessage;
|
|
5024
5364
|
export declare const WhatsAppInteractive: Schema.Union<readonly [Schema.Struct<{
|
|
5025
5365
|
readonly type: Schema.Literal<"buttons">;
|
|
@@ -5649,7 +5989,269 @@ export declare const AgentModuleBundle: Schema.Struct<{
|
|
|
5649
5989
|
readonly schedules: Schema.$Array<Schema.String>;
|
|
5650
5990
|
}>;
|
|
5651
5991
|
}>;
|
|
5652
|
-
export type
|
|
5992
|
+
export type WhatsAppMessageContent = {
|
|
5993
|
+
readonly text?: string | null;
|
|
5994
|
+
readonly template?: {
|
|
5995
|
+
readonly name: string;
|
|
5996
|
+
readonly language: string;
|
|
5997
|
+
readonly components: ReadonlyArray<{
|
|
5998
|
+
readonly type: "header" | "body" | "footer" | "button";
|
|
5999
|
+
readonly sub_type?: "url" | "quick_reply" | "copy_code" | "flow" | null;
|
|
6000
|
+
readonly index?: string | null;
|
|
6001
|
+
readonly parameters: ReadonlyArray<{
|
|
6002
|
+
readonly type: "text" | "currency" | "date_time" | "image" | "document" | "video" | "coupon_code" | "action";
|
|
6003
|
+
readonly text?: string | null;
|
|
6004
|
+
readonly currency?: {
|
|
6005
|
+
readonly fallback_value: string;
|
|
6006
|
+
readonly code: string;
|
|
6007
|
+
readonly amount_1000: number;
|
|
6008
|
+
} | null;
|
|
6009
|
+
readonly date_time?: {
|
|
6010
|
+
readonly fallback_value: string;
|
|
6011
|
+
} | null;
|
|
6012
|
+
readonly image?: {
|
|
6013
|
+
readonly link: string;
|
|
6014
|
+
} | null;
|
|
6015
|
+
readonly document?: {
|
|
6016
|
+
readonly link: string;
|
|
6017
|
+
readonly filename?: string | null;
|
|
6018
|
+
} | null;
|
|
6019
|
+
readonly video?: {
|
|
6020
|
+
readonly link: string;
|
|
6021
|
+
} | null;
|
|
6022
|
+
readonly coupon_code?: string | null;
|
|
6023
|
+
readonly action?: {
|
|
6024
|
+
readonly flow_token: string;
|
|
6025
|
+
} | null;
|
|
6026
|
+
}>;
|
|
6027
|
+
}>;
|
|
6028
|
+
} | null;
|
|
6029
|
+
readonly interactive?: WhatsAppStoredInteractive;
|
|
6030
|
+
readonly media?: WhatsAppStoredMedia | null;
|
|
6031
|
+
readonly reaction?: WhatsAppStoredReaction;
|
|
6032
|
+
readonly location?: WhatsAppStoredLocation;
|
|
6033
|
+
readonly contacts?: ReadonlyArray<WhatsAppStoredContactCard>;
|
|
6034
|
+
readonly reply?: WhatsAppReceivedReply;
|
|
6035
|
+
readonly flowResponse?: WhatsAppReceivedFlowResponse;
|
|
6036
|
+
readonly context?: WhatsAppMessageReference;
|
|
6037
|
+
};
|
|
6038
|
+
export declare const WhatsAppMessageContent: Schema.Struct<{
|
|
6039
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6040
|
+
readonly template: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6041
|
+
readonly name: Schema.String;
|
|
6042
|
+
readonly language: Schema.String;
|
|
6043
|
+
readonly components: Schema.$Array<Schema.Struct<{
|
|
6044
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"header">, Schema.Literal<"body">, Schema.Literal<"footer">, Schema.Literal<"button">]>;
|
|
6045
|
+
readonly sub_type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"url">, Schema.Literal<"quick_reply">, Schema.Literal<"copy_code">, Schema.Literal<"flow">]>, Schema.Null]>>;
|
|
6046
|
+
readonly index: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6047
|
+
readonly parameters: Schema.$Array<Schema.Struct<{
|
|
6048
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"text">, Schema.Literal<"currency">, Schema.Literal<"date_time">, Schema.Literal<"image">, Schema.Literal<"document">, Schema.Literal<"video">, Schema.Literal<"coupon_code">, Schema.Literal<"action">]>;
|
|
6049
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6050
|
+
readonly currency: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6051
|
+
readonly fallback_value: Schema.String;
|
|
6052
|
+
readonly code: Schema.String;
|
|
6053
|
+
readonly amount_1000: Schema.Finite;
|
|
6054
|
+
}>, Schema.Null]>>;
|
|
6055
|
+
readonly date_time: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6056
|
+
readonly fallback_value: Schema.String;
|
|
6057
|
+
}>, Schema.Null]>>;
|
|
6058
|
+
readonly image: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6059
|
+
readonly link: Schema.String;
|
|
6060
|
+
}>, Schema.Null]>>;
|
|
6061
|
+
readonly document: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6062
|
+
readonly link: Schema.String;
|
|
6063
|
+
readonly filename: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6064
|
+
}>, Schema.Null]>>;
|
|
6065
|
+
readonly video: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6066
|
+
readonly link: Schema.String;
|
|
6067
|
+
}>, Schema.Null]>>;
|
|
6068
|
+
readonly coupon_code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6069
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6070
|
+
readonly flow_token: Schema.String;
|
|
6071
|
+
}>, Schema.Null]>>;
|
|
6072
|
+
}>>;
|
|
6073
|
+
}>>;
|
|
6074
|
+
}>, Schema.Null]>>;
|
|
6075
|
+
readonly interactive: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6076
|
+
readonly type: Schema.Literal<"buttons">;
|
|
6077
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6078
|
+
readonly type: Schema.Literal<"text">;
|
|
6079
|
+
readonly text: Schema.String;
|
|
6080
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
6081
|
+
readonly type: Schema.Literal<"image">;
|
|
6082
|
+
readonly url: Schema.String;
|
|
6083
|
+
}>, Schema.Struct<{
|
|
6084
|
+
readonly type: Schema.Literal<"image">;
|
|
6085
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6086
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6087
|
+
readonly type: Schema.Literal<"video">;
|
|
6088
|
+
readonly url: Schema.String;
|
|
6089
|
+
}>, Schema.Struct<{
|
|
6090
|
+
readonly type: Schema.Literal<"video">;
|
|
6091
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6092
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6093
|
+
readonly type: Schema.Literal<"document">;
|
|
6094
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6095
|
+
readonly url: Schema.String;
|
|
6096
|
+
}>, Schema.Struct<{
|
|
6097
|
+
readonly type: Schema.Literal<"document">;
|
|
6098
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6099
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6100
|
+
}>]>]>>;
|
|
6101
|
+
readonly body: Schema.String;
|
|
6102
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6103
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
6104
|
+
readonly id: Schema.String;
|
|
6105
|
+
readonly title: Schema.String;
|
|
6106
|
+
}>>;
|
|
6107
|
+
}>, Schema.Struct<{
|
|
6108
|
+
readonly type: Schema.Literal<"list">;
|
|
6109
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
6110
|
+
readonly type: Schema.Literal<"text">;
|
|
6111
|
+
readonly text: Schema.String;
|
|
6112
|
+
}>>;
|
|
6113
|
+
readonly body: Schema.String;
|
|
6114
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6115
|
+
readonly button: Schema.String;
|
|
6116
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
6117
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
6118
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
6119
|
+
readonly id: Schema.String;
|
|
6120
|
+
readonly title: Schema.String;
|
|
6121
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
6122
|
+
}>>;
|
|
6123
|
+
}>>;
|
|
6124
|
+
}>, Schema.Struct<{
|
|
6125
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
6126
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6127
|
+
readonly type: Schema.Literal<"text">;
|
|
6128
|
+
readonly text: Schema.String;
|
|
6129
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
6130
|
+
readonly type: Schema.Literal<"image">;
|
|
6131
|
+
readonly url: Schema.String;
|
|
6132
|
+
}>, Schema.Struct<{
|
|
6133
|
+
readonly type: Schema.Literal<"image">;
|
|
6134
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6135
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6136
|
+
readonly type: Schema.Literal<"video">;
|
|
6137
|
+
readonly url: Schema.String;
|
|
6138
|
+
}>, Schema.Struct<{
|
|
6139
|
+
readonly type: Schema.Literal<"video">;
|
|
6140
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6141
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6142
|
+
readonly type: Schema.Literal<"document">;
|
|
6143
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6144
|
+
readonly url: Schema.String;
|
|
6145
|
+
}>, Schema.Struct<{
|
|
6146
|
+
readonly type: Schema.Literal<"document">;
|
|
6147
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6148
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6149
|
+
}>]>]>>;
|
|
6150
|
+
readonly body: Schema.String;
|
|
6151
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6152
|
+
readonly displayText: Schema.String;
|
|
6153
|
+
readonly url: Schema.String;
|
|
6154
|
+
}>, Schema.Struct<{
|
|
6155
|
+
readonly type: Schema.Literal<"flow">;
|
|
6156
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
6157
|
+
readonly type: Schema.Literal<"text">;
|
|
6158
|
+
readonly text: Schema.String;
|
|
6159
|
+
}>>;
|
|
6160
|
+
readonly body: Schema.String;
|
|
6161
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6162
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
6163
|
+
readonly cta: Schema.String;
|
|
6164
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
6165
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
6166
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
6167
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6168
|
+
readonly flowVersionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
6169
|
+
readonly providerFlowId: Schema.String;
|
|
6170
|
+
}>]>>;
|
|
6171
|
+
readonly media: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6172
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
6173
|
+
readonly url: Schema.String;
|
|
6174
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
6175
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6176
|
+
}>, Schema.Struct<{
|
|
6177
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
6178
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6179
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
6180
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6181
|
+
}>, Schema.Struct<{
|
|
6182
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
6183
|
+
readonly providerMediaId: Schema.String;
|
|
6184
|
+
readonly mimeType: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6185
|
+
readonly caption: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6186
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6187
|
+
}>]>, Schema.Null]>>;
|
|
6188
|
+
readonly reaction: Schema.optionalKey<Schema.Struct<{
|
|
6189
|
+
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
6190
|
+
readonly providerMessageId: Schema.String;
|
|
6191
|
+
readonly emoji: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6192
|
+
}>>;
|
|
6193
|
+
readonly location: Schema.optionalKey<Schema.Struct<{
|
|
6194
|
+
readonly latitude: Schema.Finite;
|
|
6195
|
+
readonly longitude: Schema.Finite;
|
|
6196
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
6197
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
6198
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
6199
|
+
}>>;
|
|
6200
|
+
readonly contacts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6201
|
+
readonly name: Schema.optionalKey<Schema.Struct<{
|
|
6202
|
+
readonly formattedName: Schema.optionalKey<Schema.String>;
|
|
6203
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
6204
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
6205
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
6206
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
6207
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
6208
|
+
}>>;
|
|
6209
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6210
|
+
readonly phone: Schema.optionalKey<Schema.String>;
|
|
6211
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6212
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
6213
|
+
}>>>;
|
|
6214
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6215
|
+
readonly email: Schema.optionalKey<Schema.String>;
|
|
6216
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6217
|
+
}>>>;
|
|
6218
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6219
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
6220
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6221
|
+
}>>>;
|
|
6222
|
+
readonly org: Schema.optionalKey<Schema.Struct<{
|
|
6223
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
6224
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
6225
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
6226
|
+
}>>;
|
|
6227
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6228
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
6229
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
6230
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
6231
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
6232
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
6233
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
6234
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6235
|
+
}>>>;
|
|
6236
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
6237
|
+
}>>>;
|
|
6238
|
+
readonly reply: Schema.optionalKey<Schema.Struct<{
|
|
6239
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"button">, Schema.Literal<"list">, Schema.Literal<"template_button">]>;
|
|
6240
|
+
readonly id: Schema.String;
|
|
6241
|
+
readonly title: Schema.String;
|
|
6242
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
6243
|
+
}>>;
|
|
6244
|
+
readonly flowResponse: Schema.optionalKey<Schema.Struct<{
|
|
6245
|
+
readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6246
|
+
readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
6247
|
+
readonly body: Schema.optionalKey<Schema.String>;
|
|
6248
|
+
}>>;
|
|
6249
|
+
readonly context: Schema.optionalKey<Schema.Struct<{
|
|
6250
|
+
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
6251
|
+
readonly providerMessageId: Schema.String;
|
|
6252
|
+
}>>;
|
|
6253
|
+
}>;
|
|
6254
|
+
export type WhatsAppInteractiveContent = {
|
|
5653
6255
|
readonly interactive: WhatsAppInteractive;
|
|
5654
6256
|
};
|
|
5655
6257
|
export declare const WhatsAppInteractiveContent: Schema.Struct<{
|
|
@@ -6027,6 +6629,285 @@ export declare const PublishAgentVersionPayload: Schema.Struct<{
|
|
|
6027
6629
|
}>;
|
|
6028
6630
|
}>;
|
|
6029
6631
|
}>;
|
|
6632
|
+
export type MessageContent = {
|
|
6633
|
+
readonly text?: string | null;
|
|
6634
|
+
readonly html?: string | null;
|
|
6635
|
+
readonly markdown?: string | null;
|
|
6636
|
+
readonly sms?: SmsMessageContent | null;
|
|
6637
|
+
readonly whatsapp?: WhatsAppMessageContent | null;
|
|
6638
|
+
readonly email?: {
|
|
6639
|
+
readonly subject?: string | null;
|
|
6640
|
+
readonly html?: string | null;
|
|
6641
|
+
readonly text?: string | null;
|
|
6642
|
+
readonly headers?: {
|
|
6643
|
+
readonly [x: string]: string;
|
|
6644
|
+
} | null;
|
|
6645
|
+
readonly tracking?: EmailTrackingOverrideV1;
|
|
6646
|
+
readonly attachments?: ReadonlyArray<{
|
|
6647
|
+
readonly filename: string;
|
|
6648
|
+
readonly contentId?: string | null;
|
|
6649
|
+
readonly isInline?: boolean | null;
|
|
6650
|
+
readonly content?: string | null;
|
|
6651
|
+
readonly mediaId?: MediaId | null;
|
|
6652
|
+
readonly contentType: string;
|
|
6653
|
+
readonly size: number;
|
|
6654
|
+
}> | null;
|
|
6655
|
+
} | null;
|
|
6656
|
+
readonly structured?: WhatsAppStructuredContent | null;
|
|
6657
|
+
readonly metadata?: {
|
|
6658
|
+
readonly [x: string]: JsonValue;
|
|
6659
|
+
} | null;
|
|
6660
|
+
};
|
|
6661
|
+
export declare const MessageContent: Schema.Struct<{
|
|
6662
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6663
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6664
|
+
readonly markdown: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6665
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6666
|
+
readonly text: Schema.String;
|
|
6667
|
+
readonly unicode: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
6668
|
+
readonly parts: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
6669
|
+
}>, Schema.Null]>>;
|
|
6670
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6671
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6672
|
+
readonly template: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6673
|
+
readonly name: Schema.String;
|
|
6674
|
+
readonly language: Schema.String;
|
|
6675
|
+
readonly components: Schema.$Array<Schema.Struct<{
|
|
6676
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"header">, Schema.Literal<"body">, Schema.Literal<"footer">, Schema.Literal<"button">]>;
|
|
6677
|
+
readonly sub_type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"url">, Schema.Literal<"quick_reply">, Schema.Literal<"copy_code">, Schema.Literal<"flow">]>, Schema.Null]>>;
|
|
6678
|
+
readonly index: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6679
|
+
readonly parameters: Schema.$Array<Schema.Struct<{
|
|
6680
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"text">, Schema.Literal<"currency">, Schema.Literal<"date_time">, Schema.Literal<"image">, Schema.Literal<"document">, Schema.Literal<"video">, Schema.Literal<"coupon_code">, Schema.Literal<"action">]>;
|
|
6681
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6682
|
+
readonly currency: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6683
|
+
readonly fallback_value: Schema.String;
|
|
6684
|
+
readonly code: Schema.String;
|
|
6685
|
+
readonly amount_1000: Schema.Finite;
|
|
6686
|
+
}>, Schema.Null]>>;
|
|
6687
|
+
readonly date_time: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6688
|
+
readonly fallback_value: Schema.String;
|
|
6689
|
+
}>, Schema.Null]>>;
|
|
6690
|
+
readonly image: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6691
|
+
readonly link: Schema.String;
|
|
6692
|
+
}>, Schema.Null]>>;
|
|
6693
|
+
readonly document: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6694
|
+
readonly link: Schema.String;
|
|
6695
|
+
readonly filename: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6696
|
+
}>, Schema.Null]>>;
|
|
6697
|
+
readonly video: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6698
|
+
readonly link: Schema.String;
|
|
6699
|
+
}>, Schema.Null]>>;
|
|
6700
|
+
readonly coupon_code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6701
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6702
|
+
readonly flow_token: Schema.String;
|
|
6703
|
+
}>, Schema.Null]>>;
|
|
6704
|
+
}>>;
|
|
6705
|
+
}>>;
|
|
6706
|
+
}>, Schema.Null]>>;
|
|
6707
|
+
readonly interactive: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6708
|
+
readonly type: Schema.Literal<"buttons">;
|
|
6709
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6710
|
+
readonly type: Schema.Literal<"text">;
|
|
6711
|
+
readonly text: Schema.String;
|
|
6712
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
6713
|
+
readonly type: Schema.Literal<"image">;
|
|
6714
|
+
readonly url: Schema.String;
|
|
6715
|
+
}>, Schema.Struct<{
|
|
6716
|
+
readonly type: Schema.Literal<"image">;
|
|
6717
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6718
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6719
|
+
readonly type: Schema.Literal<"video">;
|
|
6720
|
+
readonly url: Schema.String;
|
|
6721
|
+
}>, Schema.Struct<{
|
|
6722
|
+
readonly type: Schema.Literal<"video">;
|
|
6723
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6724
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6725
|
+
readonly type: Schema.Literal<"document">;
|
|
6726
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6727
|
+
readonly url: Schema.String;
|
|
6728
|
+
}>, Schema.Struct<{
|
|
6729
|
+
readonly type: Schema.Literal<"document">;
|
|
6730
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6731
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6732
|
+
}>]>]>>;
|
|
6733
|
+
readonly body: Schema.String;
|
|
6734
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6735
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
6736
|
+
readonly id: Schema.String;
|
|
6737
|
+
readonly title: Schema.String;
|
|
6738
|
+
}>>;
|
|
6739
|
+
}>, Schema.Struct<{
|
|
6740
|
+
readonly type: Schema.Literal<"list">;
|
|
6741
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
6742
|
+
readonly type: Schema.Literal<"text">;
|
|
6743
|
+
readonly text: Schema.String;
|
|
6744
|
+
}>>;
|
|
6745
|
+
readonly body: Schema.String;
|
|
6746
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6747
|
+
readonly button: Schema.String;
|
|
6748
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
6749
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
6750
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
6751
|
+
readonly id: Schema.String;
|
|
6752
|
+
readonly title: Schema.String;
|
|
6753
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
6754
|
+
}>>;
|
|
6755
|
+
}>>;
|
|
6756
|
+
}>, Schema.Struct<{
|
|
6757
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
6758
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6759
|
+
readonly type: Schema.Literal<"text">;
|
|
6760
|
+
readonly text: Schema.String;
|
|
6761
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
6762
|
+
readonly type: Schema.Literal<"image">;
|
|
6763
|
+
readonly url: Schema.String;
|
|
6764
|
+
}>, Schema.Struct<{
|
|
6765
|
+
readonly type: Schema.Literal<"image">;
|
|
6766
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6767
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6768
|
+
readonly type: Schema.Literal<"video">;
|
|
6769
|
+
readonly url: Schema.String;
|
|
6770
|
+
}>, Schema.Struct<{
|
|
6771
|
+
readonly type: Schema.Literal<"video">;
|
|
6772
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6773
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6774
|
+
readonly type: Schema.Literal<"document">;
|
|
6775
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6776
|
+
readonly url: Schema.String;
|
|
6777
|
+
}>, Schema.Struct<{
|
|
6778
|
+
readonly type: Schema.Literal<"document">;
|
|
6779
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6780
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6781
|
+
}>]>]>>;
|
|
6782
|
+
readonly body: Schema.String;
|
|
6783
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6784
|
+
readonly displayText: Schema.String;
|
|
6785
|
+
readonly url: Schema.String;
|
|
6786
|
+
}>, Schema.Struct<{
|
|
6787
|
+
readonly type: Schema.Literal<"flow">;
|
|
6788
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
6789
|
+
readonly type: Schema.Literal<"text">;
|
|
6790
|
+
readonly text: Schema.String;
|
|
6791
|
+
}>>;
|
|
6792
|
+
readonly body: Schema.String;
|
|
6793
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6794
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
6795
|
+
readonly cta: Schema.String;
|
|
6796
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
6797
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
6798
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
6799
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6800
|
+
readonly flowVersionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
6801
|
+
readonly providerFlowId: Schema.String;
|
|
6802
|
+
}>]>>;
|
|
6803
|
+
readonly media: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6804
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
6805
|
+
readonly url: Schema.String;
|
|
6806
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
6807
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6808
|
+
}>, Schema.Struct<{
|
|
6809
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
6810
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6811
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
6812
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6813
|
+
}>, Schema.Struct<{
|
|
6814
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
6815
|
+
readonly providerMediaId: Schema.String;
|
|
6816
|
+
readonly mimeType: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6817
|
+
readonly caption: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6818
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6819
|
+
}>]>, Schema.Null]>>;
|
|
6820
|
+
readonly reaction: Schema.optionalKey<Schema.Struct<{
|
|
6821
|
+
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
6822
|
+
readonly providerMessageId: Schema.String;
|
|
6823
|
+
readonly emoji: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6824
|
+
}>>;
|
|
6825
|
+
readonly location: Schema.optionalKey<Schema.Struct<{
|
|
6826
|
+
readonly latitude: Schema.Finite;
|
|
6827
|
+
readonly longitude: Schema.Finite;
|
|
6828
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
6829
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
6830
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
6831
|
+
}>>;
|
|
6832
|
+
readonly contacts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6833
|
+
readonly name: Schema.optionalKey<Schema.Struct<{
|
|
6834
|
+
readonly formattedName: Schema.optionalKey<Schema.String>;
|
|
6835
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
6836
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
6837
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
6838
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
6839
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
6840
|
+
}>>;
|
|
6841
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6842
|
+
readonly phone: Schema.optionalKey<Schema.String>;
|
|
6843
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6844
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
6845
|
+
}>>>;
|
|
6846
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6847
|
+
readonly email: Schema.optionalKey<Schema.String>;
|
|
6848
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6849
|
+
}>>>;
|
|
6850
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6851
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
6852
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6853
|
+
}>>>;
|
|
6854
|
+
readonly org: Schema.optionalKey<Schema.Struct<{
|
|
6855
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
6856
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
6857
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
6858
|
+
}>>;
|
|
6859
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6860
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
6861
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
6862
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
6863
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
6864
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
6865
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
6866
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6867
|
+
}>>>;
|
|
6868
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
6869
|
+
}>>>;
|
|
6870
|
+
readonly reply: Schema.optionalKey<Schema.Struct<{
|
|
6871
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"button">, Schema.Literal<"list">, Schema.Literal<"template_button">]>;
|
|
6872
|
+
readonly id: Schema.String;
|
|
6873
|
+
readonly title: Schema.String;
|
|
6874
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
6875
|
+
}>>;
|
|
6876
|
+
readonly flowResponse: Schema.optionalKey<Schema.Struct<{
|
|
6877
|
+
readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6878
|
+
readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
6879
|
+
readonly body: Schema.optionalKey<Schema.String>;
|
|
6880
|
+
}>>;
|
|
6881
|
+
readonly context: Schema.optionalKey<Schema.Struct<{
|
|
6882
|
+
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
6883
|
+
readonly providerMessageId: Schema.String;
|
|
6884
|
+
}>>;
|
|
6885
|
+
}>, Schema.Null]>>;
|
|
6886
|
+
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6887
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6888
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6889
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6890
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
6891
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
6892
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
6893
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
6894
|
+
}>>;
|
|
6895
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
6896
|
+
readonly filename: Schema.String;
|
|
6897
|
+
readonly contentId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6898
|
+
readonly isInline: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
6899
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6900
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
6901
|
+
readonly contentType: Schema.String;
|
|
6902
|
+
readonly size: Schema.Finite;
|
|
6903
|
+
}>>, Schema.Null]>>;
|
|
6904
|
+
}>, Schema.Null]>>;
|
|
6905
|
+
readonly structured: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6906
|
+
readonly type: Schema.String;
|
|
6907
|
+
readonly data: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
6908
|
+
}>, Schema.Null]>>;
|
|
6909
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
6910
|
+
}>;
|
|
6030
6911
|
export type WhatsAppContent = WhatsAppTextContent | WhatsAppTemplateIdContent | WhatsAppTemplateSlugContent | WhatsAppMediaContent | WhatsAppInteractiveContent | WhatsAppReactionContent | WhatsAppLocationContent | WhatsAppContactsContent;
|
|
6031
6912
|
export declare const WhatsAppContent: Schema.Union<readonly [Schema.Struct<{
|
|
6032
6913
|
readonly text: Schema.String;
|