@epilot/cli 0.1.7 → 0.1.8
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 -1
- package/dist/{access-token-BV7OAX75.js → access-token-ZDNEKP3G.js} +3 -2
- package/dist/{address-4Z6WADBJ.js → address-2SW3VMN3.js} +3 -2
- package/dist/{address-suggestions-7BXTJCZH.js → address-suggestions-26ZRCECN.js} +3 -2
- package/dist/{ai-agents-VB2WGMIZ.js → ai-agents-PDOHJ7VB.js} +3 -2
- package/dist/{app-DXDK7UZX.js → app-XJNMGPZO.js} +3 -2
- package/dist/{audit-logs-5ZEZNO5T.js → audit-logs-L2OCFRGO.js} +3 -2
- package/dist/{automation-V5CN2KUO.js → automation-UB7OFM4Q.js} +3 -2
- package/dist/{billing-FKPDTZ6G.js → billing-ZXHTBUAP.js} +3 -2
- package/dist/bin/epilot.js +52 -49
- package/dist/{blueprint-manifest-2CINVMTI.js → blueprint-manifest-RMKS5EQA.js} +3 -2
- package/dist/{chunk-EU2A2ORP.js → chunk-HWUVFZIB.js} +18 -6
- package/dist/{chunk-AMOFZJ5W.js → chunk-IOLKUHUB.js} +2 -1
- package/dist/{consent-HZ7EVD4I.js → consent-AQ2DKCDR.js} +3 -2
- package/dist/{customer-portal-XHM7X235.js → customer-portal-CGP4ZX4R.js} +3 -2
- package/dist/{dashboard-NVP6FMOH.js → dashboard-IDWUGNZW.js} +3 -2
- package/dist/{data-management-JGDAGO75.js → data-management-U7ZRAGLQ.js} +3 -2
- package/dist/{deduplication-DTY4VICH.js → deduplication-QQUSPXAF.js} +3 -2
- package/dist/{design-72XM3PQR.js → design-PQ2FUC2D.js} +3 -2
- package/dist/{document-OH4T743T.js → document-Y76RC3MP.js} +3 -2
- package/dist/{email-settings-BSU45CNC.js → email-settings-XM3ADDAU.js} +3 -2
- package/dist/{email-template-VHUF3OYL.js → email-template-72P5GBEO.js} +3 -2
- package/dist/{entity-RBMVRPDS.js → entity-XHM54EGF.js} +3 -2
- package/dist/{entity-mapping-7QUMDAQO.js → entity-mapping-L5QITA2E.js} +3 -2
- package/dist/{environments-RM333MM3.js → environments-VW3SQQ6D.js} +3 -2
- package/dist/{erp-integration-RBW2CSPM.js → erp-integration-XCFKHGOU.js} +3 -2
- package/dist/{event-catalog-APQS5GOU.js → event-catalog-XZ233C2K.js} +3 -2
- package/dist/{file-SU2T5RF6.js → file-TYBZ6WUC.js} +3 -2
- package/dist/{iban-XRAJ3QJA.js → iban-IEGS2B6M.js} +3 -2
- package/dist/{interactive-CD3I3Q5X.js → interactive-LSY5SADM.js} +1 -1
- package/dist/{journey-SRK5MDRQ.js → journey-HY3MNAHS.js} +3 -2
- package/dist/{kanban-2IDQXJ4R.js → kanban-7RLHAPAB.js} +3 -2
- package/dist/{message-TV7TZI2Y.js → message-K7E26IZC.js} +3 -2
- package/dist/{metering-LHBESUA2.js → metering-2OGVZIBR.js} +3 -2
- package/dist/{notes-3KTVUFIQ.js → notes-KQVLCMGP.js} +3 -2
- package/dist/{notification-6FHJXYCH.js → notification-BFBWDPZV.js} +3 -2
- package/dist/{organization-MBRTAROH.js → organization-LI7FM5BQ.js} +3 -2
- package/dist/{partner-directory-NUWSXNVD.js → partner-directory-XPAISFGT.js} +3 -2
- package/dist/{permissions-CD2OPGOC.js → permissions-R5A4XMTY.js} +3 -2
- package/dist/{pricing-6C6LWKER.js → pricing-Y4T6VKYN.js} +3 -2
- package/dist/{pricing-tier-U67UYOP5.js → pricing-tier-HWKSYSVR.js} +3 -2
- package/dist/{purpose-3UTD6PG2.js → purpose-5AUHF3IO.js} +3 -2
- package/dist/{sandbox-AU5TUO7G.js → sandbox-QSGFCXMZ.js} +3 -2
- package/dist/{submission-LXDAZTAB.js → submission-Z73M4XKQ.js} +3 -2
- package/dist/{targeting-YDU2O744.js → targeting-U5YIFO6Q.js} +3 -2
- package/dist/{template-variables-MLSMLLYA.js → template-variables-AV4T4OL2.js} +3 -2
- package/dist/{upgrade-KIOCOPB7.js → upgrade-2SY2XG5S.js} +1 -1
- package/dist/{user-WMSSXQHK.js → user-S7XP7EFG.js} +3 -2
- package/dist/{validation-rules-W7A4DMWK.js → validation-rules-MJRLZCHT.js} +3 -2
- package/dist/{webhooks-QSYAFFQ2.js → webhooks-X2VR5SVC.js} +3 -2
- package/dist/{workflow-KKAMUHYE.js → workflow-EGOFLIKI.js} +3 -2
- package/dist/{workflow-definition-ECXHF425.js → workflow-definition-65ZR33O5.js} +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ npm install -g @epilot/cli
|
|
|
16
16
|
|
|
17
17
|
<!-- usage-help -->
|
|
18
18
|
```
|
|
19
|
-
epilot v0.1.
|
|
19
|
+
epilot v0.1.8 — CLI for epilot APIs
|
|
20
20
|
|
|
21
21
|
USAGE
|
|
22
22
|
epilot <api> <operationId> [params...] [flags]
|
|
@@ -30,6 +30,7 @@ FLAGS
|
|
|
30
30
|
--json Output raw JSON (no formatting)
|
|
31
31
|
-v, --verbose Verbose output (show request details)
|
|
32
32
|
--jsonata <expr> JSONata expression to transform response
|
|
33
|
+
--guided Prompt for all parameters interactively
|
|
33
34
|
--no-interactive Disable interactive prompts
|
|
34
35
|
|
|
35
36
|
PARAMETER FLAGS
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/access-token.ts
|
|
@@ -23,6 +23,7 @@ var access_token_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/address.ts
|
|
@@ -23,6 +23,7 @@ var address_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/address-suggestions.ts
|
|
@@ -23,6 +23,7 @@ var address_suggestions_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/ai-agents.ts
|
|
@@ -23,6 +23,7 @@ var ai_agents_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/app.ts
|
|
@@ -23,6 +23,7 @@ var app_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/audit-logs.ts
|
|
@@ -23,6 +23,7 @@ var audit_logs_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/automation.ts
|
|
@@ -23,6 +23,7 @@ var automation_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/billing.ts
|
|
@@ -23,6 +23,7 @@ var billing_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
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.8",
|
|
15
15
|
description: "CLI for epilot APIs"
|
|
16
16
|
},
|
|
17
17
|
args: {
|
|
@@ -20,6 +20,7 @@ var main = defineCommand({
|
|
|
20
20
|
server: { type: "string", alias: "s", description: "Override server base URL" },
|
|
21
21
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
22
22
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
23
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
23
24
|
interactive: { type: "boolean", default: true, description: "Interactive mode" },
|
|
24
25
|
jsonata: { type: "string", description: "JSONata expression" }
|
|
25
26
|
},
|
|
@@ -27,53 +28,53 @@ var main = defineCommand({
|
|
|
27
28
|
auth: () => import("../auth-AAF6Z5WZ.js").then((m) => m.default),
|
|
28
29
|
profile: () => import("../profile-EK4HSQ57.js").then((m) => m.default),
|
|
29
30
|
completion: () => import("../completion-EKFXGPNK.js").then((m) => m.default),
|
|
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-
|
|
31
|
+
upgrade: () => import("../upgrade-2SY2XG5S.js").then((m) => m.default),
|
|
32
|
+
"access-token": () => import("../access-token-ZDNEKP3G.js").then((m) => m.default),
|
|
33
|
+
address: () => import("../address-2SW3VMN3.js").then((m) => m.default),
|
|
34
|
+
"address-suggestions": () => import("../address-suggestions-26ZRCECN.js").then((m) => m.default),
|
|
35
|
+
"ai-agents": () => import("../ai-agents-PDOHJ7VB.js").then((m) => m.default),
|
|
36
|
+
app: () => import("../app-XJNMGPZO.js").then((m) => m.default),
|
|
37
|
+
"audit-logs": () => import("../audit-logs-L2OCFRGO.js").then((m) => m.default),
|
|
38
|
+
automation: () => import("../automation-UB7OFM4Q.js").then((m) => m.default),
|
|
39
|
+
billing: () => import("../billing-ZXHTBUAP.js").then((m) => m.default),
|
|
40
|
+
"blueprint-manifest": () => import("../blueprint-manifest-RMKS5EQA.js").then((m) => m.default),
|
|
41
|
+
consent: () => import("../consent-AQ2DKCDR.js").then((m) => m.default),
|
|
42
|
+
"customer-portal": () => import("../customer-portal-CGP4ZX4R.js").then((m) => m.default),
|
|
43
|
+
dashboard: () => import("../dashboard-IDWUGNZW.js").then((m) => m.default),
|
|
44
|
+
"data-management": () => import("../data-management-U7ZRAGLQ.js").then((m) => m.default),
|
|
45
|
+
deduplication: () => import("../deduplication-QQUSPXAF.js").then((m) => m.default),
|
|
46
|
+
design: () => import("../design-PQ2FUC2D.js").then((m) => m.default),
|
|
47
|
+
document: () => import("../document-Y76RC3MP.js").then((m) => m.default),
|
|
48
|
+
"email-settings": () => import("../email-settings-XM3ADDAU.js").then((m) => m.default),
|
|
49
|
+
"email-template": () => import("../email-template-72P5GBEO.js").then((m) => m.default),
|
|
50
|
+
entity: () => import("../entity-XHM54EGF.js").then((m) => m.default),
|
|
51
|
+
"entity-mapping": () => import("../entity-mapping-L5QITA2E.js").then((m) => m.default),
|
|
52
|
+
environments: () => import("../environments-VW3SQQ6D.js").then((m) => m.default),
|
|
53
|
+
"erp-integration": () => import("../erp-integration-XCFKHGOU.js").then((m) => m.default),
|
|
54
|
+
"event-catalog": () => import("../event-catalog-XZ233C2K.js").then((m) => m.default),
|
|
55
|
+
file: () => import("../file-TYBZ6WUC.js").then((m) => m.default),
|
|
56
|
+
iban: () => import("../iban-IEGS2B6M.js").then((m) => m.default),
|
|
57
|
+
journey: () => import("../journey-HY3MNAHS.js").then((m) => m.default),
|
|
58
|
+
kanban: () => import("../kanban-7RLHAPAB.js").then((m) => m.default),
|
|
59
|
+
message: () => import("../message-K7E26IZC.js").then((m) => m.default),
|
|
60
|
+
metering: () => import("../metering-2OGVZIBR.js").then((m) => m.default),
|
|
61
|
+
notes: () => import("../notes-KQVLCMGP.js").then((m) => m.default),
|
|
62
|
+
notification: () => import("../notification-BFBWDPZV.js").then((m) => m.default),
|
|
63
|
+
organization: () => import("../organization-LI7FM5BQ.js").then((m) => m.default),
|
|
64
|
+
"partner-directory": () => import("../partner-directory-XPAISFGT.js").then((m) => m.default),
|
|
65
|
+
permissions: () => import("../permissions-R5A4XMTY.js").then((m) => m.default),
|
|
66
|
+
pricing: () => import("../pricing-Y4T6VKYN.js").then((m) => m.default),
|
|
67
|
+
"pricing-tier": () => import("../pricing-tier-HWKSYSVR.js").then((m) => m.default),
|
|
68
|
+
purpose: () => import("../purpose-5AUHF3IO.js").then((m) => m.default),
|
|
69
|
+
sandbox: () => import("../sandbox-QSGFCXMZ.js").then((m) => m.default),
|
|
70
|
+
submission: () => import("../submission-Z73M4XKQ.js").then((m) => m.default),
|
|
71
|
+
targeting: () => import("../targeting-U5YIFO6Q.js").then((m) => m.default),
|
|
72
|
+
"template-variables": () => import("../template-variables-AV4T4OL2.js").then((m) => m.default),
|
|
73
|
+
user: () => import("../user-S7XP7EFG.js").then((m) => m.default),
|
|
74
|
+
"validation-rules": () => import("../validation-rules-MJRLZCHT.js").then((m) => m.default),
|
|
75
|
+
webhooks: () => import("../webhooks-X2VR5SVC.js").then((m) => m.default),
|
|
76
|
+
workflow: () => import("../workflow-EGOFLIKI.js").then((m) => m.default),
|
|
77
|
+
"workflow-definition": () => import("../workflow-definition-65ZR33O5.js").then((m) => m.default)
|
|
77
78
|
}
|
|
78
79
|
});
|
|
79
80
|
|
|
@@ -86,7 +87,7 @@ process.stderr.on("error", (err) => {
|
|
|
86
87
|
if (err.code === "EPIPE") process.exit(0);
|
|
87
88
|
throw err;
|
|
88
89
|
});
|
|
89
|
-
var VERSION = true ? "0.1.
|
|
90
|
+
var VERSION = true ? "0.1.8" : (await null).default.version;
|
|
90
91
|
var args = process.argv.slice(2);
|
|
91
92
|
var completionsIdx = args.indexOf("--_completions");
|
|
92
93
|
if (completionsIdx >= 0) {
|
|
@@ -156,6 +157,8 @@ function printRootHelp() {
|
|
|
156
157
|
w(` ${GREEN}-v, --verbose${R} Verbose output (show request details)
|
|
157
158
|
`);
|
|
158
159
|
w(` ${GREEN}--jsonata${R} <expr> JSONata expression to transform response
|
|
160
|
+
`);
|
|
161
|
+
w(` ${GREEN}--guided${R} Prompt for all parameters interactively
|
|
159
162
|
`);
|
|
160
163
|
w(` ${GREEN}--no-interactive${R} Disable interactive prompts
|
|
161
164
|
`);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/blueprint-manifest.ts
|
|
@@ -23,6 +23,7 @@ var blueprint_manifest_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
isInteractive,
|
|
11
11
|
pickOperation,
|
|
12
12
|
promptParam
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IOLKUHUB.js";
|
|
14
14
|
import {
|
|
15
15
|
BG_GREEN,
|
|
16
16
|
BG_RED,
|
|
@@ -536,6 +536,8 @@ ${BOLD}epilot ${apiName} ${operationId}${RESET}`);
|
|
|
536
536
|
w(` ${GREEN}--jsonata${RESET} <expr> JSONata expression to transform response
|
|
537
537
|
`);
|
|
538
538
|
w(` ${GREEN}--definition${RESET} <file> Override OpenAPI spec file/URL
|
|
539
|
+
`);
|
|
540
|
+
w(` ${GREEN}--guided${RESET} Prompt for all parameters interactively
|
|
539
541
|
`);
|
|
540
542
|
w(` ${GREEN}--no-interactive${RESET} Disable interactive prompts
|
|
541
543
|
`);
|
|
@@ -718,7 +720,7 @@ ${BOLD}Available operations:${RESET}
|
|
|
718
720
|
let token = resolveToken(args.token, args.profile);
|
|
719
721
|
if (!token) {
|
|
720
722
|
if (isInteractive({ interactive: args.interactive })) {
|
|
721
|
-
const { promptToken } = await import("./interactive-
|
|
723
|
+
const { promptToken } = await import("./interactive-LSY5SADM.js");
|
|
722
724
|
token = await promptToken();
|
|
723
725
|
}
|
|
724
726
|
if (!token) {
|
|
@@ -732,14 +734,23 @@ ${BOLD}Available operations:${RESET}
|
|
|
732
734
|
const opParams = getOperationParams(spec, operationId);
|
|
733
735
|
const positionalArgs = args._args ?? [];
|
|
734
736
|
const collected = collectParams(opParams, args.param, positionalArgs);
|
|
735
|
-
|
|
736
|
-
if (missing.length > 0 && isInteractive({ interactive: args.interactive })) {
|
|
737
|
+
if (args.guided && isInteractive({ interactive: args.interactive })) {
|
|
737
738
|
for (const param of opParams) {
|
|
738
|
-
if (
|
|
739
|
+
if (!(param.name in collected)) {
|
|
739
740
|
const value = await promptParam(param.name, param);
|
|
740
741
|
if (value) collected[param.name] = value;
|
|
741
742
|
}
|
|
742
743
|
}
|
|
744
|
+
} else {
|
|
745
|
+
const missing = getMissingRequired(opParams, collected);
|
|
746
|
+
if (missing.length > 0 && isInteractive({ interactive: args.interactive })) {
|
|
747
|
+
for (const param of opParams) {
|
|
748
|
+
if (param.required && !(param.name in collected)) {
|
|
749
|
+
const value = await promptParam(param.name, param);
|
|
750
|
+
if (value) collected[param.name] = value;
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
}
|
|
743
754
|
}
|
|
744
755
|
const stillMissing = getMissingRequired(opParams, collected);
|
|
745
756
|
if (stillMissing.length > 0) {
|
|
@@ -748,8 +759,9 @@ ${BOLD}Available operations:${RESET}
|
|
|
748
759
|
process.exit(1);
|
|
749
760
|
}
|
|
750
761
|
const { hasBody, isRequired } = getRequestBodyInfo(spec, operationId);
|
|
762
|
+
const forceBodyPrompt = args.guided && hasBody;
|
|
751
763
|
let bodyTemplate;
|
|
752
|
-
if (hasBody && isInteractive({ interactive: args.interactive })) {
|
|
764
|
+
if (hasBody && (forceBodyPrompt || isInteractive({ interactive: args.interactive }))) {
|
|
753
765
|
const bodySchema = getBodySchema(spec, operationId);
|
|
754
766
|
if (bodySchema) {
|
|
755
767
|
try {
|
|
@@ -31,8 +31,9 @@ var promptParam = async (name, param) => {
|
|
|
31
31
|
const { input } = await import("@inquirer/prompts");
|
|
32
32
|
const schema = param.schema;
|
|
33
33
|
const defaultValue = schema?.default != null ? String(schema.default) : void 0;
|
|
34
|
+
const hint = param.required ? "(required)" : "(optional, press Enter to skip)";
|
|
34
35
|
const result = await input({
|
|
35
|
-
message: `${name}${
|
|
36
|
+
message: `${name} ${hint}:`,
|
|
36
37
|
default: defaultValue,
|
|
37
38
|
validate: (value) => {
|
|
38
39
|
if (param.required && !value.trim()) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/consent.ts
|
|
@@ -23,6 +23,7 @@ var consent_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/customer-portal.ts
|
|
@@ -23,6 +23,7 @@ var customer_portal_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/dashboard.ts
|
|
@@ -23,6 +23,7 @@ var dashboard_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/data-management.ts
|
|
@@ -23,6 +23,7 @@ var data_management_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/deduplication.ts
|
|
@@ -23,6 +23,7 @@ var deduplication_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/design.ts
|
|
@@ -23,6 +23,7 @@ var design_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/document.ts
|
|
@@ -23,6 +23,7 @@ var document_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/email-settings.ts
|
|
@@ -23,6 +23,7 @@ var email_settings_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWUVFZIB.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/email-template.ts
|
|
@@ -23,6 +23,7 @@ var email_template_default = defineCommand({
|
|
|
23
23
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
24
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
25
25
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
26
|
+
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
26
27
|
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
28
|
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
29
|
_ophelp: { type: "boolean", description: "Show operation help", required: false },
|