samva 0.52.0 → 0.54.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 +55 -18
- package/dist/client/sdk.gen.js +165 -45
- package/dist/client/types.gen.d.ts +313 -21
- package/dist/effect/brands.d.ts +8 -1
- package/dist/effect/descriptors/brands.d.ts +4 -4
- package/dist/effect/descriptors/brands.js +4 -4
- package/dist/effect/descriptors/email.d.ts +21 -1
- package/dist/effect/descriptors/email.js +21 -1
- package/dist/effect/email.d.ts +12 -0
- package/dist/effect/email.js +5 -1
- package/dist/effect/events.d.ts +16 -0
- package/dist/effect/generated/api-keys.js +2 -2
- package/dist/effect/generated/brands.d.ts +78 -8
- package/dist/effect/generated/brands.js +21 -12
- package/dist/effect/generated/email.d.ts +473 -2
- package/dist/effect/generated/email.js +106 -7
- package/dist/effect/generated/events.d.ts +48 -0
- package/dist/effect/generated/events.js +1 -1
- package/dist/effect/generated/journeys.d.ts +1173 -55
- 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 +16 -0
- package/dist/effect/generated/messages.js +7 -1
- package/dist/effect/generated/scheduled-messages.d.ts +36 -0
- package/dist/effect/generated/shared.d.ts +438 -15
- package/dist/effect/generated/shared.js +59 -13
- package/dist/effect/generated/templates.d.ts +34 -1
- package/dist/effect/generated/templates.js +18 -3
- package/dist/effect/generated/whats-app-flows.d.ts +23 -5
- package/dist/effect/generated/whats-app-flows.js +9 -7
- package/dist/effect/generated-metadata.d.ts +12 -0
- package/dist/effect/generated-metadata.js +2 -0
- package/dist/effect/journeys.d.ts +76 -0
- package/dist/effect/mailboxes.d.ts +2 -0
- package/dist/effect/scheduled-messages.d.ts +66 -0
- package/dist/effect/templates.d.ts +1 -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/dist/service-map.d.ts +15 -5
- package/package.json +2 -2
|
@@ -209,6 +209,8 @@ export type MessageId = string & EffectBrand.Brand<"MessageId">;
|
|
|
209
209
|
export declare const MessageId: Schema.brand<Schema.String, "MessageId">;
|
|
210
210
|
export type AttachmentId = string & EffectBrand.Brand<"AttachmentId">;
|
|
211
211
|
export declare const AttachmentId: Schema.brand<Schema.String, "AttachmentId">;
|
|
212
|
+
export type BrandId = string & EffectBrand.Brand<"BrandId">;
|
|
213
|
+
export declare const BrandId: Schema.brand<Schema.String, "BrandId">;
|
|
212
214
|
export type BrandAssets = {
|
|
213
215
|
readonly logoUrl?: string | null;
|
|
214
216
|
readonly logoDarkUrl?: string | null;
|
|
@@ -732,6 +734,7 @@ export declare const WhatsAppReceivedReply: Schema.Struct<{
|
|
|
732
734
|
}>;
|
|
733
735
|
export type WhatsAppReceivedFlowResponse = {
|
|
734
736
|
readonly flowToken: string | null;
|
|
737
|
+
readonly submissionHandler?: "app";
|
|
735
738
|
readonly response: {
|
|
736
739
|
readonly [x: string]: JsonValue;
|
|
737
740
|
};
|
|
@@ -739,6 +742,7 @@ export type WhatsAppReceivedFlowResponse = {
|
|
|
739
742
|
};
|
|
740
743
|
export declare const WhatsAppReceivedFlowResponse: Schema.Struct<{
|
|
741
744
|
readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
745
|
+
readonly submissionHandler: Schema.optionalKey<Schema.Literal<"app">>;
|
|
742
746
|
readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
743
747
|
readonly body: Schema.optionalKey<Schema.String>;
|
|
744
748
|
}>;
|
|
@@ -878,6 +882,10 @@ export type WhatsAppTemplateData = {
|
|
|
878
882
|
readonly [x: string]: JsonValue;
|
|
879
883
|
};
|
|
880
884
|
export declare const WhatsAppTemplateData: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
885
|
+
export type WhatsAppFlowActionData = {
|
|
886
|
+
readonly [x: string]: JsonValue;
|
|
887
|
+
};
|
|
888
|
+
export declare const WhatsAppFlowActionData: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
881
889
|
export type WhatsAppImageLink = {
|
|
882
890
|
readonly type: "image";
|
|
883
891
|
readonly caption?: string;
|
|
@@ -1128,6 +1136,7 @@ export type AddTemplateEntryPayload = {
|
|
|
1128
1136
|
readonly entryPath: string;
|
|
1129
1137
|
readonly name: string;
|
|
1130
1138
|
readonly slug: string;
|
|
1139
|
+
readonly channel?: "email" | "whatsapp";
|
|
1131
1140
|
readonly description?: string | null;
|
|
1132
1141
|
readonly category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
1133
1142
|
};
|
|
@@ -1135,6 +1144,7 @@ export declare const AddTemplateEntryPayload: Schema.Struct<{
|
|
|
1135
1144
|
readonly entryPath: Schema.String;
|
|
1136
1145
|
readonly name: Schema.String;
|
|
1137
1146
|
readonly slug: Schema.String;
|
|
1147
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>>;
|
|
1138
1148
|
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1139
1149
|
readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"transactional">, Schema.Literal<"marketing">, Schema.Literal<"support">, Schema.Literal<"notification">, Schema.Literal<"verification">, Schema.Literal<"reminder">, Schema.Literal<"alert">]>, Schema.Null]>>;
|
|
1140
1150
|
}>;
|
|
@@ -1325,14 +1335,6 @@ export type ReapplyOnboardingReviewInput = {
|
|
|
1325
1335
|
export declare const ReapplyOnboardingReviewInput: Schema.Struct<{
|
|
1326
1336
|
readonly expectedGeneration: Schema.Finite;
|
|
1327
1337
|
}>;
|
|
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
1338
|
export type RescheduleMailboxSend = {
|
|
1337
1339
|
readonly idempotencyKey: string;
|
|
1338
1340
|
readonly base: string;
|
|
@@ -1481,10 +1483,26 @@ export declare const ContactConsent: Schema.Struct<{
|
|
|
1481
1483
|
}>;
|
|
1482
1484
|
export type JourneyWebhookConfig = {
|
|
1483
1485
|
readonly data?: JsonObject;
|
|
1486
|
+
readonly eventBindings?: {
|
|
1487
|
+
readonly [x: string]: string;
|
|
1488
|
+
};
|
|
1484
1489
|
};
|
|
1485
1490
|
export declare const JourneyWebhookConfig: Schema.Struct<{
|
|
1486
1491
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
1492
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1487
1493
|
}>;
|
|
1494
|
+
export type RecordWhatsAppFlowVersionPayload = {
|
|
1495
|
+
readonly commitSha: string;
|
|
1496
|
+
readonly expectedWorkspaceRevision: string;
|
|
1497
|
+
} | {
|
|
1498
|
+
readonly flowJson: JsonObject;
|
|
1499
|
+
};
|
|
1500
|
+
export declare const RecordWhatsAppFlowVersionPayload: Schema.Union<readonly [Schema.Struct<{
|
|
1501
|
+
readonly commitSha: Schema.String;
|
|
1502
|
+
readonly expectedWorkspaceRevision: Schema.String;
|
|
1503
|
+
}>, Schema.Struct<{
|
|
1504
|
+
readonly flowJson: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
1505
|
+
}>]>;
|
|
1488
1506
|
export type SetContactConsent = {
|
|
1489
1507
|
readonly status: "opted_in" | "opted_out";
|
|
1490
1508
|
readonly source: string;
|
|
@@ -1549,27 +1567,43 @@ export type ContactEventReference = {
|
|
|
1549
1567
|
readonly id: ContactId;
|
|
1550
1568
|
readonly externalId?: never;
|
|
1551
1569
|
readonly email?: never;
|
|
1570
|
+
readonly phone?: never;
|
|
1552
1571
|
} | {
|
|
1553
1572
|
readonly externalId: string;
|
|
1554
1573
|
readonly id?: never;
|
|
1555
1574
|
readonly email?: never;
|
|
1575
|
+
readonly phone?: never;
|
|
1556
1576
|
} | {
|
|
1557
1577
|
readonly email: string;
|
|
1558
1578
|
readonly id?: never;
|
|
1559
1579
|
readonly externalId?: never;
|
|
1580
|
+
readonly phone?: never;
|
|
1581
|
+
} | {
|
|
1582
|
+
readonly phone: string;
|
|
1583
|
+
readonly id?: never;
|
|
1584
|
+
readonly externalId?: never;
|
|
1585
|
+
readonly email?: never;
|
|
1560
1586
|
};
|
|
1561
1587
|
export declare const ContactEventReference: Schema.Union<readonly [Schema.Struct<{
|
|
1562
1588
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
1563
1589
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
1564
1590
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
1591
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
1565
1592
|
}>, Schema.Struct<{
|
|
1566
1593
|
readonly externalId: Schema.String;
|
|
1567
1594
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
1568
1595
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
1596
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
1569
1597
|
}>, Schema.Struct<{
|
|
1570
1598
|
readonly email: Schema.String;
|
|
1571
1599
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
1572
1600
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
1601
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
1602
|
+
}>, Schema.Struct<{
|
|
1603
|
+
readonly phone: Schema.String;
|
|
1604
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
1605
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
1606
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
1573
1607
|
}>]>;
|
|
1574
1608
|
export type EmailRecipient = {
|
|
1575
1609
|
readonly contactId: ContactId;
|
|
@@ -2243,13 +2277,24 @@ export type JourneySendEmailConfig = {
|
|
|
2243
2277
|
readonly template: TemplateId | string;
|
|
2244
2278
|
readonly publicationId?: TemplatePublicationId;
|
|
2245
2279
|
readonly senderId?: EmailSenderId;
|
|
2280
|
+
readonly tracking?: EmailTrackingOverrideV1;
|
|
2281
|
+
readonly topicName?: string;
|
|
2246
2282
|
readonly templateData?: JsonObject;
|
|
2283
|
+
readonly eventBindings?: {
|
|
2284
|
+
readonly [x: string]: string;
|
|
2285
|
+
};
|
|
2247
2286
|
};
|
|
2248
2287
|
export declare const JourneySendEmailConfig: Schema.Struct<{
|
|
2249
2288
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2250
2289
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
2251
2290
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
2291
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
2292
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
2293
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
2294
|
+
}>>;
|
|
2295
|
+
readonly topicName: Schema.optionalKey<Schema.String>;
|
|
2252
2296
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2297
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2253
2298
|
}>;
|
|
2254
2299
|
export type TopicCreatePayload = {
|
|
2255
2300
|
readonly name: string;
|
|
@@ -2747,21 +2792,25 @@ export type WhatsAppTemplateIdContent = {
|
|
|
2747
2792
|
readonly templateId: TemplateId;
|
|
2748
2793
|
readonly templateData?: WhatsAppTemplateData;
|
|
2749
2794
|
readonly flowToken?: string;
|
|
2795
|
+
readonly flowActionData?: WhatsAppFlowActionData;
|
|
2750
2796
|
};
|
|
2751
2797
|
export declare const WhatsAppTemplateIdContent: Schema.Struct<{
|
|
2752
2798
|
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
2753
2799
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2754
2800
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
2801
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2755
2802
|
}>;
|
|
2756
2803
|
export type WhatsAppTemplateSlugContent = {
|
|
2757
2804
|
readonly templateSlug: string;
|
|
2758
2805
|
readonly templateData?: WhatsAppTemplateData;
|
|
2759
2806
|
readonly flowToken?: string;
|
|
2807
|
+
readonly flowActionData?: WhatsAppFlowActionData;
|
|
2760
2808
|
};
|
|
2761
2809
|
export declare const WhatsAppTemplateSlugContent: Schema.Struct<{
|
|
2762
2810
|
readonly templateSlug: Schema.String;
|
|
2763
2811
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2764
2812
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
2813
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2765
2814
|
}>;
|
|
2766
2815
|
export type WhatsAppLocationContent = {
|
|
2767
2816
|
readonly location: WhatsAppLocation;
|
|
@@ -2847,11 +2896,13 @@ export type CreateWhatsAppFlowPayload = {
|
|
|
2847
2896
|
readonly projectId: TemplateProjectId;
|
|
2848
2897
|
readonly handle: string;
|
|
2849
2898
|
readonly categories: ReadonlyArray<"SIGN_UP" | "SIGN_IN" | "APPOINTMENT_BOOKING" | "LEAD_GENERATION" | "CONTACT_US" | "CUSTOMER_SUPPORT" | "SURVEY" | "OTHER">;
|
|
2899
|
+
readonly submissionHandler?: "agent" | "app";
|
|
2850
2900
|
};
|
|
2851
2901
|
export declare const CreateWhatsAppFlowPayload: Schema.Struct<{
|
|
2852
2902
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
2853
2903
|
readonly handle: Schema.String;
|
|
2854
2904
|
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">]>>;
|
|
2905
|
+
readonly submissionHandler: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"app">]>>;
|
|
2855
2906
|
}>;
|
|
2856
2907
|
export type Operation = {
|
|
2857
2908
|
readonly id: OperationId;
|
|
@@ -3011,14 +3062,22 @@ export declare const CreateEventPayload: Schema.Struct<{
|
|
|
3011
3062
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
3012
3063
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3013
3064
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3065
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3014
3066
|
}>, Schema.Struct<{
|
|
3015
3067
|
readonly externalId: Schema.String;
|
|
3016
3068
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3017
3069
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3070
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3018
3071
|
}>, Schema.Struct<{
|
|
3019
3072
|
readonly email: Schema.String;
|
|
3020
3073
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3021
3074
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3075
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3076
|
+
}>, Schema.Struct<{
|
|
3077
|
+
readonly phone: Schema.String;
|
|
3078
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3079
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3080
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3022
3081
|
}>]>;
|
|
3023
3082
|
readonly name: Schema.String;
|
|
3024
3083
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
@@ -3158,6 +3217,7 @@ export declare const WhatsAppReactionContent: Schema.Struct<{
|
|
|
3158
3217
|
}>;
|
|
3159
3218
|
}>;
|
|
3160
3219
|
export type CreateBrand = {
|
|
3220
|
+
readonly namespaceId?: NamespaceId | null;
|
|
3161
3221
|
readonly slug: string;
|
|
3162
3222
|
readonly name: string;
|
|
3163
3223
|
readonly css?: string | null;
|
|
@@ -3166,6 +3226,7 @@ export type CreateBrand = {
|
|
|
3166
3226
|
readonly isDefault?: boolean | null;
|
|
3167
3227
|
};
|
|
3168
3228
|
export declare const CreateBrand: Schema.Struct<{
|
|
3229
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
3169
3230
|
readonly slug: Schema.String;
|
|
3170
3231
|
readonly name: Schema.String;
|
|
3171
3232
|
readonly css: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -3193,6 +3254,7 @@ export declare const CreateBrand: Schema.Struct<{
|
|
|
3193
3254
|
readonly isDefault: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3194
3255
|
}>;
|
|
3195
3256
|
export type UpdateBrand = {
|
|
3257
|
+
readonly namespaceId?: NamespaceId | null;
|
|
3196
3258
|
readonly newSlug?: string | null;
|
|
3197
3259
|
readonly name?: string | null;
|
|
3198
3260
|
readonly css?: string | null;
|
|
@@ -3200,6 +3262,7 @@ export type UpdateBrand = {
|
|
|
3200
3262
|
readonly footer?: BrandFooter | null;
|
|
3201
3263
|
};
|
|
3202
3264
|
export declare const UpdateBrand: Schema.Struct<{
|
|
3265
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
3203
3266
|
readonly newSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3204
3267
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3205
3268
|
readonly css: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -3524,10 +3587,18 @@ export declare const JourneyTrigger: Schema.Union<readonly [Schema.Struct<{
|
|
|
3524
3587
|
}>]>;
|
|
3525
3588
|
export type JourneyWaitForEventConfig = {
|
|
3526
3589
|
readonly eventName: JourneyEventName;
|
|
3590
|
+
readonly correlation?: {
|
|
3591
|
+
readonly eventProperty: string;
|
|
3592
|
+
readonly entryProperty: string;
|
|
3593
|
+
};
|
|
3527
3594
|
readonly timeoutSeconds: number;
|
|
3528
3595
|
};
|
|
3529
3596
|
export declare const JourneyWaitForEventConfig: Schema.Struct<{
|
|
3530
3597
|
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">]>]>;
|
|
3598
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
3599
|
+
readonly eventProperty: Schema.String;
|
|
3600
|
+
readonly entryProperty: Schema.String;
|
|
3601
|
+
}>>;
|
|
3531
3602
|
readonly timeoutSeconds: Schema.Finite;
|
|
3532
3603
|
}>;
|
|
3533
3604
|
export type JourneyEventPredicate = {
|
|
@@ -3557,7 +3628,13 @@ export declare const JourneySendEmailNode: Schema.Struct<{
|
|
|
3557
3628
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3558
3629
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
3559
3630
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
3631
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
3632
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
3633
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
3634
|
+
}>>;
|
|
3635
|
+
readonly topicName: Schema.optionalKey<Schema.String>;
|
|
3560
3636
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
3637
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3561
3638
|
}>;
|
|
3562
3639
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3563
3640
|
readonly nodeId: Schema.String;
|
|
@@ -3601,6 +3678,7 @@ export declare const JourneyWebhookNode: Schema.Struct<{
|
|
|
3601
3678
|
readonly type: Schema.Literal<"webhook">;
|
|
3602
3679
|
readonly config: Schema.Struct<{
|
|
3603
3680
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
3681
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3604
3682
|
}>;
|
|
3605
3683
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3606
3684
|
readonly nodeId: Schema.String;
|
|
@@ -3648,6 +3726,27 @@ export declare const JourneyCustomFieldPredicate: Schema.Struct<{
|
|
|
3648
3726
|
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
3649
3727
|
}>]>;
|
|
3650
3728
|
}>;
|
|
3729
|
+
export type JourneyEntryEventPropertyPredicate = {
|
|
3730
|
+
readonly type: "entry_event_property";
|
|
3731
|
+
readonly property: string;
|
|
3732
|
+
readonly comparison: JourneyComparison;
|
|
3733
|
+
};
|
|
3734
|
+
export declare const JourneyEntryEventPropertyPredicate: Schema.Struct<{
|
|
3735
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
3736
|
+
readonly property: Schema.String;
|
|
3737
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
3738
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
3739
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
3740
|
+
}>, Schema.Struct<{
|
|
3741
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
3742
|
+
readonly value: Schema.Finite;
|
|
3743
|
+
}>, Schema.Struct<{
|
|
3744
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
3745
|
+
readonly value: Schema.String;
|
|
3746
|
+
}>, Schema.Struct<{
|
|
3747
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
3748
|
+
}>]>;
|
|
3749
|
+
}>;
|
|
3651
3750
|
export type WhatsAppListMessage = {
|
|
3652
3751
|
readonly type: "list";
|
|
3653
3752
|
readonly header?: WhatsAppTextHeader;
|
|
@@ -3890,14 +3989,22 @@ export declare const BatchEventsPayload: Schema.Struct<{
|
|
|
3890
3989
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
3891
3990
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3892
3991
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3992
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3893
3993
|
}>, Schema.Struct<{
|
|
3894
3994
|
readonly externalId: Schema.String;
|
|
3895
3995
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3896
3996
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3997
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3897
3998
|
}>, Schema.Struct<{
|
|
3898
3999
|
readonly email: Schema.String;
|
|
3899
4000
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3900
4001
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
4002
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
4003
|
+
}>, Schema.Struct<{
|
|
4004
|
+
readonly phone: Schema.String;
|
|
4005
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
4006
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
4007
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3901
4008
|
}>]>;
|
|
3902
4009
|
readonly name: Schema.String;
|
|
3903
4010
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
@@ -3907,14 +4014,22 @@ export declare const BatchEventsPayload: Schema.Struct<{
|
|
|
3907
4014
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
3908
4015
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3909
4016
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
4017
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3910
4018
|
}>, Schema.Struct<{
|
|
3911
4019
|
readonly externalId: Schema.String;
|
|
3912
4020
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3913
4021
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
4022
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
3914
4023
|
}>, Schema.Struct<{
|
|
3915
4024
|
readonly email: Schema.String;
|
|
3916
4025
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3917
4026
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
4027
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
4028
|
+
}>, Schema.Struct<{
|
|
4029
|
+
readonly phone: Schema.String;
|
|
4030
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
4031
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
4032
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3918
4033
|
}>]>;
|
|
3919
4034
|
readonly name: Schema.String;
|
|
3920
4035
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
@@ -4286,6 +4401,7 @@ export type JourneySendWhatsAppConfig = {
|
|
|
4286
4401
|
readonly eventBindings?: {
|
|
4287
4402
|
readonly [x: string]: string;
|
|
4288
4403
|
};
|
|
4404
|
+
readonly flowActionDataBinding?: string;
|
|
4289
4405
|
};
|
|
4290
4406
|
export declare const JourneySendWhatsAppConfig: Schema.Struct<{
|
|
4291
4407
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
@@ -4301,6 +4417,7 @@ export declare const JourneySendWhatsAppConfig: Schema.Struct<{
|
|
|
4301
4417
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
4302
4418
|
}>>;
|
|
4303
4419
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
4420
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
4304
4421
|
}>;
|
|
4305
4422
|
export type JourneyWaitForEventNode = {
|
|
4306
4423
|
readonly type: "wait_for_event";
|
|
@@ -4311,6 +4428,10 @@ export declare const JourneyWaitForEventNode: Schema.Struct<{
|
|
|
4311
4428
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
4312
4429
|
readonly config: Schema.Struct<{
|
|
4313
4430
|
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">]>]>;
|
|
4431
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
4432
|
+
readonly eventProperty: Schema.String;
|
|
4433
|
+
readonly entryProperty: Schema.String;
|
|
4434
|
+
}>>;
|
|
4314
4435
|
readonly timeoutSeconds: Schema.Finite;
|
|
4315
4436
|
}>;
|
|
4316
4437
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -4321,7 +4442,7 @@ export declare const JourneyWaitForEventNode: Schema.Struct<{
|
|
|
4321
4442
|
readonly outcome: Schema.Union<readonly [Schema.Literal<"matched">, Schema.Literal<"timed_out">]>;
|
|
4322
4443
|
}>]>;
|
|
4323
4444
|
}>;
|
|
4324
|
-
export type JourneyPredicate = JourneyTagPredicate | JourneyPropertyPredicate | JourneyCustomFieldPredicate | JourneyEventPredicate;
|
|
4445
|
+
export type JourneyPredicate = JourneyTagPredicate | JourneyPropertyPredicate | JourneyCustomFieldPredicate | JourneyEventPredicate | JourneyEntryEventPropertyPredicate;
|
|
4325
4446
|
export declare const JourneyPredicate: Schema.Union<readonly [Schema.Struct<{
|
|
4326
4447
|
readonly type: Schema.Literal<"tag">;
|
|
4327
4448
|
readonly tag: Schema.String;
|
|
@@ -4360,6 +4481,21 @@ export declare const JourneyPredicate: Schema.Union<readonly [Schema.Struct<{
|
|
|
4360
4481
|
readonly type: Schema.Literal<"event">;
|
|
4361
4482
|
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
4483
|
readonly occurred: Schema.Boolean;
|
|
4484
|
+
}>, Schema.Struct<{
|
|
4485
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
4486
|
+
readonly property: Schema.String;
|
|
4487
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
4488
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
4489
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
4490
|
+
}>, Schema.Struct<{
|
|
4491
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
4492
|
+
readonly value: Schema.Finite;
|
|
4493
|
+
}>, Schema.Struct<{
|
|
4494
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
4495
|
+
readonly value: Schema.String;
|
|
4496
|
+
}>, Schema.Struct<{
|
|
4497
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
4498
|
+
}>]>;
|
|
4363
4499
|
}>]>;
|
|
4364
4500
|
declare const MailboxSendRefusedError_base: Schema.Class<MailboxSendRefusedError, Schema.Struct<{
|
|
4365
4501
|
readonly _tag: Schema.tag<"MailboxSendRefusedError">;
|
|
@@ -4963,6 +5099,7 @@ export declare const WhatsAppJourneySendNode: Schema.Struct<{
|
|
|
4963
5099
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
4964
5100
|
}>>;
|
|
4965
5101
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
5102
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
4966
5103
|
}>;
|
|
4967
5104
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4968
5105
|
readonly nodeId: Schema.String;
|
|
@@ -5012,6 +5149,21 @@ export declare const JourneyCondition: Schema.Struct<{
|
|
|
5012
5149
|
readonly type: Schema.Literal<"event">;
|
|
5013
5150
|
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
5151
|
readonly occurred: Schema.Boolean;
|
|
5152
|
+
}>, Schema.Struct<{
|
|
5153
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
5154
|
+
readonly property: Schema.String;
|
|
5155
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
5156
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
5157
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
5158
|
+
}>, Schema.Struct<{
|
|
5159
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
5160
|
+
readonly value: Schema.Finite;
|
|
5161
|
+
}>, Schema.Struct<{
|
|
5162
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
5163
|
+
readonly value: Schema.String;
|
|
5164
|
+
}>, Schema.Struct<{
|
|
5165
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
5166
|
+
}>]>;
|
|
5015
5167
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5016
5168
|
readonly type: Schema.Literal<"tag">;
|
|
5017
5169
|
readonly tag: Schema.String;
|
|
@@ -5050,6 +5202,21 @@ export declare const JourneyCondition: Schema.Struct<{
|
|
|
5050
5202
|
readonly type: Schema.Literal<"event">;
|
|
5051
5203
|
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
5204
|
readonly occurred: Schema.Boolean;
|
|
5205
|
+
}>, Schema.Struct<{
|
|
5206
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
5207
|
+
readonly property: Schema.String;
|
|
5208
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
5209
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
5210
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
5211
|
+
}>, Schema.Struct<{
|
|
5212
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
5213
|
+
readonly value: Schema.Finite;
|
|
5214
|
+
}>, Schema.Struct<{
|
|
5215
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
5216
|
+
readonly value: Schema.String;
|
|
5217
|
+
}>, Schema.Struct<{
|
|
5218
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
5219
|
+
}>]>;
|
|
5053
5220
|
}>]>]>;
|
|
5054
5221
|
}>;
|
|
5055
5222
|
export type AgentDefinition = {
|
|
@@ -5571,6 +5738,21 @@ export declare const JourneyBranchEdge: Schema.Struct<{
|
|
|
5571
5738
|
readonly type: Schema.Literal<"event">;
|
|
5572
5739
|
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
5740
|
readonly occurred: Schema.Boolean;
|
|
5741
|
+
}>, Schema.Struct<{
|
|
5742
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
5743
|
+
readonly property: Schema.String;
|
|
5744
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
5745
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
5746
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
5747
|
+
}>, Schema.Struct<{
|
|
5748
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
5749
|
+
readonly value: Schema.Finite;
|
|
5750
|
+
}>, Schema.Struct<{
|
|
5751
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
5752
|
+
readonly value: Schema.String;
|
|
5753
|
+
}>, Schema.Struct<{
|
|
5754
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
5755
|
+
}>]>;
|
|
5574
5756
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5575
5757
|
readonly type: Schema.Literal<"tag">;
|
|
5576
5758
|
readonly tag: Schema.String;
|
|
@@ -5609,6 +5791,21 @@ export declare const JourneyBranchEdge: Schema.Struct<{
|
|
|
5609
5791
|
readonly type: Schema.Literal<"event">;
|
|
5610
5792
|
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
5793
|
readonly occurred: Schema.Boolean;
|
|
5794
|
+
}>, Schema.Struct<{
|
|
5795
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
5796
|
+
readonly property: Schema.String;
|
|
5797
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
5798
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
5799
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
5800
|
+
}>, Schema.Struct<{
|
|
5801
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
5802
|
+
readonly value: Schema.Finite;
|
|
5803
|
+
}>, Schema.Struct<{
|
|
5804
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
5805
|
+
readonly value: Schema.String;
|
|
5806
|
+
}>, Schema.Struct<{
|
|
5807
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
5808
|
+
}>]>;
|
|
5612
5809
|
}>]>]>;
|
|
5613
5810
|
}>>;
|
|
5614
5811
|
}>;
|
|
@@ -5990,6 +6187,7 @@ export declare const AgentModuleBundle: Schema.Struct<{
|
|
|
5990
6187
|
}>;
|
|
5991
6188
|
}>;
|
|
5992
6189
|
export type WhatsAppMessageContent = {
|
|
6190
|
+
readonly appHandlesFlowSubmission?: true;
|
|
5993
6191
|
readonly text?: string | null;
|
|
5994
6192
|
readonly template?: {
|
|
5995
6193
|
readonly name: string;
|
|
@@ -6022,6 +6220,7 @@ export type WhatsAppMessageContent = {
|
|
|
6022
6220
|
readonly coupon_code?: string | null;
|
|
6023
6221
|
readonly action?: {
|
|
6024
6222
|
readonly flow_token: string;
|
|
6223
|
+
readonly flow_action_data?: JsonObject;
|
|
6025
6224
|
} | null;
|
|
6026
6225
|
}>;
|
|
6027
6226
|
}>;
|
|
@@ -6036,6 +6235,7 @@ export type WhatsAppMessageContent = {
|
|
|
6036
6235
|
readonly context?: WhatsAppMessageReference;
|
|
6037
6236
|
};
|
|
6038
6237
|
export declare const WhatsAppMessageContent: Schema.Struct<{
|
|
6238
|
+
readonly appHandlesFlowSubmission: Schema.optionalKey<Schema.Literal<true>>;
|
|
6039
6239
|
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6040
6240
|
readonly template: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6041
6241
|
readonly name: Schema.String;
|
|
@@ -6068,6 +6268,7 @@ export declare const WhatsAppMessageContent: Schema.Struct<{
|
|
|
6068
6268
|
readonly coupon_code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6069
6269
|
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6070
6270
|
readonly flow_token: Schema.String;
|
|
6271
|
+
readonly flow_action_data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6071
6272
|
}>, Schema.Null]>>;
|
|
6072
6273
|
}>>;
|
|
6073
6274
|
}>>;
|
|
@@ -6243,6 +6444,7 @@ export declare const WhatsAppMessageContent: Schema.Struct<{
|
|
|
6243
6444
|
}>>;
|
|
6244
6445
|
readonly flowResponse: Schema.optionalKey<Schema.Struct<{
|
|
6245
6446
|
readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6447
|
+
readonly submissionHandler: Schema.optionalKey<Schema.Literal<"app">>;
|
|
6246
6448
|
readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
6247
6449
|
readonly body: Schema.optionalKey<Schema.String>;
|
|
6248
6450
|
}>>;
|
|
@@ -6484,6 +6686,21 @@ export declare const JourneyBranchNode: Schema.Struct<{
|
|
|
6484
6686
|
readonly type: Schema.Literal<"event">;
|
|
6485
6687
|
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
6688
|
readonly occurred: Schema.Boolean;
|
|
6689
|
+
}>, Schema.Struct<{
|
|
6690
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
6691
|
+
readonly property: Schema.String;
|
|
6692
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
6693
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
6694
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
6695
|
+
}>, Schema.Struct<{
|
|
6696
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
6697
|
+
readonly value: Schema.Finite;
|
|
6698
|
+
}>, Schema.Struct<{
|
|
6699
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
6700
|
+
readonly value: Schema.String;
|
|
6701
|
+
}>, Schema.Struct<{
|
|
6702
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
6703
|
+
}>]>;
|
|
6487
6704
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6488
6705
|
readonly type: Schema.Literal<"tag">;
|
|
6489
6706
|
readonly tag: Schema.String;
|
|
@@ -6522,6 +6739,21 @@ export declare const JourneyBranchNode: Schema.Struct<{
|
|
|
6522
6739
|
readonly type: Schema.Literal<"event">;
|
|
6523
6740
|
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
6741
|
readonly occurred: Schema.Boolean;
|
|
6742
|
+
}>, Schema.Struct<{
|
|
6743
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
6744
|
+
readonly property: Schema.String;
|
|
6745
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
6746
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
6747
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
6748
|
+
}>, Schema.Struct<{
|
|
6749
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
6750
|
+
readonly value: Schema.Finite;
|
|
6751
|
+
}>, Schema.Struct<{
|
|
6752
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
6753
|
+
readonly value: Schema.String;
|
|
6754
|
+
}>, Schema.Struct<{
|
|
6755
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
6756
|
+
}>]>;
|
|
6525
6757
|
}>]>]>;
|
|
6526
6758
|
}>>;
|
|
6527
6759
|
}>>;
|
|
@@ -6668,6 +6900,7 @@ export declare const MessageContent: Schema.Struct<{
|
|
|
6668
6900
|
readonly parts: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
6669
6901
|
}>, Schema.Null]>>;
|
|
6670
6902
|
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6903
|
+
readonly appHandlesFlowSubmission: Schema.optionalKey<Schema.Literal<true>>;
|
|
6671
6904
|
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6672
6905
|
readonly template: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6673
6906
|
readonly name: Schema.String;
|
|
@@ -6700,6 +6933,7 @@ export declare const MessageContent: Schema.Struct<{
|
|
|
6700
6933
|
readonly coupon_code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6701
6934
|
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6702
6935
|
readonly flow_token: Schema.String;
|
|
6936
|
+
readonly flow_action_data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6703
6937
|
}>, Schema.Null]>>;
|
|
6704
6938
|
}>>;
|
|
6705
6939
|
}>>;
|
|
@@ -6875,6 +7109,7 @@ export declare const MessageContent: Schema.Struct<{
|
|
|
6875
7109
|
}>>;
|
|
6876
7110
|
readonly flowResponse: Schema.optionalKey<Schema.Struct<{
|
|
6877
7111
|
readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7112
|
+
readonly submissionHandler: Schema.optionalKey<Schema.Literal<"app">>;
|
|
6878
7113
|
readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
6879
7114
|
readonly body: Schema.optionalKey<Schema.String>;
|
|
6880
7115
|
}>>;
|
|
@@ -6915,10 +7150,12 @@ export declare const WhatsAppContent: Schema.Union<readonly [Schema.Struct<{
|
|
|
6915
7150
|
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
6916
7151
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6917
7152
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
7153
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6918
7154
|
}>, Schema.Struct<{
|
|
6919
7155
|
readonly templateSlug: Schema.String;
|
|
6920
7156
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6921
7157
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
7158
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6922
7159
|
}>, Schema.Struct<{
|
|
6923
7160
|
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6924
7161
|
readonly type: Schema.Literal<"image">;
|
|
@@ -7113,7 +7350,13 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
7113
7350
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
7114
7351
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
7115
7352
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
7353
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
7354
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
7355
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
7356
|
+
}>>;
|
|
7357
|
+
readonly topicName: Schema.optionalKey<Schema.String>;
|
|
7116
7358
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7359
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7117
7360
|
}>;
|
|
7118
7361
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7119
7362
|
readonly nodeId: Schema.String;
|
|
@@ -7134,6 +7377,7 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
7134
7377
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
7135
7378
|
}>>;
|
|
7136
7379
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7380
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
7137
7381
|
}>;
|
|
7138
7382
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7139
7383
|
readonly nodeId: Schema.String;
|
|
@@ -7150,6 +7394,10 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
7150
7394
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
7151
7395
|
readonly config: Schema.Struct<{
|
|
7152
7396
|
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">]>]>;
|
|
7397
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
7398
|
+
readonly eventProperty: Schema.String;
|
|
7399
|
+
readonly entryProperty: Schema.String;
|
|
7400
|
+
}>>;
|
|
7153
7401
|
readonly timeoutSeconds: Schema.Finite;
|
|
7154
7402
|
}>;
|
|
7155
7403
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -7204,6 +7452,21 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
7204
7452
|
readonly type: Schema.Literal<"event">;
|
|
7205
7453
|
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
7454
|
readonly occurred: Schema.Boolean;
|
|
7455
|
+
}>, Schema.Struct<{
|
|
7456
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
7457
|
+
readonly property: Schema.String;
|
|
7458
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
7459
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
7460
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
7461
|
+
}>, Schema.Struct<{
|
|
7462
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
7463
|
+
readonly value: Schema.Finite;
|
|
7464
|
+
}>, Schema.Struct<{
|
|
7465
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
7466
|
+
readonly value: Schema.String;
|
|
7467
|
+
}>, Schema.Struct<{
|
|
7468
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
7469
|
+
}>]>;
|
|
7207
7470
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
7208
7471
|
readonly type: Schema.Literal<"tag">;
|
|
7209
7472
|
readonly tag: Schema.String;
|
|
@@ -7242,6 +7505,21 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
7242
7505
|
readonly type: Schema.Literal<"event">;
|
|
7243
7506
|
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
7507
|
readonly occurred: Schema.Boolean;
|
|
7508
|
+
}>, Schema.Struct<{
|
|
7509
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
7510
|
+
readonly property: Schema.String;
|
|
7511
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
7512
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
7513
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
7514
|
+
}>, Schema.Struct<{
|
|
7515
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
7516
|
+
readonly value: Schema.Finite;
|
|
7517
|
+
}>, Schema.Struct<{
|
|
7518
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
7519
|
+
readonly value: Schema.String;
|
|
7520
|
+
}>, Schema.Struct<{
|
|
7521
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
7522
|
+
}>]>;
|
|
7245
7523
|
}>]>]>;
|
|
7246
7524
|
}>>;
|
|
7247
7525
|
}>>;
|
|
@@ -7258,6 +7536,7 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
7258
7536
|
readonly type: Schema.Literal<"webhook">;
|
|
7259
7537
|
readonly config: Schema.Struct<{
|
|
7260
7538
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7539
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7261
7540
|
}>;
|
|
7262
7541
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7263
7542
|
readonly nodeId: Schema.String;
|
|
@@ -7291,10 +7570,12 @@ export declare const WhatsAppSendMessagePayload: Schema.Struct<{
|
|
|
7291
7570
|
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
7292
7571
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7293
7572
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
7573
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7294
7574
|
}>, Schema.Struct<{
|
|
7295
7575
|
readonly templateSlug: Schema.String;
|
|
7296
7576
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7297
7577
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
7578
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7298
7579
|
}>, Schema.Struct<{
|
|
7299
7580
|
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
7300
7581
|
readonly type: Schema.Literal<"image">;
|
|
@@ -7494,6 +7775,9 @@ export type JourneyDefinition = {
|
|
|
7494
7775
|
readonly enrollment?: {
|
|
7495
7776
|
readonly type: "shopify_order";
|
|
7496
7777
|
readonly shop: ShopifyShop;
|
|
7778
|
+
} | {
|
|
7779
|
+
readonly type: "event_property";
|
|
7780
|
+
readonly property: string;
|
|
7497
7781
|
};
|
|
7498
7782
|
};
|
|
7499
7783
|
export declare const JourneyDefinition: Schema.Struct<{
|
|
@@ -7516,7 +7800,13 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
7516
7800
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
7517
7801
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
7518
7802
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
7803
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
7804
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
7805
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
7806
|
+
}>>;
|
|
7807
|
+
readonly topicName: Schema.optionalKey<Schema.String>;
|
|
7519
7808
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7809
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7520
7810
|
}>;
|
|
7521
7811
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7522
7812
|
readonly nodeId: Schema.String;
|
|
@@ -7537,6 +7827,7 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
7537
7827
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
7538
7828
|
}>>;
|
|
7539
7829
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7830
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
7540
7831
|
}>;
|
|
7541
7832
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7542
7833
|
readonly nodeId: Schema.String;
|
|
@@ -7553,6 +7844,10 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
7553
7844
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
7554
7845
|
readonly config: Schema.Struct<{
|
|
7555
7846
|
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">]>]>;
|
|
7847
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
7848
|
+
readonly eventProperty: Schema.String;
|
|
7849
|
+
readonly entryProperty: Schema.String;
|
|
7850
|
+
}>>;
|
|
7556
7851
|
readonly timeoutSeconds: Schema.Finite;
|
|
7557
7852
|
}>;
|
|
7558
7853
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -7607,6 +7902,21 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
7607
7902
|
readonly type: Schema.Literal<"event">;
|
|
7608
7903
|
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
7904
|
readonly occurred: Schema.Boolean;
|
|
7905
|
+
}>, Schema.Struct<{
|
|
7906
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
7907
|
+
readonly property: Schema.String;
|
|
7908
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
7909
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
7910
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
7911
|
+
}>, Schema.Struct<{
|
|
7912
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
7913
|
+
readonly value: Schema.Finite;
|
|
7914
|
+
}>, Schema.Struct<{
|
|
7915
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
7916
|
+
readonly value: Schema.String;
|
|
7917
|
+
}>, Schema.Struct<{
|
|
7918
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
7919
|
+
}>]>;
|
|
7610
7920
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
7611
7921
|
readonly type: Schema.Literal<"tag">;
|
|
7612
7922
|
readonly tag: Schema.String;
|
|
@@ -7645,6 +7955,21 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
7645
7955
|
readonly type: Schema.Literal<"event">;
|
|
7646
7956
|
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
7957
|
readonly occurred: Schema.Boolean;
|
|
7958
|
+
}>, Schema.Struct<{
|
|
7959
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
7960
|
+
readonly property: Schema.String;
|
|
7961
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
7962
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
7963
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
7964
|
+
}>, Schema.Struct<{
|
|
7965
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
7966
|
+
readonly value: Schema.Finite;
|
|
7967
|
+
}>, Schema.Struct<{
|
|
7968
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
7969
|
+
readonly value: Schema.String;
|
|
7970
|
+
}>, Schema.Struct<{
|
|
7971
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
7972
|
+
}>]>;
|
|
7648
7973
|
}>]>]>;
|
|
7649
7974
|
}>>;
|
|
7650
7975
|
}>>;
|
|
@@ -7661,6 +7986,7 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
7661
7986
|
readonly type: Schema.Literal<"webhook">;
|
|
7662
7987
|
readonly config: Schema.Struct<{
|
|
7663
7988
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7989
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7664
7990
|
}>;
|
|
7665
7991
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7666
7992
|
readonly nodeId: Schema.String;
|
|
@@ -7674,10 +8000,13 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
7674
8000
|
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
8001
|
}>>;
|
|
7676
8002
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
7677
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
8003
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
7678
8004
|
readonly type: Schema.Literal<"shopify_order">;
|
|
7679
8005
|
readonly shop: Schema.String;
|
|
7680
|
-
}
|
|
8006
|
+
}>, Schema.Struct<{
|
|
8007
|
+
readonly type: Schema.Literal<"event_property">;
|
|
8008
|
+
readonly property: Schema.String;
|
|
8009
|
+
}>]>>;
|
|
7681
8010
|
}>;
|
|
7682
8011
|
export type SendMessagePayload = EmailSendMessagePayload | SmsSendMessagePayload | WhatsAppSendMessagePayload;
|
|
7683
8012
|
export declare const SendMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -7773,10 +8102,12 @@ export declare const SendMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
|
7773
8102
|
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
7774
8103
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7775
8104
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
8105
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7776
8106
|
}>, Schema.Struct<{
|
|
7777
8107
|
readonly templateSlug: Schema.String;
|
|
7778
8108
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7779
8109
|
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
8110
|
+
readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
7780
8111
|
}>, Schema.Struct<{
|
|
7781
8112
|
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
7782
8113
|
readonly type: Schema.Literal<"image">;
|
|
@@ -7967,10 +8298,12 @@ export declare const SendMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
|
7967
8298
|
}>]>;
|
|
7968
8299
|
export type CreateJourneyPayload = {
|
|
7969
8300
|
readonly name: JourneyName;
|
|
8301
|
+
readonly namespaceId?: NamespaceId;
|
|
7970
8302
|
readonly definition: JourneyDefinition;
|
|
7971
8303
|
};
|
|
7972
8304
|
export declare const CreateJourneyPayload: Schema.Struct<{
|
|
7973
8305
|
readonly name: Schema.String;
|
|
8306
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
7974
8307
|
readonly definition: Schema.Struct<{
|
|
7975
8308
|
readonly trigger: Schema.Union<readonly [Schema.Struct<{
|
|
7976
8309
|
readonly type: Schema.Literal<"event">;
|
|
@@ -7991,7 +8324,13 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
7991
8324
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
7992
8325
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
7993
8326
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
8327
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
8328
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
8329
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
8330
|
+
}>>;
|
|
8331
|
+
readonly topicName: Schema.optionalKey<Schema.String>;
|
|
7994
8332
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
8333
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7995
8334
|
}>;
|
|
7996
8335
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
7997
8336
|
readonly nodeId: Schema.String;
|
|
@@ -8012,6 +8351,7 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
8012
8351
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
8013
8352
|
}>>;
|
|
8014
8353
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
8354
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
8015
8355
|
}>;
|
|
8016
8356
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
8017
8357
|
readonly nodeId: Schema.String;
|
|
@@ -8028,6 +8368,10 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
8028
8368
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
8029
8369
|
readonly config: Schema.Struct<{
|
|
8030
8370
|
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">]>]>;
|
|
8371
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
8372
|
+
readonly eventProperty: Schema.String;
|
|
8373
|
+
readonly entryProperty: Schema.String;
|
|
8374
|
+
}>>;
|
|
8031
8375
|
readonly timeoutSeconds: Schema.Finite;
|
|
8032
8376
|
}>;
|
|
8033
8377
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -8082,6 +8426,21 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
8082
8426
|
readonly type: Schema.Literal<"event">;
|
|
8083
8427
|
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
8428
|
readonly occurred: Schema.Boolean;
|
|
8429
|
+
}>, Schema.Struct<{
|
|
8430
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
8431
|
+
readonly property: Schema.String;
|
|
8432
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
8433
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
8434
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
8435
|
+
}>, Schema.Struct<{
|
|
8436
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
8437
|
+
readonly value: Schema.Finite;
|
|
8438
|
+
}>, Schema.Struct<{
|
|
8439
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
8440
|
+
readonly value: Schema.String;
|
|
8441
|
+
}>, Schema.Struct<{
|
|
8442
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
8443
|
+
}>]>;
|
|
8085
8444
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
8086
8445
|
readonly type: Schema.Literal<"tag">;
|
|
8087
8446
|
readonly tag: Schema.String;
|
|
@@ -8120,6 +8479,21 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
8120
8479
|
readonly type: Schema.Literal<"event">;
|
|
8121
8480
|
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
8481
|
readonly occurred: Schema.Boolean;
|
|
8482
|
+
}>, Schema.Struct<{
|
|
8483
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
8484
|
+
readonly property: Schema.String;
|
|
8485
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
8486
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
8487
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
8488
|
+
}>, Schema.Struct<{
|
|
8489
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
8490
|
+
readonly value: Schema.Finite;
|
|
8491
|
+
}>, Schema.Struct<{
|
|
8492
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
8493
|
+
readonly value: Schema.String;
|
|
8494
|
+
}>, Schema.Struct<{
|
|
8495
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
8496
|
+
}>]>;
|
|
8123
8497
|
}>]>]>;
|
|
8124
8498
|
}>>;
|
|
8125
8499
|
}>>;
|
|
@@ -8136,6 +8510,7 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
8136
8510
|
readonly type: Schema.Literal<"webhook">;
|
|
8137
8511
|
readonly config: Schema.Struct<{
|
|
8138
8512
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
8513
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
8139
8514
|
}>;
|
|
8140
8515
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
8141
8516
|
readonly nodeId: Schema.String;
|
|
@@ -8149,10 +8524,13 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
8149
8524
|
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
8525
|
}>>;
|
|
8151
8526
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
8152
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
8527
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
8153
8528
|
readonly type: Schema.Literal<"shopify_order">;
|
|
8154
8529
|
readonly shop: Schema.String;
|
|
8155
|
-
}
|
|
8530
|
+
}>, Schema.Struct<{
|
|
8531
|
+
readonly type: Schema.Literal<"event_property">;
|
|
8532
|
+
readonly property: Schema.String;
|
|
8533
|
+
}>]>>;
|
|
8156
8534
|
}>;
|
|
8157
8535
|
}>;
|
|
8158
8536
|
export type ReplaceJourneyDraftPayload = {
|
|
@@ -8181,7 +8559,13 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
8181
8559
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
8182
8560
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
8183
8561
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
8562
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
8563
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
8564
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
8565
|
+
}>>;
|
|
8566
|
+
readonly topicName: Schema.optionalKey<Schema.String>;
|
|
8184
8567
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
8568
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
8185
8569
|
}>;
|
|
8186
8570
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
8187
8571
|
readonly nodeId: Schema.String;
|
|
@@ -8202,6 +8586,7 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
8202
8586
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
8203
8587
|
}>>;
|
|
8204
8588
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
8589
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
8205
8590
|
}>;
|
|
8206
8591
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
8207
8592
|
readonly nodeId: Schema.String;
|
|
@@ -8218,6 +8603,10 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
8218
8603
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
8219
8604
|
readonly config: Schema.Struct<{
|
|
8220
8605
|
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">]>]>;
|
|
8606
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
8607
|
+
readonly eventProperty: Schema.String;
|
|
8608
|
+
readonly entryProperty: Schema.String;
|
|
8609
|
+
}>>;
|
|
8221
8610
|
readonly timeoutSeconds: Schema.Finite;
|
|
8222
8611
|
}>;
|
|
8223
8612
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -8272,6 +8661,21 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
8272
8661
|
readonly type: Schema.Literal<"event">;
|
|
8273
8662
|
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
8663
|
readonly occurred: Schema.Boolean;
|
|
8664
|
+
}>, Schema.Struct<{
|
|
8665
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
8666
|
+
readonly property: Schema.String;
|
|
8667
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
8668
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
8669
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
8670
|
+
}>, Schema.Struct<{
|
|
8671
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
8672
|
+
readonly value: Schema.Finite;
|
|
8673
|
+
}>, Schema.Struct<{
|
|
8674
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
8675
|
+
readonly value: Schema.String;
|
|
8676
|
+
}>, Schema.Struct<{
|
|
8677
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
8678
|
+
}>]>;
|
|
8275
8679
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
8276
8680
|
readonly type: Schema.Literal<"tag">;
|
|
8277
8681
|
readonly tag: Schema.String;
|
|
@@ -8310,6 +8714,21 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
8310
8714
|
readonly type: Schema.Literal<"event">;
|
|
8311
8715
|
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
8716
|
readonly occurred: Schema.Boolean;
|
|
8717
|
+
}>, Schema.Struct<{
|
|
8718
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
8719
|
+
readonly property: Schema.String;
|
|
8720
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
8721
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
8722
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
8723
|
+
}>, Schema.Struct<{
|
|
8724
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
8725
|
+
readonly value: Schema.Finite;
|
|
8726
|
+
}>, Schema.Struct<{
|
|
8727
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
8728
|
+
readonly value: Schema.String;
|
|
8729
|
+
}>, Schema.Struct<{
|
|
8730
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
8731
|
+
}>]>;
|
|
8313
8732
|
}>]>]>;
|
|
8314
8733
|
}>>;
|
|
8315
8734
|
}>>;
|
|
@@ -8326,6 +8745,7 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
8326
8745
|
readonly type: Schema.Literal<"webhook">;
|
|
8327
8746
|
readonly config: Schema.Struct<{
|
|
8328
8747
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
8748
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
8329
8749
|
}>;
|
|
8330
8750
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
8331
8751
|
readonly nodeId: Schema.String;
|
|
@@ -8339,10 +8759,13 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
8339
8759
|
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
8760
|
}>>;
|
|
8341
8761
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
8342
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
8762
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
8343
8763
|
readonly type: Schema.Literal<"shopify_order">;
|
|
8344
8764
|
readonly shop: Schema.String;
|
|
8345
|
-
}
|
|
8765
|
+
}>, Schema.Struct<{
|
|
8766
|
+
readonly type: Schema.Literal<"event_property">;
|
|
8767
|
+
readonly property: Schema.String;
|
|
8768
|
+
}>]>>;
|
|
8346
8769
|
}>;
|
|
8347
8770
|
}>;
|
|
8348
8771
|
export { __SamvaRuntimeAbsoluteInstant, __SamvaRuntimeSensitiveString, __SamvaRuntimeNonEmptySensitiveString, };
|