@epilot/cli 0.1.0
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/LICENSE +21 -0
- package/README.md +354 -0
- package/definitions/access-token.json +663 -0
- package/definitions/address-suggestions.json +582 -0
- package/definitions/address.json +578 -0
- package/definitions/ai-agents.json +1711 -0
- package/definitions/app.json +4443 -0
- package/definitions/audit-logs.json +305 -0
- package/definitions/automation.json +4815 -0
- package/definitions/billing.json +837 -0
- package/definitions/blueprint-manifest.json +3376 -0
- package/definitions/consent.json +344 -0
- package/definitions/customer-portal.json +15000 -0
- package/definitions/dashboard.json +484 -0
- package/definitions/data-management.json +962 -0
- package/definitions/deduplication.json +183 -0
- package/definitions/design.json +1423 -0
- package/definitions/document.json +758 -0
- package/definitions/email-settings.json +2627 -0
- package/definitions/email-template.json +1419 -0
- package/definitions/entity-mapping.json +1642 -0
- package/definitions/entity.json +10074 -0
- package/definitions/environments.json +363 -0
- package/definitions/erp-integration.json +5845 -0
- package/definitions/event-catalog.json +1051 -0
- package/definitions/file.json +2842 -0
- package/definitions/iban.json +132 -0
- package/definitions/journey.json +2341 -0
- package/definitions/kanban.json +929 -0
- package/definitions/message.json +2660 -0
- package/definitions/metering.json +2321 -0
- package/definitions/notes.json +1531 -0
- package/definitions/notification.json +1425 -0
- package/definitions/organization.json +629 -0
- package/definitions/partner-directory.json +1718 -0
- package/definitions/permissions.json +1480 -0
- package/definitions/pricing-tier.json +105 -0
- package/definitions/pricing.json +9884 -0
- package/definitions/purpose.json +524 -0
- package/definitions/sandbox.json +453 -0
- package/definitions/submission.json +313 -0
- package/definitions/targeting.json +1474 -0
- package/definitions/template-variables.json +1408 -0
- package/definitions/user.json +2408 -0
- package/definitions/validation-rules.json +1491 -0
- package/definitions/webhooks.json +1525 -0
- package/definitions/workflow-definition.json +3417 -0
- package/definitions/workflow.json +4106 -0
- package/dist/access-token-OG5AR7UB.js +51 -0
- package/dist/address-QUSMK5GV.js +51 -0
- package/dist/address-suggestions-E5SQNUS5.js +51 -0
- package/dist/ai-agents-PM42SJY3.js +51 -0
- package/dist/app-YTM3XAJL.js +51 -0
- package/dist/audit-logs-NXP7GFKX.js +51 -0
- package/dist/auth-CCBTXH5U.js +113 -0
- package/dist/auth-login-2ZIXM47J.js +137 -0
- package/dist/auth-token-OS4BEEVZ.js +43 -0
- package/dist/automation-TDJASTEV.js +51 -0
- package/dist/billing-M4MRBLEK.js +51 -0
- package/dist/bin/epilot.js +104 -0
- package/dist/blueprint-manifest-NQL7NRMV.js +51 -0
- package/dist/chunk-57PPARIW.js +715 -0
- package/dist/chunk-5WUPDZ5D.js +76 -0
- package/dist/chunk-IST42ZNL.js +78 -0
- package/dist/chunk-RC3GCXCI.js +76 -0
- package/dist/chunk-TKZLQD2B.js +72 -0
- package/dist/chunk-UJ6TU34M.js +56 -0
- package/dist/completion-GRQM2FJQ.js +168 -0
- package/dist/consent-KQ7MJAS6.js +51 -0
- package/dist/customer-portal-VUVSKWAQ.js +51 -0
- package/dist/dashboard-GVR4XNGR.js +51 -0
- package/dist/data-management-2RD3DLOS.js +51 -0
- package/dist/deduplication-PY77EINR.js +51 -0
- package/dist/design-M4FP2K5R.js +51 -0
- package/dist/document-P4QA7LEZ.js +51 -0
- package/dist/email-settings-7HGGRCCM.js +51 -0
- package/dist/email-template-3HXQI4CH.js +51 -0
- package/dist/entity-XUESZBPJ.js +51 -0
- package/dist/entity-mapping-JBKWWBH2.js +51 -0
- package/dist/environments-KKOS7ONY.js +51 -0
- package/dist/erp-integration-YTOWHCAW.js +51 -0
- package/dist/event-catalog-UKLZUGC4.js +51 -0
- package/dist/file-IFZNZ547.js +51 -0
- package/dist/iban-X2IW2NWU.js +51 -0
- package/dist/interactive-46ICLQKL.js +16 -0
- package/dist/journey-JU6X2KMX.js +51 -0
- package/dist/kanban-VHUU44PM.js +51 -0
- package/dist/message-AOUWJ4YX.js +51 -0
- package/dist/metering-RDS3XBD5.js +51 -0
- package/dist/notes-WE2UC75B.js +51 -0
- package/dist/notification-FKFNBHYZ.js +51 -0
- package/dist/organization-LMNFF6BX.js +51 -0
- package/dist/partner-directory-IIZVQDXJ.js +51 -0
- package/dist/permissions-AYCMVM7Y.js +51 -0
- package/dist/pricing-PS26FWBS.js +51 -0
- package/dist/pricing-tier-FBXWQ6T3.js +51 -0
- package/dist/profile-5Q5YARG7.js +135 -0
- package/dist/purpose-HE4E4SVU.js +51 -0
- package/dist/sandbox-Z7BU4UAD.js +51 -0
- package/dist/submission-MWVDF2ZB.js +51 -0
- package/dist/targeting-7NM5GDJ6.js +51 -0
- package/dist/template-variables-AJAR7PAV.js +51 -0
- package/dist/user-A26XQXG3.js +51 -0
- package/dist/validation-rules-VZTISEG2.js +51 -0
- package/dist/webhooks-RXH67WZ3.js +51 -0
- package/dist/workflow-G4FUUGZQ.js +51 -0
- package/dist/workflow-definition-LJYLMMGD.js +51 -0
- package/package.json +62 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
callApi
|
|
4
|
+
} from "./chunk-57PPARIW.js";
|
|
5
|
+
import "./chunk-5WUPDZ5D.js";
|
|
6
|
+
import "./chunk-IST42ZNL.js";
|
|
7
|
+
import "./chunk-RC3GCXCI.js";
|
|
8
|
+
import "./chunk-TKZLQD2B.js";
|
|
9
|
+
|
|
10
|
+
// src/commands/apis/event-catalog.ts
|
|
11
|
+
import { defineCommand } from "citty";
|
|
12
|
+
var event_catalog_default = defineCommand({
|
|
13
|
+
meta: { name: "event-catalog", description: "Event Catalog 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
|
+
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
|
+
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
29
|
+
},
|
|
30
|
+
run: ({ args, rawArgs }) => {
|
|
31
|
+
const positionalArgs = [];
|
|
32
|
+
if (args.operation && rawArgs) {
|
|
33
|
+
const opIdx = rawArgs.indexOf(args.operation);
|
|
34
|
+
if (opIdx >= 0) {
|
|
35
|
+
for (let i = opIdx + 1; i < rawArgs.length; i++) {
|
|
36
|
+
const arg = rawArgs[i];
|
|
37
|
+
if (arg.startsWith("-")) break;
|
|
38
|
+
positionalArgs.push(arg);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return callApi("event-catalog", {
|
|
43
|
+
...args,
|
|
44
|
+
help: !!args._ophelp,
|
|
45
|
+
_args: positionalArgs
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
event_catalog_default as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
callApi
|
|
4
|
+
} from "./chunk-57PPARIW.js";
|
|
5
|
+
import "./chunk-5WUPDZ5D.js";
|
|
6
|
+
import "./chunk-IST42ZNL.js";
|
|
7
|
+
import "./chunk-RC3GCXCI.js";
|
|
8
|
+
import "./chunk-TKZLQD2B.js";
|
|
9
|
+
|
|
10
|
+
// src/commands/apis/file.ts
|
|
11
|
+
import { defineCommand } from "citty";
|
|
12
|
+
var file_default = defineCommand({
|
|
13
|
+
meta: { name: "file", description: "File 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
|
+
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
|
+
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
29
|
+
},
|
|
30
|
+
run: ({ args, rawArgs }) => {
|
|
31
|
+
const positionalArgs = [];
|
|
32
|
+
if (args.operation && rawArgs) {
|
|
33
|
+
const opIdx = rawArgs.indexOf(args.operation);
|
|
34
|
+
if (opIdx >= 0) {
|
|
35
|
+
for (let i = opIdx + 1; i < rawArgs.length; i++) {
|
|
36
|
+
const arg = rawArgs[i];
|
|
37
|
+
if (arg.startsWith("-")) break;
|
|
38
|
+
positionalArgs.push(arg);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return callApi("file", {
|
|
43
|
+
...args,
|
|
44
|
+
help: !!args._ophelp,
|
|
45
|
+
_args: positionalArgs
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
file_default as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
callApi
|
|
4
|
+
} from "./chunk-57PPARIW.js";
|
|
5
|
+
import "./chunk-5WUPDZ5D.js";
|
|
6
|
+
import "./chunk-IST42ZNL.js";
|
|
7
|
+
import "./chunk-RC3GCXCI.js";
|
|
8
|
+
import "./chunk-TKZLQD2B.js";
|
|
9
|
+
|
|
10
|
+
// src/commands/apis/iban.ts
|
|
11
|
+
import { defineCommand } from "citty";
|
|
12
|
+
var iban_default = defineCommand({
|
|
13
|
+
meta: { name: "iban", description: "Iban 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
|
+
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
|
+
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
29
|
+
},
|
|
30
|
+
run: ({ args, rawArgs }) => {
|
|
31
|
+
const positionalArgs = [];
|
|
32
|
+
if (args.operation && rawArgs) {
|
|
33
|
+
const opIdx = rawArgs.indexOf(args.operation);
|
|
34
|
+
if (opIdx >= 0) {
|
|
35
|
+
for (let i = opIdx + 1; i < rawArgs.length; i++) {
|
|
36
|
+
const arg = rawArgs[i];
|
|
37
|
+
if (arg.startsWith("-")) break;
|
|
38
|
+
positionalArgs.push(arg);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return callApi("iban", {
|
|
43
|
+
...args,
|
|
44
|
+
help: !!args._ophelp,
|
|
45
|
+
_args: positionalArgs
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
iban_default as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
isInteractive,
|
|
4
|
+
pickOperation,
|
|
5
|
+
printOperationsTable,
|
|
6
|
+
promptParam,
|
|
7
|
+
promptToken
|
|
8
|
+
} from "./chunk-RC3GCXCI.js";
|
|
9
|
+
import "./chunk-TKZLQD2B.js";
|
|
10
|
+
export {
|
|
11
|
+
isInteractive,
|
|
12
|
+
pickOperation,
|
|
13
|
+
printOperationsTable,
|
|
14
|
+
promptParam,
|
|
15
|
+
promptToken
|
|
16
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
callApi
|
|
4
|
+
} from "./chunk-57PPARIW.js";
|
|
5
|
+
import "./chunk-5WUPDZ5D.js";
|
|
6
|
+
import "./chunk-IST42ZNL.js";
|
|
7
|
+
import "./chunk-RC3GCXCI.js";
|
|
8
|
+
import "./chunk-TKZLQD2B.js";
|
|
9
|
+
|
|
10
|
+
// src/commands/apis/journey.ts
|
|
11
|
+
import { defineCommand } from "citty";
|
|
12
|
+
var journey_default = defineCommand({
|
|
13
|
+
meta: { name: "journey", description: "Journey 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
|
+
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
|
+
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
29
|
+
},
|
|
30
|
+
run: ({ args, rawArgs }) => {
|
|
31
|
+
const positionalArgs = [];
|
|
32
|
+
if (args.operation && rawArgs) {
|
|
33
|
+
const opIdx = rawArgs.indexOf(args.operation);
|
|
34
|
+
if (opIdx >= 0) {
|
|
35
|
+
for (let i = opIdx + 1; i < rawArgs.length; i++) {
|
|
36
|
+
const arg = rawArgs[i];
|
|
37
|
+
if (arg.startsWith("-")) break;
|
|
38
|
+
positionalArgs.push(arg);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return callApi("journey", {
|
|
43
|
+
...args,
|
|
44
|
+
help: !!args._ophelp,
|
|
45
|
+
_args: positionalArgs
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
journey_default as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
callApi
|
|
4
|
+
} from "./chunk-57PPARIW.js";
|
|
5
|
+
import "./chunk-5WUPDZ5D.js";
|
|
6
|
+
import "./chunk-IST42ZNL.js";
|
|
7
|
+
import "./chunk-RC3GCXCI.js";
|
|
8
|
+
import "./chunk-TKZLQD2B.js";
|
|
9
|
+
|
|
10
|
+
// src/commands/apis/kanban.ts
|
|
11
|
+
import { defineCommand } from "citty";
|
|
12
|
+
var kanban_default = defineCommand({
|
|
13
|
+
meta: { name: "kanban", description: "Kanban 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
|
+
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
|
+
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
29
|
+
},
|
|
30
|
+
run: ({ args, rawArgs }) => {
|
|
31
|
+
const positionalArgs = [];
|
|
32
|
+
if (args.operation && rawArgs) {
|
|
33
|
+
const opIdx = rawArgs.indexOf(args.operation);
|
|
34
|
+
if (opIdx >= 0) {
|
|
35
|
+
for (let i = opIdx + 1; i < rawArgs.length; i++) {
|
|
36
|
+
const arg = rawArgs[i];
|
|
37
|
+
if (arg.startsWith("-")) break;
|
|
38
|
+
positionalArgs.push(arg);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return callApi("kanban", {
|
|
43
|
+
...args,
|
|
44
|
+
help: !!args._ophelp,
|
|
45
|
+
_args: positionalArgs
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
kanban_default as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
callApi
|
|
4
|
+
} from "./chunk-57PPARIW.js";
|
|
5
|
+
import "./chunk-5WUPDZ5D.js";
|
|
6
|
+
import "./chunk-IST42ZNL.js";
|
|
7
|
+
import "./chunk-RC3GCXCI.js";
|
|
8
|
+
import "./chunk-TKZLQD2B.js";
|
|
9
|
+
|
|
10
|
+
// src/commands/apis/message.ts
|
|
11
|
+
import { defineCommand } from "citty";
|
|
12
|
+
var message_default = defineCommand({
|
|
13
|
+
meta: { name: "message", description: "Message 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
|
+
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
|
+
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
29
|
+
},
|
|
30
|
+
run: ({ args, rawArgs }) => {
|
|
31
|
+
const positionalArgs = [];
|
|
32
|
+
if (args.operation && rawArgs) {
|
|
33
|
+
const opIdx = rawArgs.indexOf(args.operation);
|
|
34
|
+
if (opIdx >= 0) {
|
|
35
|
+
for (let i = opIdx + 1; i < rawArgs.length; i++) {
|
|
36
|
+
const arg = rawArgs[i];
|
|
37
|
+
if (arg.startsWith("-")) break;
|
|
38
|
+
positionalArgs.push(arg);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return callApi("message", {
|
|
43
|
+
...args,
|
|
44
|
+
help: !!args._ophelp,
|
|
45
|
+
_args: positionalArgs
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
message_default as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
callApi
|
|
4
|
+
} from "./chunk-57PPARIW.js";
|
|
5
|
+
import "./chunk-5WUPDZ5D.js";
|
|
6
|
+
import "./chunk-IST42ZNL.js";
|
|
7
|
+
import "./chunk-RC3GCXCI.js";
|
|
8
|
+
import "./chunk-TKZLQD2B.js";
|
|
9
|
+
|
|
10
|
+
// src/commands/apis/metering.ts
|
|
11
|
+
import { defineCommand } from "citty";
|
|
12
|
+
var metering_default = defineCommand({
|
|
13
|
+
meta: { name: "metering", description: "Metering 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
|
+
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
|
+
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
29
|
+
},
|
|
30
|
+
run: ({ args, rawArgs }) => {
|
|
31
|
+
const positionalArgs = [];
|
|
32
|
+
if (args.operation && rawArgs) {
|
|
33
|
+
const opIdx = rawArgs.indexOf(args.operation);
|
|
34
|
+
if (opIdx >= 0) {
|
|
35
|
+
for (let i = opIdx + 1; i < rawArgs.length; i++) {
|
|
36
|
+
const arg = rawArgs[i];
|
|
37
|
+
if (arg.startsWith("-")) break;
|
|
38
|
+
positionalArgs.push(arg);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return callApi("metering", {
|
|
43
|
+
...args,
|
|
44
|
+
help: !!args._ophelp,
|
|
45
|
+
_args: positionalArgs
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
metering_default as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
callApi
|
|
4
|
+
} from "./chunk-57PPARIW.js";
|
|
5
|
+
import "./chunk-5WUPDZ5D.js";
|
|
6
|
+
import "./chunk-IST42ZNL.js";
|
|
7
|
+
import "./chunk-RC3GCXCI.js";
|
|
8
|
+
import "./chunk-TKZLQD2B.js";
|
|
9
|
+
|
|
10
|
+
// src/commands/apis/notes.ts
|
|
11
|
+
import { defineCommand } from "citty";
|
|
12
|
+
var notes_default = defineCommand({
|
|
13
|
+
meta: { name: "notes", description: "Notes 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
|
+
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
|
+
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
29
|
+
},
|
|
30
|
+
run: ({ args, rawArgs }) => {
|
|
31
|
+
const positionalArgs = [];
|
|
32
|
+
if (args.operation && rawArgs) {
|
|
33
|
+
const opIdx = rawArgs.indexOf(args.operation);
|
|
34
|
+
if (opIdx >= 0) {
|
|
35
|
+
for (let i = opIdx + 1; i < rawArgs.length; i++) {
|
|
36
|
+
const arg = rawArgs[i];
|
|
37
|
+
if (arg.startsWith("-")) break;
|
|
38
|
+
positionalArgs.push(arg);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return callApi("notes", {
|
|
43
|
+
...args,
|
|
44
|
+
help: !!args._ophelp,
|
|
45
|
+
_args: positionalArgs
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
notes_default as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
callApi
|
|
4
|
+
} from "./chunk-57PPARIW.js";
|
|
5
|
+
import "./chunk-5WUPDZ5D.js";
|
|
6
|
+
import "./chunk-IST42ZNL.js";
|
|
7
|
+
import "./chunk-RC3GCXCI.js";
|
|
8
|
+
import "./chunk-TKZLQD2B.js";
|
|
9
|
+
|
|
10
|
+
// src/commands/apis/notification.ts
|
|
11
|
+
import { defineCommand } from "citty";
|
|
12
|
+
var notification_default = defineCommand({
|
|
13
|
+
meta: { name: "notification", description: "Notification 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
|
+
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
|
+
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
29
|
+
},
|
|
30
|
+
run: ({ args, rawArgs }) => {
|
|
31
|
+
const positionalArgs = [];
|
|
32
|
+
if (args.operation && rawArgs) {
|
|
33
|
+
const opIdx = rawArgs.indexOf(args.operation);
|
|
34
|
+
if (opIdx >= 0) {
|
|
35
|
+
for (let i = opIdx + 1; i < rawArgs.length; i++) {
|
|
36
|
+
const arg = rawArgs[i];
|
|
37
|
+
if (arg.startsWith("-")) break;
|
|
38
|
+
positionalArgs.push(arg);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return callApi("notification", {
|
|
43
|
+
...args,
|
|
44
|
+
help: !!args._ophelp,
|
|
45
|
+
_args: positionalArgs
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
notification_default as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
callApi
|
|
4
|
+
} from "./chunk-57PPARIW.js";
|
|
5
|
+
import "./chunk-5WUPDZ5D.js";
|
|
6
|
+
import "./chunk-IST42ZNL.js";
|
|
7
|
+
import "./chunk-RC3GCXCI.js";
|
|
8
|
+
import "./chunk-TKZLQD2B.js";
|
|
9
|
+
|
|
10
|
+
// src/commands/apis/organization.ts
|
|
11
|
+
import { defineCommand } from "citty";
|
|
12
|
+
var organization_default = defineCommand({
|
|
13
|
+
meta: { name: "organization", description: "Organization 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
|
+
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
|
+
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
29
|
+
},
|
|
30
|
+
run: ({ args, rawArgs }) => {
|
|
31
|
+
const positionalArgs = [];
|
|
32
|
+
if (args.operation && rawArgs) {
|
|
33
|
+
const opIdx = rawArgs.indexOf(args.operation);
|
|
34
|
+
if (opIdx >= 0) {
|
|
35
|
+
for (let i = opIdx + 1; i < rawArgs.length; i++) {
|
|
36
|
+
const arg = rawArgs[i];
|
|
37
|
+
if (arg.startsWith("-")) break;
|
|
38
|
+
positionalArgs.push(arg);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return callApi("organization", {
|
|
43
|
+
...args,
|
|
44
|
+
help: !!args._ophelp,
|
|
45
|
+
_args: positionalArgs
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
organization_default as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
callApi
|
|
4
|
+
} from "./chunk-57PPARIW.js";
|
|
5
|
+
import "./chunk-5WUPDZ5D.js";
|
|
6
|
+
import "./chunk-IST42ZNL.js";
|
|
7
|
+
import "./chunk-RC3GCXCI.js";
|
|
8
|
+
import "./chunk-TKZLQD2B.js";
|
|
9
|
+
|
|
10
|
+
// src/commands/apis/partner-directory.ts
|
|
11
|
+
import { defineCommand } from "citty";
|
|
12
|
+
var partner_directory_default = defineCommand({
|
|
13
|
+
meta: { name: "partner-directory", description: "Partner 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
|
+
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
|
+
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
29
|
+
},
|
|
30
|
+
run: ({ args, rawArgs }) => {
|
|
31
|
+
const positionalArgs = [];
|
|
32
|
+
if (args.operation && rawArgs) {
|
|
33
|
+
const opIdx = rawArgs.indexOf(args.operation);
|
|
34
|
+
if (opIdx >= 0) {
|
|
35
|
+
for (let i = opIdx + 1; i < rawArgs.length; i++) {
|
|
36
|
+
const arg = rawArgs[i];
|
|
37
|
+
if (arg.startsWith("-")) break;
|
|
38
|
+
positionalArgs.push(arg);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return callApi("partner-directory", {
|
|
43
|
+
...args,
|
|
44
|
+
help: !!args._ophelp,
|
|
45
|
+
_args: positionalArgs
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
partner_directory_default as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
callApi
|
|
4
|
+
} from "./chunk-57PPARIW.js";
|
|
5
|
+
import "./chunk-5WUPDZ5D.js";
|
|
6
|
+
import "./chunk-IST42ZNL.js";
|
|
7
|
+
import "./chunk-RC3GCXCI.js";
|
|
8
|
+
import "./chunk-TKZLQD2B.js";
|
|
9
|
+
|
|
10
|
+
// src/commands/apis/permissions.ts
|
|
11
|
+
import { defineCommand } from "citty";
|
|
12
|
+
var permissions_default = defineCommand({
|
|
13
|
+
meta: { name: "permissions", description: "Permissions 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
|
+
interactive: { type: "boolean", description: "Interactive mode" },
|
|
27
|
+
jsonata: { type: "string", description: "JSONata expression to transform response" },
|
|
28
|
+
_ophelp: { type: "boolean", description: "Show operation help", required: false }
|
|
29
|
+
},
|
|
30
|
+
run: ({ args, rawArgs }) => {
|
|
31
|
+
const positionalArgs = [];
|
|
32
|
+
if (args.operation && rawArgs) {
|
|
33
|
+
const opIdx = rawArgs.indexOf(args.operation);
|
|
34
|
+
if (opIdx >= 0) {
|
|
35
|
+
for (let i = opIdx + 1; i < rawArgs.length; i++) {
|
|
36
|
+
const arg = rawArgs[i];
|
|
37
|
+
if (arg.startsWith("-")) break;
|
|
38
|
+
positionalArgs.push(arg);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return callApi("permissions", {
|
|
43
|
+
...args,
|
|
44
|
+
help: !!args._ophelp,
|
|
45
|
+
_args: positionalArgs
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
permissions_default as default
|
|
51
|
+
};
|