@epilot/cli 0.1.151 → 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/dist/bin/epilot.js +6 -6
- package/dist/{chunk-ZLLWCEDW.js → chunk-6FCRUOLP.js} +8 -2
- package/dist/{completion-3IL3RXHU.js → completion-SOFYT4C2.js} +1 -1
- package/dist/{upgrade-S7CTZFQG.js → upgrade-PYTL3F44.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/definitions/file.json
CHANGED
|
@@ -124,6 +124,9 @@
|
|
|
124
124
|
"401": {
|
|
125
125
|
"$ref": "#/components/responses/UnauthorizedError"
|
|
126
126
|
},
|
|
127
|
+
"422": {
|
|
128
|
+
"$ref": "#/components/responses/UnprocessableEntityError"
|
|
129
|
+
},
|
|
127
130
|
"500": {
|
|
128
131
|
"$ref": "#/components/responses/InternalServerError"
|
|
129
132
|
}
|
|
@@ -281,6 +284,9 @@
|
|
|
281
284
|
"404": {
|
|
282
285
|
"$ref": "#/components/responses/NotFoundError"
|
|
283
286
|
},
|
|
287
|
+
"422": {
|
|
288
|
+
"$ref": "#/components/responses/UnprocessableEntityError"
|
|
289
|
+
},
|
|
284
290
|
"500": {
|
|
285
291
|
"$ref": "#/components/responses/InternalServerError"
|
|
286
292
|
}
|
|
@@ -366,6 +372,9 @@
|
|
|
366
372
|
"401": {
|
|
367
373
|
"$ref": "#/components/responses/UnauthorizedError"
|
|
368
374
|
},
|
|
375
|
+
"422": {
|
|
376
|
+
"$ref": "#/components/responses/UnprocessableEntityError"
|
|
377
|
+
},
|
|
369
378
|
"500": {
|
|
370
379
|
"$ref": "#/components/responses/InternalServerError"
|
|
371
380
|
}
|
|
@@ -431,6 +440,9 @@
|
|
|
431
440
|
"401": {
|
|
432
441
|
"$ref": "#/components/responses/UnauthorizedError"
|
|
433
442
|
},
|
|
443
|
+
"422": {
|
|
444
|
+
"$ref": "#/components/responses/UnprocessableEntityError"
|
|
445
|
+
},
|
|
434
446
|
"500": {
|
|
435
447
|
"$ref": "#/components/responses/InternalServerError"
|
|
436
448
|
}
|
|
@@ -1297,6 +1309,73 @@
|
|
|
1297
1309
|
}
|
|
1298
1310
|
}
|
|
1299
1311
|
},
|
|
1312
|
+
"/v1/files/validations": {
|
|
1313
|
+
"post": {
|
|
1314
|
+
"operationId": "validateFile",
|
|
1315
|
+
"summary": "validateFile",
|
|
1316
|
+
"description": "Validate an uploaded file against one or more document validation rules\n(validation-rules-api rules with `input_type: document`).\n\nThe file is referenced either by its file entity id or, for an upload that has not been\nsaved as an entity yet (e.g. a journey upload in the temporary prefix), by its S3 reference.\nThe service collects an observation of the file - deterministic facts such as the sniffed\nmime type, size, page count, image resolution, blank and password-protection detection -\nand evaluates every rule against it with the shared validation rules engine.\n\nThe response carries one result per rule with a per-condition outcome (`pass`, `fail`,\n`uncertain`, `skipped`), plus the observation the results were derived from. `status` is\n`completed` for checks that finish synchronously; `pending` is reserved for check levels\nthat need asynchronous content extraction.\n",
|
|
1317
|
+
"tags": [
|
|
1318
|
+
"File"
|
|
1319
|
+
],
|
|
1320
|
+
"requestBody": {
|
|
1321
|
+
"required": true,
|
|
1322
|
+
"content": {
|
|
1323
|
+
"application/json": {
|
|
1324
|
+
"schema": {
|
|
1325
|
+
"$ref": "#/components/schemas/FileValidationRequest"
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
},
|
|
1330
|
+
"responses": {
|
|
1331
|
+
"200": {
|
|
1332
|
+
"description": "The validation result",
|
|
1333
|
+
"content": {
|
|
1334
|
+
"application/json": {
|
|
1335
|
+
"schema": {
|
|
1336
|
+
"$ref": "#/components/schemas/FileValidation"
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
},
|
|
1341
|
+
"400": {
|
|
1342
|
+
"$ref": "#/components/responses/BadRequestError"
|
|
1343
|
+
},
|
|
1344
|
+
"401": {
|
|
1345
|
+
"$ref": "#/components/responses/UnauthorizedError"
|
|
1346
|
+
},
|
|
1347
|
+
"403": {
|
|
1348
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
1349
|
+
},
|
|
1350
|
+
"404": {
|
|
1351
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
1352
|
+
},
|
|
1353
|
+
"413": {
|
|
1354
|
+
"description": "The file is too large to validate",
|
|
1355
|
+
"content": {
|
|
1356
|
+
"application/json": {
|
|
1357
|
+
"schema": {
|
|
1358
|
+
"$ref": "#/components/schemas/ErrorObject"
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1363
|
+
"422": {
|
|
1364
|
+
"description": "The file could not be read",
|
|
1365
|
+
"content": {
|
|
1366
|
+
"application/json": {
|
|
1367
|
+
"schema": {
|
|
1368
|
+
"$ref": "#/components/schemas/ErrorObject"
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
},
|
|
1373
|
+
"500": {
|
|
1374
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
},
|
|
1300
1379
|
"/v1/files/{id}/preview": {
|
|
1301
1380
|
"get": {
|
|
1302
1381
|
"operationId": "previewFile",
|
|
@@ -2090,6 +2169,9 @@
|
|
|
2090
2169
|
"400": {
|
|
2091
2170
|
"$ref": "#/components/responses/BadRequestError"
|
|
2092
2171
|
},
|
|
2172
|
+
"422": {
|
|
2173
|
+
"$ref": "#/components/responses/UnprocessableEntityError"
|
|
2174
|
+
},
|
|
2093
2175
|
"500": {
|
|
2094
2176
|
"$ref": "#/components/responses/InternalServerError"
|
|
2095
2177
|
}
|
|
@@ -2806,6 +2888,296 @@
|
|
|
2806
2888
|
],
|
|
2807
2889
|
"readOnly": true
|
|
2808
2890
|
},
|
|
2891
|
+
"FileValidationRequest": {
|
|
2892
|
+
"type": "object",
|
|
2893
|
+
"required": [
|
|
2894
|
+
"file",
|
|
2895
|
+
"rule_ids"
|
|
2896
|
+
],
|
|
2897
|
+
"additionalProperties": false,
|
|
2898
|
+
"properties": {
|
|
2899
|
+
"file": {
|
|
2900
|
+
"$ref": "#/components/schemas/FileValidationFileReference"
|
|
2901
|
+
},
|
|
2902
|
+
"rule_ids": {
|
|
2903
|
+
"type": "array",
|
|
2904
|
+
"description": "Document validation rules to evaluate. Rules of another input type are rejected.",
|
|
2905
|
+
"minItems": 1,
|
|
2906
|
+
"maxItems": 10,
|
|
2907
|
+
"uniqueItems": true,
|
|
2908
|
+
"items": {
|
|
2909
|
+
"type": "string",
|
|
2910
|
+
"minLength": 1
|
|
2911
|
+
}
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
},
|
|
2915
|
+
"FileValidationFileReference": {
|
|
2916
|
+
"description": "The file to validate - a saved file entity, or an uploaded object not saved as an entity yet.",
|
|
2917
|
+
"oneOf": [
|
|
2918
|
+
{
|
|
2919
|
+
"type": "object",
|
|
2920
|
+
"required": [
|
|
2921
|
+
"entity_id"
|
|
2922
|
+
],
|
|
2923
|
+
"additionalProperties": false,
|
|
2924
|
+
"properties": {
|
|
2925
|
+
"entity_id": {
|
|
2926
|
+
"$ref": "#/components/schemas/FileEntityId"
|
|
2927
|
+
}
|
|
2928
|
+
}
|
|
2929
|
+
},
|
|
2930
|
+
{
|
|
2931
|
+
"type": "object",
|
|
2932
|
+
"required": [
|
|
2933
|
+
"s3ref"
|
|
2934
|
+
],
|
|
2935
|
+
"additionalProperties": false,
|
|
2936
|
+
"properties": {
|
|
2937
|
+
"s3ref": {
|
|
2938
|
+
"$ref": "#/components/schemas/S3Ref"
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
]
|
|
2943
|
+
},
|
|
2944
|
+
"FileValidation": {
|
|
2945
|
+
"type": "object",
|
|
2946
|
+
"required": [
|
|
2947
|
+
"id",
|
|
2948
|
+
"status",
|
|
2949
|
+
"file",
|
|
2950
|
+
"observation",
|
|
2951
|
+
"results",
|
|
2952
|
+
"created_at"
|
|
2953
|
+
],
|
|
2954
|
+
"properties": {
|
|
2955
|
+
"id": {
|
|
2956
|
+
"type": "string",
|
|
2957
|
+
"description": "Identifier of this validation run."
|
|
2958
|
+
},
|
|
2959
|
+
"status": {
|
|
2960
|
+
"type": "string",
|
|
2961
|
+
"enum": [
|
|
2962
|
+
"completed",
|
|
2963
|
+
"pending",
|
|
2964
|
+
"failed"
|
|
2965
|
+
],
|
|
2966
|
+
"description": "`completed` when every rule was evaluated. `pending` is reserved for check levels that\nneed asynchronous content extraction; `failed` when the observation could not be produced.\n"
|
|
2967
|
+
},
|
|
2968
|
+
"file": {
|
|
2969
|
+
"$ref": "#/components/schemas/FileValidationFile"
|
|
2970
|
+
},
|
|
2971
|
+
"observation": {
|
|
2972
|
+
"$ref": "#/components/schemas/FileValidationObservation"
|
|
2973
|
+
},
|
|
2974
|
+
"results": {
|
|
2975
|
+
"type": "array",
|
|
2976
|
+
"items": {
|
|
2977
|
+
"$ref": "#/components/schemas/FileValidationRuleResult"
|
|
2978
|
+
}
|
|
2979
|
+
},
|
|
2980
|
+
"created_at": {
|
|
2981
|
+
"type": "string",
|
|
2982
|
+
"format": "date-time"
|
|
2983
|
+
}
|
|
2984
|
+
}
|
|
2985
|
+
},
|
|
2986
|
+
"FileValidationFile": {
|
|
2987
|
+
"type": "object",
|
|
2988
|
+
"description": "The file that was validated, with the identity facts collected from its content.",
|
|
2989
|
+
"properties": {
|
|
2990
|
+
"entity_id": {
|
|
2991
|
+
"$ref": "#/components/schemas/FileEntityId"
|
|
2992
|
+
},
|
|
2993
|
+
"s3ref": {
|
|
2994
|
+
"$ref": "#/components/schemas/S3Ref"
|
|
2995
|
+
},
|
|
2996
|
+
"filename": {
|
|
2997
|
+
"type": "string"
|
|
2998
|
+
},
|
|
2999
|
+
"mime_type": {
|
|
3000
|
+
"type": "string",
|
|
3001
|
+
"description": "Mime type detected from the file content, falling back to the declared type."
|
|
3002
|
+
},
|
|
3003
|
+
"size_bytes": {
|
|
3004
|
+
"type": "integer"
|
|
3005
|
+
}
|
|
3006
|
+
}
|
|
3007
|
+
},
|
|
3008
|
+
"FileValidationObservation": {
|
|
3009
|
+
"type": "object",
|
|
3010
|
+
"description": "Everything observed about the file, as passed to the validation rules engine.",
|
|
3011
|
+
"required": [
|
|
3012
|
+
"facts"
|
|
3013
|
+
],
|
|
3014
|
+
"properties": {
|
|
3015
|
+
"facts": {
|
|
3016
|
+
"$ref": "#/components/schemas/FileValidationFacts"
|
|
3017
|
+
},
|
|
3018
|
+
"judgements": {
|
|
3019
|
+
"type": "object",
|
|
3020
|
+
"description": "Content judgements keyed by condition id, produced by the document requirements\ncheck for `meetsCriteria` conditions at the `standard` and `advanced` levels.\nAbsent when no content check ran (basic level, unsupported file, or the check\ndid not finish within its budget).\n",
|
|
3021
|
+
"additionalProperties": {
|
|
3022
|
+
"$ref": "#/components/schemas/FileValidationJudgement"
|
|
3023
|
+
}
|
|
3024
|
+
},
|
|
3025
|
+
"document_type": {
|
|
3026
|
+
"type": "object",
|
|
3027
|
+
"description": "Document type detected by the content check, when it ran.",
|
|
3028
|
+
"properties": {
|
|
3029
|
+
"slug": {
|
|
3030
|
+
"type": "string"
|
|
3031
|
+
},
|
|
3032
|
+
"confidence": {
|
|
3033
|
+
"type": "number"
|
|
3034
|
+
}
|
|
3035
|
+
}
|
|
3036
|
+
}
|
|
3037
|
+
}
|
|
3038
|
+
},
|
|
3039
|
+
"FileValidationJudgement": {
|
|
3040
|
+
"type": "object",
|
|
3041
|
+
"required": [
|
|
3042
|
+
"result"
|
|
3043
|
+
],
|
|
3044
|
+
"properties": {
|
|
3045
|
+
"result": {
|
|
3046
|
+
"type": "string",
|
|
3047
|
+
"enum": [
|
|
3048
|
+
"pass",
|
|
3049
|
+
"fail",
|
|
3050
|
+
"uncertain"
|
|
3051
|
+
]
|
|
3052
|
+
},
|
|
3053
|
+
"confidence": {
|
|
3054
|
+
"type": "number"
|
|
3055
|
+
},
|
|
3056
|
+
"evidence": {
|
|
3057
|
+
"type": "string"
|
|
3058
|
+
},
|
|
3059
|
+
"explanation": {
|
|
3060
|
+
"type": "string"
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3063
|
+
},
|
|
3064
|
+
"FileValidationFacts": {
|
|
3065
|
+
"type": "object",
|
|
3066
|
+
"description": "Deterministic properties of the file. A property that is absent could not be determined\n(for example the resolution of an image the service cannot decode); conditions that need it\nare skipped rather than failed.\n",
|
|
3067
|
+
"properties": {
|
|
3068
|
+
"mime_type": {
|
|
3069
|
+
"type": "string"
|
|
3070
|
+
},
|
|
3071
|
+
"size_bytes": {
|
|
3072
|
+
"type": "integer"
|
|
3073
|
+
},
|
|
3074
|
+
"page_count": {
|
|
3075
|
+
"type": "integer",
|
|
3076
|
+
"description": "Pages of a PDF; 1 for images."
|
|
3077
|
+
},
|
|
3078
|
+
"longer_edge_px": {
|
|
3079
|
+
"type": "integer",
|
|
3080
|
+
"description": "Longer edge of an image in pixels."
|
|
3081
|
+
},
|
|
3082
|
+
"is_blank": {
|
|
3083
|
+
"type": "boolean"
|
|
3084
|
+
},
|
|
3085
|
+
"is_password_protected": {
|
|
3086
|
+
"type": "boolean"
|
|
3087
|
+
}
|
|
3088
|
+
}
|
|
3089
|
+
},
|
|
3090
|
+
"FileValidationRuleResult": {
|
|
3091
|
+
"type": "object",
|
|
3092
|
+
"required": [
|
|
3093
|
+
"rule_id",
|
|
3094
|
+
"level",
|
|
3095
|
+
"is_valid",
|
|
3096
|
+
"conditions"
|
|
3097
|
+
],
|
|
3098
|
+
"properties": {
|
|
3099
|
+
"rule_id": {
|
|
3100
|
+
"type": "string"
|
|
3101
|
+
},
|
|
3102
|
+
"rule_title": {
|
|
3103
|
+
"type": "string"
|
|
3104
|
+
},
|
|
3105
|
+
"level": {
|
|
3106
|
+
"type": "string",
|
|
3107
|
+
"enum": [
|
|
3108
|
+
"basic",
|
|
3109
|
+
"standard",
|
|
3110
|
+
"advanced"
|
|
3111
|
+
],
|
|
3112
|
+
"description": "The rule's check level."
|
|
3113
|
+
},
|
|
3114
|
+
"is_valid": {
|
|
3115
|
+
"type": "boolean",
|
|
3116
|
+
"description": "True when every blocking condition passed or was skipped."
|
|
3117
|
+
},
|
|
3118
|
+
"failed_parts": {
|
|
3119
|
+
"type": "array",
|
|
3120
|
+
"description": "Error messages of blocking conditions that failed.",
|
|
3121
|
+
"items": {
|
|
3122
|
+
"type": "string"
|
|
3123
|
+
}
|
|
3124
|
+
},
|
|
3125
|
+
"warnings": {
|
|
3126
|
+
"type": "array",
|
|
3127
|
+
"description": "Error messages of advisory conditions that failed and of uncertain judgements.",
|
|
3128
|
+
"items": {
|
|
3129
|
+
"type": "string"
|
|
3130
|
+
}
|
|
3131
|
+
},
|
|
3132
|
+
"conditions": {
|
|
3133
|
+
"type": "array",
|
|
3134
|
+
"items": {
|
|
3135
|
+
"$ref": "#/components/schemas/FileValidationConditionResult"
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3138
|
+
}
|
|
3139
|
+
},
|
|
3140
|
+
"FileValidationConditionResult": {
|
|
3141
|
+
"type": "object",
|
|
3142
|
+
"required": [
|
|
3143
|
+
"id",
|
|
3144
|
+
"operator",
|
|
3145
|
+
"outcome",
|
|
3146
|
+
"blocking",
|
|
3147
|
+
"message"
|
|
3148
|
+
],
|
|
3149
|
+
"properties": {
|
|
3150
|
+
"id": {
|
|
3151
|
+
"type": "string"
|
|
3152
|
+
},
|
|
3153
|
+
"operator": {
|
|
3154
|
+
"type": "string"
|
|
3155
|
+
},
|
|
3156
|
+
"outcome": {
|
|
3157
|
+
"type": "string",
|
|
3158
|
+
"enum": [
|
|
3159
|
+
"pass",
|
|
3160
|
+
"fail",
|
|
3161
|
+
"uncertain",
|
|
3162
|
+
"skipped"
|
|
3163
|
+
]
|
|
3164
|
+
},
|
|
3165
|
+
"blocking": {
|
|
3166
|
+
"type": "boolean",
|
|
3167
|
+
"description": "True when this outcome makes the file invalid."
|
|
3168
|
+
},
|
|
3169
|
+
"message": {
|
|
3170
|
+
"type": "string",
|
|
3171
|
+
"description": "The condition's configured error message."
|
|
3172
|
+
},
|
|
3173
|
+
"evidence": {
|
|
3174
|
+
"type": "string"
|
|
3175
|
+
},
|
|
3176
|
+
"explanation": {
|
|
3177
|
+
"type": "string"
|
|
3178
|
+
}
|
|
3179
|
+
}
|
|
3180
|
+
},
|
|
2809
3181
|
"FileText": {
|
|
2810
3182
|
"type": "object",
|
|
2811
3183
|
"properties": {
|
|
@@ -3795,6 +4167,26 @@
|
|
|
3795
4167
|
}
|
|
3796
4168
|
}
|
|
3797
4169
|
},
|
|
4170
|
+
"UnprocessableEntityError": {
|
|
4171
|
+
"description": "The request was well-formed but the file's type or content is not acceptable",
|
|
4172
|
+
"content": {
|
|
4173
|
+
"application/json": {
|
|
4174
|
+
"schema": {
|
|
4175
|
+
"allOf": [
|
|
4176
|
+
{
|
|
4177
|
+
"$ref": "#/components/schemas/ErrorObject"
|
|
4178
|
+
},
|
|
4179
|
+
{
|
|
4180
|
+
"example": {
|
|
4181
|
+
"status": 422,
|
|
4182
|
+
"error": "File type not allowed"
|
|
4183
|
+
}
|
|
4184
|
+
}
|
|
4185
|
+
]
|
|
4186
|
+
}
|
|
4187
|
+
}
|
|
4188
|
+
}
|
|
4189
|
+
},
|
|
3798
4190
|
"UnauthorizedError": {
|
|
3799
4191
|
"description": "Authentication required or invalid credentials",
|
|
3800
4192
|
"content": {
|
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
|
}
|
package/dist/bin/epilot.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
API_LIST
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-6FCRUOLP.js";
|
|
5
5
|
|
|
6
6
|
// bin/epilot.ts
|
|
7
7
|
import { runMain } from "citty";
|
|
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
|
|
|
11
11
|
var main = defineCommand({
|
|
12
12
|
meta: {
|
|
13
13
|
name: "epilot",
|
|
14
|
-
version: "0.1.
|
|
14
|
+
version: "0.1.152",
|
|
15
15
|
description: "CLI for epilot APIs"
|
|
16
16
|
},
|
|
17
17
|
args: {
|
|
@@ -30,8 +30,8 @@ var main = defineCommand({
|
|
|
30
30
|
auth: () => import("../auth-WMXFMPWE.js").then((m) => m.default),
|
|
31
31
|
profile: () => import("../profile-OZJL5ZPT.js").then((m) => m.default),
|
|
32
32
|
config: () => import("../config-DGZIMLZK.js").then((m) => m.default),
|
|
33
|
-
completion: () => import("../completion-
|
|
34
|
-
upgrade: () => import("../upgrade-
|
|
33
|
+
completion: () => import("../completion-SOFYT4C2.js").then((m) => m.default),
|
|
34
|
+
upgrade: () => import("../upgrade-PYTL3F44.js").then((m) => m.default),
|
|
35
35
|
"access-token": () => import("../access-token-WWE6BDJH.js").then((m) => m.default),
|
|
36
36
|
address: () => import("../address-EH3C4CVB.js").then((m) => m.default),
|
|
37
37
|
"address-suggestions": () => import("../address-suggestions-RRSLOBFW.js").then((m) => m.default),
|
|
@@ -134,13 +134,13 @@ process.stderr.on("error", (err) => {
|
|
|
134
134
|
if (err.code === "EPIPE") process.exit(0);
|
|
135
135
|
throw err;
|
|
136
136
|
});
|
|
137
|
-
var VERSION = true ? "0.1.
|
|
137
|
+
var VERSION = true ? "0.1.152" : (await null).default.version;
|
|
138
138
|
var reorderedArgv = hoistFlagsAfterSubcommand(process.argv.slice(2));
|
|
139
139
|
process.argv = [process.argv[0], process.argv[1], ...reorderedArgv];
|
|
140
140
|
var args = process.argv.slice(2);
|
|
141
141
|
var completionsIdx = args.indexOf("--_completions");
|
|
142
142
|
if (completionsIdx >= 0) {
|
|
143
|
-
const { handleCompletions } = await import("../completion-
|
|
143
|
+
const { handleCompletions } = await import("../completion-SOFYT4C2.js");
|
|
144
144
|
handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
|
|
145
145
|
process.exit(0);
|
|
146
146
|
}
|
|
@@ -833,7 +833,7 @@ var API_LIST = [
|
|
|
833
833
|
kebabName: "file",
|
|
834
834
|
title: "File API",
|
|
835
835
|
serverUrl: "https://file.sls.epilot.io",
|
|
836
|
-
operationCount:
|
|
836
|
+
operationCount: 38,
|
|
837
837
|
operationIds: [
|
|
838
838
|
"uploadFileV2",
|
|
839
839
|
"saveFileV2",
|
|
@@ -854,6 +854,7 @@ var API_LIST = [
|
|
|
854
854
|
"getFileSummaryJob",
|
|
855
855
|
"generateFileSummary",
|
|
856
856
|
"getFileText",
|
|
857
|
+
"validateFile",
|
|
857
858
|
"previewFile",
|
|
858
859
|
"previewS3FileGet",
|
|
859
860
|
"previewS3File",
|
|
@@ -966,11 +967,16 @@ var API_LIST = [
|
|
|
966
967
|
kebabName: "journey",
|
|
967
968
|
title: "Journey API",
|
|
968
969
|
serverUrl: "https://journey-config.sls.epilot.io",
|
|
969
|
-
operationCount:
|
|
970
|
+
operationCount: 23,
|
|
970
971
|
operationIds: [
|
|
971
972
|
"getJourneysByOrgId",
|
|
972
973
|
"getJourney",
|
|
973
974
|
"removeJourney",
|
|
975
|
+
"listJourneyRevisions",
|
|
976
|
+
"createJourneyRevision",
|
|
977
|
+
"getJourneyRevision",
|
|
978
|
+
"publishJourneyRevision",
|
|
979
|
+
"getJourneyPublishState",
|
|
974
980
|
"getJourneyEnvironment",
|
|
975
981
|
"getJourneyEnvironmentVariables",
|
|
976
982
|
"getJourneyProducts",
|
|
@@ -72,7 +72,7 @@ ${GREEN}${BOLD}Upgraded to @epilot/cli@${latest}${RESET}
|
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
var getCurrentVersion = () => {
|
|
75
|
-
if (true) return "0.1.
|
|
75
|
+
if (true) return "0.1.152";
|
|
76
76
|
try {
|
|
77
77
|
const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
|
|
78
78
|
encoding: "utf-8",
|