@trycourier/courier 7.10.2 → 7.11.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 (313) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts +2 -2
  9. package/client.d.mts.map +1 -1
  10. package/client.d.ts +2 -2
  11. package/client.d.ts.map +1 -1
  12. package/client.js +12 -1
  13. package/client.js.map +1 -1
  14. package/client.mjs +12 -1
  15. package/client.mjs.map +1 -1
  16. package/core/api-promise.d.mts.map +1 -1
  17. package/core/api-promise.d.ts.map +1 -1
  18. package/core/api-promise.mjs.map +1 -1
  19. package/core/error.mjs.map +1 -1
  20. package/core/resource.d.mts.map +1 -1
  21. package/core/resource.d.ts.map +1 -1
  22. package/core/uploads.d.mts.map +1 -1
  23. package/core/uploads.d.ts.map +1 -1
  24. package/core/uploads.mjs.map +1 -1
  25. package/error.d.mts +1 -0
  26. package/error.d.mts.map +1 -1
  27. package/error.d.ts +1 -0
  28. package/error.d.ts.map +1 -1
  29. package/error.mjs +1 -0
  30. package/error.mjs.map +1 -1
  31. package/index.d.mts.map +1 -1
  32. package/index.d.ts.map +1 -1
  33. package/index.mjs.map +1 -1
  34. package/internal/detect-platform.mjs.map +1 -1
  35. package/internal/headers.mjs.map +1 -1
  36. package/internal/parse.d.mts.map +1 -1
  37. package/internal/parse.d.ts.map +1 -1
  38. package/internal/parse.mjs.map +1 -1
  39. package/internal/qs/formats.d.mts.map +1 -1
  40. package/internal/qs/formats.d.ts.map +1 -1
  41. package/internal/qs/index.d.mts +2 -2
  42. package/internal/qs/index.d.mts.map +1 -1
  43. package/internal/qs/index.d.ts +2 -2
  44. package/internal/qs/index.d.ts.map +1 -1
  45. package/internal/qs/index.mjs.map +1 -1
  46. package/internal/qs/stringify.d.mts.map +1 -1
  47. package/internal/qs/stringify.d.ts.map +1 -1
  48. package/internal/qs/stringify.mjs.map +1 -1
  49. package/internal/qs/utils.d.mts.map +1 -1
  50. package/internal/qs/utils.d.ts.map +1 -1
  51. package/internal/qs/utils.mjs.map +1 -1
  52. package/internal/request-options.d.mts.map +1 -1
  53. package/internal/request-options.d.ts.map +1 -1
  54. package/internal/shims.d.mts +6 -0
  55. package/internal/shims.d.mts.map +1 -1
  56. package/internal/shims.d.ts +6 -0
  57. package/internal/shims.d.ts.map +1 -1
  58. package/internal/to-file.d.mts.map +1 -1
  59. package/internal/to-file.d.ts.map +1 -1
  60. package/internal/to-file.mjs.map +1 -1
  61. package/internal/types.d.mts +10 -10
  62. package/internal/types.d.mts.map +1 -1
  63. package/internal/types.d.ts +10 -10
  64. package/internal/types.d.ts.map +1 -1
  65. package/internal/uploads.d.mts.map +1 -1
  66. package/internal/uploads.d.ts.map +1 -1
  67. package/internal/uploads.mjs.map +1 -1
  68. package/internal/utils/base64.mjs.map +1 -1
  69. package/internal/utils/log.d.mts.map +1 -1
  70. package/internal/utils/log.d.ts.map +1 -1
  71. package/internal/utils/log.js +2 -0
  72. package/internal/utils/log.js.map +1 -1
  73. package/internal/utils/log.mjs +2 -0
  74. package/internal/utils/log.mjs.map +1 -1
  75. package/internal/utils/path.mjs.map +1 -1
  76. package/internal/utils/query.mjs.map +1 -1
  77. package/internal/utils/values.mjs.map +1 -1
  78. package/internal/utils.d.mts.map +1 -1
  79. package/internal/utils.d.ts.map +1 -1
  80. package/internal/utils.mjs.map +1 -1
  81. package/package.json +1 -1
  82. package/resource.d.mts +1 -0
  83. package/resource.d.mts.map +1 -1
  84. package/resource.d.ts +1 -0
  85. package/resource.d.ts.map +1 -1
  86. package/resource.mjs +1 -0
  87. package/resource.mjs.map +1 -1
  88. package/resources/audiences.d.mts.map +1 -1
  89. package/resources/audiences.d.ts.map +1 -1
  90. package/resources/audiences.mjs.map +1 -1
  91. package/resources/audit-events.d.mts.map +1 -1
  92. package/resources/audit-events.d.ts.map +1 -1
  93. package/resources/audit-events.mjs.map +1 -1
  94. package/resources/auth.d.mts.map +1 -1
  95. package/resources/auth.d.ts.map +1 -1
  96. package/resources/auth.mjs.map +1 -1
  97. package/resources/automations/automations.d.mts.map +1 -1
  98. package/resources/automations/automations.d.ts.map +1 -1
  99. package/resources/automations/automations.mjs.map +1 -1
  100. package/resources/automations/index.d.mts.map +1 -1
  101. package/resources/automations/index.d.ts.map +1 -1
  102. package/resources/automations/index.mjs.map +1 -1
  103. package/resources/automations/invoke.d.mts.map +1 -1
  104. package/resources/automations/invoke.d.ts.map +1 -1
  105. package/resources/automations/invoke.mjs.map +1 -1
  106. package/resources/automations.d.mts.map +1 -1
  107. package/resources/automations.d.ts.map +1 -1
  108. package/resources/automations.mjs.map +1 -1
  109. package/resources/brands.d.mts.map +1 -1
  110. package/resources/brands.d.ts.map +1 -1
  111. package/resources/brands.mjs.map +1 -1
  112. package/resources/bulk.d.mts.map +1 -1
  113. package/resources/bulk.d.ts.map +1 -1
  114. package/resources/bulk.mjs.map +1 -1
  115. package/resources/inbound.d.mts.map +1 -1
  116. package/resources/inbound.d.ts.map +1 -1
  117. package/resources/inbound.mjs.map +1 -1
  118. package/resources/index.d.mts +1 -1
  119. package/resources/index.d.mts.map +1 -1
  120. package/resources/index.d.ts +1 -1
  121. package/resources/index.d.ts.map +1 -1
  122. package/resources/index.js +1 -1
  123. package/resources/index.js.map +1 -1
  124. package/resources/index.mjs +1 -1
  125. package/resources/index.mjs.map +1 -1
  126. package/resources/journeys/index.d.mts +3 -0
  127. package/resources/journeys/index.d.mts.map +1 -0
  128. package/resources/journeys/index.d.ts +3 -0
  129. package/resources/journeys/index.d.ts.map +1 -0
  130. package/resources/journeys/index.js +9 -0
  131. package/resources/journeys/index.js.map +1 -0
  132. package/resources/journeys/index.mjs +4 -0
  133. package/resources/journeys/index.mjs.map +1 -0
  134. package/resources/journeys/journeys.d.mts +752 -0
  135. package/resources/journeys/journeys.d.mts.map +1 -0
  136. package/resources/journeys/journeys.d.ts +752 -0
  137. package/resources/journeys/journeys.d.ts.map +1 -0
  138. package/resources/journeys/journeys.js +148 -0
  139. package/resources/journeys/journeys.js.map +1 -0
  140. package/resources/journeys/journeys.mjs +143 -0
  141. package/resources/journeys/journeys.mjs.map +1 -0
  142. package/resources/journeys/templates.d.mts +219 -0
  143. package/resources/journeys/templates.d.mts.map +1 -0
  144. package/resources/journeys/templates.d.ts +219 -0
  145. package/resources/journeys/templates.d.ts.map +1 -0
  146. package/resources/journeys/templates.js +142 -0
  147. package/resources/journeys/templates.js.map +1 -0
  148. package/resources/journeys/templates.mjs +138 -0
  149. package/resources/journeys/templates.mjs.map +1 -0
  150. package/resources/journeys.d.mts +1 -142
  151. package/resources/journeys.d.mts.map +1 -1
  152. package/resources/journeys.d.ts +1 -142
  153. package/resources/journeys.d.ts.map +1 -1
  154. package/resources/journeys.js +2 -34
  155. package/resources/journeys.js.map +1 -1
  156. package/resources/journeys.mjs +1 -32
  157. package/resources/journeys.mjs.map +1 -1
  158. package/resources/lists/index.d.mts.map +1 -1
  159. package/resources/lists/index.d.ts.map +1 -1
  160. package/resources/lists/index.mjs.map +1 -1
  161. package/resources/lists/lists.d.mts.map +1 -1
  162. package/resources/lists/lists.d.ts.map +1 -1
  163. package/resources/lists/lists.mjs.map +1 -1
  164. package/resources/lists/subscriptions.d.mts.map +1 -1
  165. package/resources/lists/subscriptions.d.ts.map +1 -1
  166. package/resources/lists/subscriptions.mjs.map +1 -1
  167. package/resources/lists.d.mts.map +1 -1
  168. package/resources/lists.d.ts.map +1 -1
  169. package/resources/lists.mjs.map +1 -1
  170. package/resources/messages.d.mts.map +1 -1
  171. package/resources/messages.d.ts.map +1 -1
  172. package/resources/messages.mjs.map +1 -1
  173. package/resources/notifications/checks.d.mts.map +1 -1
  174. package/resources/notifications/checks.d.ts.map +1 -1
  175. package/resources/notifications/checks.mjs.map +1 -1
  176. package/resources/notifications/index.d.mts.map +1 -1
  177. package/resources/notifications/index.d.ts.map +1 -1
  178. package/resources/notifications/index.mjs.map +1 -1
  179. package/resources/notifications/notifications.d.mts.map +1 -1
  180. package/resources/notifications/notifications.d.ts.map +1 -1
  181. package/resources/notifications/notifications.mjs.map +1 -1
  182. package/resources/notifications.d.mts.map +1 -1
  183. package/resources/notifications.d.ts.map +1 -1
  184. package/resources/notifications.mjs.map +1 -1
  185. package/resources/profiles/index.d.mts.map +1 -1
  186. package/resources/profiles/index.d.ts.map +1 -1
  187. package/resources/profiles/index.mjs.map +1 -1
  188. package/resources/profiles/lists.d.mts.map +1 -1
  189. package/resources/profiles/lists.d.ts.map +1 -1
  190. package/resources/profiles/lists.mjs.map +1 -1
  191. package/resources/profiles/profiles.d.mts.map +1 -1
  192. package/resources/profiles/profiles.d.ts.map +1 -1
  193. package/resources/profiles/profiles.mjs.map +1 -1
  194. package/resources/profiles.d.mts.map +1 -1
  195. package/resources/profiles.d.ts.map +1 -1
  196. package/resources/profiles.mjs.map +1 -1
  197. package/resources/providers/catalog.d.mts.map +1 -1
  198. package/resources/providers/catalog.d.ts.map +1 -1
  199. package/resources/providers/catalog.mjs.map +1 -1
  200. package/resources/providers/index.d.mts.map +1 -1
  201. package/resources/providers/index.d.ts.map +1 -1
  202. package/resources/providers/index.mjs.map +1 -1
  203. package/resources/providers/providers.d.mts.map +1 -1
  204. package/resources/providers/providers.d.ts.map +1 -1
  205. package/resources/providers/providers.mjs.map +1 -1
  206. package/resources/providers.d.mts.map +1 -1
  207. package/resources/providers.d.ts.map +1 -1
  208. package/resources/providers.mjs.map +1 -1
  209. package/resources/requests.d.mts.map +1 -1
  210. package/resources/requests.d.ts.map +1 -1
  211. package/resources/requests.mjs.map +1 -1
  212. package/resources/routing-strategies.d.mts.map +1 -1
  213. package/resources/routing-strategies.d.ts.map +1 -1
  214. package/resources/routing-strategies.mjs.map +1 -1
  215. package/resources/send.d.mts.map +1 -1
  216. package/resources/send.d.ts.map +1 -1
  217. package/resources/send.mjs.map +1 -1
  218. package/resources/shared.d.mts.map +1 -1
  219. package/resources/shared.d.ts.map +1 -1
  220. package/resources/tenants/index.d.mts +1 -1
  221. package/resources/tenants/index.d.mts.map +1 -1
  222. package/resources/tenants/index.d.ts +1 -1
  223. package/resources/tenants/index.d.ts.map +1 -1
  224. package/resources/tenants/index.js.map +1 -1
  225. package/resources/tenants/index.mjs.map +1 -1
  226. package/resources/tenants/preferences/index.d.mts.map +1 -1
  227. package/resources/tenants/preferences/index.d.ts.map +1 -1
  228. package/resources/tenants/preferences/index.mjs.map +1 -1
  229. package/resources/tenants/preferences/items.d.mts.map +1 -1
  230. package/resources/tenants/preferences/items.d.ts.map +1 -1
  231. package/resources/tenants/preferences/items.mjs.map +1 -1
  232. package/resources/tenants/preferences/preferences.d.mts.map +1 -1
  233. package/resources/tenants/preferences/preferences.d.ts.map +1 -1
  234. package/resources/tenants/preferences/preferences.mjs.map +1 -1
  235. package/resources/tenants/preferences.d.mts.map +1 -1
  236. package/resources/tenants/preferences.d.ts.map +1 -1
  237. package/resources/tenants/preferences.mjs.map +1 -1
  238. package/resources/tenants/templates/index.d.mts +1 -1
  239. package/resources/tenants/templates/index.d.mts.map +1 -1
  240. package/resources/tenants/templates/index.d.ts +1 -1
  241. package/resources/tenants/templates/index.d.ts.map +1 -1
  242. package/resources/tenants/templates/index.js.map +1 -1
  243. package/resources/tenants/templates/index.mjs.map +1 -1
  244. package/resources/tenants/templates/templates.d.mts +23 -1
  245. package/resources/tenants/templates/templates.d.mts.map +1 -1
  246. package/resources/tenants/templates/templates.d.ts +23 -1
  247. package/resources/tenants/templates/templates.d.ts.map +1 -1
  248. package/resources/tenants/templates/templates.js +23 -0
  249. package/resources/tenants/templates/templates.js.map +1 -1
  250. package/resources/tenants/templates/templates.mjs +23 -0
  251. package/resources/tenants/templates/templates.mjs.map +1 -1
  252. package/resources/tenants/templates/versions.d.mts.map +1 -1
  253. package/resources/tenants/templates/versions.d.ts.map +1 -1
  254. package/resources/tenants/templates/versions.mjs.map +1 -1
  255. package/resources/tenants/templates.d.mts.map +1 -1
  256. package/resources/tenants/templates.d.ts.map +1 -1
  257. package/resources/tenants/templates.mjs.map +1 -1
  258. package/resources/tenants/tenants.d.mts +2 -2
  259. package/resources/tenants/tenants.d.mts.map +1 -1
  260. package/resources/tenants/tenants.d.ts +2 -2
  261. package/resources/tenants/tenants.d.ts.map +1 -1
  262. package/resources/tenants/tenants.js.map +1 -1
  263. package/resources/tenants/tenants.mjs.map +1 -1
  264. package/resources/tenants.d.mts.map +1 -1
  265. package/resources/tenants.d.ts.map +1 -1
  266. package/resources/tenants.mjs.map +1 -1
  267. package/resources/translations.d.mts.map +1 -1
  268. package/resources/translations.d.ts.map +1 -1
  269. package/resources/translations.mjs.map +1 -1
  270. package/resources/users/index.d.mts.map +1 -1
  271. package/resources/users/index.d.ts.map +1 -1
  272. package/resources/users/index.mjs.map +1 -1
  273. package/resources/users/preferences.d.mts.map +1 -1
  274. package/resources/users/preferences.d.ts.map +1 -1
  275. package/resources/users/preferences.mjs.map +1 -1
  276. package/resources/users/tenants.d.mts.map +1 -1
  277. package/resources/users/tenants.d.ts.map +1 -1
  278. package/resources/users/tenants.mjs.map +1 -1
  279. package/resources/users/tokens.d.mts.map +1 -1
  280. package/resources/users/tokens.d.ts.map +1 -1
  281. package/resources/users/tokens.mjs.map +1 -1
  282. package/resources/users/users.d.mts.map +1 -1
  283. package/resources/users/users.d.ts.map +1 -1
  284. package/resources/users/users.mjs.map +1 -1
  285. package/resources/users.d.mts.map +1 -1
  286. package/resources/users.d.ts.map +1 -1
  287. package/resources/users.mjs.map +1 -1
  288. package/resources.d.mts.map +1 -1
  289. package/resources.d.ts.map +1 -1
  290. package/resources.mjs.map +1 -1
  291. package/src/client.ts +87 -9
  292. package/src/internal/types.ts +6 -8
  293. package/src/internal/utils/log.ts +2 -0
  294. package/src/resources/index.ts +34 -1
  295. package/src/resources/journeys/index.ts +54 -0
  296. package/src/resources/journeys/journeys.ts +1047 -0
  297. package/src/resources/journeys/templates.ts +318 -0
  298. package/src/resources/journeys.ts +1 -172
  299. package/src/resources/tenants/index.ts +1 -0
  300. package/src/resources/tenants/templates/index.ts +1 -0
  301. package/src/resources/tenants/templates/templates.ts +32 -0
  302. package/src/resources/tenants/tenants.ts +2 -0
  303. package/src/version.ts +1 -1
  304. package/uploads.d.mts +1 -0
  305. package/uploads.d.mts.map +1 -1
  306. package/uploads.d.ts +1 -0
  307. package/uploads.d.ts.map +1 -1
  308. package/uploads.mjs +1 -0
  309. package/uploads.mjs.map +1 -1
  310. package/version.d.mts +1 -1
  311. package/version.d.ts +1 -1
  312. package/version.js +1 -1
  313. package/version.mjs +1 -1
@@ -0,0 +1,1047 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as JourneysAPI from './journeys';
5
+ import * as Shared from '../shared';
6
+ import * as TemplatesAPI from './templates';
7
+ import {
8
+ TemplateArchiveParams,
9
+ TemplateCreateParams,
10
+ TemplateListParams,
11
+ TemplateListVersionsParams,
12
+ TemplatePublishParams,
13
+ TemplateReplaceParams,
14
+ TemplateRetrieveParams,
15
+ Templates,
16
+ } from './templates';
17
+ import { APIPromise } from '../../core/api-promise';
18
+ import { buildHeaders } from '../../internal/headers';
19
+ import { RequestOptions } from '../../internal/request-options';
20
+ import { path } from '../../internal/utils/path';
21
+
22
+ export class Journeys extends APIResource {
23
+ templates: TemplatesAPI.Templates = new TemplatesAPI.Templates(this._client);
24
+
25
+ /**
26
+ * Create a journey. Defaults to `DRAFT` state; pass `state: "PUBLISHED"` to
27
+ * publish on create. Send nodes are not allowed on `POST`. The standard flow is:
28
+ * create the journey shell here, add notification templates with
29
+ * `POST /journeys/{templateId}/templates`, then wire them into the journey with
30
+ * `PUT /journeys/{templateId}`. Call `POST /journeys/{templateId}/publish` to
31
+ * publish a draft after the fact.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const journeyResponse = await client.journeys.create({
36
+ * name: 'Welcome Journey',
37
+ * nodes: [
38
+ * {
39
+ * id: 'trigger-1',
40
+ * type: 'trigger',
41
+ * trigger_type: 'api',
42
+ * },
43
+ * { id: 'send-1', type: 'send' },
44
+ * ],
45
+ * enabled: true,
46
+ * state: 'DRAFT',
47
+ * });
48
+ * ```
49
+ */
50
+ create(body: JourneyCreateParams, options?: RequestOptions): APIPromise<JourneyResponse> {
51
+ return this._client.post('/journeys', { body, ...options });
52
+ }
53
+
54
+ /**
55
+ * Fetch a journey by id. Pass `?version=draft` (default `published`) to retrieve
56
+ * the working draft, or `?version=vN` to retrieve a historical version.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const journeyResponse = await client.journeys.retrieve('x');
61
+ * ```
62
+ */
63
+ retrieve(
64
+ templateID: string,
65
+ query: JourneyRetrieveParams | null | undefined = {},
66
+ options?: RequestOptions,
67
+ ): APIPromise<JourneyResponse> {
68
+ return this._client.get(path`/journeys/${templateID}`, { query, ...options });
69
+ }
70
+
71
+ /**
72
+ * Get the list of journeys.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const journeysListResponse = await client.journeys.list();
77
+ * ```
78
+ */
79
+ list(
80
+ query: JourneyListParams | null | undefined = {},
81
+ options?: RequestOptions,
82
+ ): APIPromise<JourneysListResponse> {
83
+ return this._client.get('/journeys', { query, ...options });
84
+ }
85
+
86
+ /**
87
+ * Archive a journey. Archived journeys cannot be invoked. Existing journey runs
88
+ * continue to completion.
89
+ *
90
+ * @example
91
+ * ```ts
92
+ * await client.journeys.archive('x');
93
+ * ```
94
+ */
95
+ archive(templateID: string, options?: RequestOptions): APIPromise<void> {
96
+ return this._client.delete(path`/journeys/${templateID}`, {
97
+ ...options,
98
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
99
+ });
100
+ }
101
+
102
+ /**
103
+ * Invoke a journey by id or alias to start a new run. The response includes a
104
+ * `runId` identifying the run.
105
+ *
106
+ * @example
107
+ * ```ts
108
+ * const journeysInvokeResponse = await client.journeys.invoke(
109
+ * 'templateId',
110
+ * {
111
+ * data: { order_id: 'order-456', amount: 99.99 },
112
+ * user_id: 'user-123',
113
+ * },
114
+ * );
115
+ * ```
116
+ */
117
+ invoke(
118
+ templateID: string,
119
+ body: JourneyInvokeParams,
120
+ options?: RequestOptions,
121
+ ): APIPromise<JourneysInvokeResponse> {
122
+ return this._client.post(path`/journeys/${templateID}/invoke`, { body, ...options });
123
+ }
124
+
125
+ /**
126
+ * List published versions of a journey, ordered most recent first.
127
+ *
128
+ * @example
129
+ * ```ts
130
+ * const journeyVersionsListResponse =
131
+ * await client.journeys.listVersions('x');
132
+ * ```
133
+ */
134
+ listVersions(templateID: string, options?: RequestOptions): APIPromise<JourneyVersionsListResponse> {
135
+ return this._client.get(path`/journeys/${templateID}/versions`, options);
136
+ }
137
+
138
+ /**
139
+ * Publish the current draft as a new version. Body is optional; pass
140
+ * `{ "version": "vN" }` to roll back to a prior version instead. Returns 404 if
141
+ * the journey has no draft to publish.
142
+ *
143
+ * @example
144
+ * ```ts
145
+ * const journeyResponse = await client.journeys.publish('x');
146
+ * ```
147
+ */
148
+ publish(
149
+ templateID: string,
150
+ body: JourneyPublishParams | null | undefined = {},
151
+ options?: RequestOptions,
152
+ ): APIPromise<JourneyResponse> {
153
+ return this._client.post(path`/journeys/${templateID}/publish`, { body, ...options });
154
+ }
155
+
156
+ /**
157
+ * Replace the journey draft. Updates the working draft only; call
158
+ * `POST /journeys/{templateId}/publish` to make it live, or pass
159
+ * `state: "PUBLISHED"` in this request to publish immediately. Send-node
160
+ * `template` ids must already exist and be scoped to this journey, and node ids
161
+ * must not be claimed by another journey.
162
+ *
163
+ * @example
164
+ * ```ts
165
+ * const journeyResponse = await client.journeys.replace('x', {
166
+ * name: 'Welcome Journey v2',
167
+ * nodes: [],
168
+ * enabled: true,
169
+ * state: 'DRAFT',
170
+ * });
171
+ * ```
172
+ */
173
+ replace(
174
+ templateID: string,
175
+ body: JourneyReplaceParams,
176
+ options?: RequestOptions,
177
+ ): APIPromise<JourneyResponse> {
178
+ return this._client.put(path`/journeys/${templateID}`, { body, ...options });
179
+ }
180
+ }
181
+
182
+ /**
183
+ * Request body for creating a journey.
184
+ */
185
+ export interface CreateJourneyRequest {
186
+ name: string;
187
+
188
+ nodes: Array<JourneyNode>;
189
+
190
+ enabled?: boolean;
191
+
192
+ /**
193
+ * Lifecycle state of a journey.
194
+ */
195
+ state?: JourneyState;
196
+ }
197
+
198
+ /**
199
+ * A journey template representing an automation workflow.
200
+ */
201
+ export interface Journey {
202
+ /**
203
+ * The unique identifier of the journey.
204
+ */
205
+ id: string;
206
+
207
+ /**
208
+ * The name of the journey.
209
+ */
210
+ name: string;
211
+
212
+ /**
213
+ * The version of the journey (published or draft).
214
+ */
215
+ version: 'published' | 'draft';
216
+
217
+ /**
218
+ * ISO 8601 timestamp when the journey was created.
219
+ */
220
+ createdAt?: string;
221
+
222
+ /**
223
+ * ISO 8601 timestamp when the journey was last updated.
224
+ */
225
+ updatedAt?: string;
226
+ }
227
+
228
+ /**
229
+ * Invoke an AI step with `user_prompt` and optional `web_search`. Returns a
230
+ * structured response conforming to `output_schema`.
231
+ */
232
+ export interface JourneyAINode {
233
+ /**
234
+ * A JSONSchema object (Draft-07-compatible). Validated at runtime by Ajv.
235
+ */
236
+ output_schema: { [key: string]: unknown };
237
+
238
+ type: 'ai';
239
+
240
+ id?: string;
241
+
242
+ /**
243
+ * Condition spec for a journey node. Accepts a single condition atom, an AND/OR
244
+ * group, or an AND/OR nested group. Omit the `conditions` property entirely to
245
+ * express "no conditions".
246
+ */
247
+ conditions?: JourneyConditionsField;
248
+
249
+ model?: string;
250
+
251
+ user_prompt?: string;
252
+
253
+ web_search?: boolean;
254
+ }
255
+
256
+ /**
257
+ * Trigger fired when the journey is invoked via the API. The optional `schema`
258
+ * field is a JSON Schema that validates the invocation payload.
259
+ */
260
+ export interface JourneyAPIInvokeTriggerNode {
261
+ trigger_type: 'api-invoke';
262
+
263
+ type: 'trigger';
264
+
265
+ id?: string;
266
+
267
+ /**
268
+ * Condition spec for a journey node. Accepts a single condition atom, an AND/OR
269
+ * group, or an AND/OR nested group. Omit the `conditions` property entirely to
270
+ * express "no conditions".
271
+ */
272
+ conditions?: JourneyConditionsField;
273
+
274
+ /**
275
+ * A JSONSchema object (Draft-07-compatible). Validated at runtime by Ajv.
276
+ */
277
+ schema?: { [key: string]: unknown };
278
+ }
279
+
280
+ /**
281
+ * A single condition expressed as a positional tuple of strings.
282
+ *
283
+ * - Binary form (3 elements): `[path, operator, value]` where `operator` is one of
284
+ * `is equal`, `is not equal`, `contains`, `does not contain`, `starts with`,
285
+ * `ends with`, `greater than`, `greater than or equal`, `less than`,
286
+ * `less than or equal`.
287
+ *
288
+ * Example: `["user.tier", "is equal", "gold"]`.
289
+ *
290
+ * - Unary form (2 elements): `[path, operator]` where `operator` is one of
291
+ * `exists`, `does not exist`.
292
+ *
293
+ * Example: `["user.email", "exists"]`.
294
+ *
295
+ * The first element is a non-empty dot-path. The second element is the operator
296
+ * (must come from one of the two operator sets above). For the binary form, the
297
+ * third element is the comparison value (string). Runtime validation of the
298
+ * operator value and arity is performed by the backend; SDKs surface this as a
299
+ * string list.
300
+ */
301
+ export type JourneyConditionAtom = Array<string>;
302
+
303
+ /**
304
+ * A leaf condition group. Exactly one of `AND` or `OR` must be present at runtime;
305
+ * each is a list of `JourneyConditionAtom` tuples.
306
+ */
307
+ export interface JourneyConditionGroup {
308
+ AND?: Array<JourneyConditionAtom>;
309
+
310
+ OR?: Array<JourneyConditionAtom>;
311
+ }
312
+
313
+ /**
314
+ * A nested condition group. Exactly one of `AND` or `OR` must be present at
315
+ * runtime; each is a list of `JourneyConditionGroup` items.
316
+ */
317
+ export interface JourneyConditionNestedGroup {
318
+ AND?: Array<JourneyConditionGroup>;
319
+
320
+ OR?: Array<JourneyConditionGroup>;
321
+ }
322
+
323
+ /**
324
+ * Condition spec for a journey node. Accepts a single condition atom, an AND/OR
325
+ * group, or an AND/OR nested group. Omit the `conditions` property entirely to
326
+ * express "no conditions".
327
+ */
328
+ export type JourneyConditionsField =
329
+ | JourneyConditionAtom
330
+ | JourneyConditionGroup
331
+ | JourneyConditionNestedGroup;
332
+
333
+ /**
334
+ * Pause the journey run for a fixed `duration`.
335
+ */
336
+ export interface JourneyDelayDurationNode {
337
+ duration: string;
338
+
339
+ mode: 'duration';
340
+
341
+ type: 'delay';
342
+
343
+ id?: string;
344
+
345
+ /**
346
+ * Condition spec for a journey node. Accepts a single condition atom, an AND/OR
347
+ * group, or an AND/OR nested group. Omit the `conditions` property entirely to
348
+ * express "no conditions".
349
+ */
350
+ conditions?: JourneyConditionsField;
351
+ }
352
+
353
+ /**
354
+ * Pause the journey run `until` a specific time.
355
+ */
356
+ export interface JourneyDelayUntilNode {
357
+ mode: 'until';
358
+
359
+ type: 'delay';
360
+
361
+ until: string;
362
+
363
+ id?: string;
364
+
365
+ /**
366
+ * Condition spec for a journey node. Accepts a single condition atom, an AND/OR
367
+ * group, or an AND/OR nested group. Omit the `conditions` property entirely to
368
+ * express "no conditions".
369
+ */
370
+ conditions?: JourneyConditionsField;
371
+ }
372
+
373
+ /**
374
+ * Terminate the journey run.
375
+ */
376
+ export interface JourneyExitNode {
377
+ type: 'exit';
378
+
379
+ id?: string;
380
+ }
381
+
382
+ /**
383
+ * Issue an HTTP GET or DELETE request and merge the response into the journey
384
+ * state per `merge_strategy`.
385
+ */
386
+ export interface JourneyFetchGetDeleteNode {
387
+ /**
388
+ * Strategy for merging a fetch response into the journey run state.
389
+ */
390
+ merge_strategy: JourneyMergeStrategy;
391
+
392
+ method: 'get' | 'delete';
393
+
394
+ type: 'fetch';
395
+
396
+ url: string;
397
+
398
+ id?: string;
399
+
400
+ /**
401
+ * Condition spec for a journey node. Accepts a single condition atom, an AND/OR
402
+ * group, or an AND/OR nested group. Omit the `conditions` property entirely to
403
+ * express "no conditions".
404
+ */
405
+ conditions?: JourneyConditionsField;
406
+
407
+ headers?: { [key: string]: string };
408
+
409
+ query_params?: { [key: string]: string };
410
+
411
+ /**
412
+ * A JSONSchema object (Draft-07-compatible). Validated at runtime by Ajv.
413
+ */
414
+ response_schema?: { [key: string]: unknown };
415
+ }
416
+
417
+ /**
418
+ * Issue an HTTP POST or PUT request with a `body` and merge the response into the
419
+ * journey state per `merge_strategy`.
420
+ */
421
+ export interface JourneyFetchPostPutNode {
422
+ /**
423
+ * Strategy for merging a fetch response into the journey run state.
424
+ */
425
+ merge_strategy: JourneyMergeStrategy;
426
+
427
+ method: 'post' | 'put';
428
+
429
+ type: 'fetch';
430
+
431
+ url: string;
432
+
433
+ id?: string;
434
+
435
+ body?: string;
436
+
437
+ /**
438
+ * Condition spec for a journey node. Accepts a single condition atom, an AND/OR
439
+ * group, or an AND/OR nested group. Omit the `conditions` property entirely to
440
+ * express "no conditions".
441
+ */
442
+ conditions?: JourneyConditionsField;
443
+
444
+ headers?: { [key: string]: string };
445
+
446
+ query_params?: { [key: string]: string };
447
+
448
+ /**
449
+ * A JSONSchema object (Draft-07-compatible). Validated at runtime by Ajv.
450
+ */
451
+ response_schema?: { [key: string]: unknown };
452
+ }
453
+
454
+ /**
455
+ * Strategy for merging a fetch response into the journey run state.
456
+ */
457
+ export type JourneyMergeStrategy = 'overwrite' | 'soft-merge' | 'replace' | 'none';
458
+
459
+ /**
460
+ * A single node in a journey DAG. Discriminated by `type`, with a secondary
461
+ * discriminator on some variants (`trigger_type` for trigger, `mode` for delay,
462
+ * `method` for fetch, `scope` for throttle).
463
+ */
464
+ export type JourneyNode =
465
+ | JourneyAPIInvokeTriggerNode
466
+ | JourneySegmentTriggerNode
467
+ | JourneySendNode
468
+ | JourneyDelayDurationNode
469
+ | JourneyDelayUntilNode
470
+ | JourneyFetchGetDeleteNode
471
+ | JourneyFetchPostPutNode
472
+ | JourneyAINode
473
+ | JourneyThrottleStaticNode
474
+ | JourneyThrottleDynamicNode
475
+ | JourneyExitNode
476
+ | JourneyNode.JourneyBranchNode;
477
+
478
+ export namespace JourneyNode {
479
+ /**
480
+ * Branch node. Routes to the first entry in `paths[]` whose `conditions` match,
481
+ * else falls through to `default.nodes`.
482
+ */
483
+ export interface JourneyBranchNode {
484
+ default: JourneyBranchNode.Default;
485
+
486
+ paths: Array<JourneyBranchNode.Path>;
487
+
488
+ type: 'branch';
489
+
490
+ id?: string;
491
+ }
492
+
493
+ export namespace JourneyBranchNode {
494
+ export interface Default {
495
+ nodes: Array<JourneysAPI.JourneyNode>;
496
+
497
+ label?: string;
498
+ }
499
+
500
+ export interface Path {
501
+ /**
502
+ * Condition spec for a journey node. Accepts a single condition atom, an AND/OR
503
+ * group, or an AND/OR nested group. Omit the `conditions` property entirely to
504
+ * express "no conditions".
505
+ */
506
+ conditions: JourneysAPI.JourneyConditionsField;
507
+
508
+ nodes: Array<JourneysAPI.JourneyNode>;
509
+
510
+ label?: string;
511
+ }
512
+ }
513
+ }
514
+
515
+ /**
516
+ * Request body for publishing a journey. Pass `version` to roll back to a prior
517
+ * version; omit to publish the current draft.
518
+ */
519
+ export interface JourneyPublishRequest {
520
+ version?: string;
521
+ }
522
+
523
+ /**
524
+ * A journey, with its current draft or published nodes and metadata.
525
+ */
526
+ export interface JourneyResponse {
527
+ id: string;
528
+
529
+ created: number | null;
530
+
531
+ creator: string | null;
532
+
533
+ enabled: boolean;
534
+
535
+ name: string;
536
+
537
+ nodes: Array<JourneyNode>;
538
+
539
+ published: number | null;
540
+
541
+ /**
542
+ * Lifecycle state of a journey.
543
+ */
544
+ state: JourneyState;
545
+
546
+ updated: number | null;
547
+
548
+ updater: string | null;
549
+ }
550
+
551
+ /**
552
+ * Trigger fired by a segment event (`identify`, `group`, or `track`).
553
+ */
554
+ export interface JourneySegmentTriggerNode {
555
+ request_type: 'identify' | 'group' | 'track';
556
+
557
+ trigger_type: 'segment';
558
+
559
+ type: 'trigger';
560
+
561
+ id?: string;
562
+
563
+ /**
564
+ * Condition spec for a journey node. Accepts a single condition atom, an AND/OR
565
+ * group, or an AND/OR nested group. Omit the `conditions` property entirely to
566
+ * express "no conditions".
567
+ */
568
+ conditions?: JourneyConditionsField;
569
+
570
+ event_id?: string;
571
+ }
572
+
573
+ /**
574
+ * Send a notification template to the recipient. Optionally override the recipient
575
+ * address, delay the send, or attach `data`.
576
+ */
577
+ export interface JourneySendNode {
578
+ message: JourneySendNode.Message;
579
+
580
+ type: 'send';
581
+
582
+ id?: string;
583
+
584
+ /**
585
+ * Condition spec for a journey node. Accepts a single condition atom, an AND/OR
586
+ * group, or an AND/OR nested group. Omit the `conditions` property entirely to
587
+ * express "no conditions".
588
+ */
589
+ conditions?: JourneyConditionsField;
590
+ }
591
+
592
+ export namespace JourneySendNode {
593
+ export interface Message {
594
+ template: string;
595
+
596
+ data?: { [key: string]: unknown };
597
+
598
+ delay?: Message.Delay;
599
+
600
+ to?: Message.To;
601
+ }
602
+
603
+ export namespace Message {
604
+ export interface Delay {
605
+ until: string;
606
+
607
+ timezone?: string;
608
+ }
609
+
610
+ export interface To {
611
+ email_override?: string;
612
+
613
+ phone_number_override?: string;
614
+
615
+ user_id_override?: string;
616
+ }
617
+ }
618
+ }
619
+
620
+ /**
621
+ * Lifecycle state of a journey.
622
+ */
623
+ export type JourneyState = 'DRAFT' | 'PUBLISHED';
624
+
625
+ /**
626
+ * Request body for creating a notification template scoped to a journey.
627
+ */
628
+ export interface JourneyTemplateCreateRequest {
629
+ channel: string;
630
+
631
+ notification: JourneyTemplateCreateRequest.Notification;
632
+
633
+ providerKey?: string;
634
+
635
+ state?: string;
636
+ }
637
+
638
+ export namespace JourneyTemplateCreateRequest {
639
+ export interface Notification {
640
+ brand: Notification.Brand | null;
641
+
642
+ content: Notification.Content;
643
+
644
+ name: string;
645
+
646
+ subscription: Notification.Subscription | null;
647
+
648
+ tags: Array<string>;
649
+ }
650
+
651
+ export namespace Notification {
652
+ export interface Brand {
653
+ id: string;
654
+ }
655
+
656
+ export interface Content {
657
+ elements: Array<Shared.ElementalNode>;
658
+
659
+ version: '2022-01-01';
660
+
661
+ scope?: 'default' | 'strict';
662
+ }
663
+
664
+ export interface Subscription {
665
+ topic_id: string;
666
+ }
667
+ }
668
+ }
669
+
670
+ /**
671
+ * A journey-scoped notification template.
672
+ */
673
+ export interface JourneyTemplateGetResponse {
674
+ id: string;
675
+
676
+ brand: JourneyTemplateGetResponse.Brand | null;
677
+
678
+ content: JourneyTemplateGetResponse.Content;
679
+
680
+ created: number;
681
+
682
+ creator: string;
683
+
684
+ name: string;
685
+
686
+ state: 'DRAFT' | 'PUBLISHED';
687
+
688
+ subscription: JourneyTemplateGetResponse.Subscription | null;
689
+
690
+ tags: Array<string>;
691
+
692
+ updated?: number;
693
+
694
+ updater?: string;
695
+ }
696
+
697
+ export namespace JourneyTemplateGetResponse {
698
+ export interface Brand {
699
+ id: string;
700
+ }
701
+
702
+ export interface Content {
703
+ elements: Array<Shared.ElementalNode>;
704
+
705
+ version: '2022-01-01';
706
+
707
+ scope?: 'default' | 'strict';
708
+ }
709
+
710
+ export interface Subscription {
711
+ topic_id: string;
712
+ }
713
+ }
714
+
715
+ /**
716
+ * Paged list of journey-scoped notification templates.
717
+ */
718
+ export interface JourneyTemplateListResponse {
719
+ paging: Shared.Paging;
720
+
721
+ results: Array<JourneyTemplateSummary>;
722
+ }
723
+
724
+ /**
725
+ * Request body for publishing a journey-scoped notification template. Pass
726
+ * `version` to roll back to a prior version; omit to publish the current draft.
727
+ */
728
+ export interface JourneyTemplatePublishRequest {
729
+ version?: string;
730
+ }
731
+
732
+ /**
733
+ * Request body for replacing a journey-scoped notification template draft.
734
+ */
735
+ export interface JourneyTemplateReplaceRequest {
736
+ notification: JourneyTemplateReplaceRequest.Notification;
737
+
738
+ state?: string;
739
+ }
740
+
741
+ export namespace JourneyTemplateReplaceRequest {
742
+ export interface Notification {
743
+ brand: Notification.Brand | null;
744
+
745
+ content: Notification.Content;
746
+
747
+ name: string;
748
+
749
+ subscription: Notification.Subscription | null;
750
+
751
+ tags: Array<string>;
752
+ }
753
+
754
+ export namespace Notification {
755
+ export interface Brand {
756
+ id: string;
757
+ }
758
+
759
+ export interface Content {
760
+ elements: Array<Shared.ElementalNode>;
761
+
762
+ version: '2022-01-01';
763
+
764
+ scope?: 'default' | 'strict';
765
+ }
766
+
767
+ export interface Subscription {
768
+ topic_id: string;
769
+ }
770
+ }
771
+ }
772
+
773
+ /**
774
+ * Summary fields of a journey-scoped notification template returned in list
775
+ * responses.
776
+ */
777
+ export interface JourneyTemplateSummary {
778
+ id: string;
779
+
780
+ created: number;
781
+
782
+ creator: string;
783
+
784
+ name: string;
785
+
786
+ state: string;
787
+
788
+ tags: Array<string>;
789
+
790
+ updated?: number;
791
+
792
+ updater?: string;
793
+ }
794
+
795
+ /**
796
+ * Throttle the journey by a dynamic `throttle_key`, allowing at most `max_allowed`
797
+ * invocations per `period`.
798
+ */
799
+ export interface JourneyThrottleDynamicNode {
800
+ max_allowed: number;
801
+
802
+ period: string;
803
+
804
+ scope: 'dynamic';
805
+
806
+ throttle_key: string;
807
+
808
+ type: 'throttle';
809
+
810
+ id?: string;
811
+
812
+ /**
813
+ * Condition spec for a journey node. Accepts a single condition atom, an AND/OR
814
+ * group, or an AND/OR nested group. Omit the `conditions` property entirely to
815
+ * express "no conditions".
816
+ */
817
+ conditions?: JourneyConditionsField;
818
+ }
819
+
820
+ /**
821
+ * Throttle the journey by a static `scope` (`user` or `global`), allowing at most
822
+ * `max_allowed` invocations per `period`.
823
+ */
824
+ export interface JourneyThrottleStaticNode {
825
+ max_allowed: number;
826
+
827
+ period: string;
828
+
829
+ scope: 'user' | 'global';
830
+
831
+ type: 'throttle';
832
+
833
+ id?: string;
834
+
835
+ /**
836
+ * Condition spec for a journey node. Accepts a single condition atom, an AND/OR
837
+ * group, or an AND/OR nested group. Omit the `conditions` property entirely to
838
+ * express "no conditions".
839
+ */
840
+ conditions?: JourneyConditionsField;
841
+ }
842
+
843
+ /**
844
+ * A published version of a journey.
845
+ */
846
+ export interface JourneyVersionItem {
847
+ created: number | null;
848
+
849
+ creator: string | null;
850
+
851
+ name: string;
852
+
853
+ published: number | null;
854
+
855
+ version: string;
856
+ }
857
+
858
+ /**
859
+ * Paged list of published journey versions, most recent first.
860
+ */
861
+ export interface JourneyVersionsListResponse {
862
+ paging: Shared.Paging;
863
+
864
+ results: Array<JourneyVersionItem>;
865
+ }
866
+
867
+ /**
868
+ * Request body for invoking a journey. Requires either a user identifier or a
869
+ * profile with contact information. User identifiers can be provided via user_id
870
+ * field, or resolved from profile/data objects (user_id, userId, or anonymousId
871
+ * fields).
872
+ */
873
+ export interface JourneysInvokeRequest {
874
+ /**
875
+ * Data payload passed to the journey. The expected shape can be predefined using
876
+ * the schema builder in the journey editor. This data is available in journey
877
+ * steps for condition evaluation and template variable interpolation. Can also
878
+ * contain user identifiers (user_id, userId, anonymousId) if not provided
879
+ * elsewhere.
880
+ */
881
+ data?: { [key: string]: unknown };
882
+
883
+ /**
884
+ * Profile data for the user. Can contain contact information (email,
885
+ * phone_number), user identifiers (user_id, userId, anonymousId), or any custom
886
+ * profile fields. Profile fields are merged with any existing stored profile for
887
+ * the user. Include context.tenant_id to load a tenant-scoped profile for
888
+ * multi-tenant scenarios.
889
+ */
890
+ profile?: { [key: string]: unknown };
891
+
892
+ /**
893
+ * A unique identifier for the user. If not provided, the system will attempt to
894
+ * resolve the user identifier from profile or data objects.
895
+ */
896
+ user_id?: string;
897
+ }
898
+
899
+ export interface JourneysInvokeResponse {
900
+ /**
901
+ * A unique identifier for the journey run that was created.
902
+ */
903
+ runId: string;
904
+ }
905
+
906
+ export interface JourneysListResponse {
907
+ /**
908
+ * A cursor token for pagination. Present when there are more results available.
909
+ */
910
+ cursor?: string;
911
+
912
+ templates?: Array<Journey>;
913
+ }
914
+
915
+ export interface JourneyCreateParams {
916
+ name: string;
917
+
918
+ nodes: Array<JourneyNode>;
919
+
920
+ enabled?: boolean;
921
+
922
+ /**
923
+ * Lifecycle state of a journey.
924
+ */
925
+ state?: JourneyState;
926
+ }
927
+
928
+ export interface JourneyRetrieveParams {
929
+ /**
930
+ * Version selector: `draft`, `published` (default), or `vN`.
931
+ */
932
+ version?: string;
933
+ }
934
+
935
+ export interface JourneyListParams {
936
+ /**
937
+ * A cursor token for pagination. Use the cursor from the previous response to
938
+ * fetch the next page of results.
939
+ */
940
+ cursor?: string;
941
+
942
+ /**
943
+ * The version of journeys to retrieve. Accepted values are published (for
944
+ * published journeys) or draft (for draft journeys). Defaults to published.
945
+ */
946
+ version?: 'published' | 'draft';
947
+ }
948
+
949
+ export interface JourneyInvokeParams {
950
+ /**
951
+ * Data payload passed to the journey. The expected shape can be predefined using
952
+ * the schema builder in the journey editor. This data is available in journey
953
+ * steps for condition evaluation and template variable interpolation. Can also
954
+ * contain user identifiers (user_id, userId, anonymousId) if not provided
955
+ * elsewhere.
956
+ */
957
+ data?: { [key: string]: unknown };
958
+
959
+ /**
960
+ * Profile data for the user. Can contain contact information (email,
961
+ * phone_number), user identifiers (user_id, userId, anonymousId), or any custom
962
+ * profile fields. Profile fields are merged with any existing stored profile for
963
+ * the user. Include context.tenant_id to load a tenant-scoped profile for
964
+ * multi-tenant scenarios.
965
+ */
966
+ profile?: { [key: string]: unknown };
967
+
968
+ /**
969
+ * A unique identifier for the user. If not provided, the system will attempt to
970
+ * resolve the user identifier from profile or data objects.
971
+ */
972
+ user_id?: string;
973
+ }
974
+
975
+ export interface JourneyPublishParams {
976
+ version?: string;
977
+ }
978
+
979
+ export interface JourneyReplaceParams {
980
+ name: string;
981
+
982
+ nodes: Array<JourneyNode>;
983
+
984
+ enabled?: boolean;
985
+
986
+ /**
987
+ * Lifecycle state of a journey.
988
+ */
989
+ state?: JourneyState;
990
+ }
991
+
992
+ Journeys.Templates = Templates;
993
+
994
+ export declare namespace Journeys {
995
+ export {
996
+ type CreateJourneyRequest as CreateJourneyRequest,
997
+ type Journey as Journey,
998
+ type JourneyAINode as JourneyAINode,
999
+ type JourneyAPIInvokeTriggerNode as JourneyAPIInvokeTriggerNode,
1000
+ type JourneyConditionAtom as JourneyConditionAtom,
1001
+ type JourneyConditionGroup as JourneyConditionGroup,
1002
+ type JourneyConditionNestedGroup as JourneyConditionNestedGroup,
1003
+ type JourneyConditionsField as JourneyConditionsField,
1004
+ type JourneyDelayDurationNode as JourneyDelayDurationNode,
1005
+ type JourneyDelayUntilNode as JourneyDelayUntilNode,
1006
+ type JourneyExitNode as JourneyExitNode,
1007
+ type JourneyFetchGetDeleteNode as JourneyFetchGetDeleteNode,
1008
+ type JourneyFetchPostPutNode as JourneyFetchPostPutNode,
1009
+ type JourneyMergeStrategy as JourneyMergeStrategy,
1010
+ type JourneyNode as JourneyNode,
1011
+ type JourneyPublishRequest as JourneyPublishRequest,
1012
+ type JourneyResponse as JourneyResponse,
1013
+ type JourneySegmentTriggerNode as JourneySegmentTriggerNode,
1014
+ type JourneySendNode as JourneySendNode,
1015
+ type JourneyState as JourneyState,
1016
+ type JourneyTemplateCreateRequest as JourneyTemplateCreateRequest,
1017
+ type JourneyTemplateGetResponse as JourneyTemplateGetResponse,
1018
+ type JourneyTemplateListResponse as JourneyTemplateListResponse,
1019
+ type JourneyTemplatePublishRequest as JourneyTemplatePublishRequest,
1020
+ type JourneyTemplateReplaceRequest as JourneyTemplateReplaceRequest,
1021
+ type JourneyTemplateSummary as JourneyTemplateSummary,
1022
+ type JourneyThrottleDynamicNode as JourneyThrottleDynamicNode,
1023
+ type JourneyThrottleStaticNode as JourneyThrottleStaticNode,
1024
+ type JourneyVersionItem as JourneyVersionItem,
1025
+ type JourneyVersionsListResponse as JourneyVersionsListResponse,
1026
+ type JourneysInvokeRequest as JourneysInvokeRequest,
1027
+ type JourneysInvokeResponse as JourneysInvokeResponse,
1028
+ type JourneysListResponse as JourneysListResponse,
1029
+ type JourneyCreateParams as JourneyCreateParams,
1030
+ type JourneyRetrieveParams as JourneyRetrieveParams,
1031
+ type JourneyListParams as JourneyListParams,
1032
+ type JourneyInvokeParams as JourneyInvokeParams,
1033
+ type JourneyPublishParams as JourneyPublishParams,
1034
+ type JourneyReplaceParams as JourneyReplaceParams,
1035
+ };
1036
+
1037
+ export {
1038
+ Templates as Templates,
1039
+ type TemplateCreateParams as TemplateCreateParams,
1040
+ type TemplateRetrieveParams as TemplateRetrieveParams,
1041
+ type TemplateListParams as TemplateListParams,
1042
+ type TemplateArchiveParams as TemplateArchiveParams,
1043
+ type TemplateListVersionsParams as TemplateListVersionsParams,
1044
+ type TemplatePublishParams as TemplatePublishParams,
1045
+ type TemplateReplaceParams as TemplateReplaceParams,
1046
+ };
1047
+ }