@epilot/cli 0.1.6 → 0.1.7
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 +2 -2
- package/dist/{access-token-BDNU3ZFC.js → access-token-BV7OAX75.js} +6 -4
- package/dist/{address-ZCYZYRP4.js → address-4Z6WADBJ.js} +6 -4
- package/dist/{address-suggestions-RP5N7NVQ.js → address-suggestions-7BXTJCZH.js} +6 -4
- package/dist/{ai-agents-PLUGVZTI.js → ai-agents-VB2WGMIZ.js} +6 -4
- package/dist/{app-HZECIN6N.js → app-DXDK7UZX.js} +6 -4
- package/dist/{audit-logs-JWKGNHPP.js → audit-logs-5ZEZNO5T.js} +6 -4
- package/dist/{auth-JRW6QLKR.js → auth-AAF6Z5WZ.js} +3 -3
- package/dist/{auth-login-7B4GCQWY.js → auth-login-AJ6F5GPQ.js} +12 -11
- package/dist/{auth-token-VSNRXUBI.js → auth-token-J4FI2RMT.js} +1 -1
- package/dist/{automation-73BC4PYK.js → automation-V5CN2KUO.js} +6 -4
- package/dist/{billing-GQDSK4H2.js → billing-FKPDTZ6G.js} +6 -4
- package/dist/bin/epilot.js +62 -54
- package/dist/{blueprint-manifest-4M7DNWYE.js → blueprint-manifest-2CINVMTI.js} +6 -4
- package/dist/{chunk-6RBLA5YE.js → chunk-7ZQ666ZQ.js} +44 -1
- package/dist/{chunk-HN4QDJOJ.js → chunk-AMOFZJ5W.js} +8 -9
- package/dist/{chunk-BJOXXFMA.js → chunk-EU2A2ORP.js} +156 -52
- package/dist/{completion-RCVUCEMM.js → completion-EKFXGPNK.js} +1 -1
- package/dist/{consent-OJBGOI54.js → consent-HZ7EVD4I.js} +6 -4
- package/dist/{customer-portal-BDKNWKHA.js → customer-portal-XHM7X235.js} +6 -4
- package/dist/{dashboard-IAEU3JFY.js → dashboard-NVP6FMOH.js} +6 -4
- package/dist/{data-management-UEDSGAKB.js → data-management-JGDAGO75.js} +6 -4
- package/dist/{deduplication-JJS3TOJ2.js → deduplication-DTY4VICH.js} +6 -4
- package/dist/{design-WKSDZFBJ.js → design-72XM3PQR.js} +6 -4
- package/dist/{document-P5OL4NYY.js → document-OH4T743T.js} +6 -4
- package/dist/{email-settings-743JHCKS.js → email-settings-BSU45CNC.js} +6 -4
- package/dist/{email-template-MW4IVDPM.js → email-template-VHUF3OYL.js} +6 -4
- package/dist/{entity-K5X6FWJI.js → entity-RBMVRPDS.js} +6 -4
- package/dist/{entity-mapping-QBJ2I2VR.js → entity-mapping-7QUMDAQO.js} +6 -4
- package/dist/{environments-VUR7ME42.js → environments-RM333MM3.js} +6 -4
- package/dist/{erp-integration-A2KAIXUQ.js → erp-integration-RBW2CSPM.js} +6 -4
- package/dist/{event-catalog-6YEG5CEM.js → event-catalog-APQS5GOU.js} +6 -4
- package/dist/{file-J6PHZ447.js → file-SU2T5RF6.js} +6 -4
- package/dist/{iban-DJSUCRU6.js → iban-XRAJ3QJA.js} +6 -4
- package/dist/{interactive-XXYFAJEI.js → interactive-CD3I3Q5X.js} +4 -4
- package/dist/{journey-QJZKU3PZ.js → journey-SRK5MDRQ.js} +6 -4
- package/dist/{kanban-ZF4IIG7Q.js → kanban-2IDQXJ4R.js} +6 -4
- package/dist/{message-WH4GD5SC.js → message-TV7TZI2Y.js} +6 -4
- package/dist/{metering-FCWUZ2TC.js → metering-LHBESUA2.js} +6 -4
- package/dist/{notes-KKVPGK7K.js → notes-3KTVUFIQ.js} +6 -4
- package/dist/{notification-4MVAZTRP.js → notification-6FHJXYCH.js} +6 -4
- package/dist/{organization-2UT2KFMB.js → organization-MBRTAROH.js} +6 -4
- package/dist/{partner-directory-SUNW4XN7.js → partner-directory-NUWSXNVD.js} +6 -4
- package/dist/{permissions-36VGB4BQ.js → permissions-CD2OPGOC.js} +6 -4
- package/dist/{pricing-RCNFEEHO.js → pricing-6C6LWKER.js} +6 -4
- package/dist/{pricing-tier-MNCLLXD5.js → pricing-tier-U67UYOP5.js} +6 -4
- package/dist/{profile-MZ3VK7PO.js → profile-EK4HSQ57.js} +1 -1
- package/dist/{purpose-3JN63WTQ.js → purpose-3UTD6PG2.js} +6 -4
- package/dist/{sandbox-C676YDRV.js → sandbox-AU5TUO7G.js} +6 -4
- package/dist/{submission-5XTNMMCK.js → submission-LXDAZTAB.js} +6 -4
- package/dist/{targeting-C52KV6IW.js → targeting-YDU2O744.js} +6 -4
- package/dist/{template-variables-5SKJEJF4.js → template-variables-MLSMLLYA.js} +6 -4
- package/dist/{upgrade-GSUVIXOB.js → upgrade-KIOCOPB7.js} +2 -2
- package/dist/{user-DYAR3N6L.js → user-WMSSXQHK.js} +6 -4
- package/dist/{validation-rules-LDAOUPOO.js → validation-rules-W7A4DMWK.js} +6 -4
- package/dist/{webhooks-MT2P33A2.js → webhooks-QSYAFFQ2.js} +6 -4
- package/dist/{workflow-YGWGE6L4.js → workflow-KKAMUHYE.js} +6 -4
- package/dist/{workflow-definition-JG54ZWGL.js → workflow-definition-ECXHF425.js} +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,14 +9,14 @@ CLI for epilot APIs. Call any epilot API operation directly from the command lin
|
|
|
9
9
|
npx epilot --help
|
|
10
10
|
|
|
11
11
|
# Or install globally
|
|
12
|
-
npm install -g @epilot/cli
|
|
12
|
+
npm install -g @epilot/cli
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
17
17
|
<!-- usage-help -->
|
|
18
18
|
```
|
|
19
|
-
epilot v0.1.
|
|
19
|
+
epilot v0.1.7 — CLI for epilot APIs
|
|
20
20
|
|
|
21
21
|
USAGE
|
|
22
22
|
epilot <api> <operationId> [params...] [flags]
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EU2A2ORP.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-AMOFZJ5W.js";
|
|
8
|
+
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/access-token.ts
|
|
11
11
|
import { defineCommand } from "citty";
|
|
@@ -25,7 +25,8 @@ var access_token_default = defineCommand({
|
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
26
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
27
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
-
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
29
|
+
_apihelp: { type: "boolean", description: "Show API help", required: false }
|
|
29
30
|
},
|
|
30
31
|
run: ({ args, rawArgs }) => {
|
|
31
32
|
const positionalArgs = [];
|
|
@@ -42,6 +43,7 @@ var access_token_default = defineCommand({
|
|
|
42
43
|
return callApi("access-token", {
|
|
43
44
|
...args,
|
|
44
45
|
help: !!args._ophelp,
|
|
46
|
+
_apihelp: !!args._apihelp,
|
|
45
47
|
_args: positionalArgs
|
|
46
48
|
});
|
|
47
49
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EU2A2ORP.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-AMOFZJ5W.js";
|
|
8
|
+
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/address.ts
|
|
11
11
|
import { defineCommand } from "citty";
|
|
@@ -25,7 +25,8 @@ var address_default = defineCommand({
|
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
26
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
27
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
-
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
29
|
+
_apihelp: { type: "boolean", description: "Show API help", required: false }
|
|
29
30
|
},
|
|
30
31
|
run: ({ args, rawArgs }) => {
|
|
31
32
|
const positionalArgs = [];
|
|
@@ -42,6 +43,7 @@ var address_default = defineCommand({
|
|
|
42
43
|
return callApi("address", {
|
|
43
44
|
...args,
|
|
44
45
|
help: !!args._ophelp,
|
|
46
|
+
_apihelp: !!args._apihelp,
|
|
45
47
|
_args: positionalArgs
|
|
46
48
|
});
|
|
47
49
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EU2A2ORP.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-AMOFZJ5W.js";
|
|
8
|
+
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/address-suggestions.ts
|
|
11
11
|
import { defineCommand } from "citty";
|
|
@@ -25,7 +25,8 @@ var address_suggestions_default = defineCommand({
|
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
26
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
27
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
-
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
29
|
+
_apihelp: { type: "boolean", description: "Show API help", required: false }
|
|
29
30
|
},
|
|
30
31
|
run: ({ args, rawArgs }) => {
|
|
31
32
|
const positionalArgs = [];
|
|
@@ -42,6 +43,7 @@ var address_suggestions_default = defineCommand({
|
|
|
42
43
|
return callApi("address-suggestions", {
|
|
43
44
|
...args,
|
|
44
45
|
help: !!args._ophelp,
|
|
46
|
+
_apihelp: !!args._apihelp,
|
|
45
47
|
_args: positionalArgs
|
|
46
48
|
});
|
|
47
49
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EU2A2ORP.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-AMOFZJ5W.js";
|
|
8
|
+
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/ai-agents.ts
|
|
11
11
|
import { defineCommand } from "citty";
|
|
@@ -25,7 +25,8 @@ var ai_agents_default = defineCommand({
|
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
26
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
27
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
-
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
29
|
+
_apihelp: { type: "boolean", description: "Show API help", required: false }
|
|
29
30
|
},
|
|
30
31
|
run: ({ args, rawArgs }) => {
|
|
31
32
|
const positionalArgs = [];
|
|
@@ -42,6 +43,7 @@ var ai_agents_default = defineCommand({
|
|
|
42
43
|
return callApi("ai-agents", {
|
|
43
44
|
...args,
|
|
44
45
|
help: !!args._ophelp,
|
|
46
|
+
_apihelp: !!args._apihelp,
|
|
45
47
|
_args: positionalArgs
|
|
46
48
|
});
|
|
47
49
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EU2A2ORP.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-AMOFZJ5W.js";
|
|
8
|
+
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/app.ts
|
|
11
11
|
import { defineCommand } from "citty";
|
|
@@ -25,7 +25,8 @@ var app_default = defineCommand({
|
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
26
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
27
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
-
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
29
|
+
_apihelp: { type: "boolean", description: "Show API help", required: false }
|
|
29
30
|
},
|
|
30
31
|
run: ({ args, rawArgs }) => {
|
|
31
32
|
const positionalArgs = [];
|
|
@@ -42,6 +43,7 @@ var app_default = defineCommand({
|
|
|
42
43
|
return callApi("app", {
|
|
43
44
|
...args,
|
|
44
45
|
help: !!args._ophelp,
|
|
46
|
+
_apihelp: !!args._apihelp,
|
|
45
47
|
_args: positionalArgs
|
|
46
48
|
});
|
|
47
49
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EU2A2ORP.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-AMOFZJ5W.js";
|
|
8
|
+
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/audit-logs.ts
|
|
11
11
|
import { defineCommand } from "citty";
|
|
@@ -25,7 +25,8 @@ var audit_logs_default = defineCommand({
|
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
26
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
27
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
-
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
29
|
+
_apihelp: { type: "boolean", description: "Show API help", required: false }
|
|
29
30
|
},
|
|
30
31
|
run: ({ args, rawArgs }) => {
|
|
31
32
|
const positionalArgs = [];
|
|
@@ -42,6 +43,7 @@ var audit_logs_default = defineCommand({
|
|
|
42
43
|
return callApi("audit-logs", {
|
|
43
44
|
...args,
|
|
44
45
|
help: !!args._ophelp,
|
|
46
|
+
_apihelp: !!args._apihelp,
|
|
45
47
|
_args: positionalArgs
|
|
46
48
|
});
|
|
47
49
|
}
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
RED,
|
|
12
12
|
RESET,
|
|
13
13
|
YELLOW
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7ZQ666ZQ.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/auth.ts
|
|
17
17
|
import { defineCommand } from "citty";
|
|
@@ -21,8 +21,8 @@ var auth_default = defineCommand({
|
|
|
21
21
|
description: "Manage authentication"
|
|
22
22
|
},
|
|
23
23
|
subCommands: {
|
|
24
|
-
login: () => import("./auth-login-
|
|
25
|
-
token: () => import("./auth-token-
|
|
24
|
+
login: () => import("./auth-login-AJ6F5GPQ.js").then((m) => m.default),
|
|
25
|
+
token: () => import("./auth-token-J4FI2RMT.js").then((m) => m.default),
|
|
26
26
|
logout: defineCommand({
|
|
27
27
|
meta: { name: "logout", description: "Remove stored credentials" },
|
|
28
28
|
run: () => {
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
RED,
|
|
12
12
|
RESET,
|
|
13
13
|
YELLOW
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7ZQ666ZQ.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/auth-login.ts
|
|
17
17
|
import { defineCommand } from "citty";
|
|
@@ -84,6 +84,7 @@ ${BOLD}epilot CLI Login${RESET}${suffix}
|
|
|
84
84
|
settled = true;
|
|
85
85
|
clearTimeout(timeoutId);
|
|
86
86
|
tokenPromptController?.abort();
|
|
87
|
+
server.closeAllConnections();
|
|
87
88
|
server.close();
|
|
88
89
|
resolve(token);
|
|
89
90
|
};
|
|
@@ -112,6 +113,16 @@ ${DIM}Login URL: ${loginUrl}${RESET}
|
|
|
112
113
|
|
|
113
114
|
`);
|
|
114
115
|
}
|
|
116
|
+
timeoutId = setTimeout(
|
|
117
|
+
() => {
|
|
118
|
+
process.stderr.write(`
|
|
119
|
+
${RED}Login timed out after 5 minutes.${RESET}
|
|
120
|
+
`);
|
|
121
|
+
done(null);
|
|
122
|
+
},
|
|
123
|
+
5 * 60 * 1e3
|
|
124
|
+
);
|
|
125
|
+
timeoutId.unref();
|
|
115
126
|
process.stdout.write(`
|
|
116
127
|
${DIM}Or paste a token manually:${RESET}
|
|
117
128
|
`);
|
|
@@ -128,16 +139,6 @@ ${DIM}Or paste a token manually:${RESET}
|
|
|
128
139
|
}
|
|
129
140
|
} catch {
|
|
130
141
|
}
|
|
131
|
-
timeoutId = setTimeout(
|
|
132
|
-
() => {
|
|
133
|
-
process.stderr.write(`
|
|
134
|
-
${RED}Login timed out after 5 minutes.${RESET}
|
|
135
|
-
`);
|
|
136
|
-
done(null);
|
|
137
|
-
},
|
|
138
|
-
5 * 60 * 1e3
|
|
139
|
-
);
|
|
140
|
-
timeoutId.unref();
|
|
141
142
|
};
|
|
142
143
|
const server = createServer((req, res) => {
|
|
143
144
|
const url = new URL(req.url, "http://localhost");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EU2A2ORP.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-AMOFZJ5W.js";
|
|
8
|
+
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/automation.ts
|
|
11
11
|
import { defineCommand } from "citty";
|
|
@@ -25,7 +25,8 @@ var automation_default = defineCommand({
|
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
26
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
27
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
-
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
29
|
+
_apihelp: { type: "boolean", description: "Show API help", required: false }
|
|
29
30
|
},
|
|
30
31
|
run: ({ args, rawArgs }) => {
|
|
31
32
|
const positionalArgs = [];
|
|
@@ -42,6 +43,7 @@ var automation_default = defineCommand({
|
|
|
42
43
|
return callApi("automation", {
|
|
43
44
|
...args,
|
|
44
45
|
help: !!args._ophelp,
|
|
46
|
+
_apihelp: !!args._apihelp,
|
|
45
47
|
_args: positionalArgs
|
|
46
48
|
});
|
|
47
49
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EU2A2ORP.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-AMOFZJ5W.js";
|
|
8
|
+
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/billing.ts
|
|
11
11
|
import { defineCommand } from "citty";
|
|
@@ -25,7 +25,8 @@ var billing_default = defineCommand({
|
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
26
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
27
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
-
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
29
|
+
_apihelp: { type: "boolean", description: "Show API help", required: false }
|
|
29
30
|
},
|
|
30
31
|
run: ({ args, rawArgs }) => {
|
|
31
32
|
const positionalArgs = [];
|
|
@@ -42,6 +43,7 @@ var billing_default = defineCommand({
|
|
|
42
43
|
return callApi("billing", {
|
|
43
44
|
...args,
|
|
44
45
|
help: !!args._ophelp,
|
|
46
|
+
_apihelp: !!args._apihelp,
|
|
45
47
|
_args: positionalArgs
|
|
46
48
|
});
|
|
47
49
|
}
|
package/dist/bin/epilot.js
CHANGED
|
@@ -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.7",
|
|
15
15
|
description: "CLI for epilot APIs"
|
|
16
16
|
},
|
|
17
17
|
args: {
|
|
@@ -24,65 +24,73 @@ var main = defineCommand({
|
|
|
24
24
|
jsonata: { type: "string", description: "JSONata expression" }
|
|
25
25
|
},
|
|
26
26
|
subCommands: {
|
|
27
|
-
auth: () => import("../auth-
|
|
28
|
-
profile: () => import("../profile-
|
|
29
|
-
completion: () => import("../completion-
|
|
30
|
-
upgrade: () => import("../upgrade-
|
|
31
|
-
"access-token": () => import("../access-token-
|
|
32
|
-
address: () => import("../address-
|
|
33
|
-
"address-suggestions": () => import("../address-suggestions-
|
|
34
|
-
"ai-agents": () => import("../ai-agents-
|
|
35
|
-
app: () => import("../app-
|
|
36
|
-
"audit-logs": () => import("../audit-logs-
|
|
37
|
-
automation: () => import("../automation-
|
|
38
|
-
billing: () => import("../billing-
|
|
39
|
-
"blueprint-manifest": () => import("../blueprint-manifest-
|
|
40
|
-
consent: () => import("../consent-
|
|
41
|
-
"customer-portal": () => import("../customer-portal-
|
|
42
|
-
dashboard: () => import("../dashboard-
|
|
43
|
-
"data-management": () => import("../data-management-
|
|
44
|
-
deduplication: () => import("../deduplication-
|
|
45
|
-
design: () => import("../design-
|
|
46
|
-
document: () => import("../document-
|
|
47
|
-
"email-settings": () => import("../email-settings-
|
|
48
|
-
"email-template": () => import("../email-template-
|
|
49
|
-
entity: () => import("../entity-
|
|
50
|
-
"entity-mapping": () => import("../entity-mapping-
|
|
51
|
-
environments: () => import("../environments-
|
|
52
|
-
"erp-integration": () => import("../erp-integration-
|
|
53
|
-
"event-catalog": () => import("../event-catalog-
|
|
54
|
-
file: () => import("../file-
|
|
55
|
-
iban: () => import("../iban-
|
|
56
|
-
journey: () => import("../journey-
|
|
57
|
-
kanban: () => import("../kanban-
|
|
58
|
-
message: () => import("../message-
|
|
59
|
-
metering: () => import("../metering-
|
|
60
|
-
notes: () => import("../notes-
|
|
61
|
-
notification: () => import("../notification-
|
|
62
|
-
organization: () => import("../organization-
|
|
63
|
-
"partner-directory": () => import("../partner-directory-
|
|
64
|
-
permissions: () => import("../permissions-
|
|
65
|
-
pricing: () => import("../pricing-
|
|
66
|
-
"pricing-tier": () => import("../pricing-tier-
|
|
67
|
-
purpose: () => import("../purpose-
|
|
68
|
-
sandbox: () => import("../sandbox-
|
|
69
|
-
submission: () => import("../submission-
|
|
70
|
-
targeting: () => import("../targeting-
|
|
71
|
-
"template-variables": () => import("../template-variables-
|
|
72
|
-
user: () => import("../user-
|
|
73
|
-
"validation-rules": () => import("../validation-rules-
|
|
74
|
-
webhooks: () => import("../webhooks-
|
|
75
|
-
workflow: () => import("../workflow-
|
|
76
|
-
"workflow-definition": () => import("../workflow-definition-
|
|
27
|
+
auth: () => import("../auth-AAF6Z5WZ.js").then((m) => m.default),
|
|
28
|
+
profile: () => import("../profile-EK4HSQ57.js").then((m) => m.default),
|
|
29
|
+
completion: () => import("../completion-EKFXGPNK.js").then((m) => m.default),
|
|
30
|
+
upgrade: () => import("../upgrade-KIOCOPB7.js").then((m) => m.default),
|
|
31
|
+
"access-token": () => import("../access-token-BV7OAX75.js").then((m) => m.default),
|
|
32
|
+
address: () => import("../address-4Z6WADBJ.js").then((m) => m.default),
|
|
33
|
+
"address-suggestions": () => import("../address-suggestions-7BXTJCZH.js").then((m) => m.default),
|
|
34
|
+
"ai-agents": () => import("../ai-agents-VB2WGMIZ.js").then((m) => m.default),
|
|
35
|
+
app: () => import("../app-DXDK7UZX.js").then((m) => m.default),
|
|
36
|
+
"audit-logs": () => import("../audit-logs-5ZEZNO5T.js").then((m) => m.default),
|
|
37
|
+
automation: () => import("../automation-V5CN2KUO.js").then((m) => m.default),
|
|
38
|
+
billing: () => import("../billing-FKPDTZ6G.js").then((m) => m.default),
|
|
39
|
+
"blueprint-manifest": () => import("../blueprint-manifest-2CINVMTI.js").then((m) => m.default),
|
|
40
|
+
consent: () => import("../consent-HZ7EVD4I.js").then((m) => m.default),
|
|
41
|
+
"customer-portal": () => import("../customer-portal-XHM7X235.js").then((m) => m.default),
|
|
42
|
+
dashboard: () => import("../dashboard-NVP6FMOH.js").then((m) => m.default),
|
|
43
|
+
"data-management": () => import("../data-management-JGDAGO75.js").then((m) => m.default),
|
|
44
|
+
deduplication: () => import("../deduplication-DTY4VICH.js").then((m) => m.default),
|
|
45
|
+
design: () => import("../design-72XM3PQR.js").then((m) => m.default),
|
|
46
|
+
document: () => import("../document-OH4T743T.js").then((m) => m.default),
|
|
47
|
+
"email-settings": () => import("../email-settings-BSU45CNC.js").then((m) => m.default),
|
|
48
|
+
"email-template": () => import("../email-template-VHUF3OYL.js").then((m) => m.default),
|
|
49
|
+
entity: () => import("../entity-RBMVRPDS.js").then((m) => m.default),
|
|
50
|
+
"entity-mapping": () => import("../entity-mapping-7QUMDAQO.js").then((m) => m.default),
|
|
51
|
+
environments: () => import("../environments-RM333MM3.js").then((m) => m.default),
|
|
52
|
+
"erp-integration": () => import("../erp-integration-RBW2CSPM.js").then((m) => m.default),
|
|
53
|
+
"event-catalog": () => import("../event-catalog-APQS5GOU.js").then((m) => m.default),
|
|
54
|
+
file: () => import("../file-SU2T5RF6.js").then((m) => m.default),
|
|
55
|
+
iban: () => import("../iban-XRAJ3QJA.js").then((m) => m.default),
|
|
56
|
+
journey: () => import("../journey-SRK5MDRQ.js").then((m) => m.default),
|
|
57
|
+
kanban: () => import("../kanban-2IDQXJ4R.js").then((m) => m.default),
|
|
58
|
+
message: () => import("../message-TV7TZI2Y.js").then((m) => m.default),
|
|
59
|
+
metering: () => import("../metering-LHBESUA2.js").then((m) => m.default),
|
|
60
|
+
notes: () => import("../notes-3KTVUFIQ.js").then((m) => m.default),
|
|
61
|
+
notification: () => import("../notification-6FHJXYCH.js").then((m) => m.default),
|
|
62
|
+
organization: () => import("../organization-MBRTAROH.js").then((m) => m.default),
|
|
63
|
+
"partner-directory": () => import("../partner-directory-NUWSXNVD.js").then((m) => m.default),
|
|
64
|
+
permissions: () => import("../permissions-CD2OPGOC.js").then((m) => m.default),
|
|
65
|
+
pricing: () => import("../pricing-6C6LWKER.js").then((m) => m.default),
|
|
66
|
+
"pricing-tier": () => import("../pricing-tier-U67UYOP5.js").then((m) => m.default),
|
|
67
|
+
purpose: () => import("../purpose-3UTD6PG2.js").then((m) => m.default),
|
|
68
|
+
sandbox: () => import("../sandbox-AU5TUO7G.js").then((m) => m.default),
|
|
69
|
+
submission: () => import("../submission-LXDAZTAB.js").then((m) => m.default),
|
|
70
|
+
targeting: () => import("../targeting-YDU2O744.js").then((m) => m.default),
|
|
71
|
+
"template-variables": () => import("../template-variables-MLSMLLYA.js").then((m) => m.default),
|
|
72
|
+
user: () => import("../user-WMSSXQHK.js").then((m) => m.default),
|
|
73
|
+
"validation-rules": () => import("../validation-rules-W7A4DMWK.js").then((m) => m.default),
|
|
74
|
+
webhooks: () => import("../webhooks-QSYAFFQ2.js").then((m) => m.default),
|
|
75
|
+
workflow: () => import("../workflow-KKAMUHYE.js").then((m) => m.default),
|
|
76
|
+
"workflow-definition": () => import("../workflow-definition-ECXHF425.js").then((m) => m.default)
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
|
|
80
80
|
// bin/epilot.ts
|
|
81
|
-
|
|
81
|
+
process.stdout.on("error", (err) => {
|
|
82
|
+
if (err.code === "EPIPE") process.exit(0);
|
|
83
|
+
throw err;
|
|
84
|
+
});
|
|
85
|
+
process.stderr.on("error", (err) => {
|
|
86
|
+
if (err.code === "EPIPE") process.exit(0);
|
|
87
|
+
throw err;
|
|
88
|
+
});
|
|
89
|
+
var VERSION = true ? "0.1.7" : (await null).default.version;
|
|
82
90
|
var args = process.argv.slice(2);
|
|
83
91
|
var completionsIdx = args.indexOf("--_completions");
|
|
84
92
|
if (completionsIdx >= 0) {
|
|
85
|
-
const { handleCompletions } = await import("../completion-
|
|
93
|
+
const { handleCompletions } = await import("../completion-EKFXGPNK.js");
|
|
86
94
|
handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
|
|
87
95
|
process.exit(0);
|
|
88
96
|
}
|
|
@@ -108,7 +116,7 @@ if (hasHelp) {
|
|
|
108
116
|
if (operationId) {
|
|
109
117
|
process.argv = [process.argv[0], process.argv[1], ...filteredArgs, "--_ophelp"];
|
|
110
118
|
} else {
|
|
111
|
-
process.argv = [process.argv[0], process.argv[1], ...filteredArgs];
|
|
119
|
+
process.argv = [process.argv[0], process.argv[1], ...filteredArgs, "--_apihelp"];
|
|
112
120
|
}
|
|
113
121
|
}
|
|
114
122
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EU2A2ORP.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-AMOFZJ5W.js";
|
|
8
|
+
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/blueprint-manifest.ts
|
|
11
11
|
import { defineCommand } from "citty";
|
|
@@ -25,7 +25,8 @@ var blueprint_manifest_default = defineCommand({
|
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
26
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
27
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
-
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
29
|
+
_apihelp: { type: "boolean", description: "Show API help", required: false }
|
|
29
30
|
},
|
|
30
31
|
run: ({ args, rawArgs }) => {
|
|
31
32
|
const positionalArgs = [];
|
|
@@ -42,6 +43,7 @@ var blueprint_manifest_default = defineCommand({
|
|
|
42
43
|
return callApi("blueprint-manifest", {
|
|
43
44
|
...args,
|
|
44
45
|
help: !!args._ophelp,
|
|
46
|
+
_apihelp: !!args._apihelp,
|
|
45
47
|
_args: positionalArgs
|
|
46
48
|
});
|
|
47
49
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/lib/utils.ts
|
|
4
|
+
import { spawnSync } from "child_process";
|
|
4
5
|
var isValidJson = (str) => {
|
|
5
6
|
try {
|
|
6
7
|
JSON.parse(str);
|
|
@@ -51,6 +52,29 @@ var methodColor = (method) => {
|
|
|
51
52
|
return "\x1B[37m";
|
|
52
53
|
}
|
|
53
54
|
};
|
|
55
|
+
var pager = (content) => {
|
|
56
|
+
if (!process.stdout.isTTY) {
|
|
57
|
+
process.stdout.write(content);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const lines = content.split("\n").length;
|
|
61
|
+
const rows = process.stdout.rows || 24;
|
|
62
|
+
if (lines <= rows) {
|
|
63
|
+
process.stdout.write(content);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
try {
|
|
67
|
+
const result = spawnSync("less", ["-R", "-F", "-X"], {
|
|
68
|
+
input: content,
|
|
69
|
+
stdio: ["pipe", "inherit", "inherit"]
|
|
70
|
+
});
|
|
71
|
+
if (result.status !== 0 && result.status !== null) {
|
|
72
|
+
process.stdout.write(content);
|
|
73
|
+
}
|
|
74
|
+
} catch {
|
|
75
|
+
process.stdout.write(content);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
54
78
|
var RESET = "\x1B[0m";
|
|
55
79
|
var BOLD = "\x1B[1m";
|
|
56
80
|
var DIM = "\x1B[2m";
|
|
@@ -58,17 +82,36 @@ var GREEN = "\x1B[32m";
|
|
|
58
82
|
var RED = "\x1B[31m";
|
|
59
83
|
var YELLOW = "\x1B[33m";
|
|
60
84
|
var CYAN = "\x1B[36m";
|
|
85
|
+
var WHITE = "\x1B[37m";
|
|
86
|
+
var BG_GREEN = "\x1B[42m";
|
|
87
|
+
var BG_RED = "\x1B[41m";
|
|
88
|
+
var MAGENTA = "\x1B[35m";
|
|
89
|
+
var highlightJson = (jsonStr) => jsonStr.replace(
|
|
90
|
+
/("(?:\\.|[^"\\])*")\s*(:)?|(\b(?:true|false|null)\b)|(-?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b)/g,
|
|
91
|
+
(match, str, colon, bool, num) => {
|
|
92
|
+
if (str && colon) return `${CYAN}${str}${RESET}${colon}`;
|
|
93
|
+
if (str) return `${GREEN}${str}${RESET}`;
|
|
94
|
+
if (bool) return `${MAGENTA}${bool}${RESET}`;
|
|
95
|
+
if (num) return `${YELLOW}${num}${RESET}`;
|
|
96
|
+
return match;
|
|
97
|
+
}
|
|
98
|
+
);
|
|
61
99
|
|
|
62
100
|
export {
|
|
63
101
|
isValidJson,
|
|
64
102
|
parseKeyValue,
|
|
65
103
|
parseParamValue,
|
|
66
104
|
methodColor,
|
|
105
|
+
pager,
|
|
67
106
|
RESET,
|
|
68
107
|
BOLD,
|
|
69
108
|
DIM,
|
|
70
109
|
GREEN,
|
|
71
110
|
RED,
|
|
72
111
|
YELLOW,
|
|
73
|
-
CYAN
|
|
112
|
+
CYAN,
|
|
113
|
+
WHITE,
|
|
114
|
+
BG_GREEN,
|
|
115
|
+
BG_RED,
|
|
116
|
+
highlightJson
|
|
74
117
|
};
|