samva 0.51.0 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +5 -2
- package/README.md +1 -0
- package/dist/client/sdk.gen.d.ts +82 -36
- package/dist/client/sdk.gen.js +192 -57
- package/dist/client/types.gen.d.ts +607 -291
- package/dist/effect/campaigns.d.ts +56 -56
- package/dist/effect/descriptors/integrations-catalog.d.ts +1 -1
- package/dist/effect/descriptors/integrations-catalog.js +1 -1
- package/dist/effect/descriptors/integrations.d.ts +1 -1
- package/dist/effect/descriptors/integrations.js +1 -1
- package/dist/effect/descriptors/logs.d.ts +21 -0
- package/dist/effect/descriptors/logs.js +23 -0
- package/dist/effect/descriptors/whats-app.d.ts +1 -1
- package/dist/effect/descriptors/whats-app.js +1 -1
- package/dist/effect/events.d.ts +16 -0
- package/dist/effect/generated/agents.js +4 -4
- package/dist/effect/generated/campaigns.d.ts +18 -6
- package/dist/effect/generated/campaigns.js +2 -6
- package/dist/effect/generated/email.js +3 -3
- package/dist/effect/generated/events.d.ts +48 -0
- package/dist/effect/generated/events.js +1 -1
- 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 +1113 -67
- package/dist/effect/generated/journeys.js +14 -8
- package/dist/effect/generated/logs.d.ts +2323 -0
- package/dist/effect/generated/logs.js +312 -0
- package/dist/effect/generated/mailboxes.d.ts +38 -24
- package/dist/effect/generated/mailboxes.js +22 -21
- package/dist/effect/generated/messages.d.ts +11 -882
- package/dist/effect/generated/messages.js +4 -243
- package/dist/effect/generated/newsletter-domains.d.ts +61 -13
- package/dist/effect/generated/newsletter-domains.js +5 -5
- package/dist/effect/generated/newsletter-issues.d.ts +166 -34
- package/dist/effect/generated/newsletter-issues.js +12 -12
- package/dist/effect/generated/newsletters.d.ts +76 -16
- package/dist/effect/generated/newsletters.js +6 -6
- package/dist/effect/generated/organizations.js +1 -1
- package/dist/effect/generated/scheduled-messages.d.ts +36 -0
- package/dist/effect/generated/scheduled-messages.js +1 -1
- package/dist/effect/generated/shared.d.ts +1706 -442
- package/dist/effect/generated/shared.js +370 -93
- 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 +173 -35
- package/dist/effect/generated/whats-app-flows.js +19 -17
- package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
- package/dist/effect/generated/whats-app-setup-links.js +5 -5
- package/dist/effect/generated/whats-app.d.ts +187 -65
- package/dist/effect/generated/whats-app.js +18 -24
- package/dist/effect/generated-metadata.d.ts +15 -3
- package/dist/effect/generated-metadata.js +375 -349
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +2 -1
- package/dist/effect/integrations-catalog.d.ts +92 -4
- package/dist/effect/integrations.d.ts +40 -8
- package/dist/effect/internal/client.js +25 -3
- package/dist/effect/internal/log-events.d.ts +19 -0
- package/dist/effect/internal/log-events.js +53 -0
- package/dist/effect/internal/mailbox-events.d.ts +6 -2
- package/dist/effect/internal/mailbox-events.js +4 -3
- package/dist/effect/journeys.d.ts +212 -146
- package/dist/effect/logs.d.ts +149 -0
- package/dist/effect/logs.js +18 -0
- package/dist/effect/mailboxes.d.ts +158 -150
- package/dist/effect/mailboxes.js +1 -1
- package/dist/effect/newsletter-domains.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +66 -0
- package/dist/effect/whatsapp-flows.d.ts +30 -0
- package/dist/effect/whatsapp-setup-links.d.ts +2 -2
- package/dist/effect/whatsapp.d.ts +73 -3
- package/dist/mailbox-events.d.ts +50 -3
- package/dist/mailbox-events.js +38 -19
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +3 -1
- package/dist/promises/client.js +3 -1
- package/dist/promises/errors.gen.d.ts +2 -0
- package/dist/promises/errors.gen.js +137 -34
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-id.d.ts +3 -0
- package/dist/request-id.js +7 -0
- package/dist/service-map.d.ts +14 -3
- package/package.json +6 -2
|
@@ -538,6 +538,222 @@ export declare const JourneyUpdateTagsConfig: Schema.Struct<{
|
|
|
538
538
|
}>;
|
|
539
539
|
export type ShopifyShop = string;
|
|
540
540
|
export declare const ShopifyShop: Schema.String;
|
|
541
|
+
export type SubmissionClient = {
|
|
542
|
+
readonly surface: "typescript-promise" | "typescript-effect" | "cli" | "mcp";
|
|
543
|
+
readonly version: string;
|
|
544
|
+
};
|
|
545
|
+
export declare const SubmissionClient: Schema.Struct<{
|
|
546
|
+
readonly surface: Schema.Union<readonly [Schema.Literal<"typescript-promise">, Schema.Literal<"typescript-effect">, Schema.Literal<"cli">, Schema.Literal<"mcp">]>;
|
|
547
|
+
readonly version: Schema.String;
|
|
548
|
+
}>;
|
|
549
|
+
export type DeliveryErrorDetails = {
|
|
550
|
+
readonly code?: string | null;
|
|
551
|
+
readonly name?: string | null;
|
|
552
|
+
readonly message?: string | null;
|
|
553
|
+
readonly details?: {
|
|
554
|
+
readonly [x: string]: string | number | null;
|
|
555
|
+
} | null;
|
|
556
|
+
readonly retryable?: boolean | null;
|
|
557
|
+
};
|
|
558
|
+
export declare const DeliveryErrorDetails: Schema.Struct<{
|
|
559
|
+
readonly code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
560
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
561
|
+
readonly message: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
562
|
+
readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Null]>>, Schema.Null]>>;
|
|
563
|
+
readonly retryable: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
564
|
+
}>;
|
|
565
|
+
export type SmsMessageContent = {
|
|
566
|
+
readonly text: string;
|
|
567
|
+
readonly unicode?: boolean | null;
|
|
568
|
+
readonly parts?: number | null;
|
|
569
|
+
};
|
|
570
|
+
export declare const SmsMessageContent: Schema.Struct<{
|
|
571
|
+
readonly text: Schema.String;
|
|
572
|
+
readonly unicode: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
573
|
+
readonly parts: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
574
|
+
}>;
|
|
575
|
+
export type WhatsAppTextHeader = {
|
|
576
|
+
readonly type: "text";
|
|
577
|
+
readonly text: string;
|
|
578
|
+
};
|
|
579
|
+
export declare const WhatsAppTextHeader: Schema.Struct<{
|
|
580
|
+
readonly type: Schema.Literal<"text">;
|
|
581
|
+
readonly text: Schema.String;
|
|
582
|
+
}>;
|
|
583
|
+
export type WhatsAppImageHeaderLink = {
|
|
584
|
+
readonly type: "image";
|
|
585
|
+
readonly url: string;
|
|
586
|
+
};
|
|
587
|
+
export declare const WhatsAppImageHeaderLink: Schema.Struct<{
|
|
588
|
+
readonly type: Schema.Literal<"image">;
|
|
589
|
+
readonly url: Schema.String;
|
|
590
|
+
}>;
|
|
591
|
+
export type WhatsAppVideoHeaderLink = {
|
|
592
|
+
readonly type: "video";
|
|
593
|
+
readonly url: string;
|
|
594
|
+
};
|
|
595
|
+
export declare const WhatsAppVideoHeaderLink: Schema.Struct<{
|
|
596
|
+
readonly type: Schema.Literal<"video">;
|
|
597
|
+
readonly url: Schema.String;
|
|
598
|
+
}>;
|
|
599
|
+
export type WhatsAppDocumentHeaderLink = {
|
|
600
|
+
readonly type: "document";
|
|
601
|
+
readonly filename?: string;
|
|
602
|
+
readonly url: string;
|
|
603
|
+
};
|
|
604
|
+
export declare const WhatsAppDocumentHeaderLink: Schema.Struct<{
|
|
605
|
+
readonly type: Schema.Literal<"document">;
|
|
606
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
607
|
+
readonly url: Schema.String;
|
|
608
|
+
}>;
|
|
609
|
+
export type WhatsAppReplyButton = {
|
|
610
|
+
readonly id: string;
|
|
611
|
+
readonly title: string;
|
|
612
|
+
};
|
|
613
|
+
export declare const WhatsAppReplyButton: Schema.Struct<{
|
|
614
|
+
readonly id: Schema.String;
|
|
615
|
+
readonly title: Schema.String;
|
|
616
|
+
}>;
|
|
617
|
+
export type WhatsAppListRow = {
|
|
618
|
+
readonly id: string;
|
|
619
|
+
readonly title: string;
|
|
620
|
+
readonly description?: string;
|
|
621
|
+
};
|
|
622
|
+
export declare const WhatsAppListRow: Schema.Struct<{
|
|
623
|
+
readonly id: Schema.String;
|
|
624
|
+
readonly title: Schema.String;
|
|
625
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
626
|
+
}>;
|
|
627
|
+
export type WhatsAppFlowId = string & EffectBrand.Brand<"WhatsAppFlowId">;
|
|
628
|
+
export declare const WhatsAppFlowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
629
|
+
export type WhatsAppFlowVersionId = string & EffectBrand.Brand<"WhatsAppFlowVersionId">;
|
|
630
|
+
export declare const WhatsAppFlowVersionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
631
|
+
export type WhatsAppStoredLocation = {
|
|
632
|
+
readonly latitude: number;
|
|
633
|
+
readonly longitude: number;
|
|
634
|
+
readonly name?: string;
|
|
635
|
+
readonly address?: string;
|
|
636
|
+
readonly url?: string;
|
|
637
|
+
};
|
|
638
|
+
export declare const WhatsAppStoredLocation: Schema.Struct<{
|
|
639
|
+
readonly latitude: Schema.Finite;
|
|
640
|
+
readonly longitude: Schema.Finite;
|
|
641
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
642
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
643
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
644
|
+
}>;
|
|
645
|
+
export type WhatsAppStoredContactCard = {
|
|
646
|
+
readonly name?: {
|
|
647
|
+
readonly formattedName?: string;
|
|
648
|
+
readonly firstName?: string;
|
|
649
|
+
readonly lastName?: string;
|
|
650
|
+
readonly middleName?: string;
|
|
651
|
+
readonly prefix?: string;
|
|
652
|
+
readonly suffix?: string;
|
|
653
|
+
};
|
|
654
|
+
readonly phones?: ReadonlyArray<{
|
|
655
|
+
readonly phone?: string;
|
|
656
|
+
readonly type?: string;
|
|
657
|
+
readonly waId?: string;
|
|
658
|
+
}>;
|
|
659
|
+
readonly emails?: ReadonlyArray<{
|
|
660
|
+
readonly email?: string;
|
|
661
|
+
readonly type?: string;
|
|
662
|
+
}>;
|
|
663
|
+
readonly urls?: ReadonlyArray<{
|
|
664
|
+
readonly url?: string;
|
|
665
|
+
readonly type?: string;
|
|
666
|
+
}>;
|
|
667
|
+
readonly org?: {
|
|
668
|
+
readonly company?: string;
|
|
669
|
+
readonly department?: string;
|
|
670
|
+
readonly title?: string;
|
|
671
|
+
};
|
|
672
|
+
readonly addresses?: ReadonlyArray<{
|
|
673
|
+
readonly street?: string;
|
|
674
|
+
readonly city?: string;
|
|
675
|
+
readonly state?: string;
|
|
676
|
+
readonly zip?: string;
|
|
677
|
+
readonly country?: string;
|
|
678
|
+
readonly countryCode?: string;
|
|
679
|
+
readonly type?: string;
|
|
680
|
+
}>;
|
|
681
|
+
readonly birthday?: string;
|
|
682
|
+
};
|
|
683
|
+
export declare const WhatsAppStoredContactCard: Schema.Struct<{
|
|
684
|
+
readonly name: Schema.optionalKey<Schema.Struct<{
|
|
685
|
+
readonly formattedName: Schema.optionalKey<Schema.String>;
|
|
686
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
687
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
688
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
689
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
690
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
691
|
+
}>>;
|
|
692
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
693
|
+
readonly phone: Schema.optionalKey<Schema.String>;
|
|
694
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
695
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
696
|
+
}>>>;
|
|
697
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
698
|
+
readonly email: Schema.optionalKey<Schema.String>;
|
|
699
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
700
|
+
}>>>;
|
|
701
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
702
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
703
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
704
|
+
}>>>;
|
|
705
|
+
readonly org: Schema.optionalKey<Schema.Struct<{
|
|
706
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
707
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
708
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
709
|
+
}>>;
|
|
710
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
711
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
712
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
713
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
714
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
715
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
716
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
717
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
718
|
+
}>>>;
|
|
719
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
720
|
+
}>;
|
|
721
|
+
export type WhatsAppReceivedReply = {
|
|
722
|
+
readonly type: "button" | "list" | "template_button";
|
|
723
|
+
readonly id: string;
|
|
724
|
+
readonly title: string;
|
|
725
|
+
readonly description?: string;
|
|
726
|
+
};
|
|
727
|
+
export declare const WhatsAppReceivedReply: Schema.Struct<{
|
|
728
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"button">, Schema.Literal<"list">, Schema.Literal<"template_button">]>;
|
|
729
|
+
readonly id: Schema.String;
|
|
730
|
+
readonly title: Schema.String;
|
|
731
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
732
|
+
}>;
|
|
733
|
+
export type WhatsAppReceivedFlowResponse = {
|
|
734
|
+
readonly flowToken: string | null;
|
|
735
|
+
readonly submissionHandler?: "app";
|
|
736
|
+
readonly response: {
|
|
737
|
+
readonly [x: string]: JsonValue;
|
|
738
|
+
};
|
|
739
|
+
readonly body?: string;
|
|
740
|
+
};
|
|
741
|
+
export declare const WhatsAppReceivedFlowResponse: Schema.Struct<{
|
|
742
|
+
readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
743
|
+
readonly submissionHandler: Schema.optionalKey<Schema.Literal<"app">>;
|
|
744
|
+
readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
745
|
+
readonly body: Schema.optionalKey<Schema.String>;
|
|
746
|
+
}>;
|
|
747
|
+
export type WhatsAppStructuredContent = {
|
|
748
|
+
readonly type: string;
|
|
749
|
+
readonly data: {
|
|
750
|
+
readonly [x: string]: JsonValue;
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
export declare const WhatsAppStructuredContent: Schema.Struct<{
|
|
754
|
+
readonly type: Schema.String;
|
|
755
|
+
readonly data: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
756
|
+
}>;
|
|
541
757
|
export type MailboxChannel = "sms" | "whatsapp" | "email";
|
|
542
758
|
export declare const MailboxChannel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
543
759
|
export type MailboxMetadata = {
|
|
@@ -664,6 +880,10 @@ export type WhatsAppTemplateData = {
|
|
|
664
880
|
readonly [x: string]: JsonValue;
|
|
665
881
|
};
|
|
666
882
|
export declare const WhatsAppTemplateData: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
883
|
+
export type JsonObject_1 = {
|
|
884
|
+
readonly [x: string]: JsonValue;
|
|
885
|
+
};
|
|
886
|
+
export declare const JsonObject_1: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
667
887
|
export type WhatsAppImageLink = {
|
|
668
888
|
readonly type: "image";
|
|
669
889
|
readonly caption?: string;
|
|
@@ -712,60 +932,6 @@ export declare const WhatsAppStickerLink: Schema.Struct<{
|
|
|
712
932
|
readonly type: Schema.Literal<"sticker">;
|
|
713
933
|
readonly url: Schema.String;
|
|
714
934
|
}>;
|
|
715
|
-
export type WhatsAppTextHeader = {
|
|
716
|
-
readonly type: "text";
|
|
717
|
-
readonly text: string;
|
|
718
|
-
};
|
|
719
|
-
export declare const WhatsAppTextHeader: Schema.Struct<{
|
|
720
|
-
readonly type: Schema.Literal<"text">;
|
|
721
|
-
readonly text: Schema.String;
|
|
722
|
-
}>;
|
|
723
|
-
export type WhatsAppImageHeaderLink = {
|
|
724
|
-
readonly type: "image";
|
|
725
|
-
readonly url: string;
|
|
726
|
-
};
|
|
727
|
-
export declare const WhatsAppImageHeaderLink: Schema.Struct<{
|
|
728
|
-
readonly type: Schema.Literal<"image">;
|
|
729
|
-
readonly url: Schema.String;
|
|
730
|
-
}>;
|
|
731
|
-
export type WhatsAppVideoHeaderLink = {
|
|
732
|
-
readonly type: "video";
|
|
733
|
-
readonly url: string;
|
|
734
|
-
};
|
|
735
|
-
export declare const WhatsAppVideoHeaderLink: Schema.Struct<{
|
|
736
|
-
readonly type: Schema.Literal<"video">;
|
|
737
|
-
readonly url: Schema.String;
|
|
738
|
-
}>;
|
|
739
|
-
export type WhatsAppDocumentHeaderLink = {
|
|
740
|
-
readonly type: "document";
|
|
741
|
-
readonly filename?: string;
|
|
742
|
-
readonly url: string;
|
|
743
|
-
};
|
|
744
|
-
export declare const WhatsAppDocumentHeaderLink: Schema.Struct<{
|
|
745
|
-
readonly type: Schema.Literal<"document">;
|
|
746
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
747
|
-
readonly url: Schema.String;
|
|
748
|
-
}>;
|
|
749
|
-
export type WhatsAppReplyButton = {
|
|
750
|
-
readonly id: string;
|
|
751
|
-
readonly title: string;
|
|
752
|
-
};
|
|
753
|
-
export declare const WhatsAppReplyButton: Schema.Struct<{
|
|
754
|
-
readonly id: Schema.String;
|
|
755
|
-
readonly title: Schema.String;
|
|
756
|
-
}>;
|
|
757
|
-
export type WhatsAppListRow = {
|
|
758
|
-
readonly id: string;
|
|
759
|
-
readonly title: string;
|
|
760
|
-
readonly description?: string;
|
|
761
|
-
};
|
|
762
|
-
export declare const WhatsAppListRow: Schema.Struct<{
|
|
763
|
-
readonly id: Schema.String;
|
|
764
|
-
readonly title: Schema.String;
|
|
765
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
766
|
-
}>;
|
|
767
|
-
export type WhatsAppFlowId = string & EffectBrand.Brand<"WhatsAppFlowId">;
|
|
768
|
-
export declare const WhatsAppFlowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
769
935
|
export type WhatsAppLocation = {
|
|
770
936
|
readonly latitude: number;
|
|
771
937
|
readonly longitude: number;
|
|
@@ -854,8 +1020,6 @@ export declare const WhatsAppContactCard: Schema.Struct<{
|
|
|
854
1020
|
}>>>;
|
|
855
1021
|
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
856
1022
|
}>;
|
|
857
|
-
export type WhatsAppFlowVersionId = string & EffectBrand.Brand<"WhatsAppFlowVersionId">;
|
|
858
|
-
export declare const WhatsAppFlowVersionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
859
1023
|
export type MessageDeliveryId = string & EffectBrand.Brand<"MessageDeliveryId">;
|
|
860
1024
|
export declare const MessageDeliveryId: Schema.brand<Schema.String, "MessageDeliveryId">;
|
|
861
1025
|
export type IanaTimezone = string;
|
|
@@ -1167,14 +1331,6 @@ export type ReapplyOnboardingReviewInput = {
|
|
|
1167
1331
|
export declare const ReapplyOnboardingReviewInput: Schema.Struct<{
|
|
1168
1332
|
readonly expectedGeneration: Schema.Finite;
|
|
1169
1333
|
}>;
|
|
1170
|
-
export type RecordWhatsAppFlowVersionPayload = {
|
|
1171
|
-
readonly commitSha: string;
|
|
1172
|
-
readonly expectedWorkspaceRevision: string;
|
|
1173
|
-
};
|
|
1174
|
-
export declare const RecordWhatsAppFlowVersionPayload: Schema.Struct<{
|
|
1175
|
-
readonly commitSha: Schema.String;
|
|
1176
|
-
readonly expectedWorkspaceRevision: Schema.String;
|
|
1177
|
-
}>;
|
|
1178
1334
|
export type RescheduleMailboxSend = {
|
|
1179
1335
|
readonly idempotencyKey: string;
|
|
1180
1336
|
readonly base: string;
|
|
@@ -1323,10 +1479,26 @@ export declare const ContactConsent: Schema.Struct<{
|
|
|
1323
1479
|
}>;
|
|
1324
1480
|
export type JourneyWebhookConfig = {
|
|
1325
1481
|
readonly data?: JsonObject;
|
|
1482
|
+
readonly eventBindings?: {
|
|
1483
|
+
readonly [x: string]: string;
|
|
1484
|
+
};
|
|
1326
1485
|
};
|
|
1327
1486
|
export declare const JourneyWebhookConfig: Schema.Struct<{
|
|
1328
1487
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
1488
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1329
1489
|
}>;
|
|
1490
|
+
export type RecordWhatsAppFlowVersionPayload = {
|
|
1491
|
+
readonly commitSha: string;
|
|
1492
|
+
readonly expectedWorkspaceRevision: string;
|
|
1493
|
+
} | {
|
|
1494
|
+
readonly flowJson: JsonObject;
|
|
1495
|
+
};
|
|
1496
|
+
export declare const RecordWhatsAppFlowVersionPayload: Schema.Union<readonly [Schema.Struct<{
|
|
1497
|
+
readonly commitSha: Schema.String;
|
|
1498
|
+
readonly expectedWorkspaceRevision: Schema.String;
|
|
1499
|
+
}>, Schema.Struct<{
|
|
1500
|
+
readonly flowJson: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
1501
|
+
}>]>;
|
|
1330
1502
|
export type SetContactConsent = {
|
|
1331
1503
|
readonly status: "opted_in" | "opted_out";
|
|
1332
1504
|
readonly source: string;
|
|
@@ -1391,27 +1563,43 @@ export type ContactEventReference = {
|
|
|
1391
1563
|
readonly id: ContactId;
|
|
1392
1564
|
readonly externalId?: never;
|
|
1393
1565
|
readonly email?: never;
|
|
1566
|
+
readonly phone?: never;
|
|
1394
1567
|
} | {
|
|
1395
1568
|
readonly externalId: string;
|
|
1396
1569
|
readonly id?: never;
|
|
1397
1570
|
readonly email?: never;
|
|
1571
|
+
readonly phone?: never;
|
|
1398
1572
|
} | {
|
|
1399
1573
|
readonly email: string;
|
|
1400
1574
|
readonly id?: never;
|
|
1401
1575
|
readonly externalId?: never;
|
|
1576
|
+
readonly phone?: never;
|
|
1577
|
+
} | {
|
|
1578
|
+
readonly phone: string;
|
|
1579
|
+
readonly id?: never;
|
|
1580
|
+
readonly externalId?: never;
|
|
1581
|
+
readonly email?: never;
|
|
1402
1582
|
};
|
|
1403
1583
|
export declare const ContactEventReference: Schema.Union<readonly [Schema.Struct<{
|
|
1404
1584
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
1405
1585
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
1406
1586
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
1587
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
1407
1588
|
}>, Schema.Struct<{
|
|
1408
1589
|
readonly externalId: Schema.String;
|
|
1409
1590
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
1410
1591
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
1592
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
1411
1593
|
}>, Schema.Struct<{
|
|
1412
1594
|
readonly email: Schema.String;
|
|
1413
1595
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
1414
1596
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
1597
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
1598
|
+
}>, Schema.Struct<{
|
|
1599
|
+
readonly phone: Schema.String;
|
|
1600
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
1601
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
1602
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
1415
1603
|
}>]>;
|
|
1416
1604
|
export type EmailRecipient = {
|
|
1417
1605
|
readonly contactId: ContactId;
|
|
@@ -1691,11 +1879,29 @@ export declare const UpdateWebhookPayload: Schema.Struct<{
|
|
|
1691
1879
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1692
1880
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>, Schema.Null]>>;
|
|
1693
1881
|
}>;
|
|
1694
|
-
export type
|
|
1695
|
-
readonly
|
|
1696
|
-
readonly
|
|
1697
|
-
readonly
|
|
1698
|
-
|
|
1882
|
+
export type WhatsAppStoredReaction = {
|
|
1883
|
+
readonly messageId: MessageId | null;
|
|
1884
|
+
readonly providerMessageId: string;
|
|
1885
|
+
readonly emoji: string | null;
|
|
1886
|
+
};
|
|
1887
|
+
export declare const WhatsAppStoredReaction: Schema.Struct<{
|
|
1888
|
+
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
1889
|
+
readonly providerMessageId: Schema.String;
|
|
1890
|
+
readonly emoji: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1891
|
+
}>;
|
|
1892
|
+
export type WhatsAppMessageReference = {
|
|
1893
|
+
readonly messageId: MessageId | null;
|
|
1894
|
+
readonly providerMessageId: string;
|
|
1895
|
+
};
|
|
1896
|
+
export declare const WhatsAppMessageReference: Schema.Struct<{
|
|
1897
|
+
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
1898
|
+
readonly providerMessageId: Schema.String;
|
|
1899
|
+
}>;
|
|
1900
|
+
export type CreateMailboxChatDraftPayload = {
|
|
1901
|
+
readonly channel: "whatsapp" | "sms";
|
|
1902
|
+
readonly to?: string | null;
|
|
1903
|
+
readonly text?: string | null;
|
|
1904
|
+
readonly inReplyToMessageId?: MessageId | null;
|
|
1699
1905
|
};
|
|
1700
1906
|
export declare const CreateMailboxChatDraftPayload: Schema.Struct<{
|
|
1701
1907
|
readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
|
|
@@ -1747,6 +1953,66 @@ export declare const EmailAttachment: Schema.Struct<{
|
|
|
1747
1953
|
readonly contentType: Schema.String;
|
|
1748
1954
|
readonly size: Schema.Finite;
|
|
1749
1955
|
}>;
|
|
1956
|
+
export type WhatsAppImageHeaderUpload = {
|
|
1957
|
+
readonly type: "image";
|
|
1958
|
+
readonly mediaId: MediaId;
|
|
1959
|
+
};
|
|
1960
|
+
export declare const WhatsAppImageHeaderUpload: Schema.Struct<{
|
|
1961
|
+
readonly type: Schema.Literal<"image">;
|
|
1962
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1963
|
+
}>;
|
|
1964
|
+
export type WhatsAppVideoHeaderUpload = {
|
|
1965
|
+
readonly type: "video";
|
|
1966
|
+
readonly mediaId: MediaId;
|
|
1967
|
+
};
|
|
1968
|
+
export declare const WhatsAppVideoHeaderUpload: Schema.Struct<{
|
|
1969
|
+
readonly type: Schema.Literal<"video">;
|
|
1970
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1971
|
+
}>;
|
|
1972
|
+
export type WhatsAppDocumentHeaderUpload = {
|
|
1973
|
+
readonly type: "document";
|
|
1974
|
+
readonly filename?: string;
|
|
1975
|
+
readonly mediaId: MediaId;
|
|
1976
|
+
};
|
|
1977
|
+
export declare const WhatsAppDocumentHeaderUpload: Schema.Struct<{
|
|
1978
|
+
readonly type: Schema.Literal<"document">;
|
|
1979
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1980
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1981
|
+
}>;
|
|
1982
|
+
export type WhatsAppStoredMedia = {
|
|
1983
|
+
readonly type: "image" | "video" | "audio" | "document" | "sticker";
|
|
1984
|
+
readonly url: string;
|
|
1985
|
+
readonly caption?: string;
|
|
1986
|
+
readonly filename?: string;
|
|
1987
|
+
} | {
|
|
1988
|
+
readonly type: "image" | "video" | "audio" | "document" | "sticker";
|
|
1989
|
+
readonly mediaId: MediaId;
|
|
1990
|
+
readonly caption?: string;
|
|
1991
|
+
readonly filename?: string;
|
|
1992
|
+
} | {
|
|
1993
|
+
readonly type: "image" | "video" | "audio" | "document" | "sticker";
|
|
1994
|
+
readonly providerMediaId: string;
|
|
1995
|
+
readonly mimeType?: string | null;
|
|
1996
|
+
readonly caption?: string | null;
|
|
1997
|
+
readonly filename?: string;
|
|
1998
|
+
};
|
|
1999
|
+
export declare const WhatsAppStoredMedia: Schema.Union<readonly [Schema.Struct<{
|
|
2000
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
2001
|
+
readonly url: Schema.String;
|
|
2002
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
2003
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
2004
|
+
}>, Schema.Struct<{
|
|
2005
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
2006
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2007
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
2008
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
2009
|
+
}>, Schema.Struct<{
|
|
2010
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
2011
|
+
readonly providerMediaId: Schema.String;
|
|
2012
|
+
readonly mimeType: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2013
|
+
readonly caption: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2014
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
2015
|
+
}>]>;
|
|
1750
2016
|
export type WhatsAppImageUpload = {
|
|
1751
2017
|
readonly type: "image";
|
|
1752
2018
|
readonly caption?: string;
|
|
@@ -1795,32 +2061,6 @@ export declare const WhatsAppStickerUpload: Schema.Struct<{
|
|
|
1795
2061
|
readonly type: Schema.Literal<"sticker">;
|
|
1796
2062
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1797
2063
|
}>;
|
|
1798
|
-
export type WhatsAppImageHeaderUpload = {
|
|
1799
|
-
readonly type: "image";
|
|
1800
|
-
readonly mediaId: MediaId;
|
|
1801
|
-
};
|
|
1802
|
-
export declare const WhatsAppImageHeaderUpload: Schema.Struct<{
|
|
1803
|
-
readonly type: Schema.Literal<"image">;
|
|
1804
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1805
|
-
}>;
|
|
1806
|
-
export type WhatsAppVideoHeaderUpload = {
|
|
1807
|
-
readonly type: "video";
|
|
1808
|
-
readonly mediaId: MediaId;
|
|
1809
|
-
};
|
|
1810
|
-
export declare const WhatsAppVideoHeaderUpload: Schema.Struct<{
|
|
1811
|
-
readonly type: Schema.Literal<"video">;
|
|
1812
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1813
|
-
}>;
|
|
1814
|
-
export type WhatsAppDocumentHeaderUpload = {
|
|
1815
|
-
readonly type: "document";
|
|
1816
|
-
readonly filename?: string;
|
|
1817
|
-
readonly mediaId: MediaId;
|
|
1818
|
-
};
|
|
1819
|
-
export declare const WhatsAppDocumentHeaderUpload: Schema.Struct<{
|
|
1820
|
-
readonly type: Schema.Literal<"document">;
|
|
1821
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1822
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1823
|
-
}>;
|
|
1824
2064
|
export type RespondToOnboardingInformationRequestInput = {
|
|
1825
2065
|
readonly expectedGeneration: number;
|
|
1826
2066
|
readonly responseText: string;
|
|
@@ -2034,12 +2274,16 @@ export type JourneySendEmailConfig = {
|
|
|
2034
2274
|
readonly publicationId?: TemplatePublicationId;
|
|
2035
2275
|
readonly senderId?: EmailSenderId;
|
|
2036
2276
|
readonly templateData?: JsonObject;
|
|
2277
|
+
readonly eventBindings?: {
|
|
2278
|
+
readonly [x: string]: string;
|
|
2279
|
+
};
|
|
2037
2280
|
};
|
|
2038
2281
|
export declare const JourneySendEmailConfig: Schema.Struct<{
|
|
2039
2282
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2040
2283
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
2041
2284
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
2042
2285
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2286
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2043
2287
|
}>;
|
|
2044
2288
|
export type TopicCreatePayload = {
|
|
2045
2289
|
readonly name: string;
|
|
@@ -2265,6 +2509,80 @@ export declare const JourneyComparison: Schema.Union<readonly [Schema.Struct<{
|
|
|
2265
2509
|
}>, Schema.Struct<{
|
|
2266
2510
|
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
2267
2511
|
}>]>;
|
|
2512
|
+
export type WhatsAppListSection = {
|
|
2513
|
+
readonly title?: string;
|
|
2514
|
+
readonly rows: ReadonlyArray<WhatsAppListRow>;
|
|
2515
|
+
};
|
|
2516
|
+
export declare const WhatsAppListSection: Schema.Struct<{
|
|
2517
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
2518
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
2519
|
+
readonly id: Schema.String;
|
|
2520
|
+
readonly title: Schema.String;
|
|
2521
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
2522
|
+
}>>;
|
|
2523
|
+
}>;
|
|
2524
|
+
export type WhatsAppFlowMessage = {
|
|
2525
|
+
readonly type: "flow";
|
|
2526
|
+
readonly header?: WhatsAppTextHeader;
|
|
2527
|
+
readonly body: string;
|
|
2528
|
+
readonly footer?: string;
|
|
2529
|
+
readonly flowId: WhatsAppFlowId;
|
|
2530
|
+
readonly cta: string;
|
|
2531
|
+
readonly token?: string;
|
|
2532
|
+
readonly action?: "navigate" | "data_exchange";
|
|
2533
|
+
readonly screen?: string;
|
|
2534
|
+
readonly data?: {
|
|
2535
|
+
readonly [x: string]: JsonValue;
|
|
2536
|
+
};
|
|
2537
|
+
};
|
|
2538
|
+
export declare const WhatsAppFlowMessage: Schema.Struct<{
|
|
2539
|
+
readonly type: Schema.Literal<"flow">;
|
|
2540
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
2541
|
+
readonly type: Schema.Literal<"text">;
|
|
2542
|
+
readonly text: Schema.String;
|
|
2543
|
+
}>>;
|
|
2544
|
+
readonly body: Schema.String;
|
|
2545
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
2546
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
2547
|
+
readonly cta: Schema.String;
|
|
2548
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
2549
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
2550
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
2551
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2552
|
+
}>;
|
|
2553
|
+
export type WhatsAppStoredFlowMessage = {
|
|
2554
|
+
readonly type: "flow";
|
|
2555
|
+
readonly header?: WhatsAppTextHeader;
|
|
2556
|
+
readonly body: string;
|
|
2557
|
+
readonly footer?: string;
|
|
2558
|
+
readonly flowId: WhatsAppFlowId;
|
|
2559
|
+
readonly cta: string;
|
|
2560
|
+
readonly token?: string;
|
|
2561
|
+
readonly action?: "navigate" | "data_exchange";
|
|
2562
|
+
readonly screen?: string;
|
|
2563
|
+
readonly data?: {
|
|
2564
|
+
readonly [x: string]: JsonValue;
|
|
2565
|
+
};
|
|
2566
|
+
readonly flowVersionId: WhatsAppFlowVersionId;
|
|
2567
|
+
readonly providerFlowId: string;
|
|
2568
|
+
};
|
|
2569
|
+
export declare const WhatsAppStoredFlowMessage: Schema.Struct<{
|
|
2570
|
+
readonly type: Schema.Literal<"flow">;
|
|
2571
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
2572
|
+
readonly type: Schema.Literal<"text">;
|
|
2573
|
+
readonly text: Schema.String;
|
|
2574
|
+
}>>;
|
|
2575
|
+
readonly body: Schema.String;
|
|
2576
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
2577
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
2578
|
+
readonly cta: Schema.String;
|
|
2579
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
2580
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
2581
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
2582
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2583
|
+
readonly flowVersionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
2584
|
+
readonly providerFlowId: Schema.String;
|
|
2585
|
+
}>;
|
|
2268
2586
|
export type CreateMailboxEndpointPayload = {
|
|
2269
2587
|
readonly channel: MailboxChannel;
|
|
2270
2588
|
readonly address: string;
|
|
@@ -2463,62 +2781,25 @@ export type WhatsAppTemplateIdContent = {
|
|
|
2463
2781
|
readonly templateId: TemplateId;
|
|
2464
2782
|
readonly templateData?: WhatsAppTemplateData;
|
|
2465
2783
|
readonly flowToken?: string;
|
|
2784
|
+
readonly flowActionData?: JsonObject_1;
|
|
2466
2785
|
};
|
|
2467
2786
|
export declare const WhatsAppTemplateIdContent: Schema.Struct<{
|
|
2468
2787
|
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
2469
2788
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2470
2789
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
2790
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2471
2791
|
}>;
|
|
2472
2792
|
export type WhatsAppTemplateSlugContent = {
|
|
2473
2793
|
readonly templateSlug: string;
|
|
2474
2794
|
readonly templateData?: WhatsAppTemplateData;
|
|
2475
2795
|
readonly flowToken?: string;
|
|
2796
|
+
readonly flowActionData?: JsonObject_1;
|
|
2476
2797
|
};
|
|
2477
2798
|
export declare const WhatsAppTemplateSlugContent: Schema.Struct<{
|
|
2478
2799
|
readonly templateSlug: Schema.String;
|
|
2479
2800
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2480
2801
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
2481
|
-
|
|
2482
|
-
export type WhatsAppListSection = {
|
|
2483
|
-
readonly title?: string;
|
|
2484
|
-
readonly rows: ReadonlyArray<WhatsAppListRow>;
|
|
2485
|
-
};
|
|
2486
|
-
export declare const WhatsAppListSection: Schema.Struct<{
|
|
2487
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
2488
|
-
readonly rows: Schema.$Array<Schema.Struct<{
|
|
2489
|
-
readonly id: Schema.String;
|
|
2490
|
-
readonly title: Schema.String;
|
|
2491
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
2492
|
-
}>>;
|
|
2493
|
-
}>;
|
|
2494
|
-
export type WhatsAppFlowMessage = {
|
|
2495
|
-
readonly type: "flow";
|
|
2496
|
-
readonly header?: WhatsAppTextHeader;
|
|
2497
|
-
readonly body: string;
|
|
2498
|
-
readonly footer?: string;
|
|
2499
|
-
readonly flowId: WhatsAppFlowId;
|
|
2500
|
-
readonly cta: string;
|
|
2501
|
-
readonly token?: string;
|
|
2502
|
-
readonly action?: "navigate" | "data_exchange";
|
|
2503
|
-
readonly screen?: string;
|
|
2504
|
-
readonly data?: {
|
|
2505
|
-
readonly [x: string]: JsonValue;
|
|
2506
|
-
};
|
|
2507
|
-
};
|
|
2508
|
-
export declare const WhatsAppFlowMessage: Schema.Struct<{
|
|
2509
|
-
readonly type: Schema.Literal<"flow">;
|
|
2510
|
-
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
2511
|
-
readonly type: Schema.Literal<"text">;
|
|
2512
|
-
readonly text: Schema.String;
|
|
2513
|
-
}>>;
|
|
2514
|
-
readonly body: Schema.String;
|
|
2515
|
-
readonly footer: Schema.optionalKey<Schema.String>;
|
|
2516
|
-
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
2517
|
-
readonly cta: Schema.String;
|
|
2518
|
-
readonly token: Schema.optionalKey<Schema.String>;
|
|
2519
|
-
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
2520
|
-
readonly screen: Schema.optionalKey<Schema.String>;
|
|
2521
|
-
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2802
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2522
2803
|
}>;
|
|
2523
2804
|
export type WhatsAppLocationContent = {
|
|
2524
2805
|
readonly location: WhatsAppLocation;
|
|
@@ -2604,11 +2885,13 @@ export type CreateWhatsAppFlowPayload = {
|
|
|
2604
2885
|
readonly projectId: TemplateProjectId;
|
|
2605
2886
|
readonly handle: string;
|
|
2606
2887
|
readonly categories: ReadonlyArray<"SIGN_UP" | "SIGN_IN" | "APPOINTMENT_BOOKING" | "LEAD_GENERATION" | "CONTACT_US" | "CUSTOMER_SUPPORT" | "SURVEY" | "OTHER">;
|
|
2888
|
+
readonly submissionHandler?: "agent" | "app";
|
|
2607
2889
|
};
|
|
2608
2890
|
export declare const CreateWhatsAppFlowPayload: Schema.Struct<{
|
|
2609
2891
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
2610
2892
|
readonly handle: Schema.String;
|
|
2611
2893
|
readonly categories: Schema.$Array<Schema.Union<readonly [Schema.Literal<"SIGN_UP">, Schema.Literal<"SIGN_IN">, Schema.Literal<"APPOINTMENT_BOOKING">, Schema.Literal<"LEAD_GENERATION">, Schema.Literal<"CONTACT_US">, Schema.Literal<"CUSTOMER_SUPPORT">, Schema.Literal<"SURVEY">, Schema.Literal<"OTHER">]>>;
|
|
2894
|
+
readonly submissionHandler: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"app">]>>;
|
|
2612
2895
|
}>;
|
|
2613
2896
|
export type Operation = {
|
|
2614
2897
|
readonly id: OperationId;
|
|
@@ -2768,14 +3051,22 @@ export declare const CreateEventPayload: Schema.Struct<{
|
|
|
2768
3051
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
2769
3052
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
2770
3053
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3054
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
2771
3055
|
}>, Schema.Struct<{
|
|
2772
3056
|
readonly externalId: Schema.String;
|
|
2773
3057
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
2774
3058
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3059
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
2775
3060
|
}>, Schema.Struct<{
|
|
2776
3061
|
readonly email: Schema.String;
|
|
2777
3062
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
2778
3063
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3064
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3065
|
+
}>, Schema.Struct<{
|
|
3066
|
+
readonly phone: Schema.String;
|
|
3067
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3068
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3069
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
2779
3070
|
}>]>;
|
|
2780
3071
|
readonly name: Schema.String;
|
|
2781
3072
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
@@ -3128,6 +3419,32 @@ export declare const UpdateMailboxDraftPayload: Schema.Struct<{
|
|
|
3128
3419
|
readonly size: Schema.Finite;
|
|
3129
3420
|
}>>, Schema.Null]>>;
|
|
3130
3421
|
}>;
|
|
3422
|
+
export type WhatsAppImageHeader = WhatsAppImageHeaderLink | WhatsAppImageHeaderUpload;
|
|
3423
|
+
export declare const WhatsAppImageHeader: Schema.Union<readonly [Schema.Struct<{
|
|
3424
|
+
readonly type: Schema.Literal<"image">;
|
|
3425
|
+
readonly url: Schema.String;
|
|
3426
|
+
}>, Schema.Struct<{
|
|
3427
|
+
readonly type: Schema.Literal<"image">;
|
|
3428
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3429
|
+
}>]>;
|
|
3430
|
+
export type WhatsAppVideoHeader = WhatsAppVideoHeaderLink | WhatsAppVideoHeaderUpload;
|
|
3431
|
+
export declare const WhatsAppVideoHeader: Schema.Union<readonly [Schema.Struct<{
|
|
3432
|
+
readonly type: Schema.Literal<"video">;
|
|
3433
|
+
readonly url: Schema.String;
|
|
3434
|
+
}>, Schema.Struct<{
|
|
3435
|
+
readonly type: Schema.Literal<"video">;
|
|
3436
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3437
|
+
}>]>;
|
|
3438
|
+
export type WhatsAppDocumentHeader = WhatsAppDocumentHeaderLink | WhatsAppDocumentHeaderUpload;
|
|
3439
|
+
export declare const WhatsAppDocumentHeader: Schema.Union<readonly [Schema.Struct<{
|
|
3440
|
+
readonly type: Schema.Literal<"document">;
|
|
3441
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3442
|
+
readonly url: Schema.String;
|
|
3443
|
+
}>, Schema.Struct<{
|
|
3444
|
+
readonly type: Schema.Literal<"document">;
|
|
3445
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3446
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3447
|
+
}>]>;
|
|
3131
3448
|
export type WhatsAppImage = WhatsAppImageLink | WhatsAppImageUpload;
|
|
3132
3449
|
export declare const WhatsAppImage: Schema.Union<readonly [Schema.Struct<{
|
|
3133
3450
|
readonly type: Schema.Literal<"image">;
|
|
@@ -3176,32 +3493,6 @@ export declare const WhatsAppSticker: Schema.Union<readonly [Schema.Struct<{
|
|
|
3176
3493
|
readonly type: Schema.Literal<"sticker">;
|
|
3177
3494
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3178
3495
|
}>]>;
|
|
3179
|
-
export type WhatsAppImageHeader = WhatsAppImageHeaderLink | WhatsAppImageHeaderUpload;
|
|
3180
|
-
export declare const WhatsAppImageHeader: Schema.Union<readonly [Schema.Struct<{
|
|
3181
|
-
readonly type: Schema.Literal<"image">;
|
|
3182
|
-
readonly url: Schema.String;
|
|
3183
|
-
}>, Schema.Struct<{
|
|
3184
|
-
readonly type: Schema.Literal<"image">;
|
|
3185
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3186
|
-
}>]>;
|
|
3187
|
-
export type WhatsAppVideoHeader = WhatsAppVideoHeaderLink | WhatsAppVideoHeaderUpload;
|
|
3188
|
-
export declare const WhatsAppVideoHeader: Schema.Union<readonly [Schema.Struct<{
|
|
3189
|
-
readonly type: Schema.Literal<"video">;
|
|
3190
|
-
readonly url: Schema.String;
|
|
3191
|
-
}>, Schema.Struct<{
|
|
3192
|
-
readonly type: Schema.Literal<"video">;
|
|
3193
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3194
|
-
}>]>;
|
|
3195
|
-
export type WhatsAppDocumentHeader = WhatsAppDocumentHeaderLink | WhatsAppDocumentHeaderUpload;
|
|
3196
|
-
export declare const WhatsAppDocumentHeader: Schema.Union<readonly [Schema.Struct<{
|
|
3197
|
-
readonly type: Schema.Literal<"document">;
|
|
3198
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3199
|
-
readonly url: Schema.String;
|
|
3200
|
-
}>, Schema.Struct<{
|
|
3201
|
-
readonly type: Schema.Literal<"document">;
|
|
3202
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3203
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3204
|
-
}>]>;
|
|
3205
3496
|
export type WhatsAppTemplateBindings = {
|
|
3206
3497
|
readonly [x: string]: WhatsAppTemplateBinding;
|
|
3207
3498
|
};
|
|
@@ -3281,10 +3572,18 @@ export declare const JourneyTrigger: Schema.Union<readonly [Schema.Struct<{
|
|
|
3281
3572
|
}>]>;
|
|
3282
3573
|
export type JourneyWaitForEventConfig = {
|
|
3283
3574
|
readonly eventName: JourneyEventName;
|
|
3575
|
+
readonly correlation?: {
|
|
3576
|
+
readonly eventProperty: string;
|
|
3577
|
+
readonly entryProperty: string;
|
|
3578
|
+
};
|
|
3284
3579
|
readonly timeoutSeconds: number;
|
|
3285
3580
|
};
|
|
3286
3581
|
export declare const JourneyWaitForEventConfig: Schema.Struct<{
|
|
3287
3582
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3583
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
3584
|
+
readonly eventProperty: Schema.String;
|
|
3585
|
+
readonly entryProperty: Schema.String;
|
|
3586
|
+
}>>;
|
|
3288
3587
|
readonly timeoutSeconds: Schema.Finite;
|
|
3289
3588
|
}>;
|
|
3290
3589
|
export type JourneyEventPredicate = {
|
|
@@ -3315,6 +3614,7 @@ export declare const JourneySendEmailNode: Schema.Struct<{
|
|
|
3315
3614
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
3316
3615
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
3317
3616
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
3617
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3318
3618
|
}>;
|
|
3319
3619
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3320
3620
|
readonly nodeId: Schema.String;
|
|
@@ -3358,6 +3658,7 @@ export declare const JourneyWebhookNode: Schema.Struct<{
|
|
|
3358
3658
|
readonly type: Schema.Literal<"webhook">;
|
|
3359
3659
|
readonly config: Schema.Struct<{
|
|
3360
3660
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
3661
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3361
3662
|
}>;
|
|
3362
3663
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3363
3664
|
readonly nodeId: Schema.String;
|
|
@@ -3405,6 +3706,53 @@ export declare const JourneyCustomFieldPredicate: Schema.Struct<{
|
|
|
3405
3706
|
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
3406
3707
|
}>]>;
|
|
3407
3708
|
}>;
|
|
3709
|
+
export type JourneyEntryEventPropertyPredicate = {
|
|
3710
|
+
readonly type: "entry_event_property";
|
|
3711
|
+
readonly property: string;
|
|
3712
|
+
readonly comparison: JourneyComparison;
|
|
3713
|
+
};
|
|
3714
|
+
export declare const JourneyEntryEventPropertyPredicate: Schema.Struct<{
|
|
3715
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
3716
|
+
readonly property: Schema.String;
|
|
3717
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
3718
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
3719
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
3720
|
+
}>, Schema.Struct<{
|
|
3721
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
3722
|
+
readonly value: Schema.Finite;
|
|
3723
|
+
}>, Schema.Struct<{
|
|
3724
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
3725
|
+
readonly value: Schema.String;
|
|
3726
|
+
}>, Schema.Struct<{
|
|
3727
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
3728
|
+
}>]>;
|
|
3729
|
+
}>;
|
|
3730
|
+
export type WhatsAppListMessage = {
|
|
3731
|
+
readonly type: "list";
|
|
3732
|
+
readonly header?: WhatsAppTextHeader;
|
|
3733
|
+
readonly body: string;
|
|
3734
|
+
readonly footer?: string;
|
|
3735
|
+
readonly button: string;
|
|
3736
|
+
readonly sections: ReadonlyArray<WhatsAppListSection>;
|
|
3737
|
+
};
|
|
3738
|
+
export declare const WhatsAppListMessage: Schema.Struct<{
|
|
3739
|
+
readonly type: Schema.Literal<"list">;
|
|
3740
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
3741
|
+
readonly type: Schema.Literal<"text">;
|
|
3742
|
+
readonly text: Schema.String;
|
|
3743
|
+
}>>;
|
|
3744
|
+
readonly body: Schema.String;
|
|
3745
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
3746
|
+
readonly button: Schema.String;
|
|
3747
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
3748
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
3749
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
3750
|
+
readonly id: Schema.String;
|
|
3751
|
+
readonly title: Schema.String;
|
|
3752
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
3753
|
+
}>>;
|
|
3754
|
+
}>>;
|
|
3755
|
+
}>;
|
|
3408
3756
|
export type CreateMailboxPayload = {
|
|
3409
3757
|
readonly namespaceId?: NamespaceId | null;
|
|
3410
3758
|
readonly endpoint: CreateMailboxEndpointPayload;
|
|
@@ -3530,32 +3878,6 @@ export declare const MailboxSendReceipt: Schema.Struct<{
|
|
|
3530
3878
|
readonly createdAt: Schema.String;
|
|
3531
3879
|
readonly updatedAt: Schema.String;
|
|
3532
3880
|
}>;
|
|
3533
|
-
export type WhatsAppListMessage = {
|
|
3534
|
-
readonly type: "list";
|
|
3535
|
-
readonly header?: WhatsAppTextHeader;
|
|
3536
|
-
readonly body: string;
|
|
3537
|
-
readonly footer?: string;
|
|
3538
|
-
readonly button: string;
|
|
3539
|
-
readonly sections: ReadonlyArray<WhatsAppListSection>;
|
|
3540
|
-
};
|
|
3541
|
-
export declare const WhatsAppListMessage: Schema.Struct<{
|
|
3542
|
-
readonly type: Schema.Literal<"list">;
|
|
3543
|
-
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
3544
|
-
readonly type: Schema.Literal<"text">;
|
|
3545
|
-
readonly text: Schema.String;
|
|
3546
|
-
}>>;
|
|
3547
|
-
readonly body: Schema.String;
|
|
3548
|
-
readonly footer: Schema.optionalKey<Schema.String>;
|
|
3549
|
-
readonly button: Schema.String;
|
|
3550
|
-
readonly sections: Schema.$Array<Schema.Struct<{
|
|
3551
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
3552
|
-
readonly rows: Schema.$Array<Schema.Struct<{
|
|
3553
|
-
readonly id: Schema.String;
|
|
3554
|
-
readonly title: Schema.String;
|
|
3555
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
3556
|
-
}>>;
|
|
3557
|
-
}>>;
|
|
3558
|
-
}>;
|
|
3559
3881
|
export type OperationAccepted = {
|
|
3560
3882
|
readonly operation: Operation;
|
|
3561
3883
|
readonly links: {
|
|
@@ -3647,14 +3969,22 @@ export declare const BatchEventsPayload: Schema.Struct<{
|
|
|
3647
3969
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
3648
3970
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3649
3971
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3972
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3650
3973
|
}>, Schema.Struct<{
|
|
3651
3974
|
readonly externalId: Schema.String;
|
|
3652
3975
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3653
3976
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3977
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3654
3978
|
}>, Schema.Struct<{
|
|
3655
3979
|
readonly email: Schema.String;
|
|
3656
3980
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3657
3981
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3982
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3983
|
+
}>, Schema.Struct<{
|
|
3984
|
+
readonly phone: Schema.String;
|
|
3985
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3986
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3987
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3658
3988
|
}>]>;
|
|
3659
3989
|
readonly name: Schema.String;
|
|
3660
3990
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
@@ -3664,14 +3994,22 @@ export declare const BatchEventsPayload: Schema.Struct<{
|
|
|
3664
3994
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
3665
3995
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3666
3996
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3997
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3667
3998
|
}>, Schema.Struct<{
|
|
3668
3999
|
readonly externalId: Schema.String;
|
|
3669
4000
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3670
4001
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
4002
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3671
4003
|
}>, Schema.Struct<{
|
|
3672
4004
|
readonly email: Schema.String;
|
|
3673
4005
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3674
4006
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
4007
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
4008
|
+
}>, Schema.Struct<{
|
|
4009
|
+
readonly phone: Schema.String;
|
|
4010
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
4011
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
4012
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3675
4013
|
}>]>;
|
|
3676
4014
|
readonly name: Schema.String;
|
|
3677
4015
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
@@ -3950,70 +4288,70 @@ export declare const ReplyMailboxMessagePayload: Schema.Union<readonly [Schema.S
|
|
|
3950
4288
|
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3951
4289
|
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3952
4290
|
}>]>;
|
|
3953
|
-
export type
|
|
3954
|
-
export declare const
|
|
4291
|
+
export type WhatsAppInteractiveHeader = WhatsAppTextHeader | WhatsAppImageHeader | WhatsAppVideoHeader | WhatsAppDocumentHeader;
|
|
4292
|
+
export declare const WhatsAppInteractiveHeader: Schema.Union<readonly [Schema.Struct<{
|
|
4293
|
+
readonly type: Schema.Literal<"text">;
|
|
4294
|
+
readonly text: Schema.String;
|
|
4295
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
3955
4296
|
readonly type: Schema.Literal<"image">;
|
|
3956
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3957
4297
|
readonly url: Schema.String;
|
|
3958
4298
|
}>, Schema.Struct<{
|
|
3959
4299
|
readonly type: Schema.Literal<"image">;
|
|
3960
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3961
4300
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3962
4301
|
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3963
4302
|
readonly type: Schema.Literal<"video">;
|
|
3964
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3965
4303
|
readonly url: Schema.String;
|
|
3966
4304
|
}>, Schema.Struct<{
|
|
3967
4305
|
readonly type: Schema.Literal<"video">;
|
|
3968
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3969
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3970
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3971
|
-
readonly type: Schema.Literal<"audio">;
|
|
3972
|
-
readonly url: Schema.String;
|
|
3973
|
-
}>, Schema.Struct<{
|
|
3974
|
-
readonly type: Schema.Literal<"audio">;
|
|
3975
4306
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3976
4307
|
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3977
4308
|
readonly type: Schema.Literal<"document">;
|
|
3978
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3979
4309
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3980
4310
|
readonly url: Schema.String;
|
|
3981
4311
|
}>, Schema.Struct<{
|
|
3982
4312
|
readonly type: Schema.Literal<"document">;
|
|
3983
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3984
4313
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3985
4314
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3986
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3987
|
-
readonly type: Schema.Literal<"sticker">;
|
|
3988
|
-
readonly url: Schema.String;
|
|
3989
|
-
}>, Schema.Struct<{
|
|
3990
|
-
readonly type: Schema.Literal<"sticker">;
|
|
3991
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3992
4315
|
}>]>]>;
|
|
3993
|
-
export type
|
|
3994
|
-
export declare const
|
|
3995
|
-
readonly type: Schema.Literal<"text">;
|
|
3996
|
-
readonly text: Schema.String;
|
|
3997
|
-
}>, Schema.Union<readonly [Schema.Struct<{
|
|
4316
|
+
export type WhatsAppOutboundMedia = WhatsAppImage | WhatsAppVideo | WhatsAppAudio | WhatsAppDocument | WhatsAppSticker;
|
|
4317
|
+
export declare const WhatsAppOutboundMedia: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
3998
4318
|
readonly type: Schema.Literal<"image">;
|
|
4319
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3999
4320
|
readonly url: Schema.String;
|
|
4000
4321
|
}>, Schema.Struct<{
|
|
4001
4322
|
readonly type: Schema.Literal<"image">;
|
|
4323
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4002
4324
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4003
4325
|
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4004
4326
|
readonly type: Schema.Literal<"video">;
|
|
4327
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4005
4328
|
readonly url: Schema.String;
|
|
4006
4329
|
}>, Schema.Struct<{
|
|
4007
4330
|
readonly type: Schema.Literal<"video">;
|
|
4331
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4332
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4333
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4334
|
+
readonly type: Schema.Literal<"audio">;
|
|
4335
|
+
readonly url: Schema.String;
|
|
4336
|
+
}>, Schema.Struct<{
|
|
4337
|
+
readonly type: Schema.Literal<"audio">;
|
|
4008
4338
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4009
4339
|
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4010
4340
|
readonly type: Schema.Literal<"document">;
|
|
4341
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4011
4342
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4012
4343
|
readonly url: Schema.String;
|
|
4013
4344
|
}>, Schema.Struct<{
|
|
4014
4345
|
readonly type: Schema.Literal<"document">;
|
|
4346
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4015
4347
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4016
4348
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4349
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4350
|
+
readonly type: Schema.Literal<"sticker">;
|
|
4351
|
+
readonly url: Schema.String;
|
|
4352
|
+
}>, Schema.Struct<{
|
|
4353
|
+
readonly type: Schema.Literal<"sticker">;
|
|
4354
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4017
4355
|
}>]>]>;
|
|
4018
4356
|
export type WhatsAppTemplateDispatch = {
|
|
4019
4357
|
readonly template: TemplateId | string;
|
|
@@ -4043,6 +4381,7 @@ export type JourneySendWhatsAppConfig = {
|
|
|
4043
4381
|
readonly eventBindings?: {
|
|
4044
4382
|
readonly [x: string]: string;
|
|
4045
4383
|
};
|
|
4384
|
+
readonly flowActionDataBinding?: string;
|
|
4046
4385
|
};
|
|
4047
4386
|
export declare const JourneySendWhatsAppConfig: Schema.Struct<{
|
|
4048
4387
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
@@ -4058,6 +4397,7 @@ export declare const JourneySendWhatsAppConfig: Schema.Struct<{
|
|
|
4058
4397
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
4059
4398
|
}>>;
|
|
4060
4399
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
4400
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
4061
4401
|
}>;
|
|
4062
4402
|
export type JourneyWaitForEventNode = {
|
|
4063
4403
|
readonly type: "wait_for_event";
|
|
@@ -4068,6 +4408,10 @@ export declare const JourneyWaitForEventNode: Schema.Struct<{
|
|
|
4068
4408
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
4069
4409
|
readonly config: Schema.Struct<{
|
|
4070
4410
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
4411
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
4412
|
+
readonly eventProperty: Schema.String;
|
|
4413
|
+
readonly entryProperty: Schema.String;
|
|
4414
|
+
}>>;
|
|
4071
4415
|
readonly timeoutSeconds: Schema.Finite;
|
|
4072
4416
|
}>;
|
|
4073
4417
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -4078,7 +4422,7 @@ export declare const JourneyWaitForEventNode: Schema.Struct<{
|
|
|
4078
4422
|
readonly outcome: Schema.Union<readonly [Schema.Literal<"matched">, Schema.Literal<"timed_out">]>;
|
|
4079
4423
|
}>]>;
|
|
4080
4424
|
}>;
|
|
4081
|
-
export type JourneyPredicate = JourneyTagPredicate | JourneyPropertyPredicate | JourneyCustomFieldPredicate | JourneyEventPredicate;
|
|
4425
|
+
export type JourneyPredicate = JourneyTagPredicate | JourneyPropertyPredicate | JourneyCustomFieldPredicate | JourneyEventPredicate | JourneyEntryEventPropertyPredicate;
|
|
4082
4426
|
export declare const JourneyPredicate: Schema.Union<readonly [Schema.Struct<{
|
|
4083
4427
|
readonly type: Schema.Literal<"tag">;
|
|
4084
4428
|
readonly tag: Schema.String;
|
|
@@ -4117,6 +4461,21 @@ export declare const JourneyPredicate: Schema.Union<readonly [Schema.Struct<{
|
|
|
4117
4461
|
readonly type: Schema.Literal<"event">;
|
|
4118
4462
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
4119
4463
|
readonly occurred: Schema.Boolean;
|
|
4464
|
+
}>, Schema.Struct<{
|
|
4465
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
4466
|
+
readonly property: Schema.String;
|
|
4467
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
4468
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
4469
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
4470
|
+
}>, Schema.Struct<{
|
|
4471
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
4472
|
+
readonly value: Schema.Finite;
|
|
4473
|
+
}>, Schema.Struct<{
|
|
4474
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
4475
|
+
readonly value: Schema.String;
|
|
4476
|
+
}>, Schema.Struct<{
|
|
4477
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
4478
|
+
}>]>;
|
|
4120
4479
|
}>]>;
|
|
4121
4480
|
declare const MailboxSendRefusedError_base: Schema.Class<MailboxSendRefusedError, Schema.Struct<{
|
|
4122
4481
|
readonly _tag: Schema.tag<"MailboxSendRefusedError">;
|
|
@@ -4555,50 +4914,6 @@ export declare const EmailSendMessagePayload: Schema.Struct<{
|
|
|
4555
4914
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
4556
4915
|
}>;
|
|
4557
4916
|
}>;
|
|
4558
|
-
export type WhatsAppMediaContent = {
|
|
4559
|
-
readonly media: WhatsAppOutboundMedia;
|
|
4560
|
-
};
|
|
4561
|
-
export declare const WhatsAppMediaContent: Schema.Struct<{
|
|
4562
|
-
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4563
|
-
readonly type: Schema.Literal<"image">;
|
|
4564
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4565
|
-
readonly url: Schema.String;
|
|
4566
|
-
}>, Schema.Struct<{
|
|
4567
|
-
readonly type: Schema.Literal<"image">;
|
|
4568
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4569
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4570
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4571
|
-
readonly type: Schema.Literal<"video">;
|
|
4572
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4573
|
-
readonly url: Schema.String;
|
|
4574
|
-
}>, Schema.Struct<{
|
|
4575
|
-
readonly type: Schema.Literal<"video">;
|
|
4576
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4577
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4578
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4579
|
-
readonly type: Schema.Literal<"audio">;
|
|
4580
|
-
readonly url: Schema.String;
|
|
4581
|
-
}>, Schema.Struct<{
|
|
4582
|
-
readonly type: Schema.Literal<"audio">;
|
|
4583
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4584
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4585
|
-
readonly type: Schema.Literal<"document">;
|
|
4586
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4587
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4588
|
-
readonly url: Schema.String;
|
|
4589
|
-
}>, Schema.Struct<{
|
|
4590
|
-
readonly type: Schema.Literal<"document">;
|
|
4591
|
-
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4592
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4593
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4594
|
-
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4595
|
-
readonly type: Schema.Literal<"sticker">;
|
|
4596
|
-
readonly url: Schema.String;
|
|
4597
|
-
}>, Schema.Struct<{
|
|
4598
|
-
readonly type: Schema.Literal<"sticker">;
|
|
4599
|
-
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4600
|
-
}>]>]>;
|
|
4601
|
-
}>;
|
|
4602
4917
|
export type WhatsAppButtonsMessage = {
|
|
4603
4918
|
readonly type: "buttons";
|
|
4604
4919
|
readonly header?: WhatsAppInteractiveHeader;
|
|
@@ -4678,6 +4993,50 @@ export declare const WhatsAppCtaUrlMessage: Schema.Struct<{
|
|
|
4678
4993
|
readonly displayText: Schema.String;
|
|
4679
4994
|
readonly url: Schema.String;
|
|
4680
4995
|
}>;
|
|
4996
|
+
export type WhatsAppMediaContent = {
|
|
4997
|
+
readonly media: WhatsAppOutboundMedia;
|
|
4998
|
+
};
|
|
4999
|
+
export declare const WhatsAppMediaContent: Schema.Struct<{
|
|
5000
|
+
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5001
|
+
readonly type: Schema.Literal<"image">;
|
|
5002
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5003
|
+
readonly url: Schema.String;
|
|
5004
|
+
}>, Schema.Struct<{
|
|
5005
|
+
readonly type: Schema.Literal<"image">;
|
|
5006
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5007
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5008
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5009
|
+
readonly type: Schema.Literal<"video">;
|
|
5010
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5011
|
+
readonly url: Schema.String;
|
|
5012
|
+
}>, Schema.Struct<{
|
|
5013
|
+
readonly type: Schema.Literal<"video">;
|
|
5014
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5015
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5016
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5017
|
+
readonly type: Schema.Literal<"audio">;
|
|
5018
|
+
readonly url: Schema.String;
|
|
5019
|
+
}>, Schema.Struct<{
|
|
5020
|
+
readonly type: Schema.Literal<"audio">;
|
|
5021
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5022
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5023
|
+
readonly type: Schema.Literal<"document">;
|
|
5024
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5025
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5026
|
+
readonly url: Schema.String;
|
|
5027
|
+
}>, Schema.Struct<{
|
|
5028
|
+
readonly type: Schema.Literal<"document">;
|
|
5029
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5030
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5031
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5032
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5033
|
+
readonly type: Schema.Literal<"sticker">;
|
|
5034
|
+
readonly url: Schema.String;
|
|
5035
|
+
}>, Schema.Struct<{
|
|
5036
|
+
readonly type: Schema.Literal<"sticker">;
|
|
5037
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5038
|
+
}>]>]>;
|
|
5039
|
+
}>;
|
|
4681
5040
|
export type WhatsAppCampaignContentInput = {
|
|
4682
5041
|
readonly channel: "whatsapp";
|
|
4683
5042
|
readonly whatsapp: WhatsAppTemplateDispatch;
|
|
@@ -4720,6 +5079,7 @@ export declare const WhatsAppJourneySendNode: Schema.Struct<{
|
|
|
4720
5079
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
4721
5080
|
}>>;
|
|
4722
5081
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
5082
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
4723
5083
|
}>;
|
|
4724
5084
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4725
5085
|
readonly nodeId: Schema.String;
|
|
@@ -4769,6 +5129,21 @@ export declare const JourneyCondition: Schema.Struct<{
|
|
|
4769
5129
|
readonly type: Schema.Literal<"event">;
|
|
4770
5130
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
4771
5131
|
readonly occurred: Schema.Boolean;
|
|
5132
|
+
}>, Schema.Struct<{
|
|
5133
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
5134
|
+
readonly property: Schema.String;
|
|
5135
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
5136
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
5137
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
5138
|
+
}>, Schema.Struct<{
|
|
5139
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
5140
|
+
readonly value: Schema.Finite;
|
|
5141
|
+
}>, Schema.Struct<{
|
|
5142
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
5143
|
+
readonly value: Schema.String;
|
|
5144
|
+
}>, Schema.Struct<{
|
|
5145
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
5146
|
+
}>]>;
|
|
4772
5147
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4773
5148
|
readonly type: Schema.Literal<"tag">;
|
|
4774
5149
|
readonly tag: Schema.String;
|
|
@@ -4807,17 +5182,32 @@ export declare const JourneyCondition: Schema.Struct<{
|
|
|
4807
5182
|
readonly type: Schema.Literal<"event">;
|
|
4808
5183
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
4809
5184
|
readonly occurred: Schema.Boolean;
|
|
4810
|
-
}
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
5185
|
+
}>, Schema.Struct<{
|
|
5186
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
5187
|
+
readonly property: Schema.String;
|
|
5188
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
5189
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
5190
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
5191
|
+
}>, Schema.Struct<{
|
|
5192
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
5193
|
+
readonly value: Schema.Finite;
|
|
5194
|
+
}>, Schema.Struct<{
|
|
5195
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
5196
|
+
readonly value: Schema.String;
|
|
5197
|
+
}>, Schema.Struct<{
|
|
5198
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
5199
|
+
}>]>;
|
|
5200
|
+
}>]>]>;
|
|
5201
|
+
}>;
|
|
5202
|
+
export type AgentDefinition = {
|
|
5203
|
+
readonly instructions: string;
|
|
5204
|
+
readonly knowledge: string;
|
|
5205
|
+
readonly knowledgeSourceIds?: ReadonlyArray<KnowledgeSourceId>;
|
|
5206
|
+
readonly endpointIds: ReadonlyArray<MailboxEndpointId>;
|
|
5207
|
+
readonly integrations: ReadonlyArray<AgentIntegrationGrant>;
|
|
5208
|
+
readonly policy: PolicyConfiguration;
|
|
5209
|
+
readonly model: AgentModelChoice;
|
|
5210
|
+
readonly reasoning: AgentReasoning;
|
|
4821
5211
|
readonly workingHours: WorkingHours | null;
|
|
4822
5212
|
readonly takeoverTimeoutMinutes: number;
|
|
4823
5213
|
readonly eventTriggers?: ReadonlyArray<string>;
|
|
@@ -5020,6 +5410,103 @@ export declare const AgentModuleManifest: Schema.Struct<{
|
|
|
5020
5410
|
readonly events: Schema.$Array<Schema.String>;
|
|
5021
5411
|
readonly schedules: Schema.$Array<Schema.String>;
|
|
5022
5412
|
}>;
|
|
5413
|
+
export type WhatsAppStoredInteractive = WhatsAppButtonsMessage | WhatsAppListMessage | WhatsAppCtaUrlMessage | WhatsAppStoredFlowMessage;
|
|
5414
|
+
export declare const WhatsAppStoredInteractive: Schema.Union<readonly [Schema.Struct<{
|
|
5415
|
+
readonly type: Schema.Literal<"buttons">;
|
|
5416
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5417
|
+
readonly type: Schema.Literal<"text">;
|
|
5418
|
+
readonly text: Schema.String;
|
|
5419
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
5420
|
+
readonly type: Schema.Literal<"image">;
|
|
5421
|
+
readonly url: Schema.String;
|
|
5422
|
+
}>, Schema.Struct<{
|
|
5423
|
+
readonly type: Schema.Literal<"image">;
|
|
5424
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5425
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5426
|
+
readonly type: Schema.Literal<"video">;
|
|
5427
|
+
readonly url: Schema.String;
|
|
5428
|
+
}>, Schema.Struct<{
|
|
5429
|
+
readonly type: Schema.Literal<"video">;
|
|
5430
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5431
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5432
|
+
readonly type: Schema.Literal<"document">;
|
|
5433
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5434
|
+
readonly url: Schema.String;
|
|
5435
|
+
}>, Schema.Struct<{
|
|
5436
|
+
readonly type: Schema.Literal<"document">;
|
|
5437
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5438
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5439
|
+
}>]>]>>;
|
|
5440
|
+
readonly body: Schema.String;
|
|
5441
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5442
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
5443
|
+
readonly id: Schema.String;
|
|
5444
|
+
readonly title: Schema.String;
|
|
5445
|
+
}>>;
|
|
5446
|
+
}>, Schema.Struct<{
|
|
5447
|
+
readonly type: Schema.Literal<"list">;
|
|
5448
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
5449
|
+
readonly type: Schema.Literal<"text">;
|
|
5450
|
+
readonly text: Schema.String;
|
|
5451
|
+
}>>;
|
|
5452
|
+
readonly body: Schema.String;
|
|
5453
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5454
|
+
readonly button: Schema.String;
|
|
5455
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
5456
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5457
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
5458
|
+
readonly id: Schema.String;
|
|
5459
|
+
readonly title: Schema.String;
|
|
5460
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
5461
|
+
}>>;
|
|
5462
|
+
}>>;
|
|
5463
|
+
}>, Schema.Struct<{
|
|
5464
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
5465
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5466
|
+
readonly type: Schema.Literal<"text">;
|
|
5467
|
+
readonly text: Schema.String;
|
|
5468
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
5469
|
+
readonly type: Schema.Literal<"image">;
|
|
5470
|
+
readonly url: Schema.String;
|
|
5471
|
+
}>, Schema.Struct<{
|
|
5472
|
+
readonly type: Schema.Literal<"image">;
|
|
5473
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5474
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5475
|
+
readonly type: Schema.Literal<"video">;
|
|
5476
|
+
readonly url: Schema.String;
|
|
5477
|
+
}>, Schema.Struct<{
|
|
5478
|
+
readonly type: Schema.Literal<"video">;
|
|
5479
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5480
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5481
|
+
readonly type: Schema.Literal<"document">;
|
|
5482
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5483
|
+
readonly url: Schema.String;
|
|
5484
|
+
}>, Schema.Struct<{
|
|
5485
|
+
readonly type: Schema.Literal<"document">;
|
|
5486
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5487
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5488
|
+
}>]>]>>;
|
|
5489
|
+
readonly body: Schema.String;
|
|
5490
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5491
|
+
readonly displayText: Schema.String;
|
|
5492
|
+
readonly url: Schema.String;
|
|
5493
|
+
}>, Schema.Struct<{
|
|
5494
|
+
readonly type: Schema.Literal<"flow">;
|
|
5495
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
5496
|
+
readonly type: Schema.Literal<"text">;
|
|
5497
|
+
readonly text: Schema.String;
|
|
5498
|
+
}>>;
|
|
5499
|
+
readonly body: Schema.String;
|
|
5500
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5501
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
5502
|
+
readonly cta: Schema.String;
|
|
5503
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
5504
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
5505
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
5506
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5507
|
+
readonly flowVersionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
5508
|
+
readonly providerFlowId: Schema.String;
|
|
5509
|
+
}>]>;
|
|
5023
5510
|
export type WhatsAppInteractive = WhatsAppButtonsMessage | WhatsAppListMessage | WhatsAppCtaUrlMessage | WhatsAppFlowMessage;
|
|
5024
5511
|
export declare const WhatsAppInteractive: Schema.Union<readonly [Schema.Struct<{
|
|
5025
5512
|
readonly type: Schema.Literal<"buttons">;
|
|
@@ -5231,6 +5718,21 @@ export declare const JourneyBranchEdge: Schema.Struct<{
|
|
|
5231
5718
|
readonly type: Schema.Literal<"event">;
|
|
5232
5719
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5233
5720
|
readonly occurred: Schema.Boolean;
|
|
5721
|
+
}>, Schema.Struct<{
|
|
5722
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
5723
|
+
readonly property: Schema.String;
|
|
5724
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
5725
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
5726
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
5727
|
+
}>, Schema.Struct<{
|
|
5728
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
5729
|
+
readonly value: Schema.Finite;
|
|
5730
|
+
}>, Schema.Struct<{
|
|
5731
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
5732
|
+
readonly value: Schema.String;
|
|
5733
|
+
}>, Schema.Struct<{
|
|
5734
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
5735
|
+
}>]>;
|
|
5234
5736
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5235
5737
|
readonly type: Schema.Literal<"tag">;
|
|
5236
5738
|
readonly tag: Schema.String;
|
|
@@ -5269,6 +5771,21 @@ export declare const JourneyBranchEdge: Schema.Struct<{
|
|
|
5269
5771
|
readonly type: Schema.Literal<"event">;
|
|
5270
5772
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5271
5773
|
readonly occurred: Schema.Boolean;
|
|
5774
|
+
}>, Schema.Struct<{
|
|
5775
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
5776
|
+
readonly property: Schema.String;
|
|
5777
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
5778
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
5779
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
5780
|
+
}>, Schema.Struct<{
|
|
5781
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
5782
|
+
readonly value: Schema.Finite;
|
|
5783
|
+
}>, Schema.Struct<{
|
|
5784
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
5785
|
+
readonly value: Schema.String;
|
|
5786
|
+
}>, Schema.Struct<{
|
|
5787
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
5788
|
+
}>]>;
|
|
5272
5789
|
}>]>]>;
|
|
5273
5790
|
}>>;
|
|
5274
5791
|
}>;
|
|
@@ -5649,11 +6166,94 @@ export declare const AgentModuleBundle: Schema.Struct<{
|
|
|
5649
6166
|
readonly schedules: Schema.$Array<Schema.String>;
|
|
5650
6167
|
}>;
|
|
5651
6168
|
}>;
|
|
5652
|
-
export type
|
|
5653
|
-
readonly
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
6169
|
+
export type WhatsAppMessageContent = {
|
|
6170
|
+
readonly appHandlesFlowSubmission?: true;
|
|
6171
|
+
readonly text?: string | null;
|
|
6172
|
+
readonly template?: {
|
|
6173
|
+
readonly name: string;
|
|
6174
|
+
readonly language: string;
|
|
6175
|
+
readonly components: ReadonlyArray<{
|
|
6176
|
+
readonly type: "header" | "body" | "footer" | "button";
|
|
6177
|
+
readonly sub_type?: "url" | "quick_reply" | "copy_code" | "flow" | null;
|
|
6178
|
+
readonly index?: string | null;
|
|
6179
|
+
readonly parameters: ReadonlyArray<{
|
|
6180
|
+
readonly type: "text" | "currency" | "date_time" | "image" | "document" | "video" | "coupon_code" | "action";
|
|
6181
|
+
readonly text?: string | null;
|
|
6182
|
+
readonly currency?: {
|
|
6183
|
+
readonly fallback_value: string;
|
|
6184
|
+
readonly code: string;
|
|
6185
|
+
readonly amount_1000: number;
|
|
6186
|
+
} | null;
|
|
6187
|
+
readonly date_time?: {
|
|
6188
|
+
readonly fallback_value: string;
|
|
6189
|
+
} | null;
|
|
6190
|
+
readonly image?: {
|
|
6191
|
+
readonly link: string;
|
|
6192
|
+
} | null;
|
|
6193
|
+
readonly document?: {
|
|
6194
|
+
readonly link: string;
|
|
6195
|
+
readonly filename?: string | null;
|
|
6196
|
+
} | null;
|
|
6197
|
+
readonly video?: {
|
|
6198
|
+
readonly link: string;
|
|
6199
|
+
} | null;
|
|
6200
|
+
readonly coupon_code?: string | null;
|
|
6201
|
+
readonly action?: {
|
|
6202
|
+
readonly flow_token: string;
|
|
6203
|
+
readonly flow_action_data?: JsonObject;
|
|
6204
|
+
} | null;
|
|
6205
|
+
}>;
|
|
6206
|
+
}>;
|
|
6207
|
+
} | null;
|
|
6208
|
+
readonly interactive?: WhatsAppStoredInteractive;
|
|
6209
|
+
readonly media?: WhatsAppStoredMedia | null;
|
|
6210
|
+
readonly reaction?: WhatsAppStoredReaction;
|
|
6211
|
+
readonly location?: WhatsAppStoredLocation;
|
|
6212
|
+
readonly contacts?: ReadonlyArray<WhatsAppStoredContactCard>;
|
|
6213
|
+
readonly reply?: WhatsAppReceivedReply;
|
|
6214
|
+
readonly flowResponse?: WhatsAppReceivedFlowResponse;
|
|
6215
|
+
readonly context?: WhatsAppMessageReference;
|
|
6216
|
+
};
|
|
6217
|
+
export declare const WhatsAppMessageContent: Schema.Struct<{
|
|
6218
|
+
readonly appHandlesFlowSubmission: Schema.optionalKey<Schema.Literal<true>>;
|
|
6219
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6220
|
+
readonly template: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6221
|
+
readonly name: Schema.String;
|
|
6222
|
+
readonly language: Schema.String;
|
|
6223
|
+
readonly components: Schema.$Array<Schema.Struct<{
|
|
6224
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"header">, Schema.Literal<"body">, Schema.Literal<"footer">, Schema.Literal<"button">]>;
|
|
6225
|
+
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]>>;
|
|
6226
|
+
readonly index: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6227
|
+
readonly parameters: Schema.$Array<Schema.Struct<{
|
|
6228
|
+
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">]>;
|
|
6229
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6230
|
+
readonly currency: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6231
|
+
readonly fallback_value: Schema.String;
|
|
6232
|
+
readonly code: Schema.String;
|
|
6233
|
+
readonly amount_1000: Schema.Finite;
|
|
6234
|
+
}>, Schema.Null]>>;
|
|
6235
|
+
readonly date_time: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6236
|
+
readonly fallback_value: Schema.String;
|
|
6237
|
+
}>, Schema.Null]>>;
|
|
6238
|
+
readonly image: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6239
|
+
readonly link: Schema.String;
|
|
6240
|
+
}>, Schema.Null]>>;
|
|
6241
|
+
readonly document: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6242
|
+
readonly link: Schema.String;
|
|
6243
|
+
readonly filename: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6244
|
+
}>, Schema.Null]>>;
|
|
6245
|
+
readonly video: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6246
|
+
readonly link: Schema.String;
|
|
6247
|
+
}>, Schema.Null]>>;
|
|
6248
|
+
readonly coupon_code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6249
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6250
|
+
readonly flow_token: Schema.String;
|
|
6251
|
+
readonly flow_action_data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6252
|
+
}>, Schema.Null]>>;
|
|
6253
|
+
}>>;
|
|
6254
|
+
}>>;
|
|
6255
|
+
}>, Schema.Null]>>;
|
|
6256
|
+
readonly interactive: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5657
6257
|
readonly type: Schema.Literal<"buttons">;
|
|
5658
6258
|
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5659
6259
|
readonly type: Schema.Literal<"text">;
|
|
@@ -5746,94 +6346,278 @@ export declare const WhatsAppInteractiveContent: Schema.Struct<{
|
|
|
5746
6346
|
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
5747
6347
|
readonly screen: Schema.optionalKey<Schema.String>;
|
|
5748
6348
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
readonly
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
5758
|
-
readonly channel: Schema.Literal<"email">;
|
|
5759
|
-
readonly email: Schema.Struct<{
|
|
5760
|
-
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5761
|
-
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5762
|
-
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5763
|
-
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
5764
|
-
readonly filename: Schema.String;
|
|
5765
|
-
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5766
|
-
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
5767
|
-
readonly contentType: Schema.String;
|
|
5768
|
-
readonly size: Schema.Finite;
|
|
5769
|
-
}>>, Schema.Null]>>;
|
|
5770
|
-
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
5771
|
-
readonly inputContractId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateInputContractId">>;
|
|
5772
|
-
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
5773
|
-
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5774
|
-
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
5775
|
-
readonly locale: Schema.optionalKey<Schema.String>;
|
|
5776
|
-
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
5777
|
-
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
5778
|
-
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
5779
|
-
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
5780
|
-
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
5781
|
-
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
5782
|
-
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
5783
|
-
}>>;
|
|
5784
|
-
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
5785
|
-
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
5786
|
-
}>>;
|
|
5787
|
-
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
5788
|
-
readonly preheader: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5789
|
-
}>;
|
|
5790
|
-
readonly issue: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5791
|
-
readonly path: Schema.String;
|
|
5792
|
-
readonly commit: Schema.String;
|
|
5793
|
-
}>, Schema.Null]>>;
|
|
5794
|
-
readonly from: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5795
|
-
readonly email: Schema.String;
|
|
5796
|
-
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5797
|
-
}>, Schema.Null]>>;
|
|
5798
|
-
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
5799
|
-
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5800
|
-
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
6349
|
+
readonly flowVersionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
6350
|
+
readonly providerFlowId: Schema.String;
|
|
6351
|
+
}>]>>;
|
|
6352
|
+
readonly media: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6353
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
6354
|
+
readonly url: Schema.String;
|
|
6355
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
6356
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5801
6357
|
}>, Schema.Struct<{
|
|
5802
|
-
readonly
|
|
5803
|
-
readonly
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5807
|
-
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
5808
|
-
}>;
|
|
5809
|
-
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5810
|
-
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
6358
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
6359
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6360
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
6361
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5811
6362
|
}>, Schema.Struct<{
|
|
5812
|
-
readonly
|
|
5813
|
-
readonly
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
readonly
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
readonly
|
|
5828
|
-
readonly
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
readonly
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
6363
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
6364
|
+
readonly providerMediaId: Schema.String;
|
|
6365
|
+
readonly mimeType: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6366
|
+
readonly caption: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6367
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6368
|
+
}>]>, Schema.Null]>>;
|
|
6369
|
+
readonly reaction: Schema.optionalKey<Schema.Struct<{
|
|
6370
|
+
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
6371
|
+
readonly providerMessageId: Schema.String;
|
|
6372
|
+
readonly emoji: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6373
|
+
}>>;
|
|
6374
|
+
readonly location: Schema.optionalKey<Schema.Struct<{
|
|
6375
|
+
readonly latitude: Schema.Finite;
|
|
6376
|
+
readonly longitude: Schema.Finite;
|
|
6377
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
6378
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
6379
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
6380
|
+
}>>;
|
|
6381
|
+
readonly contacts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6382
|
+
readonly name: Schema.optionalKey<Schema.Struct<{
|
|
6383
|
+
readonly formattedName: Schema.optionalKey<Schema.String>;
|
|
6384
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
6385
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
6386
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
6387
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
6388
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
6389
|
+
}>>;
|
|
6390
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6391
|
+
readonly phone: Schema.optionalKey<Schema.String>;
|
|
6392
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6393
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
6394
|
+
}>>>;
|
|
6395
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6396
|
+
readonly email: Schema.optionalKey<Schema.String>;
|
|
6397
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6398
|
+
}>>>;
|
|
6399
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6400
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
6401
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6402
|
+
}>>>;
|
|
6403
|
+
readonly org: Schema.optionalKey<Schema.Struct<{
|
|
6404
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
6405
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
6406
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
6407
|
+
}>>;
|
|
6408
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6409
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
6410
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
6411
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
6412
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
6413
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
6414
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
6415
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6416
|
+
}>>>;
|
|
6417
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
6418
|
+
}>>>;
|
|
6419
|
+
readonly reply: Schema.optionalKey<Schema.Struct<{
|
|
6420
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"button">, Schema.Literal<"list">, Schema.Literal<"template_button">]>;
|
|
6421
|
+
readonly id: Schema.String;
|
|
6422
|
+
readonly title: Schema.String;
|
|
6423
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
6424
|
+
}>>;
|
|
6425
|
+
readonly flowResponse: Schema.optionalKey<Schema.Struct<{
|
|
6426
|
+
readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6427
|
+
readonly submissionHandler: Schema.optionalKey<Schema.Literal<"app">>;
|
|
6428
|
+
readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
6429
|
+
readonly body: Schema.optionalKey<Schema.String>;
|
|
6430
|
+
}>>;
|
|
6431
|
+
readonly context: Schema.optionalKey<Schema.Struct<{
|
|
6432
|
+
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
6433
|
+
readonly providerMessageId: Schema.String;
|
|
6434
|
+
}>>;
|
|
6435
|
+
}>;
|
|
6436
|
+
export type WhatsAppInteractiveContent = {
|
|
6437
|
+
readonly interactive: WhatsAppInteractive;
|
|
6438
|
+
};
|
|
6439
|
+
export declare const WhatsAppInteractiveContent: Schema.Struct<{
|
|
6440
|
+
readonly interactive: Schema.Union<readonly [Schema.Struct<{
|
|
6441
|
+
readonly type: Schema.Literal<"buttons">;
|
|
6442
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6443
|
+
readonly type: Schema.Literal<"text">;
|
|
6444
|
+
readonly text: Schema.String;
|
|
6445
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
6446
|
+
readonly type: Schema.Literal<"image">;
|
|
6447
|
+
readonly url: Schema.String;
|
|
6448
|
+
}>, Schema.Struct<{
|
|
6449
|
+
readonly type: Schema.Literal<"image">;
|
|
6450
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6451
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6452
|
+
readonly type: Schema.Literal<"video">;
|
|
6453
|
+
readonly url: Schema.String;
|
|
6454
|
+
}>, Schema.Struct<{
|
|
6455
|
+
readonly type: Schema.Literal<"video">;
|
|
6456
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6457
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6458
|
+
readonly type: Schema.Literal<"document">;
|
|
6459
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6460
|
+
readonly url: Schema.String;
|
|
6461
|
+
}>, Schema.Struct<{
|
|
6462
|
+
readonly type: Schema.Literal<"document">;
|
|
6463
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6464
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6465
|
+
}>]>]>>;
|
|
6466
|
+
readonly body: Schema.String;
|
|
6467
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6468
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
6469
|
+
readonly id: Schema.String;
|
|
6470
|
+
readonly title: Schema.String;
|
|
6471
|
+
}>>;
|
|
6472
|
+
}>, Schema.Struct<{
|
|
6473
|
+
readonly type: Schema.Literal<"list">;
|
|
6474
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
6475
|
+
readonly type: Schema.Literal<"text">;
|
|
6476
|
+
readonly text: Schema.String;
|
|
6477
|
+
}>>;
|
|
6478
|
+
readonly body: Schema.String;
|
|
6479
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6480
|
+
readonly button: Schema.String;
|
|
6481
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
6482
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
6483
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
6484
|
+
readonly id: Schema.String;
|
|
6485
|
+
readonly title: Schema.String;
|
|
6486
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
6487
|
+
}>>;
|
|
6488
|
+
}>>;
|
|
6489
|
+
}>, Schema.Struct<{
|
|
6490
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
6491
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6492
|
+
readonly type: Schema.Literal<"text">;
|
|
6493
|
+
readonly text: Schema.String;
|
|
6494
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
6495
|
+
readonly type: Schema.Literal<"image">;
|
|
6496
|
+
readonly url: Schema.String;
|
|
6497
|
+
}>, Schema.Struct<{
|
|
6498
|
+
readonly type: Schema.Literal<"image">;
|
|
6499
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6500
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6501
|
+
readonly type: Schema.Literal<"video">;
|
|
6502
|
+
readonly url: Schema.String;
|
|
6503
|
+
}>, Schema.Struct<{
|
|
6504
|
+
readonly type: Schema.Literal<"video">;
|
|
6505
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6506
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6507
|
+
readonly type: Schema.Literal<"document">;
|
|
6508
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6509
|
+
readonly url: Schema.String;
|
|
6510
|
+
}>, Schema.Struct<{
|
|
6511
|
+
readonly type: Schema.Literal<"document">;
|
|
6512
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6513
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6514
|
+
}>]>]>>;
|
|
6515
|
+
readonly body: Schema.String;
|
|
6516
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6517
|
+
readonly displayText: Schema.String;
|
|
6518
|
+
readonly url: Schema.String;
|
|
6519
|
+
}>, Schema.Struct<{
|
|
6520
|
+
readonly type: Schema.Literal<"flow">;
|
|
6521
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
6522
|
+
readonly type: Schema.Literal<"text">;
|
|
6523
|
+
readonly text: Schema.String;
|
|
6524
|
+
}>>;
|
|
6525
|
+
readonly body: Schema.String;
|
|
6526
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6527
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
6528
|
+
readonly cta: Schema.String;
|
|
6529
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
6530
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
6531
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
6532
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6533
|
+
}>]>;
|
|
6534
|
+
}>;
|
|
6535
|
+
export type CampaignComposition = {
|
|
6536
|
+
readonly content: CampaignContentInput;
|
|
6537
|
+
readonly audience: CampaignAudience;
|
|
6538
|
+
readonly contactId?: ContactId | null;
|
|
6539
|
+
};
|
|
6540
|
+
export declare const CampaignComposition: Schema.Struct<{
|
|
6541
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
6542
|
+
readonly channel: Schema.Literal<"email">;
|
|
6543
|
+
readonly email: Schema.Struct<{
|
|
6544
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6545
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6546
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6547
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
6548
|
+
readonly filename: Schema.String;
|
|
6549
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6550
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
6551
|
+
readonly contentType: Schema.String;
|
|
6552
|
+
readonly size: Schema.Finite;
|
|
6553
|
+
}>>, Schema.Null]>>;
|
|
6554
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
6555
|
+
readonly inputContractId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateInputContractId">>;
|
|
6556
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
6557
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6558
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
6559
|
+
readonly locale: Schema.optionalKey<Schema.String>;
|
|
6560
|
+
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
6561
|
+
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
6562
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
6563
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
6564
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
6565
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
6566
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
6567
|
+
}>>;
|
|
6568
|
+
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
6569
|
+
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
6570
|
+
}>>;
|
|
6571
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
6572
|
+
readonly preheader: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6573
|
+
}>;
|
|
6574
|
+
readonly issue: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6575
|
+
readonly path: Schema.String;
|
|
6576
|
+
readonly commit: Schema.String;
|
|
6577
|
+
}>, Schema.Null]>>;
|
|
6578
|
+
readonly from: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6579
|
+
readonly email: Schema.String;
|
|
6580
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6581
|
+
}>, Schema.Null]>>;
|
|
6582
|
+
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
6583
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
6584
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
6585
|
+
}>, Schema.Struct<{
|
|
6586
|
+
readonly channel: Schema.Literal<"sms">;
|
|
6587
|
+
readonly sms: Schema.Struct<{
|
|
6588
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6589
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
6590
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6591
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
6592
|
+
}>;
|
|
6593
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
6594
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
6595
|
+
}>, Schema.Struct<{
|
|
6596
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
6597
|
+
readonly whatsapp: Schema.Struct<{
|
|
6598
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
6599
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6600
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
6601
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
6602
|
+
}>, Schema.Struct<{
|
|
6603
|
+
readonly customField: Schema.String;
|
|
6604
|
+
}>]>>>;
|
|
6605
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
6606
|
+
}>;
|
|
6607
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
6608
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
6609
|
+
}>]>;
|
|
6610
|
+
readonly audience: Schema.Struct<{
|
|
6611
|
+
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
6612
|
+
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
6613
|
+
readonly excludeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
6614
|
+
readonly contactIds: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "ContactId">>, Schema.Null]>>;
|
|
6615
|
+
readonly groupIds: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "ContactGroupId">>, Schema.Null]>>;
|
|
6616
|
+
}>;
|
|
6617
|
+
readonly contactId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ContactId">, Schema.Null]>>;
|
|
6618
|
+
}>;
|
|
6619
|
+
export type JourneyBranchNode = {
|
|
6620
|
+
readonly type: "branch";
|
|
5837
6621
|
readonly config: JourneyEmptyConfig;
|
|
5838
6622
|
readonly next: ReadonlyArray<JourneyBranchEdge>;
|
|
5839
6623
|
};
|
|
@@ -5882,6 +6666,21 @@ export declare const JourneyBranchNode: Schema.Struct<{
|
|
|
5882
6666
|
readonly type: Schema.Literal<"event">;
|
|
5883
6667
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5884
6668
|
readonly occurred: Schema.Boolean;
|
|
6669
|
+
}>, Schema.Struct<{
|
|
6670
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
6671
|
+
readonly property: Schema.String;
|
|
6672
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
6673
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
6674
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
6675
|
+
}>, Schema.Struct<{
|
|
6676
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
6677
|
+
readonly value: Schema.Finite;
|
|
6678
|
+
}>, Schema.Struct<{
|
|
6679
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
6680
|
+
readonly value: Schema.String;
|
|
6681
|
+
}>, Schema.Struct<{
|
|
6682
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
6683
|
+
}>]>;
|
|
5885
6684
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5886
6685
|
readonly type: Schema.Literal<"tag">;
|
|
5887
6686
|
readonly tag: Schema.String;
|
|
@@ -5920,6 +6719,21 @@ export declare const JourneyBranchNode: Schema.Struct<{
|
|
|
5920
6719
|
readonly type: Schema.Literal<"event">;
|
|
5921
6720
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5922
6721
|
readonly occurred: Schema.Boolean;
|
|
6722
|
+
}>, Schema.Struct<{
|
|
6723
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
6724
|
+
readonly property: Schema.String;
|
|
6725
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
6726
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
6727
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
6728
|
+
}>, Schema.Struct<{
|
|
6729
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
6730
|
+
readonly value: Schema.Finite;
|
|
6731
|
+
}>, Schema.Struct<{
|
|
6732
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
6733
|
+
readonly value: Schema.String;
|
|
6734
|
+
}>, Schema.Struct<{
|
|
6735
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
6736
|
+
}>]>;
|
|
5923
6737
|
}>]>]>;
|
|
5924
6738
|
}>>;
|
|
5925
6739
|
}>>;
|
|
@@ -5949,83 +6763,365 @@ export declare const PublishAgentVersionPayload: Schema.Struct<{
|
|
|
5949
6763
|
readonly names: Schema.$Array<Schema.String>;
|
|
5950
6764
|
}>]>;
|
|
5951
6765
|
}>>;
|
|
5952
|
-
readonly policy: Schema.Struct<{
|
|
5953
|
-
readonly presets: Schema.$Array<Schema.String>;
|
|
5954
|
-
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5955
|
-
readonly match: Schema.Struct<{
|
|
5956
|
-
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
5957
|
-
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
5958
|
-
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
5959
|
-
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5960
|
-
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5961
|
-
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
5962
|
-
readonly kind: Schema.Literal<"agent">;
|
|
5963
|
-
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
5964
|
-
}>, Schema.Struct<{
|
|
5965
|
-
readonly kind: Schema.Literal<"apiKey">;
|
|
5966
|
-
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
5967
|
-
}>, Schema.Struct<{
|
|
5968
|
-
readonly kind: Schema.Literal<"member">;
|
|
5969
|
-
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
5970
|
-
}>, Schema.Struct<{
|
|
5971
|
-
readonly kind: Schema.Literal<"extension">;
|
|
5972
|
-
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
5973
|
-
}>]>, Schema.Null]>>;
|
|
5974
|
-
}>;
|
|
5975
|
-
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5976
|
-
readonly decide: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
5977
|
-
readonly atLeast: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
5978
|
-
}>, Schema.Struct<{
|
|
5979
|
-
readonly match: Schema.Struct<{
|
|
5980
|
-
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
5981
|
-
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
5982
|
-
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
5983
|
-
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5984
|
-
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5985
|
-
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
5986
|
-
readonly kind: Schema.Literal<"agent">;
|
|
5987
|
-
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
5988
|
-
}>, Schema.Struct<{
|
|
5989
|
-
readonly kind: Schema.Literal<"apiKey">;
|
|
5990
|
-
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
5991
|
-
}>, Schema.Struct<{
|
|
5992
|
-
readonly kind: Schema.Literal<"member">;
|
|
5993
|
-
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
5994
|
-
}>, Schema.Struct<{
|
|
5995
|
-
readonly kind: Schema.Literal<"extension">;
|
|
5996
|
-
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
5997
|
-
}>]>, Schema.Null]>>;
|
|
5998
|
-
}>;
|
|
5999
|
-
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6000
|
-
readonly decide: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
6001
|
-
readonly atLeast: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
6002
|
-
}>]>>;
|
|
6003
|
-
readonly instructions: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6004
|
-
}>;
|
|
6005
|
-
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
6006
|
-
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
6007
|
-
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
6008
|
-
readonly timeZone: Schema.String;
|
|
6009
|
-
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
6010
|
-
readonly day: Schema.Union<readonly [Schema.Literal<"monday">, Schema.Literal<"tuesday">, Schema.Literal<"wednesday">, Schema.Literal<"thursday">, Schema.Literal<"friday">, Schema.Literal<"saturday">, Schema.Literal<"sunday">]>;
|
|
6011
|
-
readonly opens: Schema.String;
|
|
6012
|
-
readonly closes: Schema.String;
|
|
6013
|
-
}>>;
|
|
6014
|
-
}>, Schema.Null]>;
|
|
6015
|
-
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
6016
|
-
readonly eventTriggers: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
6017
|
-
readonly followUpTemplate: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>>;
|
|
6018
|
-
readonly tools: Schema.$Record<Schema.String, Schema.Struct<{
|
|
6019
|
-
readonly description: Schema.String;
|
|
6020
|
-
readonly input: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
6021
|
-
readonly approval: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>>;
|
|
6022
|
-
readonly replay: Schema.Union<readonly [Schema.Literal<"safe">, Schema.Literal<"unsafe">]>;
|
|
6766
|
+
readonly policy: Schema.Struct<{
|
|
6767
|
+
readonly presets: Schema.$Array<Schema.String>;
|
|
6768
|
+
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
6769
|
+
readonly match: Schema.Struct<{
|
|
6770
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
6771
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
6772
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
6773
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6774
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6775
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
6776
|
+
readonly kind: Schema.Literal<"agent">;
|
|
6777
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
6778
|
+
}>, Schema.Struct<{
|
|
6779
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
6780
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
6781
|
+
}>, Schema.Struct<{
|
|
6782
|
+
readonly kind: Schema.Literal<"member">;
|
|
6783
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
6784
|
+
}>, Schema.Struct<{
|
|
6785
|
+
readonly kind: Schema.Literal<"extension">;
|
|
6786
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
6787
|
+
}>]>, Schema.Null]>>;
|
|
6788
|
+
}>;
|
|
6789
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6790
|
+
readonly decide: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
6791
|
+
readonly atLeast: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
6792
|
+
}>, Schema.Struct<{
|
|
6793
|
+
readonly match: Schema.Struct<{
|
|
6794
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
6795
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
6796
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
6797
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6798
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6799
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
6800
|
+
readonly kind: Schema.Literal<"agent">;
|
|
6801
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
6802
|
+
}>, Schema.Struct<{
|
|
6803
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
6804
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
6805
|
+
}>, Schema.Struct<{
|
|
6806
|
+
readonly kind: Schema.Literal<"member">;
|
|
6807
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
6808
|
+
}>, Schema.Struct<{
|
|
6809
|
+
readonly kind: Schema.Literal<"extension">;
|
|
6810
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
6811
|
+
}>]>, Schema.Null]>>;
|
|
6812
|
+
}>;
|
|
6813
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6814
|
+
readonly decide: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
6815
|
+
readonly atLeast: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
6816
|
+
}>]>>;
|
|
6817
|
+
readonly instructions: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6818
|
+
}>;
|
|
6819
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
6820
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
6821
|
+
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
6822
|
+
readonly timeZone: Schema.String;
|
|
6823
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
6824
|
+
readonly day: Schema.Union<readonly [Schema.Literal<"monday">, Schema.Literal<"tuesday">, Schema.Literal<"wednesday">, Schema.Literal<"thursday">, Schema.Literal<"friday">, Schema.Literal<"saturday">, Schema.Literal<"sunday">]>;
|
|
6825
|
+
readonly opens: Schema.String;
|
|
6826
|
+
readonly closes: Schema.String;
|
|
6827
|
+
}>>;
|
|
6828
|
+
}>, Schema.Null]>;
|
|
6829
|
+
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
6830
|
+
readonly eventTriggers: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
6831
|
+
readonly followUpTemplate: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>>;
|
|
6832
|
+
readonly tools: Schema.$Record<Schema.String, Schema.Struct<{
|
|
6833
|
+
readonly description: Schema.String;
|
|
6834
|
+
readonly input: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
6835
|
+
readonly approval: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>>;
|
|
6836
|
+
readonly replay: Schema.Union<readonly [Schema.Literal<"safe">, Schema.Literal<"unsafe">]>;
|
|
6837
|
+
}>>;
|
|
6838
|
+
readonly skills: Schema.$Array<Schema.String>;
|
|
6839
|
+
readonly events: Schema.$Array<Schema.String>;
|
|
6840
|
+
readonly schedules: Schema.$Array<Schema.String>;
|
|
6841
|
+
}>;
|
|
6842
|
+
}>;
|
|
6843
|
+
}>;
|
|
6844
|
+
export type MessageContent = {
|
|
6845
|
+
readonly text?: string | null;
|
|
6846
|
+
readonly html?: string | null;
|
|
6847
|
+
readonly markdown?: string | null;
|
|
6848
|
+
readonly sms?: SmsMessageContent | null;
|
|
6849
|
+
readonly whatsapp?: WhatsAppMessageContent | null;
|
|
6850
|
+
readonly email?: {
|
|
6851
|
+
readonly subject?: string | null;
|
|
6852
|
+
readonly html?: string | null;
|
|
6853
|
+
readonly text?: string | null;
|
|
6854
|
+
readonly headers?: {
|
|
6855
|
+
readonly [x: string]: string;
|
|
6856
|
+
} | null;
|
|
6857
|
+
readonly tracking?: EmailTrackingOverrideV1;
|
|
6858
|
+
readonly attachments?: ReadonlyArray<{
|
|
6859
|
+
readonly filename: string;
|
|
6860
|
+
readonly contentId?: string | null;
|
|
6861
|
+
readonly isInline?: boolean | null;
|
|
6862
|
+
readonly content?: string | null;
|
|
6863
|
+
readonly mediaId?: MediaId | null;
|
|
6864
|
+
readonly contentType: string;
|
|
6865
|
+
readonly size: number;
|
|
6866
|
+
}> | null;
|
|
6867
|
+
} | null;
|
|
6868
|
+
readonly structured?: WhatsAppStructuredContent | null;
|
|
6869
|
+
readonly metadata?: {
|
|
6870
|
+
readonly [x: string]: JsonValue;
|
|
6871
|
+
} | null;
|
|
6872
|
+
};
|
|
6873
|
+
export declare const MessageContent: Schema.Struct<{
|
|
6874
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6875
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6876
|
+
readonly markdown: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6877
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6878
|
+
readonly text: Schema.String;
|
|
6879
|
+
readonly unicode: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
6880
|
+
readonly parts: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
6881
|
+
}>, Schema.Null]>>;
|
|
6882
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6883
|
+
readonly appHandlesFlowSubmission: Schema.optionalKey<Schema.Literal<true>>;
|
|
6884
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6885
|
+
readonly template: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6886
|
+
readonly name: Schema.String;
|
|
6887
|
+
readonly language: Schema.String;
|
|
6888
|
+
readonly components: Schema.$Array<Schema.Struct<{
|
|
6889
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"header">, Schema.Literal<"body">, Schema.Literal<"footer">, Schema.Literal<"button">]>;
|
|
6890
|
+
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]>>;
|
|
6891
|
+
readonly index: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6892
|
+
readonly parameters: Schema.$Array<Schema.Struct<{
|
|
6893
|
+
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">]>;
|
|
6894
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6895
|
+
readonly currency: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6896
|
+
readonly fallback_value: Schema.String;
|
|
6897
|
+
readonly code: Schema.String;
|
|
6898
|
+
readonly amount_1000: Schema.Finite;
|
|
6899
|
+
}>, Schema.Null]>>;
|
|
6900
|
+
readonly date_time: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6901
|
+
readonly fallback_value: Schema.String;
|
|
6902
|
+
}>, Schema.Null]>>;
|
|
6903
|
+
readonly image: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6904
|
+
readonly link: Schema.String;
|
|
6905
|
+
}>, Schema.Null]>>;
|
|
6906
|
+
readonly document: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6907
|
+
readonly link: Schema.String;
|
|
6908
|
+
readonly filename: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6909
|
+
}>, Schema.Null]>>;
|
|
6910
|
+
readonly video: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6911
|
+
readonly link: Schema.String;
|
|
6912
|
+
}>, Schema.Null]>>;
|
|
6913
|
+
readonly coupon_code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6914
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6915
|
+
readonly flow_token: Schema.String;
|
|
6916
|
+
readonly flow_action_data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6917
|
+
}>, Schema.Null]>>;
|
|
6918
|
+
}>>;
|
|
6919
|
+
}>>;
|
|
6920
|
+
}>, Schema.Null]>>;
|
|
6921
|
+
readonly interactive: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6922
|
+
readonly type: Schema.Literal<"buttons">;
|
|
6923
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6924
|
+
readonly type: Schema.Literal<"text">;
|
|
6925
|
+
readonly text: Schema.String;
|
|
6926
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
6927
|
+
readonly type: Schema.Literal<"image">;
|
|
6928
|
+
readonly url: Schema.String;
|
|
6929
|
+
}>, Schema.Struct<{
|
|
6930
|
+
readonly type: Schema.Literal<"image">;
|
|
6931
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6932
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6933
|
+
readonly type: Schema.Literal<"video">;
|
|
6934
|
+
readonly url: Schema.String;
|
|
6935
|
+
}>, Schema.Struct<{
|
|
6936
|
+
readonly type: Schema.Literal<"video">;
|
|
6937
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6938
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6939
|
+
readonly type: Schema.Literal<"document">;
|
|
6940
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6941
|
+
readonly url: Schema.String;
|
|
6942
|
+
}>, Schema.Struct<{
|
|
6943
|
+
readonly type: Schema.Literal<"document">;
|
|
6944
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6945
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6946
|
+
}>]>]>>;
|
|
6947
|
+
readonly body: Schema.String;
|
|
6948
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6949
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
6950
|
+
readonly id: Schema.String;
|
|
6951
|
+
readonly title: Schema.String;
|
|
6952
|
+
}>>;
|
|
6953
|
+
}>, Schema.Struct<{
|
|
6954
|
+
readonly type: Schema.Literal<"list">;
|
|
6955
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
6956
|
+
readonly type: Schema.Literal<"text">;
|
|
6957
|
+
readonly text: Schema.String;
|
|
6958
|
+
}>>;
|
|
6959
|
+
readonly body: Schema.String;
|
|
6960
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6961
|
+
readonly button: Schema.String;
|
|
6962
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
6963
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
6964
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
6965
|
+
readonly id: Schema.String;
|
|
6966
|
+
readonly title: Schema.String;
|
|
6967
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
6968
|
+
}>>;
|
|
6969
|
+
}>>;
|
|
6970
|
+
}>, Schema.Struct<{
|
|
6971
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
6972
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6973
|
+
readonly type: Schema.Literal<"text">;
|
|
6974
|
+
readonly text: Schema.String;
|
|
6975
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
6976
|
+
readonly type: Schema.Literal<"image">;
|
|
6977
|
+
readonly url: Schema.String;
|
|
6978
|
+
}>, Schema.Struct<{
|
|
6979
|
+
readonly type: Schema.Literal<"image">;
|
|
6980
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6981
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6982
|
+
readonly type: Schema.Literal<"video">;
|
|
6983
|
+
readonly url: Schema.String;
|
|
6984
|
+
}>, Schema.Struct<{
|
|
6985
|
+
readonly type: Schema.Literal<"video">;
|
|
6986
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6987
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6988
|
+
readonly type: Schema.Literal<"document">;
|
|
6989
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6990
|
+
readonly url: Schema.String;
|
|
6991
|
+
}>, Schema.Struct<{
|
|
6992
|
+
readonly type: Schema.Literal<"document">;
|
|
6993
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6994
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6995
|
+
}>]>]>>;
|
|
6996
|
+
readonly body: Schema.String;
|
|
6997
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6998
|
+
readonly displayText: Schema.String;
|
|
6999
|
+
readonly url: Schema.String;
|
|
7000
|
+
}>, Schema.Struct<{
|
|
7001
|
+
readonly type: Schema.Literal<"flow">;
|
|
7002
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
7003
|
+
readonly type: Schema.Literal<"text">;
|
|
7004
|
+
readonly text: Schema.String;
|
|
7005
|
+
}>>;
|
|
7006
|
+
readonly body: Schema.String;
|
|
7007
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
7008
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
7009
|
+
readonly cta: Schema.String;
|
|
7010
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
7011
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
7012
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
7013
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7014
|
+
readonly flowVersionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
7015
|
+
readonly providerFlowId: Schema.String;
|
|
7016
|
+
}>]>>;
|
|
7017
|
+
readonly media: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
7018
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
7019
|
+
readonly url: Schema.String;
|
|
7020
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
7021
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
7022
|
+
}>, Schema.Struct<{
|
|
7023
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
7024
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
7025
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
7026
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
7027
|
+
}>, Schema.Struct<{
|
|
7028
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"image">, Schema.Literal<"video">, Schema.Literal<"audio">, Schema.Literal<"document">, Schema.Literal<"sticker">]>;
|
|
7029
|
+
readonly providerMediaId: Schema.String;
|
|
7030
|
+
readonly mimeType: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
7031
|
+
readonly caption: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
7032
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
7033
|
+
}>]>, Schema.Null]>>;
|
|
7034
|
+
readonly reaction: Schema.optionalKey<Schema.Struct<{
|
|
7035
|
+
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
7036
|
+
readonly providerMessageId: Schema.String;
|
|
7037
|
+
readonly emoji: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7038
|
+
}>>;
|
|
7039
|
+
readonly location: Schema.optionalKey<Schema.Struct<{
|
|
7040
|
+
readonly latitude: Schema.Finite;
|
|
7041
|
+
readonly longitude: Schema.Finite;
|
|
7042
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
7043
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
7044
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
7045
|
+
}>>;
|
|
7046
|
+
readonly contacts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
7047
|
+
readonly name: Schema.optionalKey<Schema.Struct<{
|
|
7048
|
+
readonly formattedName: Schema.optionalKey<Schema.String>;
|
|
7049
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
7050
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
7051
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
7052
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
7053
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
7054
|
+
}>>;
|
|
7055
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
7056
|
+
readonly phone: Schema.optionalKey<Schema.String>;
|
|
7057
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
7058
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
7059
|
+
}>>>;
|
|
7060
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
7061
|
+
readonly email: Schema.optionalKey<Schema.String>;
|
|
7062
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
7063
|
+
}>>>;
|
|
7064
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
7065
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
7066
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
7067
|
+
}>>>;
|
|
7068
|
+
readonly org: Schema.optionalKey<Schema.Struct<{
|
|
7069
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
7070
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
7071
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
6023
7072
|
}>>;
|
|
6024
|
-
readonly
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
7073
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
7074
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
7075
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
7076
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
7077
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
7078
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
7079
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
7080
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
7081
|
+
}>>>;
|
|
7082
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
7083
|
+
}>>>;
|
|
7084
|
+
readonly reply: Schema.optionalKey<Schema.Struct<{
|
|
7085
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"button">, Schema.Literal<"list">, Schema.Literal<"template_button">]>;
|
|
7086
|
+
readonly id: Schema.String;
|
|
7087
|
+
readonly title: Schema.String;
|
|
7088
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
7089
|
+
}>>;
|
|
7090
|
+
readonly flowResponse: Schema.optionalKey<Schema.Struct<{
|
|
7091
|
+
readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7092
|
+
readonly submissionHandler: Schema.optionalKey<Schema.Literal<"app">>;
|
|
7093
|
+
readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
7094
|
+
readonly body: Schema.optionalKey<Schema.String>;
|
|
7095
|
+
}>>;
|
|
7096
|
+
readonly context: Schema.optionalKey<Schema.Struct<{
|
|
7097
|
+
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
7098
|
+
readonly providerMessageId: Schema.String;
|
|
7099
|
+
}>>;
|
|
7100
|
+
}>, Schema.Null]>>;
|
|
7101
|
+
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
7102
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
7103
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
7104
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
7105
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
7106
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
7107
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
7108
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
7109
|
+
}>>;
|
|
7110
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
7111
|
+
readonly filename: Schema.String;
|
|
7112
|
+
readonly contentId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
7113
|
+
readonly isInline: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
7114
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
7115
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
7116
|
+
readonly contentType: Schema.String;
|
|
7117
|
+
readonly size: Schema.Finite;
|
|
7118
|
+
}>>, Schema.Null]>>;
|
|
7119
|
+
}>, Schema.Null]>>;
|
|
7120
|
+
readonly structured: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
7121
|
+
readonly type: Schema.String;
|
|
7122
|
+
readonly data: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
7123
|
+
}>, Schema.Null]>>;
|
|
7124
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
6029
7125
|
}>;
|
|
6030
7126
|
export type WhatsAppContent = WhatsAppTextContent | WhatsAppTemplateIdContent | WhatsAppTemplateSlugContent | WhatsAppMediaContent | WhatsAppInteractiveContent | WhatsAppReactionContent | WhatsAppLocationContent | WhatsAppContactsContent;
|
|
6031
7127
|
export declare const WhatsAppContent: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -6034,10 +7130,12 @@ export declare const WhatsAppContent: Schema.Union<readonly [Schema.Struct<{
|
|
|
6034
7130
|
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
6035
7131
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6036
7132
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
7133
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6037
7134
|
}>, Schema.Struct<{
|
|
6038
7135
|
readonly templateSlug: Schema.String;
|
|
6039
7136
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6040
7137
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
7138
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6041
7139
|
}>, Schema.Struct<{
|
|
6042
7140
|
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6043
7141
|
readonly type: Schema.Literal<"image">;
|
|
@@ -6233,6 +7331,7 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
6233
7331
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
6234
7332
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
6235
7333
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7334
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6236
7335
|
}>;
|
|
6237
7336
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6238
7337
|
readonly nodeId: Schema.String;
|
|
@@ -6253,6 +7352,7 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
6253
7352
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
6254
7353
|
}>>;
|
|
6255
7354
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7355
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
6256
7356
|
}>;
|
|
6257
7357
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6258
7358
|
readonly nodeId: Schema.String;
|
|
@@ -6269,6 +7369,10 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
6269
7369
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
6270
7370
|
readonly config: Schema.Struct<{
|
|
6271
7371
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
7372
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
7373
|
+
readonly eventProperty: Schema.String;
|
|
7374
|
+
readonly entryProperty: Schema.String;
|
|
7375
|
+
}>>;
|
|
6272
7376
|
readonly timeoutSeconds: Schema.Finite;
|
|
6273
7377
|
}>;
|
|
6274
7378
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -6323,6 +7427,21 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
6323
7427
|
readonly type: Schema.Literal<"event">;
|
|
6324
7428
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6325
7429
|
readonly occurred: Schema.Boolean;
|
|
7430
|
+
}>, Schema.Struct<{
|
|
7431
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
7432
|
+
readonly property: Schema.String;
|
|
7433
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
7434
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
7435
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
7436
|
+
}>, Schema.Struct<{
|
|
7437
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
7438
|
+
readonly value: Schema.Finite;
|
|
7439
|
+
}>, Schema.Struct<{
|
|
7440
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
7441
|
+
readonly value: Schema.String;
|
|
7442
|
+
}>, Schema.Struct<{
|
|
7443
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
7444
|
+
}>]>;
|
|
6326
7445
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6327
7446
|
readonly type: Schema.Literal<"tag">;
|
|
6328
7447
|
readonly tag: Schema.String;
|
|
@@ -6361,6 +7480,21 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
6361
7480
|
readonly type: Schema.Literal<"event">;
|
|
6362
7481
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6363
7482
|
readonly occurred: Schema.Boolean;
|
|
7483
|
+
}>, Schema.Struct<{
|
|
7484
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
7485
|
+
readonly property: Schema.String;
|
|
7486
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
7487
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
7488
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
7489
|
+
}>, Schema.Struct<{
|
|
7490
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
7491
|
+
readonly value: Schema.Finite;
|
|
7492
|
+
}>, Schema.Struct<{
|
|
7493
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
7494
|
+
readonly value: Schema.String;
|
|
7495
|
+
}>, Schema.Struct<{
|
|
7496
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
7497
|
+
}>]>;
|
|
6364
7498
|
}>]>]>;
|
|
6365
7499
|
}>>;
|
|
6366
7500
|
}>>;
|
|
@@ -6377,6 +7511,7 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
6377
7511
|
readonly type: Schema.Literal<"webhook">;
|
|
6378
7512
|
readonly config: Schema.Struct<{
|
|
6379
7513
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7514
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6380
7515
|
}>;
|
|
6381
7516
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6382
7517
|
readonly nodeId: Schema.String;
|
|
@@ -6410,10 +7545,12 @@ export declare const WhatsAppSendMessagePayload: Schema.Struct<{
|
|
|
6410
7545
|
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
6411
7546
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6412
7547
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
7548
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6413
7549
|
}>, Schema.Struct<{
|
|
6414
7550
|
readonly templateSlug: Schema.String;
|
|
6415
7551
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6416
7552
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
7553
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6417
7554
|
}>, Schema.Struct<{
|
|
6418
7555
|
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6419
7556
|
readonly type: Schema.Literal<"image">;
|
|
@@ -6613,6 +7750,9 @@ export type JourneyDefinition = {
|
|
|
6613
7750
|
readonly enrollment?: {
|
|
6614
7751
|
readonly type: "shopify_order";
|
|
6615
7752
|
readonly shop: ShopifyShop;
|
|
7753
|
+
} | {
|
|
7754
|
+
readonly type: "event_property";
|
|
7755
|
+
readonly property: string;
|
|
6616
7756
|
};
|
|
6617
7757
|
};
|
|
6618
7758
|
export declare const JourneyDefinition: Schema.Struct<{
|
|
@@ -6636,6 +7776,7 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
6636
7776
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
6637
7777
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
6638
7778
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7779
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6639
7780
|
}>;
|
|
6640
7781
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6641
7782
|
readonly nodeId: Schema.String;
|
|
@@ -6656,6 +7797,7 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
6656
7797
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
6657
7798
|
}>>;
|
|
6658
7799
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7800
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
6659
7801
|
}>;
|
|
6660
7802
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6661
7803
|
readonly nodeId: Schema.String;
|
|
@@ -6672,6 +7814,10 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
6672
7814
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
6673
7815
|
readonly config: Schema.Struct<{
|
|
6674
7816
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
7817
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
7818
|
+
readonly eventProperty: Schema.String;
|
|
7819
|
+
readonly entryProperty: Schema.String;
|
|
7820
|
+
}>>;
|
|
6675
7821
|
readonly timeoutSeconds: Schema.Finite;
|
|
6676
7822
|
}>;
|
|
6677
7823
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -6726,6 +7872,21 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
6726
7872
|
readonly type: Schema.Literal<"event">;
|
|
6727
7873
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6728
7874
|
readonly occurred: Schema.Boolean;
|
|
7875
|
+
}>, Schema.Struct<{
|
|
7876
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
7877
|
+
readonly property: Schema.String;
|
|
7878
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
7879
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
7880
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
7881
|
+
}>, Schema.Struct<{
|
|
7882
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
7883
|
+
readonly value: Schema.Finite;
|
|
7884
|
+
}>, Schema.Struct<{
|
|
7885
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
7886
|
+
readonly value: Schema.String;
|
|
7887
|
+
}>, Schema.Struct<{
|
|
7888
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
7889
|
+
}>]>;
|
|
6729
7890
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6730
7891
|
readonly type: Schema.Literal<"tag">;
|
|
6731
7892
|
readonly tag: Schema.String;
|
|
@@ -6764,6 +7925,21 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
6764
7925
|
readonly type: Schema.Literal<"event">;
|
|
6765
7926
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6766
7927
|
readonly occurred: Schema.Boolean;
|
|
7928
|
+
}>, Schema.Struct<{
|
|
7929
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
7930
|
+
readonly property: Schema.String;
|
|
7931
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
7932
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
7933
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
7934
|
+
}>, Schema.Struct<{
|
|
7935
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
7936
|
+
readonly value: Schema.Finite;
|
|
7937
|
+
}>, Schema.Struct<{
|
|
7938
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
7939
|
+
readonly value: Schema.String;
|
|
7940
|
+
}>, Schema.Struct<{
|
|
7941
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
7942
|
+
}>]>;
|
|
6767
7943
|
}>]>]>;
|
|
6768
7944
|
}>>;
|
|
6769
7945
|
}>>;
|
|
@@ -6780,6 +7956,7 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
6780
7956
|
readonly type: Schema.Literal<"webhook">;
|
|
6781
7957
|
readonly config: Schema.Struct<{
|
|
6782
7958
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7959
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6783
7960
|
}>;
|
|
6784
7961
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6785
7962
|
readonly nodeId: Schema.String;
|
|
@@ -6793,10 +7970,13 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
6793
7970
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6794
7971
|
}>>;
|
|
6795
7972
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
6796
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
7973
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6797
7974
|
readonly type: Schema.Literal<"shopify_order">;
|
|
6798
7975
|
readonly shop: Schema.String;
|
|
6799
|
-
}
|
|
7976
|
+
}>, Schema.Struct<{
|
|
7977
|
+
readonly type: Schema.Literal<"event_property">;
|
|
7978
|
+
readonly property: Schema.String;
|
|
7979
|
+
}>]>>;
|
|
6800
7980
|
}>;
|
|
6801
7981
|
export type SendMessagePayload = EmailSendMessagePayload | SmsSendMessagePayload | WhatsAppSendMessagePayload;
|
|
6802
7982
|
export declare const SendMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -6892,10 +8072,12 @@ export declare const SendMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
|
6892
8072
|
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
6893
8073
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6894
8074
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
8075
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6895
8076
|
}>, Schema.Struct<{
|
|
6896
8077
|
readonly templateSlug: Schema.String;
|
|
6897
8078
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6898
8079
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
8080
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6899
8081
|
}>, Schema.Struct<{
|
|
6900
8082
|
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6901
8083
|
readonly type: Schema.Literal<"image">;
|
|
@@ -7086,10 +8268,12 @@ export declare const SendMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
|
7086
8268
|
}>]>;
|
|
7087
8269
|
export type CreateJourneyPayload = {
|
|
7088
8270
|
readonly name: JourneyName;
|
|
8271
|
+
readonly namespaceId?: NamespaceId;
|
|
7089
8272
|
readonly definition: JourneyDefinition;
|
|
7090
8273
|
};
|
|
7091
8274
|
export declare const CreateJourneyPayload: Schema.Struct<{
|
|
7092
8275
|
readonly name: Schema.String;
|
|
8276
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
7093
8277
|
readonly definition: Schema.Struct<{
|
|
7094
8278
|
readonly trigger: Schema.Union<readonly [Schema.Struct<{
|
|
7095
8279
|
readonly type: Schema.Literal<"event">;
|
|
@@ -7111,6 +8295,7 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
7111
8295
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
7112
8296
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
7113
8297
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
8298
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7114
8299
|
}>;
|
|
7115
8300
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7116
8301
|
readonly nodeId: Schema.String;
|
|
@@ -7131,6 +8316,7 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
7131
8316
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
7132
8317
|
}>>;
|
|
7133
8318
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
8319
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
7134
8320
|
}>;
|
|
7135
8321
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7136
8322
|
readonly nodeId: Schema.String;
|
|
@@ -7147,6 +8333,10 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
7147
8333
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
7148
8334
|
readonly config: Schema.Struct<{
|
|
7149
8335
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
8336
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
8337
|
+
readonly eventProperty: Schema.String;
|
|
8338
|
+
readonly entryProperty: Schema.String;
|
|
8339
|
+
}>>;
|
|
7150
8340
|
readonly timeoutSeconds: Schema.Finite;
|
|
7151
8341
|
}>;
|
|
7152
8342
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -7201,6 +8391,21 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
7201
8391
|
readonly type: Schema.Literal<"event">;
|
|
7202
8392
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
7203
8393
|
readonly occurred: Schema.Boolean;
|
|
8394
|
+
}>, Schema.Struct<{
|
|
8395
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
8396
|
+
readonly property: Schema.String;
|
|
8397
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
8398
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
8399
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
8400
|
+
}>, Schema.Struct<{
|
|
8401
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
8402
|
+
readonly value: Schema.Finite;
|
|
8403
|
+
}>, Schema.Struct<{
|
|
8404
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
8405
|
+
readonly value: Schema.String;
|
|
8406
|
+
}>, Schema.Struct<{
|
|
8407
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
8408
|
+
}>]>;
|
|
7204
8409
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
7205
8410
|
readonly type: Schema.Literal<"tag">;
|
|
7206
8411
|
readonly tag: Schema.String;
|
|
@@ -7239,6 +8444,21 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
7239
8444
|
readonly type: Schema.Literal<"event">;
|
|
7240
8445
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
7241
8446
|
readonly occurred: Schema.Boolean;
|
|
8447
|
+
}>, Schema.Struct<{
|
|
8448
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
8449
|
+
readonly property: Schema.String;
|
|
8450
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
8451
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
8452
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
8453
|
+
}>, Schema.Struct<{
|
|
8454
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
8455
|
+
readonly value: Schema.Finite;
|
|
8456
|
+
}>, Schema.Struct<{
|
|
8457
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
8458
|
+
readonly value: Schema.String;
|
|
8459
|
+
}>, Schema.Struct<{
|
|
8460
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
8461
|
+
}>]>;
|
|
7242
8462
|
}>]>]>;
|
|
7243
8463
|
}>>;
|
|
7244
8464
|
}>>;
|
|
@@ -7255,6 +8475,7 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
7255
8475
|
readonly type: Schema.Literal<"webhook">;
|
|
7256
8476
|
readonly config: Schema.Struct<{
|
|
7257
8477
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
8478
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7258
8479
|
}>;
|
|
7259
8480
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7260
8481
|
readonly nodeId: Schema.String;
|
|
@@ -7268,10 +8489,13 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
7268
8489
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
7269
8490
|
}>>;
|
|
7270
8491
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
7271
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
8492
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
7272
8493
|
readonly type: Schema.Literal<"shopify_order">;
|
|
7273
8494
|
readonly shop: Schema.String;
|
|
7274
|
-
}
|
|
8495
|
+
}>, Schema.Struct<{
|
|
8496
|
+
readonly type: Schema.Literal<"event_property">;
|
|
8497
|
+
readonly property: Schema.String;
|
|
8498
|
+
}>]>>;
|
|
7275
8499
|
}>;
|
|
7276
8500
|
}>;
|
|
7277
8501
|
export type ReplaceJourneyDraftPayload = {
|
|
@@ -7301,6 +8525,7 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
7301
8525
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
7302
8526
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
7303
8527
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
8528
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7304
8529
|
}>;
|
|
7305
8530
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7306
8531
|
readonly nodeId: Schema.String;
|
|
@@ -7321,6 +8546,7 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
7321
8546
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
7322
8547
|
}>>;
|
|
7323
8548
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
8549
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
7324
8550
|
}>;
|
|
7325
8551
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7326
8552
|
readonly nodeId: Schema.String;
|
|
@@ -7337,6 +8563,10 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
7337
8563
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
7338
8564
|
readonly config: Schema.Struct<{
|
|
7339
8565
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
8566
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
8567
|
+
readonly eventProperty: Schema.String;
|
|
8568
|
+
readonly entryProperty: Schema.String;
|
|
8569
|
+
}>>;
|
|
7340
8570
|
readonly timeoutSeconds: Schema.Finite;
|
|
7341
8571
|
}>;
|
|
7342
8572
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -7391,6 +8621,21 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
7391
8621
|
readonly type: Schema.Literal<"event">;
|
|
7392
8622
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
7393
8623
|
readonly occurred: Schema.Boolean;
|
|
8624
|
+
}>, Schema.Struct<{
|
|
8625
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
8626
|
+
readonly property: Schema.String;
|
|
8627
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
8628
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
8629
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
8630
|
+
}>, Schema.Struct<{
|
|
8631
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
8632
|
+
readonly value: Schema.Finite;
|
|
8633
|
+
}>, Schema.Struct<{
|
|
8634
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
8635
|
+
readonly value: Schema.String;
|
|
8636
|
+
}>, Schema.Struct<{
|
|
8637
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
8638
|
+
}>]>;
|
|
7394
8639
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
7395
8640
|
readonly type: Schema.Literal<"tag">;
|
|
7396
8641
|
readonly tag: Schema.String;
|
|
@@ -7429,6 +8674,21 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
7429
8674
|
readonly type: Schema.Literal<"event">;
|
|
7430
8675
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
7431
8676
|
readonly occurred: Schema.Boolean;
|
|
8677
|
+
}>, Schema.Struct<{
|
|
8678
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
8679
|
+
readonly property: Schema.String;
|
|
8680
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
8681
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
8682
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
8683
|
+
}>, Schema.Struct<{
|
|
8684
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
8685
|
+
readonly value: Schema.Finite;
|
|
8686
|
+
}>, Schema.Struct<{
|
|
8687
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
8688
|
+
readonly value: Schema.String;
|
|
8689
|
+
}>, Schema.Struct<{
|
|
8690
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
8691
|
+
}>]>;
|
|
7432
8692
|
}>]>]>;
|
|
7433
8693
|
}>>;
|
|
7434
8694
|
}>>;
|
|
@@ -7445,6 +8705,7 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
7445
8705
|
readonly type: Schema.Literal<"webhook">;
|
|
7446
8706
|
readonly config: Schema.Struct<{
|
|
7447
8707
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
8708
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7448
8709
|
}>;
|
|
7449
8710
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7450
8711
|
readonly nodeId: Schema.String;
|
|
@@ -7458,10 +8719,13 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
7458
8719
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
7459
8720
|
}>>;
|
|
7460
8721
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
7461
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
8722
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
7462
8723
|
readonly type: Schema.Literal<"shopify_order">;
|
|
7463
8724
|
readonly shop: Schema.String;
|
|
7464
|
-
}
|
|
8725
|
+
}>, Schema.Struct<{
|
|
8726
|
+
readonly type: Schema.Literal<"event_property">;
|
|
8727
|
+
readonly property: Schema.String;
|
|
8728
|
+
}>]>>;
|
|
7465
8729
|
}>;
|
|
7466
8730
|
}>;
|
|
7467
8731
|
export { __SamvaRuntimeAbsoluteInstant, __SamvaRuntimeSensitiveString, __SamvaRuntimeNonEmptySensitiveString, };
|