samva 0.46.1 → 0.48.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 +13 -7
- package/README.md +106 -8
- package/dist/agent/index.d.ts +57 -0
- package/dist/agent/index.js +53 -0
- package/dist/agent/runtime.d.ts +3 -0
- package/dist/agent/runtime.js +95 -0
- package/dist/agent/test.d.ts +31 -0
- package/dist/agent/test.js +66 -0
- package/dist/agent/types.d.ts +150 -0
- package/dist/client/sdk.gen.d.ts +50 -165
- package/dist/client/sdk.gen.js +1339 -1614
- package/dist/client/types.gen.d.ts +461 -989
- package/dist/effect/agents.d.ts +340 -8
- package/dist/effect/agents.js +4 -2
- package/dist/effect/api-keys.d.ts +2 -0
- package/dist/effect/campaigns.d.ts +160 -160
- package/dist/effect/contacts.d.ts +8 -0
- package/dist/effect/contacts.js +5 -1
- package/dist/effect/descriptors/agents.d.ts +12 -2
- package/dist/effect/descriptors/agents.js +12 -2
- package/dist/effect/descriptors/contacts.d.ts +20 -0
- package/dist/effect/descriptors/contacts.js +20 -0
- package/dist/effect/generated/accounts.d.ts +10 -0
- package/dist/effect/generated/accounts.js +1 -0
- package/dist/effect/generated/agents.d.ts +2967 -690
- package/dist/effect/generated/agents.js +54 -13
- package/dist/effect/generated/api-keys.d.ts +15 -0
- package/dist/effect/generated/api-keys.js +2 -0
- package/dist/effect/generated/contacts.d.ts +859 -1
- package/dist/effect/generated/contacts.js +62 -3
- package/dist/effect/generated/index.d.ts +1 -5
- package/dist/effect/generated/journeys.d.ts +351 -111
- package/dist/effect/generated/journeys.js +3 -1
- package/dist/effect/generated/mailboxes.d.ts +93 -95
- package/dist/effect/generated/mailboxes.js +21 -25
- package/dist/effect/generated/shared.d.ts +459 -139
- package/dist/effect/generated/shared.js +84 -39
- package/dist/effect/generated/template-registrations.d.ts +19 -4
- package/dist/effect/generated/template-registrations.js +8 -7
- package/dist/effect/generated/templates.d.ts +76 -11
- package/dist/effect/generated/templates.js +25 -12
- package/dist/effect/generated-metadata.d.ts +18 -84
- package/dist/effect/generated-metadata.js +362 -415
- package/dist/effect/index.d.ts +0 -2
- package/dist/effect/index.js +1 -3
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/operation.js +4 -1
- package/dist/effect/journeys.d.ts +26 -2
- package/dist/effect/mailboxes.d.ts +41 -41
- package/dist/effect/scheduled-messages.d.ts +350 -350
- package/dist/effect/templates.d.ts +9 -0
- package/dist/effect/topics.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +1 -5
- package/dist/promises/client.js +3 -7
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +18 -75
- package/package.json +10 -22
- package/dist/effect/descriptors/extension-installations.d.ts +0 -90
- package/dist/effect/descriptors/extension-installations.js +0 -90
- package/dist/effect/descriptors/extensions.d.ts +0 -50
- package/dist/effect/descriptors/extensions.js +0 -50
- package/dist/effect/extension-installations.d.ts +0 -132
- package/dist/effect/extension-installations.js +0 -29
- package/dist/effect/extensions.d.ts +0 -102
- package/dist/effect/extensions.js +0 -21
- package/dist/effect/generated/extension-installations.d.ts +0 -2761
- package/dist/effect/generated/extension-installations.js +0 -405
- package/dist/effect/generated/extensions.d.ts +0 -1037
- package/dist/effect/generated/extensions.js +0 -214
- package/dist/mailbox/dispatch.d.ts +0 -10
- package/dist/mailbox/dispatch.js +0 -66
- package/dist/mailbox/index.d.ts +0 -17
- package/dist/mailbox/index.js +0 -30
- package/dist/mailbox/test.d.ts +0 -25
- package/dist/mailbox/test.js +0 -181
- package/dist/mailbox/types.d.ts +0 -221
- package/dist/mailbox/webhook.d.ts +0 -10
- package/dist/mailbox/webhook.js +0 -41
|
@@ -8,10 +8,10 @@ export type JourneyRunStatus = "active" | "paused" | "exited" | "failed";
|
|
|
8
8
|
export declare const JourneyRunStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
|
|
9
9
|
export type JourneyRunId = string & EffectBrand.Brand<"JourneyRunId">;
|
|
10
10
|
export declare const JourneyRunId: Schema.brand<Schema.String, "JourneyRunId">;
|
|
11
|
-
export type JourneyRunExitReason = "completed" | "goal" | "archived";
|
|
12
|
-
export declare const JourneyRunExitReason: Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">]>;
|
|
13
|
-
export type JourneyRunStepOutcome = "completed" | "matched" | "timed_out" | "goal" | "archived" | "failed";
|
|
14
|
-
export declare const JourneyRunStepOutcome: Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"matched">, Schema.Literal<"timed_out">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"failed">]>;
|
|
11
|
+
export type JourneyRunExitReason = "completed" | "goal" | "archived" | "merged";
|
|
12
|
+
export declare const JourneyRunExitReason: Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">]>;
|
|
13
|
+
export type JourneyRunStepOutcome = "completed" | "matched" | "timed_out" | "goal" | "archived" | "merged" | "failed";
|
|
14
|
+
export declare const JourneyRunStepOutcome: Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"matched">, Schema.Literal<"timed_out">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">, Schema.Literal<"failed">]>;
|
|
15
15
|
export type JourneyRunCounts = {
|
|
16
16
|
readonly active: number;
|
|
17
17
|
readonly paused: number;
|
|
@@ -85,7 +85,7 @@ export declare const JourneyRunStep: Schema.Struct<{
|
|
|
85
85
|
readonly type: Schema.String;
|
|
86
86
|
readonly enteredAt: Schema.String;
|
|
87
87
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
88
|
-
readonly outcome: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"matched">, Schema.Literal<"timed_out">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"failed">]>, Schema.Null]>;
|
|
88
|
+
readonly outcome: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"matched">, Schema.Literal<"timed_out">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">, Schema.Literal<"failed">]>, Schema.Null]>;
|
|
89
89
|
readonly nextNodeId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
90
90
|
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
91
91
|
readonly error: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -111,7 +111,7 @@ export declare const JourneyRun: Schema.Struct<{
|
|
|
111
111
|
readonly version: Schema.Finite;
|
|
112
112
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
113
113
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
|
|
114
|
-
readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">]>, Schema.Null]>;
|
|
114
|
+
readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">]>, Schema.Null]>;
|
|
115
115
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
116
116
|
readonly currentNodeId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
117
117
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -183,7 +183,7 @@ export declare const JourneyRunDetail: Schema.Struct<{
|
|
|
183
183
|
readonly version: Schema.Finite;
|
|
184
184
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
185
185
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
|
|
186
|
-
readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">]>, Schema.Null]>;
|
|
186
|
+
readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">]>, Schema.Null]>;
|
|
187
187
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
188
188
|
readonly currentNodeId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
189
189
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -200,7 +200,7 @@ export declare const JourneyRunDetail: Schema.Struct<{
|
|
|
200
200
|
readonly type: Schema.String;
|
|
201
201
|
readonly enteredAt: Schema.String;
|
|
202
202
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
203
|
-
readonly outcome: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"matched">, Schema.Literal<"timed_out">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"failed">]>, Schema.Null]>;
|
|
203
|
+
readonly outcome: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"matched">, Schema.Literal<"timed_out">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">, Schema.Literal<"failed">]>, Schema.Null]>;
|
|
204
204
|
readonly nextNodeId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
205
205
|
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
206
206
|
readonly error: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -217,7 +217,7 @@ export declare const JourneyRunPage: Schema.Struct<{
|
|
|
217
217
|
readonly version: Schema.Finite;
|
|
218
218
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
219
219
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
|
|
220
|
-
readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">]>, Schema.Null]>;
|
|
220
|
+
readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">]>, Schema.Null]>;
|
|
221
221
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
222
222
|
readonly currentNodeId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
223
223
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -266,6 +266,7 @@ export declare const Journey: Schema.Struct<{
|
|
|
266
266
|
readonly type: Schema.Literal<"send_email">;
|
|
267
267
|
readonly config: Schema.Struct<{
|
|
268
268
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
269
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
269
270
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
270
271
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
271
272
|
}>;
|
|
@@ -283,6 +284,11 @@ export declare const Journey: Schema.Struct<{
|
|
|
283
284
|
readonly customField: Schema.String;
|
|
284
285
|
}>]>>>;
|
|
285
286
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
287
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
288
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
289
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
290
|
+
}>>;
|
|
291
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
286
292
|
}>;
|
|
287
293
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
288
294
|
readonly nodeId: Schema.String;
|
|
@@ -298,7 +304,7 @@ export declare const Journey: Schema.Struct<{
|
|
|
298
304
|
}>, Schema.Struct<{
|
|
299
305
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
300
306
|
readonly config: Schema.Struct<{
|
|
301
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
307
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
302
308
|
readonly timeoutSeconds: Schema.Finite;
|
|
303
309
|
}>;
|
|
304
310
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -351,7 +357,7 @@ export declare const Journey: Schema.Struct<{
|
|
|
351
357
|
}>]>;
|
|
352
358
|
}>, Schema.Struct<{
|
|
353
359
|
readonly type: Schema.Literal<"event">;
|
|
354
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
360
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
355
361
|
readonly occurred: Schema.Boolean;
|
|
356
362
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
357
363
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -389,7 +395,7 @@ export declare const Journey: Schema.Struct<{
|
|
|
389
395
|
}>]>;
|
|
390
396
|
}>, Schema.Struct<{
|
|
391
397
|
readonly type: Schema.Literal<"event">;
|
|
392
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
398
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
393
399
|
readonly occurred: Schema.Boolean;
|
|
394
400
|
}>]>]>;
|
|
395
401
|
}>>;
|
|
@@ -417,9 +423,13 @@ export declare const Journey: Schema.Struct<{
|
|
|
417
423
|
readonly next: Schema.Tuple<readonly []>;
|
|
418
424
|
}>]>>;
|
|
419
425
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
420
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
426
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
421
427
|
}>>;
|
|
422
428
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
429
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
430
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
431
|
+
readonly shop: Schema.String;
|
|
432
|
+
}>>;
|
|
423
433
|
}>;
|
|
424
434
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
425
435
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -453,6 +463,7 @@ export declare const JourneyVersion: Schema.Struct<{
|
|
|
453
463
|
readonly type: Schema.Literal<"send_email">;
|
|
454
464
|
readonly config: Schema.Struct<{
|
|
455
465
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
466
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
456
467
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
457
468
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
458
469
|
}>;
|
|
@@ -470,6 +481,11 @@ export declare const JourneyVersion: Schema.Struct<{
|
|
|
470
481
|
readonly customField: Schema.String;
|
|
471
482
|
}>]>>>;
|
|
472
483
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
484
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
485
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
486
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
487
|
+
}>>;
|
|
488
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
473
489
|
}>;
|
|
474
490
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
475
491
|
readonly nodeId: Schema.String;
|
|
@@ -485,7 +501,7 @@ export declare const JourneyVersion: Schema.Struct<{
|
|
|
485
501
|
}>, Schema.Struct<{
|
|
486
502
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
487
503
|
readonly config: Schema.Struct<{
|
|
488
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
504
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
489
505
|
readonly timeoutSeconds: Schema.Finite;
|
|
490
506
|
}>;
|
|
491
507
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -538,7 +554,7 @@ export declare const JourneyVersion: Schema.Struct<{
|
|
|
538
554
|
}>]>;
|
|
539
555
|
}>, Schema.Struct<{
|
|
540
556
|
readonly type: Schema.Literal<"event">;
|
|
541
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
557
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
542
558
|
readonly occurred: Schema.Boolean;
|
|
543
559
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
544
560
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -576,7 +592,7 @@ export declare const JourneyVersion: Schema.Struct<{
|
|
|
576
592
|
}>]>;
|
|
577
593
|
}>, Schema.Struct<{
|
|
578
594
|
readonly type: Schema.Literal<"event">;
|
|
579
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
595
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
580
596
|
readonly occurred: Schema.Boolean;
|
|
581
597
|
}>]>]>;
|
|
582
598
|
}>>;
|
|
@@ -604,9 +620,13 @@ export declare const JourneyVersion: Schema.Struct<{
|
|
|
604
620
|
readonly next: Schema.Tuple<readonly []>;
|
|
605
621
|
}>]>>;
|
|
606
622
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
607
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
623
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
608
624
|
}>>;
|
|
609
625
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
626
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
627
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
628
|
+
readonly shop: Schema.String;
|
|
629
|
+
}>>;
|
|
610
630
|
}>;
|
|
611
631
|
readonly publishedAt: Schema.String;
|
|
612
632
|
}>;
|
|
@@ -669,6 +689,7 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
|
|
|
669
689
|
readonly type: Schema.Literal<"send_email">;
|
|
670
690
|
readonly config: Schema.Struct<{
|
|
671
691
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
692
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
672
693
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
673
694
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
674
695
|
}>;
|
|
@@ -686,6 +707,11 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
|
|
|
686
707
|
readonly customField: Schema.String;
|
|
687
708
|
}>]>>>;
|
|
688
709
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
710
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
711
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
712
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
713
|
+
}>>;
|
|
714
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
689
715
|
}>;
|
|
690
716
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
691
717
|
readonly nodeId: Schema.String;
|
|
@@ -701,7 +727,7 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
|
|
|
701
727
|
}>, Schema.Struct<{
|
|
702
728
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
703
729
|
readonly config: Schema.Struct<{
|
|
704
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
730
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
705
731
|
readonly timeoutSeconds: Schema.Finite;
|
|
706
732
|
}>;
|
|
707
733
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -754,7 +780,7 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
|
|
|
754
780
|
}>]>;
|
|
755
781
|
}>, Schema.Struct<{
|
|
756
782
|
readonly type: Schema.Literal<"event">;
|
|
757
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
783
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
758
784
|
readonly occurred: Schema.Boolean;
|
|
759
785
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
760
786
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -792,7 +818,7 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
|
|
|
792
818
|
}>]>;
|
|
793
819
|
}>, Schema.Struct<{
|
|
794
820
|
readonly type: Schema.Literal<"event">;
|
|
795
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
821
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
796
822
|
readonly occurred: Schema.Boolean;
|
|
797
823
|
}>]>]>;
|
|
798
824
|
}>>;
|
|
@@ -820,9 +846,13 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
|
|
|
820
846
|
readonly next: Schema.Tuple<readonly []>;
|
|
821
847
|
}>]>>;
|
|
822
848
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
823
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
849
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
824
850
|
}>>;
|
|
825
851
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
852
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
853
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
854
|
+
readonly shop: Schema.String;
|
|
855
|
+
}>>;
|
|
826
856
|
}>;
|
|
827
857
|
}>;
|
|
828
858
|
export type JourneysCreate201 = Journey;
|
|
@@ -849,6 +879,7 @@ export declare const JourneysCreate201: Schema.Struct<{
|
|
|
849
879
|
readonly type: Schema.Literal<"send_email">;
|
|
850
880
|
readonly config: Schema.Struct<{
|
|
851
881
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
882
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
852
883
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
853
884
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
854
885
|
}>;
|
|
@@ -866,6 +897,11 @@ export declare const JourneysCreate201: Schema.Struct<{
|
|
|
866
897
|
readonly customField: Schema.String;
|
|
867
898
|
}>]>>>;
|
|
868
899
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
900
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
901
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
902
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
903
|
+
}>>;
|
|
904
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
869
905
|
}>;
|
|
870
906
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
871
907
|
readonly nodeId: Schema.String;
|
|
@@ -881,7 +917,7 @@ export declare const JourneysCreate201: Schema.Struct<{
|
|
|
881
917
|
}>, Schema.Struct<{
|
|
882
918
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
883
919
|
readonly config: Schema.Struct<{
|
|
884
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
920
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
885
921
|
readonly timeoutSeconds: Schema.Finite;
|
|
886
922
|
}>;
|
|
887
923
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -934,7 +970,7 @@ export declare const JourneysCreate201: Schema.Struct<{
|
|
|
934
970
|
}>]>;
|
|
935
971
|
}>, Schema.Struct<{
|
|
936
972
|
readonly type: Schema.Literal<"event">;
|
|
937
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
973
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
938
974
|
readonly occurred: Schema.Boolean;
|
|
939
975
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
940
976
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -972,7 +1008,7 @@ export declare const JourneysCreate201: Schema.Struct<{
|
|
|
972
1008
|
}>]>;
|
|
973
1009
|
}>, Schema.Struct<{
|
|
974
1010
|
readonly type: Schema.Literal<"event">;
|
|
975
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
1011
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
976
1012
|
readonly occurred: Schema.Boolean;
|
|
977
1013
|
}>]>]>;
|
|
978
1014
|
}>>;
|
|
@@ -1000,9 +1036,13 @@ export declare const JourneysCreate201: Schema.Struct<{
|
|
|
1000
1036
|
readonly next: Schema.Tuple<readonly []>;
|
|
1001
1037
|
}>]>>;
|
|
1002
1038
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
1003
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
1039
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1004
1040
|
}>>;
|
|
1005
1041
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
1042
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
1043
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
1044
|
+
readonly shop: Schema.String;
|
|
1045
|
+
}>>;
|
|
1006
1046
|
}>;
|
|
1007
1047
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1008
1048
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1059,6 +1099,7 @@ export declare const JourneysGet200: Schema.Struct<{
|
|
|
1059
1099
|
readonly type: Schema.Literal<"send_email">;
|
|
1060
1100
|
readonly config: Schema.Struct<{
|
|
1061
1101
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1102
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
1062
1103
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
1063
1104
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
1064
1105
|
}>;
|
|
@@ -1076,6 +1117,11 @@ export declare const JourneysGet200: Schema.Struct<{
|
|
|
1076
1117
|
readonly customField: Schema.String;
|
|
1077
1118
|
}>]>>>;
|
|
1078
1119
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1120
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
1121
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
1122
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
1123
|
+
}>>;
|
|
1124
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1079
1125
|
}>;
|
|
1080
1126
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1081
1127
|
readonly nodeId: Schema.String;
|
|
@@ -1091,7 +1137,7 @@ export declare const JourneysGet200: Schema.Struct<{
|
|
|
1091
1137
|
}>, Schema.Struct<{
|
|
1092
1138
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
1093
1139
|
readonly config: Schema.Struct<{
|
|
1094
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
1140
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1095
1141
|
readonly timeoutSeconds: Schema.Finite;
|
|
1096
1142
|
}>;
|
|
1097
1143
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -1144,7 +1190,7 @@ export declare const JourneysGet200: Schema.Struct<{
|
|
|
1144
1190
|
}>]>;
|
|
1145
1191
|
}>, Schema.Struct<{
|
|
1146
1192
|
readonly type: Schema.Literal<"event">;
|
|
1147
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
1193
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1148
1194
|
readonly occurred: Schema.Boolean;
|
|
1149
1195
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1150
1196
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -1182,7 +1228,7 @@ export declare const JourneysGet200: Schema.Struct<{
|
|
|
1182
1228
|
}>]>;
|
|
1183
1229
|
}>, Schema.Struct<{
|
|
1184
1230
|
readonly type: Schema.Literal<"event">;
|
|
1185
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
1231
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1186
1232
|
readonly occurred: Schema.Boolean;
|
|
1187
1233
|
}>]>]>;
|
|
1188
1234
|
}>>;
|
|
@@ -1210,9 +1256,13 @@ export declare const JourneysGet200: Schema.Struct<{
|
|
|
1210
1256
|
readonly next: Schema.Tuple<readonly []>;
|
|
1211
1257
|
}>]>>;
|
|
1212
1258
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
1213
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
1259
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1214
1260
|
}>>;
|
|
1215
1261
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
1262
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
1263
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
1264
|
+
readonly shop: Schema.String;
|
|
1265
|
+
}>>;
|
|
1216
1266
|
}>;
|
|
1217
1267
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1218
1268
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1296,6 +1346,7 @@ export declare const JourneysUpdate200: Schema.Struct<{
|
|
|
1296
1346
|
readonly type: Schema.Literal<"send_email">;
|
|
1297
1347
|
readonly config: Schema.Struct<{
|
|
1298
1348
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1349
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
1299
1350
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
1300
1351
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
1301
1352
|
}>;
|
|
@@ -1313,6 +1364,11 @@ export declare const JourneysUpdate200: Schema.Struct<{
|
|
|
1313
1364
|
readonly customField: Schema.String;
|
|
1314
1365
|
}>]>>>;
|
|
1315
1366
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1367
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
1368
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
1369
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
1370
|
+
}>>;
|
|
1371
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1316
1372
|
}>;
|
|
1317
1373
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1318
1374
|
readonly nodeId: Schema.String;
|
|
@@ -1328,7 +1384,7 @@ export declare const JourneysUpdate200: Schema.Struct<{
|
|
|
1328
1384
|
}>, Schema.Struct<{
|
|
1329
1385
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
1330
1386
|
readonly config: Schema.Struct<{
|
|
1331
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
1387
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1332
1388
|
readonly timeoutSeconds: Schema.Finite;
|
|
1333
1389
|
}>;
|
|
1334
1390
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -1381,7 +1437,7 @@ export declare const JourneysUpdate200: Schema.Struct<{
|
|
|
1381
1437
|
}>]>;
|
|
1382
1438
|
}>, Schema.Struct<{
|
|
1383
1439
|
readonly type: Schema.Literal<"event">;
|
|
1384
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
1440
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1385
1441
|
readonly occurred: Schema.Boolean;
|
|
1386
1442
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1387
1443
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -1419,7 +1475,7 @@ export declare const JourneysUpdate200: Schema.Struct<{
|
|
|
1419
1475
|
}>]>;
|
|
1420
1476
|
}>, Schema.Struct<{
|
|
1421
1477
|
readonly type: Schema.Literal<"event">;
|
|
1422
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
1478
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1423
1479
|
readonly occurred: Schema.Boolean;
|
|
1424
1480
|
}>]>]>;
|
|
1425
1481
|
}>>;
|
|
@@ -1447,9 +1503,13 @@ export declare const JourneysUpdate200: Schema.Struct<{
|
|
|
1447
1503
|
readonly next: Schema.Tuple<readonly []>;
|
|
1448
1504
|
}>]>>;
|
|
1449
1505
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
1450
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
1506
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1451
1507
|
}>>;
|
|
1452
1508
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
1509
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
1510
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
1511
|
+
readonly shop: Schema.String;
|
|
1512
|
+
}>>;
|
|
1453
1513
|
}>;
|
|
1454
1514
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1455
1515
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1500,6 +1560,7 @@ export declare const JourneysArchive200: Schema.Struct<{
|
|
|
1500
1560
|
readonly type: Schema.Literal<"send_email">;
|
|
1501
1561
|
readonly config: Schema.Struct<{
|
|
1502
1562
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1563
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
1503
1564
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
1504
1565
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
1505
1566
|
}>;
|
|
@@ -1517,6 +1578,11 @@ export declare const JourneysArchive200: Schema.Struct<{
|
|
|
1517
1578
|
readonly customField: Schema.String;
|
|
1518
1579
|
}>]>>>;
|
|
1519
1580
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1581
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
1582
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
1583
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
1584
|
+
}>>;
|
|
1585
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1520
1586
|
}>;
|
|
1521
1587
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1522
1588
|
readonly nodeId: Schema.String;
|
|
@@ -1532,7 +1598,7 @@ export declare const JourneysArchive200: Schema.Struct<{
|
|
|
1532
1598
|
}>, Schema.Struct<{
|
|
1533
1599
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
1534
1600
|
readonly config: Schema.Struct<{
|
|
1535
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
1601
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1536
1602
|
readonly timeoutSeconds: Schema.Finite;
|
|
1537
1603
|
}>;
|
|
1538
1604
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -1585,7 +1651,7 @@ export declare const JourneysArchive200: Schema.Struct<{
|
|
|
1585
1651
|
}>]>;
|
|
1586
1652
|
}>, Schema.Struct<{
|
|
1587
1653
|
readonly type: Schema.Literal<"event">;
|
|
1588
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
1654
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1589
1655
|
readonly occurred: Schema.Boolean;
|
|
1590
1656
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1591
1657
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -1623,7 +1689,7 @@ export declare const JourneysArchive200: Schema.Struct<{
|
|
|
1623
1689
|
}>]>;
|
|
1624
1690
|
}>, Schema.Struct<{
|
|
1625
1691
|
readonly type: Schema.Literal<"event">;
|
|
1626
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
1692
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1627
1693
|
readonly occurred: Schema.Boolean;
|
|
1628
1694
|
}>]>]>;
|
|
1629
1695
|
}>>;
|
|
@@ -1651,9 +1717,13 @@ export declare const JourneysArchive200: Schema.Struct<{
|
|
|
1651
1717
|
readonly next: Schema.Tuple<readonly []>;
|
|
1652
1718
|
}>]>>;
|
|
1653
1719
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
1654
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
1720
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1655
1721
|
}>>;
|
|
1656
1722
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
1723
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
1724
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
1725
|
+
readonly shop: Schema.String;
|
|
1726
|
+
}>>;
|
|
1657
1727
|
}>;
|
|
1658
1728
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1659
1729
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1706,6 +1776,7 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
|
|
|
1706
1776
|
readonly type: Schema.Literal<"send_email">;
|
|
1707
1777
|
readonly config: Schema.Struct<{
|
|
1708
1778
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1779
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
1709
1780
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
1710
1781
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
1711
1782
|
}>;
|
|
@@ -1723,6 +1794,11 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
|
|
|
1723
1794
|
readonly customField: Schema.String;
|
|
1724
1795
|
}>]>>>;
|
|
1725
1796
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1797
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
1798
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
1799
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
1800
|
+
}>>;
|
|
1801
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1726
1802
|
}>;
|
|
1727
1803
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1728
1804
|
readonly nodeId: Schema.String;
|
|
@@ -1738,7 +1814,7 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
|
|
|
1738
1814
|
}>, Schema.Struct<{
|
|
1739
1815
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
1740
1816
|
readonly config: Schema.Struct<{
|
|
1741
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
1817
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1742
1818
|
readonly timeoutSeconds: Schema.Finite;
|
|
1743
1819
|
}>;
|
|
1744
1820
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -1791,7 +1867,7 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
|
|
|
1791
1867
|
}>]>;
|
|
1792
1868
|
}>, Schema.Struct<{
|
|
1793
1869
|
readonly type: Schema.Literal<"event">;
|
|
1794
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
1870
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1795
1871
|
readonly occurred: Schema.Boolean;
|
|
1796
1872
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1797
1873
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -1829,7 +1905,7 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
|
|
|
1829
1905
|
}>]>;
|
|
1830
1906
|
}>, Schema.Struct<{
|
|
1831
1907
|
readonly type: Schema.Literal<"event">;
|
|
1832
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
1908
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1833
1909
|
readonly occurred: Schema.Boolean;
|
|
1834
1910
|
}>]>]>;
|
|
1835
1911
|
}>>;
|
|
@@ -1857,9 +1933,13 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
|
|
|
1857
1933
|
readonly next: Schema.Tuple<readonly []>;
|
|
1858
1934
|
}>]>>;
|
|
1859
1935
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
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">]>]>;
|
|
1936
|
+
readonly eventName: Schema.Union<readonly [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
1937
|
}>>;
|
|
1862
1938
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
1939
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
1940
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
1941
|
+
readonly shop: Schema.String;
|
|
1942
|
+
}>>;
|
|
1863
1943
|
}>;
|
|
1864
1944
|
}>;
|
|
1865
1945
|
export type JourneysReplaceDraft200 = Journey;
|
|
@@ -1886,6 +1966,7 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
|
|
|
1886
1966
|
readonly type: Schema.Literal<"send_email">;
|
|
1887
1967
|
readonly config: Schema.Struct<{
|
|
1888
1968
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1969
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
1889
1970
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
1890
1971
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
1891
1972
|
}>;
|
|
@@ -1903,6 +1984,11 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
|
|
|
1903
1984
|
readonly customField: Schema.String;
|
|
1904
1985
|
}>]>>>;
|
|
1905
1986
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1987
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
1988
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
1989
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
1990
|
+
}>>;
|
|
1991
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1906
1992
|
}>;
|
|
1907
1993
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1908
1994
|
readonly nodeId: Schema.String;
|
|
@@ -1918,7 +2004,7 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
|
|
|
1918
2004
|
}>, Schema.Struct<{
|
|
1919
2005
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
1920
2006
|
readonly config: Schema.Struct<{
|
|
1921
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
2007
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1922
2008
|
readonly timeoutSeconds: Schema.Finite;
|
|
1923
2009
|
}>;
|
|
1924
2010
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -1971,7 +2057,7 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
|
|
|
1971
2057
|
}>]>;
|
|
1972
2058
|
}>, Schema.Struct<{
|
|
1973
2059
|
readonly type: Schema.Literal<"event">;
|
|
1974
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
2060
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
1975
2061
|
readonly occurred: Schema.Boolean;
|
|
1976
2062
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1977
2063
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -2009,7 +2095,7 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
|
|
|
2009
2095
|
}>]>;
|
|
2010
2096
|
}>, Schema.Struct<{
|
|
2011
2097
|
readonly type: Schema.Literal<"event">;
|
|
2012
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
2098
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
2013
2099
|
readonly occurred: Schema.Boolean;
|
|
2014
2100
|
}>]>]>;
|
|
2015
2101
|
}>>;
|
|
@@ -2037,9 +2123,13 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
|
|
|
2037
2123
|
readonly next: Schema.Tuple<readonly []>;
|
|
2038
2124
|
}>]>>;
|
|
2039
2125
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
2040
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
2126
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
2041
2127
|
}>>;
|
|
2042
2128
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
2129
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
2130
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
2131
|
+
readonly shop: Schema.String;
|
|
2132
|
+
}>>;
|
|
2043
2133
|
}>;
|
|
2044
2134
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
2045
2135
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2096,6 +2186,7 @@ export declare const JourneysPause200: Schema.Struct<{
|
|
|
2096
2186
|
readonly type: Schema.Literal<"send_email">;
|
|
2097
2187
|
readonly config: Schema.Struct<{
|
|
2098
2188
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2189
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
2099
2190
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
2100
2191
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
2101
2192
|
}>;
|
|
@@ -2113,6 +2204,11 @@ export declare const JourneysPause200: Schema.Struct<{
|
|
|
2113
2204
|
readonly customField: Schema.String;
|
|
2114
2205
|
}>]>>>;
|
|
2115
2206
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2207
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
2208
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
2209
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
2210
|
+
}>>;
|
|
2211
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2116
2212
|
}>;
|
|
2117
2213
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2118
2214
|
readonly nodeId: Schema.String;
|
|
@@ -2128,7 +2224,7 @@ export declare const JourneysPause200: Schema.Struct<{
|
|
|
2128
2224
|
}>, Schema.Struct<{
|
|
2129
2225
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
2130
2226
|
readonly config: Schema.Struct<{
|
|
2131
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
2227
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
2132
2228
|
readonly timeoutSeconds: Schema.Finite;
|
|
2133
2229
|
}>;
|
|
2134
2230
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -2181,7 +2277,7 @@ export declare const JourneysPause200: Schema.Struct<{
|
|
|
2181
2277
|
}>]>;
|
|
2182
2278
|
}>, Schema.Struct<{
|
|
2183
2279
|
readonly type: Schema.Literal<"event">;
|
|
2184
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
2280
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
2185
2281
|
readonly occurred: Schema.Boolean;
|
|
2186
2282
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
2187
2283
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -2219,7 +2315,7 @@ export declare const JourneysPause200: Schema.Struct<{
|
|
|
2219
2315
|
}>]>;
|
|
2220
2316
|
}>, Schema.Struct<{
|
|
2221
2317
|
readonly type: Schema.Literal<"event">;
|
|
2222
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
2318
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
2223
2319
|
readonly occurred: Schema.Boolean;
|
|
2224
2320
|
}>]>]>;
|
|
2225
2321
|
}>>;
|
|
@@ -2247,9 +2343,13 @@ export declare const JourneysPause200: Schema.Struct<{
|
|
|
2247
2343
|
readonly next: Schema.Tuple<readonly []>;
|
|
2248
2344
|
}>]>>;
|
|
2249
2345
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
2250
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
2346
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
2251
2347
|
}>>;
|
|
2252
2348
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
2349
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
2350
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
2351
|
+
readonly shop: Schema.String;
|
|
2352
|
+
}>>;
|
|
2253
2353
|
}>;
|
|
2254
2354
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
2255
2355
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2308,6 +2408,7 @@ export declare const JourneysPublish200: Schema.Struct<{
|
|
|
2308
2408
|
readonly type: Schema.Literal<"send_email">;
|
|
2309
2409
|
readonly config: Schema.Struct<{
|
|
2310
2410
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2411
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
2311
2412
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
2312
2413
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
2313
2414
|
}>;
|
|
@@ -2325,6 +2426,11 @@ export declare const JourneysPublish200: Schema.Struct<{
|
|
|
2325
2426
|
readonly customField: Schema.String;
|
|
2326
2427
|
}>]>>>;
|
|
2327
2428
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2429
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
2430
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
2431
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
2432
|
+
}>>;
|
|
2433
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2328
2434
|
}>;
|
|
2329
2435
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2330
2436
|
readonly nodeId: Schema.String;
|
|
@@ -2340,7 +2446,7 @@ export declare const JourneysPublish200: Schema.Struct<{
|
|
|
2340
2446
|
}>, Schema.Struct<{
|
|
2341
2447
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
2342
2448
|
readonly config: Schema.Struct<{
|
|
2343
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
2449
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
2344
2450
|
readonly timeoutSeconds: Schema.Finite;
|
|
2345
2451
|
}>;
|
|
2346
2452
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -2393,7 +2499,7 @@ export declare const JourneysPublish200: Schema.Struct<{
|
|
|
2393
2499
|
}>]>;
|
|
2394
2500
|
}>, Schema.Struct<{
|
|
2395
2501
|
readonly type: Schema.Literal<"event">;
|
|
2396
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
2502
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
2397
2503
|
readonly occurred: Schema.Boolean;
|
|
2398
2504
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
2399
2505
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -2431,7 +2537,7 @@ export declare const JourneysPublish200: Schema.Struct<{
|
|
|
2431
2537
|
}>]>;
|
|
2432
2538
|
}>, Schema.Struct<{
|
|
2433
2539
|
readonly type: Schema.Literal<"event">;
|
|
2434
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
2540
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
2435
2541
|
readonly occurred: Schema.Boolean;
|
|
2436
2542
|
}>]>]>;
|
|
2437
2543
|
}>>;
|
|
@@ -2459,9 +2565,13 @@ export declare const JourneysPublish200: Schema.Struct<{
|
|
|
2459
2565
|
readonly next: Schema.Tuple<readonly []>;
|
|
2460
2566
|
}>]>>;
|
|
2461
2567
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
2462
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
2568
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
2463
2569
|
}>>;
|
|
2464
2570
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
2571
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
2572
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
2573
|
+
readonly shop: Schema.String;
|
|
2574
|
+
}>>;
|
|
2465
2575
|
}>;
|
|
2466
2576
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
2467
2577
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2518,6 +2628,7 @@ export declare const JourneysResume200: Schema.Struct<{
|
|
|
2518
2628
|
readonly type: Schema.Literal<"send_email">;
|
|
2519
2629
|
readonly config: Schema.Struct<{
|
|
2520
2630
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2631
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
2521
2632
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
2522
2633
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
2523
2634
|
}>;
|
|
@@ -2535,6 +2646,11 @@ export declare const JourneysResume200: Schema.Struct<{
|
|
|
2535
2646
|
readonly customField: Schema.String;
|
|
2536
2647
|
}>]>>>;
|
|
2537
2648
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2649
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
2650
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
2651
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
2652
|
+
}>>;
|
|
2653
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2538
2654
|
}>;
|
|
2539
2655
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2540
2656
|
readonly nodeId: Schema.String;
|
|
@@ -2550,7 +2666,7 @@ export declare const JourneysResume200: Schema.Struct<{
|
|
|
2550
2666
|
}>, Schema.Struct<{
|
|
2551
2667
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
2552
2668
|
readonly config: Schema.Struct<{
|
|
2553
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
2669
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
2554
2670
|
readonly timeoutSeconds: Schema.Finite;
|
|
2555
2671
|
}>;
|
|
2556
2672
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -2603,7 +2719,7 @@ export declare const JourneysResume200: Schema.Struct<{
|
|
|
2603
2719
|
}>]>;
|
|
2604
2720
|
}>, Schema.Struct<{
|
|
2605
2721
|
readonly type: Schema.Literal<"event">;
|
|
2606
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
2722
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
2607
2723
|
readonly occurred: Schema.Boolean;
|
|
2608
2724
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
2609
2725
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -2641,7 +2757,7 @@ export declare const JourneysResume200: Schema.Struct<{
|
|
|
2641
2757
|
}>]>;
|
|
2642
2758
|
}>, Schema.Struct<{
|
|
2643
2759
|
readonly type: Schema.Literal<"event">;
|
|
2644
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
2760
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
2645
2761
|
readonly occurred: Schema.Boolean;
|
|
2646
2762
|
}>]>]>;
|
|
2647
2763
|
}>>;
|
|
@@ -2669,9 +2785,13 @@ export declare const JourneysResume200: Schema.Struct<{
|
|
|
2669
2785
|
readonly next: Schema.Tuple<readonly []>;
|
|
2670
2786
|
}>]>>;
|
|
2671
2787
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
2672
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
2788
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
2673
2789
|
}>>;
|
|
2674
2790
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
2791
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
2792
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
2793
|
+
readonly shop: Schema.String;
|
|
2794
|
+
}>>;
|
|
2675
2795
|
}>;
|
|
2676
2796
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
2677
2797
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2724,7 +2844,7 @@ export declare const JourneysListRuns200: Schema.Struct<{
|
|
|
2724
2844
|
readonly version: Schema.Finite;
|
|
2725
2845
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
2726
2846
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
|
|
2727
|
-
readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">]>, Schema.Null]>;
|
|
2847
|
+
readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">]>, Schema.Null]>;
|
|
2728
2848
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2729
2849
|
readonly currentNodeId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2730
2850
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2768,7 +2888,7 @@ export declare const JourneysGetRun200: Schema.Struct<{
|
|
|
2768
2888
|
readonly version: Schema.Finite;
|
|
2769
2889
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
2770
2890
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
|
|
2771
|
-
readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">]>, Schema.Null]>;
|
|
2891
|
+
readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">]>, Schema.Null]>;
|
|
2772
2892
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2773
2893
|
readonly currentNodeId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2774
2894
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2785,7 +2905,7 @@ export declare const JourneysGetRun200: Schema.Struct<{
|
|
|
2785
2905
|
readonly type: Schema.String;
|
|
2786
2906
|
readonly enteredAt: Schema.String;
|
|
2787
2907
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2788
|
-
readonly outcome: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"matched">, Schema.Literal<"timed_out">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"failed">]>, Schema.Null]>;
|
|
2908
|
+
readonly outcome: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"matched">, Schema.Literal<"timed_out">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">, Schema.Literal<"failed">]>, Schema.Null]>;
|
|
2789
2909
|
readonly nextNodeId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2790
2910
|
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
2791
2911
|
readonly error: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2877,6 +2997,7 @@ export declare const JourneysGetVersion200: Schema.Struct<{
|
|
|
2877
2997
|
readonly type: Schema.Literal<"send_email">;
|
|
2878
2998
|
readonly config: Schema.Struct<{
|
|
2879
2999
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3000
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
2880
3001
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
2881
3002
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
2882
3003
|
}>;
|
|
@@ -2894,6 +3015,11 @@ export declare const JourneysGetVersion200: Schema.Struct<{
|
|
|
2894
3015
|
readonly customField: Schema.String;
|
|
2895
3016
|
}>]>>>;
|
|
2896
3017
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3018
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
3019
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
3020
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
3021
|
+
}>>;
|
|
3022
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2897
3023
|
}>;
|
|
2898
3024
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2899
3025
|
readonly nodeId: Schema.String;
|
|
@@ -2909,7 +3035,7 @@ export declare const JourneysGetVersion200: Schema.Struct<{
|
|
|
2909
3035
|
}>, Schema.Struct<{
|
|
2910
3036
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
2911
3037
|
readonly config: Schema.Struct<{
|
|
2912
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3038
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
2913
3039
|
readonly timeoutSeconds: Schema.Finite;
|
|
2914
3040
|
}>;
|
|
2915
3041
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -2962,7 +3088,7 @@ export declare const JourneysGetVersion200: Schema.Struct<{
|
|
|
2962
3088
|
}>]>;
|
|
2963
3089
|
}>, Schema.Struct<{
|
|
2964
3090
|
readonly type: Schema.Literal<"event">;
|
|
2965
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3091
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
2966
3092
|
readonly occurred: Schema.Boolean;
|
|
2967
3093
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
2968
3094
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -3000,7 +3126,7 @@ export declare const JourneysGetVersion200: Schema.Struct<{
|
|
|
3000
3126
|
}>]>;
|
|
3001
3127
|
}>, Schema.Struct<{
|
|
3002
3128
|
readonly type: Schema.Literal<"event">;
|
|
3003
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3129
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3004
3130
|
readonly occurred: Schema.Boolean;
|
|
3005
3131
|
}>]>]>;
|
|
3006
3132
|
}>>;
|
|
@@ -3028,9 +3154,13 @@ export declare const JourneysGetVersion200: Schema.Struct<{
|
|
|
3028
3154
|
readonly next: Schema.Tuple<readonly []>;
|
|
3029
3155
|
}>]>>;
|
|
3030
3156
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
3031
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3157
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3032
3158
|
}>>;
|
|
3033
3159
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
3160
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
3161
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
3162
|
+
readonly shop: Schema.String;
|
|
3163
|
+
}>>;
|
|
3034
3164
|
}>;
|
|
3035
3165
|
readonly publishedAt: Schema.String;
|
|
3036
3166
|
}>;
|
|
@@ -3073,6 +3203,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3073
3203
|
readonly type: Schema.Literal<"send_email">;
|
|
3074
3204
|
readonly config: Schema.Struct<{
|
|
3075
3205
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3206
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
3076
3207
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
3077
3208
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
3078
3209
|
}>;
|
|
@@ -3090,6 +3221,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3090
3221
|
readonly customField: Schema.String;
|
|
3091
3222
|
}>]>>>;
|
|
3092
3223
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3224
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
3225
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
3226
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
3227
|
+
}>>;
|
|
3228
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3093
3229
|
}>;
|
|
3094
3230
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3095
3231
|
readonly nodeId: Schema.String;
|
|
@@ -3105,7 +3241,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3105
3241
|
}>, Schema.Struct<{
|
|
3106
3242
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
3107
3243
|
readonly config: Schema.Struct<{
|
|
3108
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3244
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3109
3245
|
readonly timeoutSeconds: Schema.Finite;
|
|
3110
3246
|
}>;
|
|
3111
3247
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -3158,7 +3294,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3158
3294
|
}>]>;
|
|
3159
3295
|
}>, Schema.Struct<{
|
|
3160
3296
|
readonly type: Schema.Literal<"event">;
|
|
3161
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3297
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3162
3298
|
readonly occurred: Schema.Boolean;
|
|
3163
3299
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
3164
3300
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -3196,7 +3332,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3196
3332
|
}>]>;
|
|
3197
3333
|
}>, Schema.Struct<{
|
|
3198
3334
|
readonly type: Schema.Literal<"event">;
|
|
3199
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3335
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3200
3336
|
readonly occurred: Schema.Boolean;
|
|
3201
3337
|
}>]>]>;
|
|
3202
3338
|
}>>;
|
|
@@ -3224,9 +3360,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3224
3360
|
readonly next: Schema.Tuple<readonly []>;
|
|
3225
3361
|
}>]>>;
|
|
3226
3362
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
3227
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3363
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3228
3364
|
}>>;
|
|
3229
3365
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
3366
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
3367
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
3368
|
+
readonly shop: Schema.String;
|
|
3369
|
+
}>>;
|
|
3230
3370
|
}>;
|
|
3231
3371
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
3232
3372
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -3372,6 +3512,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3372
3512
|
readonly type: Schema.Literal<"send_email">;
|
|
3373
3513
|
readonly config: Schema.Struct<{
|
|
3374
3514
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3515
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
3375
3516
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
3376
3517
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
3377
3518
|
}>;
|
|
@@ -3389,6 +3530,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3389
3530
|
readonly customField: Schema.String;
|
|
3390
3531
|
}>]>>>;
|
|
3391
3532
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3533
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
3534
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
3535
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
3536
|
+
}>>;
|
|
3537
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3392
3538
|
}>;
|
|
3393
3539
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3394
3540
|
readonly nodeId: Schema.String;
|
|
@@ -3404,7 +3550,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3404
3550
|
}>, Schema.Struct<{
|
|
3405
3551
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
3406
3552
|
readonly config: Schema.Struct<{
|
|
3407
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3553
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3408
3554
|
readonly timeoutSeconds: Schema.Finite;
|
|
3409
3555
|
}>;
|
|
3410
3556
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -3457,7 +3603,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3457
3603
|
}>]>;
|
|
3458
3604
|
}>, Schema.Struct<{
|
|
3459
3605
|
readonly type: Schema.Literal<"event">;
|
|
3460
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3606
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3461
3607
|
readonly occurred: Schema.Boolean;
|
|
3462
3608
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
3463
3609
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -3495,7 +3641,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3495
3641
|
}>]>;
|
|
3496
3642
|
}>, Schema.Struct<{
|
|
3497
3643
|
readonly type: Schema.Literal<"event">;
|
|
3498
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3644
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3499
3645
|
readonly occurred: Schema.Boolean;
|
|
3500
3646
|
}>]>]>;
|
|
3501
3647
|
}>>;
|
|
@@ -3523,9 +3669,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3523
3669
|
readonly next: Schema.Tuple<readonly []>;
|
|
3524
3670
|
}>]>>;
|
|
3525
3671
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
3526
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3672
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3527
3673
|
}>>;
|
|
3528
3674
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
3675
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
3676
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
3677
|
+
readonly shop: Schema.String;
|
|
3678
|
+
}>>;
|
|
3529
3679
|
}>;
|
|
3530
3680
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3531
3681
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
@@ -3550,6 +3700,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3550
3700
|
readonly type: Schema.Literal<"send_email">;
|
|
3551
3701
|
readonly config: Schema.Struct<{
|
|
3552
3702
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3703
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
3553
3704
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
3554
3705
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
3555
3706
|
}>;
|
|
@@ -3567,6 +3718,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3567
3718
|
readonly customField: Schema.String;
|
|
3568
3719
|
}>]>>>;
|
|
3569
3720
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3721
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
3722
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
3723
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
3724
|
+
}>>;
|
|
3725
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3570
3726
|
}>;
|
|
3571
3727
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3572
3728
|
readonly nodeId: Schema.String;
|
|
@@ -3582,7 +3738,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3582
3738
|
}>, Schema.Struct<{
|
|
3583
3739
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
3584
3740
|
readonly config: Schema.Struct<{
|
|
3585
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3741
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3586
3742
|
readonly timeoutSeconds: Schema.Finite;
|
|
3587
3743
|
}>;
|
|
3588
3744
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -3635,7 +3791,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3635
3791
|
}>]>;
|
|
3636
3792
|
}>, Schema.Struct<{
|
|
3637
3793
|
readonly type: Schema.Literal<"event">;
|
|
3638
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3794
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3639
3795
|
readonly occurred: Schema.Boolean;
|
|
3640
3796
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
3641
3797
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -3673,7 +3829,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3673
3829
|
}>]>;
|
|
3674
3830
|
}>, Schema.Struct<{
|
|
3675
3831
|
readonly type: Schema.Literal<"event">;
|
|
3676
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3832
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3677
3833
|
readonly occurred: Schema.Boolean;
|
|
3678
3834
|
}>]>]>;
|
|
3679
3835
|
}>>;
|
|
@@ -3701,9 +3857,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3701
3857
|
readonly next: Schema.Tuple<readonly []>;
|
|
3702
3858
|
}>]>>;
|
|
3703
3859
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
3704
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3860
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3705
3861
|
}>>;
|
|
3706
3862
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
3863
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
3864
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
3865
|
+
readonly shop: Schema.String;
|
|
3866
|
+
}>>;
|
|
3707
3867
|
}>;
|
|
3708
3868
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
3709
3869
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -3878,6 +4038,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3878
4038
|
readonly type: Schema.Literal<"send_email">;
|
|
3879
4039
|
readonly config: Schema.Struct<{
|
|
3880
4040
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4041
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
3881
4042
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
3882
4043
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
3883
4044
|
}>;
|
|
@@ -3895,6 +4056,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3895
4056
|
readonly customField: Schema.String;
|
|
3896
4057
|
}>]>>>;
|
|
3897
4058
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4059
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
4060
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
4061
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
4062
|
+
}>>;
|
|
4063
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3898
4064
|
}>;
|
|
3899
4065
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3900
4066
|
readonly nodeId: Schema.String;
|
|
@@ -3910,7 +4076,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3910
4076
|
}>, Schema.Struct<{
|
|
3911
4077
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
3912
4078
|
readonly config: Schema.Struct<{
|
|
3913
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
4079
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3914
4080
|
readonly timeoutSeconds: Schema.Finite;
|
|
3915
4081
|
}>;
|
|
3916
4082
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -3963,7 +4129,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3963
4129
|
}>]>;
|
|
3964
4130
|
}>, Schema.Struct<{
|
|
3965
4131
|
readonly type: Schema.Literal<"event">;
|
|
3966
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
4132
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3967
4133
|
readonly occurred: Schema.Boolean;
|
|
3968
4134
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
3969
4135
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -4001,7 +4167,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4001
4167
|
}>]>;
|
|
4002
4168
|
}>, Schema.Struct<{
|
|
4003
4169
|
readonly type: Schema.Literal<"event">;
|
|
4004
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
4170
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
4005
4171
|
readonly occurred: Schema.Boolean;
|
|
4006
4172
|
}>]>]>;
|
|
4007
4173
|
}>>;
|
|
@@ -4029,9 +4195,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4029
4195
|
readonly next: Schema.Tuple<readonly []>;
|
|
4030
4196
|
}>]>>;
|
|
4031
4197
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
4032
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
4198
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
4033
4199
|
}>>;
|
|
4034
4200
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
4201
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
4202
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
4203
|
+
readonly shop: Schema.String;
|
|
4204
|
+
}>>;
|
|
4035
4205
|
}>;
|
|
4036
4206
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
4037
4207
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -4146,7 +4316,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4146
4316
|
readonly version: Schema.Finite;
|
|
4147
4317
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
4148
4318
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
|
|
4149
|
-
readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">]>, Schema.Null]>;
|
|
4319
|
+
readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">]>, Schema.Null]>;
|
|
4150
4320
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4151
4321
|
readonly currentNodeId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4152
4322
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -4163,7 +4333,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4163
4333
|
readonly type: Schema.String;
|
|
4164
4334
|
readonly enteredAt: Schema.String;
|
|
4165
4335
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4166
|
-
readonly outcome: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"matched">, Schema.Literal<"timed_out">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"failed">]>, Schema.Null]>;
|
|
4336
|
+
readonly outcome: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"matched">, Schema.Literal<"timed_out">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">, Schema.Literal<"failed">]>, Schema.Null]>;
|
|
4167
4337
|
readonly nextNodeId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4168
4338
|
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
4169
4339
|
readonly error: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -4292,6 +4462,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4292
4462
|
readonly type: Schema.Literal<"send_email">;
|
|
4293
4463
|
readonly config: Schema.Struct<{
|
|
4294
4464
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4465
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
4295
4466
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
4296
4467
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
4297
4468
|
}>;
|
|
@@ -4309,6 +4480,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4309
4480
|
readonly customField: Schema.String;
|
|
4310
4481
|
}>]>>>;
|
|
4311
4482
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4483
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
4484
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
4485
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
4486
|
+
}>>;
|
|
4487
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
4312
4488
|
}>;
|
|
4313
4489
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4314
4490
|
readonly nodeId: Schema.String;
|
|
@@ -4324,7 +4500,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4324
4500
|
}>, Schema.Struct<{
|
|
4325
4501
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
4326
4502
|
readonly config: Schema.Struct<{
|
|
4327
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
4503
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
4328
4504
|
readonly timeoutSeconds: Schema.Finite;
|
|
4329
4505
|
}>;
|
|
4330
4506
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -4377,7 +4553,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4377
4553
|
}>]>;
|
|
4378
4554
|
}>, Schema.Struct<{
|
|
4379
4555
|
readonly type: Schema.Literal<"event">;
|
|
4380
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
4556
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
4381
4557
|
readonly occurred: Schema.Boolean;
|
|
4382
4558
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4383
4559
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -4415,7 +4591,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4415
4591
|
}>]>;
|
|
4416
4592
|
}>, Schema.Struct<{
|
|
4417
4593
|
readonly type: Schema.Literal<"event">;
|
|
4418
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
4594
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
4419
4595
|
readonly occurred: Schema.Boolean;
|
|
4420
4596
|
}>]>]>;
|
|
4421
4597
|
}>>;
|
|
@@ -4443,9 +4619,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4443
4619
|
readonly next: Schema.Tuple<readonly []>;
|
|
4444
4620
|
}>]>>;
|
|
4445
4621
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
4446
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
4622
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
4447
4623
|
}>>;
|
|
4448
4624
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
4625
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
4626
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
4627
|
+
readonly shop: Schema.String;
|
|
4628
|
+
}>>;
|
|
4449
4629
|
}>;
|
|
4450
4630
|
readonly publishedAt: Schema.String;
|
|
4451
4631
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
@@ -4657,7 +4837,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4657
4837
|
readonly version: Schema.Finite;
|
|
4658
4838
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
4659
4839
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
|
|
4660
|
-
readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">]>, Schema.Null]>;
|
|
4840
|
+
readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">]>, Schema.Null]>;
|
|
4661
4841
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4662
4842
|
readonly currentNodeId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4663
4843
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -4796,6 +4976,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4796
4976
|
readonly type: Schema.Literal<"send_email">;
|
|
4797
4977
|
readonly config: Schema.Struct<{
|
|
4798
4978
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4979
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
4799
4980
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
4800
4981
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
4801
4982
|
}>;
|
|
@@ -4813,6 +4994,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4813
4994
|
readonly customField: Schema.String;
|
|
4814
4995
|
}>]>>>;
|
|
4815
4996
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4997
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
4998
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
4999
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
5000
|
+
}>>;
|
|
5001
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
4816
5002
|
}>;
|
|
4817
5003
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4818
5004
|
readonly nodeId: Schema.String;
|
|
@@ -4828,7 +5014,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4828
5014
|
}>, Schema.Struct<{
|
|
4829
5015
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
4830
5016
|
readonly config: Schema.Struct<{
|
|
4831
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
5017
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
4832
5018
|
readonly timeoutSeconds: Schema.Finite;
|
|
4833
5019
|
}>;
|
|
4834
5020
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -4881,7 +5067,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4881
5067
|
}>]>;
|
|
4882
5068
|
}>, Schema.Struct<{
|
|
4883
5069
|
readonly type: Schema.Literal<"event">;
|
|
4884
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
5070
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
4885
5071
|
readonly occurred: Schema.Boolean;
|
|
4886
5072
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4887
5073
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -4919,7 +5105,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4919
5105
|
}>]>;
|
|
4920
5106
|
}>, Schema.Struct<{
|
|
4921
5107
|
readonly type: Schema.Literal<"event">;
|
|
4922
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
5108
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
4923
5109
|
readonly occurred: Schema.Boolean;
|
|
4924
5110
|
}>]>]>;
|
|
4925
5111
|
}>>;
|
|
@@ -4947,9 +5133,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4947
5133
|
readonly next: Schema.Tuple<readonly []>;
|
|
4948
5134
|
}>]>>;
|
|
4949
5135
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
4950
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
5136
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
4951
5137
|
}>>;
|
|
4952
5138
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
5139
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
5140
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
5141
|
+
readonly shop: Schema.String;
|
|
5142
|
+
}>>;
|
|
4953
5143
|
}>;
|
|
4954
5144
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
4955
5145
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -5102,6 +5292,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5102
5292
|
readonly type: Schema.Literal<"send_email">;
|
|
5103
5293
|
readonly config: Schema.Struct<{
|
|
5104
5294
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5295
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
5105
5296
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
5106
5297
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
5107
5298
|
}>;
|
|
@@ -5119,6 +5310,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5119
5310
|
readonly customField: Schema.String;
|
|
5120
5311
|
}>]>>>;
|
|
5121
5312
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5313
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
5314
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
5315
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
5316
|
+
}>>;
|
|
5317
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
5122
5318
|
}>;
|
|
5123
5319
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5124
5320
|
readonly nodeId: Schema.String;
|
|
@@ -5134,7 +5330,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5134
5330
|
}>, Schema.Struct<{
|
|
5135
5331
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
5136
5332
|
readonly config: Schema.Struct<{
|
|
5137
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
5333
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5138
5334
|
readonly timeoutSeconds: Schema.Finite;
|
|
5139
5335
|
}>;
|
|
5140
5336
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -5187,7 +5383,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5187
5383
|
}>]>;
|
|
5188
5384
|
}>, Schema.Struct<{
|
|
5189
5385
|
readonly type: Schema.Literal<"event">;
|
|
5190
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
5386
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5191
5387
|
readonly occurred: Schema.Boolean;
|
|
5192
5388
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5193
5389
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -5225,7 +5421,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5225
5421
|
}>]>;
|
|
5226
5422
|
}>, Schema.Struct<{
|
|
5227
5423
|
readonly type: Schema.Literal<"event">;
|
|
5228
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
5424
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5229
5425
|
readonly occurred: Schema.Boolean;
|
|
5230
5426
|
}>]>]>;
|
|
5231
5427
|
}>>;
|
|
@@ -5253,9 +5449,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5253
5449
|
readonly next: Schema.Tuple<readonly []>;
|
|
5254
5450
|
}>]>>;
|
|
5255
5451
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
5256
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
5452
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5257
5453
|
}>>;
|
|
5258
5454
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
5455
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
5456
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
5457
|
+
readonly shop: Schema.String;
|
|
5458
|
+
}>>;
|
|
5259
5459
|
}>;
|
|
5260
5460
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
5261
5461
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -5552,6 +5752,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5552
5752
|
readonly type: Schema.Literal<"send_email">;
|
|
5553
5753
|
readonly config: Schema.Struct<{
|
|
5554
5754
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5755
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
5555
5756
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
5556
5757
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
5557
5758
|
}>;
|
|
@@ -5569,6 +5770,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5569
5770
|
readonly customField: Schema.String;
|
|
5570
5771
|
}>]>>>;
|
|
5571
5772
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5773
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
5774
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
5775
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
5776
|
+
}>>;
|
|
5777
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
5572
5778
|
}>;
|
|
5573
5779
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5574
5780
|
readonly nodeId: Schema.String;
|
|
@@ -5584,7 +5790,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5584
5790
|
}>, Schema.Struct<{
|
|
5585
5791
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
5586
5792
|
readonly config: Schema.Struct<{
|
|
5587
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
5793
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5588
5794
|
readonly timeoutSeconds: Schema.Finite;
|
|
5589
5795
|
}>;
|
|
5590
5796
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -5637,7 +5843,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5637
5843
|
}>]>;
|
|
5638
5844
|
}>, Schema.Struct<{
|
|
5639
5845
|
readonly type: Schema.Literal<"event">;
|
|
5640
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
5846
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5641
5847
|
readonly occurred: Schema.Boolean;
|
|
5642
5848
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5643
5849
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -5675,7 +5881,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5675
5881
|
}>]>;
|
|
5676
5882
|
}>, Schema.Struct<{
|
|
5677
5883
|
readonly type: Schema.Literal<"event">;
|
|
5678
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
5884
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5679
5885
|
readonly occurred: Schema.Boolean;
|
|
5680
5886
|
}>]>]>;
|
|
5681
5887
|
}>>;
|
|
@@ -5703,9 +5909,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5703
5909
|
readonly next: Schema.Tuple<readonly []>;
|
|
5704
5910
|
}>]>>;
|
|
5705
5911
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
5706
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
5912
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5707
5913
|
}>>;
|
|
5708
5914
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
5915
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
5916
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
5917
|
+
readonly shop: Schema.String;
|
|
5918
|
+
}>>;
|
|
5709
5919
|
}>;
|
|
5710
5920
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
5711
5921
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
@@ -5730,6 +5940,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5730
5940
|
readonly type: Schema.Literal<"send_email">;
|
|
5731
5941
|
readonly config: Schema.Struct<{
|
|
5732
5942
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5943
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
5733
5944
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
5734
5945
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
5735
5946
|
}>;
|
|
@@ -5747,6 +5958,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5747
5958
|
readonly customField: Schema.String;
|
|
5748
5959
|
}>]>>>;
|
|
5749
5960
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5961
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
5962
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
5963
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
5964
|
+
}>>;
|
|
5965
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
5750
5966
|
}>;
|
|
5751
5967
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5752
5968
|
readonly nodeId: Schema.String;
|
|
@@ -5762,7 +5978,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5762
5978
|
}>, Schema.Struct<{
|
|
5763
5979
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
5764
5980
|
readonly config: Schema.Struct<{
|
|
5765
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
5981
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5766
5982
|
readonly timeoutSeconds: Schema.Finite;
|
|
5767
5983
|
}>;
|
|
5768
5984
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -5815,7 +6031,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5815
6031
|
}>]>;
|
|
5816
6032
|
}>, Schema.Struct<{
|
|
5817
6033
|
readonly type: Schema.Literal<"event">;
|
|
5818
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6034
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5819
6035
|
readonly occurred: Schema.Boolean;
|
|
5820
6036
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5821
6037
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -5853,7 +6069,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5853
6069
|
}>]>;
|
|
5854
6070
|
}>, Schema.Struct<{
|
|
5855
6071
|
readonly type: Schema.Literal<"event">;
|
|
5856
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6072
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5857
6073
|
readonly occurred: Schema.Boolean;
|
|
5858
6074
|
}>]>]>;
|
|
5859
6075
|
}>>;
|
|
@@ -5881,9 +6097,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5881
6097
|
readonly next: Schema.Tuple<readonly []>;
|
|
5882
6098
|
}>]>>;
|
|
5883
6099
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
5884
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6100
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5885
6101
|
}>>;
|
|
5886
6102
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
6103
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
6104
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
6105
|
+
readonly shop: Schema.String;
|
|
6106
|
+
}>>;
|
|
5887
6107
|
}>;
|
|
5888
6108
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
5889
6109
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -6058,6 +6278,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6058
6278
|
readonly type: Schema.Literal<"send_email">;
|
|
6059
6279
|
readonly config: Schema.Struct<{
|
|
6060
6280
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
6281
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
6061
6282
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
6062
6283
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
6063
6284
|
}>;
|
|
@@ -6075,6 +6296,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6075
6296
|
readonly customField: Schema.String;
|
|
6076
6297
|
}>]>>>;
|
|
6077
6298
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
6299
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
6300
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
6301
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
6302
|
+
}>>;
|
|
6303
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6078
6304
|
}>;
|
|
6079
6305
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6080
6306
|
readonly nodeId: Schema.String;
|
|
@@ -6090,7 +6316,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6090
6316
|
}>, Schema.Struct<{
|
|
6091
6317
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
6092
6318
|
readonly config: Schema.Struct<{
|
|
6093
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6319
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6094
6320
|
readonly timeoutSeconds: Schema.Finite;
|
|
6095
6321
|
}>;
|
|
6096
6322
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -6143,7 +6369,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6143
6369
|
}>]>;
|
|
6144
6370
|
}>, Schema.Struct<{
|
|
6145
6371
|
readonly type: Schema.Literal<"event">;
|
|
6146
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6372
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6147
6373
|
readonly occurred: Schema.Boolean;
|
|
6148
6374
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6149
6375
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -6181,7 +6407,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6181
6407
|
}>]>;
|
|
6182
6408
|
}>, Schema.Struct<{
|
|
6183
6409
|
readonly type: Schema.Literal<"event">;
|
|
6184
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6410
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6185
6411
|
readonly occurred: Schema.Boolean;
|
|
6186
6412
|
}>]>]>;
|
|
6187
6413
|
}>>;
|
|
@@ -6209,9 +6435,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6209
6435
|
readonly next: Schema.Tuple<readonly []>;
|
|
6210
6436
|
}>]>>;
|
|
6211
6437
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
6212
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6438
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6213
6439
|
}>>;
|
|
6214
6440
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
6441
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
6442
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
6443
|
+
readonly shop: Schema.String;
|
|
6444
|
+
}>>;
|
|
6215
6445
|
}>;
|
|
6216
6446
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
6217
6447
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -6506,6 +6736,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6506
6736
|
readonly type: Schema.Literal<"send_email">;
|
|
6507
6737
|
readonly config: Schema.Struct<{
|
|
6508
6738
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
6739
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
6509
6740
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
6510
6741
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
6511
6742
|
}>;
|
|
@@ -6523,6 +6754,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6523
6754
|
readonly customField: Schema.String;
|
|
6524
6755
|
}>]>>>;
|
|
6525
6756
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
6757
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
6758
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
6759
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
6760
|
+
}>>;
|
|
6761
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6526
6762
|
}>;
|
|
6527
6763
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6528
6764
|
readonly nodeId: Schema.String;
|
|
@@ -6538,7 +6774,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6538
6774
|
}>, Schema.Struct<{
|
|
6539
6775
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
6540
6776
|
readonly config: Schema.Struct<{
|
|
6541
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6777
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6542
6778
|
readonly timeoutSeconds: Schema.Finite;
|
|
6543
6779
|
}>;
|
|
6544
6780
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -6591,7 +6827,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6591
6827
|
}>]>;
|
|
6592
6828
|
}>, Schema.Struct<{
|
|
6593
6829
|
readonly type: Schema.Literal<"event">;
|
|
6594
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6830
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6595
6831
|
readonly occurred: Schema.Boolean;
|
|
6596
6832
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6597
6833
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -6629,7 +6865,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6629
6865
|
}>]>;
|
|
6630
6866
|
}>, Schema.Struct<{
|
|
6631
6867
|
readonly type: Schema.Literal<"event">;
|
|
6632
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6868
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6633
6869
|
readonly occurred: Schema.Boolean;
|
|
6634
6870
|
}>]>]>;
|
|
6635
6871
|
}>>;
|
|
@@ -6657,9 +6893,13 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6657
6893
|
readonly next: Schema.Tuple<readonly []>;
|
|
6658
6894
|
}>]>>;
|
|
6659
6895
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
6660
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6896
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6661
6897
|
}>>;
|
|
6662
6898
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
6899
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
6900
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
6901
|
+
readonly shop: Schema.String;
|
|
6902
|
+
}>>;
|
|
6663
6903
|
}>;
|
|
6664
6904
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
6665
6905
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|