@epilot/sdk 2.20.9 → 2.20.11

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 (262) hide show
  1. package/dist/apis/access-token.cjs +6 -6
  2. package/dist/apis/access-token.js +1 -1
  3. package/dist/apis/address-suggestions.cjs +6 -6
  4. package/dist/apis/address-suggestions.js +1 -1
  5. package/dist/apis/address.cjs +6 -6
  6. package/dist/apis/address.js +1 -1
  7. package/dist/apis/ai-agents.cjs +6 -6
  8. package/dist/apis/ai-agents.js +1 -1
  9. package/dist/apis/app.cjs +6 -6
  10. package/dist/apis/app.js +1 -1
  11. package/dist/apis/audit-logs.cjs +6 -6
  12. package/dist/apis/audit-logs.js +1 -1
  13. package/dist/apis/automation.cjs +6 -6
  14. package/dist/apis/automation.js +1 -1
  15. package/dist/apis/billing.cjs +6 -6
  16. package/dist/apis/billing.js +1 -1
  17. package/dist/apis/blueprint-manifest.cjs +6 -6
  18. package/dist/apis/blueprint-manifest.js +1 -1
  19. package/dist/apis/calendar.cjs +6 -6
  20. package/dist/apis/calendar.js +1 -1
  21. package/dist/apis/configuration-hub.cjs +6 -6
  22. package/dist/apis/configuration-hub.js +1 -1
  23. package/dist/apis/consent.cjs +6 -6
  24. package/dist/apis/consent.js +1 -1
  25. package/dist/apis/customer-portal.cjs +6 -6
  26. package/dist/apis/customer-portal.js +1 -1
  27. package/dist/apis/dashboard.cjs +6 -6
  28. package/dist/apis/dashboard.js +1 -1
  29. package/dist/apis/data-governance.cjs +6 -6
  30. package/dist/apis/data-governance.js +1 -1
  31. package/dist/apis/deduplication.cjs +6 -6
  32. package/dist/apis/deduplication.js +1 -1
  33. package/dist/apis/design.cjs +6 -6
  34. package/dist/apis/design.js +1 -1
  35. package/dist/apis/document.cjs +6 -6
  36. package/dist/apis/document.js +1 -1
  37. package/dist/apis/email-settings.cjs +6 -6
  38. package/dist/apis/email-settings.js +1 -1
  39. package/dist/apis/email-template.cjs +6 -6
  40. package/dist/apis/email-template.js +1 -1
  41. package/dist/apis/entity-mapping.cjs +6 -6
  42. package/dist/apis/entity-mapping.js +1 -1
  43. package/dist/apis/entity.cjs +24 -6
  44. package/dist/apis/entity.d.cts +15 -1
  45. package/dist/apis/entity.d.ts +15 -1
  46. package/dist/apis/entity.js +19 -1
  47. package/dist/apis/environments.cjs +6 -6
  48. package/dist/apis/environments.js +1 -1
  49. package/dist/apis/event-catalog.cjs +8 -8
  50. package/dist/apis/event-catalog.d.cts +2 -2
  51. package/dist/apis/event-catalog.d.ts +2 -2
  52. package/dist/apis/event-catalog.js +2 -2
  53. package/dist/apis/file.cjs +8 -8
  54. package/dist/apis/file.d.cts +2 -2
  55. package/dist/apis/file.d.ts +2 -2
  56. package/dist/apis/file.js +2 -2
  57. package/dist/apis/iban.cjs +6 -6
  58. package/dist/apis/iban.js +1 -1
  59. package/dist/apis/integration-toolkit.cjs +6 -6
  60. package/dist/apis/integration-toolkit.js +1 -1
  61. package/dist/apis/journey.cjs +8 -8
  62. package/dist/apis/journey.d.cts +2 -2
  63. package/dist/apis/journey.d.ts +2 -2
  64. package/dist/apis/journey.js +2 -2
  65. package/dist/apis/kanban.cjs +6 -6
  66. package/dist/apis/kanban.js +1 -1
  67. package/dist/apis/message.cjs +6 -6
  68. package/dist/apis/message.js +1 -1
  69. package/dist/apis/metering.cjs +6 -6
  70. package/dist/apis/metering.js +1 -1
  71. package/dist/apis/notes.cjs +6 -6
  72. package/dist/apis/notes.js +1 -1
  73. package/dist/apis/notification.cjs +6 -6
  74. package/dist/apis/notification.js +1 -1
  75. package/dist/apis/organization.cjs +6 -6
  76. package/dist/apis/organization.js +1 -1
  77. package/dist/apis/partner-directory.cjs +6 -6
  78. package/dist/apis/partner-directory.js +1 -1
  79. package/dist/apis/permissions.cjs +6 -6
  80. package/dist/apis/permissions.js +1 -1
  81. package/dist/apis/pricing-tier.cjs +6 -6
  82. package/dist/apis/pricing-tier.js +1 -1
  83. package/dist/apis/pricing.cjs +6 -27
  84. package/dist/apis/pricing.d.cts +1 -13
  85. package/dist/apis/pricing.d.ts +1 -13
  86. package/dist/apis/pricing.js +1 -22
  87. package/dist/apis/purpose.cjs +6 -6
  88. package/dist/apis/purpose.js +1 -1
  89. package/dist/apis/query.cjs +6 -6
  90. package/dist/apis/query.js +1 -1
  91. package/dist/apis/sandbox.cjs +6 -6
  92. package/dist/apis/sandbox.js +1 -1
  93. package/dist/apis/sharing.cjs +6 -6
  94. package/dist/apis/sharing.js +1 -1
  95. package/dist/apis/snapshot.cjs +6 -6
  96. package/dist/apis/snapshot.js +1 -1
  97. package/dist/apis/submission.cjs +6 -6
  98. package/dist/apis/submission.js +1 -1
  99. package/dist/apis/target.cjs +6 -6
  100. package/dist/apis/target.js +1 -1
  101. package/dist/apis/targeting.cjs +6 -6
  102. package/dist/apis/targeting.js +1 -1
  103. package/dist/apis/template-variables.cjs +6 -6
  104. package/dist/apis/template-variables.js +1 -1
  105. package/dist/apis/user.cjs +6 -6
  106. package/dist/apis/user.js +1 -1
  107. package/dist/apis/validation-rules.cjs +6 -6
  108. package/dist/apis/validation-rules.js +1 -1
  109. package/dist/apis/webhooks.cjs +6 -6
  110. package/dist/apis/webhooks.js +1 -1
  111. package/dist/apis/workflow-definition.cjs +6 -6
  112. package/dist/apis/workflow-definition.js +1 -1
  113. package/dist/apis/workflow.cjs +6 -6
  114. package/dist/apis/workflow.js +1 -1
  115. package/dist/chunk-2Q6CNXJ2.cjs +14 -0
  116. package/dist/{chunk-5S2PEECD.cjs → chunk-424JLS5G.cjs} +1 -1
  117. package/dist/chunk-FGQBS7TA.js +14 -0
  118. package/dist/chunk-HL4MZXEK.js +14 -0
  119. package/dist/chunk-LTCN52JS.js +14 -0
  120. package/dist/{chunk-VCD3C4UW.cjs → chunk-QZH7QNNP.cjs} +6 -6
  121. package/dist/{chunk-JBFTKLP2.js → chunk-SMERBU2T.js} +6 -6
  122. package/dist/chunk-W6R2J6KQ.cjs +14 -0
  123. package/dist/event-catalog-S4OYTDIB.js +7 -0
  124. package/dist/event-catalog-Z6BO4L2G.cjs +7 -0
  125. package/dist/{event-catalog-runtime-AME244T7.cjs → event-catalog-runtime-XWSYNUGQ.cjs} +2 -2
  126. package/dist/{event-catalog-runtime-Q3MKEDG4.js → event-catalog-runtime-Z6OMHQBD.js} +1 -1
  127. package/dist/{event-catalog.d-Bd2wmtlZ.d.ts → event-catalog.d-CCE1qmBN.d.cts} +105 -22
  128. package/dist/{event-catalog.d-Bd2wmtlZ.d.cts → event-catalog.d-CCE1qmBN.d.ts} +105 -22
  129. package/dist/file-LFOTXMRJ.cjs +7 -0
  130. package/dist/file-ND2JH5EM.js +7 -0
  131. package/dist/file-runtime-JL2IZ2CE.cjs +5 -0
  132. package/dist/{file-runtime-423SISQ2.js → file-runtime-RS4DX5LB.js} +1 -1
  133. package/dist/{file.d-CBsXF4W8.d.ts → file.d-DELNV63w.d.cts} +340 -9
  134. package/dist/{file.d-CBsXF4W8.d.cts → file.d-DELNV63w.d.ts} +340 -9
  135. package/dist/index.cjs +14 -14
  136. package/dist/index.d.cts +3 -3
  137. package/dist/index.d.ts +3 -3
  138. package/dist/index.js +4 -4
  139. package/dist/journey-FNWHSZW3.js +7 -0
  140. package/dist/journey-FUJDOH5O.cjs +7 -0
  141. package/dist/{journey-runtime-PAJVCFMZ.cjs → journey-runtime-EFWGEDUE.cjs} +2 -2
  142. package/dist/{journey-runtime-33QDS2WK.js → journey-runtime-VCADGDRV.js} +1 -1
  143. package/dist/{journey.d-bxl2l7qg.d.cts → journey.d-6Bs1uNLT.d.cts} +1062 -14
  144. package/dist/{journey.d-bxl2l7qg.d.ts → journey.d-6Bs1uNLT.d.ts} +1062 -14
  145. package/docs/event-catalog.md +155 -5
  146. package/docs/file.md +272 -0
  147. package/docs/journey.md +676 -0
  148. package/package.json +1 -1
  149. package/definitions/access-token-runtime.json +0 -1
  150. package/definitions/access-token.json +0 -835
  151. package/definitions/address-runtime.json +0 -1
  152. package/definitions/address-suggestions-runtime.json +0 -1
  153. package/definitions/address-suggestions.json +0 -582
  154. package/definitions/address.json +0 -578
  155. package/definitions/ai-agents-runtime.json +0 -1
  156. package/definitions/ai-agents.json +0 -2863
  157. package/definitions/app-runtime.json +0 -1
  158. package/definitions/app.json +0 -5993
  159. package/definitions/audit-logs-runtime.json +0 -1
  160. package/definitions/audit-logs.json +0 -305
  161. package/definitions/automation-runtime.json +0 -1
  162. package/definitions/automation.json +0 -5889
  163. package/definitions/billing-runtime.json +0 -1
  164. package/definitions/billing.json +0 -2394
  165. package/definitions/blueprint-manifest-runtime.json +0 -1
  166. package/definitions/blueprint-manifest.json +0 -7817
  167. package/definitions/calendar-runtime.json +0 -1
  168. package/definitions/calendar.json +0 -2904
  169. package/definitions/configuration-hub-runtime.json +0 -1
  170. package/definitions/configuration-hub.json +0 -2250
  171. package/definitions/consent-runtime.json +0 -1
  172. package/definitions/consent.json +0 -344
  173. package/definitions/customer-portal-runtime.json +0 -1
  174. package/definitions/customer-portal.json +0 -19945
  175. package/definitions/dashboard-runtime.json +0 -1
  176. package/definitions/dashboard.json +0 -1355
  177. package/definitions/data-governance-runtime.json +0 -1
  178. package/definitions/data-governance.json +0 -1126
  179. package/definitions/deduplication-runtime.json +0 -1
  180. package/definitions/deduplication.json +0 -782
  181. package/definitions/design-runtime.json +0 -1
  182. package/definitions/design.json +0 -1827
  183. package/definitions/document-runtime.json +0 -1
  184. package/definitions/document.json +0 -758
  185. package/definitions/email-settings-runtime.json +0 -1
  186. package/definitions/email-settings.json +0 -3736
  187. package/definitions/email-template-runtime.json +0 -1
  188. package/definitions/email-template.json +0 -1441
  189. package/definitions/entity-mapping-runtime.json +0 -1
  190. package/definitions/entity-mapping.json +0 -1829
  191. package/definitions/entity-runtime.json +0 -1
  192. package/definitions/entity.json +0 -11546
  193. package/definitions/environments-runtime.json +0 -1
  194. package/definitions/environments.json +0 -703
  195. package/definitions/event-catalog-runtime.json +0 -1
  196. package/definitions/event-catalog.json +0 -1943
  197. package/definitions/file-runtime.json +0 -1
  198. package/definitions/file.json +0 -3905
  199. package/definitions/iban-runtime.json +0 -1
  200. package/definitions/iban.json +0 -132
  201. package/definitions/integration-toolkit-runtime.json +0 -1
  202. package/definitions/integration-toolkit.json +0 -12966
  203. package/definitions/journey-runtime.json +0 -1
  204. package/definitions/journey.json +0 -3040
  205. package/definitions/kanban-runtime.json +0 -1
  206. package/definitions/kanban.json +0 -1506
  207. package/definitions/message-runtime.json +0 -1
  208. package/definitions/message.json +0 -3667
  209. package/definitions/metering-runtime.json +0 -1
  210. package/definitions/metering.json +0 -3132
  211. package/definitions/notes-runtime.json +0 -1
  212. package/definitions/notes.json +0 -1698
  213. package/definitions/notification-runtime.json +0 -1
  214. package/definitions/notification.json +0 -1439
  215. package/definitions/organization-runtime.json +0 -1
  216. package/definitions/organization.json +0 -1192
  217. package/definitions/partner-directory-runtime.json +0 -1
  218. package/definitions/partner-directory.json +0 -2284
  219. package/definitions/permissions-runtime.json +0 -1
  220. package/definitions/permissions.json +0 -1598
  221. package/definitions/pricing-runtime.json +0 -1
  222. package/definitions/pricing-tier-runtime.json +0 -1
  223. package/definitions/pricing-tier.json +0 -105
  224. package/definitions/pricing.json +0 -14301
  225. package/definitions/purpose-runtime.json +0 -1
  226. package/definitions/purpose.json +0 -524
  227. package/definitions/query-runtime.json +0 -1
  228. package/definitions/query.json +0 -3178
  229. package/definitions/sandbox-runtime.json +0 -1
  230. package/definitions/sandbox.json +0 -453
  231. package/definitions/sharing-runtime.json +0 -1
  232. package/definitions/sharing.json +0 -956
  233. package/definitions/snapshot-runtime.json +0 -1
  234. package/definitions/snapshot.json +0 -1103
  235. package/definitions/submission-runtime.json +0 -1
  236. package/definitions/submission.json +0 -313
  237. package/definitions/targeting-runtime.json +0 -1
  238. package/definitions/targeting.json +0 -2285
  239. package/definitions/template-variables-runtime.json +0 -1
  240. package/definitions/template-variables.json +0 -1416
  241. package/definitions/user-runtime.json +0 -1
  242. package/definitions/user.json +0 -3051
  243. package/definitions/validation-rules-runtime.json +0 -1
  244. package/definitions/validation-rules.json +0 -2642
  245. package/definitions/webhooks-runtime.json +0 -1
  246. package/definitions/webhooks.json +0 -1875
  247. package/definitions/workflow-definition-runtime.json +0 -1
  248. package/definitions/workflow-definition.json +0 -3592
  249. package/definitions/workflow-runtime.json +0 -1
  250. package/definitions/workflow.json +0 -4669
  251. package/dist/chunk-CIKDOXDL.cjs +0 -14
  252. package/dist/chunk-EEKJGTAS.js +0 -14
  253. package/dist/chunk-IBMGFLXF.js +0 -14
  254. package/dist/chunk-MPZICOVZ.cjs +0 -14
  255. package/dist/chunk-XJUB5BYM.js +0 -14
  256. package/dist/event-catalog-4FVQZ65M.cjs +0 -7
  257. package/dist/event-catalog-PEOHXUJO.js +0 -7
  258. package/dist/file-M5HNKOPG.cjs +0 -7
  259. package/dist/file-ZUNCUDBY.js +0 -7
  260. package/dist/file-runtime-IHVDQNIX.cjs +0 -5
  261. package/dist/journey-2HHH7MLM.js +0 -7
  262. package/dist/journey-4CXKZMKV.cjs +0 -7
package/docs/journey.md CHANGED
@@ -28,6 +28,11 @@ const { data } = await journeyClient.getJourneysByOrgId(...)
28
28
  - [`getJourneysByOrgId`](#getjourneysbyorgid)
29
29
  - [`getJourney`](#getjourney)
30
30
  - [`removeJourney`](#removejourney)
31
+ - [`createJourneyRevision`](#createjourneyrevision)
32
+ - [`listJourneyRevisions`](#listjourneyrevisions)
33
+ - [`getJourneyRevision`](#getjourneyrevision)
34
+ - [`publishJourneyRevision`](#publishjourneyrevision)
35
+ - [`getJourneyPublishState`](#getjourneypublishstate)
31
36
  - [`getJourneyEnvironment`](#getjourneyenvironment)
32
37
  - [`getJourneyEnvironmentVariables`](#getjourneyenvironmentvariables)
33
38
  - [`getJourneyProducts`](#getjourneyproducts)
@@ -63,6 +68,14 @@ const { data } = await journeyClient.getJourneysByOrgId(...)
63
68
  - [`JourneyActivationGuarantee`](#journeyactivationguarantee)
64
69
  - [`JourneyFeatureFlags`](#journeyfeatureflags)
65
70
  - [`JourneyAuditInfo`](#journeyauditinfo)
71
+ - [`JourneyRevisionRequest`](#journeyrevisionrequest)
72
+ - [`PublishRevisionRequest`](#publishrevisionrequest)
73
+ - [`JourneyRevisionSummary`](#journeyrevisionsummary)
74
+ - [`JourneyRevisionList`](#journeyrevisionlist)
75
+ - [`JourneyRevision`](#journeyrevision)
76
+ - [`JourneyRevisionConflict`](#journeyrevisionconflict)
77
+ - [`JourneyPublishState`](#journeypublishstate)
78
+ - [`PublishResult`](#publishresult)
66
79
  - [`JourneyValidationResponse`](#journeyvalidationresponse)
67
80
  - [`JourneyValidationError`](#journeyvalidationerror)
68
81
  - [`S3Reference`](#s3reference)
@@ -257,6 +270,368 @@ const { data } = await client.removeJourney({
257
270
 
258
271
  ---
259
272
 
273
+ ### `createJourneyRevision`
274
+
275
+ Creates a revision: an immutable copy of the complete journey configuration, identified by `revision_id`. Nothing customers receive changes; the revision only becomes the published version when it is
276
+
277
+ `POST /v1/journey/configuration/{id}/revisions`
278
+
279
+ ```ts
280
+ const { data } = await client.createJourneyRevision(
281
+ {
282
+ id: '123e4567-e89b-12d3-a456-426614174000',
283
+ },
284
+ {
285
+ journeyId: 'string',
286
+ organizationId: 'string',
287
+ brandId: 'string',
288
+ name: 'string',
289
+ steps: [
290
+ {
291
+ showStepName: true,
292
+ title: 'string',
293
+ subTitle: 'string',
294
+ showStepSubtitle: true,
295
+ showStepper: true,
296
+ showStepperLabels: true,
297
+ stepperType: 'numbers',
298
+ hideNextButton: true,
299
+ name: 'string',
300
+ stepId: 'string',
301
+ schema: {},
302
+ uischema: {},
303
+ maxWidth: 'small'
304
+ }
305
+ ],
306
+ design: {
307
+ logoUrl: 'string',
308
+ theme: {},
309
+ designTokens: {}
310
+ },
311
+ rules: [
312
+ {
313
+ type: 'inject',
314
+ sourceType: 'journey',
315
+ source: 'string',
316
+ target: 'string'
317
+ }
318
+ ],
319
+ logics: [
320
+ {
321
+ autoGeneratedId: 'string',
322
+ conditions: ['string'],
323
+ actions: ['string']
324
+ }
325
+ ],
326
+ logicsV4: {},
327
+ contextSchema: [
328
+ {
329
+ id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
330
+ type: 'string',
331
+ paramKey: 'string',
332
+ isRequired: true,
333
+ shouldLoadEntity: true,
334
+ description: 'string'
335
+ }
336
+ ],
337
+ journey_type: 'Sales template (Premium)',
338
+ protected: true,
339
+ protectedEditable: ['string'],
340
+ settings: {
341
+ embedOptions: {
342
+ mode: 'full-screen',
343
+ lang: 'de',
344
+ width: 'string',
345
+ topBar: true,
346
+ scrollToTop: true,
347
+ button: { /* ... */ }
348
+ },
349
+ safeModeAutomation: true,
350
+ canary: true,
351
+ designId: 'string',
352
+ templateId: 'string',
353
+ entityId: 'string',
354
+ mappingsAutomationId: 'string',
355
+ newMappings: true,
356
+ targetedCustomer: 'string',
357
+ description: 'string',
358
+ organizationSettings: {},
359
+ publicToken: 'string',
360
+ runtimeEntities: ['ORDER'],
361
+ filePurposes: ['string'],
362
+ entityTags: ['string'],
363
+ addressSuggestionsFileUrl: 'string',
364
+ addressSuggestionsFileId: 'string',
365
+ addressSuggestionsCountryCode: 'string',
366
+ addressSuggestionsEnableAutoComplete: true,
367
+ addressSuggestionsSource: ['string'],
368
+ addressSuggestionsEnableFreeText: true,
369
+ useNewDesign: true,
370
+ useAustrianLabels: true,
371
+ enableDarkMode: true,
372
+ accessMode: 'PUBLIC',
373
+ authGate: {
374
+ stepId: 'string'
375
+ },
376
+ isPublished: true,
377
+ status: 'string',
378
+ isActive: true,
379
+ savingProgress: {
380
+ mode: 'auto',
381
+ supportedRevision: 0
382
+ },
383
+ thirdPartyCookies: true
384
+ },
385
+ validationRules: {
386
+ block1: 'rule123',
387
+ block2: ['rule456', 'rule789'],
388
+ block3: {
389
+ field1: 'rule101',
390
+ field2: ['rule102', 'rule103']
391
+ }
392
+ },
393
+ _manifest: ['123e4567-e89b-12d3-a456-426614174000'],
394
+ createdBy: 'string',
395
+ updatedBy: 'string',
396
+ __lastModifiedAt: 'string',
397
+ parent_revision_id: '41',
398
+ based_on_revision_id: '37',
399
+ mapping_config_version: 12
400
+ },
401
+ )
402
+ ```
403
+
404
+ <details>
405
+ <summary>Response</summary>
406
+
407
+ ```json
408
+ {
409
+ "revision_id": "42",
410
+ "created_at": "1970-01-01T00:00:00.000Z",
411
+ "created_by": "string",
412
+ "name": "Summer campaign",
413
+ "description": "string",
414
+ "published_at": "1970-01-01T00:00:00.000Z",
415
+ "is_published": true,
416
+ "mapping_config_version": 12
417
+ }
418
+ ```
419
+
420
+ </details>
421
+
422
+ ---
423
+
424
+ ### `listJourneyRevisions`
425
+
426
+ Lists the journey's revision history, newest first. Metadata only, no configuration payload. `is_published` says whether a revision is the published version right now, which is a different question fr
427
+
428
+ `GET /v1/journey/configuration/{id}/revisions`
429
+
430
+ ```ts
431
+ const { data } = await client.listJourneyRevisions({
432
+ id: '123e4567-e89b-12d3-a456-426614174000',
433
+ limit: 1,
434
+ cursor: 'example',
435
+ })
436
+ ```
437
+
438
+ <details>
439
+ <summary>Response</summary>
440
+
441
+ ```json
442
+ {
443
+ "results": [
444
+ {
445
+ "revision_id": "42",
446
+ "created_at": "1970-01-01T00:00:00.000Z",
447
+ "created_by": "string",
448
+ "name": "Summer campaign",
449
+ "description": "string",
450
+ "published_at": "1970-01-01T00:00:00.000Z",
451
+ "is_published": true,
452
+ "mapping_config_version": 12
453
+ }
454
+ ],
455
+ "next_cursor": "string"
456
+ }
457
+ ```
458
+
459
+ </details>
460
+
461
+ ---
462
+
463
+ ### `getJourneyRevision`
464
+
465
+ Returns one revision with its full configuration, in the shape the builder holds a journey in, so it can be loaded straight into the editor as unsaved changes. Reading a revision changes nothing; a cl
466
+
467
+ `GET /v1/journey/configuration/{id}/revisions/{revision_id}`
468
+
469
+ ```ts
470
+ const { data } = await client.getJourneyRevision({
471
+ id: '123e4567-e89b-12d3-a456-426614174000',
472
+ revision_id: 'example',
473
+ })
474
+ ```
475
+
476
+ <details>
477
+ <summary>Response</summary>
478
+
479
+ ```json
480
+ {
481
+ "revision_id": "42",
482
+ "created_at": "1970-01-01T00:00:00.000Z",
483
+ "created_by": "string",
484
+ "name": "Summer campaign",
485
+ "description": "string",
486
+ "published_at": "1970-01-01T00:00:00.000Z",
487
+ "is_published": true,
488
+ "mapping_config_version": 12,
489
+ "configuration": {
490
+ "journeyId": "string",
491
+ "organizationId": "string",
492
+ "brandId": "string",
493
+ "name": "string",
494
+ "steps": [
495
+ {}
496
+ ],
497
+ "design": {
498
+ "logoUrl": "string",
499
+ "theme": {},
500
+ "designTokens": {}
501
+ },
502
+ "rules": [
503
+ {}
504
+ ],
505
+ "logics": [
506
+ {}
507
+ ],
508
+ "logicsV4": {},
509
+ "contextSchema": [
510
+ {}
511
+ ],
512
+ "journey_type": "Sales template (Premium)",
513
+ "protected": true,
514
+ "protectedEditable": ["string"],
515
+ "settings": {
516
+ "embedOptions": {},
517
+ "safeModeAutomation": true,
518
+ "canary": true,
519
+ "designId": "string",
520
+ "templateId": "string",
521
+ "entityId": "string",
522
+ "mappingsAutomationId": "string",
523
+ "newMappings": true,
524
+ "targetedCustomer": "string",
525
+ "description": "string",
526
+ "organizationSettings": {},
527
+ "publicToken": "string",
528
+ "runtimeEntities": ["ORDER"],
529
+ "filePurposes": ["string"],
530
+ "entityTags": ["string"],
531
+ "addressSuggestionsFileUrl": "string",
532
+ "addressSuggestionsFileId": "string",
533
+ "addressSuggestionsCountryCode": "string",
534
+ "addressSuggestionsEnableAutoComplete": true,
535
+ "addressSuggestionsSource": ["string"],
536
+ "addressSuggestionsEnableFreeText": true,
537
+ "useNewDesign": true,
538
+ "useAustrianLabels": true,
539
+ "enableDarkMode": true,
540
+ "accessMode": "PUBLIC",
541
+ "authGate": {},
542
+ "isPublished": true,
543
+ "status": "string",
544
+ "isActive": true,
545
+ "savingProgress": {},
546
+ "thirdPartyCookies": true
547
+ },
548
+ "validationRules": {
549
+ "block1": "rule123",
550
+ "block2": ["rule456", "rule789"],
551
+ "block3": {}
552
+ },
553
+ "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
554
+ "createdBy": "string",
555
+ "updatedBy": "string",
556
+ "__lastModifiedAt": "string",
557
+ "createdAt": "string",
558
+ "lastModifiedAt": "string",
559
+ "deletedAt": "string",
560
+ "version": 0,
561
+ "revisions": 0,
562
+ "featureFlags": {}
563
+ }
564
+ }
565
+ ```
566
+
567
+ </details>
568
+
569
+ ---
570
+
571
+ ### `publishJourneyRevision`
572
+
573
+ Makes one revision the published version, the one customers receive, in a single transaction: the revision's configuration is copied onto the journey record, its datasource set onto the published data
574
+
575
+ `POST /v1/journey/configuration/{id}/publish`
576
+
577
+ ```ts
578
+ const { data } = await client.publishJourneyRevision(
579
+ {
580
+ id: '123e4567-e89b-12d3-a456-426614174000',
581
+ },
582
+ {
583
+ revision_id: '42',
584
+ name: 'Summer campaign',
585
+ description: 'string'
586
+ },
587
+ )
588
+ ```
589
+
590
+ <details>
591
+ <summary>Response</summary>
592
+
593
+ ```json
594
+ {
595
+ "revision_id": "42",
596
+ "name": "Summer campaign",
597
+ "published_at": "1970-01-01T00:00:00.000Z",
598
+ "published_by": "string",
599
+ "post_publish_warnings": ["string"]
600
+ }
601
+ ```
602
+
603
+ </details>
604
+
605
+ ---
606
+
607
+ ### `getJourneyPublishState`
608
+
609
+ Answers which revision is the published version without paging through the history. A journey that has not adopted versioning yet returns `200` with `published_revision_id: null`, not `404`.
610
+
611
+ `GET /v1/journey/configuration/{id}/publish-state`
612
+
613
+ ```ts
614
+ const { data } = await client.getJourneyPublishState({
615
+ id: '123e4567-e89b-12d3-a456-426614174000',
616
+ })
617
+ ```
618
+
619
+ <details>
620
+ <summary>Response</summary>
621
+
622
+ ```json
623
+ {
624
+ "journey_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
625
+ "published_revision_id": "42",
626
+ "published_at": "1970-01-01T00:00:00.000Z",
627
+ "published_by": "string"
628
+ }
629
+ ```
630
+
631
+ </details>
632
+
633
+ ---
634
+
260
635
  ### `getJourneyEnvironment`
261
636
 
262
637
  Resolve the environment variables referenced by this journey. Only browser-safe value types are returned.
@@ -2390,6 +2765,307 @@ type JourneyAuditInfo = {
2390
2765
  }
2391
2766
  ```
2392
2767
 
2768
+ ### `JourneyRevisionRequest`
2769
+
2770
+ The complete journey configuration a revision is created from, same shape as the `PUT` body. Server-managed attributes of the journey record (`revisions`, `version`, publish metadata) are ignored.
2771
+
2772
+
2773
+ ```ts
2774
+ type JourneyRevisionRequest = {
2775
+ journeyId?: string
2776
+ organizationId: string
2777
+ brandId?: string
2778
+ name: string
2779
+ steps: Array<{
2780
+ showStepName?: boolean
2781
+ title?: string
2782
+ subTitle?: string
2783
+ showStepSubtitle?: boolean
2784
+ showStepper?: boolean
2785
+ showStepperLabels?: boolean
2786
+ stepperType?: "numbers" | "progress bar"
2787
+ hideNextButton?: boolean
2788
+ name: string
2789
+ stepId?: string
2790
+ schema: unknown
2791
+ uischema: unknown
2792
+ maxWidth?: "small" | "medium" | "large" | "extra large"
2793
+ }>
2794
+ design?: {
2795
+ logoUrl?: string
2796
+ theme?: Record<string, unknown>
2797
+ designTokens?: object
2798
+ }
2799
+ rules?: Array<{
2800
+ type: "inject" | "injectWithKey"
2801
+ sourceType: "journey" | "step" | "block"
2802
+ source: string
2803
+ target: string
2804
+ }>
2805
+ logics?: Array<{
2806
+ autoGeneratedId?: string
2807
+ conditions: string[]
2808
+ actions: string[]
2809
+ }>
2810
+ logicsV4?: Record<string, {
2811
+ id?: string // uuid
2812
+ protected?: boolean
2813
+ action?: string
2814
+ triggeredOn?: string
2815
+ conditions?: Array<Array<{
2816
+ operator?: { ... }
2817
+ functionName?: { ... }
2818
+ fact?: { ... }
2819
+ value?: { ... }
2820
+ args?: { ... }
2821
+ }>>
2822
+ settings?: object
2823
+ }>
2824
+ contextSchema?: Array<{
2825
+ id?: string // uuid
2826
+ type: string
2827
+ paramKey: string
2828
+ isRequired?: boolean
2829
+ shouldLoadEntity?: boolean
2830
+ description?: string
2831
+ }>
2832
+ journey_type?: string
2833
+ protected?: boolean
2834
+ protectedEditable?: string[]
2835
+ settings?: {
2836
+ embedOptions?: {
2837
+ mode?: { ... }
2838
+ lang?: { ... }
2839
+ width?: { ... }
2840
+ topBar?: { ... }
2841
+ scrollToTop?: { ... }
2842
+ button?: { ... }
2843
+ }
2844
+ safeModeAutomation?: boolean
2845
+ canary?: boolean
2846
+ designId: string
2847
+ templateId?: string
2848
+ entityId?: string
2849
+ mappingsAutomationId?: string
2850
+ newMappings?: boolean
2851
+ targetedCustomer?: string
2852
+ description?: string
2853
+ organizationSettings?: Record<string, boolean>
2854
+ publicToken?: string
2855
+ runtimeEntities?: "ORDER" | "OPPORTUNITY"[]
2856
+ filePurposes?: string[]
2857
+ entityTags?: string[]
2858
+ addressSuggestionsFileUrl?: string
2859
+ addressSuggestionsFileId?: string
2860
+ addressSuggestionsCountryCode?: string
2861
+ addressSuggestionsEnableAutoComplete?: boolean
2862
+ addressSuggestionsSource?: string[]
2863
+ addressSuggestionsEnableFreeText?: boolean
2864
+ useNewDesign?: boolean
2865
+ useAustrianLabels?: boolean
2866
+ enableDarkMode?: boolean
2867
+ accessMode?: "PUBLIC" | "PRIVATE"
2868
+ authGate?: {
2869
+ stepId: { ... }
2870
+ }
2871
+ isPublished?: boolean
2872
+ status?: string
2873
+ isActive?: boolean
2874
+ // ...
2875
+ }
2876
+ ```
2877
+
2878
+ ### `PublishRevisionRequest`
2879
+
2880
+ ```ts
2881
+ type PublishRevisionRequest = {
2882
+ revision_id: string
2883
+ name?: string
2884
+ description?: string
2885
+ }
2886
+ ```
2887
+
2888
+ ### `JourneyRevisionSummary`
2889
+
2890
+ ```ts
2891
+ type JourneyRevisionSummary = {
2892
+ revision_id: string
2893
+ created_at: string // date-time
2894
+ created_by?: string
2895
+ name?: string
2896
+ description?: string
2897
+ published_at?: string // date-time
2898
+ is_published: boolean
2899
+ mapping_config_version?: number
2900
+ }
2901
+ ```
2902
+
2903
+ ### `JourneyRevisionList`
2904
+
2905
+ ```ts
2906
+ type JourneyRevisionList = {
2907
+ results: Array<{
2908
+ revision_id: string
2909
+ created_at: string // date-time
2910
+ created_by?: string
2911
+ name?: string
2912
+ description?: string
2913
+ published_at?: string // date-time
2914
+ is_published: boolean
2915
+ mapping_config_version?: number
2916
+ }>
2917
+ next_cursor?: string
2918
+ }
2919
+ ```
2920
+
2921
+ ### `JourneyRevision`
2922
+
2923
+ ```ts
2924
+ type JourneyRevision = {
2925
+ revision_id: string
2926
+ created_at: string // date-time
2927
+ created_by?: string
2928
+ name?: string
2929
+ description?: string
2930
+ published_at?: string // date-time
2931
+ is_published: boolean
2932
+ mapping_config_version?: number
2933
+ configuration: {
2934
+ journeyId?: string
2935
+ organizationId: string
2936
+ brandId?: string
2937
+ name: string
2938
+ steps: Array<{
2939
+ showStepName?: { ... }
2940
+ title?: { ... }
2941
+ subTitle?: { ... }
2942
+ showStepSubtitle?: { ... }
2943
+ showStepper?: { ... }
2944
+ showStepperLabels?: { ... }
2945
+ stepperType?: { ... }
2946
+ hideNextButton?: { ... }
2947
+ name: { ... }
2948
+ stepId?: { ... }
2949
+ schema: { ... }
2950
+ uischema: { ... }
2951
+ maxWidth?: { ... }
2952
+ }>
2953
+ design?: {
2954
+ logoUrl?: { ... }
2955
+ theme?: { ... }
2956
+ designTokens?: { ... }
2957
+ }
2958
+ rules?: Array<{
2959
+ type: { ... }
2960
+ sourceType: { ... }
2961
+ source: { ... }
2962
+ target: { ... }
2963
+ }>
2964
+ logics?: Array<{
2965
+ autoGeneratedId?: { ... }
2966
+ conditions: { ... }
2967
+ actions: { ... }
2968
+ }>
2969
+ logicsV4?: Record<string, {
2970
+ id?: { ... }
2971
+ protected?: { ... }
2972
+ action?: { ... }
2973
+ triggeredOn?: { ... }
2974
+ conditions?: { ... }
2975
+ settings?: { ... }
2976
+ }>
2977
+ contextSchema?: Array<{
2978
+ id?: { ... }
2979
+ type: { ... }
2980
+ paramKey: { ... }
2981
+ isRequired?: { ... }
2982
+ shouldLoadEntity?: { ... }
2983
+ description?: { ... }
2984
+ }>
2985
+ journey_type?: string
2986
+ protected?: boolean
2987
+ protectedEditable?: string[]
2988
+ settings?: {
2989
+ embedOptions?: { ... }
2990
+ safeModeAutomation?: { ... }
2991
+ canary?: { ... }
2992
+ designId: { ... }
2993
+ templateId?: { ... }
2994
+ entityId?: { ... }
2995
+ mappingsAutomationId?: { ... }
2996
+ newMappings?: { ... }
2997
+ targetedCustomer?: { ... }
2998
+ description?: { ... }
2999
+ organizationSettings?: { ... }
3000
+ publicToken?: { ... }
3001
+ runtimeEntities?: { ... }
3002
+ filePurposes?: { ... }
3003
+ entityTags?: { ... }
3004
+ addressSuggestionsFileUrl?: { ... }
3005
+ addressSuggestionsFileId?: { ... }
3006
+ addressSuggestionsCountryCode?: { ... }
3007
+ addressSuggestionsEnableAutoComplete?: { ... }
3008
+ addressSuggestionsSource?: { ... }
3009
+ addressSuggestionsEnableFreeText?: { ... }
3010
+ useNewDesign?: { ... }
3011
+ useAustrianLabels?: { ... }
3012
+ enableDarkMode?: { ... }
3013
+ accessMode?: { ... }
3014
+ authGate?: { ... }
3015
+ isPublished?: { ... }
3016
+ status?: { ... }
3017
+ isActive?: { ... }
3018
+ savingProgress?: { ... }
3019
+ thirdPartyCookies?: { ... }
3020
+ }
3021
+ validationRules?: Record<string, string | string[] | Record<string, string | string[]>>
3022
+ _manifest?: string // uuid[]
3023
+ createdBy?: string
3024
+ // ...
3025
+ }
3026
+ ```
3027
+
3028
+ ### `JourneyRevisionConflict`
3029
+
3030
+ ```ts
3031
+ type JourneyRevisionConflict = {
3032
+ message: string
3033
+ latest_revision: {
3034
+ revision_id: string
3035
+ created_at: string // date-time
3036
+ created_by?: string
3037
+ name?: string
3038
+ description?: string
3039
+ published_at?: string // date-time
3040
+ is_published: boolean
3041
+ mapping_config_version?: number
3042
+ }
3043
+ }
3044
+ ```
3045
+
3046
+ ### `JourneyPublishState`
3047
+
3048
+ ```ts
3049
+ type JourneyPublishState = {
3050
+ journey_id: string // uuid
3051
+ published_revision_id: string
3052
+ published_at?: string // date-time
3053
+ published_by?: string
3054
+ }
3055
+ ```
3056
+
3057
+ ### `PublishResult`
3058
+
3059
+ ```ts
3060
+ type PublishResult = {
3061
+ revision_id: string
3062
+ name: string
3063
+ published_at: string // date-time
3064
+ published_by?: string
3065
+ post_publish_warnings: string[]
3066
+ }
3067
+ ```
3068
+
2393
3069
  ### `JourneyValidationResponse`
2394
3070
 
2395
3071
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.20.9",
3
+ "version": "2.20.11",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -1 +0,0 @@
1
- {"s":"https://access-token.sls.epilot.io","o":[["createAccessToken","post","/v1/access-tokens",null,1],["listAccessTokens","get","/v1/access-tokens",[["token_type","q"]]],["revokeAccessToken","delete","/v1/access-tokens/{id}",[["id","p",true]]],["getAccessTokenJwks","get","/v1/access-tokens/.well-known/jwks.json"],["getAccessTokenOIDC","get","/v1/access-tokens/.well-known/openid-configuration"],["getPublicTokenJwks","get","/v1/access-tokens/public/.well-known/jwks.json"],["getPortalPreviewTokenJwks","get","/v1/access-tokens/portal-preview/.well-known/jwks.json"],["getPublicTokenOIDC","get","/v1/access-tokens/public/.well-known/openid-configuration"],["getPortalPreviewTokenOIDC","get","/v1/access-tokens/portal-preview/.well-known/openid-configuration"]],"v":"3.0.3"}