@epilot/cli 0.1.150 → 0.1.152
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/README.md +1 -1
- package/definitions/file.json +392 -0
- package/definitions/journey.json +526 -5
- package/definitions/pricing.json +3489 -757
- package/dist/bin/epilot.js +6 -6
- package/dist/{chunk-2LYPV5T2.js → chunk-6FCRUOLP.js} +15 -4
- package/dist/{completion-O46M2V67.js → completion-SOFYT4C2.js} +1 -1
- package/dist/{upgrade-PHISMBD2.js → upgrade-PYTL3F44.js} +1 -1
- package/package.json +1 -1
package/definitions/journey.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Journey API",
|
|
5
5
|
"description": "API to configure journeys",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.5.0"
|
|
7
7
|
},
|
|
8
8
|
"security": [
|
|
9
9
|
{
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
{
|
|
118
118
|
"name": "version",
|
|
119
119
|
"in": "query",
|
|
120
|
-
"description": "
|
|
120
|
+
"description": "Revision row to read. `0` (default) is the journey record, the published version every customer receives; a positive integer `n` reads revision row `n` (used by config-engine for history reads). Distinct from the `revisions` counter on the body, which is the legacy change counter of the published version. Versioning metadata is only available via `publish-state`.\n",
|
|
121
121
|
"required": false,
|
|
122
122
|
"schema": {
|
|
123
123
|
"type": "integer",
|
|
@@ -207,6 +207,309 @@
|
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
|
+
"/v1/journey/configuration/{id}/revisions": {
|
|
211
|
+
"post": {
|
|
212
|
+
"operationId": "createJourneyRevision",
|
|
213
|
+
"summary": "createJourneyRevision",
|
|
214
|
+
"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",
|
|
215
|
+
"tags": [
|
|
216
|
+
"Journeys"
|
|
217
|
+
],
|
|
218
|
+
"security": [
|
|
219
|
+
{
|
|
220
|
+
"EpilotAuth": []
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"parameters": [
|
|
224
|
+
{
|
|
225
|
+
"name": "id",
|
|
226
|
+
"in": "path",
|
|
227
|
+
"description": "Journey ID",
|
|
228
|
+
"required": true,
|
|
229
|
+
"schema": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"format": "uuid",
|
|
232
|
+
"example": "509cdffe-424f-457a-95c2-9708c304ce77"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"requestBody": {
|
|
237
|
+
"description": "Complete journey configuration for the revision",
|
|
238
|
+
"required": true,
|
|
239
|
+
"content": {
|
|
240
|
+
"application/json": {
|
|
241
|
+
"schema": {
|
|
242
|
+
"$ref": "#/components/schemas/JourneyRevisionRequest"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"responses": {
|
|
248
|
+
"201": {
|
|
249
|
+
"description": "Revision created",
|
|
250
|
+
"content": {
|
|
251
|
+
"application/json": {
|
|
252
|
+
"schema": {
|
|
253
|
+
"$ref": "#/components/schemas/JourneyRevisionSummary"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"400": {
|
|
259
|
+
"description": "Invalid payload"
|
|
260
|
+
},
|
|
261
|
+
"403": {
|
|
262
|
+
"description": "No permission to edit the journey"
|
|
263
|
+
},
|
|
264
|
+
"404": {
|
|
265
|
+
"description": "Journey versioning not enabled for the organization, or journey not found"
|
|
266
|
+
},
|
|
267
|
+
"409": {
|
|
268
|
+
"description": "`parent_revision_id` is not the latest revision: the journey was saved since the editor loaded it. The body carries the current latest revision.\n",
|
|
269
|
+
"content": {
|
|
270
|
+
"application/json": {
|
|
271
|
+
"schema": {
|
|
272
|
+
"$ref": "#/components/schemas/JourneyRevisionConflict"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"get": {
|
|
280
|
+
"operationId": "listJourneyRevisions",
|
|
281
|
+
"summary": "listJourneyRevisions",
|
|
282
|
+
"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",
|
|
283
|
+
"tags": [
|
|
284
|
+
"Journeys"
|
|
285
|
+
],
|
|
286
|
+
"security": [
|
|
287
|
+
{
|
|
288
|
+
"EpilotAuth": []
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
"parameters": [
|
|
292
|
+
{
|
|
293
|
+
"name": "id",
|
|
294
|
+
"in": "path",
|
|
295
|
+
"description": "Journey ID",
|
|
296
|
+
"required": true,
|
|
297
|
+
"schema": {
|
|
298
|
+
"type": "string",
|
|
299
|
+
"format": "uuid",
|
|
300
|
+
"example": "509cdffe-424f-457a-95c2-9708c304ce77"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"name": "limit",
|
|
305
|
+
"in": "query",
|
|
306
|
+
"description": "Maximum number of revisions to return",
|
|
307
|
+
"required": false,
|
|
308
|
+
"schema": {
|
|
309
|
+
"type": "integer",
|
|
310
|
+
"minimum": 1,
|
|
311
|
+
"maximum": 100,
|
|
312
|
+
"default": 25
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "cursor",
|
|
317
|
+
"in": "query",
|
|
318
|
+
"description": "Opaque pagination cursor, taken from a previous response's `next_cursor`",
|
|
319
|
+
"required": false,
|
|
320
|
+
"schema": {
|
|
321
|
+
"type": "string"
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"responses": {
|
|
326
|
+
"200": {
|
|
327
|
+
"description": "Revision history",
|
|
328
|
+
"content": {
|
|
329
|
+
"application/json": {
|
|
330
|
+
"schema": {
|
|
331
|
+
"$ref": "#/components/schemas/JourneyRevisionList"
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"400": {
|
|
337
|
+
"description": "Invalid query parameters"
|
|
338
|
+
},
|
|
339
|
+
"403": {
|
|
340
|
+
"description": "No permission to edit the journey"
|
|
341
|
+
},
|
|
342
|
+
"404": {
|
|
343
|
+
"description": "Journey versioning not enabled for the organization, or journey not found"
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"/v1/journey/configuration/{id}/revisions/{revision_id}": {
|
|
349
|
+
"get": {
|
|
350
|
+
"operationId": "getJourneyRevision",
|
|
351
|
+
"summary": "getJourneyRevision",
|
|
352
|
+
"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",
|
|
353
|
+
"tags": [
|
|
354
|
+
"Journeys"
|
|
355
|
+
],
|
|
356
|
+
"security": [
|
|
357
|
+
{
|
|
358
|
+
"EpilotAuth": []
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
"parameters": [
|
|
362
|
+
{
|
|
363
|
+
"name": "id",
|
|
364
|
+
"in": "path",
|
|
365
|
+
"description": "Journey ID",
|
|
366
|
+
"required": true,
|
|
367
|
+
"schema": {
|
|
368
|
+
"type": "string",
|
|
369
|
+
"format": "uuid",
|
|
370
|
+
"example": "509cdffe-424f-457a-95c2-9708c304ce77"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "revision_id",
|
|
375
|
+
"in": "path",
|
|
376
|
+
"description": "Revision ID, as returned in a revision summary",
|
|
377
|
+
"required": true,
|
|
378
|
+
"schema": {
|
|
379
|
+
"type": "string",
|
|
380
|
+
"example": "42"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
],
|
|
384
|
+
"responses": {
|
|
385
|
+
"200": {
|
|
386
|
+
"description": "The revision with its configuration",
|
|
387
|
+
"content": {
|
|
388
|
+
"application/json": {
|
|
389
|
+
"schema": {
|
|
390
|
+
"$ref": "#/components/schemas/JourneyRevision"
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
"403": {
|
|
396
|
+
"description": "No permission to edit the journey"
|
|
397
|
+
},
|
|
398
|
+
"404": {
|
|
399
|
+
"description": "Journey versioning not enabled for the organization, or journey or revision not found"
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"/v1/journey/configuration/{id}/publish": {
|
|
405
|
+
"post": {
|
|
406
|
+
"operationId": "publishJourneyRevision",
|
|
407
|
+
"summary": "publishJourneyRevision",
|
|
408
|
+
"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",
|
|
409
|
+
"tags": [
|
|
410
|
+
"Journeys"
|
|
411
|
+
],
|
|
412
|
+
"security": [
|
|
413
|
+
{
|
|
414
|
+
"EpilotAuth": []
|
|
415
|
+
}
|
|
416
|
+
],
|
|
417
|
+
"parameters": [
|
|
418
|
+
{
|
|
419
|
+
"name": "id",
|
|
420
|
+
"in": "path",
|
|
421
|
+
"description": "Journey ID",
|
|
422
|
+
"required": true,
|
|
423
|
+
"schema": {
|
|
424
|
+
"type": "string",
|
|
425
|
+
"format": "uuid",
|
|
426
|
+
"example": "509cdffe-424f-457a-95c2-9708c304ce77"
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
],
|
|
430
|
+
"requestBody": {
|
|
431
|
+
"description": "The revision to publish",
|
|
432
|
+
"required": true,
|
|
433
|
+
"content": {
|
|
434
|
+
"application/json": {
|
|
435
|
+
"schema": {
|
|
436
|
+
"$ref": "#/components/schemas/PublishRevisionRequest"
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
"responses": {
|
|
442
|
+
"200": {
|
|
443
|
+
"description": "Revision published",
|
|
444
|
+
"content": {
|
|
445
|
+
"application/json": {
|
|
446
|
+
"schema": {
|
|
447
|
+
"$ref": "#/components/schemas/PublishResult"
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
"400": {
|
|
453
|
+
"description": "Invalid payload"
|
|
454
|
+
},
|
|
455
|
+
"403": {
|
|
456
|
+
"description": "No permission to edit the journey"
|
|
457
|
+
},
|
|
458
|
+
"404": {
|
|
459
|
+
"description": "Journey versioning not enabled for the organization, or journey or revision not found"
|
|
460
|
+
},
|
|
461
|
+
"409": {
|
|
462
|
+
"description": "The journey record changed between read and publish, please try again"
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
"/v1/journey/configuration/{id}/publish-state": {
|
|
468
|
+
"get": {
|
|
469
|
+
"operationId": "getJourneyPublishState",
|
|
470
|
+
"summary": "getJourneyPublishState",
|
|
471
|
+
"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",
|
|
472
|
+
"tags": [
|
|
473
|
+
"Journeys"
|
|
474
|
+
],
|
|
475
|
+
"security": [
|
|
476
|
+
{
|
|
477
|
+
"EpilotAuth": []
|
|
478
|
+
}
|
|
479
|
+
],
|
|
480
|
+
"parameters": [
|
|
481
|
+
{
|
|
482
|
+
"name": "id",
|
|
483
|
+
"in": "path",
|
|
484
|
+
"description": "Journey ID",
|
|
485
|
+
"required": true,
|
|
486
|
+
"schema": {
|
|
487
|
+
"type": "string",
|
|
488
|
+
"format": "uuid",
|
|
489
|
+
"example": "509cdffe-424f-457a-95c2-9708c304ce77"
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
],
|
|
493
|
+
"responses": {
|
|
494
|
+
"200": {
|
|
495
|
+
"description": "Publish state",
|
|
496
|
+
"content": {
|
|
497
|
+
"application/json": {
|
|
498
|
+
"schema": {
|
|
499
|
+
"$ref": "#/components/schemas/JourneyPublishState"
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
"403": {
|
|
505
|
+
"description": "No permission to edit the journey"
|
|
506
|
+
},
|
|
507
|
+
"404": {
|
|
508
|
+
"description": "Journey versioning not enabled for the organization, or journey not found"
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
},
|
|
210
513
|
"/v1/journey/configuration/{id}/environment": {
|
|
211
514
|
"get": {
|
|
212
515
|
"operationId": "getJourneyEnvironment",
|
|
@@ -829,7 +1132,7 @@
|
|
|
829
1132
|
{
|
|
830
1133
|
"name": "version",
|
|
831
1134
|
"in": "query",
|
|
832
|
-
"description": "
|
|
1135
|
+
"description": "Revision row to read. `0` (default) is the journey record, the published version every customer receives; a positive integer `n` reads revision row `n` (used by config-engine for history reads). Distinct from the `revisions` counter on the body, which is the legacy change counter of the published version. Versioning metadata is only available via `publish-state`.\n",
|
|
833
1136
|
"required": false,
|
|
834
1137
|
"schema": {
|
|
835
1138
|
"type": "integer",
|
|
@@ -2555,10 +2858,12 @@
|
|
|
2555
2858
|
"type": "string"
|
|
2556
2859
|
},
|
|
2557
2860
|
"version": {
|
|
2558
|
-
"type": "number"
|
|
2861
|
+
"type": "number",
|
|
2862
|
+
"description": "Revision row number of this item. `0` is the journey record, the published version.\n"
|
|
2559
2863
|
},
|
|
2560
2864
|
"revisions": {
|
|
2561
|
-
"type": "number"
|
|
2865
|
+
"type": "number",
|
|
2866
|
+
"description": "Legacy change counter of the published version, kept for compatibility: bumped whenever the published version changes and used for optimistic concurrency on `PUT`, by submissions (`journey_context.journey_revision`) and by save-and-continue. Saving a revision never changes it. Versioning metadata is only available via `publish-state`.\n"
|
|
2562
2867
|
}
|
|
2563
2868
|
},
|
|
2564
2869
|
"required": [
|
|
@@ -2568,6 +2873,219 @@
|
|
|
2568
2873
|
"revisions"
|
|
2569
2874
|
]
|
|
2570
2875
|
},
|
|
2876
|
+
"JourneyRevisionRequest": {
|
|
2877
|
+
"description": "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.\n",
|
|
2878
|
+
"allOf": [
|
|
2879
|
+
{
|
|
2880
|
+
"$ref": "#/components/schemas/JourneyCreationRequest"
|
|
2881
|
+
},
|
|
2882
|
+
{
|
|
2883
|
+
"type": "object",
|
|
2884
|
+
"properties": {
|
|
2885
|
+
"parent_revision_id": {
|
|
2886
|
+
"type": "string",
|
|
2887
|
+
"description": "The revision the editor started from. When present and not the latest revision the save is rejected with `409`; absent skips the check.\n",
|
|
2888
|
+
"example": "41"
|
|
2889
|
+
},
|
|
2890
|
+
"based_on_revision_id": {
|
|
2891
|
+
"type": "string",
|
|
2892
|
+
"description": "Provenance, not configuration: the revision that was loaded into the editor before this save, when it was an older one.\n",
|
|
2893
|
+
"example": "37"
|
|
2894
|
+
},
|
|
2895
|
+
"mapping_config_version": {
|
|
2896
|
+
"type": "number",
|
|
2897
|
+
"description": "Version of the entity-mapping config stored alongside this revision. Publishing the revision points the journey's automation at it.\n",
|
|
2898
|
+
"example": 12
|
|
2899
|
+
}
|
|
2900
|
+
}
|
|
2901
|
+
}
|
|
2902
|
+
]
|
|
2903
|
+
},
|
|
2904
|
+
"PublishRevisionRequest": {
|
|
2905
|
+
"type": "object",
|
|
2906
|
+
"required": [
|
|
2907
|
+
"revision_id"
|
|
2908
|
+
],
|
|
2909
|
+
"properties": {
|
|
2910
|
+
"revision_id": {
|
|
2911
|
+
"type": "string",
|
|
2912
|
+
"example": "42"
|
|
2913
|
+
},
|
|
2914
|
+
"name": {
|
|
2915
|
+
"type": "string",
|
|
2916
|
+
"maxLength": 255,
|
|
2917
|
+
"description": "Name stamped onto the revision being published. Optional: when omitted the server generates one, so every revision that has ever been published carries a name. An omitted name never replaces a name a previous publish already set; an explicit one does.\n",
|
|
2918
|
+
"example": "Summer campaign"
|
|
2919
|
+
},
|
|
2920
|
+
"description": {
|
|
2921
|
+
"type": "string",
|
|
2922
|
+
"maxLength": 8000,
|
|
2923
|
+
"description": "Optional description stamped onto the revision at publish time"
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2926
|
+
},
|
|
2927
|
+
"JourneyRevisionSummary": {
|
|
2928
|
+
"type": "object",
|
|
2929
|
+
"required": [
|
|
2930
|
+
"revision_id",
|
|
2931
|
+
"created_at",
|
|
2932
|
+
"is_published"
|
|
2933
|
+
],
|
|
2934
|
+
"properties": {
|
|
2935
|
+
"revision_id": {
|
|
2936
|
+
"type": "string",
|
|
2937
|
+
"description": "Opaque identifier of the revision. Moves on every save.",
|
|
2938
|
+
"example": "42"
|
|
2939
|
+
},
|
|
2940
|
+
"created_at": {
|
|
2941
|
+
"type": "string",
|
|
2942
|
+
"format": "date-time"
|
|
2943
|
+
},
|
|
2944
|
+
"created_by": {
|
|
2945
|
+
"type": "string",
|
|
2946
|
+
"description": "User id of the author. Absent for revisions recorded from writes without a user, e.g. blueprint installs.\n"
|
|
2947
|
+
},
|
|
2948
|
+
"name": {
|
|
2949
|
+
"type": "string",
|
|
2950
|
+
"description": "Set at publish time only, so present if and only if this revision has been published at least once.\n",
|
|
2951
|
+
"example": "Summer campaign"
|
|
2952
|
+
},
|
|
2953
|
+
"description": {
|
|
2954
|
+
"type": "string"
|
|
2955
|
+
},
|
|
2956
|
+
"published_at": {
|
|
2957
|
+
"type": "string",
|
|
2958
|
+
"format": "date-time",
|
|
2959
|
+
"description": "The last time this revision was published. Not the same question as `is_published`: a revision that was the published version yesterday still carries a `published_at`.\n"
|
|
2960
|
+
},
|
|
2961
|
+
"is_published": {
|
|
2962
|
+
"type": "boolean",
|
|
2963
|
+
"description": "Whether this revision is the published version right now."
|
|
2964
|
+
},
|
|
2965
|
+
"mapping_config_version": {
|
|
2966
|
+
"type": "number",
|
|
2967
|
+
"description": "Version of the entity-mapping config stored alongside this revision.",
|
|
2968
|
+
"example": 12
|
|
2969
|
+
}
|
|
2970
|
+
}
|
|
2971
|
+
},
|
|
2972
|
+
"JourneyRevisionList": {
|
|
2973
|
+
"type": "object",
|
|
2974
|
+
"required": [
|
|
2975
|
+
"results"
|
|
2976
|
+
],
|
|
2977
|
+
"properties": {
|
|
2978
|
+
"results": {
|
|
2979
|
+
"type": "array",
|
|
2980
|
+
"items": {
|
|
2981
|
+
"$ref": "#/components/schemas/JourneyRevisionSummary"
|
|
2982
|
+
}
|
|
2983
|
+
},
|
|
2984
|
+
"next_cursor": {
|
|
2985
|
+
"type": "string",
|
|
2986
|
+
"description": "Opaque cursor to pass back as `cursor` to fetch the next page. Absent when the client has reached the end of the history.\n"
|
|
2987
|
+
}
|
|
2988
|
+
}
|
|
2989
|
+
},
|
|
2990
|
+
"JourneyRevision": {
|
|
2991
|
+
"allOf": [
|
|
2992
|
+
{
|
|
2993
|
+
"$ref": "#/components/schemas/JourneyRevisionSummary"
|
|
2994
|
+
},
|
|
2995
|
+
{
|
|
2996
|
+
"type": "object",
|
|
2997
|
+
"required": [
|
|
2998
|
+
"configuration"
|
|
2999
|
+
],
|
|
3000
|
+
"properties": {
|
|
3001
|
+
"configuration": {
|
|
3002
|
+
"description": "The journey configuration as it was saved in this revision, in the shape the builder holds a journey in.\n",
|
|
3003
|
+
"allOf": [
|
|
3004
|
+
{
|
|
3005
|
+
"$ref": "#/components/schemas/Journey"
|
|
3006
|
+
}
|
|
3007
|
+
]
|
|
3008
|
+
}
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
]
|
|
3012
|
+
},
|
|
3013
|
+
"JourneyRevisionConflict": {
|
|
3014
|
+
"type": "object",
|
|
3015
|
+
"required": [
|
|
3016
|
+
"message",
|
|
3017
|
+
"latest_revision"
|
|
3018
|
+
],
|
|
3019
|
+
"properties": {
|
|
3020
|
+
"message": {
|
|
3021
|
+
"type": "string",
|
|
3022
|
+
"example": "The journey has been saved since your editor loaded it"
|
|
3023
|
+
},
|
|
3024
|
+
"latest_revision": {
|
|
3025
|
+
"$ref": "#/components/schemas/JourneyRevisionSummary"
|
|
3026
|
+
}
|
|
3027
|
+
}
|
|
3028
|
+
},
|
|
3029
|
+
"JourneyPublishState": {
|
|
3030
|
+
"type": "object",
|
|
3031
|
+
"required": [
|
|
3032
|
+
"journey_id",
|
|
3033
|
+
"published_revision_id"
|
|
3034
|
+
],
|
|
3035
|
+
"properties": {
|
|
3036
|
+
"journey_id": {
|
|
3037
|
+
"type": "string",
|
|
3038
|
+
"format": "uuid"
|
|
3039
|
+
},
|
|
3040
|
+
"published_revision_id": {
|
|
3041
|
+
"type": "string",
|
|
3042
|
+
"nullable": true,
|
|
3043
|
+
"description": "An explicit `null` means the journey has not adopted versioning yet: it exists, customers receive its journey record, and no revision is the published version.\n",
|
|
3044
|
+
"example": "42"
|
|
3045
|
+
},
|
|
3046
|
+
"published_at": {
|
|
3047
|
+
"type": "string",
|
|
3048
|
+
"format": "date-time"
|
|
3049
|
+
},
|
|
3050
|
+
"published_by": {
|
|
3051
|
+
"type": "string"
|
|
3052
|
+
}
|
|
3053
|
+
}
|
|
3054
|
+
},
|
|
3055
|
+
"PublishResult": {
|
|
3056
|
+
"type": "object",
|
|
3057
|
+
"required": [
|
|
3058
|
+
"revision_id",
|
|
3059
|
+
"name",
|
|
3060
|
+
"published_at",
|
|
3061
|
+
"post_publish_warnings"
|
|
3062
|
+
],
|
|
3063
|
+
"properties": {
|
|
3064
|
+
"revision_id": {
|
|
3065
|
+
"type": "string",
|
|
3066
|
+
"example": "42"
|
|
3067
|
+
},
|
|
3068
|
+
"name": {
|
|
3069
|
+
"type": "string",
|
|
3070
|
+
"description": "The name now on the revision: the one sent in the request, the one a previous publish set when this request omitted `name`, or the server-generated default.\n",
|
|
3071
|
+
"example": "Summer campaign"
|
|
3072
|
+
},
|
|
3073
|
+
"published_at": {
|
|
3074
|
+
"type": "string",
|
|
3075
|
+
"format": "date-time"
|
|
3076
|
+
},
|
|
3077
|
+
"published_by": {
|
|
3078
|
+
"type": "string"
|
|
3079
|
+
},
|
|
3080
|
+
"post_publish_warnings": {
|
|
3081
|
+
"type": "array",
|
|
3082
|
+
"description": "Names any best-effort side effect that failed after the publish itself succeeded, e.g. the journey entity sync, so a caller can say \"published, but the entity did not update\".\n",
|
|
3083
|
+
"items": {
|
|
3084
|
+
"type": "string"
|
|
3085
|
+
}
|
|
3086
|
+
}
|
|
3087
|
+
}
|
|
3088
|
+
},
|
|
2571
3089
|
"JourneyValidationResponse": {
|
|
2572
3090
|
"type": "object",
|
|
2573
3091
|
"properties": {
|
|
@@ -3035,6 +3553,9 @@
|
|
|
3035
3553
|
"servers": [
|
|
3036
3554
|
{
|
|
3037
3555
|
"url": "https://journey-config.sls.epilot.io"
|
|
3556
|
+
},
|
|
3557
|
+
{
|
|
3558
|
+
"url": "https://journey-config.dev.sls.epilot.io"
|
|
3038
3559
|
}
|
|
3039
3560
|
]
|
|
3040
3561
|
}
|