@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.
Files changed (108) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +354 -0
  3. package/definitions/access-token.json +663 -0
  4. package/definitions/address-suggestions.json +582 -0
  5. package/definitions/address.json +578 -0
  6. package/definitions/ai-agents.json +1711 -0
  7. package/definitions/app.json +4443 -0
  8. package/definitions/audit-logs.json +305 -0
  9. package/definitions/automation.json +4815 -0
  10. package/definitions/billing.json +837 -0
  11. package/definitions/blueprint-manifest.json +3376 -0
  12. package/definitions/consent.json +344 -0
  13. package/definitions/customer-portal.json +15000 -0
  14. package/definitions/dashboard.json +484 -0
  15. package/definitions/data-management.json +962 -0
  16. package/definitions/deduplication.json +183 -0
  17. package/definitions/design.json +1423 -0
  18. package/definitions/document.json +758 -0
  19. package/definitions/email-settings.json +2627 -0
  20. package/definitions/email-template.json +1419 -0
  21. package/definitions/entity-mapping.json +1642 -0
  22. package/definitions/entity.json +10074 -0
  23. package/definitions/environments.json +363 -0
  24. package/definitions/erp-integration.json +5845 -0
  25. package/definitions/event-catalog.json +1051 -0
  26. package/definitions/file.json +2842 -0
  27. package/definitions/iban.json +132 -0
  28. package/definitions/journey.json +2341 -0
  29. package/definitions/kanban.json +929 -0
  30. package/definitions/message.json +2660 -0
  31. package/definitions/metering.json +2321 -0
  32. package/definitions/notes.json +1531 -0
  33. package/definitions/notification.json +1425 -0
  34. package/definitions/organization.json +629 -0
  35. package/definitions/partner-directory.json +1718 -0
  36. package/definitions/permissions.json +1480 -0
  37. package/definitions/pricing-tier.json +105 -0
  38. package/definitions/pricing.json +9884 -0
  39. package/definitions/purpose.json +524 -0
  40. package/definitions/sandbox.json +453 -0
  41. package/definitions/submission.json +313 -0
  42. package/definitions/targeting.json +1474 -0
  43. package/definitions/template-variables.json +1408 -0
  44. package/definitions/user.json +2408 -0
  45. package/definitions/validation-rules.json +1491 -0
  46. package/definitions/webhooks.json +1525 -0
  47. package/definitions/workflow-definition.json +3417 -0
  48. package/definitions/workflow.json +4106 -0
  49. package/dist/access-token-OG5AR7UB.js +51 -0
  50. package/dist/address-QUSMK5GV.js +51 -0
  51. package/dist/address-suggestions-E5SQNUS5.js +51 -0
  52. package/dist/ai-agents-PM42SJY3.js +51 -0
  53. package/dist/app-YTM3XAJL.js +51 -0
  54. package/dist/audit-logs-NXP7GFKX.js +51 -0
  55. package/dist/auth-CCBTXH5U.js +113 -0
  56. package/dist/auth-login-2ZIXM47J.js +137 -0
  57. package/dist/auth-token-OS4BEEVZ.js +43 -0
  58. package/dist/automation-TDJASTEV.js +51 -0
  59. package/dist/billing-M4MRBLEK.js +51 -0
  60. package/dist/bin/epilot.js +104 -0
  61. package/dist/blueprint-manifest-NQL7NRMV.js +51 -0
  62. package/dist/chunk-57PPARIW.js +715 -0
  63. package/dist/chunk-5WUPDZ5D.js +76 -0
  64. package/dist/chunk-IST42ZNL.js +78 -0
  65. package/dist/chunk-RC3GCXCI.js +76 -0
  66. package/dist/chunk-TKZLQD2B.js +72 -0
  67. package/dist/chunk-UJ6TU34M.js +56 -0
  68. package/dist/completion-GRQM2FJQ.js +168 -0
  69. package/dist/consent-KQ7MJAS6.js +51 -0
  70. package/dist/customer-portal-VUVSKWAQ.js +51 -0
  71. package/dist/dashboard-GVR4XNGR.js +51 -0
  72. package/dist/data-management-2RD3DLOS.js +51 -0
  73. package/dist/deduplication-PY77EINR.js +51 -0
  74. package/dist/design-M4FP2K5R.js +51 -0
  75. package/dist/document-P4QA7LEZ.js +51 -0
  76. package/dist/email-settings-7HGGRCCM.js +51 -0
  77. package/dist/email-template-3HXQI4CH.js +51 -0
  78. package/dist/entity-XUESZBPJ.js +51 -0
  79. package/dist/entity-mapping-JBKWWBH2.js +51 -0
  80. package/dist/environments-KKOS7ONY.js +51 -0
  81. package/dist/erp-integration-YTOWHCAW.js +51 -0
  82. package/dist/event-catalog-UKLZUGC4.js +51 -0
  83. package/dist/file-IFZNZ547.js +51 -0
  84. package/dist/iban-X2IW2NWU.js +51 -0
  85. package/dist/interactive-46ICLQKL.js +16 -0
  86. package/dist/journey-JU6X2KMX.js +51 -0
  87. package/dist/kanban-VHUU44PM.js +51 -0
  88. package/dist/message-AOUWJ4YX.js +51 -0
  89. package/dist/metering-RDS3XBD5.js +51 -0
  90. package/dist/notes-WE2UC75B.js +51 -0
  91. package/dist/notification-FKFNBHYZ.js +51 -0
  92. package/dist/organization-LMNFF6BX.js +51 -0
  93. package/dist/partner-directory-IIZVQDXJ.js +51 -0
  94. package/dist/permissions-AYCMVM7Y.js +51 -0
  95. package/dist/pricing-PS26FWBS.js +51 -0
  96. package/dist/pricing-tier-FBXWQ6T3.js +51 -0
  97. package/dist/profile-5Q5YARG7.js +135 -0
  98. package/dist/purpose-HE4E4SVU.js +51 -0
  99. package/dist/sandbox-Z7BU4UAD.js +51 -0
  100. package/dist/submission-MWVDF2ZB.js +51 -0
  101. package/dist/targeting-7NM5GDJ6.js +51 -0
  102. package/dist/template-variables-AJAR7PAV.js +51 -0
  103. package/dist/user-A26XQXG3.js +51 -0
  104. package/dist/validation-rules-VZTISEG2.js +51 -0
  105. package/dist/webhooks-RXH67WZ3.js +51 -0
  106. package/dist/workflow-G4FUUGZQ.js +51 -0
  107. package/dist/workflow-definition-LJYLMMGD.js +51 -0
  108. 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/billing.ts
11
+ import { defineCommand } from "citty";
12
+ var billing_default = defineCommand({
13
+ meta: { name: "billing", description: "Billing 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("billing", {
43
+ ...args,
44
+ help: !!args._ophelp,
45
+ _args: positionalArgs
46
+ });
47
+ }
48
+ });
49
+ export {
50
+ billing_default as default
51
+ };
@@ -0,0 +1,104 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ API_LIST
4
+ } from "../chunk-UJ6TU34M.js";
5
+
6
+ // bin/epilot.ts
7
+ import { runMain } from "citty";
8
+
9
+ // src/index.ts
10
+ import { defineCommand } from "citty";
11
+ var main = defineCommand({
12
+ meta: {
13
+ name: "epilot",
14
+ version: "0.1.0",
15
+ description: "CLI for epilot APIs"
16
+ },
17
+ args: {
18
+ token: { type: "string", alias: "t", description: "Bearer token" },
19
+ profile: { type: "string", description: "Use a named profile (or EPILOT_PROFILE env)" },
20
+ server: { type: "string", alias: "s", description: "Override server base URL" },
21
+ json: { type: "boolean", description: "Output raw JSON" },
22
+ verbose: { type: "boolean", alias: "v", description: "Verbose output" },
23
+ interactive: { type: "boolean", default: true, description: "Interactive mode" },
24
+ jsonata: { type: "string", description: "JSONata expression" }
25
+ },
26
+ subCommands: {
27
+ auth: () => import("../auth-CCBTXH5U.js").then((m) => m.default),
28
+ profile: () => import("../profile-5Q5YARG7.js").then((m) => m.default),
29
+ completion: () => import("../completion-GRQM2FJQ.js").then((m) => m.default),
30
+ "access-token": () => import("../access-token-OG5AR7UB.js").then((m) => m.default),
31
+ "address": () => import("../address-QUSMK5GV.js").then((m) => m.default),
32
+ "address-suggestions": () => import("../address-suggestions-E5SQNUS5.js").then((m) => m.default),
33
+ "ai-agents": () => import("../ai-agents-PM42SJY3.js").then((m) => m.default),
34
+ "app": () => import("../app-YTM3XAJL.js").then((m) => m.default),
35
+ "audit-logs": () => import("../audit-logs-NXP7GFKX.js").then((m) => m.default),
36
+ "automation": () => import("../automation-TDJASTEV.js").then((m) => m.default),
37
+ "billing": () => import("../billing-M4MRBLEK.js").then((m) => m.default),
38
+ "blueprint-manifest": () => import("../blueprint-manifest-NQL7NRMV.js").then((m) => m.default),
39
+ "consent": () => import("../consent-KQ7MJAS6.js").then((m) => m.default),
40
+ "customer-portal": () => import("../customer-portal-VUVSKWAQ.js").then((m) => m.default),
41
+ "dashboard": () => import("../dashboard-GVR4XNGR.js").then((m) => m.default),
42
+ "data-management": () => import("../data-management-2RD3DLOS.js").then((m) => m.default),
43
+ "deduplication": () => import("../deduplication-PY77EINR.js").then((m) => m.default),
44
+ "design": () => import("../design-M4FP2K5R.js").then((m) => m.default),
45
+ "document": () => import("../document-P4QA7LEZ.js").then((m) => m.default),
46
+ "email-settings": () => import("../email-settings-7HGGRCCM.js").then((m) => m.default),
47
+ "email-template": () => import("../email-template-3HXQI4CH.js").then((m) => m.default),
48
+ "entity": () => import("../entity-XUESZBPJ.js").then((m) => m.default),
49
+ "entity-mapping": () => import("../entity-mapping-JBKWWBH2.js").then((m) => m.default),
50
+ "environments": () => import("../environments-KKOS7ONY.js").then((m) => m.default),
51
+ "erp-integration": () => import("../erp-integration-YTOWHCAW.js").then((m) => m.default),
52
+ "event-catalog": () => import("../event-catalog-UKLZUGC4.js").then((m) => m.default),
53
+ "file": () => import("../file-IFZNZ547.js").then((m) => m.default),
54
+ "iban": () => import("../iban-X2IW2NWU.js").then((m) => m.default),
55
+ "journey": () => import("../journey-JU6X2KMX.js").then((m) => m.default),
56
+ "kanban": () => import("../kanban-VHUU44PM.js").then((m) => m.default),
57
+ "message": () => import("../message-AOUWJ4YX.js").then((m) => m.default),
58
+ "metering": () => import("../metering-RDS3XBD5.js").then((m) => m.default),
59
+ "notes": () => import("../notes-WE2UC75B.js").then((m) => m.default),
60
+ "notification": () => import("../notification-FKFNBHYZ.js").then((m) => m.default),
61
+ "organization": () => import("../organization-LMNFF6BX.js").then((m) => m.default),
62
+ "partner-directory": () => import("../partner-directory-IIZVQDXJ.js").then((m) => m.default),
63
+ "permissions": () => import("../permissions-AYCMVM7Y.js").then((m) => m.default),
64
+ "pricing": () => import("../pricing-PS26FWBS.js").then((m) => m.default),
65
+ "pricing-tier": () => import("../pricing-tier-FBXWQ6T3.js").then((m) => m.default),
66
+ "purpose": () => import("../purpose-HE4E4SVU.js").then((m) => m.default),
67
+ "sandbox": () => import("../sandbox-Z7BU4UAD.js").then((m) => m.default),
68
+ "submission": () => import("../submission-MWVDF2ZB.js").then((m) => m.default),
69
+ "targeting": () => import("../targeting-7NM5GDJ6.js").then((m) => m.default),
70
+ "template-variables": () => import("../template-variables-AJAR7PAV.js").then((m) => m.default),
71
+ "user": () => import("../user-A26XQXG3.js").then((m) => m.default),
72
+ "validation-rules": () => import("../validation-rules-VZTISEG2.js").then((m) => m.default),
73
+ "webhooks": () => import("../webhooks-RXH67WZ3.js").then((m) => m.default),
74
+ "workflow": () => import("../workflow-G4FUUGZQ.js").then((m) => m.default),
75
+ "workflow-definition": () => import("../workflow-definition-LJYLMMGD.js").then((m) => m.default)
76
+ }
77
+ });
78
+
79
+ // bin/epilot.ts
80
+ var args = process.argv.slice(2);
81
+ var completionsIdx = args.indexOf("--_completions");
82
+ if (completionsIdx >= 0) {
83
+ const { handleCompletions } = await import("../completion-GRQM2FJQ.js");
84
+ handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
85
+ process.exit(0);
86
+ }
87
+ var hasHelp = args.includes("--help") || args.includes("-h");
88
+ if (hasHelp && args.length >= 2) {
89
+ const apiArg = args.find((a) => !a.startsWith("-"));
90
+ const isApi = apiArg && API_LIST.some((api) => api.kebabName === apiArg);
91
+ if (isApi) {
92
+ const positionals = args.filter((a) => !a.startsWith("-"));
93
+ const operationId = positionals[1];
94
+ if (operationId) {
95
+ process.argv = [
96
+ process.argv[0],
97
+ process.argv[1],
98
+ ...args.filter((a) => a !== "--help" && a !== "-h"),
99
+ "--_ophelp"
100
+ ];
101
+ }
102
+ }
103
+ }
104
+ runMain(main);
@@ -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/blueprint-manifest.ts
11
+ import { defineCommand } from "citty";
12
+ var blueprint_manifest_default = defineCommand({
13
+ meta: { name: "blueprint-manifest", description: "Blueprint Manifest 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("blueprint-manifest", {
43
+ ...args,
44
+ help: !!args._ophelp,
45
+ _args: positionalArgs
46
+ });
47
+ }
48
+ });
49
+ export {
50
+ blueprint_manifest_default as default
51
+ };