samva 0.50.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 +49 -5
- package/README.md +137 -7
- package/dist/client/sdk.gen.d.ts +78 -38
- package/dist/client/sdk.gen.js +1554 -967
- package/dist/client/types.gen.d.ts +541 -291
- package/dist/effect/agents.d.ts +4 -4
- package/dist/effect/api-keys.d.ts +4 -6
- package/dist/effect/campaigns.d.ts +222 -230
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +6 -4
- package/dist/effect/contact-groups.d.ts +4 -4
- package/dist/effect/contacts.d.ts +8 -8
- package/dist/effect/conversations.d.ts +4 -4
- 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/email.d.ts +17 -16
- package/dist/effect/errors.d.ts +1 -0
- package/dist/effect/errors.js +2 -1
- package/dist/effect/generated/agents.js +4 -4
- package/dist/effect/generated/api-keys.d.ts +0 -15
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +18 -68
- package/dist/effect/generated/campaigns.js +5 -15
- package/dist/effect/generated/email.d.ts +10 -3
- package/dist/effect/generated/email.js +6 -5
- 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 +25 -25
- package/dist/effect/generated/messages.d.ts +1 -882
- package/dist/effect/generated/messages.js +4 -243
- package/dist/effect/generated/namespaces.js +1 -1
- 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/policies.js +2 -2
- package/dist/effect/generated/scheduled-messages.d.ts +0 -26
- package/dist/effect/generated/scheduled-messages.js +2 -4
- package/dist/effect/generated/shared.d.ts +1139 -257
- package/dist/effect/generated/shared.js +323 -83
- 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 +3 -1
- package/dist/effect/integrations-catalog.d.ts +92 -4
- package/dist/effect/integrations.d.ts +42 -10
- package/dist/effect/internal/client.d.ts +19 -2
- package/dist/effect/internal/client.js +35 -5
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/email-sender.js +5 -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/internal/operation.d.ts +11 -0
- package/dist/effect/internal/operation.js +10 -6
- package/dist/effect/internal/send.d.ts +4 -0
- package/dist/effect/internal/send.js +11 -8
- package/dist/effect/internal/timeout.d.ts +16 -0
- package/dist/effect/internal/timeout.js +20 -0
- package/dist/effect/journeys.d.ts +4 -4
- package/dist/effect/logs.d.ts +149 -0
- package/dist/effect/logs.js +18 -0
- package/dist/effect/mailboxes.d.ts +184 -178
- package/dist/effect/mailboxes.js +1 -1
- package/dist/effect/messages.d.ts +5 -5
- package/dist/effect/namespaces.d.ts +4 -4
- package/dist/effect/newsletter-domains.d.ts +2 -2
- package/dist/effect/operations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +2 -6
- package/dist/effect/templates.d.ts +6 -6
- package/dist/effect/topics.d.ts +4 -4
- package/dist/effect/webhooks.d.ts +4 -4
- package/dist/effect/whatsapp-setup-links.d.ts +2 -2
- package/dist/effect/whatsapp.d.ts +73 -3
- package/dist/index.js +2 -2
- 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 +8 -1
- package/dist/promises/client.js +15 -9
- package/dist/promises/errors.gen.d.ts +14 -1
- package/dist/promises/errors.gen.js +158 -36
- package/dist/promises/index.js +2 -2
- package/dist/promises/request.d.ts +31 -2
- package/dist/promises/request.js +42 -7
- 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/request-policy.d.ts +9 -0
- package/dist/request-policy.js +16 -1
- package/dist/service-map.d.ts +14 -3
- package/package.json +6 -2
|
@@ -360,6 +360,7 @@ declare const FromAddressRequiredError_base: Schema.Class<FromAddressRequiredErr
|
|
|
360
360
|
readonly _tag: Schema.tag<"FromAddressRequiredError">;
|
|
361
361
|
readonly message: Schema.String;
|
|
362
362
|
readonly verifiedDomains: Schema.$Array<Schema.String>;
|
|
363
|
+
readonly addresses: Schema.$Array<Schema.String>;
|
|
363
364
|
}>, import("effect/Cause").YieldableError>;
|
|
364
365
|
export declare class FromAddressRequiredError extends FromAddressRequiredError_base {
|
|
365
366
|
}
|
|
@@ -537,6 +538,220 @@ export declare const JourneyUpdateTagsConfig: Schema.Struct<{
|
|
|
537
538
|
}>;
|
|
538
539
|
export type ShopifyShop = string;
|
|
539
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
|
+
}>;
|
|
540
755
|
export type MailboxChannel = "sms" | "whatsapp" | "email";
|
|
541
756
|
export declare const MailboxChannel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
542
757
|
export type MailboxMetadata = {
|
|
@@ -711,60 +926,6 @@ export declare const WhatsAppStickerLink: Schema.Struct<{
|
|
|
711
926
|
readonly type: Schema.Literal<"sticker">;
|
|
712
927
|
readonly url: Schema.String;
|
|
713
928
|
}>;
|
|
714
|
-
export type WhatsAppTextHeader = {
|
|
715
|
-
readonly type: "text";
|
|
716
|
-
readonly text: string;
|
|
717
|
-
};
|
|
718
|
-
export declare const WhatsAppTextHeader: Schema.Struct<{
|
|
719
|
-
readonly type: Schema.Literal<"text">;
|
|
720
|
-
readonly text: Schema.String;
|
|
721
|
-
}>;
|
|
722
|
-
export type WhatsAppImageHeaderLink = {
|
|
723
|
-
readonly type: "image";
|
|
724
|
-
readonly url: string;
|
|
725
|
-
};
|
|
726
|
-
export declare const WhatsAppImageHeaderLink: Schema.Struct<{
|
|
727
|
-
readonly type: Schema.Literal<"image">;
|
|
728
|
-
readonly url: Schema.String;
|
|
729
|
-
}>;
|
|
730
|
-
export type WhatsAppVideoHeaderLink = {
|
|
731
|
-
readonly type: "video";
|
|
732
|
-
readonly url: string;
|
|
733
|
-
};
|
|
734
|
-
export declare const WhatsAppVideoHeaderLink: Schema.Struct<{
|
|
735
|
-
readonly type: Schema.Literal<"video">;
|
|
736
|
-
readonly url: Schema.String;
|
|
737
|
-
}>;
|
|
738
|
-
export type WhatsAppDocumentHeaderLink = {
|
|
739
|
-
readonly type: "document";
|
|
740
|
-
readonly filename?: string;
|
|
741
|
-
readonly url: string;
|
|
742
|
-
};
|
|
743
|
-
export declare const WhatsAppDocumentHeaderLink: Schema.Struct<{
|
|
744
|
-
readonly type: Schema.Literal<"document">;
|
|
745
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
746
|
-
readonly url: Schema.String;
|
|
747
|
-
}>;
|
|
748
|
-
export type WhatsAppReplyButton = {
|
|
749
|
-
readonly id: string;
|
|
750
|
-
readonly title: string;
|
|
751
|
-
};
|
|
752
|
-
export declare const WhatsAppReplyButton: Schema.Struct<{
|
|
753
|
-
readonly id: Schema.String;
|
|
754
|
-
readonly title: Schema.String;
|
|
755
|
-
}>;
|
|
756
|
-
export type WhatsAppListRow = {
|
|
757
|
-
readonly id: string;
|
|
758
|
-
readonly title: string;
|
|
759
|
-
readonly description?: string;
|
|
760
|
-
};
|
|
761
|
-
export declare const WhatsAppListRow: Schema.Struct<{
|
|
762
|
-
readonly id: Schema.String;
|
|
763
|
-
readonly title: Schema.String;
|
|
764
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
765
|
-
}>;
|
|
766
|
-
export type WhatsAppFlowId = string & EffectBrand.Brand<"WhatsAppFlowId">;
|
|
767
|
-
export declare const WhatsAppFlowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
768
929
|
export type WhatsAppLocation = {
|
|
769
930
|
readonly latitude: number;
|
|
770
931
|
readonly longitude: number;
|
|
@@ -853,8 +1014,6 @@ export declare const WhatsAppContactCard: Schema.Struct<{
|
|
|
853
1014
|
}>>>;
|
|
854
1015
|
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
855
1016
|
}>;
|
|
856
|
-
export type WhatsAppFlowVersionId = string & EffectBrand.Brand<"WhatsAppFlowVersionId">;
|
|
857
|
-
export declare const WhatsAppFlowVersionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
858
1017
|
export type MessageDeliveryId = string & EffectBrand.Brand<"MessageDeliveryId">;
|
|
859
1018
|
export declare const MessageDeliveryId: Schema.brand<Schema.String, "MessageDeliveryId">;
|
|
860
1019
|
export type IanaTimezone = string;
|
|
@@ -1690,6 +1849,24 @@ export declare const UpdateWebhookPayload: Schema.Struct<{
|
|
|
1690
1849
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1691
1850
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>, Schema.Null]>>;
|
|
1692
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
|
+
}>;
|
|
1693
1870
|
export type CreateMailboxChatDraftPayload = {
|
|
1694
1871
|
readonly channel: "whatsapp" | "sms";
|
|
1695
1872
|
readonly to?: string | null;
|
|
@@ -1746,80 +1923,114 @@ export declare const EmailAttachment: Schema.Struct<{
|
|
|
1746
1923
|
readonly contentType: Schema.String;
|
|
1747
1924
|
readonly size: Schema.Finite;
|
|
1748
1925
|
}>;
|
|
1749
|
-
export type
|
|
1926
|
+
export type WhatsAppImageHeaderUpload = {
|
|
1750
1927
|
readonly type: "image";
|
|
1751
|
-
readonly caption?: string;
|
|
1752
1928
|
readonly mediaId: MediaId;
|
|
1753
1929
|
};
|
|
1754
|
-
export declare const
|
|
1930
|
+
export declare const WhatsAppImageHeaderUpload: Schema.Struct<{
|
|
1755
1931
|
readonly type: Schema.Literal<"image">;
|
|
1756
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1757
1932
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1758
1933
|
}>;
|
|
1759
|
-
export type
|
|
1934
|
+
export type WhatsAppVideoHeaderUpload = {
|
|
1760
1935
|
readonly type: "video";
|
|
1761
|
-
readonly caption?: string;
|
|
1762
1936
|
readonly mediaId: MediaId;
|
|
1763
1937
|
};
|
|
1764
|
-
export declare const
|
|
1938
|
+
export declare const WhatsAppVideoHeaderUpload: Schema.Struct<{
|
|
1765
1939
|
readonly type: Schema.Literal<"video">;
|
|
1766
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1767
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1768
|
-
}>;
|
|
1769
|
-
export type WhatsAppAudioUpload = {
|
|
1770
|
-
readonly type: "audio";
|
|
1771
|
-
readonly mediaId: MediaId;
|
|
1772
|
-
};
|
|
1773
|
-
export declare const WhatsAppAudioUpload: Schema.Struct<{
|
|
1774
|
-
readonly type: Schema.Literal<"audio">;
|
|
1775
1940
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1776
1941
|
}>;
|
|
1777
|
-
export type
|
|
1942
|
+
export type WhatsAppDocumentHeaderUpload = {
|
|
1778
1943
|
readonly type: "document";
|
|
1779
|
-
readonly caption?: string;
|
|
1780
1944
|
readonly filename?: string;
|
|
1781
1945
|
readonly mediaId: MediaId;
|
|
1782
1946
|
};
|
|
1783
|
-
export declare const
|
|
1947
|
+
export declare const WhatsAppDocumentHeaderUpload: Schema.Struct<{
|
|
1784
1948
|
readonly type: Schema.Literal<"document">;
|
|
1785
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1786
1949
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1787
1950
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1788
1951
|
}>;
|
|
1789
|
-
export type
|
|
1790
|
-
readonly type: "sticker";
|
|
1791
|
-
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;
|
|
1792
1968
|
};
|
|
1793
|
-
export declare const
|
|
1794
|
-
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">]>;
|
|
1795
1976
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1796
|
-
|
|
1797
|
-
|
|
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 = {
|
|
1798
1987
|
readonly type: "image";
|
|
1988
|
+
readonly caption?: string;
|
|
1799
1989
|
readonly mediaId: MediaId;
|
|
1800
1990
|
};
|
|
1801
|
-
export declare const
|
|
1991
|
+
export declare const WhatsAppImageUpload: Schema.Struct<{
|
|
1802
1992
|
readonly type: Schema.Literal<"image">;
|
|
1993
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1803
1994
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1804
1995
|
}>;
|
|
1805
|
-
export type
|
|
1996
|
+
export type WhatsAppVideoUpload = {
|
|
1806
1997
|
readonly type: "video";
|
|
1998
|
+
readonly caption?: string;
|
|
1807
1999
|
readonly mediaId: MediaId;
|
|
1808
2000
|
};
|
|
1809
|
-
export declare const
|
|
2001
|
+
export declare const WhatsAppVideoUpload: Schema.Struct<{
|
|
1810
2002
|
readonly type: Schema.Literal<"video">;
|
|
2003
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1811
2004
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1812
2005
|
}>;
|
|
1813
|
-
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 = {
|
|
1814
2015
|
readonly type: "document";
|
|
2016
|
+
readonly caption?: string;
|
|
1815
2017
|
readonly filename?: string;
|
|
1816
2018
|
readonly mediaId: MediaId;
|
|
1817
2019
|
};
|
|
1818
|
-
export declare const
|
|
2020
|
+
export declare const WhatsAppDocumentUpload: Schema.Struct<{
|
|
1819
2021
|
readonly type: Schema.Literal<"document">;
|
|
2022
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1820
2023
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1821
2024
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1822
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
|
+
}>;
|
|
1823
2034
|
export type RespondToOnboardingInformationRequestInput = {
|
|
1824
2035
|
readonly expectedGeneration: number;
|
|
1825
2036
|
readonly responseText: string;
|
|
@@ -2264,6 +2475,80 @@ export declare const JourneyComparison: Schema.Union<readonly [Schema.Struct<{
|
|
|
2264
2475
|
}>, Schema.Struct<{
|
|
2265
2476
|
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
2266
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
|
+
}>;
|
|
2267
2552
|
export type CreateMailboxEndpointPayload = {
|
|
2268
2553
|
readonly channel: MailboxChannel;
|
|
2269
2554
|
readonly address: string;
|
|
@@ -2478,47 +2763,6 @@ export declare const WhatsAppTemplateSlugContent: Schema.Struct<{
|
|
|
2478
2763
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2479
2764
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
2480
2765
|
}>;
|
|
2481
|
-
export type WhatsAppListSection = {
|
|
2482
|
-
readonly title?: string;
|
|
2483
|
-
readonly rows: ReadonlyArray<WhatsAppListRow>;
|
|
2484
|
-
};
|
|
2485
|
-
export declare const WhatsAppListSection: Schema.Struct<{
|
|
2486
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
2487
|
-
readonly rows: Schema.$Array<Schema.Struct<{
|
|
2488
|
-
readonly id: Schema.String;
|
|
2489
|
-
readonly title: Schema.String;
|
|
2490
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
2491
|
-
}>>;
|
|
2492
|
-
}>;
|
|
2493
|
-
export type WhatsAppFlowMessage = {
|
|
2494
|
-
readonly type: "flow";
|
|
2495
|
-
readonly header?: WhatsAppTextHeader;
|
|
2496
|
-
readonly body: string;
|
|
2497
|
-
readonly footer?: string;
|
|
2498
|
-
readonly flowId: WhatsAppFlowId;
|
|
2499
|
-
readonly cta: string;
|
|
2500
|
-
readonly token?: string;
|
|
2501
|
-
readonly action?: "navigate" | "data_exchange";
|
|
2502
|
-
readonly screen?: string;
|
|
2503
|
-
readonly data?: {
|
|
2504
|
-
readonly [x: string]: JsonValue;
|
|
2505
|
-
};
|
|
2506
|
-
};
|
|
2507
|
-
export declare const WhatsAppFlowMessage: Schema.Struct<{
|
|
2508
|
-
readonly type: Schema.Literal<"flow">;
|
|
2509
|
-
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
2510
|
-
readonly type: Schema.Literal<"text">;
|
|
2511
|
-
readonly text: Schema.String;
|
|
2512
|
-
}>>;
|
|
2513
|
-
readonly body: Schema.String;
|
|
2514
|
-
readonly footer: Schema.optionalKey<Schema.String>;
|
|
2515
|
-
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
2516
|
-
readonly cta: Schema.String;
|
|
2517
|
-
readonly token: Schema.optionalKey<Schema.String>;
|
|
2518
|
-
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
2519
|
-
readonly screen: Schema.optionalKey<Schema.String>;
|
|
2520
|
-
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2521
|
-
}>;
|
|
2522
2766
|
export type WhatsAppLocationContent = {
|
|
2523
2767
|
readonly location: WhatsAppLocation;
|
|
2524
2768
|
};
|
|
@@ -3127,6 +3371,32 @@ export declare const UpdateMailboxDraftPayload: Schema.Struct<{
|
|
|
3127
3371
|
readonly size: Schema.Finite;
|
|
3128
3372
|
}>>, Schema.Null]>>;
|
|
3129
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
|
+
}>]>;
|
|
3130
3400
|
export type WhatsAppImage = WhatsAppImageLink | WhatsAppImageUpload;
|
|
3131
3401
|
export declare const WhatsAppImage: Schema.Union<readonly [Schema.Struct<{
|
|
3132
3402
|
readonly type: Schema.Literal<"image">;
|
|
@@ -3175,32 +3445,6 @@ export declare const WhatsAppSticker: Schema.Union<readonly [Schema.Struct<{
|
|
|
3175
3445
|
readonly type: Schema.Literal<"sticker">;
|
|
3176
3446
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3177
3447
|
}>]>;
|
|
3178
|
-
export type WhatsAppImageHeader = WhatsAppImageHeaderLink | WhatsAppImageHeaderUpload;
|
|
3179
|
-
export declare const WhatsAppImageHeader: Schema.Union<readonly [Schema.Struct<{
|
|
3180
|
-
readonly type: Schema.Literal<"image">;
|
|
3181
|
-
readonly url: Schema.String;
|
|
3182
|
-
}>, Schema.Struct<{
|
|
3183
|
-
readonly type: Schema.Literal<"image">;
|
|
3184
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3185
|
-
}>]>;
|
|
3186
|
-
export type WhatsAppVideoHeader = WhatsAppVideoHeaderLink | WhatsAppVideoHeaderUpload;
|
|
3187
|
-
export declare const WhatsAppVideoHeader: Schema.Union<readonly [Schema.Struct<{
|
|
3188
|
-
readonly type: Schema.Literal<"video">;
|
|
3189
|
-
readonly url: Schema.String;
|
|
3190
|
-
}>, Schema.Struct<{
|
|
3191
|
-
readonly type: Schema.Literal<"video">;
|
|
3192
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3193
|
-
}>]>;
|
|
3194
|
-
export type WhatsAppDocumentHeader = WhatsAppDocumentHeaderLink | WhatsAppDocumentHeaderUpload;
|
|
3195
|
-
export declare const WhatsAppDocumentHeader: Schema.Union<readonly [Schema.Struct<{
|
|
3196
|
-
readonly type: Schema.Literal<"document">;
|
|
3197
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3198
|
-
readonly url: Schema.String;
|
|
3199
|
-
}>, Schema.Struct<{
|
|
3200
|
-
readonly type: Schema.Literal<"document">;
|
|
3201
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3202
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3203
|
-
}>]>;
|
|
3204
3448
|
export type WhatsAppTemplateBindings = {
|
|
3205
3449
|
readonly [x: string]: WhatsAppTemplateBinding;
|
|
3206
3450
|
};
|
|
@@ -3404,6 +3648,32 @@ export declare const JourneyCustomFieldPredicate: Schema.Struct<{
|
|
|
3404
3648
|
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
3405
3649
|
}>]>;
|
|
3406
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
|
+
}>;
|
|
3407
3677
|
export type CreateMailboxPayload = {
|
|
3408
3678
|
readonly namespaceId?: NamespaceId | null;
|
|
3409
3679
|
readonly endpoint: CreateMailboxEndpointPayload;
|
|
@@ -3529,38 +3799,12 @@ export declare const MailboxSendReceipt: Schema.Struct<{
|
|
|
3529
3799
|
readonly createdAt: Schema.String;
|
|
3530
3800
|
readonly updatedAt: Schema.String;
|
|
3531
3801
|
}>;
|
|
3532
|
-
export type
|
|
3533
|
-
readonly
|
|
3534
|
-
readonly
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
readonly sections: ReadonlyArray<WhatsAppListSection>;
|
|
3539
|
-
};
|
|
3540
|
-
export declare const WhatsAppListMessage: Schema.Struct<{
|
|
3541
|
-
readonly type: Schema.Literal<"list">;
|
|
3542
|
-
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
3543
|
-
readonly type: Schema.Literal<"text">;
|
|
3544
|
-
readonly text: Schema.String;
|
|
3545
|
-
}>>;
|
|
3546
|
-
readonly body: Schema.String;
|
|
3547
|
-
readonly footer: Schema.optionalKey<Schema.String>;
|
|
3548
|
-
readonly button: Schema.String;
|
|
3549
|
-
readonly sections: Schema.$Array<Schema.Struct<{
|
|
3550
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
3551
|
-
readonly rows: Schema.$Array<Schema.Struct<{
|
|
3552
|
-
readonly id: Schema.String;
|
|
3553
|
-
readonly title: Schema.String;
|
|
3554
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
3555
|
-
}>>;
|
|
3556
|
-
}>>;
|
|
3557
|
-
}>;
|
|
3558
|
-
export type OperationAccepted = {
|
|
3559
|
-
readonly operation: Operation;
|
|
3560
|
-
readonly links: {
|
|
3561
|
-
readonly self: string;
|
|
3562
|
-
readonly resource: OperationResourceLink;
|
|
3563
|
-
};
|
|
3802
|
+
export type OperationAccepted = {
|
|
3803
|
+
readonly operation: Operation;
|
|
3804
|
+
readonly links: {
|
|
3805
|
+
readonly self: string;
|
|
3806
|
+
readonly resource: OperationResourceLink;
|
|
3807
|
+
};
|
|
3564
3808
|
};
|
|
3565
3809
|
export declare const OperationAccepted: Schema.Struct<{
|
|
3566
3810
|
readonly operation: Schema.Struct<{
|
|
@@ -3949,70 +4193,70 @@ export declare const ReplyMailboxMessagePayload: Schema.Union<readonly [Schema.S
|
|
|
3949
4193
|
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3950
4194
|
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3951
4195
|
}>]>;
|
|
3952
|
-
export type
|
|
3953
|
-
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<{
|
|
3954
4201
|
readonly type: Schema.Literal<"image">;
|
|
3955
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3956
4202
|
readonly url: Schema.String;
|
|
3957
4203
|
}>, Schema.Struct<{
|
|
3958
4204
|
readonly type: Schema.Literal<"image">;
|
|
3959
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3960
4205
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3961
4206
|
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3962
4207
|
readonly type: Schema.Literal<"video">;
|
|
3963
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3964
4208
|
readonly url: Schema.String;
|
|
3965
4209
|
}>, Schema.Struct<{
|
|
3966
4210
|
readonly type: Schema.Literal<"video">;
|
|
3967
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3968
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3969
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3970
|
-
readonly type: Schema.Literal<"audio">;
|
|
3971
|
-
readonly url: Schema.String;
|
|
3972
|
-
}>, Schema.Struct<{
|
|
3973
|
-
readonly type: Schema.Literal<"audio">;
|
|
3974
4211
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3975
4212
|
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3976
4213
|
readonly type: Schema.Literal<"document">;
|
|
3977
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3978
4214
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3979
4215
|
readonly url: Schema.String;
|
|
3980
4216
|
}>, Schema.Struct<{
|
|
3981
4217
|
readonly type: Schema.Literal<"document">;
|
|
3982
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3983
4218
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3984
4219
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3985
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3986
|
-
readonly type: Schema.Literal<"sticker">;
|
|
3987
|
-
readonly url: Schema.String;
|
|
3988
|
-
}>, Schema.Struct<{
|
|
3989
|
-
readonly type: Schema.Literal<"sticker">;
|
|
3990
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3991
4220
|
}>]>]>;
|
|
3992
|
-
export type
|
|
3993
|
-
export declare const
|
|
3994
|
-
readonly type: Schema.Literal<"text">;
|
|
3995
|
-
readonly text: Schema.String;
|
|
3996
|
-
}>, 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<{
|
|
3997
4223
|
readonly type: Schema.Literal<"image">;
|
|
4224
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3998
4225
|
readonly url: Schema.String;
|
|
3999
4226
|
}>, Schema.Struct<{
|
|
4000
4227
|
readonly type: Schema.Literal<"image">;
|
|
4228
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4001
4229
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4002
4230
|
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4003
4231
|
readonly type: Schema.Literal<"video">;
|
|
4232
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4004
4233
|
readonly url: Schema.String;
|
|
4005
4234
|
}>, Schema.Struct<{
|
|
4006
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">;
|
|
4007
4243
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4008
4244
|
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4009
4245
|
readonly type: Schema.Literal<"document">;
|
|
4246
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4010
4247
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4011
4248
|
readonly url: Schema.String;
|
|
4012
4249
|
}>, Schema.Struct<{
|
|
4013
4250
|
readonly type: Schema.Literal<"document">;
|
|
4251
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4014
4252
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4015
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">;
|
|
4016
4260
|
}>]>]>;
|
|
4017
4261
|
export type WhatsAppTemplateDispatch = {
|
|
4018
4262
|
readonly template: TemplateId | string;
|
|
@@ -4554,50 +4798,6 @@ export declare const EmailSendMessagePayload: Schema.Struct<{
|
|
|
4554
4798
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
4555
4799
|
}>;
|
|
4556
4800
|
}>;
|
|
4557
|
-
export type WhatsAppMediaContent = {
|
|
4558
|
-
readonly media: WhatsAppOutboundMedia;
|
|
4559
|
-
};
|
|
4560
|
-
export declare const WhatsAppMediaContent: Schema.Struct<{
|
|
4561
|
-
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4562
|
-
readonly type: Schema.Literal<"image">;
|
|
4563
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4564
|
-
readonly url: Schema.String;
|
|
4565
|
-
}>, Schema.Struct<{
|
|
4566
|
-
readonly type: Schema.Literal<"image">;
|
|
4567
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4568
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4569
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4570
|
-
readonly type: Schema.Literal<"video">;
|
|
4571
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4572
|
-
readonly url: Schema.String;
|
|
4573
|
-
}>, Schema.Struct<{
|
|
4574
|
-
readonly type: Schema.Literal<"video">;
|
|
4575
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4576
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4577
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4578
|
-
readonly type: Schema.Literal<"audio">;
|
|
4579
|
-
readonly url: Schema.String;
|
|
4580
|
-
}>, Schema.Struct<{
|
|
4581
|
-
readonly type: Schema.Literal<"audio">;
|
|
4582
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4583
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4584
|
-
readonly type: Schema.Literal<"document">;
|
|
4585
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4586
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4587
|
-
readonly url: Schema.String;
|
|
4588
|
-
}>, Schema.Struct<{
|
|
4589
|
-
readonly type: Schema.Literal<"document">;
|
|
4590
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4591
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4592
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4593
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4594
|
-
readonly type: Schema.Literal<"sticker">;
|
|
4595
|
-
readonly url: Schema.String;
|
|
4596
|
-
}>, Schema.Struct<{
|
|
4597
|
-
readonly type: Schema.Literal<"sticker">;
|
|
4598
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4599
|
-
}>]>]>;
|
|
4600
|
-
}>;
|
|
4601
4801
|
export type WhatsAppButtonsMessage = {
|
|
4602
4802
|
readonly type: "buttons";
|
|
4603
4803
|
readonly header?: WhatsAppInteractiveHeader;
|
|
@@ -4677,6 +4877,50 @@ export declare const WhatsAppCtaUrlMessage: Schema.Struct<{
|
|
|
4677
4877
|
readonly displayText: Schema.String;
|
|
4678
4878
|
readonly url: Schema.String;
|
|
4679
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
|
+
}>;
|
|
4680
4924
|
export type WhatsAppCampaignContentInput = {
|
|
4681
4925
|
readonly channel: "whatsapp";
|
|
4682
4926
|
readonly whatsapp: WhatsAppTemplateDispatch;
|
|
@@ -5019,6 +5263,103 @@ export declare const AgentModuleManifest: Schema.Struct<{
|
|
|
5019
5263
|
readonly events: Schema.$Array<Schema.String>;
|
|
5020
5264
|
readonly schedules: Schema.$Array<Schema.String>;
|
|
5021
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
|
+
}>]>;
|
|
5022
5363
|
export type WhatsAppInteractive = WhatsAppButtonsMessage | WhatsAppListMessage | WhatsAppCtaUrlMessage | WhatsAppFlowMessage;
|
|
5023
5364
|
export declare const WhatsAppInteractive: Schema.Union<readonly [Schema.Struct<{
|
|
5024
5365
|
readonly type: Schema.Literal<"buttons">;
|
|
@@ -5648,7 +5989,269 @@ export declare const AgentModuleBundle: Schema.Struct<{
|
|
|
5648
5989
|
readonly schedules: Schema.$Array<Schema.String>;
|
|
5649
5990
|
}>;
|
|
5650
5991
|
}>;
|
|
5651
|
-
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 = {
|
|
5652
6255
|
readonly interactive: WhatsAppInteractive;
|
|
5653
6256
|
};
|
|
5654
6257
|
export declare const WhatsAppInteractiveContent: Schema.Struct<{
|
|
@@ -6026,6 +6629,285 @@ export declare const PublishAgentVersionPayload: Schema.Struct<{
|
|
|
6026
6629
|
}>;
|
|
6027
6630
|
}>;
|
|
6028
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
|
+
}>;
|
|
6029
6911
|
export type WhatsAppContent = WhatsAppTextContent | WhatsAppTemplateIdContent | WhatsAppTemplateSlugContent | WhatsAppMediaContent | WhatsAppInteractiveContent | WhatsAppReactionContent | WhatsAppLocationContent | WhatsAppContactsContent;
|
|
6030
6912
|
export declare const WhatsAppContent: Schema.Union<readonly [Schema.Struct<{
|
|
6031
6913
|
readonly text: Schema.String;
|