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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as EffectBrand from "effect/Brand";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JourneyStatus, JsonObject, MalformedRequestError, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JourneyStatus, JsonObject, MalformedRequestError, MessageId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
5
5
|
export type JourneyRunStatus = "active" | "paused" | "exited" | "failed";
|
|
6
6
|
export declare const JourneyRunStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
|
|
7
7
|
export type JourneyRunId = string & EffectBrand.Brand<"JourneyRunId">;
|
|
@@ -42,6 +42,7 @@ export declare const DeleteJourneyResponse: Schema.Struct<{
|
|
|
42
42
|
}>;
|
|
43
43
|
export type JourneyListItem = {
|
|
44
44
|
readonly id: JourneyId;
|
|
45
|
+
readonly namespaceId?: NamespaceId | null;
|
|
45
46
|
readonly name: string;
|
|
46
47
|
readonly status: JourneyStatus;
|
|
47
48
|
readonly publishedVersion: number | null;
|
|
@@ -51,6 +52,7 @@ export type JourneyListItem = {
|
|
|
51
52
|
};
|
|
52
53
|
export declare const JourneyListItem: Schema.Struct<{
|
|
53
54
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
55
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
54
56
|
readonly name: Schema.String;
|
|
55
57
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
56
58
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
@@ -90,6 +92,7 @@ export declare const JourneyRunStep: Schema.Struct<{
|
|
|
90
92
|
}>;
|
|
91
93
|
export type JourneyRun = {
|
|
92
94
|
readonly id: JourneyRunId;
|
|
95
|
+
readonly namespaceId?: NamespaceId | null;
|
|
93
96
|
readonly journeyId: JourneyId;
|
|
94
97
|
readonly version: number;
|
|
95
98
|
readonly contactId: ContactId;
|
|
@@ -105,6 +108,7 @@ export type JourneyRun = {
|
|
|
105
108
|
};
|
|
106
109
|
export declare const JourneyRun: Schema.Struct<{
|
|
107
110
|
readonly id: Schema.brand<Schema.String, "JourneyRunId">;
|
|
111
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
108
112
|
readonly journeyId: Schema.brand<Schema.String, "JourneyId">;
|
|
109
113
|
readonly version: Schema.Finite;
|
|
110
114
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
@@ -129,6 +133,7 @@ export type JourneyPage = {
|
|
|
129
133
|
export declare const JourneyPage: Schema.Struct<{
|
|
130
134
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
131
135
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
136
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
132
137
|
readonly name: Schema.String;
|
|
133
138
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
134
139
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
@@ -161,6 +166,7 @@ export declare const JourneyStats: Schema.Struct<{
|
|
|
161
166
|
}>;
|
|
162
167
|
export type JourneyRunDetail = {
|
|
163
168
|
readonly id: JourneyRunId;
|
|
169
|
+
readonly namespaceId?: NamespaceId | null;
|
|
164
170
|
readonly journeyId: JourneyId;
|
|
165
171
|
readonly version: number;
|
|
166
172
|
readonly contactId: ContactId;
|
|
@@ -177,6 +183,7 @@ export type JourneyRunDetail = {
|
|
|
177
183
|
};
|
|
178
184
|
export declare const JourneyRunDetail: Schema.Struct<{
|
|
179
185
|
readonly id: Schema.brand<Schema.String, "JourneyRunId">;
|
|
186
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
180
187
|
readonly journeyId: Schema.brand<Schema.String, "JourneyId">;
|
|
181
188
|
readonly version: Schema.Finite;
|
|
182
189
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
@@ -211,6 +218,7 @@ export type JourneyRunPage = {
|
|
|
211
218
|
export declare const JourneyRunPage: Schema.Struct<{
|
|
212
219
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
213
220
|
readonly id: Schema.brand<Schema.String, "JourneyRunId">;
|
|
221
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
214
222
|
readonly journeyId: Schema.brand<Schema.String, "JourneyId">;
|
|
215
223
|
readonly version: Schema.Finite;
|
|
216
224
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
@@ -232,6 +240,7 @@ export declare const JourneyRunPage: Schema.Struct<{
|
|
|
232
240
|
}>;
|
|
233
241
|
export type Journey = {
|
|
234
242
|
readonly id: JourneyId;
|
|
243
|
+
readonly namespaceId?: NamespaceId | null;
|
|
235
244
|
readonly name: string;
|
|
236
245
|
readonly status: JourneyStatus;
|
|
237
246
|
readonly revision: string;
|
|
@@ -243,6 +252,7 @@ export type Journey = {
|
|
|
243
252
|
};
|
|
244
253
|
export declare const Journey: Schema.Struct<{
|
|
245
254
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
255
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
246
256
|
readonly name: Schema.String;
|
|
247
257
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
248
258
|
readonly revision: Schema.String;
|
|
@@ -267,6 +277,7 @@ export declare const Journey: Schema.Struct<{
|
|
|
267
277
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
268
278
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
269
279
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
280
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
270
281
|
}>;
|
|
271
282
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
272
283
|
readonly nodeId: Schema.String;
|
|
@@ -287,6 +298,7 @@ export declare const Journey: Schema.Struct<{
|
|
|
287
298
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
288
299
|
}>>;
|
|
289
300
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
301
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
290
302
|
}>;
|
|
291
303
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
292
304
|
readonly nodeId: Schema.String;
|
|
@@ -303,6 +315,10 @@ export declare const Journey: Schema.Struct<{
|
|
|
303
315
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
304
316
|
readonly config: Schema.Struct<{
|
|
305
317
|
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">]>]>;
|
|
318
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
319
|
+
readonly eventProperty: Schema.String;
|
|
320
|
+
readonly entryProperty: Schema.String;
|
|
321
|
+
}>>;
|
|
306
322
|
readonly timeoutSeconds: Schema.Finite;
|
|
307
323
|
}>;
|
|
308
324
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -357,6 +373,21 @@ export declare const Journey: Schema.Struct<{
|
|
|
357
373
|
readonly type: Schema.Literal<"event">;
|
|
358
374
|
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">]>]>;
|
|
359
375
|
readonly occurred: Schema.Boolean;
|
|
376
|
+
}>, Schema.Struct<{
|
|
377
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
378
|
+
readonly property: Schema.String;
|
|
379
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
380
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
381
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
382
|
+
}>, Schema.Struct<{
|
|
383
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
384
|
+
readonly value: Schema.Finite;
|
|
385
|
+
}>, Schema.Struct<{
|
|
386
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
387
|
+
readonly value: Schema.String;
|
|
388
|
+
}>, Schema.Struct<{
|
|
389
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
390
|
+
}>]>;
|
|
360
391
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
361
392
|
readonly type: Schema.Literal<"tag">;
|
|
362
393
|
readonly tag: Schema.String;
|
|
@@ -395,6 +426,21 @@ export declare const Journey: Schema.Struct<{
|
|
|
395
426
|
readonly type: Schema.Literal<"event">;
|
|
396
427
|
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">]>]>;
|
|
397
428
|
readonly occurred: Schema.Boolean;
|
|
429
|
+
}>, Schema.Struct<{
|
|
430
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
431
|
+
readonly property: Schema.String;
|
|
432
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
433
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
434
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
435
|
+
}>, Schema.Struct<{
|
|
436
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
437
|
+
readonly value: Schema.Finite;
|
|
438
|
+
}>, Schema.Struct<{
|
|
439
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
440
|
+
readonly value: Schema.String;
|
|
441
|
+
}>, Schema.Struct<{
|
|
442
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
443
|
+
}>]>;
|
|
398
444
|
}>]>]>;
|
|
399
445
|
}>>;
|
|
400
446
|
}>>;
|
|
@@ -411,6 +457,7 @@ export declare const Journey: Schema.Struct<{
|
|
|
411
457
|
readonly type: Schema.Literal<"webhook">;
|
|
412
458
|
readonly config: Schema.Struct<{
|
|
413
459
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
460
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
414
461
|
}>;
|
|
415
462
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
416
463
|
readonly nodeId: Schema.String;
|
|
@@ -424,10 +471,13 @@ export declare const Journey: Schema.Struct<{
|
|
|
424
471
|
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">]>]>;
|
|
425
472
|
}>>;
|
|
426
473
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
427
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
474
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
428
475
|
readonly type: Schema.Literal<"shopify_order">;
|
|
429
476
|
readonly shop: Schema.String;
|
|
430
|
-
}
|
|
477
|
+
}>, Schema.Struct<{
|
|
478
|
+
readonly type: Schema.Literal<"event_property">;
|
|
479
|
+
readonly property: Schema.String;
|
|
480
|
+
}>]>>;
|
|
431
481
|
}>;
|
|
432
482
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
433
483
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -464,6 +514,7 @@ export declare const JourneyVersion: Schema.Struct<{
|
|
|
464
514
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
465
515
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
466
516
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
517
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
467
518
|
}>;
|
|
468
519
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
469
520
|
readonly nodeId: Schema.String;
|
|
@@ -484,6 +535,7 @@ export declare const JourneyVersion: Schema.Struct<{
|
|
|
484
535
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
485
536
|
}>>;
|
|
486
537
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
538
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
487
539
|
}>;
|
|
488
540
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
489
541
|
readonly nodeId: Schema.String;
|
|
@@ -500,6 +552,10 @@ export declare const JourneyVersion: Schema.Struct<{
|
|
|
500
552
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
501
553
|
readonly config: Schema.Struct<{
|
|
502
554
|
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">]>]>;
|
|
555
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
556
|
+
readonly eventProperty: Schema.String;
|
|
557
|
+
readonly entryProperty: Schema.String;
|
|
558
|
+
}>>;
|
|
503
559
|
readonly timeoutSeconds: Schema.Finite;
|
|
504
560
|
}>;
|
|
505
561
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -554,6 +610,21 @@ export declare const JourneyVersion: Schema.Struct<{
|
|
|
554
610
|
readonly type: Schema.Literal<"event">;
|
|
555
611
|
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">]>]>;
|
|
556
612
|
readonly occurred: Schema.Boolean;
|
|
613
|
+
}>, Schema.Struct<{
|
|
614
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
615
|
+
readonly property: Schema.String;
|
|
616
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
617
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
618
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
619
|
+
}>, Schema.Struct<{
|
|
620
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
621
|
+
readonly value: Schema.Finite;
|
|
622
|
+
}>, Schema.Struct<{
|
|
623
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
624
|
+
readonly value: Schema.String;
|
|
625
|
+
}>, Schema.Struct<{
|
|
626
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
627
|
+
}>]>;
|
|
557
628
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
558
629
|
readonly type: Schema.Literal<"tag">;
|
|
559
630
|
readonly tag: Schema.String;
|
|
@@ -592,6 +663,21 @@ export declare const JourneyVersion: Schema.Struct<{
|
|
|
592
663
|
readonly type: Schema.Literal<"event">;
|
|
593
664
|
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">]>]>;
|
|
594
665
|
readonly occurred: Schema.Boolean;
|
|
666
|
+
}>, Schema.Struct<{
|
|
667
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
668
|
+
readonly property: Schema.String;
|
|
669
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
670
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
671
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
672
|
+
}>, Schema.Struct<{
|
|
673
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
674
|
+
readonly value: Schema.Finite;
|
|
675
|
+
}>, Schema.Struct<{
|
|
676
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
677
|
+
readonly value: Schema.String;
|
|
678
|
+
}>, Schema.Struct<{
|
|
679
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
680
|
+
}>]>;
|
|
595
681
|
}>]>]>;
|
|
596
682
|
}>>;
|
|
597
683
|
}>>;
|
|
@@ -608,6 +694,7 @@ export declare const JourneyVersion: Schema.Struct<{
|
|
|
608
694
|
readonly type: Schema.Literal<"webhook">;
|
|
609
695
|
readonly config: Schema.Struct<{
|
|
610
696
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
697
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
611
698
|
}>;
|
|
612
699
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
613
700
|
readonly nodeId: Schema.String;
|
|
@@ -621,19 +708,24 @@ export declare const JourneyVersion: Schema.Struct<{
|
|
|
621
708
|
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">]>]>;
|
|
622
709
|
}>>;
|
|
623
710
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
624
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
711
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
625
712
|
readonly type: Schema.Literal<"shopify_order">;
|
|
626
713
|
readonly shop: Schema.String;
|
|
627
|
-
}
|
|
714
|
+
}>, Schema.Struct<{
|
|
715
|
+
readonly type: Schema.Literal<"event_property">;
|
|
716
|
+
readonly property: Schema.String;
|
|
717
|
+
}>]>>;
|
|
628
718
|
}>;
|
|
629
719
|
readonly publishedAt: Schema.String;
|
|
630
720
|
}>;
|
|
631
721
|
export type JourneysListQuery = {
|
|
722
|
+
readonly namespaceId?: NamespaceId;
|
|
632
723
|
readonly status?: JourneyStatus;
|
|
633
724
|
readonly limit?: number | null;
|
|
634
725
|
readonly cursor?: string;
|
|
635
726
|
};
|
|
636
727
|
export declare const JourneysListQuery: Schema.Struct<{
|
|
728
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
637
729
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>>;
|
|
638
730
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
639
731
|
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
@@ -642,6 +734,7 @@ export type JourneysList200 = JourneyPage;
|
|
|
642
734
|
export declare const JourneysList200: Schema.Struct<{
|
|
643
735
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
644
736
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
737
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
645
738
|
readonly name: Schema.String;
|
|
646
739
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
647
740
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
@@ -665,10 +758,12 @@ export type JourneysList504 = GatewayTimeoutError;
|
|
|
665
758
|
export declare const JourneysList504: typeof GatewayTimeoutError;
|
|
666
759
|
export type JourneysCreateRequestJson = {
|
|
667
760
|
readonly name: JourneyName;
|
|
761
|
+
readonly namespaceId?: NamespaceId;
|
|
668
762
|
readonly definition: JourneyDefinition;
|
|
669
763
|
};
|
|
670
764
|
export declare const JourneysCreateRequestJson: Schema.Struct<{
|
|
671
765
|
readonly name: Schema.String;
|
|
766
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
672
767
|
readonly definition: Schema.Struct<{
|
|
673
768
|
readonly trigger: Schema.Union<readonly [Schema.Struct<{
|
|
674
769
|
readonly type: Schema.Literal<"event">;
|
|
@@ -690,6 +785,7 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
|
|
|
690
785
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
691
786
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
692
787
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
788
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
693
789
|
}>;
|
|
694
790
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
695
791
|
readonly nodeId: Schema.String;
|
|
@@ -710,6 +806,7 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
|
|
|
710
806
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
711
807
|
}>>;
|
|
712
808
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
809
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
713
810
|
}>;
|
|
714
811
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
715
812
|
readonly nodeId: Schema.String;
|
|
@@ -726,6 +823,10 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
|
|
|
726
823
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
727
824
|
readonly config: Schema.Struct<{
|
|
728
825
|
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">]>]>;
|
|
826
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
827
|
+
readonly eventProperty: Schema.String;
|
|
828
|
+
readonly entryProperty: Schema.String;
|
|
829
|
+
}>>;
|
|
729
830
|
readonly timeoutSeconds: Schema.Finite;
|
|
730
831
|
}>;
|
|
731
832
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -780,6 +881,21 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
|
|
|
780
881
|
readonly type: Schema.Literal<"event">;
|
|
781
882
|
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">]>]>;
|
|
782
883
|
readonly occurred: Schema.Boolean;
|
|
884
|
+
}>, Schema.Struct<{
|
|
885
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
886
|
+
readonly property: Schema.String;
|
|
887
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
888
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
889
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
890
|
+
}>, Schema.Struct<{
|
|
891
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
892
|
+
readonly value: Schema.Finite;
|
|
893
|
+
}>, Schema.Struct<{
|
|
894
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
895
|
+
readonly value: Schema.String;
|
|
896
|
+
}>, Schema.Struct<{
|
|
897
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
898
|
+
}>]>;
|
|
783
899
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
784
900
|
readonly type: Schema.Literal<"tag">;
|
|
785
901
|
readonly tag: Schema.String;
|
|
@@ -818,6 +934,21 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
|
|
|
818
934
|
readonly type: Schema.Literal<"event">;
|
|
819
935
|
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">]>]>;
|
|
820
936
|
readonly occurred: Schema.Boolean;
|
|
937
|
+
}>, Schema.Struct<{
|
|
938
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
939
|
+
readonly property: Schema.String;
|
|
940
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
941
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
942
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
943
|
+
}>, Schema.Struct<{
|
|
944
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
945
|
+
readonly value: Schema.Finite;
|
|
946
|
+
}>, Schema.Struct<{
|
|
947
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
948
|
+
readonly value: Schema.String;
|
|
949
|
+
}>, Schema.Struct<{
|
|
950
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
951
|
+
}>]>;
|
|
821
952
|
}>]>]>;
|
|
822
953
|
}>>;
|
|
823
954
|
}>>;
|
|
@@ -834,6 +965,7 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
|
|
|
834
965
|
readonly type: Schema.Literal<"webhook">;
|
|
835
966
|
readonly config: Schema.Struct<{
|
|
836
967
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
968
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
837
969
|
}>;
|
|
838
970
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
839
971
|
readonly nodeId: Schema.String;
|
|
@@ -847,15 +979,19 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
|
|
|
847
979
|
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">]>]>;
|
|
848
980
|
}>>;
|
|
849
981
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
850
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
982
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
851
983
|
readonly type: Schema.Literal<"shopify_order">;
|
|
852
984
|
readonly shop: Schema.String;
|
|
853
|
-
}
|
|
985
|
+
}>, Schema.Struct<{
|
|
986
|
+
readonly type: Schema.Literal<"event_property">;
|
|
987
|
+
readonly property: Schema.String;
|
|
988
|
+
}>]>>;
|
|
854
989
|
}>;
|
|
855
990
|
}>;
|
|
856
991
|
export type JourneysCreate201 = Journey;
|
|
857
992
|
export declare const JourneysCreate201: Schema.Struct<{
|
|
858
993
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
994
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
859
995
|
readonly name: Schema.String;
|
|
860
996
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
861
997
|
readonly revision: Schema.String;
|
|
@@ -880,6 +1016,7 @@ export declare const JourneysCreate201: Schema.Struct<{
|
|
|
880
1016
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
881
1017
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
882
1018
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
1019
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
883
1020
|
}>;
|
|
884
1021
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
885
1022
|
readonly nodeId: Schema.String;
|
|
@@ -900,6 +1037,7 @@ export declare const JourneysCreate201: Schema.Struct<{
|
|
|
900
1037
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
901
1038
|
}>>;
|
|
902
1039
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1040
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
903
1041
|
}>;
|
|
904
1042
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
905
1043
|
readonly nodeId: Schema.String;
|
|
@@ -916,6 +1054,10 @@ export declare const JourneysCreate201: Schema.Struct<{
|
|
|
916
1054
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
917
1055
|
readonly config: Schema.Struct<{
|
|
918
1056
|
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">]>]>;
|
|
1057
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
1058
|
+
readonly eventProperty: Schema.String;
|
|
1059
|
+
readonly entryProperty: Schema.String;
|
|
1060
|
+
}>>;
|
|
919
1061
|
readonly timeoutSeconds: Schema.Finite;
|
|
920
1062
|
}>;
|
|
921
1063
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -970,6 +1112,21 @@ export declare const JourneysCreate201: Schema.Struct<{
|
|
|
970
1112
|
readonly type: Schema.Literal<"event">;
|
|
971
1113
|
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">]>]>;
|
|
972
1114
|
readonly occurred: Schema.Boolean;
|
|
1115
|
+
}>, Schema.Struct<{
|
|
1116
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
1117
|
+
readonly property: Schema.String;
|
|
1118
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
1119
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
1120
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
1121
|
+
}>, Schema.Struct<{
|
|
1122
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
1123
|
+
readonly value: Schema.Finite;
|
|
1124
|
+
}>, Schema.Struct<{
|
|
1125
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
1126
|
+
readonly value: Schema.String;
|
|
1127
|
+
}>, Schema.Struct<{
|
|
1128
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
1129
|
+
}>]>;
|
|
973
1130
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
974
1131
|
readonly type: Schema.Literal<"tag">;
|
|
975
1132
|
readonly tag: Schema.String;
|
|
@@ -1008,6 +1165,21 @@ export declare const JourneysCreate201: Schema.Struct<{
|
|
|
1008
1165
|
readonly type: Schema.Literal<"event">;
|
|
1009
1166
|
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">]>]>;
|
|
1010
1167
|
readonly occurred: Schema.Boolean;
|
|
1168
|
+
}>, Schema.Struct<{
|
|
1169
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
1170
|
+
readonly property: Schema.String;
|
|
1171
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
1172
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
1173
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
1174
|
+
}>, Schema.Struct<{
|
|
1175
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
1176
|
+
readonly value: Schema.Finite;
|
|
1177
|
+
}>, Schema.Struct<{
|
|
1178
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
1179
|
+
readonly value: Schema.String;
|
|
1180
|
+
}>, Schema.Struct<{
|
|
1181
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
1182
|
+
}>]>;
|
|
1011
1183
|
}>]>]>;
|
|
1012
1184
|
}>>;
|
|
1013
1185
|
}>>;
|
|
@@ -1024,6 +1196,7 @@ export declare const JourneysCreate201: Schema.Struct<{
|
|
|
1024
1196
|
readonly type: Schema.Literal<"webhook">;
|
|
1025
1197
|
readonly config: Schema.Struct<{
|
|
1026
1198
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
1199
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1027
1200
|
}>;
|
|
1028
1201
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1029
1202
|
readonly nodeId: Schema.String;
|
|
@@ -1037,10 +1210,13 @@ export declare const JourneysCreate201: Schema.Struct<{
|
|
|
1037
1210
|
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">]>]>;
|
|
1038
1211
|
}>>;
|
|
1039
1212
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
1040
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
1213
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1041
1214
|
readonly type: Schema.Literal<"shopify_order">;
|
|
1042
1215
|
readonly shop: Schema.String;
|
|
1043
|
-
}
|
|
1216
|
+
}>, Schema.Struct<{
|
|
1217
|
+
readonly type: Schema.Literal<"event_property">;
|
|
1218
|
+
readonly property: Schema.String;
|
|
1219
|
+
}>]>>;
|
|
1044
1220
|
}>;
|
|
1045
1221
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1046
1222
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1076,6 +1252,7 @@ export declare const JourneysGetPathParams: Schema.Struct<{
|
|
|
1076
1252
|
export type JourneysGet200 = Journey;
|
|
1077
1253
|
export declare const JourneysGet200: Schema.Struct<{
|
|
1078
1254
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
1255
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1079
1256
|
readonly name: Schema.String;
|
|
1080
1257
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
1081
1258
|
readonly revision: Schema.String;
|
|
@@ -1100,6 +1277,7 @@ export declare const JourneysGet200: Schema.Struct<{
|
|
|
1100
1277
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
1101
1278
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
1102
1279
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
1280
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1103
1281
|
}>;
|
|
1104
1282
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1105
1283
|
readonly nodeId: Schema.String;
|
|
@@ -1120,6 +1298,7 @@ export declare const JourneysGet200: Schema.Struct<{
|
|
|
1120
1298
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
1121
1299
|
}>>;
|
|
1122
1300
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1301
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
1123
1302
|
}>;
|
|
1124
1303
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1125
1304
|
readonly nodeId: Schema.String;
|
|
@@ -1136,6 +1315,10 @@ export declare const JourneysGet200: Schema.Struct<{
|
|
|
1136
1315
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
1137
1316
|
readonly config: Schema.Struct<{
|
|
1138
1317
|
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">]>]>;
|
|
1318
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
1319
|
+
readonly eventProperty: Schema.String;
|
|
1320
|
+
readonly entryProperty: Schema.String;
|
|
1321
|
+
}>>;
|
|
1139
1322
|
readonly timeoutSeconds: Schema.Finite;
|
|
1140
1323
|
}>;
|
|
1141
1324
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -1190,6 +1373,21 @@ export declare const JourneysGet200: Schema.Struct<{
|
|
|
1190
1373
|
readonly type: Schema.Literal<"event">;
|
|
1191
1374
|
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">]>]>;
|
|
1192
1375
|
readonly occurred: Schema.Boolean;
|
|
1376
|
+
}>, Schema.Struct<{
|
|
1377
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
1378
|
+
readonly property: Schema.String;
|
|
1379
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
1380
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
1381
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
1382
|
+
}>, Schema.Struct<{
|
|
1383
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
1384
|
+
readonly value: Schema.Finite;
|
|
1385
|
+
}>, Schema.Struct<{
|
|
1386
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
1387
|
+
readonly value: Schema.String;
|
|
1388
|
+
}>, Schema.Struct<{
|
|
1389
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
1390
|
+
}>]>;
|
|
1193
1391
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1194
1392
|
readonly type: Schema.Literal<"tag">;
|
|
1195
1393
|
readonly tag: Schema.String;
|
|
@@ -1228,6 +1426,21 @@ export declare const JourneysGet200: Schema.Struct<{
|
|
|
1228
1426
|
readonly type: Schema.Literal<"event">;
|
|
1229
1427
|
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">]>]>;
|
|
1230
1428
|
readonly occurred: Schema.Boolean;
|
|
1429
|
+
}>, Schema.Struct<{
|
|
1430
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
1431
|
+
readonly property: Schema.String;
|
|
1432
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
1433
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
1434
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
1435
|
+
}>, Schema.Struct<{
|
|
1436
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
1437
|
+
readonly value: Schema.Finite;
|
|
1438
|
+
}>, Schema.Struct<{
|
|
1439
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
1440
|
+
readonly value: Schema.String;
|
|
1441
|
+
}>, Schema.Struct<{
|
|
1442
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
1443
|
+
}>]>;
|
|
1231
1444
|
}>]>]>;
|
|
1232
1445
|
}>>;
|
|
1233
1446
|
}>>;
|
|
@@ -1244,6 +1457,7 @@ export declare const JourneysGet200: Schema.Struct<{
|
|
|
1244
1457
|
readonly type: Schema.Literal<"webhook">;
|
|
1245
1458
|
readonly config: Schema.Struct<{
|
|
1246
1459
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
1460
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1247
1461
|
}>;
|
|
1248
1462
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1249
1463
|
readonly nodeId: Schema.String;
|
|
@@ -1257,10 +1471,13 @@ export declare const JourneysGet200: Schema.Struct<{
|
|
|
1257
1471
|
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">]>]>;
|
|
1258
1472
|
}>>;
|
|
1259
1473
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
1260
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
1474
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1261
1475
|
readonly type: Schema.Literal<"shopify_order">;
|
|
1262
1476
|
readonly shop: Schema.String;
|
|
1263
|
-
}
|
|
1477
|
+
}>, Schema.Struct<{
|
|
1478
|
+
readonly type: Schema.Literal<"event_property">;
|
|
1479
|
+
readonly property: Schema.String;
|
|
1480
|
+
}>]>>;
|
|
1264
1481
|
}>;
|
|
1265
1482
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1266
1483
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1323,6 +1540,7 @@ export declare const JourneysUpdateRequestJson: Schema.Struct<{
|
|
|
1323
1540
|
export type JourneysUpdate200 = Journey;
|
|
1324
1541
|
export declare const JourneysUpdate200: Schema.Struct<{
|
|
1325
1542
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
1543
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1326
1544
|
readonly name: Schema.String;
|
|
1327
1545
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
1328
1546
|
readonly revision: Schema.String;
|
|
@@ -1347,6 +1565,7 @@ export declare const JourneysUpdate200: Schema.Struct<{
|
|
|
1347
1565
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
1348
1566
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
1349
1567
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
1568
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1350
1569
|
}>;
|
|
1351
1570
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1352
1571
|
readonly nodeId: Schema.String;
|
|
@@ -1367,6 +1586,7 @@ export declare const JourneysUpdate200: Schema.Struct<{
|
|
|
1367
1586
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
1368
1587
|
}>>;
|
|
1369
1588
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1589
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
1370
1590
|
}>;
|
|
1371
1591
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1372
1592
|
readonly nodeId: Schema.String;
|
|
@@ -1383,6 +1603,10 @@ export declare const JourneysUpdate200: Schema.Struct<{
|
|
|
1383
1603
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
1384
1604
|
readonly config: Schema.Struct<{
|
|
1385
1605
|
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">]>]>;
|
|
1606
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
1607
|
+
readonly eventProperty: Schema.String;
|
|
1608
|
+
readonly entryProperty: Schema.String;
|
|
1609
|
+
}>>;
|
|
1386
1610
|
readonly timeoutSeconds: Schema.Finite;
|
|
1387
1611
|
}>;
|
|
1388
1612
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -1437,6 +1661,21 @@ export declare const JourneysUpdate200: Schema.Struct<{
|
|
|
1437
1661
|
readonly type: Schema.Literal<"event">;
|
|
1438
1662
|
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">]>]>;
|
|
1439
1663
|
readonly occurred: Schema.Boolean;
|
|
1664
|
+
}>, Schema.Struct<{
|
|
1665
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
1666
|
+
readonly property: Schema.String;
|
|
1667
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
1668
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
1669
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
1670
|
+
}>, Schema.Struct<{
|
|
1671
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
1672
|
+
readonly value: Schema.Finite;
|
|
1673
|
+
}>, Schema.Struct<{
|
|
1674
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
1675
|
+
readonly value: Schema.String;
|
|
1676
|
+
}>, Schema.Struct<{
|
|
1677
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
1678
|
+
}>]>;
|
|
1440
1679
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1441
1680
|
readonly type: Schema.Literal<"tag">;
|
|
1442
1681
|
readonly tag: Schema.String;
|
|
@@ -1475,6 +1714,21 @@ export declare const JourneysUpdate200: Schema.Struct<{
|
|
|
1475
1714
|
readonly type: Schema.Literal<"event">;
|
|
1476
1715
|
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">]>]>;
|
|
1477
1716
|
readonly occurred: Schema.Boolean;
|
|
1717
|
+
}>, Schema.Struct<{
|
|
1718
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
1719
|
+
readonly property: Schema.String;
|
|
1720
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
1721
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
1722
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
1723
|
+
}>, Schema.Struct<{
|
|
1724
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
1725
|
+
readonly value: Schema.Finite;
|
|
1726
|
+
}>, Schema.Struct<{
|
|
1727
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
1728
|
+
readonly value: Schema.String;
|
|
1729
|
+
}>, Schema.Struct<{
|
|
1730
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
1731
|
+
}>]>;
|
|
1478
1732
|
}>]>]>;
|
|
1479
1733
|
}>>;
|
|
1480
1734
|
}>>;
|
|
@@ -1491,6 +1745,7 @@ export declare const JourneysUpdate200: Schema.Struct<{
|
|
|
1491
1745
|
readonly type: Schema.Literal<"webhook">;
|
|
1492
1746
|
readonly config: Schema.Struct<{
|
|
1493
1747
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
1748
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1494
1749
|
}>;
|
|
1495
1750
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1496
1751
|
readonly nodeId: Schema.String;
|
|
@@ -1504,10 +1759,13 @@ export declare const JourneysUpdate200: Schema.Struct<{
|
|
|
1504
1759
|
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">]>]>;
|
|
1505
1760
|
}>>;
|
|
1506
1761
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
1507
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
1762
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1508
1763
|
readonly type: Schema.Literal<"shopify_order">;
|
|
1509
1764
|
readonly shop: Schema.String;
|
|
1510
|
-
}
|
|
1765
|
+
}>, Schema.Struct<{
|
|
1766
|
+
readonly type: Schema.Literal<"event_property">;
|
|
1767
|
+
readonly property: Schema.String;
|
|
1768
|
+
}>]>>;
|
|
1511
1769
|
}>;
|
|
1512
1770
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1513
1771
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1537,6 +1795,7 @@ export declare const JourneysArchivePathParams: Schema.Struct<{
|
|
|
1537
1795
|
export type JourneysArchive200 = Journey;
|
|
1538
1796
|
export declare const JourneysArchive200: Schema.Struct<{
|
|
1539
1797
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
1798
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1540
1799
|
readonly name: Schema.String;
|
|
1541
1800
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
1542
1801
|
readonly revision: Schema.String;
|
|
@@ -1561,6 +1820,7 @@ export declare const JourneysArchive200: Schema.Struct<{
|
|
|
1561
1820
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
1562
1821
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
1563
1822
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
1823
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1564
1824
|
}>;
|
|
1565
1825
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1566
1826
|
readonly nodeId: Schema.String;
|
|
@@ -1581,6 +1841,7 @@ export declare const JourneysArchive200: Schema.Struct<{
|
|
|
1581
1841
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
1582
1842
|
}>>;
|
|
1583
1843
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1844
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
1584
1845
|
}>;
|
|
1585
1846
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1586
1847
|
readonly nodeId: Schema.String;
|
|
@@ -1597,6 +1858,10 @@ export declare const JourneysArchive200: Schema.Struct<{
|
|
|
1597
1858
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
1598
1859
|
readonly config: Schema.Struct<{
|
|
1599
1860
|
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">]>]>;
|
|
1861
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
1862
|
+
readonly eventProperty: Schema.String;
|
|
1863
|
+
readonly entryProperty: Schema.String;
|
|
1864
|
+
}>>;
|
|
1600
1865
|
readonly timeoutSeconds: Schema.Finite;
|
|
1601
1866
|
}>;
|
|
1602
1867
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -1651,6 +1916,21 @@ export declare const JourneysArchive200: Schema.Struct<{
|
|
|
1651
1916
|
readonly type: Schema.Literal<"event">;
|
|
1652
1917
|
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">]>]>;
|
|
1653
1918
|
readonly occurred: Schema.Boolean;
|
|
1919
|
+
}>, Schema.Struct<{
|
|
1920
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
1921
|
+
readonly property: Schema.String;
|
|
1922
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
1923
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
1924
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
1925
|
+
}>, Schema.Struct<{
|
|
1926
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
1927
|
+
readonly value: Schema.Finite;
|
|
1928
|
+
}>, Schema.Struct<{
|
|
1929
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
1930
|
+
readonly value: Schema.String;
|
|
1931
|
+
}>, Schema.Struct<{
|
|
1932
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
1933
|
+
}>]>;
|
|
1654
1934
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1655
1935
|
readonly type: Schema.Literal<"tag">;
|
|
1656
1936
|
readonly tag: Schema.String;
|
|
@@ -1689,6 +1969,21 @@ export declare const JourneysArchive200: Schema.Struct<{
|
|
|
1689
1969
|
readonly type: Schema.Literal<"event">;
|
|
1690
1970
|
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">]>]>;
|
|
1691
1971
|
readonly occurred: Schema.Boolean;
|
|
1972
|
+
}>, Schema.Struct<{
|
|
1973
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
1974
|
+
readonly property: Schema.String;
|
|
1975
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
1976
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
1977
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
1978
|
+
}>, Schema.Struct<{
|
|
1979
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
1980
|
+
readonly value: Schema.Finite;
|
|
1981
|
+
}>, Schema.Struct<{
|
|
1982
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
1983
|
+
readonly value: Schema.String;
|
|
1984
|
+
}>, Schema.Struct<{
|
|
1985
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
1986
|
+
}>]>;
|
|
1692
1987
|
}>]>]>;
|
|
1693
1988
|
}>>;
|
|
1694
1989
|
}>>;
|
|
@@ -1705,6 +2000,7 @@ export declare const JourneysArchive200: Schema.Struct<{
|
|
|
1705
2000
|
readonly type: Schema.Literal<"webhook">;
|
|
1706
2001
|
readonly config: Schema.Struct<{
|
|
1707
2002
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
2003
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1708
2004
|
}>;
|
|
1709
2005
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1710
2006
|
readonly nodeId: Schema.String;
|
|
@@ -1718,10 +2014,13 @@ export declare const JourneysArchive200: Schema.Struct<{
|
|
|
1718
2014
|
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">]>]>;
|
|
1719
2015
|
}>>;
|
|
1720
2016
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
1721
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
2017
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1722
2018
|
readonly type: Schema.Literal<"shopify_order">;
|
|
1723
2019
|
readonly shop: Schema.String;
|
|
1724
|
-
}
|
|
2020
|
+
}>, Schema.Struct<{
|
|
2021
|
+
readonly type: Schema.Literal<"event_property">;
|
|
2022
|
+
readonly property: Schema.String;
|
|
2023
|
+
}>]>>;
|
|
1725
2024
|
}>;
|
|
1726
2025
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1727
2026
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1777,6 +2076,7 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
|
|
|
1777
2076
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
1778
2077
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
1779
2078
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
2079
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1780
2080
|
}>;
|
|
1781
2081
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1782
2082
|
readonly nodeId: Schema.String;
|
|
@@ -1797,6 +2097,7 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
|
|
|
1797
2097
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
1798
2098
|
}>>;
|
|
1799
2099
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2100
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
1800
2101
|
}>;
|
|
1801
2102
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1802
2103
|
readonly nodeId: Schema.String;
|
|
@@ -1813,6 +2114,10 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
|
|
|
1813
2114
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
1814
2115
|
readonly config: Schema.Struct<{
|
|
1815
2116
|
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">]>]>;
|
|
2117
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
2118
|
+
readonly eventProperty: Schema.String;
|
|
2119
|
+
readonly entryProperty: Schema.String;
|
|
2120
|
+
}>>;
|
|
1816
2121
|
readonly timeoutSeconds: Schema.Finite;
|
|
1817
2122
|
}>;
|
|
1818
2123
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -1867,6 +2172,21 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
|
|
|
1867
2172
|
readonly type: Schema.Literal<"event">;
|
|
1868
2173
|
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">]>]>;
|
|
1869
2174
|
readonly occurred: Schema.Boolean;
|
|
2175
|
+
}>, Schema.Struct<{
|
|
2176
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
2177
|
+
readonly property: Schema.String;
|
|
2178
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
2179
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
2180
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
2181
|
+
}>, Schema.Struct<{
|
|
2182
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
2183
|
+
readonly value: Schema.Finite;
|
|
2184
|
+
}>, Schema.Struct<{
|
|
2185
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
2186
|
+
readonly value: Schema.String;
|
|
2187
|
+
}>, Schema.Struct<{
|
|
2188
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
2189
|
+
}>]>;
|
|
1870
2190
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1871
2191
|
readonly type: Schema.Literal<"tag">;
|
|
1872
2192
|
readonly tag: Schema.String;
|
|
@@ -1905,6 +2225,21 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
|
|
|
1905
2225
|
readonly type: Schema.Literal<"event">;
|
|
1906
2226
|
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">]>]>;
|
|
1907
2227
|
readonly occurred: Schema.Boolean;
|
|
2228
|
+
}>, Schema.Struct<{
|
|
2229
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
2230
|
+
readonly property: Schema.String;
|
|
2231
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
2232
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
2233
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
2234
|
+
}>, Schema.Struct<{
|
|
2235
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
2236
|
+
readonly value: Schema.Finite;
|
|
2237
|
+
}>, Schema.Struct<{
|
|
2238
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
2239
|
+
readonly value: Schema.String;
|
|
2240
|
+
}>, Schema.Struct<{
|
|
2241
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
2242
|
+
}>]>;
|
|
1908
2243
|
}>]>]>;
|
|
1909
2244
|
}>>;
|
|
1910
2245
|
}>>;
|
|
@@ -1921,6 +2256,7 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
|
|
|
1921
2256
|
readonly type: Schema.Literal<"webhook">;
|
|
1922
2257
|
readonly config: Schema.Struct<{
|
|
1923
2258
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
2259
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1924
2260
|
}>;
|
|
1925
2261
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1926
2262
|
readonly nodeId: Schema.String;
|
|
@@ -1934,15 +2270,19 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
|
|
|
1934
2270
|
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">]>]>;
|
|
1935
2271
|
}>>;
|
|
1936
2272
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
1937
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
2273
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1938
2274
|
readonly type: Schema.Literal<"shopify_order">;
|
|
1939
2275
|
readonly shop: Schema.String;
|
|
1940
|
-
}
|
|
2276
|
+
}>, Schema.Struct<{
|
|
2277
|
+
readonly type: Schema.Literal<"event_property">;
|
|
2278
|
+
readonly property: Schema.String;
|
|
2279
|
+
}>]>>;
|
|
1941
2280
|
}>;
|
|
1942
2281
|
}>;
|
|
1943
2282
|
export type JourneysReplaceDraft200 = Journey;
|
|
1944
2283
|
export declare const JourneysReplaceDraft200: Schema.Struct<{
|
|
1945
2284
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
2285
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1946
2286
|
readonly name: Schema.String;
|
|
1947
2287
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
1948
2288
|
readonly revision: Schema.String;
|
|
@@ -1967,6 +2307,7 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
|
|
|
1967
2307
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
1968
2308
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
1969
2309
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
2310
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1970
2311
|
}>;
|
|
1971
2312
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1972
2313
|
readonly nodeId: Schema.String;
|
|
@@ -1987,6 +2328,7 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
|
|
|
1987
2328
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
1988
2329
|
}>>;
|
|
1989
2330
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2331
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
1990
2332
|
}>;
|
|
1991
2333
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1992
2334
|
readonly nodeId: Schema.String;
|
|
@@ -2003,6 +2345,10 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
|
|
|
2003
2345
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
2004
2346
|
readonly config: Schema.Struct<{
|
|
2005
2347
|
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">]>]>;
|
|
2348
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
2349
|
+
readonly eventProperty: Schema.String;
|
|
2350
|
+
readonly entryProperty: Schema.String;
|
|
2351
|
+
}>>;
|
|
2006
2352
|
readonly timeoutSeconds: Schema.Finite;
|
|
2007
2353
|
}>;
|
|
2008
2354
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -2057,6 +2403,21 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
|
|
|
2057
2403
|
readonly type: Schema.Literal<"event">;
|
|
2058
2404
|
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">]>]>;
|
|
2059
2405
|
readonly occurred: Schema.Boolean;
|
|
2406
|
+
}>, Schema.Struct<{
|
|
2407
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
2408
|
+
readonly property: Schema.String;
|
|
2409
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
2410
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
2411
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
2412
|
+
}>, Schema.Struct<{
|
|
2413
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
2414
|
+
readonly value: Schema.Finite;
|
|
2415
|
+
}>, Schema.Struct<{
|
|
2416
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
2417
|
+
readonly value: Schema.String;
|
|
2418
|
+
}>, Schema.Struct<{
|
|
2419
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
2420
|
+
}>]>;
|
|
2060
2421
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
2061
2422
|
readonly type: Schema.Literal<"tag">;
|
|
2062
2423
|
readonly tag: Schema.String;
|
|
@@ -2095,6 +2456,21 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
|
|
|
2095
2456
|
readonly type: Schema.Literal<"event">;
|
|
2096
2457
|
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">]>]>;
|
|
2097
2458
|
readonly occurred: Schema.Boolean;
|
|
2459
|
+
}>, Schema.Struct<{
|
|
2460
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
2461
|
+
readonly property: Schema.String;
|
|
2462
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
2463
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
2464
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
2465
|
+
}>, Schema.Struct<{
|
|
2466
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
2467
|
+
readonly value: Schema.Finite;
|
|
2468
|
+
}>, Schema.Struct<{
|
|
2469
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
2470
|
+
readonly value: Schema.String;
|
|
2471
|
+
}>, Schema.Struct<{
|
|
2472
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
2473
|
+
}>]>;
|
|
2098
2474
|
}>]>]>;
|
|
2099
2475
|
}>>;
|
|
2100
2476
|
}>>;
|
|
@@ -2111,6 +2487,7 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
|
|
|
2111
2487
|
readonly type: Schema.Literal<"webhook">;
|
|
2112
2488
|
readonly config: Schema.Struct<{
|
|
2113
2489
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
2490
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2114
2491
|
}>;
|
|
2115
2492
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2116
2493
|
readonly nodeId: Schema.String;
|
|
@@ -2124,10 +2501,13 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
|
|
|
2124
2501
|
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">]>]>;
|
|
2125
2502
|
}>>;
|
|
2126
2503
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
2127
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
2504
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2128
2505
|
readonly type: Schema.Literal<"shopify_order">;
|
|
2129
2506
|
readonly shop: Schema.String;
|
|
2130
|
-
}
|
|
2507
|
+
}>, Schema.Struct<{
|
|
2508
|
+
readonly type: Schema.Literal<"event_property">;
|
|
2509
|
+
readonly property: Schema.String;
|
|
2510
|
+
}>]>>;
|
|
2131
2511
|
}>;
|
|
2132
2512
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
2133
2513
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2163,6 +2543,7 @@ export declare const JourneysPausePathParams: Schema.Struct<{
|
|
|
2163
2543
|
export type JourneysPause200 = Journey;
|
|
2164
2544
|
export declare const JourneysPause200: Schema.Struct<{
|
|
2165
2545
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
2546
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
2166
2547
|
readonly name: Schema.String;
|
|
2167
2548
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
2168
2549
|
readonly revision: Schema.String;
|
|
@@ -2187,6 +2568,7 @@ export declare const JourneysPause200: Schema.Struct<{
|
|
|
2187
2568
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
2188
2569
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
2189
2570
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
2571
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2190
2572
|
}>;
|
|
2191
2573
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2192
2574
|
readonly nodeId: Schema.String;
|
|
@@ -2207,6 +2589,7 @@ export declare const JourneysPause200: Schema.Struct<{
|
|
|
2207
2589
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
2208
2590
|
}>>;
|
|
2209
2591
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2592
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
2210
2593
|
}>;
|
|
2211
2594
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2212
2595
|
readonly nodeId: Schema.String;
|
|
@@ -2223,6 +2606,10 @@ export declare const JourneysPause200: Schema.Struct<{
|
|
|
2223
2606
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
2224
2607
|
readonly config: Schema.Struct<{
|
|
2225
2608
|
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">]>]>;
|
|
2609
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
2610
|
+
readonly eventProperty: Schema.String;
|
|
2611
|
+
readonly entryProperty: Schema.String;
|
|
2612
|
+
}>>;
|
|
2226
2613
|
readonly timeoutSeconds: Schema.Finite;
|
|
2227
2614
|
}>;
|
|
2228
2615
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -2277,6 +2664,21 @@ export declare const JourneysPause200: Schema.Struct<{
|
|
|
2277
2664
|
readonly type: Schema.Literal<"event">;
|
|
2278
2665
|
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">]>]>;
|
|
2279
2666
|
readonly occurred: Schema.Boolean;
|
|
2667
|
+
}>, Schema.Struct<{
|
|
2668
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
2669
|
+
readonly property: Schema.String;
|
|
2670
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
2671
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
2672
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
2673
|
+
}>, Schema.Struct<{
|
|
2674
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
2675
|
+
readonly value: Schema.Finite;
|
|
2676
|
+
}>, Schema.Struct<{
|
|
2677
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
2678
|
+
readonly value: Schema.String;
|
|
2679
|
+
}>, Schema.Struct<{
|
|
2680
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
2681
|
+
}>]>;
|
|
2280
2682
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
2281
2683
|
readonly type: Schema.Literal<"tag">;
|
|
2282
2684
|
readonly tag: Schema.String;
|
|
@@ -2315,6 +2717,21 @@ export declare const JourneysPause200: Schema.Struct<{
|
|
|
2315
2717
|
readonly type: Schema.Literal<"event">;
|
|
2316
2718
|
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">]>]>;
|
|
2317
2719
|
readonly occurred: Schema.Boolean;
|
|
2720
|
+
}>, Schema.Struct<{
|
|
2721
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
2722
|
+
readonly property: Schema.String;
|
|
2723
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
2724
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
2725
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
2726
|
+
}>, Schema.Struct<{
|
|
2727
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
2728
|
+
readonly value: Schema.Finite;
|
|
2729
|
+
}>, Schema.Struct<{
|
|
2730
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
2731
|
+
readonly value: Schema.String;
|
|
2732
|
+
}>, Schema.Struct<{
|
|
2733
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
2734
|
+
}>]>;
|
|
2318
2735
|
}>]>]>;
|
|
2319
2736
|
}>>;
|
|
2320
2737
|
}>>;
|
|
@@ -2331,6 +2748,7 @@ export declare const JourneysPause200: Schema.Struct<{
|
|
|
2331
2748
|
readonly type: Schema.Literal<"webhook">;
|
|
2332
2749
|
readonly config: Schema.Struct<{
|
|
2333
2750
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
2751
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2334
2752
|
}>;
|
|
2335
2753
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2336
2754
|
readonly nodeId: Schema.String;
|
|
@@ -2344,10 +2762,13 @@ export declare const JourneysPause200: Schema.Struct<{
|
|
|
2344
2762
|
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">]>]>;
|
|
2345
2763
|
}>>;
|
|
2346
2764
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
2347
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
2765
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2348
2766
|
readonly type: Schema.Literal<"shopify_order">;
|
|
2349
2767
|
readonly shop: Schema.String;
|
|
2350
|
-
}
|
|
2768
|
+
}>, Schema.Struct<{
|
|
2769
|
+
readonly type: Schema.Literal<"event_property">;
|
|
2770
|
+
readonly property: Schema.String;
|
|
2771
|
+
}>]>>;
|
|
2351
2772
|
}>;
|
|
2352
2773
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
2353
2774
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2385,6 +2806,7 @@ export declare const JourneysPublishRequestJson: Schema.Struct<{
|
|
|
2385
2806
|
export type JourneysPublish200 = Journey;
|
|
2386
2807
|
export declare const JourneysPublish200: Schema.Struct<{
|
|
2387
2808
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
2809
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
2388
2810
|
readonly name: Schema.String;
|
|
2389
2811
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
2390
2812
|
readonly revision: Schema.String;
|
|
@@ -2409,6 +2831,7 @@ export declare const JourneysPublish200: Schema.Struct<{
|
|
|
2409
2831
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
2410
2832
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
2411
2833
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
2834
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2412
2835
|
}>;
|
|
2413
2836
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2414
2837
|
readonly nodeId: Schema.String;
|
|
@@ -2429,6 +2852,7 @@ export declare const JourneysPublish200: Schema.Struct<{
|
|
|
2429
2852
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
2430
2853
|
}>>;
|
|
2431
2854
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2855
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
2432
2856
|
}>;
|
|
2433
2857
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2434
2858
|
readonly nodeId: Schema.String;
|
|
@@ -2445,6 +2869,10 @@ export declare const JourneysPublish200: Schema.Struct<{
|
|
|
2445
2869
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
2446
2870
|
readonly config: Schema.Struct<{
|
|
2447
2871
|
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">]>]>;
|
|
2872
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
2873
|
+
readonly eventProperty: Schema.String;
|
|
2874
|
+
readonly entryProperty: Schema.String;
|
|
2875
|
+
}>>;
|
|
2448
2876
|
readonly timeoutSeconds: Schema.Finite;
|
|
2449
2877
|
}>;
|
|
2450
2878
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -2499,6 +2927,21 @@ export declare const JourneysPublish200: Schema.Struct<{
|
|
|
2499
2927
|
readonly type: Schema.Literal<"event">;
|
|
2500
2928
|
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">]>]>;
|
|
2501
2929
|
readonly occurred: Schema.Boolean;
|
|
2930
|
+
}>, Schema.Struct<{
|
|
2931
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
2932
|
+
readonly property: Schema.String;
|
|
2933
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
2934
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
2935
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
2936
|
+
}>, Schema.Struct<{
|
|
2937
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
2938
|
+
readonly value: Schema.Finite;
|
|
2939
|
+
}>, Schema.Struct<{
|
|
2940
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
2941
|
+
readonly value: Schema.String;
|
|
2942
|
+
}>, Schema.Struct<{
|
|
2943
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
2944
|
+
}>]>;
|
|
2502
2945
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
2503
2946
|
readonly type: Schema.Literal<"tag">;
|
|
2504
2947
|
readonly tag: Schema.String;
|
|
@@ -2537,6 +2980,21 @@ export declare const JourneysPublish200: Schema.Struct<{
|
|
|
2537
2980
|
readonly type: Schema.Literal<"event">;
|
|
2538
2981
|
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">]>]>;
|
|
2539
2982
|
readonly occurred: Schema.Boolean;
|
|
2983
|
+
}>, Schema.Struct<{
|
|
2984
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
2985
|
+
readonly property: Schema.String;
|
|
2986
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
2987
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
2988
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
2989
|
+
}>, Schema.Struct<{
|
|
2990
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
2991
|
+
readonly value: Schema.Finite;
|
|
2992
|
+
}>, Schema.Struct<{
|
|
2993
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
2994
|
+
readonly value: Schema.String;
|
|
2995
|
+
}>, Schema.Struct<{
|
|
2996
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
2997
|
+
}>]>;
|
|
2540
2998
|
}>]>]>;
|
|
2541
2999
|
}>>;
|
|
2542
3000
|
}>>;
|
|
@@ -2553,6 +3011,7 @@ export declare const JourneysPublish200: Schema.Struct<{
|
|
|
2553
3011
|
readonly type: Schema.Literal<"webhook">;
|
|
2554
3012
|
readonly config: Schema.Struct<{
|
|
2555
3013
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
3014
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2556
3015
|
}>;
|
|
2557
3016
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2558
3017
|
readonly nodeId: Schema.String;
|
|
@@ -2566,10 +3025,13 @@ export declare const JourneysPublish200: Schema.Struct<{
|
|
|
2566
3025
|
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">]>]>;
|
|
2567
3026
|
}>>;
|
|
2568
3027
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
2569
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
3028
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2570
3029
|
readonly type: Schema.Literal<"shopify_order">;
|
|
2571
3030
|
readonly shop: Schema.String;
|
|
2572
|
-
}
|
|
3031
|
+
}>, Schema.Struct<{
|
|
3032
|
+
readonly type: Schema.Literal<"event_property">;
|
|
3033
|
+
readonly property: Schema.String;
|
|
3034
|
+
}>]>>;
|
|
2573
3035
|
}>;
|
|
2574
3036
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
2575
3037
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2605,6 +3067,7 @@ export declare const JourneysResumePathParams: Schema.Struct<{
|
|
|
2605
3067
|
export type JourneysResume200 = Journey;
|
|
2606
3068
|
export declare const JourneysResume200: Schema.Struct<{
|
|
2607
3069
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
3070
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
2608
3071
|
readonly name: Schema.String;
|
|
2609
3072
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
2610
3073
|
readonly revision: Schema.String;
|
|
@@ -2629,6 +3092,7 @@ export declare const JourneysResume200: Schema.Struct<{
|
|
|
2629
3092
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
2630
3093
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
2631
3094
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
3095
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2632
3096
|
}>;
|
|
2633
3097
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2634
3098
|
readonly nodeId: Schema.String;
|
|
@@ -2649,6 +3113,7 @@ export declare const JourneysResume200: Schema.Struct<{
|
|
|
2649
3113
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
2650
3114
|
}>>;
|
|
2651
3115
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3116
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
2652
3117
|
}>;
|
|
2653
3118
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2654
3119
|
readonly nodeId: Schema.String;
|
|
@@ -2665,6 +3130,10 @@ export declare const JourneysResume200: Schema.Struct<{
|
|
|
2665
3130
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
2666
3131
|
readonly config: Schema.Struct<{
|
|
2667
3132
|
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">]>]>;
|
|
3133
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
3134
|
+
readonly eventProperty: Schema.String;
|
|
3135
|
+
readonly entryProperty: Schema.String;
|
|
3136
|
+
}>>;
|
|
2668
3137
|
readonly timeoutSeconds: Schema.Finite;
|
|
2669
3138
|
}>;
|
|
2670
3139
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -2719,6 +3188,21 @@ export declare const JourneysResume200: Schema.Struct<{
|
|
|
2719
3188
|
readonly type: Schema.Literal<"event">;
|
|
2720
3189
|
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">]>]>;
|
|
2721
3190
|
readonly occurred: Schema.Boolean;
|
|
3191
|
+
}>, Schema.Struct<{
|
|
3192
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
3193
|
+
readonly property: Schema.String;
|
|
3194
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
3195
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
3196
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
3197
|
+
}>, Schema.Struct<{
|
|
3198
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
3199
|
+
readonly value: Schema.Finite;
|
|
3200
|
+
}>, Schema.Struct<{
|
|
3201
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
3202
|
+
readonly value: Schema.String;
|
|
3203
|
+
}>, Schema.Struct<{
|
|
3204
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
3205
|
+
}>]>;
|
|
2722
3206
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
2723
3207
|
readonly type: Schema.Literal<"tag">;
|
|
2724
3208
|
readonly tag: Schema.String;
|
|
@@ -2757,6 +3241,21 @@ export declare const JourneysResume200: Schema.Struct<{
|
|
|
2757
3241
|
readonly type: Schema.Literal<"event">;
|
|
2758
3242
|
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">]>]>;
|
|
2759
3243
|
readonly occurred: Schema.Boolean;
|
|
3244
|
+
}>, Schema.Struct<{
|
|
3245
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
3246
|
+
readonly property: Schema.String;
|
|
3247
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
3248
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
3249
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
3250
|
+
}>, Schema.Struct<{
|
|
3251
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
3252
|
+
readonly value: Schema.Finite;
|
|
3253
|
+
}>, Schema.Struct<{
|
|
3254
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
3255
|
+
readonly value: Schema.String;
|
|
3256
|
+
}>, Schema.Struct<{
|
|
3257
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
3258
|
+
}>]>;
|
|
2760
3259
|
}>]>]>;
|
|
2761
3260
|
}>>;
|
|
2762
3261
|
}>>;
|
|
@@ -2773,6 +3272,7 @@ export declare const JourneysResume200: Schema.Struct<{
|
|
|
2773
3272
|
readonly type: Schema.Literal<"webhook">;
|
|
2774
3273
|
readonly config: Schema.Struct<{
|
|
2775
3274
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
3275
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2776
3276
|
}>;
|
|
2777
3277
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2778
3278
|
readonly nodeId: Schema.String;
|
|
@@ -2786,10 +3286,13 @@ export declare const JourneysResume200: Schema.Struct<{
|
|
|
2786
3286
|
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">]>]>;
|
|
2787
3287
|
}>>;
|
|
2788
3288
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
2789
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
3289
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2790
3290
|
readonly type: Schema.Literal<"shopify_order">;
|
|
2791
3291
|
readonly shop: Schema.String;
|
|
2792
|
-
}
|
|
3292
|
+
}>, Schema.Struct<{
|
|
3293
|
+
readonly type: Schema.Literal<"event_property">;
|
|
3294
|
+
readonly property: Schema.String;
|
|
3295
|
+
}>]>>;
|
|
2793
3296
|
}>;
|
|
2794
3297
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
2795
3298
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2838,6 +3341,7 @@ export type JourneysListRuns200 = JourneyRunPage;
|
|
|
2838
3341
|
export declare const JourneysListRuns200: Schema.Struct<{
|
|
2839
3342
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
2840
3343
|
readonly id: Schema.brand<Schema.String, "JourneyRunId">;
|
|
3344
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
2841
3345
|
readonly journeyId: Schema.brand<Schema.String, "JourneyId">;
|
|
2842
3346
|
readonly version: Schema.Finite;
|
|
2843
3347
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
@@ -2882,6 +3386,7 @@ export declare const JourneysGetRunPathParams: Schema.Struct<{
|
|
|
2882
3386
|
export type JourneysGetRun200 = JourneyRunDetail;
|
|
2883
3387
|
export declare const JourneysGetRun200: Schema.Struct<{
|
|
2884
3388
|
readonly id: Schema.brand<Schema.String, "JourneyRunId">;
|
|
3389
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
2885
3390
|
readonly journeyId: Schema.brand<Schema.String, "JourneyId">;
|
|
2886
3391
|
readonly version: Schema.Finite;
|
|
2887
3392
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
@@ -2998,6 +3503,7 @@ export declare const JourneysGetVersion200: Schema.Struct<{
|
|
|
2998
3503
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
2999
3504
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
3000
3505
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
3506
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3001
3507
|
}>;
|
|
3002
3508
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3003
3509
|
readonly nodeId: Schema.String;
|
|
@@ -3018,6 +3524,7 @@ export declare const JourneysGetVersion200: Schema.Struct<{
|
|
|
3018
3524
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
3019
3525
|
}>>;
|
|
3020
3526
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3527
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
3021
3528
|
}>;
|
|
3022
3529
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3023
3530
|
readonly nodeId: Schema.String;
|
|
@@ -3034,6 +3541,10 @@ export declare const JourneysGetVersion200: Schema.Struct<{
|
|
|
3034
3541
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
3035
3542
|
readonly config: Schema.Struct<{
|
|
3036
3543
|
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">]>]>;
|
|
3544
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
3545
|
+
readonly eventProperty: Schema.String;
|
|
3546
|
+
readonly entryProperty: Schema.String;
|
|
3547
|
+
}>>;
|
|
3037
3548
|
readonly timeoutSeconds: Schema.Finite;
|
|
3038
3549
|
}>;
|
|
3039
3550
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -3088,6 +3599,21 @@ export declare const JourneysGetVersion200: Schema.Struct<{
|
|
|
3088
3599
|
readonly type: Schema.Literal<"event">;
|
|
3089
3600
|
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">]>]>;
|
|
3090
3601
|
readonly occurred: Schema.Boolean;
|
|
3602
|
+
}>, Schema.Struct<{
|
|
3603
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
3604
|
+
readonly property: Schema.String;
|
|
3605
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
3606
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
3607
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
3608
|
+
}>, Schema.Struct<{
|
|
3609
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
3610
|
+
readonly value: Schema.Finite;
|
|
3611
|
+
}>, Schema.Struct<{
|
|
3612
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
3613
|
+
readonly value: Schema.String;
|
|
3614
|
+
}>, Schema.Struct<{
|
|
3615
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
3616
|
+
}>]>;
|
|
3091
3617
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
3092
3618
|
readonly type: Schema.Literal<"tag">;
|
|
3093
3619
|
readonly tag: Schema.String;
|
|
@@ -3126,6 +3652,21 @@ export declare const JourneysGetVersion200: Schema.Struct<{
|
|
|
3126
3652
|
readonly type: Schema.Literal<"event">;
|
|
3127
3653
|
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">]>]>;
|
|
3128
3654
|
readonly occurred: Schema.Boolean;
|
|
3655
|
+
}>, Schema.Struct<{
|
|
3656
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
3657
|
+
readonly property: Schema.String;
|
|
3658
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
3659
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
3660
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
3661
|
+
}>, Schema.Struct<{
|
|
3662
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
3663
|
+
readonly value: Schema.Finite;
|
|
3664
|
+
}>, Schema.Struct<{
|
|
3665
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
3666
|
+
readonly value: Schema.String;
|
|
3667
|
+
}>, Schema.Struct<{
|
|
3668
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
3669
|
+
}>]>;
|
|
3129
3670
|
}>]>]>;
|
|
3130
3671
|
}>>;
|
|
3131
3672
|
}>>;
|
|
@@ -3142,6 +3683,7 @@ export declare const JourneysGetVersion200: Schema.Struct<{
|
|
|
3142
3683
|
readonly type: Schema.Literal<"webhook">;
|
|
3143
3684
|
readonly config: Schema.Struct<{
|
|
3144
3685
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
3686
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3145
3687
|
}>;
|
|
3146
3688
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3147
3689
|
readonly nodeId: Schema.String;
|
|
@@ -3155,10 +3697,13 @@ export declare const JourneysGetVersion200: Schema.Struct<{
|
|
|
3155
3697
|
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">]>]>;
|
|
3156
3698
|
}>>;
|
|
3157
3699
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
3158
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
3700
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3159
3701
|
readonly type: Schema.Literal<"shopify_order">;
|
|
3160
3702
|
readonly shop: Schema.String;
|
|
3161
|
-
}
|
|
3703
|
+
}>, Schema.Struct<{
|
|
3704
|
+
readonly type: Schema.Literal<"event_property">;
|
|
3705
|
+
readonly property: Schema.String;
|
|
3706
|
+
}>]>>;
|
|
3162
3707
|
}>;
|
|
3163
3708
|
readonly publishedAt: Schema.String;
|
|
3164
3709
|
}>;
|
|
@@ -3180,6 +3725,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3180
3725
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
3181
3726
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3182
3727
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
3728
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
3183
3729
|
readonly name: Schema.String;
|
|
3184
3730
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
3185
3731
|
readonly revision: Schema.String;
|
|
@@ -3204,6 +3750,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3204
3750
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
3205
3751
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
3206
3752
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
3753
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3207
3754
|
}>;
|
|
3208
3755
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3209
3756
|
readonly nodeId: Schema.String;
|
|
@@ -3224,6 +3771,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3224
3771
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
3225
3772
|
}>>;
|
|
3226
3773
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3774
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
3227
3775
|
}>;
|
|
3228
3776
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3229
3777
|
readonly nodeId: Schema.String;
|
|
@@ -3240,6 +3788,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3240
3788
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
3241
3789
|
readonly config: Schema.Struct<{
|
|
3242
3790
|
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">]>]>;
|
|
3791
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
3792
|
+
readonly eventProperty: Schema.String;
|
|
3793
|
+
readonly entryProperty: Schema.String;
|
|
3794
|
+
}>>;
|
|
3243
3795
|
readonly timeoutSeconds: Schema.Finite;
|
|
3244
3796
|
}>;
|
|
3245
3797
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -3294,6 +3846,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3294
3846
|
readonly type: Schema.Literal<"event">;
|
|
3295
3847
|
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">]>]>;
|
|
3296
3848
|
readonly occurred: Schema.Boolean;
|
|
3849
|
+
}>, Schema.Struct<{
|
|
3850
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
3851
|
+
readonly property: Schema.String;
|
|
3852
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
3853
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
3854
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
3855
|
+
}>, Schema.Struct<{
|
|
3856
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
3857
|
+
readonly value: Schema.Finite;
|
|
3858
|
+
}>, Schema.Struct<{
|
|
3859
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
3860
|
+
readonly value: Schema.String;
|
|
3861
|
+
}>, Schema.Struct<{
|
|
3862
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
3863
|
+
}>]>;
|
|
3297
3864
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
3298
3865
|
readonly type: Schema.Literal<"tag">;
|
|
3299
3866
|
readonly tag: Schema.String;
|
|
@@ -3332,6 +3899,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3332
3899
|
readonly type: Schema.Literal<"event">;
|
|
3333
3900
|
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">]>]>;
|
|
3334
3901
|
readonly occurred: Schema.Boolean;
|
|
3902
|
+
}>, Schema.Struct<{
|
|
3903
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
3904
|
+
readonly property: Schema.String;
|
|
3905
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
3906
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
3907
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
3908
|
+
}>, Schema.Struct<{
|
|
3909
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
3910
|
+
readonly value: Schema.Finite;
|
|
3911
|
+
}>, Schema.Struct<{
|
|
3912
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
3913
|
+
readonly value: Schema.String;
|
|
3914
|
+
}>, Schema.Struct<{
|
|
3915
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
3916
|
+
}>]>;
|
|
3335
3917
|
}>]>]>;
|
|
3336
3918
|
}>>;
|
|
3337
3919
|
}>>;
|
|
@@ -3348,6 +3930,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3348
3930
|
readonly type: Schema.Literal<"webhook">;
|
|
3349
3931
|
readonly config: Schema.Struct<{
|
|
3350
3932
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
3933
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3351
3934
|
}>;
|
|
3352
3935
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3353
3936
|
readonly nodeId: Schema.String;
|
|
@@ -3361,10 +3944,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3361
3944
|
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">]>]>;
|
|
3362
3945
|
}>>;
|
|
3363
3946
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
3364
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
3947
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3365
3948
|
readonly type: Schema.Literal<"shopify_order">;
|
|
3366
3949
|
readonly shop: Schema.String;
|
|
3367
|
-
}
|
|
3950
|
+
}>, Schema.Struct<{
|
|
3951
|
+
readonly type: Schema.Literal<"event_property">;
|
|
3952
|
+
readonly property: Schema.String;
|
|
3953
|
+
}>]>>;
|
|
3368
3954
|
}>;
|
|
3369
3955
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
3370
3956
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -3492,6 +4078,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3492
4078
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
3493
4079
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"journeysCreate", "POST", "/v1/journeys", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3494
4080
|
readonly name: Schema.String;
|
|
4081
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
3495
4082
|
readonly definition: Schema.Struct<{
|
|
3496
4083
|
readonly trigger: Schema.Union<readonly [Schema.Struct<{
|
|
3497
4084
|
readonly type: Schema.Literal<"event">;
|
|
@@ -3513,6 +4100,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3513
4100
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
3514
4101
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
3515
4102
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
4103
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3516
4104
|
}>;
|
|
3517
4105
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3518
4106
|
readonly nodeId: Schema.String;
|
|
@@ -3533,6 +4121,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3533
4121
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
3534
4122
|
}>>;
|
|
3535
4123
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
4124
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
3536
4125
|
}>;
|
|
3537
4126
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3538
4127
|
readonly nodeId: Schema.String;
|
|
@@ -3549,6 +4138,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3549
4138
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
3550
4139
|
readonly config: Schema.Struct<{
|
|
3551
4140
|
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">]>]>;
|
|
4141
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
4142
|
+
readonly eventProperty: Schema.String;
|
|
4143
|
+
readonly entryProperty: Schema.String;
|
|
4144
|
+
}>>;
|
|
3552
4145
|
readonly timeoutSeconds: Schema.Finite;
|
|
3553
4146
|
}>;
|
|
3554
4147
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -3603,6 +4196,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3603
4196
|
readonly type: Schema.Literal<"event">;
|
|
3604
4197
|
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">]>]>;
|
|
3605
4198
|
readonly occurred: Schema.Boolean;
|
|
4199
|
+
}>, Schema.Struct<{
|
|
4200
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
4201
|
+
readonly property: Schema.String;
|
|
4202
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
4203
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
4204
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
4205
|
+
}>, Schema.Struct<{
|
|
4206
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
4207
|
+
readonly value: Schema.Finite;
|
|
4208
|
+
}>, Schema.Struct<{
|
|
4209
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
4210
|
+
readonly value: Schema.String;
|
|
4211
|
+
}>, Schema.Struct<{
|
|
4212
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
4213
|
+
}>]>;
|
|
3606
4214
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
3607
4215
|
readonly type: Schema.Literal<"tag">;
|
|
3608
4216
|
readonly tag: Schema.String;
|
|
@@ -3641,6 +4249,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3641
4249
|
readonly type: Schema.Literal<"event">;
|
|
3642
4250
|
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">]>]>;
|
|
3643
4251
|
readonly occurred: Schema.Boolean;
|
|
4252
|
+
}>, Schema.Struct<{
|
|
4253
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
4254
|
+
readonly property: Schema.String;
|
|
4255
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
4256
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
4257
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
4258
|
+
}>, Schema.Struct<{
|
|
4259
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
4260
|
+
readonly value: Schema.Finite;
|
|
4261
|
+
}>, Schema.Struct<{
|
|
4262
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
4263
|
+
readonly value: Schema.String;
|
|
4264
|
+
}>, Schema.Struct<{
|
|
4265
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
4266
|
+
}>]>;
|
|
3644
4267
|
}>]>]>;
|
|
3645
4268
|
}>>;
|
|
3646
4269
|
}>>;
|
|
@@ -3657,6 +4280,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3657
4280
|
readonly type: Schema.Literal<"webhook">;
|
|
3658
4281
|
readonly config: Schema.Struct<{
|
|
3659
4282
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
4283
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3660
4284
|
}>;
|
|
3661
4285
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3662
4286
|
readonly nodeId: Schema.String;
|
|
@@ -3670,13 +4294,17 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3670
4294
|
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">]>]>;
|
|
3671
4295
|
}>>;
|
|
3672
4296
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
3673
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
4297
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3674
4298
|
readonly type: Schema.Literal<"shopify_order">;
|
|
3675
4299
|
readonly shop: Schema.String;
|
|
3676
|
-
}
|
|
4300
|
+
}>, Schema.Struct<{
|
|
4301
|
+
readonly type: Schema.Literal<"event_property">;
|
|
4302
|
+
readonly property: Schema.String;
|
|
4303
|
+
}>]>>;
|
|
3677
4304
|
}>;
|
|
3678
4305
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3679
4306
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
4307
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
3680
4308
|
readonly name: Schema.String;
|
|
3681
4309
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
3682
4310
|
readonly revision: Schema.String;
|
|
@@ -3701,6 +4329,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3701
4329
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
3702
4330
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
3703
4331
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
4332
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3704
4333
|
}>;
|
|
3705
4334
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3706
4335
|
readonly nodeId: Schema.String;
|
|
@@ -3721,6 +4350,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3721
4350
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
3722
4351
|
}>>;
|
|
3723
4352
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
4353
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
3724
4354
|
}>;
|
|
3725
4355
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3726
4356
|
readonly nodeId: Schema.String;
|
|
@@ -3737,6 +4367,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3737
4367
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
3738
4368
|
readonly config: Schema.Struct<{
|
|
3739
4369
|
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">]>]>;
|
|
4370
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
4371
|
+
readonly eventProperty: Schema.String;
|
|
4372
|
+
readonly entryProperty: Schema.String;
|
|
4373
|
+
}>>;
|
|
3740
4374
|
readonly timeoutSeconds: Schema.Finite;
|
|
3741
4375
|
}>;
|
|
3742
4376
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -3791,6 +4425,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3791
4425
|
readonly type: Schema.Literal<"event">;
|
|
3792
4426
|
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">]>]>;
|
|
3793
4427
|
readonly occurred: Schema.Boolean;
|
|
4428
|
+
}>, Schema.Struct<{
|
|
4429
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
4430
|
+
readonly property: Schema.String;
|
|
4431
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
4432
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
4433
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
4434
|
+
}>, Schema.Struct<{
|
|
4435
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
4436
|
+
readonly value: Schema.Finite;
|
|
4437
|
+
}>, Schema.Struct<{
|
|
4438
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
4439
|
+
readonly value: Schema.String;
|
|
4440
|
+
}>, Schema.Struct<{
|
|
4441
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
4442
|
+
}>]>;
|
|
3794
4443
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
3795
4444
|
readonly type: Schema.Literal<"tag">;
|
|
3796
4445
|
readonly tag: Schema.String;
|
|
@@ -3829,6 +4478,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3829
4478
|
readonly type: Schema.Literal<"event">;
|
|
3830
4479
|
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">]>]>;
|
|
3831
4480
|
readonly occurred: Schema.Boolean;
|
|
4481
|
+
}>, Schema.Struct<{
|
|
4482
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
4483
|
+
readonly property: Schema.String;
|
|
4484
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
4485
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
4486
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
4487
|
+
}>, Schema.Struct<{
|
|
4488
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
4489
|
+
readonly value: Schema.Finite;
|
|
4490
|
+
}>, Schema.Struct<{
|
|
4491
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
4492
|
+
readonly value: Schema.String;
|
|
4493
|
+
}>, Schema.Struct<{
|
|
4494
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
4495
|
+
}>]>;
|
|
3832
4496
|
}>]>]>;
|
|
3833
4497
|
}>>;
|
|
3834
4498
|
}>>;
|
|
@@ -3845,6 +4509,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3845
4509
|
readonly type: Schema.Literal<"webhook">;
|
|
3846
4510
|
readonly config: Schema.Struct<{
|
|
3847
4511
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
4512
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3848
4513
|
}>;
|
|
3849
4514
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3850
4515
|
readonly nodeId: Schema.String;
|
|
@@ -3858,10 +4523,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3858
4523
|
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">]>]>;
|
|
3859
4524
|
}>>;
|
|
3860
4525
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
3861
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
4526
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3862
4527
|
readonly type: Schema.Literal<"shopify_order">;
|
|
3863
4528
|
readonly shop: Schema.String;
|
|
3864
|
-
}
|
|
4529
|
+
}>, Schema.Struct<{
|
|
4530
|
+
readonly type: Schema.Literal<"event_property">;
|
|
4531
|
+
readonly property: Schema.String;
|
|
4532
|
+
}>]>>;
|
|
3865
4533
|
}>;
|
|
3866
4534
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
3867
4535
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -4027,6 +4695,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4027
4695
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
4028
4696
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4029
4697
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
4698
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
4030
4699
|
readonly name: Schema.String;
|
|
4031
4700
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
4032
4701
|
readonly revision: Schema.String;
|
|
@@ -4051,6 +4720,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4051
4720
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
4052
4721
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
4053
4722
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
4723
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
4054
4724
|
}>;
|
|
4055
4725
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4056
4726
|
readonly nodeId: Schema.String;
|
|
@@ -4071,6 +4741,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4071
4741
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
4072
4742
|
}>>;
|
|
4073
4743
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
4744
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
4074
4745
|
}>;
|
|
4075
4746
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4076
4747
|
readonly nodeId: Schema.String;
|
|
@@ -4087,6 +4758,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4087
4758
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
4088
4759
|
readonly config: Schema.Struct<{
|
|
4089
4760
|
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">]>]>;
|
|
4761
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
4762
|
+
readonly eventProperty: Schema.String;
|
|
4763
|
+
readonly entryProperty: Schema.String;
|
|
4764
|
+
}>>;
|
|
4090
4765
|
readonly timeoutSeconds: Schema.Finite;
|
|
4091
4766
|
}>;
|
|
4092
4767
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -4141,6 +4816,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4141
4816
|
readonly type: Schema.Literal<"event">;
|
|
4142
4817
|
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">]>]>;
|
|
4143
4818
|
readonly occurred: Schema.Boolean;
|
|
4819
|
+
}>, Schema.Struct<{
|
|
4820
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
4821
|
+
readonly property: Schema.String;
|
|
4822
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
4823
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
4824
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
4825
|
+
}>, Schema.Struct<{
|
|
4826
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
4827
|
+
readonly value: Schema.Finite;
|
|
4828
|
+
}>, Schema.Struct<{
|
|
4829
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
4830
|
+
readonly value: Schema.String;
|
|
4831
|
+
}>, Schema.Struct<{
|
|
4832
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
4833
|
+
}>]>;
|
|
4144
4834
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4145
4835
|
readonly type: Schema.Literal<"tag">;
|
|
4146
4836
|
readonly tag: Schema.String;
|
|
@@ -4179,6 +4869,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4179
4869
|
readonly type: Schema.Literal<"event">;
|
|
4180
4870
|
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">]>]>;
|
|
4181
4871
|
readonly occurred: Schema.Boolean;
|
|
4872
|
+
}>, Schema.Struct<{
|
|
4873
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
4874
|
+
readonly property: Schema.String;
|
|
4875
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
4876
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
4877
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
4878
|
+
}>, Schema.Struct<{
|
|
4879
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
4880
|
+
readonly value: Schema.Finite;
|
|
4881
|
+
}>, Schema.Struct<{
|
|
4882
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
4883
|
+
readonly value: Schema.String;
|
|
4884
|
+
}>, Schema.Struct<{
|
|
4885
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
4886
|
+
}>]>;
|
|
4182
4887
|
}>]>]>;
|
|
4183
4888
|
}>>;
|
|
4184
4889
|
}>>;
|
|
@@ -4195,6 +4900,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4195
4900
|
readonly type: Schema.Literal<"webhook">;
|
|
4196
4901
|
readonly config: Schema.Struct<{
|
|
4197
4902
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
4903
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
4198
4904
|
}>;
|
|
4199
4905
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4200
4906
|
readonly nodeId: Schema.String;
|
|
@@ -4208,10 +4914,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4208
4914
|
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">]>]>;
|
|
4209
4915
|
}>>;
|
|
4210
4916
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
4211
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
4917
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4212
4918
|
readonly type: Schema.Literal<"shopify_order">;
|
|
4213
4919
|
readonly shop: Schema.String;
|
|
4214
|
-
}
|
|
4920
|
+
}>, Schema.Struct<{
|
|
4921
|
+
readonly type: Schema.Literal<"event_property">;
|
|
4922
|
+
readonly property: Schema.String;
|
|
4923
|
+
}>]>>;
|
|
4215
4924
|
}>;
|
|
4216
4925
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
4217
4926
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -4322,6 +5031,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4322
5031
|
readonly runId: Schema.brand<Schema.String, "JourneyRunId">;
|
|
4323
5032
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4324
5033
|
readonly id: Schema.brand<Schema.String, "JourneyRunId">;
|
|
5034
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
4325
5035
|
readonly journeyId: Schema.brand<Schema.String, "JourneyId">;
|
|
4326
5036
|
readonly version: Schema.Finite;
|
|
4327
5037
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
@@ -4475,6 +5185,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4475
5185
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
4476
5186
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
4477
5187
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
5188
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
4478
5189
|
}>;
|
|
4479
5190
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4480
5191
|
readonly nodeId: Schema.String;
|
|
@@ -4495,6 +5206,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4495
5206
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
4496
5207
|
}>>;
|
|
4497
5208
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
5209
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
4498
5210
|
}>;
|
|
4499
5211
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4500
5212
|
readonly nodeId: Schema.String;
|
|
@@ -4511,6 +5223,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4511
5223
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
4512
5224
|
readonly config: Schema.Struct<{
|
|
4513
5225
|
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">]>]>;
|
|
5226
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
5227
|
+
readonly eventProperty: Schema.String;
|
|
5228
|
+
readonly entryProperty: Schema.String;
|
|
5229
|
+
}>>;
|
|
4514
5230
|
readonly timeoutSeconds: Schema.Finite;
|
|
4515
5231
|
}>;
|
|
4516
5232
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -4565,6 +5281,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4565
5281
|
readonly type: Schema.Literal<"event">;
|
|
4566
5282
|
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">]>]>;
|
|
4567
5283
|
readonly occurred: Schema.Boolean;
|
|
5284
|
+
}>, Schema.Struct<{
|
|
5285
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
5286
|
+
readonly property: Schema.String;
|
|
5287
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
5288
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
5289
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
5290
|
+
}>, Schema.Struct<{
|
|
5291
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
5292
|
+
readonly value: Schema.Finite;
|
|
5293
|
+
}>, Schema.Struct<{
|
|
5294
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
5295
|
+
readonly value: Schema.String;
|
|
5296
|
+
}>, Schema.Struct<{
|
|
5297
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
5298
|
+
}>]>;
|
|
4568
5299
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4569
5300
|
readonly type: Schema.Literal<"tag">;
|
|
4570
5301
|
readonly tag: Schema.String;
|
|
@@ -4603,6 +5334,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4603
5334
|
readonly type: Schema.Literal<"event">;
|
|
4604
5335
|
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">]>]>;
|
|
4605
5336
|
readonly occurred: Schema.Boolean;
|
|
5337
|
+
}>, Schema.Struct<{
|
|
5338
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
5339
|
+
readonly property: Schema.String;
|
|
5340
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
5341
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
5342
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
5343
|
+
}>, Schema.Struct<{
|
|
5344
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
5345
|
+
readonly value: Schema.Finite;
|
|
5346
|
+
}>, Schema.Struct<{
|
|
5347
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
5348
|
+
readonly value: Schema.String;
|
|
5349
|
+
}>, Schema.Struct<{
|
|
5350
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
5351
|
+
}>]>;
|
|
4606
5352
|
}>]>]>;
|
|
4607
5353
|
}>>;
|
|
4608
5354
|
}>>;
|
|
@@ -4619,6 +5365,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4619
5365
|
readonly type: Schema.Literal<"webhook">;
|
|
4620
5366
|
readonly config: Schema.Struct<{
|
|
4621
5367
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
5368
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
4622
5369
|
}>;
|
|
4623
5370
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4624
5371
|
readonly nodeId: Schema.String;
|
|
@@ -4632,10 +5379,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4632
5379
|
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">]>]>;
|
|
4633
5380
|
}>>;
|
|
4634
5381
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
4635
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
5382
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4636
5383
|
readonly type: Schema.Literal<"shopify_order">;
|
|
4637
5384
|
readonly shop: Schema.String;
|
|
4638
|
-
}
|
|
5385
|
+
}>, Schema.Struct<{
|
|
5386
|
+
readonly type: Schema.Literal<"event_property">;
|
|
5387
|
+
readonly property: Schema.String;
|
|
5388
|
+
}>]>>;
|
|
4639
5389
|
}>;
|
|
4640
5390
|
readonly publishedAt: Schema.String;
|
|
4641
5391
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
@@ -4739,12 +5489,14 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4739
5489
|
readonly message: Schema.String;
|
|
4740
5490
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
4741
5491
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"journeysList", "GET", "/v1/journeys", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
5492
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
4742
5493
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>>;
|
|
4743
5494
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
4744
5495
|
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
4745
5496
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4746
5497
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
4747
5498
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
5499
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
4748
5500
|
readonly name: Schema.String;
|
|
4749
5501
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
4750
5502
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
@@ -4843,6 +5595,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4843
5595
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4844
5596
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
4845
5597
|
readonly id: Schema.brand<Schema.String, "JourneyRunId">;
|
|
5598
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
4846
5599
|
readonly journeyId: Schema.brand<Schema.String, "JourneyId">;
|
|
4847
5600
|
readonly version: Schema.Finite;
|
|
4848
5601
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
@@ -4965,6 +5718,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4965
5718
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
4966
5719
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4967
5720
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
5721
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
4968
5722
|
readonly name: Schema.String;
|
|
4969
5723
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
4970
5724
|
readonly revision: Schema.String;
|
|
@@ -4989,6 +5743,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4989
5743
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
4990
5744
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
4991
5745
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
5746
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
4992
5747
|
}>;
|
|
4993
5748
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4994
5749
|
readonly nodeId: Schema.String;
|
|
@@ -5009,6 +5764,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5009
5764
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
5010
5765
|
}>>;
|
|
5011
5766
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
5767
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
5012
5768
|
}>;
|
|
5013
5769
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5014
5770
|
readonly nodeId: Schema.String;
|
|
@@ -5025,6 +5781,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5025
5781
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
5026
5782
|
readonly config: Schema.Struct<{
|
|
5027
5783
|
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">]>]>;
|
|
5784
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
5785
|
+
readonly eventProperty: Schema.String;
|
|
5786
|
+
readonly entryProperty: Schema.String;
|
|
5787
|
+
}>>;
|
|
5028
5788
|
readonly timeoutSeconds: Schema.Finite;
|
|
5029
5789
|
}>;
|
|
5030
5790
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -5079,6 +5839,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5079
5839
|
readonly type: Schema.Literal<"event">;
|
|
5080
5840
|
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">]>]>;
|
|
5081
5841
|
readonly occurred: Schema.Boolean;
|
|
5842
|
+
}>, Schema.Struct<{
|
|
5843
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
5844
|
+
readonly property: Schema.String;
|
|
5845
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
5846
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
5847
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
5848
|
+
}>, Schema.Struct<{
|
|
5849
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
5850
|
+
readonly value: Schema.Finite;
|
|
5851
|
+
}>, Schema.Struct<{
|
|
5852
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
5853
|
+
readonly value: Schema.String;
|
|
5854
|
+
}>, Schema.Struct<{
|
|
5855
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
5856
|
+
}>]>;
|
|
5082
5857
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5083
5858
|
readonly type: Schema.Literal<"tag">;
|
|
5084
5859
|
readonly tag: Schema.String;
|
|
@@ -5117,6 +5892,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5117
5892
|
readonly type: Schema.Literal<"event">;
|
|
5118
5893
|
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">]>]>;
|
|
5119
5894
|
readonly occurred: Schema.Boolean;
|
|
5895
|
+
}>, Schema.Struct<{
|
|
5896
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
5897
|
+
readonly property: Schema.String;
|
|
5898
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
5899
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
5900
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
5901
|
+
}>, Schema.Struct<{
|
|
5902
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
5903
|
+
readonly value: Schema.Finite;
|
|
5904
|
+
}>, Schema.Struct<{
|
|
5905
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
5906
|
+
readonly value: Schema.String;
|
|
5907
|
+
}>, Schema.Struct<{
|
|
5908
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
5909
|
+
}>]>;
|
|
5120
5910
|
}>]>]>;
|
|
5121
5911
|
}>>;
|
|
5122
5912
|
}>>;
|
|
@@ -5133,6 +5923,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5133
5923
|
readonly type: Schema.Literal<"webhook">;
|
|
5134
5924
|
readonly config: Schema.Struct<{
|
|
5135
5925
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
5926
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
5136
5927
|
}>;
|
|
5137
5928
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5138
5929
|
readonly nodeId: Schema.String;
|
|
@@ -5146,10 +5937,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5146
5937
|
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">]>]>;
|
|
5147
5938
|
}>>;
|
|
5148
5939
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
5149
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
5940
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5150
5941
|
readonly type: Schema.Literal<"shopify_order">;
|
|
5151
5942
|
readonly shop: Schema.String;
|
|
5152
|
-
}
|
|
5943
|
+
}>, Schema.Struct<{
|
|
5944
|
+
readonly type: Schema.Literal<"event_property">;
|
|
5945
|
+
readonly property: Schema.String;
|
|
5946
|
+
}>]>>;
|
|
5153
5947
|
}>;
|
|
5154
5948
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
5155
5949
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -5281,6 +6075,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5281
6075
|
readonly revision: Schema.String;
|
|
5282
6076
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
5283
6077
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
6078
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
5284
6079
|
readonly name: Schema.String;
|
|
5285
6080
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
5286
6081
|
readonly revision: Schema.String;
|
|
@@ -5305,6 +6100,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5305
6100
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
5306
6101
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
5307
6102
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
6103
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
5308
6104
|
}>;
|
|
5309
6105
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5310
6106
|
readonly nodeId: Schema.String;
|
|
@@ -5325,6 +6121,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5325
6121
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
5326
6122
|
}>>;
|
|
5327
6123
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6124
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
5328
6125
|
}>;
|
|
5329
6126
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5330
6127
|
readonly nodeId: Schema.String;
|
|
@@ -5341,6 +6138,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5341
6138
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
5342
6139
|
readonly config: Schema.Struct<{
|
|
5343
6140
|
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">]>]>;
|
|
6141
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
6142
|
+
readonly eventProperty: Schema.String;
|
|
6143
|
+
readonly entryProperty: Schema.String;
|
|
6144
|
+
}>>;
|
|
5344
6145
|
readonly timeoutSeconds: Schema.Finite;
|
|
5345
6146
|
}>;
|
|
5346
6147
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -5395,6 +6196,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5395
6196
|
readonly type: Schema.Literal<"event">;
|
|
5396
6197
|
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">]>]>;
|
|
5397
6198
|
readonly occurred: Schema.Boolean;
|
|
6199
|
+
}>, Schema.Struct<{
|
|
6200
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
6201
|
+
readonly property: Schema.String;
|
|
6202
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
6203
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
6204
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
6205
|
+
}>, Schema.Struct<{
|
|
6206
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
6207
|
+
readonly value: Schema.Finite;
|
|
6208
|
+
}>, Schema.Struct<{
|
|
6209
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
6210
|
+
readonly value: Schema.String;
|
|
6211
|
+
}>, Schema.Struct<{
|
|
6212
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
6213
|
+
}>]>;
|
|
5398
6214
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5399
6215
|
readonly type: Schema.Literal<"tag">;
|
|
5400
6216
|
readonly tag: Schema.String;
|
|
@@ -5433,6 +6249,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5433
6249
|
readonly type: Schema.Literal<"event">;
|
|
5434
6250
|
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">]>]>;
|
|
5435
6251
|
readonly occurred: Schema.Boolean;
|
|
6252
|
+
}>, Schema.Struct<{
|
|
6253
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
6254
|
+
readonly property: Schema.String;
|
|
6255
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
6256
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
6257
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
6258
|
+
}>, Schema.Struct<{
|
|
6259
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
6260
|
+
readonly value: Schema.Finite;
|
|
6261
|
+
}>, Schema.Struct<{
|
|
6262
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
6263
|
+
readonly value: Schema.String;
|
|
6264
|
+
}>, Schema.Struct<{
|
|
6265
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
6266
|
+
}>]>;
|
|
5436
6267
|
}>]>]>;
|
|
5437
6268
|
}>>;
|
|
5438
6269
|
}>>;
|
|
@@ -5449,6 +6280,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5449
6280
|
readonly type: Schema.Literal<"webhook">;
|
|
5450
6281
|
readonly config: Schema.Struct<{
|
|
5451
6282
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
6283
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
5452
6284
|
}>;
|
|
5453
6285
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5454
6286
|
readonly nodeId: Schema.String;
|
|
@@ -5462,10 +6294,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5462
6294
|
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">]>]>;
|
|
5463
6295
|
}>>;
|
|
5464
6296
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
5465
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
6297
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5466
6298
|
readonly type: Schema.Literal<"shopify_order">;
|
|
5467
6299
|
readonly shop: Schema.String;
|
|
5468
|
-
}
|
|
6300
|
+
}>, Schema.Struct<{
|
|
6301
|
+
readonly type: Schema.Literal<"event_property">;
|
|
6302
|
+
readonly property: Schema.String;
|
|
6303
|
+
}>]>>;
|
|
5469
6304
|
}>;
|
|
5470
6305
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
5471
6306
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -5777,6 +6612,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5777
6612
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
5778
6613
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
5779
6614
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
6615
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
5780
6616
|
}>;
|
|
5781
6617
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5782
6618
|
readonly nodeId: Schema.String;
|
|
@@ -5797,6 +6633,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5797
6633
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
5798
6634
|
}>>;
|
|
5799
6635
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6636
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
5800
6637
|
}>;
|
|
5801
6638
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5802
6639
|
readonly nodeId: Schema.String;
|
|
@@ -5813,6 +6650,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5813
6650
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
5814
6651
|
readonly config: Schema.Struct<{
|
|
5815
6652
|
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">]>]>;
|
|
6653
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
6654
|
+
readonly eventProperty: Schema.String;
|
|
6655
|
+
readonly entryProperty: Schema.String;
|
|
6656
|
+
}>>;
|
|
5816
6657
|
readonly timeoutSeconds: Schema.Finite;
|
|
5817
6658
|
}>;
|
|
5818
6659
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -5867,6 +6708,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5867
6708
|
readonly type: Schema.Literal<"event">;
|
|
5868
6709
|
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">]>]>;
|
|
5869
6710
|
readonly occurred: Schema.Boolean;
|
|
6711
|
+
}>, Schema.Struct<{
|
|
6712
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
6713
|
+
readonly property: Schema.String;
|
|
6714
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
6715
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
6716
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
6717
|
+
}>, Schema.Struct<{
|
|
6718
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
6719
|
+
readonly value: Schema.Finite;
|
|
6720
|
+
}>, Schema.Struct<{
|
|
6721
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
6722
|
+
readonly value: Schema.String;
|
|
6723
|
+
}>, Schema.Struct<{
|
|
6724
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
6725
|
+
}>]>;
|
|
5870
6726
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5871
6727
|
readonly type: Schema.Literal<"tag">;
|
|
5872
6728
|
readonly tag: Schema.String;
|
|
@@ -5905,6 +6761,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5905
6761
|
readonly type: Schema.Literal<"event">;
|
|
5906
6762
|
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">]>]>;
|
|
5907
6763
|
readonly occurred: Schema.Boolean;
|
|
6764
|
+
}>, Schema.Struct<{
|
|
6765
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
6766
|
+
readonly property: Schema.String;
|
|
6767
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
6768
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
6769
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
6770
|
+
}>, Schema.Struct<{
|
|
6771
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
6772
|
+
readonly value: Schema.Finite;
|
|
6773
|
+
}>, Schema.Struct<{
|
|
6774
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
6775
|
+
readonly value: Schema.String;
|
|
6776
|
+
}>, Schema.Struct<{
|
|
6777
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
6778
|
+
}>]>;
|
|
5908
6779
|
}>]>]>;
|
|
5909
6780
|
}>>;
|
|
5910
6781
|
}>>;
|
|
@@ -5921,6 +6792,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5921
6792
|
readonly type: Schema.Literal<"webhook">;
|
|
5922
6793
|
readonly config: Schema.Struct<{
|
|
5923
6794
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
6795
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
5924
6796
|
}>;
|
|
5925
6797
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5926
6798
|
readonly nodeId: Schema.String;
|
|
@@ -5934,13 +6806,17 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5934
6806
|
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">]>]>;
|
|
5935
6807
|
}>>;
|
|
5936
6808
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
5937
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
6809
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5938
6810
|
readonly type: Schema.Literal<"shopify_order">;
|
|
5939
6811
|
readonly shop: Schema.String;
|
|
5940
|
-
}
|
|
6812
|
+
}>, Schema.Struct<{
|
|
6813
|
+
readonly type: Schema.Literal<"event_property">;
|
|
6814
|
+
readonly property: Schema.String;
|
|
6815
|
+
}>]>>;
|
|
5941
6816
|
}>;
|
|
5942
6817
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
5943
6818
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
6819
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
5944
6820
|
readonly name: Schema.String;
|
|
5945
6821
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
5946
6822
|
readonly revision: Schema.String;
|
|
@@ -5965,6 +6841,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5965
6841
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
5966
6842
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
5967
6843
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
6844
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
5968
6845
|
}>;
|
|
5969
6846
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5970
6847
|
readonly nodeId: Schema.String;
|
|
@@ -5985,6 +6862,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5985
6862
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
5986
6863
|
}>>;
|
|
5987
6864
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6865
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
5988
6866
|
}>;
|
|
5989
6867
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5990
6868
|
readonly nodeId: Schema.String;
|
|
@@ -6001,6 +6879,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6001
6879
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
6002
6880
|
readonly config: Schema.Struct<{
|
|
6003
6881
|
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">]>]>;
|
|
6882
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
6883
|
+
readonly eventProperty: Schema.String;
|
|
6884
|
+
readonly entryProperty: Schema.String;
|
|
6885
|
+
}>>;
|
|
6004
6886
|
readonly timeoutSeconds: Schema.Finite;
|
|
6005
6887
|
}>;
|
|
6006
6888
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -6055,6 +6937,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6055
6937
|
readonly type: Schema.Literal<"event">;
|
|
6056
6938
|
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">]>]>;
|
|
6057
6939
|
readonly occurred: Schema.Boolean;
|
|
6940
|
+
}>, Schema.Struct<{
|
|
6941
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
6942
|
+
readonly property: Schema.String;
|
|
6943
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
6944
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
6945
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
6946
|
+
}>, Schema.Struct<{
|
|
6947
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
6948
|
+
readonly value: Schema.Finite;
|
|
6949
|
+
}>, Schema.Struct<{
|
|
6950
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
6951
|
+
readonly value: Schema.String;
|
|
6952
|
+
}>, Schema.Struct<{
|
|
6953
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
6954
|
+
}>]>;
|
|
6058
6955
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6059
6956
|
readonly type: Schema.Literal<"tag">;
|
|
6060
6957
|
readonly tag: Schema.String;
|
|
@@ -6093,6 +6990,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6093
6990
|
readonly type: Schema.Literal<"event">;
|
|
6094
6991
|
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">]>]>;
|
|
6095
6992
|
readonly occurred: Schema.Boolean;
|
|
6993
|
+
}>, Schema.Struct<{
|
|
6994
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
6995
|
+
readonly property: Schema.String;
|
|
6996
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
6997
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
6998
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
6999
|
+
}>, Schema.Struct<{
|
|
7000
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
7001
|
+
readonly value: Schema.Finite;
|
|
7002
|
+
}>, Schema.Struct<{
|
|
7003
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
7004
|
+
readonly value: Schema.String;
|
|
7005
|
+
}>, Schema.Struct<{
|
|
7006
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
7007
|
+
}>]>;
|
|
6096
7008
|
}>]>]>;
|
|
6097
7009
|
}>>;
|
|
6098
7010
|
}>>;
|
|
@@ -6109,6 +7021,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6109
7021
|
readonly type: Schema.Literal<"webhook">;
|
|
6110
7022
|
readonly config: Schema.Struct<{
|
|
6111
7023
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
7024
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6112
7025
|
}>;
|
|
6113
7026
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6114
7027
|
readonly nodeId: Schema.String;
|
|
@@ -6122,10 +7035,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6122
7035
|
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">]>]>;
|
|
6123
7036
|
}>>;
|
|
6124
7037
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
6125
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
7038
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6126
7039
|
readonly type: Schema.Literal<"shopify_order">;
|
|
6127
7040
|
readonly shop: Schema.String;
|
|
6128
|
-
}
|
|
7041
|
+
}>, Schema.Struct<{
|
|
7042
|
+
readonly type: Schema.Literal<"event_property">;
|
|
7043
|
+
readonly property: Schema.String;
|
|
7044
|
+
}>]>>;
|
|
6129
7045
|
}>;
|
|
6130
7046
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
6131
7047
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -6291,6 +7207,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6291
7207
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
6292
7208
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
6293
7209
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
7210
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
6294
7211
|
readonly name: Schema.String;
|
|
6295
7212
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
6296
7213
|
readonly revision: Schema.String;
|
|
@@ -6315,6 +7232,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6315
7232
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
6316
7233
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
6317
7234
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
7235
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6318
7236
|
}>;
|
|
6319
7237
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6320
7238
|
readonly nodeId: Schema.String;
|
|
@@ -6335,6 +7253,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6335
7253
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
6336
7254
|
}>>;
|
|
6337
7255
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7256
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
6338
7257
|
}>;
|
|
6339
7258
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6340
7259
|
readonly nodeId: Schema.String;
|
|
@@ -6351,6 +7270,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6351
7270
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
6352
7271
|
readonly config: Schema.Struct<{
|
|
6353
7272
|
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">]>]>;
|
|
7273
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
7274
|
+
readonly eventProperty: Schema.String;
|
|
7275
|
+
readonly entryProperty: Schema.String;
|
|
7276
|
+
}>>;
|
|
6354
7277
|
readonly timeoutSeconds: Schema.Finite;
|
|
6355
7278
|
}>;
|
|
6356
7279
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -6405,6 +7328,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6405
7328
|
readonly type: Schema.Literal<"event">;
|
|
6406
7329
|
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">]>]>;
|
|
6407
7330
|
readonly occurred: Schema.Boolean;
|
|
7331
|
+
}>, Schema.Struct<{
|
|
7332
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
7333
|
+
readonly property: Schema.String;
|
|
7334
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
7335
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
7336
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
7337
|
+
}>, Schema.Struct<{
|
|
7338
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
7339
|
+
readonly value: Schema.Finite;
|
|
7340
|
+
}>, Schema.Struct<{
|
|
7341
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
7342
|
+
readonly value: Schema.String;
|
|
7343
|
+
}>, Schema.Struct<{
|
|
7344
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
7345
|
+
}>]>;
|
|
6408
7346
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6409
7347
|
readonly type: Schema.Literal<"tag">;
|
|
6410
7348
|
readonly tag: Schema.String;
|
|
@@ -6443,6 +7381,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6443
7381
|
readonly type: Schema.Literal<"event">;
|
|
6444
7382
|
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">]>]>;
|
|
6445
7383
|
readonly occurred: Schema.Boolean;
|
|
7384
|
+
}>, Schema.Struct<{
|
|
7385
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
7386
|
+
readonly property: Schema.String;
|
|
7387
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
7388
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
7389
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
7390
|
+
}>, Schema.Struct<{
|
|
7391
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
7392
|
+
readonly value: Schema.Finite;
|
|
7393
|
+
}>, Schema.Struct<{
|
|
7394
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
7395
|
+
readonly value: Schema.String;
|
|
7396
|
+
}>, Schema.Struct<{
|
|
7397
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
7398
|
+
}>]>;
|
|
6446
7399
|
}>]>]>;
|
|
6447
7400
|
}>>;
|
|
6448
7401
|
}>>;
|
|
@@ -6459,6 +7412,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6459
7412
|
readonly type: Schema.Literal<"webhook">;
|
|
6460
7413
|
readonly config: Schema.Struct<{
|
|
6461
7414
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
7415
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6462
7416
|
}>;
|
|
6463
7417
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6464
7418
|
readonly nodeId: Schema.String;
|
|
@@ -6472,10 +7426,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6472
7426
|
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">]>]>;
|
|
6473
7427
|
}>>;
|
|
6474
7428
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
6475
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
7429
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6476
7430
|
readonly type: Schema.Literal<"shopify_order">;
|
|
6477
7431
|
readonly shop: Schema.String;
|
|
6478
|
-
}
|
|
7432
|
+
}>, Schema.Struct<{
|
|
7433
|
+
readonly type: Schema.Literal<"event_property">;
|
|
7434
|
+
readonly property: Schema.String;
|
|
7435
|
+
}>]>>;
|
|
6479
7436
|
}>;
|
|
6480
7437
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
6481
7438
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -6761,6 +7718,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6761
7718
|
readonly name: Schema.String;
|
|
6762
7719
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
6763
7720
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
7721
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
6764
7722
|
readonly name: Schema.String;
|
|
6765
7723
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
6766
7724
|
readonly revision: Schema.String;
|
|
@@ -6785,6 +7743,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6785
7743
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
6786
7744
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
6787
7745
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
7746
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6788
7747
|
}>;
|
|
6789
7748
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6790
7749
|
readonly nodeId: Schema.String;
|
|
@@ -6805,6 +7764,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6805
7764
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
6806
7765
|
}>>;
|
|
6807
7766
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7767
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
6808
7768
|
}>;
|
|
6809
7769
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6810
7770
|
readonly nodeId: Schema.String;
|
|
@@ -6821,6 +7781,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6821
7781
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
6822
7782
|
readonly config: Schema.Struct<{
|
|
6823
7783
|
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">]>]>;
|
|
7784
|
+
readonly correlation: Schema.optionalKey<Schema.Struct<{
|
|
7785
|
+
readonly eventProperty: Schema.String;
|
|
7786
|
+
readonly entryProperty: Schema.String;
|
|
7787
|
+
}>>;
|
|
6824
7788
|
readonly timeoutSeconds: Schema.Finite;
|
|
6825
7789
|
}>;
|
|
6826
7790
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -6875,6 +7839,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6875
7839
|
readonly type: Schema.Literal<"event">;
|
|
6876
7840
|
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">]>]>;
|
|
6877
7841
|
readonly occurred: Schema.Boolean;
|
|
7842
|
+
}>, Schema.Struct<{
|
|
7843
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
7844
|
+
readonly property: Schema.String;
|
|
7845
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
7846
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
7847
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
7848
|
+
}>, Schema.Struct<{
|
|
7849
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
7850
|
+
readonly value: Schema.Finite;
|
|
7851
|
+
}>, Schema.Struct<{
|
|
7852
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
7853
|
+
readonly value: Schema.String;
|
|
7854
|
+
}>, Schema.Struct<{
|
|
7855
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
7856
|
+
}>]>;
|
|
6878
7857
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6879
7858
|
readonly type: Schema.Literal<"tag">;
|
|
6880
7859
|
readonly tag: Schema.String;
|
|
@@ -6913,6 +7892,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6913
7892
|
readonly type: Schema.Literal<"event">;
|
|
6914
7893
|
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">]>]>;
|
|
6915
7894
|
readonly occurred: Schema.Boolean;
|
|
7895
|
+
}>, Schema.Struct<{
|
|
7896
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
7897
|
+
readonly property: Schema.String;
|
|
7898
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
7899
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
7900
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
7901
|
+
}>, Schema.Struct<{
|
|
7902
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
7903
|
+
readonly value: Schema.Finite;
|
|
7904
|
+
}>, Schema.Struct<{
|
|
7905
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
7906
|
+
readonly value: Schema.String;
|
|
7907
|
+
}>, Schema.Struct<{
|
|
7908
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
7909
|
+
}>]>;
|
|
6916
7910
|
}>]>]>;
|
|
6917
7911
|
}>>;
|
|
6918
7912
|
}>>;
|
|
@@ -6929,6 +7923,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6929
7923
|
readonly type: Schema.Literal<"webhook">;
|
|
6930
7924
|
readonly config: Schema.Struct<{
|
|
6931
7925
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
7926
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6932
7927
|
}>;
|
|
6933
7928
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6934
7929
|
readonly nodeId: Schema.String;
|
|
@@ -6942,10 +7937,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6942
7937
|
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">]>]>;
|
|
6943
7938
|
}>>;
|
|
6944
7939
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
6945
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
7940
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6946
7941
|
readonly type: Schema.Literal<"shopify_order">;
|
|
6947
7942
|
readonly shop: Schema.String;
|
|
6948
|
-
}
|
|
7943
|
+
}>, Schema.Struct<{
|
|
7944
|
+
readonly type: Schema.Literal<"event_property">;
|
|
7945
|
+
readonly property: Schema.String;
|
|
7946
|
+
}>]>>;
|
|
6949
7947
|
}>;
|
|
6950
7948
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
6951
7949
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|