@epilot/cli 0.1.12 → 0.1.16
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 +5 -1
- package/definitions/blueprint-manifest.json +239 -12
- package/definitions/configuration-hub.json +399 -0
- package/definitions/customer-portal.json +373 -4
- package/definitions/design.json +257 -4
- package/definitions/environments.json +183 -7
- package/definitions/query.json +3178 -0
- package/definitions/target.json +609 -0
- package/definitions/user.json +52 -0
- package/dist/bin/epilot.js +8 -6
- package/dist/{chunk-F6KWKTQJ.js → chunk-XQLUS2BD.js} +52 -4
- package/dist/{completion-QP4IYMVI.js → completion-KA3HJ6PR.js} +1 -1
- package/dist/configuration-hub-Y7W22GBW.js +54 -0
- package/dist/query-IYW42QLU.js +54 -0
- package/dist/{upgrade-SYSSIAQC.js → upgrade-Z7XJXIDK.js} +1 -1
- package/package.json +4 -2
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-XQLUS2BD.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.16",
|
|
15
15
|
description: "CLI for epilot APIs"
|
|
16
16
|
},
|
|
17
17
|
args: {
|
|
@@ -27,8 +27,8 @@ var main = defineCommand({
|
|
|
27
27
|
subCommands: {
|
|
28
28
|
auth: () => import("../auth-AAF6Z5WZ.js").then((m) => m.default),
|
|
29
29
|
profile: () => import("../profile-EK4HSQ57.js").then((m) => m.default),
|
|
30
|
-
completion: () => import("../completion-
|
|
31
|
-
upgrade: () => import("../upgrade-
|
|
30
|
+
completion: () => import("../completion-KA3HJ6PR.js").then((m) => m.default),
|
|
31
|
+
upgrade: () => import("../upgrade-Z7XJXIDK.js").then((m) => m.default),
|
|
32
32
|
"access-token": () => import("../access-token-CIM4RLBP.js").then((m) => m.default),
|
|
33
33
|
address: () => import("../address-EDRTUWTP.js").then((m) => m.default),
|
|
34
34
|
"address-suggestions": () => import("../address-suggestions-S5WEST2N.js").then((m) => m.default),
|
|
@@ -38,6 +38,7 @@ var main = defineCommand({
|
|
|
38
38
|
automation: () => import("../automation-LS6MVLP2.js").then((m) => m.default),
|
|
39
39
|
billing: () => import("../billing-KVYFUKZK.js").then((m) => m.default),
|
|
40
40
|
"blueprint-manifest": () => import("../blueprint-manifest-W4ZGJD2Z.js").then((m) => m.default),
|
|
41
|
+
"configuration-hub": () => import("../configuration-hub-Y7W22GBW.js").then((m) => m.default),
|
|
41
42
|
consent: () => import("../consent-M4QB2HPM.js").then((m) => m.default),
|
|
42
43
|
"customer-portal": () => import("../customer-portal-SVO2YCXA.js").then((m) => m.default),
|
|
43
44
|
dashboard: () => import("../dashboard-CYCXIX74.js").then((m) => m.default),
|
|
@@ -66,6 +67,7 @@ var main = defineCommand({
|
|
|
66
67
|
pricing: () => import("../pricing-KNYSULCW.js").then((m) => m.default),
|
|
67
68
|
"pricing-tier": () => import("../pricing-tier-OCHP6SHT.js").then((m) => m.default),
|
|
68
69
|
purpose: () => import("../purpose-NGM42XWB.js").then((m) => m.default),
|
|
70
|
+
query: () => import("../query-IYW42QLU.js").then((m) => m.default),
|
|
69
71
|
sandbox: () => import("../sandbox-YX3VVAQG.js").then((m) => m.default),
|
|
70
72
|
sharing: () => import("../sharing-X5U53KSU.js").then((m) => m.default),
|
|
71
73
|
submission: () => import("../submission-YOWVSZNA.js").then((m) => m.default),
|
|
@@ -88,11 +90,11 @@ process.stderr.on("error", (err) => {
|
|
|
88
90
|
if (err.code === "EPIPE") process.exit(0);
|
|
89
91
|
throw err;
|
|
90
92
|
});
|
|
91
|
-
var VERSION = true ? "0.1.
|
|
93
|
+
var VERSION = true ? "0.1.16" : (await null).default.version;
|
|
92
94
|
var args = process.argv.slice(2);
|
|
93
95
|
var completionsIdx = args.indexOf("--_completions");
|
|
94
96
|
if (completionsIdx >= 0) {
|
|
95
|
-
const { handleCompletions } = await import("../completion-
|
|
97
|
+
const { handleCompletions } = await import("../completion-KA3HJ6PR.js");
|
|
96
98
|
handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
|
|
97
99
|
process.exit(0);
|
|
98
100
|
}
|
|
@@ -151,7 +151,7 @@ var API_LIST = [
|
|
|
151
151
|
kebabName: "blueprint-manifest",
|
|
152
152
|
title: "Blueprint Manifest API",
|
|
153
153
|
serverUrl: "https://blueprint-manifest.sls.epilot.io",
|
|
154
|
-
operationCount:
|
|
154
|
+
operationCount: 48,
|
|
155
155
|
operationIds: [
|
|
156
156
|
"getJob",
|
|
157
157
|
"createExport",
|
|
@@ -191,15 +191,26 @@ var API_LIST = [
|
|
|
191
191
|
"cancelBlueprintJob",
|
|
192
192
|
"getMarketplaceListing",
|
|
193
193
|
"createMarketplaceListing",
|
|
194
|
+
"listMarketplaceListings",
|
|
194
195
|
"getMarketplaceListingById",
|
|
195
196
|
"updateMarketplaceListing",
|
|
196
197
|
"deleteMarketplaceListing",
|
|
197
198
|
"listMarketplaceListingVersions",
|
|
198
199
|
"createMarketplaceListingVersion",
|
|
199
200
|
"updateMarketplaceListingVersion",
|
|
200
|
-
"publishMarketplaceListingVersion"
|
|
201
|
+
"publishMarketplaceListingVersion",
|
|
202
|
+
"installBlueprintV3",
|
|
203
|
+
"getBlueprintLineageV3"
|
|
201
204
|
]
|
|
202
205
|
},
|
|
206
|
+
{
|
|
207
|
+
apiName: "configurationHub",
|
|
208
|
+
kebabName: "configuration-hub",
|
|
209
|
+
title: "Configuration Hub API",
|
|
210
|
+
serverUrl: "https://configuration-hub.dev.sls.epilot.io",
|
|
211
|
+
operationCount: 3,
|
|
212
|
+
operationIds: ["listConfigTypes", "listConfigs", "getConfigDependencies"]
|
|
213
|
+
},
|
|
203
214
|
{
|
|
204
215
|
apiName: "consent",
|
|
205
216
|
kebabName: "consent",
|
|
@@ -213,7 +224,7 @@ var API_LIST = [
|
|
|
213
224
|
kebabName: "customer-portal",
|
|
214
225
|
title: "Portal API",
|
|
215
226
|
serverUrl: "https://customer-portal-api.sls.epilot.io",
|
|
216
|
-
operationCount:
|
|
227
|
+
operationCount: 142,
|
|
217
228
|
operationIds: [
|
|
218
229
|
"upsertPortal",
|
|
219
230
|
"createUser",
|
|
@@ -245,6 +256,7 @@ var API_LIST = [
|
|
|
245
256
|
"getEmailTemplatesByPortalId",
|
|
246
257
|
"upsertEmailTemplatesByPortalId",
|
|
247
258
|
"getPublicPortalWidgets",
|
|
259
|
+
"getPublicPortalWidgetsV3",
|
|
248
260
|
"getPortalWidgets",
|
|
249
261
|
"upsertPortalWidget",
|
|
250
262
|
"getPortalWidgetsV3",
|
|
@@ -254,6 +266,7 @@ var API_LIST = [
|
|
|
254
266
|
"getOrganizationSettings",
|
|
255
267
|
"getSchemas",
|
|
256
268
|
"getSchemasByDomain",
|
|
269
|
+
"getPublicSchemasV3",
|
|
257
270
|
"getOrganizationSettingsByDomain",
|
|
258
271
|
"extraPermissionAttributes",
|
|
259
272
|
"validateCaaRecords",
|
|
@@ -319,6 +332,7 @@ var API_LIST = [
|
|
|
319
332
|
"uploadMeterReadingPhoto",
|
|
320
333
|
"createMeterReading",
|
|
321
334
|
"getAllowedMeterReadingRange",
|
|
335
|
+
"getMeterReadings",
|
|
322
336
|
"ssoLogin",
|
|
323
337
|
"ssoLoginV3",
|
|
324
338
|
"ssoRedirect",
|
|
@@ -347,6 +361,7 @@ var API_LIST = [
|
|
|
347
361
|
"deletePortalConfig",
|
|
348
362
|
"listAllPortalConfigs",
|
|
349
363
|
"swapPortalConfig",
|
|
364
|
+
"clonePortalConfig",
|
|
350
365
|
"invitePartner",
|
|
351
366
|
"listBusinessPartners",
|
|
352
367
|
"resendPartnerInvitation",
|
|
@@ -607,10 +622,13 @@ var API_LIST = [
|
|
|
607
622
|
kebabName: "environments",
|
|
608
623
|
title: "Environments API",
|
|
609
624
|
serverUrl: "https://environments.sls.epilot.io",
|
|
610
|
-
operationCount:
|
|
625
|
+
operationCount: 8,
|
|
611
626
|
operationIds: [
|
|
612
627
|
"listEnvironmentVariables",
|
|
613
628
|
"createEnvironmentVariable",
|
|
629
|
+
"listEnvironmentGroups",
|
|
630
|
+
"putEnvironmentGroup",
|
|
631
|
+
"deleteEnvironmentGroup",
|
|
614
632
|
"getEnvironmentVariable",
|
|
615
633
|
"updateEnvironmentVariable",
|
|
616
634
|
"deleteEnvironmentVariable"
|
|
@@ -1021,6 +1039,36 @@ var API_LIST = [
|
|
|
1021
1039
|
"deletePurpose"
|
|
1022
1040
|
]
|
|
1023
1041
|
},
|
|
1042
|
+
{
|
|
1043
|
+
apiName: "query",
|
|
1044
|
+
kebabName: "query",
|
|
1045
|
+
title: "Query API",
|
|
1046
|
+
serverUrl: "https://query.sls.epilot.io",
|
|
1047
|
+
operationCount: 21,
|
|
1048
|
+
operationIds: [
|
|
1049
|
+
"getAllViews",
|
|
1050
|
+
"createOrUpdateView",
|
|
1051
|
+
"getView",
|
|
1052
|
+
"getAllRelationships",
|
|
1053
|
+
"createOrUpdateRelationship",
|
|
1054
|
+
"listAvailableDatasetsV2",
|
|
1055
|
+
"executeEntitiesQuery",
|
|
1056
|
+
"executeWorkflowsQuery",
|
|
1057
|
+
"executeAutomationQuery",
|
|
1058
|
+
"listWorkflowPhasesByDefinitionId",
|
|
1059
|
+
"listWorkflowDefinitions",
|
|
1060
|
+
"listPhaseNames",
|
|
1061
|
+
"listDatasets",
|
|
1062
|
+
"executeQuery",
|
|
1063
|
+
"generateCredentialsV2",
|
|
1064
|
+
"listCredentialsV2",
|
|
1065
|
+
"revokeCredentialsV2",
|
|
1066
|
+
"executeQueryV2",
|
|
1067
|
+
"getSemanticModel",
|
|
1068
|
+
"autocomplete",
|
|
1069
|
+
"workflowsAutocomplete"
|
|
1070
|
+
]
|
|
1071
|
+
},
|
|
1024
1072
|
{
|
|
1025
1073
|
apiName: "sandbox",
|
|
1026
1074
|
kebabName: "sandbox",
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
callApi
|
|
4
|
+
} from "./chunk-BYAEI4Z2.js";
|
|
5
|
+
import "./chunk-RSA7K5HB.js";
|
|
6
|
+
import "./chunk-PDMWUCWD.js";
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
|
+
import "./chunk-7ZQ666ZQ.js";
|
|
9
|
+
|
|
10
|
+
// src/commands/apis/configuration-hub.ts
|
|
11
|
+
import { defineCommand } from "citty";
|
|
12
|
+
var configuration_hub_default = defineCommand({
|
|
13
|
+
meta: { name: "configuration-hub", description: "Configuration Hub API" },
|
|
14
|
+
args: {
|
|
15
|
+
operation: { type: "positional", description: "operationId to call", required: false },
|
|
16
|
+
param: { type: "string", alias: "p", description: "Parameter key=value" },
|
|
17
|
+
data: { type: "string", alias: "d", description: "Request body JSON" },
|
|
18
|
+
header: { type: "string", alias: "H", description: "Custom header" },
|
|
19
|
+
include: { type: "boolean", alias: "i", description: "Include response headers" },
|
|
20
|
+
definition: { type: "string", description: "Override OpenAPI spec file/URL" },
|
|
21
|
+
server: { type: "string", alias: "s", description: "Override server base URL" },
|
|
22
|
+
profile: { type: "string", description: "Use a named profile" },
|
|
23
|
+
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
|
+
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
|
+
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
27
|
+
interactive: { type: "boolean", description: "Interactive mode" },
|
|
28
|
+
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
29
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
30
|
+
_apihelp: { type: "boolean", description: "Show API help", required: false }
|
|
31
|
+
},
|
|
32
|
+
run: ({ args, rawArgs }) => {
|
|
33
|
+
const positionalArgs = [];
|
|
34
|
+
if (args.operation && rawArgs) {
|
|
35
|
+
const opIdx = rawArgs.indexOf(args.operation);
|
|
36
|
+
if (opIdx >= 0) {
|
|
37
|
+
for (let i = opIdx + 1; i < rawArgs.length; i++) {
|
|
38
|
+
const arg = rawArgs[i];
|
|
39
|
+
if (arg.startsWith("-")) break;
|
|
40
|
+
positionalArgs.push(arg);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return callApi("configuration-hub", {
|
|
45
|
+
...args,
|
|
46
|
+
help: !!args._ophelp,
|
|
47
|
+
_apihelp: !!args._apihelp,
|
|
48
|
+
_args: positionalArgs
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
configuration_hub_default as default
|
|
54
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
callApi
|
|
4
|
+
} from "./chunk-BYAEI4Z2.js";
|
|
5
|
+
import "./chunk-RSA7K5HB.js";
|
|
6
|
+
import "./chunk-PDMWUCWD.js";
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
|
+
import "./chunk-7ZQ666ZQ.js";
|
|
9
|
+
|
|
10
|
+
// src/commands/apis/query.ts
|
|
11
|
+
import { defineCommand } from "citty";
|
|
12
|
+
var query_default = defineCommand({
|
|
13
|
+
meta: { name: "query", description: "Query API" },
|
|
14
|
+
args: {
|
|
15
|
+
operation: { type: "positional", description: "operationId to call", required: false },
|
|
16
|
+
param: { type: "string", alias: "p", description: "Parameter key=value" },
|
|
17
|
+
data: { type: "string", alias: "d", description: "Request body JSON" },
|
|
18
|
+
header: { type: "string", alias: "H", description: "Custom header" },
|
|
19
|
+
include: { type: "boolean", alias: "i", description: "Include response headers" },
|
|
20
|
+
definition: { type: "string", description: "Override OpenAPI spec file/URL" },
|
|
21
|
+
server: { type: "string", alias: "s", description: "Override server base URL" },
|
|
22
|
+
profile: { type: "string", description: "Use a named profile" },
|
|
23
|
+
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
|
+
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
|
+
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
27
|
+
interactive: { type: "boolean", description: "Interactive mode" },
|
|
28
|
+
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
29
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
30
|
+
_apihelp: { type: "boolean", description: "Show API help", required: false }
|
|
31
|
+
},
|
|
32
|
+
run: ({ args, rawArgs }) => {
|
|
33
|
+
const positionalArgs = [];
|
|
34
|
+
if (args.operation && rawArgs) {
|
|
35
|
+
const opIdx = rawArgs.indexOf(args.operation);
|
|
36
|
+
if (opIdx >= 0) {
|
|
37
|
+
for (let i = opIdx + 1; i < rawArgs.length; i++) {
|
|
38
|
+
const arg = rawArgs[i];
|
|
39
|
+
if (arg.startsWith("-")) break;
|
|
40
|
+
positionalArgs.push(arg);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return callApi("query", {
|
|
45
|
+
...args,
|
|
46
|
+
help: !!args._ophelp,
|
|
47
|
+
_apihelp: !!args._apihelp,
|
|
48
|
+
_args: positionalArgs
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
query_default as default
|
|
54
|
+
};
|
|
@@ -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.16";
|
|
76
76
|
try {
|
|
77
77
|
const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
|
|
78
78
|
encoding: "utf-8",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "CLI for epilot APIs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "pnpm generate && tsup",
|
|
14
|
-
"generate": "tsx scripts/generate.ts",
|
|
14
|
+
"generate": "tsx scripts/generate.ts && pnpm lint:fix",
|
|
15
|
+
"lint": "biome check src",
|
|
16
|
+
"lint:fix": "biome check --write src",
|
|
15
17
|
"dev": "tsx bin/epilot.ts",
|
|
16
18
|
"test": "vitest run",
|
|
17
19
|
"typecheck": "tsc --noEmit",
|