samva 0.46.0 → 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.
Files changed (276) hide show
  1. package/AGENTS.md +13 -7
  2. package/README.md +107 -9
  3. package/dist/agent/index.d.ts +56 -0
  4. package/dist/agent/index.js +52 -0
  5. package/dist/agent/runtime.d.ts +3 -0
  6. package/dist/agent/runtime.js +74 -0
  7. package/dist/agent/test.d.ts +31 -0
  8. package/dist/agent/test.js +66 -0
  9. package/dist/agent/types.d.ts +123 -0
  10. package/dist/client/client/client.gen.d.ts +1 -1
  11. package/dist/client/client/index.d.ts +10 -10
  12. package/dist/client/client/types.gen.d.ts +4 -4
  13. package/dist/client/client/utils.gen.d.ts +2 -2
  14. package/dist/client/client.gen.d.ts +2 -2
  15. package/dist/client/core/bodySerializer.gen.d.ts +1 -1
  16. package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
  17. package/dist/client/core/types.gen.d.ts +2 -2
  18. package/dist/client/core/utils.gen.d.ts +1 -1
  19. package/dist/client/sdk.gen.d.ts +41 -161
  20. package/dist/client/sdk.gen.js +1302 -1598
  21. package/dist/client/types.gen.d.ts +377 -966
  22. package/dist/effect/accounts.d.ts +6 -6
  23. package/dist/effect/accounts.js +2 -1
  24. package/dist/effect/agents.d.ts +355 -23
  25. package/dist/effect/agents.js +6 -3
  26. package/dist/effect/analytics.d.ts +6 -6
  27. package/dist/effect/analytics.js +2 -1
  28. package/dist/effect/api-keys.d.ts +13 -13
  29. package/dist/effect/api-keys.js +2 -1
  30. package/dist/effect/approval-requests.d.ts +4 -4
  31. package/dist/effect/approval-requests.js +2 -1
  32. package/dist/effect/attachments.d.ts +4 -4
  33. package/dist/effect/attachments.js +2 -1
  34. package/dist/effect/brands.d.ts +7 -7
  35. package/dist/effect/brands.js +2 -1
  36. package/dist/effect/campaigns.d.ts +205 -205
  37. package/dist/effect/campaigns.js +2 -1
  38. package/dist/effect/categories.d.ts +3 -3
  39. package/dist/effect/client.d.ts +1 -1
  40. package/dist/effect/contact-groups.d.ts +18 -18
  41. package/dist/effect/contact-groups.js +2 -1
  42. package/dist/effect/contacts.d.ts +41 -33
  43. package/dist/effect/contacts.js +8 -3
  44. package/dist/effect/conversations.d.ts +17 -17
  45. package/dist/effect/conversations.js +2 -1
  46. package/dist/effect/custom-fields.d.ts +4 -4
  47. package/dist/effect/custom-fields.js +2 -1
  48. package/dist/effect/descriptors/accounts.d.ts +59 -0
  49. package/dist/effect/descriptors/accounts.js +57 -0
  50. package/dist/effect/descriptors/agents.d.ts +129 -0
  51. package/dist/effect/descriptors/agents.js +127 -0
  52. package/dist/effect/descriptors/analytics.d.ts +56 -0
  53. package/dist/effect/descriptors/analytics.js +48 -0
  54. package/dist/effect/descriptors/api-keys.d.ts +80 -0
  55. package/dist/effect/descriptors/api-keys.js +80 -0
  56. package/dist/effect/descriptors/approval-requests.d.ts +41 -0
  57. package/dist/effect/descriptors/approval-requests.js +43 -0
  58. package/dist/effect/descriptors/attachments.d.ts +41 -0
  59. package/dist/effect/descriptors/attachments.js +43 -0
  60. package/dist/effect/descriptors/brands.d.ts +60 -0
  61. package/dist/effect/descriptors/brands.js +60 -0
  62. package/dist/effect/descriptors/campaigns.d.ts +148 -0
  63. package/dist/effect/descriptors/campaigns.js +144 -0
  64. package/dist/effect/descriptors/contact-groups.d.ts +99 -0
  65. package/dist/effect/descriptors/contact-groups.js +97 -0
  66. package/dist/effect/descriptors/contacts.d.ts +246 -0
  67. package/dist/effect/descriptors/contacts.js +234 -0
  68. package/dist/effect/descriptors/conversations.d.ts +130 -0
  69. package/dist/effect/descriptors/conversations.js +130 -0
  70. package/dist/effect/descriptors/custom-fields.d.ts +40 -0
  71. package/dist/effect/descriptors/custom-fields.js +40 -0
  72. package/dist/effect/descriptors/email.d.ts +607 -0
  73. package/dist/effect/descriptors/email.js +561 -0
  74. package/dist/effect/descriptors/events.d.ts +20 -0
  75. package/dist/effect/descriptors/events.js +20 -0
  76. package/dist/effect/descriptors/feedback.d.ts +11 -0
  77. package/dist/effect/descriptors/feedback.js +11 -0
  78. package/dist/effect/descriptors/integrations-catalog.d.ts +29 -0
  79. package/dist/effect/descriptors/integrations-catalog.js +27 -0
  80. package/dist/effect/descriptors/integrations.d.ts +70 -0
  81. package/dist/effect/descriptors/integrations.js +70 -0
  82. package/dist/effect/descriptors/journeys.d.ts +140 -0
  83. package/dist/effect/descriptors/journeys.js +140 -0
  84. package/dist/effect/descriptors/mailboxes.d.ts +724 -0
  85. package/dist/effect/descriptors/mailboxes.js +728 -0
  86. package/dist/effect/descriptors/media.d.ts +51 -0
  87. package/dist/effect/descriptors/media.js +53 -0
  88. package/dist/effect/descriptors/messages.d.ts +99 -0
  89. package/dist/effect/descriptors/messages.js +97 -0
  90. package/dist/effect/descriptors/namespaces.d.ts +110 -0
  91. package/dist/effect/descriptors/namespaces.js +114 -0
  92. package/dist/effect/descriptors/newsletter-domains.d.ts +42 -0
  93. package/dist/effect/descriptors/newsletter-domains.js +46 -0
  94. package/dist/effect/descriptors/newsletter-issues.d.ts +112 -0
  95. package/dist/effect/descriptors/newsletter-issues.js +116 -0
  96. package/dist/effect/descriptors/newsletters.d.ts +51 -0
  97. package/dist/effect/descriptors/newsletters.js +53 -0
  98. package/dist/effect/descriptors/operations.d.ts +31 -0
  99. package/dist/effect/descriptors/operations.js +33 -0
  100. package/dist/effect/descriptors/organizations.d.ts +111 -0
  101. package/dist/effect/descriptors/organizations.js +93 -0
  102. package/dist/effect/descriptors/policies.d.ts +32 -0
  103. package/dist/effect/descriptors/policies.js +36 -0
  104. package/dist/effect/descriptors/scheduled-messages.d.ts +50 -0
  105. package/dist/effect/descriptors/scheduled-messages.js +50 -0
  106. package/dist/effect/descriptors/subscriptions.d.ts +11 -0
  107. package/dist/effect/descriptors/subscriptions.js +11 -0
  108. package/dist/effect/descriptors/template-registrations.d.ts +32 -0
  109. package/dist/effect/descriptors/template-registrations.js +36 -0
  110. package/dist/effect/descriptors/template-share-links.d.ts +52 -0
  111. package/dist/effect/descriptors/template-share-links.js +56 -0
  112. package/dist/effect/descriptors/templates.d.ts +365 -0
  113. package/dist/effect/descriptors/templates.js +355 -0
  114. package/dist/effect/descriptors/topic-forms.d.ts +52 -0
  115. package/dist/effect/descriptors/topic-forms.js +56 -0
  116. package/dist/effect/descriptors/topics.d.ts +89 -0
  117. package/dist/effect/descriptors/topics.js +87 -0
  118. package/dist/effect/descriptors/webhooks.d.ts +110 -0
  119. package/dist/effect/descriptors/webhooks.js +110 -0
  120. package/dist/effect/descriptors/whats-app-flows.d.ts +99 -0
  121. package/dist/effect/descriptors/whats-app-flows.js +97 -0
  122. package/dist/effect/descriptors/whats-app-setup-links.d.ts +40 -0
  123. package/dist/effect/descriptors/whats-app-setup-links.js +40 -0
  124. package/dist/effect/descriptors/whats-app.d.ts +116 -0
  125. package/dist/effect/descriptors/whats-app.js +108 -0
  126. package/dist/effect/descriptors/whoami.d.ts +11 -0
  127. package/dist/effect/descriptors/whoami.js +11 -0
  128. package/dist/effect/email.d.ts +78 -78
  129. package/dist/effect/email.js +2 -1
  130. package/dist/effect/errors.d.ts +2 -2
  131. package/dist/effect/events.d.ts +3 -3
  132. package/dist/effect/events.js +2 -1
  133. package/dist/effect/feedback.d.ts +2 -2
  134. package/dist/effect/feedback.js +2 -1
  135. package/dist/effect/generated/accounts.d.ts +19 -9
  136. package/dist/effect/generated/accounts.js +1 -0
  137. package/dist/effect/generated/agents.d.ts +2967 -690
  138. package/dist/effect/generated/agents.js +54 -13
  139. package/dist/effect/generated/analytics.d.ts +1 -1
  140. package/dist/effect/generated/api-keys.d.ts +1 -1
  141. package/dist/effect/generated/approval-requests.d.ts +13 -13
  142. package/dist/effect/generated/attachments.d.ts +1 -1
  143. package/dist/effect/generated/brands.d.ts +1 -1
  144. package/dist/effect/generated/campaigns.d.ts +230 -230
  145. package/dist/effect/generated/contact-events.d.ts +4 -4
  146. package/dist/effect/generated/contact-groups.d.ts +1 -1
  147. package/dist/effect/generated/contacts.d.ts +907 -49
  148. package/dist/effect/generated/contacts.js +62 -3
  149. package/dist/effect/generated/conversations.d.ts +1 -1
  150. package/dist/effect/generated/custom-fields.d.ts +1 -1
  151. package/dist/effect/generated/email.d.ts +1 -1
  152. package/dist/effect/generated/events.d.ts +12 -12
  153. package/dist/effect/generated/feedback.d.ts +1 -1
  154. package/dist/effect/generated/index.d.ts +84 -88
  155. package/dist/effect/generated/integrations-catalog.d.ts +3 -3
  156. package/dist/effect/generated/integrations.d.ts +15 -15
  157. package/dist/effect/generated/journeys.d.ts +336 -96
  158. package/dist/effect/generated/journeys.js +3 -1
  159. package/dist/effect/generated/mailboxes.d.ts +93 -95
  160. package/dist/effect/generated/mailboxes.js +21 -25
  161. package/dist/effect/generated/media.d.ts +1 -1
  162. package/dist/effect/generated/messages.d.ts +1 -1
  163. package/dist/effect/generated/namespaces.d.ts +1 -1
  164. package/dist/effect/generated/newsletter-domains.d.ts +1 -1
  165. package/dist/effect/generated/newsletter-issues.d.ts +1 -1
  166. package/dist/effect/generated/newsletters.d.ts +1 -1
  167. package/dist/effect/generated/operations.d.ts +1 -1
  168. package/dist/effect/generated/organizations.d.ts +1 -1
  169. package/dist/effect/generated/policies.d.ts +1 -1
  170. package/dist/effect/generated/scheduled-messages.d.ts +147 -147
  171. package/dist/effect/generated/shared.d.ts +408 -102
  172. package/dist/effect/generated/shared.js +80 -36
  173. package/dist/effect/generated/subscriptions.d.ts +1 -1
  174. package/dist/effect/generated/template-registrations.d.ts +1 -4
  175. package/dist/effect/generated/template-registrations.js +2 -6
  176. package/dist/effect/generated/template-share-links.d.ts +1 -1
  177. package/dist/effect/generated/templates.d.ts +1 -1
  178. package/dist/effect/generated/topic-forms.d.ts +1 -1
  179. package/dist/effect/generated/topics.d.ts +1 -1
  180. package/dist/effect/generated/webhooks.d.ts +1 -1
  181. package/dist/effect/generated/whats-app-flows.d.ts +1 -1
  182. package/dist/effect/generated/whats-app-setup-links.d.ts +1 -1
  183. package/dist/effect/generated/whats-app.d.ts +1 -1
  184. package/dist/effect/generated/whoami.d.ts +1 -1
  185. package/dist/effect/generated-metadata.d.ts +18 -84
  186. package/dist/effect/generated-metadata.js +362 -415
  187. package/dist/effect/index.d.ts +45 -47
  188. package/dist/effect/index.js +1 -3
  189. package/dist/effect/integrations-catalog.d.ts +3 -3
  190. package/dist/effect/integrations-catalog.js +2 -1
  191. package/dist/effect/integrations.d.ts +11 -11
  192. package/dist/effect/integrations.js +2 -1
  193. package/dist/effect/internal/client.d.ts +3 -3
  194. package/dist/effect/internal/client.js +1 -1
  195. package/dist/effect/internal/email-sender.d.ts +4 -4
  196. package/dist/effect/internal/mailbox-events.d.ts +2 -2
  197. package/dist/effect/internal/operation.d.ts +24 -5
  198. package/dist/effect/internal/operation.js +25 -22
  199. package/dist/effect/internal/send.d.ts +4 -4
  200. package/dist/effect/journeys.d.ts +46 -22
  201. package/dist/effect/journeys.js +2 -1
  202. package/dist/effect/mailboxes.d.ts +163 -163
  203. package/dist/effect/mailboxes.js +2 -1
  204. package/dist/effect/media.d.ts +5 -5
  205. package/dist/effect/media.js +2 -1
  206. package/dist/effect/messages.d.ts +17 -17
  207. package/dist/effect/messages.js +2 -1
  208. package/dist/effect/namespaces.d.ts +15 -15
  209. package/dist/effect/namespaces.js +2 -1
  210. package/dist/effect/newsletter-domains.d.ts +6 -6
  211. package/dist/effect/newsletter-domains.js +2 -1
  212. package/dist/effect/newsletter-issues.d.ts +11 -11
  213. package/dist/effect/newsletter-issues.js +2 -1
  214. package/dist/effect/newsletters.d.ts +5 -5
  215. package/dist/effect/newsletters.js +2 -1
  216. package/dist/effect/operations.d.ts +5 -5
  217. package/dist/effect/operations.js +2 -1
  218. package/dist/effect/organizations.d.ts +12 -12
  219. package/dist/effect/organizations.js +2 -1
  220. package/dist/effect/policies.d.ts +3 -3
  221. package/dist/effect/policies.js +2 -1
  222. package/dist/effect/scheduled-messages.d.ts +371 -371
  223. package/dist/effect/scheduled-messages.js +2 -1
  224. package/dist/effect/subscriptions.d.ts +1 -1
  225. package/dist/effect/subscriptions.js +2 -1
  226. package/dist/effect/template-registrations.d.ts +3 -3
  227. package/dist/effect/template-registrations.js +2 -1
  228. package/dist/effect/template-share-links.d.ts +5 -5
  229. package/dist/effect/template-share-links.js +2 -1
  230. package/dist/effect/templates.d.ts +46 -46
  231. package/dist/effect/templates.js +2 -1
  232. package/dist/effect/topic-forms.d.ts +5 -5
  233. package/dist/effect/topic-forms.js +2 -1
  234. package/dist/effect/topics.d.ts +13 -13
  235. package/dist/effect/topics.js +2 -1
  236. package/dist/effect/webhooks.d.ts +16 -16
  237. package/dist/effect/webhooks.js +2 -1
  238. package/dist/effect/whatsapp-flows.d.ts +10 -10
  239. package/dist/effect/whatsapp-flows.js +2 -1
  240. package/dist/effect/whatsapp-setup-links.d.ts +6 -6
  241. package/dist/effect/whatsapp-setup-links.js +2 -1
  242. package/dist/effect/whatsapp.d.ts +12 -12
  243. package/dist/effect/whatsapp.js +2 -1
  244. package/dist/effect/whoami.d.ts +1 -1
  245. package/dist/effect/whoami.js +2 -1
  246. package/dist/index.d.ts +1 -1
  247. package/dist/package.js +1 -1
  248. package/dist/promises/client.d.ts +10 -14
  249. package/dist/promises/client.js +3 -7
  250. package/dist/promises/errors.gen.d.ts +1 -1
  251. package/dist/promises/index.d.ts +5 -5
  252. package/dist/promises/request.d.ts +2 -2
  253. package/dist/promises/request.js +1 -1
  254. package/dist/promises/types.gen.d.ts +1 -1
  255. package/dist/request-policy.d.ts +10 -2
  256. package/dist/request-policy.js +3 -5
  257. package/dist/service-map.d.ts +18 -75
  258. package/package.json +17 -29
  259. package/dist/effect/extension-installations.d.ts +0 -132
  260. package/dist/effect/extension-installations.js +0 -28
  261. package/dist/effect/extensions.d.ts +0 -102
  262. package/dist/effect/extensions.js +0 -20
  263. package/dist/effect/generated/extension-installations.d.ts +0 -2761
  264. package/dist/effect/generated/extension-installations.js +0 -405
  265. package/dist/effect/generated/extensions.d.ts +0 -1037
  266. package/dist/effect/generated/extensions.js +0 -214
  267. package/dist/mailbox/dispatch.d.ts +0 -10
  268. package/dist/mailbox/dispatch.js +0 -66
  269. package/dist/mailbox/index.d.ts +0 -17
  270. package/dist/mailbox/index.js +0 -30
  271. package/dist/mailbox/test.d.ts +0 -25
  272. package/dist/mailbox/test.js +0 -181
  273. package/dist/mailbox/types.d.ts +0 -221
  274. package/dist/mailbox/webhook.d.ts +0 -10
  275. package/dist/mailbox/webhook.js +0 -41
  276. package/dist/service-map.js +0 -830
@@ -1,17 +1,17 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JsonObject, MalformedRequestError, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
4
+ import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JsonObject, MalformedRequestError, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
5
5
  export type JourneyStatus = "draft" | "active" | "paused" | "archived";
6
6
  export declare const JourneyStatus: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
7
7
  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;
@@ -32,7 +32,7 @@ export type JourneyRunTrigger = {
32
32
  export declare const JourneyRunTrigger: Schema.Struct<{
33
33
  readonly eventId: Schema.String;
34
34
  readonly eventName: Schema.String;
35
- readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
35
+ readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
36
36
  }>;
37
37
  export type JourneyListItem = {
38
38
  readonly id: JourneyId;
@@ -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]>;
@@ -119,7 +119,7 @@ export declare const JourneyRun: Schema.Struct<{
119
119
  readonly trigger: Schema.Struct<{
120
120
  readonly eventId: Schema.String;
121
121
  readonly eventName: Schema.String;
122
- readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
122
+ readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
123
123
  }>;
124
124
  readonly enteredAt: Schema.String;
125
125
  readonly endedAt: 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]>;
@@ -191,7 +191,7 @@ export declare const JourneyRunDetail: Schema.Struct<{
191
191
  readonly trigger: Schema.Struct<{
192
192
  readonly eventId: Schema.String;
193
193
  readonly eventName: Schema.String;
194
- readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
194
+ readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
195
195
  }>;
196
196
  readonly enteredAt: Schema.String;
197
197
  readonly endedAt: 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]>;
@@ -225,7 +225,7 @@ export declare const JourneyRunPage: Schema.Struct<{
225
225
  readonly trigger: Schema.Struct<{
226
226
  readonly eventId: Schema.String;
227
227
  readonly eventName: Schema.String;
228
- readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
228
+ readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
229
229
  }>;
230
230
  readonly enteredAt: Schema.String;
231
231
  readonly endedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -266,8 +266,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
272
273
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
273
274
  readonly nodeId: Schema.String;
@@ -276,13 +277,18 @@ export declare const Journey: Schema.Struct<{
276
277
  readonly type: Schema.Literal<"send_whatsapp">;
277
278
  readonly config: Schema.Struct<{
278
279
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
279
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
280
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
280
281
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
281
282
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
282
283
  }>, 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;
@@ -406,7 +412,7 @@ export declare const Journey: Schema.Struct<{
406
412
  }>, Schema.Struct<{
407
413
  readonly type: Schema.Literal<"webhook">;
408
414
  readonly config: Schema.Struct<{
409
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
415
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
410
416
  }>;
411
417
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
412
418
  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,8 +463,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
459
470
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
460
471
  readonly nodeId: Schema.String;
@@ -463,13 +474,18 @@ export declare const JourneyVersion: Schema.Struct<{
463
474
  readonly type: Schema.Literal<"send_whatsapp">;
464
475
  readonly config: Schema.Struct<{
465
476
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
466
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
477
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
467
478
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
468
479
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
469
480
  }>, 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;
@@ -593,7 +609,7 @@ export declare const JourneyVersion: Schema.Struct<{
593
609
  }>, Schema.Struct<{
594
610
  readonly type: Schema.Literal<"webhook">;
595
611
  readonly config: Schema.Struct<{
596
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
612
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
597
613
  }>;
598
614
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
599
615
  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,8 +689,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
675
696
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
676
697
  readonly nodeId: Schema.String;
@@ -679,13 +700,18 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
679
700
  readonly type: Schema.Literal<"send_whatsapp">;
680
701
  readonly config: Schema.Struct<{
681
702
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
682
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
703
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
683
704
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
684
705
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
685
706
  }>, 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;
@@ -809,7 +835,7 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
809
835
  }>, Schema.Struct<{
810
836
  readonly type: Schema.Literal<"webhook">;
811
837
  readonly config: Schema.Struct<{
812
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
838
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
813
839
  }>;
814
840
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
815
841
  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,8 +879,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
855
886
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
856
887
  readonly nodeId: Schema.String;
@@ -859,13 +890,18 @@ export declare const JourneysCreate201: Schema.Struct<{
859
890
  readonly type: Schema.Literal<"send_whatsapp">;
860
891
  readonly config: Schema.Struct<{
861
892
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
862
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
893
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
863
894
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
864
895
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
865
896
  }>, 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;
@@ -989,7 +1025,7 @@ export declare const JourneysCreate201: Schema.Struct<{
989
1025
  }>, Schema.Struct<{
990
1026
  readonly type: Schema.Literal<"webhook">;
991
1027
  readonly config: Schema.Struct<{
992
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
1028
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
993
1029
  }>;
994
1030
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
995
1031
  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,8 +1099,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
1065
1106
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
1066
1107
  readonly nodeId: Schema.String;
@@ -1069,13 +1110,18 @@ export declare const JourneysGet200: Schema.Struct<{
1069
1110
  readonly type: Schema.Literal<"send_whatsapp">;
1070
1111
  readonly config: Schema.Struct<{
1071
1112
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
1072
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
1113
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1073
1114
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
1074
1115
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
1075
1116
  }>, 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;
@@ -1199,7 +1245,7 @@ export declare const JourneysGet200: Schema.Struct<{
1199
1245
  }>, Schema.Struct<{
1200
1246
  readonly type: Schema.Literal<"webhook">;
1201
1247
  readonly config: Schema.Struct<{
1202
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
1248
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1203
1249
  }>;
1204
1250
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
1205
1251
  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,8 +1346,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
1302
1353
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
1303
1354
  readonly nodeId: Schema.String;
@@ -1306,13 +1357,18 @@ export declare const JourneysUpdate200: Schema.Struct<{
1306
1357
  readonly type: Schema.Literal<"send_whatsapp">;
1307
1358
  readonly config: Schema.Struct<{
1308
1359
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
1309
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
1360
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1310
1361
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
1311
1362
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
1312
1363
  }>, 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;
@@ -1436,7 +1492,7 @@ export declare const JourneysUpdate200: Schema.Struct<{
1436
1492
  }>, Schema.Struct<{
1437
1493
  readonly type: Schema.Literal<"webhook">;
1438
1494
  readonly config: Schema.Struct<{
1439
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
1495
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1440
1496
  }>;
1441
1497
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
1442
1498
  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,8 +1560,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
1506
1567
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
1507
1568
  readonly nodeId: Schema.String;
@@ -1510,13 +1571,18 @@ export declare const JourneysArchive200: Schema.Struct<{
1510
1571
  readonly type: Schema.Literal<"send_whatsapp">;
1511
1572
  readonly config: Schema.Struct<{
1512
1573
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
1513
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
1574
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1514
1575
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
1515
1576
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
1516
1577
  }>, 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;
@@ -1640,7 +1706,7 @@ export declare const JourneysArchive200: Schema.Struct<{
1640
1706
  }>, Schema.Struct<{
1641
1707
  readonly type: Schema.Literal<"webhook">;
1642
1708
  readonly config: Schema.Struct<{
1643
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
1709
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1644
1710
  }>;
1645
1711
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
1646
1712
  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,8 +1776,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
1712
1783
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
1713
1784
  readonly nodeId: Schema.String;
@@ -1716,13 +1787,18 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
1716
1787
  readonly type: Schema.Literal<"send_whatsapp">;
1717
1788
  readonly config: Schema.Struct<{
1718
1789
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
1719
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
1790
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1720
1791
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
1721
1792
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
1722
1793
  }>, 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;
@@ -1846,7 +1922,7 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
1846
1922
  }>, Schema.Struct<{
1847
1923
  readonly type: Schema.Literal<"webhook">;
1848
1924
  readonly config: Schema.Struct<{
1849
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
1925
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1850
1926
  }>;
1851
1927
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
1852
1928
  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,8 +1966,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
1892
1973
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
1893
1974
  readonly nodeId: Schema.String;
@@ -1896,13 +1977,18 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
1896
1977
  readonly type: Schema.Literal<"send_whatsapp">;
1897
1978
  readonly config: Schema.Struct<{
1898
1979
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
1899
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
1980
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1900
1981
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
1901
1982
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
1902
1983
  }>, 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;
@@ -2026,7 +2112,7 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
2026
2112
  }>, Schema.Struct<{
2027
2113
  readonly type: Schema.Literal<"webhook">;
2028
2114
  readonly config: Schema.Struct<{
2029
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
2115
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2030
2116
  }>;
2031
2117
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
2032
2118
  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,8 +2186,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
2102
2193
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
2103
2194
  readonly nodeId: Schema.String;
@@ -2106,13 +2197,18 @@ export declare const JourneysPause200: Schema.Struct<{
2106
2197
  readonly type: Schema.Literal<"send_whatsapp">;
2107
2198
  readonly config: Schema.Struct<{
2108
2199
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
2109
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
2200
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2110
2201
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
2111
2202
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
2112
2203
  }>, 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;
@@ -2236,7 +2332,7 @@ export declare const JourneysPause200: Schema.Struct<{
2236
2332
  }>, Schema.Struct<{
2237
2333
  readonly type: Schema.Literal<"webhook">;
2238
2334
  readonly config: Schema.Struct<{
2239
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
2335
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2240
2336
  }>;
2241
2337
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
2242
2338
  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,8 +2408,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
2314
2415
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
2315
2416
  readonly nodeId: Schema.String;
@@ -2318,13 +2419,18 @@ export declare const JourneysPublish200: Schema.Struct<{
2318
2419
  readonly type: Schema.Literal<"send_whatsapp">;
2319
2420
  readonly config: Schema.Struct<{
2320
2421
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
2321
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
2422
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2322
2423
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
2323
2424
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
2324
2425
  }>, 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;
@@ -2448,7 +2554,7 @@ export declare const JourneysPublish200: Schema.Struct<{
2448
2554
  }>, Schema.Struct<{
2449
2555
  readonly type: Schema.Literal<"webhook">;
2450
2556
  readonly config: Schema.Struct<{
2451
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
2557
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2452
2558
  }>;
2453
2559
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
2454
2560
  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,8 +2628,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
2524
2635
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
2525
2636
  readonly nodeId: Schema.String;
@@ -2528,13 +2639,18 @@ export declare const JourneysResume200: Schema.Struct<{
2528
2639
  readonly type: Schema.Literal<"send_whatsapp">;
2529
2640
  readonly config: Schema.Struct<{
2530
2641
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
2531
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
2642
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2532
2643
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
2533
2644
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
2534
2645
  }>, 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;
@@ -2658,7 +2774,7 @@ export declare const JourneysResume200: Schema.Struct<{
2658
2774
  }>, Schema.Struct<{
2659
2775
  readonly type: Schema.Literal<"webhook">;
2660
2776
  readonly config: Schema.Struct<{
2661
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
2777
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2662
2778
  }>;
2663
2779
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
2664
2780
  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]>;
@@ -2732,7 +2852,7 @@ export declare const JourneysListRuns200: Schema.Struct<{
2732
2852
  readonly trigger: Schema.Struct<{
2733
2853
  readonly eventId: Schema.String;
2734
2854
  readonly eventName: Schema.String;
2735
- readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
2855
+ readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
2736
2856
  }>;
2737
2857
  readonly enteredAt: Schema.String;
2738
2858
  readonly endedAt: 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]>;
@@ -2776,7 +2896,7 @@ export declare const JourneysGetRun200: Schema.Struct<{
2776
2896
  readonly trigger: Schema.Struct<{
2777
2897
  readonly eventId: Schema.String;
2778
2898
  readonly eventName: Schema.String;
2779
- readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
2899
+ readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
2780
2900
  }>;
2781
2901
  readonly enteredAt: Schema.String;
2782
2902
  readonly endedAt: 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,8 +2997,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
2883
3004
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
2884
3005
  readonly nodeId: Schema.String;
@@ -2887,13 +3008,18 @@ export declare const JourneysGetVersion200: Schema.Struct<{
2887
3008
  readonly type: Schema.Literal<"send_whatsapp">;
2888
3009
  readonly config: Schema.Struct<{
2889
3010
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
2890
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
3011
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2891
3012
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
2892
3013
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
2893
3014
  }>, 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;
@@ -3017,7 +3143,7 @@ export declare const JourneysGetVersion200: Schema.Struct<{
3017
3143
  }>, Schema.Struct<{
3018
3144
  readonly type: Schema.Literal<"webhook">;
3019
3145
  readonly config: Schema.Struct<{
3020
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
3146
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3021
3147
  }>;
3022
3148
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
3023
3149
  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,8 +3203,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
3079
3210
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
3080
3211
  readonly nodeId: Schema.String;
@@ -3083,13 +3214,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
3083
3214
  readonly type: Schema.Literal<"send_whatsapp">;
3084
3215
  readonly config: Schema.Struct<{
3085
3216
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
3086
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
3217
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3087
3218
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
3088
3219
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
3089
3220
  }>, Schema.Struct<{
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;
@@ -3213,7 +3349,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
3213
3349
  }>, Schema.Struct<{
3214
3350
  readonly type: Schema.Literal<"webhook">;
3215
3351
  readonly config: Schema.Struct<{
3216
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
3352
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3217
3353
  }>;
3218
3354
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
3219
3355
  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,8 +3512,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
3378
3519
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
3379
3520
  readonly nodeId: Schema.String;
@@ -3382,13 +3523,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
3382
3523
  readonly type: Schema.Literal<"send_whatsapp">;
3383
3524
  readonly config: Schema.Struct<{
3384
3525
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
3385
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
3526
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3386
3527
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
3387
3528
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
3388
3529
  }>, Schema.Struct<{
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;
@@ -3512,7 +3658,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
3512
3658
  }>, Schema.Struct<{
3513
3659
  readonly type: Schema.Literal<"webhook">;
3514
3660
  readonly config: Schema.Struct<{
3515
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
3661
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3516
3662
  }>;
3517
3663
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
3518
3664
  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,8 +3700,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
3556
3707
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
3557
3708
  readonly nodeId: Schema.String;
@@ -3560,13 +3711,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
3560
3711
  readonly type: Schema.Literal<"send_whatsapp">;
3561
3712
  readonly config: Schema.Struct<{
3562
3713
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
3563
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
3714
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3564
3715
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
3565
3716
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
3566
3717
  }>, Schema.Struct<{
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;
@@ -3690,7 +3846,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
3690
3846
  }>, Schema.Struct<{
3691
3847
  readonly type: Schema.Literal<"webhook">;
3692
3848
  readonly config: Schema.Struct<{
3693
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
3849
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3694
3850
  }>;
3695
3851
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
3696
3852
  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,8 +4038,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
3884
4045
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
3885
4046
  readonly nodeId: Schema.String;
@@ -3888,13 +4049,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
3888
4049
  readonly type: Schema.Literal<"send_whatsapp">;
3889
4050
  readonly config: Schema.Struct<{
3890
4051
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
3891
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
4052
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3892
4053
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
3893
4054
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
3894
4055
  }>, Schema.Struct<{
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;
@@ -4018,7 +4184,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
4018
4184
  }>, Schema.Struct<{
4019
4185
  readonly type: Schema.Literal<"webhook">;
4020
4186
  readonly config: Schema.Struct<{
4021
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
4187
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
4022
4188
  }>;
4023
4189
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
4024
4190
  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]>;
@@ -4154,7 +4324,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
4154
4324
  readonly trigger: Schema.Struct<{
4155
4325
  readonly eventId: Schema.String;
4156
4326
  readonly eventName: Schema.String;
4157
- readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
4327
+ readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
4158
4328
  }>;
4159
4329
  readonly enteredAt: Schema.String;
4160
4330
  readonly endedAt: 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,8 +4462,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
4298
4469
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
4299
4470
  readonly nodeId: Schema.String;
@@ -4302,13 +4473,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
4302
4473
  readonly type: Schema.Literal<"send_whatsapp">;
4303
4474
  readonly config: Schema.Struct<{
4304
4475
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
4305
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
4476
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
4306
4477
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
4307
4478
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
4308
4479
  }>, Schema.Struct<{
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;
@@ -4432,7 +4608,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
4432
4608
  }>, Schema.Struct<{
4433
4609
  readonly type: Schema.Literal<"webhook">;
4434
4610
  readonly config: Schema.Struct<{
4435
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
4611
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
4436
4612
  }>;
4437
4613
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
4438
4614
  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]>;
@@ -4665,7 +4845,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
4665
4845
  readonly trigger: Schema.Struct<{
4666
4846
  readonly eventId: Schema.String;
4667
4847
  readonly eventName: Schema.String;
4668
- readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
4848
+ readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
4669
4849
  }>;
4670
4850
  readonly enteredAt: Schema.String;
4671
4851
  readonly endedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -4796,8 +4976,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
4802
4983
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
4803
4984
  readonly nodeId: Schema.String;
@@ -4806,13 +4987,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
4806
4987
  readonly type: Schema.Literal<"send_whatsapp">;
4807
4988
  readonly config: Schema.Struct<{
4808
4989
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
4809
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
4990
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
4810
4991
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
4811
4992
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
4812
4993
  }>, Schema.Struct<{
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;
@@ -4936,7 +5122,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
4936
5122
  }>, Schema.Struct<{
4937
5123
  readonly type: Schema.Literal<"webhook">;
4938
5124
  readonly config: Schema.Struct<{
4939
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
5125
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
4940
5126
  }>;
4941
5127
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
4942
5128
  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,8 +5292,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
5108
5299
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
5109
5300
  readonly nodeId: Schema.String;
@@ -5112,13 +5303,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
5112
5303
  readonly type: Schema.Literal<"send_whatsapp">;
5113
5304
  readonly config: Schema.Struct<{
5114
5305
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
5115
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
5306
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5116
5307
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
5117
5308
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
5118
5309
  }>, Schema.Struct<{
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;
@@ -5242,7 +5438,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
5242
5438
  }>, Schema.Struct<{
5243
5439
  readonly type: Schema.Literal<"webhook">;
5244
5440
  readonly config: Schema.Struct<{
5245
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
5441
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5246
5442
  }>;
5247
5443
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
5248
5444
  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,8 +5752,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
5558
5759
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
5559
5760
  readonly nodeId: Schema.String;
@@ -5562,13 +5763,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
5562
5763
  readonly type: Schema.Literal<"send_whatsapp">;
5563
5764
  readonly config: Schema.Struct<{
5564
5765
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
5565
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
5766
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5566
5767
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
5567
5768
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
5568
5769
  }>, Schema.Struct<{
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;
@@ -5692,7 +5898,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
5692
5898
  }>, Schema.Struct<{
5693
5899
  readonly type: Schema.Literal<"webhook">;
5694
5900
  readonly config: Schema.Struct<{
5695
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
5901
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5696
5902
  }>;
5697
5903
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
5698
5904
  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,8 +5940,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
5736
5947
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
5737
5948
  readonly nodeId: Schema.String;
@@ -5740,13 +5951,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
5740
5951
  readonly type: Schema.Literal<"send_whatsapp">;
5741
5952
  readonly config: Schema.Struct<{
5742
5953
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
5743
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
5954
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5744
5955
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
5745
5956
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
5746
5957
  }>, Schema.Struct<{
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;
@@ -5870,7 +6086,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
5870
6086
  }>, Schema.Struct<{
5871
6087
  readonly type: Schema.Literal<"webhook">;
5872
6088
  readonly config: Schema.Struct<{
5873
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
6089
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5874
6090
  }>;
5875
6091
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
5876
6092
  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,8 +6278,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
6064
6285
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
6065
6286
  readonly nodeId: Schema.String;
@@ -6068,13 +6289,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
6068
6289
  readonly type: Schema.Literal<"send_whatsapp">;
6069
6290
  readonly config: Schema.Struct<{
6070
6291
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
6071
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
6292
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
6072
6293
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
6073
6294
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
6074
6295
  }>, Schema.Struct<{
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;
@@ -6198,7 +6424,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
6198
6424
  }>, Schema.Struct<{
6199
6425
  readonly type: Schema.Literal<"webhook">;
6200
6426
  readonly config: Schema.Struct<{
6201
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
6427
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
6202
6428
  }>;
6203
6429
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
6204
6430
  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,8 +6736,9 @@ 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
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
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
  }>;
6512
6743
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
6513
6744
  readonly nodeId: Schema.String;
@@ -6516,13 +6747,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
6516
6747
  readonly type: Schema.Literal<"send_whatsapp">;
6517
6748
  readonly config: Schema.Struct<{
6518
6749
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
6519
- readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
6750
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
6520
6751
  readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
6521
6752
  readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
6522
6753
  }>, Schema.Struct<{
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;
@@ -6646,7 +6882,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
6646
6882
  }>, Schema.Struct<{
6647
6883
  readonly type: Schema.Literal<"webhook">;
6648
6884
  readonly config: Schema.Struct<{
6649
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
6885
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
6650
6886
  }>;
6651
6887
  readonly next: Schema.Tuple<readonly [Schema.Struct<{
6652
6888
  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]>;