@epilot/cli 0.1.145 → 0.1.146
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/journey.json +80 -0
- package/dist/bin/epilot.js +6 -6
- package/dist/{chunk-GNZOIBKX.js → chunk-2LYPV5T2.js} +2 -1
- package/dist/{completion-RZ6CSKPV.js → completion-O46M2V67.js} +1 -1
- package/dist/{upgrade-4DRMPNCM.js → upgrade-R2OMPLKS.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/definitions/journey.json
CHANGED
|
@@ -263,6 +263,50 @@
|
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
},
|
|
266
|
+
"/v1/journey/environment-variables": {
|
|
267
|
+
"get": {
|
|
268
|
+
"operationId": "getJourneyEnvironmentVariables",
|
|
269
|
+
"summary": "getJourneyEnvironmentVariables",
|
|
270
|
+
"description": "List the organization's environment variables that a journey block may use as an options source. Only Map 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.",
|
|
271
|
+
"security": [
|
|
272
|
+
{
|
|
273
|
+
"EpilotAuth": []
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
"tags": [
|
|
277
|
+
"Journeys"
|
|
278
|
+
],
|
|
279
|
+
"responses": {
|
|
280
|
+
"200": {
|
|
281
|
+
"description": "Map environment variables available as an options source",
|
|
282
|
+
"headers": {
|
|
283
|
+
"Cache-Control": {
|
|
284
|
+
"schema": {
|
|
285
|
+
"type": "string"
|
|
286
|
+
},
|
|
287
|
+
"description": "Always private, no-store"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"content": {
|
|
291
|
+
"application/json": {
|
|
292
|
+
"schema": {
|
|
293
|
+
"$ref": "#/components/schemas/JourneyEnvironmentVariablesResponse"
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"401": {
|
|
299
|
+
"description": "Authorization token missing"
|
|
300
|
+
},
|
|
301
|
+
"403": {
|
|
302
|
+
"description": "Not permitted to read this organization's journeys"
|
|
303
|
+
},
|
|
304
|
+
"502": {
|
|
305
|
+
"description": "Environment resolver unavailable"
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
},
|
|
266
310
|
"/v1/journey/products/{id}": {
|
|
267
311
|
"get": {
|
|
268
312
|
"operationId": "getJourneyProducts",
|
|
@@ -1126,6 +1170,42 @@
|
|
|
1126
1170
|
}
|
|
1127
1171
|
}
|
|
1128
1172
|
},
|
|
1173
|
+
"JourneyEnvironmentVariablesResponse": {
|
|
1174
|
+
"type": "object",
|
|
1175
|
+
"required": [
|
|
1176
|
+
"items"
|
|
1177
|
+
],
|
|
1178
|
+
"properties": {
|
|
1179
|
+
"items": {
|
|
1180
|
+
"type": "array",
|
|
1181
|
+
"items": {
|
|
1182
|
+
"type": "object",
|
|
1183
|
+
"required": [
|
|
1184
|
+
"key",
|
|
1185
|
+
"type",
|
|
1186
|
+
"value"
|
|
1187
|
+
],
|
|
1188
|
+
"properties": {
|
|
1189
|
+
"key": {
|
|
1190
|
+
"type": "string"
|
|
1191
|
+
},
|
|
1192
|
+
"type": {
|
|
1193
|
+
"type": "string",
|
|
1194
|
+
"enum": [
|
|
1195
|
+
"Map"
|
|
1196
|
+
]
|
|
1197
|
+
},
|
|
1198
|
+
"value": {
|
|
1199
|
+
"$ref": "#/components/schemas/EnvironmentMap"
|
|
1200
|
+
},
|
|
1201
|
+
"description": {
|
|
1202
|
+
"type": "string"
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
},
|
|
1129
1209
|
"GetJourneysResponse": {
|
|
1130
1210
|
"type": "object"
|
|
1131
1211
|
},
|
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-2LYPV5T2.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.146",
|
|
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-O46M2V67.js").then((m) => m.default),
|
|
34
|
+
upgrade: () => import("../upgrade-R2OMPLKS.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.146" : (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-O46M2V67.js");
|
|
144
144
|
handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
|
|
145
145
|
process.exit(0);
|
|
146
146
|
}
|
|
@@ -966,12 +966,13 @@ var API_LIST = [
|
|
|
966
966
|
kebabName: "journey",
|
|
967
967
|
title: "Journey API",
|
|
968
968
|
serverUrl: "https://journey-config.sls.epilot.io",
|
|
969
|
-
operationCount:
|
|
969
|
+
operationCount: 18,
|
|
970
970
|
operationIds: [
|
|
971
971
|
"getJourneysByOrgId",
|
|
972
972
|
"getJourney",
|
|
973
973
|
"removeJourney",
|
|
974
974
|
"getJourneyEnvironment",
|
|
975
|
+
"getJourneyEnvironmentVariables",
|
|
975
976
|
"getJourneyProducts",
|
|
976
977
|
"createJourney",
|
|
977
978
|
"updateJourney",
|
|
@@ -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.146";
|
|
76
76
|
try {
|
|
77
77
|
const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
|
|
78
78
|
encoding: "utf-8",
|