@epilot/cli 0.1.8 → 0.1.10
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 +31 -4
- package/definitions/journey.json +257 -12
- package/definitions/kanban.json +630 -78
- package/definitions/organization.json +580 -51
- package/dist/{access-token-ZDNEKP3G.js → access-token-PTTCRMGK.js} +1 -1
- package/dist/{address-2SW3VMN3.js → address-2FDPEPR6.js} +1 -1
- package/dist/{address-suggestions-26ZRCECN.js → address-suggestions-XBEK5DDQ.js} +1 -1
- package/dist/{ai-agents-PDOHJ7VB.js → ai-agents-ZY5BNVTN.js} +1 -1
- package/dist/{app-XJNMGPZO.js → app-IT5FWGUK.js} +1 -1
- package/dist/{audit-logs-L2OCFRGO.js → audit-logs-FB4TE4TI.js} +1 -1
- package/dist/{automation-UB7OFM4Q.js → automation-JE5LDKJM.js} +1 -1
- package/dist/{billing-ZXHTBUAP.js → billing-GOFCP5T3.js} +1 -1
- package/dist/bin/epilot.js +52 -52
- package/dist/{blueprint-manifest-RMKS5EQA.js → blueprint-manifest-WJIQKFYK.js} +1 -1
- package/dist/{chunk-PHXL66VA.js → chunk-MNSG22DM.js} +3 -2
- package/dist/{chunk-HWUVFZIB.js → chunk-P5IZZW4Y.js} +11 -7
- package/dist/{completion-EKFXGPNK.js → completion-HZNPHJI4.js} +1 -1
- package/dist/{consent-AQ2DKCDR.js → consent-DSMWWHUL.js} +1 -1
- package/dist/{customer-portal-CGP4ZX4R.js → customer-portal-IJYTJYUZ.js} +1 -1
- package/dist/{dashboard-IDWUGNZW.js → dashboard-DOAX6XDG.js} +1 -1
- package/dist/{data-management-U7ZRAGLQ.js → data-management-C4JPPUPD.js} +1 -1
- package/dist/{deduplication-QQUSPXAF.js → deduplication-7OGLZLAC.js} +1 -1
- package/dist/{design-PQ2FUC2D.js → design-3CAYTWFY.js} +1 -1
- package/dist/{document-Y76RC3MP.js → document-NT5JOJQV.js} +1 -1
- package/dist/{email-settings-XM3ADDAU.js → email-settings-2M3WJTQS.js} +1 -1
- package/dist/{email-template-72P5GBEO.js → email-template-F4PLBPPC.js} +1 -1
- package/dist/{entity-XHM54EGF.js → entity-32LKMZAU.js} +1 -1
- package/dist/{entity-mapping-L5QITA2E.js → entity-mapping-OBCZDYQJ.js} +1 -1
- package/dist/{environments-VW3SQQ6D.js → environments-H3TBCDQE.js} +1 -1
- package/dist/{erp-integration-XCFKHGOU.js → erp-integration-UW6H55EK.js} +1 -1
- package/dist/{event-catalog-XZ233C2K.js → event-catalog-NVAPTZ4M.js} +1 -1
- package/dist/{file-TYBZ6WUC.js → file-US2HR4SV.js} +1 -1
- package/dist/{iban-IEGS2B6M.js → iban-7QUCOULB.js} +1 -1
- package/dist/{journey-HY3MNAHS.js → journey-E5T4BZZX.js} +1 -1
- package/dist/{kanban-7RLHAPAB.js → kanban-7UHU5VE6.js} +1 -1
- package/dist/{message-K7E26IZC.js → message-7KY33RJE.js} +1 -1
- package/dist/{metering-2OGVZIBR.js → metering-P7BZGMY7.js} +1 -1
- package/dist/{notes-KQVLCMGP.js → notes-TNJ7FPA3.js} +1 -1
- package/dist/{notification-BFBWDPZV.js → notification-6KXEFVO5.js} +1 -1
- package/dist/{organization-LI7FM5BQ.js → organization-FF4Y3PBO.js} +1 -1
- package/dist/{partner-directory-XPAISFGT.js → partner-directory-VH2SBAS2.js} +1 -1
- package/dist/{permissions-R5A4XMTY.js → permissions-KENZ4HNY.js} +1 -1
- package/dist/{pricing-Y4T6VKYN.js → pricing-P6QZ77VJ.js} +1 -1
- package/dist/{pricing-tier-HWKSYSVR.js → pricing-tier-2IRJMTM6.js} +1 -1
- package/dist/{purpose-5AUHF3IO.js → purpose-IHROR6LQ.js} +1 -1
- package/dist/{sandbox-QSGFCXMZ.js → sandbox-62XQPOU6.js} +1 -1
- package/dist/{submission-Z73M4XKQ.js → submission-PUWGOYQB.js} +1 -1
- package/dist/{targeting-U5YIFO6Q.js → targeting-QB3DFYNI.js} +1 -1
- package/dist/{template-variables-AV4T4OL2.js → template-variables-IPKRUJ4E.js} +1 -1
- package/dist/{upgrade-2SY2XG5S.js → upgrade-TNDH4WGQ.js} +1 -1
- package/dist/{user-S7XP7EFG.js → user-2CP75TFC.js} +1 -1
- package/dist/{validation-rules-MJRLZCHT.js → validation-rules-GNI4EEG5.js} +1 -1
- package/dist/{webhooks-X2VR5SVC.js → webhooks-2OWUX7UL.js} +1 -1
- package/dist/{workflow-EGOFLIKI.js → workflow-WSLERVJI.js} +1 -1
- package/dist/{workflow-definition-65ZR33O5.js → workflow-definition-FP3WKHGG.js} +1 -1
- package/package.json +1 -1
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-MNSG22DM.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.10",
|
|
15
15
|
description: "CLI for epilot APIs"
|
|
16
16
|
},
|
|
17
17
|
args: {
|
|
@@ -27,54 +27,54 @@ 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-
|
|
32
|
-
"access-token": () => import("../access-token-
|
|
33
|
-
address: () => import("../address-
|
|
34
|
-
"address-suggestions": () => import("../address-suggestions-
|
|
35
|
-
"ai-agents": () => import("../ai-agents-
|
|
36
|
-
app: () => import("../app-
|
|
37
|
-
"audit-logs": () => import("../audit-logs-
|
|
38
|
-
automation: () => import("../automation-
|
|
39
|
-
billing: () => import("../billing-
|
|
40
|
-
"blueprint-manifest": () => import("../blueprint-manifest-
|
|
41
|
-
consent: () => import("../consent-
|
|
42
|
-
"customer-portal": () => import("../customer-portal-
|
|
43
|
-
dashboard: () => import("../dashboard-
|
|
44
|
-
"data-management": () => import("../data-management-
|
|
45
|
-
deduplication: () => import("../deduplication-
|
|
46
|
-
design: () => import("../design-
|
|
47
|
-
document: () => import("../document-
|
|
48
|
-
"email-settings": () => import("../email-settings-
|
|
49
|
-
"email-template": () => import("../email-template-
|
|
50
|
-
entity: () => import("../entity-
|
|
51
|
-
"entity-mapping": () => import("../entity-mapping-
|
|
52
|
-
environments: () => import("../environments-
|
|
53
|
-
"erp-integration": () => import("../erp-integration-
|
|
54
|
-
"event-catalog": () => import("../event-catalog-
|
|
55
|
-
file: () => import("../file-
|
|
56
|
-
iban: () => import("../iban-
|
|
57
|
-
journey: () => import("../journey-
|
|
58
|
-
kanban: () => import("../kanban-
|
|
59
|
-
message: () => import("../message-
|
|
60
|
-
metering: () => import("../metering-
|
|
61
|
-
notes: () => import("../notes-
|
|
62
|
-
notification: () => import("../notification-
|
|
63
|
-
organization: () => import("../organization-
|
|
64
|
-
"partner-directory": () => import("../partner-directory-
|
|
65
|
-
permissions: () => import("../permissions-
|
|
66
|
-
pricing: () => import("../pricing-
|
|
67
|
-
"pricing-tier": () => import("../pricing-tier-
|
|
68
|
-
purpose: () => import("../purpose-
|
|
69
|
-
sandbox: () => import("../sandbox-
|
|
70
|
-
submission: () => import("../submission-
|
|
71
|
-
targeting: () => import("../targeting-
|
|
72
|
-
"template-variables": () => import("../template-variables-
|
|
73
|
-
user: () => import("../user-
|
|
74
|
-
"validation-rules": () => import("../validation-rules-
|
|
75
|
-
webhooks: () => import("../webhooks-
|
|
76
|
-
workflow: () => import("../workflow-
|
|
77
|
-
"workflow-definition": () => import("../workflow-definition-
|
|
30
|
+
completion: () => import("../completion-HZNPHJI4.js").then((m) => m.default),
|
|
31
|
+
upgrade: () => import("../upgrade-TNDH4WGQ.js").then((m) => m.default),
|
|
32
|
+
"access-token": () => import("../access-token-PTTCRMGK.js").then((m) => m.default),
|
|
33
|
+
address: () => import("../address-2FDPEPR6.js").then((m) => m.default),
|
|
34
|
+
"address-suggestions": () => import("../address-suggestions-XBEK5DDQ.js").then((m) => m.default),
|
|
35
|
+
"ai-agents": () => import("../ai-agents-ZY5BNVTN.js").then((m) => m.default),
|
|
36
|
+
app: () => import("../app-IT5FWGUK.js").then((m) => m.default),
|
|
37
|
+
"audit-logs": () => import("../audit-logs-FB4TE4TI.js").then((m) => m.default),
|
|
38
|
+
automation: () => import("../automation-JE5LDKJM.js").then((m) => m.default),
|
|
39
|
+
billing: () => import("../billing-GOFCP5T3.js").then((m) => m.default),
|
|
40
|
+
"blueprint-manifest": () => import("../blueprint-manifest-WJIQKFYK.js").then((m) => m.default),
|
|
41
|
+
consent: () => import("../consent-DSMWWHUL.js").then((m) => m.default),
|
|
42
|
+
"customer-portal": () => import("../customer-portal-IJYTJYUZ.js").then((m) => m.default),
|
|
43
|
+
dashboard: () => import("../dashboard-DOAX6XDG.js").then((m) => m.default),
|
|
44
|
+
"data-management": () => import("../data-management-C4JPPUPD.js").then((m) => m.default),
|
|
45
|
+
deduplication: () => import("../deduplication-7OGLZLAC.js").then((m) => m.default),
|
|
46
|
+
design: () => import("../design-3CAYTWFY.js").then((m) => m.default),
|
|
47
|
+
document: () => import("../document-NT5JOJQV.js").then((m) => m.default),
|
|
48
|
+
"email-settings": () => import("../email-settings-2M3WJTQS.js").then((m) => m.default),
|
|
49
|
+
"email-template": () => import("../email-template-F4PLBPPC.js").then((m) => m.default),
|
|
50
|
+
entity: () => import("../entity-32LKMZAU.js").then((m) => m.default),
|
|
51
|
+
"entity-mapping": () => import("../entity-mapping-OBCZDYQJ.js").then((m) => m.default),
|
|
52
|
+
environments: () => import("../environments-H3TBCDQE.js").then((m) => m.default),
|
|
53
|
+
"erp-integration": () => import("../erp-integration-UW6H55EK.js").then((m) => m.default),
|
|
54
|
+
"event-catalog": () => import("../event-catalog-NVAPTZ4M.js").then((m) => m.default),
|
|
55
|
+
file: () => import("../file-US2HR4SV.js").then((m) => m.default),
|
|
56
|
+
iban: () => import("../iban-7QUCOULB.js").then((m) => m.default),
|
|
57
|
+
journey: () => import("../journey-E5T4BZZX.js").then((m) => m.default),
|
|
58
|
+
kanban: () => import("../kanban-7UHU5VE6.js").then((m) => m.default),
|
|
59
|
+
message: () => import("../message-7KY33RJE.js").then((m) => m.default),
|
|
60
|
+
metering: () => import("../metering-P7BZGMY7.js").then((m) => m.default),
|
|
61
|
+
notes: () => import("../notes-TNJ7FPA3.js").then((m) => m.default),
|
|
62
|
+
notification: () => import("../notification-6KXEFVO5.js").then((m) => m.default),
|
|
63
|
+
organization: () => import("../organization-FF4Y3PBO.js").then((m) => m.default),
|
|
64
|
+
"partner-directory": () => import("../partner-directory-VH2SBAS2.js").then((m) => m.default),
|
|
65
|
+
permissions: () => import("../permissions-KENZ4HNY.js").then((m) => m.default),
|
|
66
|
+
pricing: () => import("../pricing-P6QZ77VJ.js").then((m) => m.default),
|
|
67
|
+
"pricing-tier": () => import("../pricing-tier-2IRJMTM6.js").then((m) => m.default),
|
|
68
|
+
purpose: () => import("../purpose-IHROR6LQ.js").then((m) => m.default),
|
|
69
|
+
sandbox: () => import("../sandbox-62XQPOU6.js").then((m) => m.default),
|
|
70
|
+
submission: () => import("../submission-PUWGOYQB.js").then((m) => m.default),
|
|
71
|
+
targeting: () => import("../targeting-QB3DFYNI.js").then((m) => m.default),
|
|
72
|
+
"template-variables": () => import("../template-variables-IPKRUJ4E.js").then((m) => m.default),
|
|
73
|
+
user: () => import("../user-2CP75TFC.js").then((m) => m.default),
|
|
74
|
+
"validation-rules": () => import("../validation-rules-GNI4EEG5.js").then((m) => m.default),
|
|
75
|
+
webhooks: () => import("../webhooks-2OWUX7UL.js").then((m) => m.default),
|
|
76
|
+
workflow: () => import("../workflow-WSLERVJI.js").then((m) => m.default),
|
|
77
|
+
"workflow-definition": () => import("../workflow-definition-FP3WKHGG.js").then((m) => m.default)
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
|
|
@@ -87,11 +87,11 @@ process.stderr.on("error", (err) => {
|
|
|
87
87
|
if (err.code === "EPIPE") process.exit(0);
|
|
88
88
|
throw err;
|
|
89
89
|
});
|
|
90
|
-
var VERSION = true ? "0.1.
|
|
90
|
+
var VERSION = true ? "0.1.10" : (await null).default.version;
|
|
91
91
|
var args = process.argv.slice(2);
|
|
92
92
|
var completionsIdx = args.indexOf("--_completions");
|
|
93
93
|
if (completionsIdx >= 0) {
|
|
94
|
-
const { handleCompletions } = await import("../completion-
|
|
94
|
+
const { handleCompletions } = await import("../completion-HZNPHJI4.js");
|
|
95
95
|
handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
|
|
96
96
|
process.exit(0);
|
|
97
97
|
}
|
|
@@ -868,14 +868,15 @@ var API_LIST = [
|
|
|
868
868
|
kebabName: "organization",
|
|
869
869
|
title: "Organization API",
|
|
870
870
|
serverUrl: "https://organization-v2.sls.epilot.io",
|
|
871
|
-
operationCount:
|
|
871
|
+
operationCount: 7,
|
|
872
872
|
operationIds: [
|
|
873
873
|
"getCurrentOrganization",
|
|
874
874
|
"getOrganization",
|
|
875
875
|
"updateOrganization",
|
|
876
876
|
"getSettings",
|
|
877
877
|
"putSettingsValue",
|
|
878
|
-
"deleteSettingsValue"
|
|
878
|
+
"deleteSettingsValue",
|
|
879
|
+
"getFeatureSettings"
|
|
879
880
|
]
|
|
880
881
|
},
|
|
881
882
|
{
|
|
@@ -79,7 +79,7 @@ var loadDefinition = async (apiName, definitionOverride) => {
|
|
|
79
79
|
|
|
80
80
|
// src/lib/param-collector.ts
|
|
81
81
|
var getOperationParams = (spec, operationId) => {
|
|
82
|
-
for (const [
|
|
82
|
+
for (const [path, methods] of Object.entries(spec.paths ?? {})) {
|
|
83
83
|
if (!methods) continue;
|
|
84
84
|
const pathParams = methods.parameters || [];
|
|
85
85
|
for (const method of ["get", "post", "put", "patch", "delete", "head", "options"]) {
|
|
@@ -93,14 +93,18 @@ var getOperationParams = (spec, operationId) => {
|
|
|
93
93
|
if (idx >= 0) merged[idx] = p;
|
|
94
94
|
else merged.push(p);
|
|
95
95
|
}
|
|
96
|
-
return merged;
|
|
96
|
+
return { params: merged, pathTemplate: path };
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
return [];
|
|
99
|
+
return { params: [], pathTemplate: "" };
|
|
100
100
|
};
|
|
101
|
-
var collectParams = (params, paramFlags, positionalArgs) => {
|
|
101
|
+
var collectParams = (params, paramFlags, positionalArgs, pathTemplate) => {
|
|
102
102
|
const result = {};
|
|
103
|
-
|
|
103
|
+
let pathParams = params.filter((p) => p.in === "path");
|
|
104
|
+
if (pathTemplate) {
|
|
105
|
+
const templateOrder = [...pathTemplate.matchAll(/\{([^}]+)\}/g)].map((m) => m[1]);
|
|
106
|
+
pathParams = templateOrder.map((name) => pathParams.find((p) => p.name === name)).filter((p) => !!p);
|
|
107
|
+
}
|
|
104
108
|
for (let i = 0; i < positionalArgs.length && i < pathParams.length; i++) {
|
|
105
109
|
result[pathParams[i].name] = parseParamValue(positionalArgs[i]);
|
|
106
110
|
}
|
|
@@ -731,9 +735,9 @@ ${BOLD}Available operations:${RESET}
|
|
|
731
735
|
process.exit(1);
|
|
732
736
|
}
|
|
733
737
|
}
|
|
734
|
-
const opParams = getOperationParams(spec, operationId);
|
|
738
|
+
const { params: opParams, pathTemplate } = getOperationParams(spec, operationId);
|
|
735
739
|
const positionalArgs = args._args ?? [];
|
|
736
|
-
const collected = collectParams(opParams, args.param, positionalArgs);
|
|
740
|
+
const collected = collectParams(opParams, args.param, positionalArgs, pathTemplate);
|
|
737
741
|
if (args.guided && isInteractive({ interactive: args.interactive })) {
|
|
738
742
|
for (const param of opParams) {
|
|
739
743
|
if (!(param.name in collected)) {
|