samva 0.51.0 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +5 -2
- package/README.md +1 -0
- package/dist/client/sdk.gen.d.ts +82 -36
- package/dist/client/sdk.gen.js +192 -57
- package/dist/client/types.gen.d.ts +607 -291
- package/dist/effect/campaigns.d.ts +56 -56
- package/dist/effect/descriptors/integrations-catalog.d.ts +1 -1
- package/dist/effect/descriptors/integrations-catalog.js +1 -1
- package/dist/effect/descriptors/integrations.d.ts +1 -1
- package/dist/effect/descriptors/integrations.js +1 -1
- package/dist/effect/descriptors/logs.d.ts +21 -0
- package/dist/effect/descriptors/logs.js +23 -0
- package/dist/effect/descriptors/whats-app.d.ts +1 -1
- package/dist/effect/descriptors/whats-app.js +1 -1
- package/dist/effect/events.d.ts +16 -0
- package/dist/effect/generated/agents.js +4 -4
- package/dist/effect/generated/campaigns.d.ts +18 -6
- package/dist/effect/generated/campaigns.js +2 -6
- package/dist/effect/generated/email.js +3 -3
- package/dist/effect/generated/events.d.ts +48 -0
- package/dist/effect/generated/events.js +1 -1
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/integrations-catalog.d.ts +93 -49
- package/dist/effect/generated/integrations-catalog.js +17 -28
- package/dist/effect/generated/integrations.d.ts +20 -40
- package/dist/effect/generated/integrations.js +9 -13
- package/dist/effect/generated/journeys.d.ts +1113 -67
- package/dist/effect/generated/journeys.js +14 -8
- package/dist/effect/generated/logs.d.ts +2323 -0
- package/dist/effect/generated/logs.js +312 -0
- package/dist/effect/generated/mailboxes.d.ts +38 -24
- package/dist/effect/generated/mailboxes.js +22 -21
- package/dist/effect/generated/messages.d.ts +11 -882
- package/dist/effect/generated/messages.js +4 -243
- package/dist/effect/generated/newsletter-domains.d.ts +61 -13
- package/dist/effect/generated/newsletter-domains.js +5 -5
- package/dist/effect/generated/newsletter-issues.d.ts +166 -34
- package/dist/effect/generated/newsletter-issues.js +12 -12
- package/dist/effect/generated/newsletters.d.ts +76 -16
- package/dist/effect/generated/newsletters.js +6 -6
- package/dist/effect/generated/organizations.js +1 -1
- package/dist/effect/generated/scheduled-messages.d.ts +36 -0
- package/dist/effect/generated/scheduled-messages.js +1 -1
- package/dist/effect/generated/shared.d.ts +1706 -442
- package/dist/effect/generated/shared.js +370 -93
- package/dist/effect/generated/subscriptions.d.ts +4 -4
- package/dist/effect/generated/subscriptions.js +2 -6
- package/dist/effect/generated/template-registrations.d.ts +46 -10
- package/dist/effect/generated/template-registrations.js +4 -4
- package/dist/effect/generated/templates.js +2 -2
- package/dist/effect/generated/whats-app-flows.d.ts +173 -35
- package/dist/effect/generated/whats-app-flows.js +19 -17
- package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
- package/dist/effect/generated/whats-app-setup-links.js +5 -5
- package/dist/effect/generated/whats-app.d.ts +187 -65
- package/dist/effect/generated/whats-app.js +18 -24
- package/dist/effect/generated-metadata.d.ts +15 -3
- package/dist/effect/generated-metadata.js +375 -349
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +2 -1
- package/dist/effect/integrations-catalog.d.ts +92 -4
- package/dist/effect/integrations.d.ts +40 -8
- package/dist/effect/internal/client.js +25 -3
- package/dist/effect/internal/log-events.d.ts +19 -0
- package/dist/effect/internal/log-events.js +53 -0
- package/dist/effect/internal/mailbox-events.d.ts +6 -2
- package/dist/effect/internal/mailbox-events.js +4 -3
- package/dist/effect/journeys.d.ts +212 -146
- package/dist/effect/logs.d.ts +149 -0
- package/dist/effect/logs.js +18 -0
- package/dist/effect/mailboxes.d.ts +158 -150
- package/dist/effect/mailboxes.js +1 -1
- package/dist/effect/newsletter-domains.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +66 -0
- package/dist/effect/whatsapp-flows.d.ts +30 -0
- package/dist/effect/whatsapp-setup-links.d.ts +2 -2
- package/dist/effect/whatsapp.d.ts +73 -3
- package/dist/mailbox-events.d.ts +50 -3
- package/dist/mailbox-events.js +38 -19
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +3 -1
- package/dist/promises/client.js +3 -1
- package/dist/promises/errors.gen.d.ts +2 -0
- package/dist/promises/errors.gen.js +137 -34
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-id.d.ts +3 -0
- package/dist/request-id.js +7 -0
- package/dist/service-map.d.ts +14 -3
- package/package.json +6 -2
|
@@ -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,
|
|
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]>;
|
|
@@ -1053,8 +1229,8 @@ export type JourneysCreate401 = UnauthorizedError;
|
|
|
1053
1229
|
export declare const JourneysCreate401: typeof UnauthorizedError;
|
|
1054
1230
|
export type JourneysCreate402 = PaymentRequiredError;
|
|
1055
1231
|
export declare const JourneysCreate402: typeof PaymentRequiredError;
|
|
1056
|
-
export type JourneysCreate403 =
|
|
1057
|
-
export declare const JourneysCreate403:
|
|
1232
|
+
export type JourneysCreate403 = ForbiddenError;
|
|
1233
|
+
export declare const JourneysCreate403: typeof ForbiddenError;
|
|
1058
1234
|
export type JourneysCreate404 = ResourceNotFoundError;
|
|
1059
1235
|
export declare const JourneysCreate404: typeof ResourceNotFoundError;
|
|
1060
1236
|
export type JourneysCreate409 = ConflictError;
|
|
@@ -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]>;
|
|
@@ -2140,8 +2520,8 @@ export type JourneysReplaceDraft401 = UnauthorizedError;
|
|
|
2140
2520
|
export declare const JourneysReplaceDraft401: typeof UnauthorizedError;
|
|
2141
2521
|
export type JourneysReplaceDraft402 = PaymentRequiredError;
|
|
2142
2522
|
export declare const JourneysReplaceDraft402: typeof PaymentRequiredError;
|
|
2143
|
-
export type JourneysReplaceDraft403 =
|
|
2144
|
-
export declare const JourneysReplaceDraft403:
|
|
2523
|
+
export type JourneysReplaceDraft403 = ForbiddenError;
|
|
2524
|
+
export declare const JourneysReplaceDraft403: typeof ForbiddenError;
|
|
2145
2525
|
export type JourneysReplaceDraft404 = ResourceNotFoundError;
|
|
2146
2526
|
export declare const JourneysReplaceDraft404: typeof ResourceNotFoundError;
|
|
2147
2527
|
export type JourneysReplaceDraft409 = ConflictError;
|
|
@@ -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]>;
|
|
@@ -2582,8 +3044,8 @@ export type JourneysPublish401 = UnauthorizedError;
|
|
|
2582
3044
|
export declare const JourneysPublish401: typeof UnauthorizedError;
|
|
2583
3045
|
export type JourneysPublish402 = PaymentRequiredError;
|
|
2584
3046
|
export declare const JourneysPublish402: typeof PaymentRequiredError;
|
|
2585
|
-
export type JourneysPublish403 =
|
|
2586
|
-
export declare const JourneysPublish403:
|
|
3047
|
+
export type JourneysPublish403 = ForbiddenError;
|
|
3048
|
+
export declare const JourneysPublish403: typeof ForbiddenError;
|
|
2587
3049
|
export type JourneysPublish404 = ResourceNotFoundError;
|
|
2588
3050
|
export declare const JourneysPublish404: typeof ResourceNotFoundError;
|
|
2589
3051
|
export type JourneysPublish409 = ConflictError;
|
|
@@ -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]>;
|
|
@@ -2802,8 +3305,8 @@ export type JourneysResume401 = UnauthorizedError;
|
|
|
2802
3305
|
export declare const JourneysResume401: typeof UnauthorizedError;
|
|
2803
3306
|
export type JourneysResume402 = PaymentRequiredError;
|
|
2804
3307
|
export declare const JourneysResume402: typeof PaymentRequiredError;
|
|
2805
|
-
export type JourneysResume403 =
|
|
2806
|
-
export declare const JourneysResume403:
|
|
3308
|
+
export type JourneysResume403 = ForbiddenError;
|
|
3309
|
+
export declare const JourneysResume403: typeof ForbiddenError;
|
|
2807
3310
|
export type JourneysResume404 = ResourceNotFoundError;
|
|
2808
3311
|
export declare const JourneysResume404: typeof ResourceNotFoundError;
|
|
2809
3312
|
export type JourneysResume409 = ConflictError;
|
|
@@ -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,16 +4523,19 @@ 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]>;
|
|
3868
4536
|
readonly createdAt: Schema.String;
|
|
3869
4537
|
readonly updatedAt: Schema.String;
|
|
3870
|
-
}>>, Schema.toCodecJson<Schema.
|
|
4538
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
3871
4539
|
readonly _tag: "BillingProviderError";
|
|
3872
4540
|
readonly message: string;
|
|
3873
4541
|
}, readonly [Schema.Struct<{
|
|
@@ -3899,6 +4567,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3899
4567
|
readonly message: Schema.String;
|
|
3900
4568
|
readonly resource: Schema.String;
|
|
3901
4569
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4570
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
4571
|
+
readonly _tag: "ForbiddenError";
|
|
4572
|
+
readonly message: string;
|
|
4573
|
+
}, readonly [Schema.Struct<{
|
|
4574
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
4575
|
+
readonly message: Schema.String;
|
|
4576
|
+
}>], {
|
|
4577
|
+
readonly _tag: "ForbiddenError";
|
|
4578
|
+
readonly message: string;
|
|
4579
|
+
}>, Schema.Struct<{
|
|
4580
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
4581
|
+
readonly message: Schema.String;
|
|
3902
4582
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
3903
4583
|
readonly _tag: "GatewayTimeoutError";
|
|
3904
4584
|
readonly message: string;
|
|
@@ -4015,6 +4695,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4015
4695
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
4016
4696
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4017
4697
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
4698
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
4018
4699
|
readonly name: Schema.String;
|
|
4019
4700
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
4020
4701
|
readonly revision: Schema.String;
|
|
@@ -4039,6 +4720,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4039
4720
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
4040
4721
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
4041
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>>;
|
|
4042
4724
|
}>;
|
|
4043
4725
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4044
4726
|
readonly nodeId: Schema.String;
|
|
@@ -4059,6 +4741,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4059
4741
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
4060
4742
|
}>>;
|
|
4061
4743
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
4744
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
4062
4745
|
}>;
|
|
4063
4746
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4064
4747
|
readonly nodeId: Schema.String;
|
|
@@ -4075,6 +4758,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4075
4758
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
4076
4759
|
readonly config: Schema.Struct<{
|
|
4077
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
|
+
}>>;
|
|
4078
4765
|
readonly timeoutSeconds: Schema.Finite;
|
|
4079
4766
|
}>;
|
|
4080
4767
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -4129,6 +4816,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4129
4816
|
readonly type: Schema.Literal<"event">;
|
|
4130
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">]>]>;
|
|
4131
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
|
+
}>]>;
|
|
4132
4834
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4133
4835
|
readonly type: Schema.Literal<"tag">;
|
|
4134
4836
|
readonly tag: Schema.String;
|
|
@@ -4167,6 +4869,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4167
4869
|
readonly type: Schema.Literal<"event">;
|
|
4168
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">]>]>;
|
|
4169
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
|
+
}>]>;
|
|
4170
4887
|
}>]>]>;
|
|
4171
4888
|
}>>;
|
|
4172
4889
|
}>>;
|
|
@@ -4183,6 +4900,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4183
4900
|
readonly type: Schema.Literal<"webhook">;
|
|
4184
4901
|
readonly config: Schema.Struct<{
|
|
4185
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>>;
|
|
4186
4904
|
}>;
|
|
4187
4905
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4188
4906
|
readonly nodeId: Schema.String;
|
|
@@ -4196,10 +4914,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4196
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">]>]>;
|
|
4197
4915
|
}>>;
|
|
4198
4916
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
4199
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
4917
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4200
4918
|
readonly type: Schema.Literal<"shopify_order">;
|
|
4201
4919
|
readonly shop: Schema.String;
|
|
4202
|
-
}
|
|
4920
|
+
}>, Schema.Struct<{
|
|
4921
|
+
readonly type: Schema.Literal<"event_property">;
|
|
4922
|
+
readonly property: Schema.String;
|
|
4923
|
+
}>]>>;
|
|
4203
4924
|
}>;
|
|
4204
4925
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
4205
4926
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -4310,6 +5031,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4310
5031
|
readonly runId: Schema.brand<Schema.String, "JourneyRunId">;
|
|
4311
5032
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4312
5033
|
readonly id: Schema.brand<Schema.String, "JourneyRunId">;
|
|
5034
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
4313
5035
|
readonly journeyId: Schema.brand<Schema.String, "JourneyId">;
|
|
4314
5036
|
readonly version: Schema.Finite;
|
|
4315
5037
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
@@ -4463,6 +5185,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4463
5185
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
4464
5186
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
4465
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>>;
|
|
4466
5189
|
}>;
|
|
4467
5190
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4468
5191
|
readonly nodeId: Schema.String;
|
|
@@ -4483,6 +5206,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4483
5206
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
4484
5207
|
}>>;
|
|
4485
5208
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
5209
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
4486
5210
|
}>;
|
|
4487
5211
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4488
5212
|
readonly nodeId: Schema.String;
|
|
@@ -4499,6 +5223,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4499
5223
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
4500
5224
|
readonly config: Schema.Struct<{
|
|
4501
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
|
+
}>>;
|
|
4502
5230
|
readonly timeoutSeconds: Schema.Finite;
|
|
4503
5231
|
}>;
|
|
4504
5232
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -4535,8 +5263,27 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4535
5263
|
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
4536
5264
|
}>]>;
|
|
4537
5265
|
}>, Schema.Struct<{
|
|
4538
|
-
readonly type: Schema.Literal<"custom_field">;
|
|
4539
|
-
readonly key: Schema.String;
|
|
5266
|
+
readonly type: Schema.Literal<"custom_field">;
|
|
5267
|
+
readonly key: Schema.String;
|
|
5268
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
5269
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
5270
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
5271
|
+
}>, Schema.Struct<{
|
|
5272
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
5273
|
+
readonly value: Schema.Finite;
|
|
5274
|
+
}>, Schema.Struct<{
|
|
5275
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
5276
|
+
readonly value: Schema.String;
|
|
5277
|
+
}>, Schema.Struct<{
|
|
5278
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
5279
|
+
}>]>;
|
|
5280
|
+
}>, Schema.Struct<{
|
|
5281
|
+
readonly type: Schema.Literal<"event">;
|
|
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">]>]>;
|
|
5283
|
+
readonly occurred: Schema.Boolean;
|
|
5284
|
+
}>, Schema.Struct<{
|
|
5285
|
+
readonly type: Schema.Literal<"entry_event_property">;
|
|
5286
|
+
readonly property: Schema.String;
|
|
4540
5287
|
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
4541
5288
|
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
4542
5289
|
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
@@ -4549,10 +5296,6 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4549
5296
|
}>, Schema.Struct<{
|
|
4550
5297
|
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
4551
5298
|
}>]>;
|
|
4552
|
-
}>, Schema.Struct<{
|
|
4553
|
-
readonly type: Schema.Literal<"event">;
|
|
4554
|
-
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">]>]>;
|
|
4555
|
-
readonly occurred: Schema.Boolean;
|
|
4556
5299
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4557
5300
|
readonly type: Schema.Literal<"tag">;
|
|
4558
5301
|
readonly tag: Schema.String;
|
|
@@ -4591,6 +5334,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4591
5334
|
readonly type: Schema.Literal<"event">;
|
|
4592
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">]>]>;
|
|
4593
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
|
+
}>]>;
|
|
4594
5352
|
}>]>]>;
|
|
4595
5353
|
}>>;
|
|
4596
5354
|
}>>;
|
|
@@ -4607,6 +5365,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4607
5365
|
readonly type: Schema.Literal<"webhook">;
|
|
4608
5366
|
readonly config: Schema.Struct<{
|
|
4609
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>>;
|
|
4610
5369
|
}>;
|
|
4611
5370
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4612
5371
|
readonly nodeId: Schema.String;
|
|
@@ -4620,10 +5379,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4620
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">]>]>;
|
|
4621
5380
|
}>>;
|
|
4622
5381
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
4623
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
5382
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4624
5383
|
readonly type: Schema.Literal<"shopify_order">;
|
|
4625
5384
|
readonly shop: Schema.String;
|
|
4626
|
-
}
|
|
5385
|
+
}>, Schema.Struct<{
|
|
5386
|
+
readonly type: Schema.Literal<"event_property">;
|
|
5387
|
+
readonly property: Schema.String;
|
|
5388
|
+
}>]>>;
|
|
4627
5389
|
}>;
|
|
4628
5390
|
readonly publishedAt: Schema.String;
|
|
4629
5391
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
@@ -4727,12 +5489,14 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4727
5489
|
readonly message: Schema.String;
|
|
4728
5490
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
4729
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">>;
|
|
4730
5493
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>>;
|
|
4731
5494
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
4732
5495
|
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
4733
5496
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4734
5497
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
4735
5498
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
5499
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
4736
5500
|
readonly name: Schema.String;
|
|
4737
5501
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
4738
5502
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
@@ -4831,6 +5595,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4831
5595
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4832
5596
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
4833
5597
|
readonly id: Schema.brand<Schema.String, "JourneyRunId">;
|
|
5598
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
4834
5599
|
readonly journeyId: Schema.brand<Schema.String, "JourneyId">;
|
|
4835
5600
|
readonly version: Schema.Finite;
|
|
4836
5601
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
@@ -4953,6 +5718,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4953
5718
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
4954
5719
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4955
5720
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
5721
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
4956
5722
|
readonly name: Schema.String;
|
|
4957
5723
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
4958
5724
|
readonly revision: Schema.String;
|
|
@@ -4977,6 +5743,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4977
5743
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
4978
5744
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
4979
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>>;
|
|
4980
5747
|
}>;
|
|
4981
5748
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4982
5749
|
readonly nodeId: Schema.String;
|
|
@@ -4997,6 +5764,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4997
5764
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
4998
5765
|
}>>;
|
|
4999
5766
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
5767
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
5000
5768
|
}>;
|
|
5001
5769
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5002
5770
|
readonly nodeId: Schema.String;
|
|
@@ -5013,6 +5781,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5013
5781
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
5014
5782
|
readonly config: Schema.Struct<{
|
|
5015
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
|
+
}>>;
|
|
5016
5788
|
readonly timeoutSeconds: Schema.Finite;
|
|
5017
5789
|
}>;
|
|
5018
5790
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -5067,6 +5839,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5067
5839
|
readonly type: Schema.Literal<"event">;
|
|
5068
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">]>]>;
|
|
5069
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
|
+
}>]>;
|
|
5070
5857
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5071
5858
|
readonly type: Schema.Literal<"tag">;
|
|
5072
5859
|
readonly tag: Schema.String;
|
|
@@ -5105,6 +5892,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5105
5892
|
readonly type: Schema.Literal<"event">;
|
|
5106
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">]>]>;
|
|
5107
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
|
+
}>]>;
|
|
5108
5910
|
}>]>]>;
|
|
5109
5911
|
}>>;
|
|
5110
5912
|
}>>;
|
|
@@ -5121,6 +5923,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5121
5923
|
readonly type: Schema.Literal<"webhook">;
|
|
5122
5924
|
readonly config: Schema.Struct<{
|
|
5123
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>>;
|
|
5124
5927
|
}>;
|
|
5125
5928
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5126
5929
|
readonly nodeId: Schema.String;
|
|
@@ -5134,10 +5937,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5134
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">]>]>;
|
|
5135
5938
|
}>>;
|
|
5136
5939
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
5137
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
5940
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5138
5941
|
readonly type: Schema.Literal<"shopify_order">;
|
|
5139
5942
|
readonly shop: Schema.String;
|
|
5140
|
-
}
|
|
5943
|
+
}>, Schema.Struct<{
|
|
5944
|
+
readonly type: Schema.Literal<"event_property">;
|
|
5945
|
+
readonly property: Schema.String;
|
|
5946
|
+
}>]>>;
|
|
5141
5947
|
}>;
|
|
5142
5948
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
5143
5949
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -5269,6 +6075,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5269
6075
|
readonly revision: Schema.String;
|
|
5270
6076
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
5271
6077
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
6078
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
5272
6079
|
readonly name: Schema.String;
|
|
5273
6080
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
5274
6081
|
readonly revision: Schema.String;
|
|
@@ -5293,6 +6100,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5293
6100
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
5294
6101
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
5295
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>>;
|
|
5296
6104
|
}>;
|
|
5297
6105
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5298
6106
|
readonly nodeId: Schema.String;
|
|
@@ -5313,6 +6121,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5313
6121
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
5314
6122
|
}>>;
|
|
5315
6123
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6124
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
5316
6125
|
}>;
|
|
5317
6126
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5318
6127
|
readonly nodeId: Schema.String;
|
|
@@ -5329,6 +6138,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5329
6138
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
5330
6139
|
readonly config: Schema.Struct<{
|
|
5331
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
|
+
}>>;
|
|
5332
6145
|
readonly timeoutSeconds: Schema.Finite;
|
|
5333
6146
|
}>;
|
|
5334
6147
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -5383,6 +6196,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5383
6196
|
readonly type: Schema.Literal<"event">;
|
|
5384
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">]>]>;
|
|
5385
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
|
+
}>]>;
|
|
5386
6214
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5387
6215
|
readonly type: Schema.Literal<"tag">;
|
|
5388
6216
|
readonly tag: Schema.String;
|
|
@@ -5421,6 +6249,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5421
6249
|
readonly type: Schema.Literal<"event">;
|
|
5422
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">]>]>;
|
|
5423
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
|
+
}>]>;
|
|
5424
6267
|
}>]>]>;
|
|
5425
6268
|
}>>;
|
|
5426
6269
|
}>>;
|
|
@@ -5437,6 +6280,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5437
6280
|
readonly type: Schema.Literal<"webhook">;
|
|
5438
6281
|
readonly config: Schema.Struct<{
|
|
5439
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>>;
|
|
5440
6284
|
}>;
|
|
5441
6285
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5442
6286
|
readonly nodeId: Schema.String;
|
|
@@ -5450,16 +6294,19 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5450
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">]>]>;
|
|
5451
6295
|
}>>;
|
|
5452
6296
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
5453
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
6297
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5454
6298
|
readonly type: Schema.Literal<"shopify_order">;
|
|
5455
6299
|
readonly shop: Schema.String;
|
|
5456
|
-
}
|
|
6300
|
+
}>, Schema.Struct<{
|
|
6301
|
+
readonly type: Schema.Literal<"event_property">;
|
|
6302
|
+
readonly property: Schema.String;
|
|
6303
|
+
}>]>>;
|
|
5457
6304
|
}>;
|
|
5458
6305
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
5459
6306
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5460
6307
|
readonly createdAt: Schema.String;
|
|
5461
6308
|
readonly updatedAt: Schema.String;
|
|
5462
|
-
}>>, Schema.toCodecJson<Schema.
|
|
6309
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
5463
6310
|
readonly _tag: "BillingProviderError";
|
|
5464
6311
|
readonly message: string;
|
|
5465
6312
|
}, readonly [Schema.Struct<{
|
|
@@ -5491,6 +6338,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5491
6338
|
readonly message: Schema.String;
|
|
5492
6339
|
readonly resource: Schema.String;
|
|
5493
6340
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6341
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
6342
|
+
readonly _tag: "ForbiddenError";
|
|
6343
|
+
readonly message: string;
|
|
6344
|
+
}, readonly [Schema.Struct<{
|
|
6345
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
6346
|
+
readonly message: Schema.String;
|
|
6347
|
+
}>], {
|
|
6348
|
+
readonly _tag: "ForbiddenError";
|
|
6349
|
+
readonly message: string;
|
|
6350
|
+
}>, Schema.Struct<{
|
|
6351
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
6352
|
+
readonly message: Schema.String;
|
|
5494
6353
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
5495
6354
|
readonly _tag: "GatewayTimeoutError";
|
|
5496
6355
|
readonly message: string;
|
|
@@ -5753,6 +6612,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5753
6612
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
5754
6613
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
5755
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>>;
|
|
5756
6616
|
}>;
|
|
5757
6617
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5758
6618
|
readonly nodeId: Schema.String;
|
|
@@ -5773,6 +6633,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5773
6633
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
5774
6634
|
}>>;
|
|
5775
6635
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6636
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
5776
6637
|
}>;
|
|
5777
6638
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5778
6639
|
readonly nodeId: Schema.String;
|
|
@@ -5789,6 +6650,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5789
6650
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
5790
6651
|
readonly config: Schema.Struct<{
|
|
5791
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
|
+
}>>;
|
|
5792
6657
|
readonly timeoutSeconds: Schema.Finite;
|
|
5793
6658
|
}>;
|
|
5794
6659
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -5843,6 +6708,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5843
6708
|
readonly type: Schema.Literal<"event">;
|
|
5844
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">]>]>;
|
|
5845
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
|
+
}>]>;
|
|
5846
6726
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5847
6727
|
readonly type: Schema.Literal<"tag">;
|
|
5848
6728
|
readonly tag: Schema.String;
|
|
@@ -5881,6 +6761,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5881
6761
|
readonly type: Schema.Literal<"event">;
|
|
5882
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">]>]>;
|
|
5883
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
|
+
}>]>;
|
|
5884
6779
|
}>]>]>;
|
|
5885
6780
|
}>>;
|
|
5886
6781
|
}>>;
|
|
@@ -5897,6 +6792,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5897
6792
|
readonly type: Schema.Literal<"webhook">;
|
|
5898
6793
|
readonly config: Schema.Struct<{
|
|
5899
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>>;
|
|
5900
6796
|
}>;
|
|
5901
6797
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5902
6798
|
readonly nodeId: Schema.String;
|
|
@@ -5910,13 +6806,17 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5910
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">]>]>;
|
|
5911
6807
|
}>>;
|
|
5912
6808
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
5913
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
6809
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5914
6810
|
readonly type: Schema.Literal<"shopify_order">;
|
|
5915
6811
|
readonly shop: Schema.String;
|
|
5916
|
-
}
|
|
6812
|
+
}>, Schema.Struct<{
|
|
6813
|
+
readonly type: Schema.Literal<"event_property">;
|
|
6814
|
+
readonly property: Schema.String;
|
|
6815
|
+
}>]>>;
|
|
5917
6816
|
}>;
|
|
5918
6817
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
5919
6818
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
6819
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
5920
6820
|
readonly name: Schema.String;
|
|
5921
6821
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
5922
6822
|
readonly revision: Schema.String;
|
|
@@ -5941,6 +6841,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5941
6841
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
5942
6842
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
5943
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>>;
|
|
5944
6845
|
}>;
|
|
5945
6846
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5946
6847
|
readonly nodeId: Schema.String;
|
|
@@ -5961,6 +6862,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5961
6862
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
5962
6863
|
}>>;
|
|
5963
6864
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6865
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
5964
6866
|
}>;
|
|
5965
6867
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5966
6868
|
readonly nodeId: Schema.String;
|
|
@@ -5977,6 +6879,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5977
6879
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
5978
6880
|
readonly config: Schema.Struct<{
|
|
5979
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
|
+
}>>;
|
|
5980
6886
|
readonly timeoutSeconds: Schema.Finite;
|
|
5981
6887
|
}>;
|
|
5982
6888
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -6031,6 +6937,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6031
6937
|
readonly type: Schema.Literal<"event">;
|
|
6032
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">]>]>;
|
|
6033
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
|
+
}>]>;
|
|
6034
6955
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6035
6956
|
readonly type: Schema.Literal<"tag">;
|
|
6036
6957
|
readonly tag: Schema.String;
|
|
@@ -6069,6 +6990,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6069
6990
|
readonly type: Schema.Literal<"event">;
|
|
6070
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">]>]>;
|
|
6071
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
|
+
}>]>;
|
|
6072
7008
|
}>]>]>;
|
|
6073
7009
|
}>>;
|
|
6074
7010
|
}>>;
|
|
@@ -6085,6 +7021,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6085
7021
|
readonly type: Schema.Literal<"webhook">;
|
|
6086
7022
|
readonly config: Schema.Struct<{
|
|
6087
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>>;
|
|
6088
7025
|
}>;
|
|
6089
7026
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6090
7027
|
readonly nodeId: Schema.String;
|
|
@@ -6098,16 +7035,19 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6098
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">]>]>;
|
|
6099
7036
|
}>>;
|
|
6100
7037
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
6101
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
7038
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6102
7039
|
readonly type: Schema.Literal<"shopify_order">;
|
|
6103
7040
|
readonly shop: Schema.String;
|
|
6104
|
-
}
|
|
7041
|
+
}>, Schema.Struct<{
|
|
7042
|
+
readonly type: Schema.Literal<"event_property">;
|
|
7043
|
+
readonly property: Schema.String;
|
|
7044
|
+
}>]>>;
|
|
6105
7045
|
}>;
|
|
6106
7046
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
6107
7047
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6108
7048
|
readonly createdAt: Schema.String;
|
|
6109
7049
|
readonly updatedAt: Schema.String;
|
|
6110
|
-
}>>, Schema.toCodecJson<Schema.
|
|
7050
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
6111
7051
|
readonly _tag: "BillingProviderError";
|
|
6112
7052
|
readonly message: string;
|
|
6113
7053
|
}, readonly [Schema.Struct<{
|
|
@@ -6139,6 +7079,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6139
7079
|
readonly message: Schema.String;
|
|
6140
7080
|
readonly resource: Schema.String;
|
|
6141
7081
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
7082
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
7083
|
+
readonly _tag: "ForbiddenError";
|
|
7084
|
+
readonly message: string;
|
|
7085
|
+
}, readonly [Schema.Struct<{
|
|
7086
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
7087
|
+
readonly message: Schema.String;
|
|
7088
|
+
}>], {
|
|
7089
|
+
readonly _tag: "ForbiddenError";
|
|
7090
|
+
readonly message: string;
|
|
7091
|
+
}>, Schema.Struct<{
|
|
7092
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
7093
|
+
readonly message: Schema.String;
|
|
6142
7094
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
6143
7095
|
readonly _tag: "GatewayTimeoutError";
|
|
6144
7096
|
readonly message: string;
|
|
@@ -6255,6 +7207,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6255
7207
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
6256
7208
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
6257
7209
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
7210
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
6258
7211
|
readonly name: Schema.String;
|
|
6259
7212
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
6260
7213
|
readonly revision: Schema.String;
|
|
@@ -6279,6 +7232,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6279
7232
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
6280
7233
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
6281
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>>;
|
|
6282
7236
|
}>;
|
|
6283
7237
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6284
7238
|
readonly nodeId: Schema.String;
|
|
@@ -6299,6 +7253,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6299
7253
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
6300
7254
|
}>>;
|
|
6301
7255
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7256
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
6302
7257
|
}>;
|
|
6303
7258
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6304
7259
|
readonly nodeId: Schema.String;
|
|
@@ -6315,6 +7270,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6315
7270
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
6316
7271
|
readonly config: Schema.Struct<{
|
|
6317
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
|
+
}>>;
|
|
6318
7277
|
readonly timeoutSeconds: Schema.Finite;
|
|
6319
7278
|
}>;
|
|
6320
7279
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -6369,6 +7328,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6369
7328
|
readonly type: Schema.Literal<"event">;
|
|
6370
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">]>]>;
|
|
6371
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
|
+
}>]>;
|
|
6372
7346
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6373
7347
|
readonly type: Schema.Literal<"tag">;
|
|
6374
7348
|
readonly tag: Schema.String;
|
|
@@ -6407,6 +7381,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6407
7381
|
readonly type: Schema.Literal<"event">;
|
|
6408
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">]>]>;
|
|
6409
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
|
+
}>]>;
|
|
6410
7399
|
}>]>]>;
|
|
6411
7400
|
}>>;
|
|
6412
7401
|
}>>;
|
|
@@ -6423,6 +7412,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6423
7412
|
readonly type: Schema.Literal<"webhook">;
|
|
6424
7413
|
readonly config: Schema.Struct<{
|
|
6425
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>>;
|
|
6426
7416
|
}>;
|
|
6427
7417
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6428
7418
|
readonly nodeId: Schema.String;
|
|
@@ -6436,16 +7426,19 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6436
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">]>]>;
|
|
6437
7427
|
}>>;
|
|
6438
7428
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
6439
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
7429
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6440
7430
|
readonly type: Schema.Literal<"shopify_order">;
|
|
6441
7431
|
readonly shop: Schema.String;
|
|
6442
|
-
}
|
|
7432
|
+
}>, Schema.Struct<{
|
|
7433
|
+
readonly type: Schema.Literal<"event_property">;
|
|
7434
|
+
readonly property: Schema.String;
|
|
7435
|
+
}>]>>;
|
|
6443
7436
|
}>;
|
|
6444
7437
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
6445
7438
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6446
7439
|
readonly createdAt: Schema.String;
|
|
6447
7440
|
readonly updatedAt: Schema.String;
|
|
6448
|
-
}>>, Schema.toCodecJson<Schema.
|
|
7441
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
6449
7442
|
readonly _tag: "BillingProviderError";
|
|
6450
7443
|
readonly message: string;
|
|
6451
7444
|
}, readonly [Schema.Struct<{
|
|
@@ -6477,6 +7470,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6477
7470
|
readonly message: Schema.String;
|
|
6478
7471
|
readonly resource: Schema.String;
|
|
6479
7472
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
7473
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
7474
|
+
readonly _tag: "ForbiddenError";
|
|
7475
|
+
readonly message: string;
|
|
7476
|
+
}, readonly [Schema.Struct<{
|
|
7477
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
7478
|
+
readonly message: Schema.String;
|
|
7479
|
+
}>], {
|
|
7480
|
+
readonly _tag: "ForbiddenError";
|
|
7481
|
+
readonly message: string;
|
|
7482
|
+
}>, Schema.Struct<{
|
|
7483
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
7484
|
+
readonly message: Schema.String;
|
|
6480
7485
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
6481
7486
|
readonly _tag: "GatewayTimeoutError";
|
|
6482
7487
|
readonly message: string;
|
|
@@ -6713,6 +7718,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6713
7718
|
readonly name: Schema.String;
|
|
6714
7719
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
6715
7720
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
7721
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
6716
7722
|
readonly name: Schema.String;
|
|
6717
7723
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
6718
7724
|
readonly revision: Schema.String;
|
|
@@ -6737,6 +7743,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6737
7743
|
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
6738
7744
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
6739
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>>;
|
|
6740
7747
|
}>;
|
|
6741
7748
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6742
7749
|
readonly nodeId: Schema.String;
|
|
@@ -6757,6 +7764,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6757
7764
|
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
6758
7765
|
}>>;
|
|
6759
7766
|
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7767
|
+
readonly flowActionDataBinding: Schema.optionalKey<Schema.String>;
|
|
6760
7768
|
}>;
|
|
6761
7769
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6762
7770
|
readonly nodeId: Schema.String;
|
|
@@ -6773,6 +7781,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6773
7781
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
6774
7782
|
readonly config: Schema.Struct<{
|
|
6775
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
|
+
}>>;
|
|
6776
7788
|
readonly timeoutSeconds: Schema.Finite;
|
|
6777
7789
|
}>;
|
|
6778
7790
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -6827,6 +7839,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6827
7839
|
readonly type: Schema.Literal<"event">;
|
|
6828
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">]>]>;
|
|
6829
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
|
+
}>]>;
|
|
6830
7857
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6831
7858
|
readonly type: Schema.Literal<"tag">;
|
|
6832
7859
|
readonly tag: Schema.String;
|
|
@@ -6865,6 +7892,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6865
7892
|
readonly type: Schema.Literal<"event">;
|
|
6866
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">]>]>;
|
|
6867
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
|
+
}>]>;
|
|
6868
7910
|
}>]>]>;
|
|
6869
7911
|
}>>;
|
|
6870
7912
|
}>>;
|
|
@@ -6881,6 +7923,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6881
7923
|
readonly type: Schema.Literal<"webhook">;
|
|
6882
7924
|
readonly config: Schema.Struct<{
|
|
6883
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>>;
|
|
6884
7927
|
}>;
|
|
6885
7928
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6886
7929
|
readonly nodeId: Schema.String;
|
|
@@ -6894,10 +7937,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6894
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">]>]>;
|
|
6895
7938
|
}>>;
|
|
6896
7939
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
6897
|
-
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
7940
|
+
readonly enrollment: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6898
7941
|
readonly type: Schema.Literal<"shopify_order">;
|
|
6899
7942
|
readonly shop: Schema.String;
|
|
6900
|
-
}
|
|
7943
|
+
}>, Schema.Struct<{
|
|
7944
|
+
readonly type: Schema.Literal<"event_property">;
|
|
7945
|
+
readonly property: Schema.String;
|
|
7946
|
+
}>]>>;
|
|
6901
7947
|
}>;
|
|
6902
7948
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
6903
7949
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|