samva 0.52.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/dist/client/sdk.gen.d.ts +15 -8
- package/dist/client/sdk.gen.js +35 -28
- package/dist/client/types.gen.d.ts +92 -15
- package/dist/effect/events.d.ts +16 -0
- package/dist/effect/generated/events.d.ts +48 -0
- package/dist/effect/generated/events.js +1 -1
- package/dist/effect/generated/journeys.d.ts +1047 -49
- package/dist/effect/generated/journeys.js +10 -4
- package/dist/effect/generated/logs.d.ts +12 -0
- package/dist/effect/generated/mailboxes.d.ts +8 -0
- package/dist/effect/generated/mailboxes.js +2 -1
- package/dist/effect/generated/messages.d.ts +10 -0
- package/dist/effect/generated/scheduled-messages.d.ts +36 -0
- package/dist/effect/generated/shared.d.ts +398 -15
- package/dist/effect/generated/shared.js +51 -13
- package/dist/effect/generated/whats-app-flows.d.ts +23 -5
- package/dist/effect/generated/whats-app-flows.js +9 -7
- package/dist/effect/journeys.d.ts +66 -0
- package/dist/effect/mailboxes.d.ts +2 -0
- package/dist/effect/scheduled-messages.d.ts +66 -0
- package/dist/effect/whatsapp-flows.d.ts +30 -0
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/package.json +2 -2
|
@@ -732,6 +732,7 @@ export declare const WhatsAppReceivedReply: Schema.Struct<{
|
|
|
732
732
|
}>;
|
|
733
733
|
export type WhatsAppReceivedFlowResponse = {
|
|
734
734
|
readonly flowToken: string | null;
|
|
735
|
+
readonly submissionHandler?: "app";
|
|
735
736
|
readonly response: {
|
|
736
737
|
readonly [x: string]: JsonValue;
|
|
737
738
|
};
|
|
@@ -739,6 +740,7 @@ export type WhatsAppReceivedFlowResponse = {
|
|
|
739
740
|
};
|
|
740
741
|
export declare const WhatsAppReceivedFlowResponse: Schema.Struct<{
|
|
741
742
|
readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
743
|
+
readonly submissionHandler: Schema.optionalKey<Schema.Literal<"app">>;
|
|
742
744
|
readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
743
745
|
readonly body: Schema.optionalKey<Schema.String>;
|
|
744
746
|
}>;
|
|
@@ -878,6 +880,10 @@ export type WhatsAppTemplateData = {
|
|
|
878
880
|
readonly [x: string]: JsonValue;
|
|
879
881
|
};
|
|
880
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>>>;
|
|
881
887
|
export type WhatsAppImageLink = {
|
|
882
888
|
readonly type: "image";
|
|
883
889
|
readonly caption?: string;
|
|
@@ -1325,14 +1331,6 @@ export type ReapplyOnboardingReviewInput = {
|
|
|
1325
1331
|
export declare const ReapplyOnboardingReviewInput: Schema.Struct<{
|
|
1326
1332
|
readonly expectedGeneration: Schema.Finite;
|
|
1327
1333
|
}>;
|
|
1328
|
-
export type RecordWhatsAppFlowVersionPayload = {
|
|
1329
|
-
readonly commitSha: string;
|
|
1330
|
-
readonly expectedWorkspaceRevision: string;
|
|
1331
|
-
};
|
|
1332
|
-
export declare const RecordWhatsAppFlowVersionPayload: Schema.Struct<{
|
|
1333
|
-
readonly commitSha: Schema.String;
|
|
1334
|
-
readonly expectedWorkspaceRevision: Schema.String;
|
|
1335
|
-
}>;
|
|
1336
1334
|
export type RescheduleMailboxSend = {
|
|
1337
1335
|
readonly idempotencyKey: string;
|
|
1338
1336
|
readonly base: string;
|
|
@@ -1481,10 +1479,26 @@ export declare const ContactConsent: Schema.Struct<{
|
|
|
1481
1479
|
}>;
|
|
1482
1480
|
export type JourneyWebhookConfig = {
|
|
1483
1481
|
readonly data?: JsonObject;
|
|
1482
|
+
readonly eventBindings?: {
|
|
1483
|
+
readonly [x: string]: string;
|
|
1484
|
+
};
|
|
1484
1485
|
};
|
|
1485
1486
|
export declare const JourneyWebhookConfig: Schema.Struct<{
|
|
1486
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>>;
|
|
1487
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
|
+
}>]>;
|
|
1488
1502
|
export type SetContactConsent = {
|
|
1489
1503
|
readonly status: "opted_in" | "opted_out";
|
|
1490
1504
|
readonly source: string;
|
|
@@ -1549,27 +1563,43 @@ export type ContactEventReference = {
|
|
|
1549
1563
|
readonly id: ContactId;
|
|
1550
1564
|
readonly externalId?: never;
|
|
1551
1565
|
readonly email?: never;
|
|
1566
|
+
readonly phone?: never;
|
|
1552
1567
|
} | {
|
|
1553
1568
|
readonly externalId: string;
|
|
1554
1569
|
readonly id?: never;
|
|
1555
1570
|
readonly email?: never;
|
|
1571
|
+
readonly phone?: never;
|
|
1556
1572
|
} | {
|
|
1557
1573
|
readonly email: string;
|
|
1558
1574
|
readonly id?: never;
|
|
1559
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;
|
|
1560
1582
|
};
|
|
1561
1583
|
export declare const ContactEventReference: Schema.Union<readonly [Schema.Struct<{
|
|
1562
1584
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
1563
1585
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
1564
1586
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
1587
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
1565
1588
|
}>, Schema.Struct<{
|
|
1566
1589
|
readonly externalId: Schema.String;
|
|
1567
1590
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
1568
1591
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
1592
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
1569
1593
|
}>, Schema.Struct<{
|
|
1570
1594
|
readonly email: Schema.String;
|
|
1571
1595
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
1572
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>;
|
|
1573
1603
|
}>]>;
|
|
1574
1604
|
export type EmailRecipient = {
|
|
1575
1605
|
readonly contactId: ContactId;
|
|
@@ -2244,12 +2274,16 @@ export type JourneySendEmailConfig = {
|
|
|
2244
2274
|
readonly publicationId?: TemplatePublicationId;
|
|
2245
2275
|
readonly senderId?: EmailSenderId;
|
|
2246
2276
|
readonly templateData?: JsonObject;
|
|
2277
|
+
readonly eventBindings?: {
|
|
2278
|
+
readonly [x: string]: string;
|
|
2279
|
+
};
|
|
2247
2280
|
};
|
|
2248
2281
|
export declare const JourneySendEmailConfig: Schema.Struct<{
|
|
2249
2282
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2250
2283
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
2251
2284
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
2252
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>>;
|
|
2253
2287
|
}>;
|
|
2254
2288
|
export type TopicCreatePayload = {
|
|
2255
2289
|
readonly name: string;
|
|
@@ -2747,21 +2781,25 @@ export type WhatsAppTemplateIdContent = {
|
|
|
2747
2781
|
readonly templateId: TemplateId;
|
|
2748
2782
|
readonly templateData?: WhatsAppTemplateData;
|
|
2749
2783
|
readonly flowToken?: string;
|
|
2784
|
+
readonly flowActionData?: JsonObject_1;
|
|
2750
2785
|
};
|
|
2751
2786
|
export declare const WhatsAppTemplateIdContent: Schema.Struct<{
|
|
2752
2787
|
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
2753
2788
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2754
2789
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
2790
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2755
2791
|
}>;
|
|
2756
2792
|
export type WhatsAppTemplateSlugContent = {
|
|
2757
2793
|
readonly templateSlug: string;
|
|
2758
2794
|
readonly templateData?: WhatsAppTemplateData;
|
|
2759
2795
|
readonly flowToken?: string;
|
|
2796
|
+
readonly flowActionData?: JsonObject_1;
|
|
2760
2797
|
};
|
|
2761
2798
|
export declare const WhatsAppTemplateSlugContent: Schema.Struct<{
|
|
2762
2799
|
readonly templateSlug: Schema.String;
|
|
2763
2800
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2764
2801
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
2802
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2765
2803
|
}>;
|
|
2766
2804
|
export type WhatsAppLocationContent = {
|
|
2767
2805
|
readonly location: WhatsAppLocation;
|
|
@@ -2847,11 +2885,13 @@ export type CreateWhatsAppFlowPayload = {
|
|
|
2847
2885
|
readonly projectId: TemplateProjectId;
|
|
2848
2886
|
readonly handle: string;
|
|
2849
2887
|
readonly categories: ReadonlyArray<"SIGN_UP" | "SIGN_IN" | "APPOINTMENT_BOOKING" | "LEAD_GENERATION" | "CONTACT_US" | "CUSTOMER_SUPPORT" | "SURVEY" | "OTHER">;
|
|
2888
|
+
readonly submissionHandler?: "agent" | "app";
|
|
2850
2889
|
};
|
|
2851
2890
|
export declare const CreateWhatsAppFlowPayload: Schema.Struct<{
|
|
2852
2891
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
2853
2892
|
readonly handle: Schema.String;
|
|
2854
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">]>>;
|
|
2855
2895
|
}>;
|
|
2856
2896
|
export type Operation = {
|
|
2857
2897
|
readonly id: OperationId;
|
|
@@ -3011,14 +3051,22 @@ export declare const CreateEventPayload: Schema.Struct<{
|
|
|
3011
3051
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
3012
3052
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3013
3053
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3054
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3014
3055
|
}>, Schema.Struct<{
|
|
3015
3056
|
readonly externalId: Schema.String;
|
|
3016
3057
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3017
3058
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3059
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3018
3060
|
}>, Schema.Struct<{
|
|
3019
3061
|
readonly email: Schema.String;
|
|
3020
3062
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3021
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>;
|
|
3022
3070
|
}>]>;
|
|
3023
3071
|
readonly name: Schema.String;
|
|
3024
3072
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
@@ -3524,10 +3572,18 @@ export declare const JourneyTrigger: Schema.Union<readonly [Schema.Struct<{
|
|
|
3524
3572
|
}>]>;
|
|
3525
3573
|
export type JourneyWaitForEventConfig = {
|
|
3526
3574
|
readonly eventName: JourneyEventName;
|
|
3575
|
+
readonly correlation?: {
|
|
3576
|
+
readonly eventProperty: string;
|
|
3577
|
+
readonly entryProperty: string;
|
|
3578
|
+
};
|
|
3527
3579
|
readonly timeoutSeconds: number;
|
|
3528
3580
|
};
|
|
3529
3581
|
export declare const JourneyWaitForEventConfig: Schema.Struct<{
|
|
3530
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
|
+
}>>;
|
|
3531
3587
|
readonly timeoutSeconds: Schema.Finite;
|
|
3532
3588
|
}>;
|
|
3533
3589
|
export type JourneyEventPredicate = {
|
|
@@ -3558,6 +3614,7 @@ export declare const JourneySendEmailNode: Schema.Struct<{
|
|
|
3558
3614
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
3559
3615
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
3560
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>>;
|
|
3561
3618
|
}>;
|
|
3562
3619
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3563
3620
|
readonly nodeId: Schema.String;
|
|
@@ -3601,6 +3658,7 @@ export declare const JourneyWebhookNode: Schema.Struct<{
|
|
|
3601
3658
|
readonly type: Schema.Literal<"webhook">;
|
|
3602
3659
|
readonly config: Schema.Struct<{
|
|
3603
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>>;
|
|
3604
3662
|
}>;
|
|
3605
3663
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3606
3664
|
readonly nodeId: Schema.String;
|
|
@@ -3648,6 +3706,27 @@ export declare const JourneyCustomFieldPredicate: Schema.Struct<{
|
|
|
3648
3706
|
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
3649
3707
|
}>]>;
|
|
3650
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
|
+
}>;
|
|
3651
3730
|
export type WhatsAppListMessage = {
|
|
3652
3731
|
readonly type: "list";
|
|
3653
3732
|
readonly header?: WhatsAppTextHeader;
|
|
@@ -3890,14 +3969,22 @@ export declare const BatchEventsPayload: Schema.Struct<{
|
|
|
3890
3969
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
3891
3970
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3892
3971
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3972
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3893
3973
|
}>, Schema.Struct<{
|
|
3894
3974
|
readonly externalId: Schema.String;
|
|
3895
3975
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3896
3976
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3977
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3897
3978
|
}>, Schema.Struct<{
|
|
3898
3979
|
readonly email: Schema.String;
|
|
3899
3980
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3900
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>;
|
|
3901
3988
|
}>]>;
|
|
3902
3989
|
readonly name: Schema.String;
|
|
3903
3990
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
@@ -3907,14 +3994,22 @@ export declare const BatchEventsPayload: Schema.Struct<{
|
|
|
3907
3994
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
3908
3995
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3909
3996
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3997
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3910
3998
|
}>, Schema.Struct<{
|
|
3911
3999
|
readonly externalId: Schema.String;
|
|
3912
4000
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3913
4001
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
4002
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3914
4003
|
}>, Schema.Struct<{
|
|
3915
4004
|
readonly email: Schema.String;
|
|
3916
4005
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3917
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>;
|
|
3918
4013
|
}>]>;
|
|
3919
4014
|
readonly name: Schema.String;
|
|
3920
4015
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
@@ -4286,6 +4381,7 @@ export type JourneySendWhatsAppConfig = {
|
|
|
4286
4381
|
readonly eventBindings?: {
|
|
4287
4382
|
readonly [x: string]: string;
|
|
4288
4383
|
};
|
|
4384
|
+
readonly flowActionDataBinding?: string;
|
|
4289
4385
|
};
|
|
4290
4386
|
export declare const JourneySendWhatsAppConfig: Schema.Struct<{
|
|
4291
4387
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
@@ -4301,6 +4397,7 @@ export declare const JourneySendWhatsAppConfig: Schema.Struct<{
|
|
|
4301
4397
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
4302
4398
|
}>>;
|
|
4303
4399
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
4400
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
4304
4401
|
}>;
|
|
4305
4402
|
export type JourneyWaitForEventNode = {
|
|
4306
4403
|
readonly type: "wait_for_event";
|
|
@@ -4311,6 +4408,10 @@ export declare const JourneyWaitForEventNode: Schema.Struct<{
|
|
|
4311
4408
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
4312
4409
|
readonly config: Schema.Struct<{
|
|
4313
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
|
+
}>>;
|
|
4314
4415
|
readonly timeoutSeconds: Schema.Finite;
|
|
4315
4416
|
}>;
|
|
4316
4417
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -4321,7 +4422,7 @@ export declare const JourneyWaitForEventNode: Schema.Struct<{
|
|
|
4321
4422
|
readonly outcome: Schema.Union<readonly [Schema.Literal<"matched">, Schema.Literal<"timed_out">]>;
|
|
4322
4423
|
}>]>;
|
|
4323
4424
|
}>;
|
|
4324
|
-
export type JourneyPredicate = JourneyTagPredicate | JourneyPropertyPredicate | JourneyCustomFieldPredicate | JourneyEventPredicate;
|
|
4425
|
+
export type JourneyPredicate = JourneyTagPredicate | JourneyPropertyPredicate | JourneyCustomFieldPredicate | JourneyEventPredicate | JourneyEntryEventPropertyPredicate;
|
|
4325
4426
|
export declare const JourneyPredicate: Schema.Union<readonly [Schema.Struct<{
|
|
4326
4427
|
readonly type: Schema.Literal<"tag">;
|
|
4327
4428
|
readonly tag: Schema.String;
|
|
@@ -4360,6 +4461,21 @@ export declare const JourneyPredicate: Schema.Union<readonly [Schema.Struct<{
|
|
|
4360
4461
|
readonly type: Schema.Literal<"event">;
|
|
4361
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">]>]>;
|
|
4362
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
|
+
}>]>;
|
|
4363
4479
|
}>]>;
|
|
4364
4480
|
declare const MailboxSendRefusedError_base: Schema.Class<MailboxSendRefusedError, Schema.Struct<{
|
|
4365
4481
|
readonly _tag: Schema.tag<"MailboxSendRefusedError">;
|
|
@@ -4963,6 +5079,7 @@ export declare const WhatsAppJourneySendNode: Schema.Struct<{
|
|
|
4963
5079
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
4964
5080
|
}>>;
|
|
4965
5081
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
5082
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
4966
5083
|
}>;
|
|
4967
5084
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4968
5085
|
readonly nodeId: Schema.String;
|
|
@@ -5012,6 +5129,21 @@ export declare const JourneyCondition: Schema.Struct<{
|
|
|
5012
5129
|
readonly type: Schema.Literal<"event">;
|
|
5013
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">]>]>;
|
|
5014
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
|
+
}>]>;
|
|
5015
5147
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5016
5148
|
readonly type: Schema.Literal<"tag">;
|
|
5017
5149
|
readonly tag: Schema.String;
|
|
@@ -5050,6 +5182,21 @@ export declare const JourneyCondition: Schema.Struct<{
|
|
|
5050
5182
|
readonly type: Schema.Literal<"event">;
|
|
5051
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">]>]>;
|
|
5052
5184
|
readonly occurred: Schema.Boolean;
|
|
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
|
+
}>]>;
|
|
5053
5200
|
}>]>]>;
|
|
5054
5201
|
}>;
|
|
5055
5202
|
export type AgentDefinition = {
|
|
@@ -5571,6 +5718,21 @@ export declare const JourneyBranchEdge: Schema.Struct<{
|
|
|
5571
5718
|
readonly type: Schema.Literal<"event">;
|
|
5572
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">]>]>;
|
|
5573
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
|
+
}>]>;
|
|
5574
5736
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5575
5737
|
readonly type: Schema.Literal<"tag">;
|
|
5576
5738
|
readonly tag: Schema.String;
|
|
@@ -5609,6 +5771,21 @@ export declare const JourneyBranchEdge: Schema.Struct<{
|
|
|
5609
5771
|
readonly type: Schema.Literal<"event">;
|
|
5610
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">]>]>;
|
|
5611
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
|
+
}>]>;
|
|
5612
5789
|
}>]>]>;
|
|
5613
5790
|
}>>;
|
|
5614
5791
|
}>;
|
|
@@ -5990,6 +6167,7 @@ export declare const AgentModuleBundle: Schema.Struct<{
|
|
|
5990
6167
|
}>;
|
|
5991
6168
|
}>;
|
|
5992
6169
|
export type WhatsAppMessageContent = {
|
|
6170
|
+
readonly appHandlesFlowSubmission?: true;
|
|
5993
6171
|
readonly text?: string | null;
|
|
5994
6172
|
readonly template?: {
|
|
5995
6173
|
readonly name: string;
|
|
@@ -6022,6 +6200,7 @@ export type WhatsAppMessageContent = {
|
|
|
6022
6200
|
readonly coupon_code?: string | null;
|
|
6023
6201
|
readonly action?: {
|
|
6024
6202
|
readonly flow_token: string;
|
|
6203
|
+
readonly flow_action_data?: JsonObject;
|
|
6025
6204
|
} | null;
|
|
6026
6205
|
}>;
|
|
6027
6206
|
}>;
|
|
@@ -6036,6 +6215,7 @@ export type WhatsAppMessageContent = {
|
|
|
6036
6215
|
readonly context?: WhatsAppMessageReference;
|
|
6037
6216
|
};
|
|
6038
6217
|
export declare const WhatsAppMessageContent: Schema.Struct<{
|
|
6218
|
+
readonly appHandlesFlowSubmission: Schema.optionalKey<Schema.Literal<true>>;
|
|
6039
6219
|
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6040
6220
|
readonly template: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6041
6221
|
readonly name: Schema.String;
|
|
@@ -6068,6 +6248,7 @@ export declare const WhatsAppMessageContent: Schema.Struct<{
|
|
|
6068
6248
|
readonly coupon_code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6069
6249
|
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6070
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>>>>;
|
|
6071
6252
|
}>, Schema.Null]>>;
|
|
6072
6253
|
}>>;
|
|
6073
6254
|
}>>;
|
|
@@ -6243,6 +6424,7 @@ export declare const WhatsAppMessageContent: Schema.Struct<{
|
|
|
6243
6424
|
}>>;
|
|
6244
6425
|
readonly flowResponse: Schema.optionalKey<Schema.Struct<{
|
|
6245
6426
|
readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6427
|
+
readonly submissionHandler: Schema.optionalKey<Schema.Literal<"app">>;
|
|
6246
6428
|
readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
6247
6429
|
readonly body: Schema.optionalKey<Schema.String>;
|
|
6248
6430
|
}>>;
|
|
@@ -6484,6 +6666,21 @@ export declare const JourneyBranchNode: Schema.Struct<{
|
|
|
6484
6666
|
readonly type: Schema.Literal<"event">;
|
|
6485
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">]>]>;
|
|
6486
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
|
+
}>]>;
|
|
6487
6684
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6488
6685
|
readonly type: Schema.Literal<"tag">;
|
|
6489
6686
|
readonly tag: Schema.String;
|
|
@@ -6522,6 +6719,21 @@ export declare const JourneyBranchNode: Schema.Struct<{
|
|
|
6522
6719
|
readonly type: Schema.Literal<"event">;
|
|
6523
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">]>]>;
|
|
6524
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
|
+
}>]>;
|
|
6525
6737
|
}>]>]>;
|
|
6526
6738
|
}>>;
|
|
6527
6739
|
}>>;
|
|
@@ -6668,6 +6880,7 @@ export declare const MessageContent: Schema.Struct<{
|
|
|
6668
6880
|
readonly parts: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
6669
6881
|
}>, Schema.Null]>>;
|
|
6670
6882
|
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6883
|
+
readonly appHandlesFlowSubmission: Schema.optionalKey<Schema.Literal<true>>;
|
|
6671
6884
|
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6672
6885
|
readonly template: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6673
6886
|
readonly name: Schema.String;
|
|
@@ -6700,6 +6913,7 @@ export declare const MessageContent: Schema.Struct<{
|
|
|
6700
6913
|
readonly coupon_code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6701
6914
|
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6702
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>>>>;
|
|
6703
6917
|
}>, Schema.Null]>>;
|
|
6704
6918
|
}>>;
|
|
6705
6919
|
}>>;
|
|
@@ -6875,6 +7089,7 @@ export declare const MessageContent: Schema.Struct<{
|
|
|
6875
7089
|
}>>;
|
|
6876
7090
|
readonly flowResponse: Schema.optionalKey<Schema.Struct<{
|
|
6877
7091
|
readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7092
|
+
readonly submissionHandler: Schema.optionalKey<Schema.Literal<"app">>;
|
|
6878
7093
|
readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
6879
7094
|
readonly body: Schema.optionalKey<Schema.String>;
|
|
6880
7095
|
}>>;
|
|
@@ -6915,10 +7130,12 @@ export declare const WhatsAppContent: Schema.Union<readonly [Schema.Struct<{
|
|
|
6915
7130
|
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
6916
7131
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6917
7132
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
7133
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6918
7134
|
}>, Schema.Struct<{
|
|
6919
7135
|
readonly templateSlug: Schema.String;
|
|
6920
7136
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6921
7137
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
7138
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6922
7139
|
}>, Schema.Struct<{
|
|
6923
7140
|
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6924
7141
|
readonly type: Schema.Literal<"image">;
|
|
@@ -7114,6 +7331,7 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
7114
7331
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
7115
7332
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
7116
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>>;
|
|
7117
7335
|
}>;
|
|
7118
7336
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7119
7337
|
readonly nodeId: Schema.String;
|
|
@@ -7134,6 +7352,7 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
7134
7352
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
7135
7353
|
}>>;
|
|
7136
7354
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7355
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
7137
7356
|
}>;
|
|
7138
7357
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7139
7358
|
readonly nodeId: Schema.String;
|
|
@@ -7150,6 +7369,10 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
7150
7369
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
7151
7370
|
readonly config: Schema.Struct<{
|
|
7152
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
|
+
}>>;
|
|
7153
7376
|
readonly timeoutSeconds: Schema.Finite;
|
|
7154
7377
|
}>;
|
|
7155
7378
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -7204,6 +7427,21 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
7204
7427
|
readonly type: Schema.Literal<"event">;
|
|
7205
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">]>]>;
|
|
7206
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
|
+
}>]>;
|
|
7207
7445
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
7208
7446
|
readonly type: Schema.Literal<"tag">;
|
|
7209
7447
|
readonly tag: Schema.String;
|
|
@@ -7242,6 +7480,21 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
7242
7480
|
readonly type: Schema.Literal<"event">;
|
|
7243
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">]>]>;
|
|
7244
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
|
+
}>]>;
|
|
7245
7498
|
}>]>]>;
|
|
7246
7499
|
}>>;
|
|
7247
7500
|
}>>;
|
|
@@ -7258,6 +7511,7 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
7258
7511
|
readonly type: Schema.Literal<"webhook">;
|
|
7259
7512
|
readonly config: Schema.Struct<{
|
|
7260
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>>;
|
|
7261
7515
|
}>;
|
|
7262
7516
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7263
7517
|
readonly nodeId: Schema.String;
|
|
@@ -7291,10 +7545,12 @@ export declare const WhatsAppSendMessagePayload: Schema.Struct<{
|
|
|
7291
7545
|
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
7292
7546
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7293
7547
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
7548
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7294
7549
|
}>, Schema.Struct<{
|
|
7295
7550
|
readonly templateSlug: Schema.String;
|
|
7296
7551
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7297
7552
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
7553
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7298
7554
|
}>, Schema.Struct<{
|
|
7299
7555
|
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
7300
7556
|
readonly type: Schema.Literal<"image">;
|
|
@@ -7494,6 +7750,9 @@ export type JourneyDefinition = {
|
|
|
7494
7750
|
readonly enrollment?: {
|
|
7495
7751
|
readonly type: "shopify_order";
|
|
7496
7752
|
readonly shop: ShopifyShop;
|
|
7753
|
+
} | {
|
|
7754
|
+
readonly type: "event_property";
|
|
7755
|
+
readonly property: string;
|
|
7497
7756
|
};
|
|
7498
7757
|
};
|
|
7499
7758
|
export declare const JourneyDefinition: Schema.Struct<{
|
|
@@ -7517,6 +7776,7 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
7517
7776
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
7518
7777
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
7519
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>>;
|
|
7520
7780
|
}>;
|
|
7521
7781
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7522
7782
|
readonly nodeId: Schema.String;
|
|
@@ -7537,6 +7797,7 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
7537
7797
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
7538
7798
|
}>>;
|
|
7539
7799
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7800
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
7540
7801
|
}>;
|
|
7541
7802
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7542
7803
|
readonly nodeId: Schema.String;
|
|
@@ -7553,6 +7814,10 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
7553
7814
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
7554
7815
|
readonly config: Schema.Struct<{
|
|
7555
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
|
+
}>>;
|
|
7556
7821
|
readonly timeoutSeconds: Schema.Finite;
|
|
7557
7822
|
}>;
|
|
7558
7823
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -7607,6 +7872,21 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
7607
7872
|
readonly type: Schema.Literal<"event">;
|
|
7608
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">]>]>;
|
|
7609
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
|
+
}>]>;
|
|
7610
7890
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
7611
7891
|
readonly type: Schema.Literal<"tag">;
|
|
7612
7892
|
readonly tag: Schema.String;
|
|
@@ -7645,6 +7925,21 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
7645
7925
|
readonly type: Schema.Literal<"event">;
|
|
7646
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">]>]>;
|
|
7647
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
|
+
}>]>;
|
|
7648
7943
|
}>]>]>;
|
|
7649
7944
|
}>>;
|
|
7650
7945
|
}>>;
|
|
@@ -7661,6 +7956,7 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
7661
7956
|
readonly type: Schema.Literal<"webhook">;
|
|
7662
7957
|
readonly config: Schema.Struct<{
|
|
7663
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>>;
|
|
7664
7960
|
}>;
|
|
7665
7961
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7666
7962
|
readonly nodeId: Schema.String;
|
|
@@ -7674,10 +7970,13 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
7674
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">]>]>;
|
|
7675
7971
|
}>>;
|
|
7676
7972
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
7677
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
7973
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
7678
7974
|
readonly type: Schema.Literal<"shopify_order">;
|
|
7679
7975
|
readonly shop: Schema.String;
|
|
7680
|
-
}
|
|
7976
|
+
}>, Schema.Struct<{
|
|
7977
|
+
readonly type: Schema.Literal<"event_property">;
|
|
7978
|
+
readonly property: Schema.String;
|
|
7979
|
+
}>]>>;
|
|
7681
7980
|
}>;
|
|
7682
7981
|
export type SendMessagePayload = EmailSendMessagePayload | SmsSendMessagePayload | WhatsAppSendMessagePayload;
|
|
7683
7982
|
export declare const SendMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -7773,10 +8072,12 @@ export declare const SendMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
|
7773
8072
|
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
7774
8073
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7775
8074
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
8075
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7776
8076
|
}>, Schema.Struct<{
|
|
7777
8077
|
readonly templateSlug: Schema.String;
|
|
7778
8078
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7779
8079
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
8080
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7780
8081
|
}>, Schema.Struct<{
|
|
7781
8082
|
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
7782
8083
|
readonly type: Schema.Literal<"image">;
|
|
@@ -7967,10 +8268,12 @@ export declare const SendMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
|
7967
8268
|
}>]>;
|
|
7968
8269
|
export type CreateJourneyPayload = {
|
|
7969
8270
|
readonly name: JourneyName;
|
|
8271
|
+
readonly namespaceId?: NamespaceId;
|
|
7970
8272
|
readonly definition: JourneyDefinition;
|
|
7971
8273
|
};
|
|
7972
8274
|
export declare const CreateJourneyPayload: Schema.Struct<{
|
|
7973
8275
|
readonly name: Schema.String;
|
|
8276
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
7974
8277
|
readonly definition: Schema.Struct<{
|
|
7975
8278
|
readonly trigger: Schema.Union<readonly [Schema.Struct<{
|
|
7976
8279
|
readonly type: Schema.Literal<"event">;
|
|
@@ -7992,6 +8295,7 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
7992
8295
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
7993
8296
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
7994
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>>;
|
|
7995
8299
|
}>;
|
|
7996
8300
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7997
8301
|
readonly nodeId: Schema.String;
|
|
@@ -8012,6 +8316,7 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
8012
8316
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
8013
8317
|
}>>;
|
|
8014
8318
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
8319
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
8015
8320
|
}>;
|
|
8016
8321
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
8017
8322
|
readonly nodeId: Schema.String;
|
|
@@ -8028,6 +8333,10 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
8028
8333
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
8029
8334
|
readonly config: Schema.Struct<{
|
|
8030
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
|
+
}>>;
|
|
8031
8340
|
readonly timeoutSeconds: Schema.Finite;
|
|
8032
8341
|
}>;
|
|
8033
8342
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -8082,6 +8391,21 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
8082
8391
|
readonly type: Schema.Literal<"event">;
|
|
8083
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">]>]>;
|
|
8084
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
|
+
}>]>;
|
|
8085
8409
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
8086
8410
|
readonly type: Schema.Literal<"tag">;
|
|
8087
8411
|
readonly tag: Schema.String;
|
|
@@ -8120,6 +8444,21 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
8120
8444
|
readonly type: Schema.Literal<"event">;
|
|
8121
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">]>]>;
|
|
8122
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
|
+
}>]>;
|
|
8123
8462
|
}>]>]>;
|
|
8124
8463
|
}>>;
|
|
8125
8464
|
}>>;
|
|
@@ -8136,6 +8475,7 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
8136
8475
|
readonly type: Schema.Literal<"webhook">;
|
|
8137
8476
|
readonly config: Schema.Struct<{
|
|
8138
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>>;
|
|
8139
8479
|
}>;
|
|
8140
8480
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
8141
8481
|
readonly nodeId: Schema.String;
|
|
@@ -8149,10 +8489,13 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
8149
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">]>]>;
|
|
8150
8490
|
}>>;
|
|
8151
8491
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
8152
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
8492
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
8153
8493
|
readonly type: Schema.Literal<"shopify_order">;
|
|
8154
8494
|
readonly shop: Schema.String;
|
|
8155
|
-
}
|
|
8495
|
+
}>, Schema.Struct<{
|
|
8496
|
+
readonly type: Schema.Literal<"event_property">;
|
|
8497
|
+
readonly property: Schema.String;
|
|
8498
|
+
}>]>>;
|
|
8156
8499
|
}>;
|
|
8157
8500
|
}>;
|
|
8158
8501
|
export type ReplaceJourneyDraftPayload = {
|
|
@@ -8182,6 +8525,7 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
8182
8525
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
8183
8526
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
8184
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>>;
|
|
8185
8529
|
}>;
|
|
8186
8530
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
8187
8531
|
readonly nodeId: Schema.String;
|
|
@@ -8202,6 +8546,7 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
8202
8546
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
8203
8547
|
}>>;
|
|
8204
8548
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
8549
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
8205
8550
|
}>;
|
|
8206
8551
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
8207
8552
|
readonly nodeId: Schema.String;
|
|
@@ -8218,6 +8563,10 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
8218
8563
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
8219
8564
|
readonly config: Schema.Struct<{
|
|
8220
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
|
+
}>>;
|
|
8221
8570
|
readonly timeoutSeconds: Schema.Finite;
|
|
8222
8571
|
}>;
|
|
8223
8572
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -8272,6 +8621,21 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
8272
8621
|
readonly type: Schema.Literal<"event">;
|
|
8273
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">]>]>;
|
|
8274
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
|
+
}>]>;
|
|
8275
8639
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
8276
8640
|
readonly type: Schema.Literal<"tag">;
|
|
8277
8641
|
readonly tag: Schema.String;
|
|
@@ -8310,6 +8674,21 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
8310
8674
|
readonly type: Schema.Literal<"event">;
|
|
8311
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">]>]>;
|
|
8312
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
|
+
}>]>;
|
|
8313
8692
|
}>]>]>;
|
|
8314
8693
|
}>>;
|
|
8315
8694
|
}>>;
|
|
@@ -8326,6 +8705,7 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
8326
8705
|
readonly type: Schema.Literal<"webhook">;
|
|
8327
8706
|
readonly config: Schema.Struct<{
|
|
8328
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>>;
|
|
8329
8709
|
}>;
|
|
8330
8710
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
8331
8711
|
readonly nodeId: Schema.String;
|
|
@@ -8339,10 +8719,13 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
8339
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">]>]>;
|
|
8340
8720
|
}>>;
|
|
8341
8721
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
8342
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
8722
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
8343
8723
|
readonly type: Schema.Literal<"shopify_order">;
|
|
8344
8724
|
readonly shop: Schema.String;
|
|
8345
|
-
}
|
|
8725
|
+
}>, Schema.Struct<{
|
|
8726
|
+
readonly type: Schema.Literal<"event_property">;
|
|
8727
|
+
readonly property: Schema.String;
|
|
8728
|
+
}>]>>;
|
|
8346
8729
|
}>;
|
|
8347
8730
|
}>;
|
|
8348
8731
|
export { __SamvaRuntimeAbsoluteInstant, __SamvaRuntimeSensitiveString, __SamvaRuntimeNonEmptySensitiveString, };
|