@epilot/sdk 2.20.78 → 2.20.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/integration-toolkit.json +251 -63
- package/definitions/journey-runtime.json +1 -1
- package/definitions/journey.json +399 -13
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/chat.cjs +6 -6
- package/dist/apis/chat.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/external-values.cjs +6 -6
- package/dist/apis/external-values.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/identity.cjs +6 -6
- package/dist/apis/identity.js +1 -1
- package/dist/apis/integration-toolkit.cjs +14 -10
- package/dist/apis/integration-toolkit.d.cts +2 -2
- package/dist/apis/integration-toolkit.d.ts +2 -2
- package/dist/apis/integration-toolkit.js +9 -5
- package/dist/apis/journey.cjs +8 -8
- package/dist/apis/journey.d.cts +2 -2
- package/dist/apis/journey.d.ts +2 -2
- package/dist/apis/journey.js +2 -2
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/phone-integration.cjs +6 -6
- package/dist/apis/phone-integration.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/{chunk-M5Z7JYJ3.cjs → chunk-4G44P2X4.cjs} +3 -3
- package/dist/{chunk-ZREXF3XS.js → chunk-5Z7XQQT2.js} +3 -3
- package/dist/{chunk-I3ZZES76.js → chunk-NQBHADQX.js} +1 -1
- package/dist/{chunk-QYHNZLHS.cjs → chunk-PK5IH3WQ.cjs} +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/integration-toolkit-3XNG4PL5.cjs +7 -0
- package/dist/integration-toolkit-VLTS5HKV.js +7 -0
- package/dist/{integration-toolkit.d-l5cgwHLa.d.cts → integration-toolkit.d-BGF0LVB7.d.cts} +587 -85
- package/dist/{integration-toolkit.d-l5cgwHLa.d.ts → integration-toolkit.d-BGF0LVB7.d.ts} +587 -85
- package/dist/journey-LAEXXNCD.js +7 -0
- package/dist/journey-RKBZQRPL.cjs +7 -0
- package/dist/{journey-runtime-KZUPV4XH.cjs → journey-runtime-2N77HRB6.cjs} +2 -2
- package/dist/{journey-runtime-AQH7EG4C.js → journey-runtime-YJ5G4IG2.js} +1 -1
- package/dist/{journey.d-CMtM6U3Y.d.cts → journey.d-5GpTnSld.d.cts} +261 -80
- package/dist/{journey.d-CMtM6U3Y.d.ts → journey.d-5GpTnSld.d.ts} +261 -80
- package/docs/integration-toolkit.md +88 -270
- package/docs/journey.md +217 -38
- package/package.json +1 -1
- package/dist/integration-toolkit-FI32O7II.cjs +0 -7
- package/dist/integration-toolkit-MHULDW3E.js +0 -7
- package/dist/journey-JDIVUY7T.cjs +0 -7
- package/dist/journey-PBOMOJ5G.js +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"s":"https://journey-config.sls.epilot.io","o":[["getJourneysByOrgId","get","/v1/journey/organization/{id}",[["id","p",true],["hydrate","q"]]],["getJourney","get","/v1/journey/configuration/{id}",[["id","p",true],["version","q"],["revision_id","q"],["source","q"],["orgId","q"]]],["removeJourney","delete","/v1/journey/configuration/{id}",[["id","p",true]]],["createJourneyRevision","post","/v1/journey/configuration/{id}/revisions",[["id","p",true]],1],["listJourneyRevisions","get","/v1/journey/configuration/{id}/revisions",[["id","p",true],["limit","q"],["cursor","q"]]],["getJourneyRevision","get","/v1/journey/configuration/{id}/revisions/{revision_id}",[["id","p",true],["revision_id","p",true]]],["publishJourneyRevision","post","/v1/journey/configuration/{id}/publish",[["id","p",true]],1],["getJourneyPublishState","get","/v1/journey/configuration/{id}/publish-state",[["id","p",true]]],["getJourneyEnvironment","get","/v1/journey/configuration/{id}/environment",[["id","p",true]]],["resolveJourneyExternalValues","post","/v1/journey/configuration/{id}/external-values",[["id","p",true]],1],["getJourneyEnvironmentVariables","get","/v1/journey/environment-variables"],["getJourneyProducts","get","/v1/journey/products/{id}",[["id","p",true],["source","q"],["postal_code","q"],["city","q"],["street","q"],["street_number","q"]]],["createJourney","post","/v1/journey/configuration",[["skipAutomation","q"]],1],["updateJourney","put","/v1/journey/configuration",null,1],["patchUpdateJourney","patch","/v1/journey/configuration",null,1],["searchJourneys","post","/v1/journey/configuration/search",null,1],["generateDocument","post","/v1/journey/document:generate",null,1],["createJourneyV2","post","/v2/journey/configuration",[["skipAutomation","q"]],1],["updateJourneyV2","put","/v2/journey/configuration",null,1],["patchUpdateJourneyV2","patch","/v2/journey/configuration",null,1],["getJourneyV2","get","/v2/journey/configuration/{id}",[["id","p",true],["version","q"]]],["removeJourneyV2","delete","/v2/journey/configuration/{id}",[["id","p",true]]],["getSettingsForJourney","get","/v1/journey/{id}/settings",[["id","p",true]]],["getButtonOptions","get","/v1/journey/button-options",[["fileId","q",true]]]],"v":"3.0.0"}
|
|
1
|
+
{"s":"https://journey-config.sls.epilot.io","o":[["getJourneysByOrgId","get","/v1/journey/organization/{id}",[["id","p",true],["hydrate","q"]]],["getJourney","get","/v1/journey/configuration/{id}",[["id","p",true],["version","q"],["revision_id","q"],["source","q"],["orgId","q"]]],["removeJourney","delete","/v1/journey/configuration/{id}",[["id","p",true]]],["createJourneyRevision","post","/v1/journey/configuration/{id}/revisions",[["id","p",true]],1],["listJourneyRevisions","get","/v1/journey/configuration/{id}/revisions",[["id","p",true],["limit","q"],["cursor","q"]]],["getJourneyRevision","get","/v1/journey/configuration/{id}/revisions/{revision_id}",[["id","p",true],["revision_id","p",true]]],["publishJourneyRevision","post","/v1/journey/configuration/{id}/publish",[["id","p",true]],1],["getJourneyPublishState","get","/v1/journey/configuration/{id}/publish-state",[["id","p",true]]],["getJourneyEnvironment","get","/v1/journey/configuration/{id}/environment",[["id","p",true]]],["resolveJourneyExternalValues","post","/v1/journey/configuration/{id}/external-values",[["id","p",true]],1],["getJourneyEnvironmentVariables","get","/v1/journey/environment-variables"],["getJourneyTemplateVariables","get","/v1/journey/template-variables"],["getJourneyProducts","get","/v1/journey/products/{id}",[["id","p",true],["source","q"],["postal_code","q"],["city","q"],["street","q"],["street_number","q"]]],["createJourney","post","/v1/journey/configuration",[["skipAutomation","q"]],1],["updateJourney","put","/v1/journey/configuration",null,1],["patchUpdateJourney","patch","/v1/journey/configuration",null,1],["searchJourneys","post","/v1/journey/configuration/search",null,1],["generateDocument","post","/v1/journey/document:generate",null,1],["createJourneyV2","post","/v2/journey/configuration",[["skipAutomation","q"]],1],["updateJourneyV2","put","/v2/journey/configuration",null,1],["patchUpdateJourneyV2","patch","/v2/journey/configuration",null,1],["getJourneyV2","get","/v2/journey/configuration/{id}",[["id","p",true],["version","q"]]],["removeJourneyV2","delete","/v2/journey/configuration/{id}",[["id","p",true]]],["getSettingsForJourney","get","/v1/journey/{id}/settings",[["id","p",true]]],["getButtonOptions","get","/v1/journey/button-options",[["fileId","q",true]]]],"v":"3.0.0"}
|
package/definitions/journey.json
CHANGED
|
@@ -44,6 +44,12 @@
|
|
|
44
44
|
"/v1/journey/organization/{id}": {
|
|
45
45
|
"get": {
|
|
46
46
|
"operationId": "getJourneysByOrgId",
|
|
47
|
+
"x-epilot-permissions": [
|
|
48
|
+
{
|
|
49
|
+
"action": "entity:view",
|
|
50
|
+
"resource": "journey:*"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
47
53
|
"summary": "getJourneysByOrgId",
|
|
48
54
|
"description": "Get all journeys by organization id",
|
|
49
55
|
"tags": [
|
|
@@ -88,6 +94,19 @@
|
|
|
88
94
|
"/v1/journey/configuration/{id}": {
|
|
89
95
|
"get": {
|
|
90
96
|
"operationId": "getJourney",
|
|
97
|
+
"x-epilot-permissions": [
|
|
98
|
+
{
|
|
99
|
+
"anyOf": [
|
|
100
|
+
{
|
|
101
|
+
"action": "entity:view",
|
|
102
|
+
"resource": "journey:*"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"access": "portal"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
],
|
|
91
110
|
"summary": "getJourney",
|
|
92
111
|
"description": "Get journey by id. Private journeys requires valid private token to be passed",
|
|
93
112
|
"security": [
|
|
@@ -178,6 +197,12 @@
|
|
|
178
197
|
},
|
|
179
198
|
"delete": {
|
|
180
199
|
"operationId": "removeJourney",
|
|
200
|
+
"x-epilot-permissions": [
|
|
201
|
+
{
|
|
202
|
+
"action": "entity:delete",
|
|
203
|
+
"resource": "journey:*"
|
|
204
|
+
}
|
|
205
|
+
],
|
|
181
206
|
"summary": "removeJourney",
|
|
182
207
|
"description": "Remove journey by id",
|
|
183
208
|
"tags": [
|
|
@@ -223,6 +248,12 @@
|
|
|
223
248
|
"/v1/journey/configuration/{id}/revisions": {
|
|
224
249
|
"post": {
|
|
225
250
|
"operationId": "createJourneyRevision",
|
|
251
|
+
"x-epilot-permissions": [
|
|
252
|
+
{
|
|
253
|
+
"action": "entity:edit",
|
|
254
|
+
"resource": "journey:*"
|
|
255
|
+
}
|
|
256
|
+
],
|
|
226
257
|
"summary": "createJourneyRevision",
|
|
227
258
|
"description": "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 published. The payload is complete and is not merged against the journey record or the previous revision. The entity datasource set of the revision is stored separately through the datasources API under the same `revision_id`.\n\nOnly available for organizations with journey versioning enabled; returns `404` otherwise.\n",
|
|
228
259
|
"tags": [
|
|
@@ -291,6 +322,12 @@
|
|
|
291
322
|
},
|
|
292
323
|
"get": {
|
|
293
324
|
"operationId": "listJourneyRevisions",
|
|
325
|
+
"x-epilot-permissions": [
|
|
326
|
+
{
|
|
327
|
+
"action": "entity:edit",
|
|
328
|
+
"resource": "journey:*"
|
|
329
|
+
}
|
|
330
|
+
],
|
|
294
331
|
"summary": "listJourneyRevisions",
|
|
295
332
|
"description": "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 from `published_at`, which records the last time it was published.\n\nOnly available for organizations with journey versioning enabled; returns `404` otherwise.\n",
|
|
296
333
|
"tags": [
|
|
@@ -361,6 +398,12 @@
|
|
|
361
398
|
"/v1/journey/configuration/{id}/revisions/{revision_id}": {
|
|
362
399
|
"get": {
|
|
363
400
|
"operationId": "getJourneyRevision",
|
|
401
|
+
"x-epilot-permissions": [
|
|
402
|
+
{
|
|
403
|
+
"action": "entity:edit",
|
|
404
|
+
"resource": "journey:*"
|
|
405
|
+
}
|
|
406
|
+
],
|
|
364
407
|
"summary": "getJourneyRevision",
|
|
365
408
|
"description": "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 client persists it, if at all, by posting it back to `POST .../revisions`.\n\nOnly available for organizations with journey versioning enabled; returns `404` otherwise.\n",
|
|
366
409
|
"tags": [
|
|
@@ -417,6 +460,12 @@
|
|
|
417
460
|
"/v1/journey/configuration/{id}/publish": {
|
|
418
461
|
"post": {
|
|
419
462
|
"operationId": "publishJourneyRevision",
|
|
463
|
+
"x-epilot-permissions": [
|
|
464
|
+
{
|
|
465
|
+
"action": "entity:edit",
|
|
466
|
+
"resource": "journey:*"
|
|
467
|
+
}
|
|
468
|
+
],
|
|
420
469
|
"summary": "publishJourneyRevision",
|
|
421
470
|
"description": "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 datasources, and `name`, `description`, `published_at` and `published_by` are stamped onto the revision. Any revision can be published, old or new, so publishing an older revision is the rollback.\n\n`name` is generated server-side when omitted, so every published revision carries one; an omitted name never replaces a name a previous publish already set. `settings.isActive` is never changed by a publish.\n\nOnly available for organizations with journey versioning enabled; returns `404` otherwise.\n",
|
|
422
471
|
"tags": [
|
|
@@ -480,6 +529,12 @@
|
|
|
480
529
|
"/v1/journey/configuration/{id}/publish-state": {
|
|
481
530
|
"get": {
|
|
482
531
|
"operationId": "getJourneyPublishState",
|
|
532
|
+
"x-epilot-permissions": [
|
|
533
|
+
{
|
|
534
|
+
"action": "entity:edit",
|
|
535
|
+
"resource": "journey:*"
|
|
536
|
+
}
|
|
537
|
+
],
|
|
483
538
|
"summary": "getJourneyPublishState",
|
|
484
539
|
"description": "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`.\n\nOnly available for organizations with journey versioning enabled; returns `404` otherwise.\n",
|
|
485
540
|
"tags": [
|
|
@@ -526,6 +581,18 @@
|
|
|
526
581
|
"/v1/journey/configuration/{id}/environment": {
|
|
527
582
|
"get": {
|
|
528
583
|
"operationId": "getJourneyEnvironment",
|
|
584
|
+
"x-epilot-permissions": [
|
|
585
|
+
{
|
|
586
|
+
"anyOf": [
|
|
587
|
+
{
|
|
588
|
+
"access": "org"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"access": "portal"
|
|
592
|
+
}
|
|
593
|
+
]
|
|
594
|
+
}
|
|
595
|
+
],
|
|
529
596
|
"summary": "getJourneyEnvironment",
|
|
530
597
|
"description": "Resolve the environment variables referenced by this journey: the environment-backed datasources declared in its steps, whether they source a block's options or supply the value an attached validation rule compares against, answered per datasource id; and the variables its logic conditions read, keyed by variable key (`variables` / `variableErrors`). Only browser-safe value types are returned; validation-rule values additionally exclude `Map`. Accepts either the public journey access token bound to this journey, or the caller's own portal (ECP) or epilot user token. A PRIVATE journey is served only to a portal or user token permitted to view it, the same rule getJourney applies.",
|
|
531
598
|
"security": [
|
|
@@ -585,6 +652,11 @@
|
|
|
585
652
|
"/v1/journey/configuration/{id}/external-values": {
|
|
586
653
|
"post": {
|
|
587
654
|
"operationId": "resolveJourneyExternalValues",
|
|
655
|
+
"x-epilot-permissions": [
|
|
656
|
+
{
|
|
657
|
+
"access": "portal"
|
|
658
|
+
}
|
|
659
|
+
],
|
|
588
660
|
"summary": "resolveJourneyExternalValues",
|
|
589
661
|
"description": "Resolve the External Values hooks this journey's validation rules compare against.\n\nThe journey runtime never calls external-values-api itself. A request names a datasource\nid declared by the saved journey config; the app and hook it resolves are read from that\nconfig, so a visitor cannot aim an installed app's integration at an arbitrary hook.\n\nRequires a portal token: a hook call reaches the organization's third-party system, so it\nstays behind the identified-customer boundary. Public journeys skip these conditions.\n\nAnswers 200 whenever the request itself was valid, including when a hook failed — per\ndatasource, so one unreachable system never fails the rules that did resolve.\n",
|
|
590
662
|
"security": [
|
|
@@ -648,6 +720,12 @@
|
|
|
648
720
|
"/v1/journey/environment-variables": {
|
|
649
721
|
"get": {
|
|
650
722
|
"operationId": "getJourneyEnvironmentVariables",
|
|
723
|
+
"x-epilot-permissions": [
|
|
724
|
+
{
|
|
725
|
+
"action": "entity:view",
|
|
726
|
+
"resource": "journey:*"
|
|
727
|
+
}
|
|
728
|
+
],
|
|
651
729
|
"summary": "getJourneyEnvironmentVariables",
|
|
652
730
|
"description": "List the organization's client-safe environment variables a journey may use: Map and List<Link> as an options source; Text, Number, Boolean and lists of them in logic conditions. Only variables that currently hold a valid value are returned. Intended for the journey builder's authoring UI; requires a journey authoring token, not an environments token.",
|
|
653
731
|
"security": [
|
|
@@ -689,9 +767,61 @@
|
|
|
689
767
|
}
|
|
690
768
|
}
|
|
691
769
|
},
|
|
770
|
+
"/v1/journey/template-variables": {
|
|
771
|
+
"get": {
|
|
772
|
+
"operationId": "getJourneyTemplateVariables",
|
|
773
|
+
"summary": "getJourneyTemplateVariables",
|
|
774
|
+
"description": "List what a journey template can reference beyond the entity's own attributes: the organization's Custom Variables and its scalar environment variables (`String`, `Text`, `Number`, `Boolean`). Names only, never values. Intended for the journey builder's variable picker; requires a journey authoring token, not an environments token.",
|
|
775
|
+
"x-epilot-permissions": [
|
|
776
|
+
{
|
|
777
|
+
"action": "entity:view",
|
|
778
|
+
"resource": "journey:*"
|
|
779
|
+
}
|
|
780
|
+
],
|
|
781
|
+
"security": [
|
|
782
|
+
{
|
|
783
|
+
"EpilotAuth": []
|
|
784
|
+
}
|
|
785
|
+
],
|
|
786
|
+
"tags": [
|
|
787
|
+
"Journeys"
|
|
788
|
+
],
|
|
789
|
+
"responses": {
|
|
790
|
+
"200": {
|
|
791
|
+
"description": "Custom Variables and scalar environment variables available to templates",
|
|
792
|
+
"headers": {
|
|
793
|
+
"Cache-Control": {
|
|
794
|
+
"schema": {
|
|
795
|
+
"type": "string"
|
|
796
|
+
},
|
|
797
|
+
"description": "Always private, no-store"
|
|
798
|
+
}
|
|
799
|
+
},
|
|
800
|
+
"content": {
|
|
801
|
+
"application/json": {
|
|
802
|
+
"schema": {
|
|
803
|
+
"$ref": "#/components/schemas/JourneyTemplateVariablesResponse"
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
"401": {
|
|
809
|
+
"description": "Authorization token missing"
|
|
810
|
+
},
|
|
811
|
+
"403": {
|
|
812
|
+
"description": "Not permitted to read this organization's journeys"
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
},
|
|
692
817
|
"/v1/journey/products/{id}": {
|
|
693
818
|
"get": {
|
|
694
819
|
"operationId": "getJourneyProducts",
|
|
820
|
+
"x-epilot-permissions": [
|
|
821
|
+
{
|
|
822
|
+
"access": "org"
|
|
823
|
+
}
|
|
824
|
+
],
|
|
695
825
|
"summary": "getJourneyProducts",
|
|
696
826
|
"description": "Get products available in the journey by id. requires public journey token to be passed.",
|
|
697
827
|
"security": [
|
|
@@ -777,6 +907,12 @@
|
|
|
777
907
|
"/v1/journey/configuration": {
|
|
778
908
|
"post": {
|
|
779
909
|
"operationId": "createJourney",
|
|
910
|
+
"x-epilot-permissions": [
|
|
911
|
+
{
|
|
912
|
+
"action": "entity:create",
|
|
913
|
+
"resource": "journey"
|
|
914
|
+
}
|
|
915
|
+
],
|
|
780
916
|
"summary": "createJourney",
|
|
781
917
|
"description": "Create a Journey",
|
|
782
918
|
"tags": [
|
|
@@ -830,6 +966,12 @@
|
|
|
830
966
|
},
|
|
831
967
|
"put": {
|
|
832
968
|
"operationId": "updateJourney",
|
|
969
|
+
"x-epilot-permissions": [
|
|
970
|
+
{
|
|
971
|
+
"action": "entity:edit",
|
|
972
|
+
"resource": "journey:*"
|
|
973
|
+
}
|
|
974
|
+
],
|
|
833
975
|
"summary": "updateJourney",
|
|
834
976
|
"description": "Update a Journey",
|
|
835
977
|
"tags": [
|
|
@@ -876,6 +1018,12 @@
|
|
|
876
1018
|
},
|
|
877
1019
|
"patch": {
|
|
878
1020
|
"operationId": "patchUpdateJourney",
|
|
1021
|
+
"x-epilot-permissions": [
|
|
1022
|
+
{
|
|
1023
|
+
"action": "entity:edit",
|
|
1024
|
+
"resource": "journey:*"
|
|
1025
|
+
}
|
|
1026
|
+
],
|
|
879
1027
|
"summary": "patchUpdateJourney",
|
|
880
1028
|
"description": "Update a Journey (partially / patch). Support for nested properties updates (e.g. \"property[0].name\").",
|
|
881
1029
|
"tags": [
|
|
@@ -943,6 +1091,12 @@
|
|
|
943
1091
|
"/v1/journey/configuration/search": {
|
|
944
1092
|
"post": {
|
|
945
1093
|
"operationId": "searchJourneys",
|
|
1094
|
+
"x-epilot-permissions": [
|
|
1095
|
+
{
|
|
1096
|
+
"action": "entity:view",
|
|
1097
|
+
"resource": "journey:*"
|
|
1098
|
+
}
|
|
1099
|
+
],
|
|
946
1100
|
"summary": "searchJourneys",
|
|
947
1101
|
"description": "Search Journeys",
|
|
948
1102
|
"tags": [
|
|
@@ -976,6 +1130,11 @@
|
|
|
976
1130
|
"/v1/journey/document:generate": {
|
|
977
1131
|
"post": {
|
|
978
1132
|
"operationId": "generateDocument",
|
|
1133
|
+
"x-epilot-permissions": [
|
|
1134
|
+
{
|
|
1135
|
+
"access": "org"
|
|
1136
|
+
}
|
|
1137
|
+
],
|
|
979
1138
|
"summary": "generateDocument",
|
|
980
1139
|
"description": "Builds document generated from a template with journey values.\"\n\nSupported input document types:\n- .docx\n\nSupported output document types:\n- .pdf\n- .docx but limited to only text based variables\n\nUses [Document API](https://gitlab.com/e-pilot/product/file-management/document-api) to generate the document.\nUses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the document.\n",
|
|
981
1140
|
"security": [
|
|
@@ -1013,6 +1172,12 @@
|
|
|
1013
1172
|
"/v2/journey/configuration": {
|
|
1014
1173
|
"post": {
|
|
1015
1174
|
"operationId": "createJourneyV2",
|
|
1175
|
+
"x-epilot-permissions": [
|
|
1176
|
+
{
|
|
1177
|
+
"action": "entity:create",
|
|
1178
|
+
"resource": "journey"
|
|
1179
|
+
}
|
|
1180
|
+
],
|
|
1016
1181
|
"summary": "createJourneyV2",
|
|
1017
1182
|
"description": "Create a Journey",
|
|
1018
1183
|
"tags": [
|
|
@@ -1066,6 +1231,12 @@
|
|
|
1066
1231
|
},
|
|
1067
1232
|
"put": {
|
|
1068
1233
|
"operationId": "updateJourneyV2",
|
|
1234
|
+
"x-epilot-permissions": [
|
|
1235
|
+
{
|
|
1236
|
+
"action": "entity:edit",
|
|
1237
|
+
"resource": "journey:*"
|
|
1238
|
+
}
|
|
1239
|
+
],
|
|
1069
1240
|
"summary": "updateJourneyV2",
|
|
1070
1241
|
"description": "Update a Journey",
|
|
1071
1242
|
"tags": [
|
|
@@ -1123,6 +1294,12 @@
|
|
|
1123
1294
|
},
|
|
1124
1295
|
"patch": {
|
|
1125
1296
|
"operationId": "patchUpdateJourneyV2",
|
|
1297
|
+
"x-epilot-permissions": [
|
|
1298
|
+
{
|
|
1299
|
+
"action": "entity:edit",
|
|
1300
|
+
"resource": "journey:*"
|
|
1301
|
+
}
|
|
1302
|
+
],
|
|
1126
1303
|
"summary": "patchUpdateJourneyV2",
|
|
1127
1304
|
"description": "Update a Journey (partially / patch). Support for nested properties updates (e.g. \"property[0].name\").",
|
|
1128
1305
|
"tags": [
|
|
@@ -1241,6 +1418,12 @@
|
|
|
1241
1418
|
},
|
|
1242
1419
|
"delete": {
|
|
1243
1420
|
"operationId": "removeJourneyV2",
|
|
1421
|
+
"x-epilot-permissions": [
|
|
1422
|
+
{
|
|
1423
|
+
"action": "entity:delete",
|
|
1424
|
+
"resource": "journey:*"
|
|
1425
|
+
}
|
|
1426
|
+
],
|
|
1244
1427
|
"summary": "removeJourneyV2",
|
|
1245
1428
|
"description": "Remove journey by id",
|
|
1246
1429
|
"tags": [
|
|
@@ -1275,9 +1458,7 @@
|
|
|
1275
1458
|
"tags": [
|
|
1276
1459
|
"Journeys"
|
|
1277
1460
|
],
|
|
1278
|
-
"security": [
|
|
1279
|
-
{}
|
|
1280
|
-
],
|
|
1461
|
+
"security": [],
|
|
1281
1462
|
"parameters": [
|
|
1282
1463
|
{
|
|
1283
1464
|
"name": "id",
|
|
@@ -1340,6 +1521,11 @@
|
|
|
1340
1521
|
"/v1/journey/button-options": {
|
|
1341
1522
|
"get": {
|
|
1342
1523
|
"operationId": "getButtonOptions",
|
|
1524
|
+
"x-epilot-permissions": [
|
|
1525
|
+
{
|
|
1526
|
+
"access": "org"
|
|
1527
|
+
}
|
|
1528
|
+
],
|
|
1343
1529
|
"summary": "getButtonOptions",
|
|
1344
1530
|
"description": "Get button options from a csv file.",
|
|
1345
1531
|
"security": [
|
|
@@ -1843,6 +2029,156 @@
|
|
|
1843
2029
|
}
|
|
1844
2030
|
}
|
|
1845
2031
|
},
|
|
2032
|
+
"JourneyTemplatingContext": {
|
|
2033
|
+
"description": "What the journey's Handlebars templates need from the organization, derived from the served configuration only. Present when the journey contains templates and templating is enabled for the organization. Read-only: like `featureFlags`, it is dropped from any write, so a client that sends the configuration back never stores it.\n",
|
|
2034
|
+
"type": "object",
|
|
2035
|
+
"properties": {
|
|
2036
|
+
"templating": {
|
|
2037
|
+
"$ref": "#/components/schemas/JourneyTemplating"
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
},
|
|
2041
|
+
"JourneyTemplateVariablesResponse": {
|
|
2042
|
+
"type": "object",
|
|
2043
|
+
"required": [
|
|
2044
|
+
"customVariables",
|
|
2045
|
+
"environment"
|
|
2046
|
+
],
|
|
2047
|
+
"properties": {
|
|
2048
|
+
"customVariables": {
|
|
2049
|
+
"type": "array",
|
|
2050
|
+
"description": "Custom Variables a template can expand as `{{key}}`",
|
|
2051
|
+
"items": {
|
|
2052
|
+
"type": "object",
|
|
2053
|
+
"required": [
|
|
2054
|
+
"key",
|
|
2055
|
+
"name"
|
|
2056
|
+
],
|
|
2057
|
+
"properties": {
|
|
2058
|
+
"key": {
|
|
2059
|
+
"type": "string"
|
|
2060
|
+
},
|
|
2061
|
+
"name": {
|
|
2062
|
+
"type": "string"
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
},
|
|
2067
|
+
"environment": {
|
|
2068
|
+
"type": "array",
|
|
2069
|
+
"description": "Environment variables a template can read as `{{env.key}}`; a Link as `{{env.key.url}}` and `{{env.key.label}}`",
|
|
2070
|
+
"items": {
|
|
2071
|
+
"type": "object",
|
|
2072
|
+
"required": [
|
|
2073
|
+
"key",
|
|
2074
|
+
"type"
|
|
2075
|
+
],
|
|
2076
|
+
"properties": {
|
|
2077
|
+
"key": {
|
|
2078
|
+
"type": "string"
|
|
2079
|
+
},
|
|
2080
|
+
"type": {
|
|
2081
|
+
"type": "string",
|
|
2082
|
+
"enum": [
|
|
2083
|
+
"String",
|
|
2084
|
+
"Text",
|
|
2085
|
+
"Number",
|
|
2086
|
+
"Boolean",
|
|
2087
|
+
"Link"
|
|
2088
|
+
]
|
|
2089
|
+
},
|
|
2090
|
+
"description": {
|
|
2091
|
+
"type": "string"
|
|
2092
|
+
},
|
|
2093
|
+
"group": {
|
|
2094
|
+
"type": "string",
|
|
2095
|
+
"description": "The environment group the variable belongs to, when it has one"
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
},
|
|
2102
|
+
"JourneyTemplating": {
|
|
2103
|
+
"type": "object",
|
|
2104
|
+
"required": [
|
|
2105
|
+
"customVariables",
|
|
2106
|
+
"env"
|
|
2107
|
+
],
|
|
2108
|
+
"properties": {
|
|
2109
|
+
"customVariables": {
|
|
2110
|
+
"type": "array",
|
|
2111
|
+
"description": "Custom Variables the journey's templates reference, expanded transitively",
|
|
2112
|
+
"items": {
|
|
2113
|
+
"type": "object",
|
|
2114
|
+
"required": [
|
|
2115
|
+
"key",
|
|
2116
|
+
"template"
|
|
2117
|
+
],
|
|
2118
|
+
"properties": {
|
|
2119
|
+
"key": {
|
|
2120
|
+
"type": "string"
|
|
2121
|
+
},
|
|
2122
|
+
"template": {
|
|
2123
|
+
"type": "string"
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
},
|
|
2128
|
+
"env": {
|
|
2129
|
+
"type": "object",
|
|
2130
|
+
"description": "Browser-safe environment values the templates read, keyed by variable key; scalars, or a Link's fields",
|
|
2131
|
+
"additionalProperties": {
|
|
2132
|
+
"oneOf": [
|
|
2133
|
+
{
|
|
2134
|
+
"type": "string"
|
|
2135
|
+
},
|
|
2136
|
+
{
|
|
2137
|
+
"type": "number"
|
|
2138
|
+
},
|
|
2139
|
+
{
|
|
2140
|
+
"type": "boolean"
|
|
2141
|
+
},
|
|
2142
|
+
{
|
|
2143
|
+
"$ref": "#/components/schemas/JourneyTemplatingLink"
|
|
2144
|
+
}
|
|
2145
|
+
]
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
},
|
|
2150
|
+
"JourneyTemplatingLink": {
|
|
2151
|
+
"type": "object",
|
|
2152
|
+
"description": "A Link variable; label and description are a string or per-language strings, resolved by the runtime",
|
|
2153
|
+
"required": [
|
|
2154
|
+
"url",
|
|
2155
|
+
"label"
|
|
2156
|
+
],
|
|
2157
|
+
"properties": {
|
|
2158
|
+
"url": {
|
|
2159
|
+
"type": "string"
|
|
2160
|
+
},
|
|
2161
|
+
"label": {
|
|
2162
|
+
"$ref": "#/components/schemas/JourneyTemplatingTranslatable"
|
|
2163
|
+
},
|
|
2164
|
+
"description": {
|
|
2165
|
+
"$ref": "#/components/schemas/JourneyTemplatingTranslatable"
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
},
|
|
2169
|
+
"JourneyTemplatingTranslatable": {
|
|
2170
|
+
"oneOf": [
|
|
2171
|
+
{
|
|
2172
|
+
"type": "string"
|
|
2173
|
+
},
|
|
2174
|
+
{
|
|
2175
|
+
"type": "object",
|
|
2176
|
+
"additionalProperties": {
|
|
2177
|
+
"type": "string"
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2180
|
+
]
|
|
2181
|
+
},
|
|
1846
2182
|
"JourneyEnvironmentVariablesResponse": {
|
|
1847
2183
|
"type": "object",
|
|
1848
2184
|
"required": [
|
|
@@ -2517,6 +2853,32 @@
|
|
|
2517
2853
|
"modernProducts": {
|
|
2518
2854
|
"type": "boolean",
|
|
2519
2855
|
"description": "Opt this journey into the modern product presentation (product tiles and details modal). Effective when true OR the organization flag `journey-modern-products` is on.\n"
|
|
2856
|
+
},
|
|
2857
|
+
"modernLauncher": {
|
|
2858
|
+
"type": "boolean",
|
|
2859
|
+
"description": "Opt this launcher journey into the modern Journey Launcher (picker, card and hero shells). Launcher journeys only. Effective when true OR the organization flag `journey-modern-launcher` is on.\n"
|
|
2860
|
+
}
|
|
2861
|
+
}
|
|
2862
|
+
},
|
|
2863
|
+
"offline": {
|
|
2864
|
+
"type": "object",
|
|
2865
|
+
"nullable": true,
|
|
2866
|
+
"description": "Offline journeys (ER-5432). Revision-owned like every other setting: effective on publish. The runtime prepares an offline pack for this journey only when the organization flag `journey-offline` is on AND `enabled` is true.\n",
|
|
2867
|
+
"additionalProperties": false,
|
|
2868
|
+
"required": [
|
|
2869
|
+
"enabled"
|
|
2870
|
+
],
|
|
2871
|
+
"properties": {
|
|
2872
|
+
"enabled": {
|
|
2873
|
+
"type": "boolean",
|
|
2874
|
+
"description": "Prepare this journey for offline use on devices that open it online first."
|
|
2875
|
+
},
|
|
2876
|
+
"packTtlHours": {
|
|
2877
|
+
"type": "integer",
|
|
2878
|
+
"minimum": 1,
|
|
2879
|
+
"maximum": 720,
|
|
2880
|
+
"description": "How long a prepared pack stays fresh before the next online open refreshes it. Default 24.",
|
|
2881
|
+
"example": 24
|
|
2520
2882
|
}
|
|
2521
2883
|
}
|
|
2522
2884
|
}
|
|
@@ -2538,11 +2900,6 @@
|
|
|
2538
2900
|
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
2539
2901
|
}
|
|
2540
2902
|
},
|
|
2541
|
-
"blueprint_customization": {
|
|
2542
|
-
"type": "object",
|
|
2543
|
-
"description": "Blueprint field-locking contract (server-managed). Carries the\nauthor plane (locks, default level) and the org plane (server-derived\noverlay). Public writes never persist client-supplied values — the\nstored contract is authoritative; it is written only by the\nBlueprints install pipeline.\n",
|
|
2544
|
-
"additionalProperties": true
|
|
2545
|
-
},
|
|
2546
2903
|
"createdBy": {
|
|
2547
2904
|
"type": "string"
|
|
2548
2905
|
},
|
|
@@ -3073,6 +3430,32 @@
|
|
|
3073
3430
|
"modernProducts": {
|
|
3074
3431
|
"type": "boolean",
|
|
3075
3432
|
"description": "Opt this journey into the modern product presentation (product tiles and details modal). Effective when true OR the organization flag `journey-modern-products` is on.\n"
|
|
3433
|
+
},
|
|
3434
|
+
"modernLauncher": {
|
|
3435
|
+
"type": "boolean",
|
|
3436
|
+
"description": "Opt this launcher journey into the modern Journey Launcher (picker, card and hero shells). Launcher journeys only. Effective when true OR the organization flag `journey-modern-launcher` is on.\n"
|
|
3437
|
+
}
|
|
3438
|
+
}
|
|
3439
|
+
},
|
|
3440
|
+
"offline": {
|
|
3441
|
+
"type": "object",
|
|
3442
|
+
"nullable": true,
|
|
3443
|
+
"description": "Offline journeys (ER-5432). Revision-owned like every other setting: effective on publish. The runtime prepares an offline pack for this journey only when the organization flag `journey-offline` is on AND `enabled` is true.\n",
|
|
3444
|
+
"additionalProperties": false,
|
|
3445
|
+
"required": [
|
|
3446
|
+
"enabled"
|
|
3447
|
+
],
|
|
3448
|
+
"properties": {
|
|
3449
|
+
"enabled": {
|
|
3450
|
+
"type": "boolean",
|
|
3451
|
+
"description": "Prepare this journey for offline use on devices that open it online first."
|
|
3452
|
+
},
|
|
3453
|
+
"packTtlHours": {
|
|
3454
|
+
"type": "integer",
|
|
3455
|
+
"minimum": 1,
|
|
3456
|
+
"maximum": 720,
|
|
3457
|
+
"description": "How long a prepared pack stays fresh before the next online open refreshes it. Default 24.",
|
|
3458
|
+
"example": 24
|
|
3076
3459
|
}
|
|
3077
3460
|
}
|
|
3078
3461
|
}
|
|
@@ -3090,11 +3473,6 @@
|
|
|
3090
3473
|
"format": "uuid",
|
|
3091
3474
|
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
3092
3475
|
}
|
|
3093
|
-
},
|
|
3094
|
-
"blueprint_customization": {
|
|
3095
|
-
"type": "object",
|
|
3096
|
-
"description": "Blueprint field-locking contract (server-managed). Carries the\nauthor plane (locks, default level) and the org plane (server-derived\noverlay). Public writes never persist client-supplied values — the\nstored contract is authoritative; it is written only by the\nBlueprints install pipeline.\n",
|
|
3097
|
-
"additionalProperties": true
|
|
3098
3476
|
}
|
|
3099
3477
|
},
|
|
3100
3478
|
"required": [
|
|
@@ -3248,6 +3626,9 @@
|
|
|
3248
3626
|
},
|
|
3249
3627
|
{
|
|
3250
3628
|
"$ref": "#/components/schemas/JourneyFeatureFlags"
|
|
3629
|
+
},
|
|
3630
|
+
{
|
|
3631
|
+
"$ref": "#/components/schemas/JourneyTemplatingContext"
|
|
3251
3632
|
}
|
|
3252
3633
|
]
|
|
3253
3634
|
},
|
|
@@ -3900,6 +4281,11 @@
|
|
|
3900
4281
|
"type": "boolean",
|
|
3901
4282
|
"description": "When set to false, third-party cookies and resources should be completely disabled to comply with GDPR regulations.",
|
|
3902
4283
|
"example": true
|
|
4284
|
+
},
|
|
4285
|
+
"offline": {
|
|
4286
|
+
"type": "boolean",
|
|
4287
|
+
"description": "Offline journeys (ER-5432): whether the published revision has settings.offline.enabled. Absent when the setting was never set.",
|
|
4288
|
+
"example": true
|
|
3903
4289
|
}
|
|
3904
4290
|
}
|
|
3905
4291
|
},
|
|
@@ -6,7 +6,7 @@ var _chunkZMBA3WV4cjs = require('../chunk-ZMBA3WV4.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk4G44P2X4cjs = require('../chunk-4G44P2X4.cjs');
|
|
10
10
|
require('../chunk-NJK5F5TF.cjs');
|
|
11
11
|
|
|
12
12
|
// src/apis/access-token.ts
|
|
@@ -14,7 +14,7 @@ var _definition = null;
|
|
|
14
14
|
var loadDefinition = () => {
|
|
15
15
|
if (!_definition) {
|
|
16
16
|
const mod = _chunkZMBA3WV4cjs.require_access_token_runtime.call(void 0, );
|
|
17
|
-
_definition =
|
|
17
|
+
_definition = _chunk4G44P2X4cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
18
18
|
}
|
|
19
19
|
return _definition;
|
|
20
20
|
};
|
|
@@ -22,13 +22,13 @@ var _instance = null;
|
|
|
22
22
|
var resolve = () => {
|
|
23
23
|
if (!_instance) {
|
|
24
24
|
const def = loadDefinition();
|
|
25
|
-
_instance =
|
|
25
|
+
_instance = _chunk4G44P2X4cjs.createApiClient.call(void 0, { definition: def, apiName: "accessToken" });
|
|
26
26
|
}
|
|
27
27
|
return _instance;
|
|
28
28
|
};
|
|
29
|
-
var _handle =
|
|
29
|
+
var _handle = _chunk4G44P2X4cjs.createApiHandle.call(void 0, {
|
|
30
30
|
resolveClient: resolve,
|
|
31
|
-
createClient: () =>
|
|
31
|
+
createClient: () => _chunk4G44P2X4cjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "accessToken" }),
|
|
32
32
|
apiName: "accessToken"
|
|
33
33
|
});
|
|
34
34
|
var getClient = _handle.getClient;
|
|
@@ -39,4 +39,4 @@ var accessToken = _handle;
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
exports.accessToken = accessToken; exports.authorize =
|
|
42
|
+
exports.accessToken = accessToken; exports.authorize = _chunk4G44P2X4cjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
|