samva 0.46.1 → 0.47.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 +56 -0
- package/dist/agent/index.js +52 -0
- package/dist/agent/runtime.d.ts +3 -0
- package/dist/agent/runtime.js +74 -0
- package/dist/agent/test.d.ts +31 -0
- package/dist/agent/test.js +66 -0
- package/dist/agent/types.d.ts +123 -0
- package/dist/client/sdk.gen.d.ts +40 -160
- package/dist/client/sdk.gen.js +1302 -1598
- package/dist/client/types.gen.d.ts +377 -966
- package/dist/effect/agents.d.ts +340 -8
- package/dist/effect/agents.js +4 -2
- 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/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 +255 -15
- 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 +407 -101
- package/dist/effect/generated/shared.js +80 -36
- package/dist/effect/generated/template-registrations.d.ts +1 -4
- package/dist/effect/generated/template-registrations.js +2 -6
- 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/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;
|
|
@@ -420,6 +426,10 @@ export declare const Journey: Schema.Struct<{
|
|
|
420
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">]>]>;
|
|
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;
|
|
@@ -607,6 +623,10 @@ export declare const JourneyVersion: Schema.Struct<{
|
|
|
607
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">]>]>;
|
|
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;
|
|
@@ -823,6 +849,10 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
|
|
|
823
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">]>]>;
|
|
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;
|
|
@@ -1003,6 +1039,10 @@ export declare const JourneysCreate201: Schema.Struct<{
|
|
|
1003
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">]>]>;
|
|
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;
|
|
@@ -1213,6 +1259,10 @@ export declare const JourneysGet200: Schema.Struct<{
|
|
|
1213
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">]>]>;
|
|
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;
|
|
@@ -1450,6 +1506,10 @@ export declare const JourneysUpdate200: Schema.Struct<{
|
|
|
1450
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">]>]>;
|
|
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;
|
|
@@ -1654,6 +1720,10 @@ export declare const JourneysArchive200: Schema.Struct<{
|
|
|
1654
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">]>]>;
|
|
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;
|
|
@@ -1860,6 +1936,10 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
|
|
|
1860
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">]>]>;
|
|
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;
|
|
@@ -2040,6 +2126,10 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
|
|
|
2040
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">]>]>;
|
|
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;
|
|
@@ -2250,6 +2346,10 @@ export declare const JourneysPause200: Schema.Struct<{
|
|
|
2250
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">]>]>;
|
|
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;
|
|
@@ -2462,6 +2568,10 @@ export declare const JourneysPublish200: Schema.Struct<{
|
|
|
2462
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">]>]>;
|
|
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;
|
|
@@ -2672,6 +2788,10 @@ export declare const JourneysResume200: Schema.Struct<{
|
|
|
2672
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">]>]>;
|
|
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;
|
|
@@ -3031,6 +3157,10 @@ export declare const JourneysGetVersion200: Schema.Struct<{
|
|
|
3031
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">]>]>;
|
|
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;
|
|
@@ -3227,6 +3363,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3227
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">]>]>;
|
|
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;
|
|
@@ -3526,6 +3672,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3526
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">]>]>;
|
|
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;
|
|
@@ -3704,6 +3860,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3704
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">]>]>;
|
|
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;
|
|
@@ -4032,6 +4198,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4032
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">]>]>;
|
|
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;
|
|
@@ -4446,6 +4622,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4446
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">]>]>;
|
|
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;
|
|
@@ -4950,6 +5136,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4950
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">]>]>;
|
|
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;
|
|
@@ -5256,6 +5452,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5256
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">]>]>;
|
|
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;
|
|
@@ -5706,6 +5912,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5706
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">]>]>;
|
|
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;
|
|
@@ -5884,6 +6100,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5884
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">]>]>;
|
|
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;
|
|
@@ -6212,6 +6438,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6212
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">]>]>;
|
|
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;
|
|
@@ -6660,6 +6896,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6660
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">]>]>;
|
|
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]>;
|