@zuplo/cli 6.63.4 → 6.63.6

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 (64) hide show
  1. package/dist/cmds/mtls-certificates/create.js +8 -8
  2. package/dist/cmds/mtls-certificates/create.js.map +1 -1
  3. package/dist/cmds/mtls-certificates/disable.d.ts +9 -0
  4. package/dist/cmds/mtls-certificates/disable.d.ts.map +1 -0
  5. package/dist/cmds/mtls-certificates/disable.js +57 -0
  6. package/dist/cmds/mtls-certificates/disable.js.map +1 -0
  7. package/dist/cmds/mtls-certificates/index.d.ts.map +1 -1
  8. package/dist/cmds/mtls-certificates/index.js +2 -0
  9. package/dist/cmds/mtls-certificates/index.js.map +1 -1
  10. package/dist/cmds/mtls-certificates/update.js +8 -8
  11. package/dist/cmds/mtls-certificates/update.js.map +1 -1
  12. package/dist/cmds/open-api/overlay.js +1 -1
  13. package/dist/cmds/open-api/overlay.js.map +1 -1
  14. package/dist/common/open-api/constants.d.ts +13 -0
  15. package/dist/common/open-api/constants.d.ts.map +1 -0
  16. package/dist/common/open-api/constants.js +16 -0
  17. package/dist/common/open-api/constants.js.map +1 -0
  18. package/dist/common/open-api/index.d.ts +3 -0
  19. package/dist/common/open-api/index.d.ts.map +1 -0
  20. package/dist/common/open-api/index.js +3 -0
  21. package/dist/common/open-api/index.js.map +1 -0
  22. package/dist/common/open-api/validation.d.ts +297 -0
  23. package/dist/common/open-api/validation.d.ts.map +1 -0
  24. package/dist/common/open-api/validation.js +88 -0
  25. package/dist/common/open-api/validation.js.map +1 -0
  26. package/dist/deploy/handler.js +3 -2
  27. package/dist/deploy/handler.js.map +1 -1
  28. package/dist/mtls-certificates/create/handler.js +1 -1
  29. package/dist/mtls-certificates/create/handler.js.map +1 -1
  30. package/dist/mtls-certificates/describe/handler.js +3 -3
  31. package/dist/mtls-certificates/describe/handler.js.map +1 -1
  32. package/dist/mtls-certificates/disable/handler.d.ts +3 -0
  33. package/dist/mtls-certificates/disable/handler.d.ts.map +1 -0
  34. package/dist/mtls-certificates/disable/handler.js +32 -0
  35. package/dist/mtls-certificates/disable/handler.js.map +1 -0
  36. package/dist/mtls-certificates/list/handler.js +3 -3
  37. package/dist/mtls-certificates/list/handler.js.map +1 -1
  38. package/dist/mtls-certificates/models.d.ts +8 -2
  39. package/dist/mtls-certificates/models.d.ts.map +1 -1
  40. package/dist/mtls-certificates/models.js.map +1 -1
  41. package/dist/mtls-certificates/update/handler.js +2 -2
  42. package/dist/mtls-certificates/update/handler.js.map +1 -1
  43. package/dist/open-api/merge/merge-engine.d.ts +2 -5
  44. package/dist/open-api/merge/merge-engine.d.ts.map +1 -1
  45. package/dist/open-api/merge/merge-engine.js +2 -1
  46. package/dist/open-api/merge/merge-engine.js.map +1 -1
  47. package/dist/open-api/merge/utils.d.ts +0 -1
  48. package/dist/open-api/merge/utils.d.ts.map +1 -1
  49. package/dist/open-api/merge/utils.js +2 -11
  50. package/dist/open-api/merge/utils.js.map +1 -1
  51. package/dist/open-api/overlay/handler.d.ts.map +1 -1
  52. package/dist/open-api/overlay/handler.js +33 -33
  53. package/dist/open-api/overlay/handler.js.map +1 -1
  54. package/dist/open-api/overlay/overlay-engine.d.ts +20 -30
  55. package/dist/open-api/overlay/overlay-engine.d.ts.map +1 -1
  56. package/dist/open-api/overlay/overlay-engine.js +75 -46
  57. package/dist/open-api/overlay/overlay-engine.js.map +1 -1
  58. package/dist/open-api/overlay/overlay-engine.spec.js +109 -31
  59. package/dist/open-api/overlay/overlay-engine.spec.js.map +1 -1
  60. package/dist/source/migrate/dev-portal/handler.d.ts.map +1 -1
  61. package/dist/source/migrate/dev-portal/handler.js +48 -1
  62. package/dist/source/migrate/dev-portal/handler.js.map +1 -1
  63. package/dist/tsconfig.tsbuildinfo +1 -1
  64. package/package.json +6 -5
@@ -24,9 +24,9 @@ export default {
24
24
  type: "string",
25
25
  describe: "Path to the PEM-encoded private key file",
26
26
  })
27
- .option("environment", {
27
+ .option("environment-type", {
28
28
  type: "array",
29
- describe: "Environments where the certificate should be enabled (can be repeated: --environment development --environment production)",
29
+ describe: "Environment types where the certificate should be enabled (can be repeated: --environment-type development --environment-type production)",
30
30
  choices: ["development", "preview", "production"],
31
31
  })
32
32
  .option("api-key", {
@@ -42,18 +42,18 @@ export default {
42
42
  type: "string",
43
43
  describe: "The project name",
44
44
  })
45
- .demandOption(["name", "cert", "key", "environment"])
45
+ .demandOption(["name", "cert", "key", "environment-type"])
46
46
  .example([
47
47
  [
48
- "$0 mtls-certificates create --name my_cert --cert ./cert.pem --key ./key.pem --environment production",
49
- "Create an mTLS certificate enabled for the production environment",
48
+ "$0 mtls-certificate create --name my_cert --cert ./cert.pem --key ./key.pem --environment-type production",
49
+ "Create an mTLS certificate enabled for the production environment type",
50
50
  ],
51
51
  [
52
- "$0 mtls-certificates create --name dev_cert --cert ./cert.pem --key ./key.pem --environment development --environment preview",
53
- "Create an mTLS certificate enabled for multiple environments",
52
+ "$0 mtls-certificate create --name dev_cert --cert ./cert.pem --key ./key.pem --environment-type development --environment-type preview",
53
+ "Create an mTLS certificate enabled for multiple environment types",
54
54
  ],
55
55
  [
56
- "$0 mtls-certificates create --name my_cert --cert ./cert.pem --key ./key.pem --environment production --account my-account --project my-project",
56
+ "$0 mtls-certificate create --name my_cert --cert ./cert.pem --key ./key.pem --environment-type production --account my-account --project my-project",
57
57
  "Explicitly specify the account and project",
58
58
  ],
59
59
  ])
@@ -1 +1 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC1E,OAAO,WAAW,MAAM,wBAAwB,CAAC;AACjD,OA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gBACjJ,4CAA4C;aAC7C;SACF,CAAC;aACD,UAAU,CAAC;YACV,WAAW;YACX,YAAY;YACZ,SAAS;YACT,YAAY;YACZ,YAAY;YACZ,QAAQ;SACT,CAAC,CAAC;IACP,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,IAAa,EAAE,EAAE;QAC/B,MAAM,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,+BAA+B,EAAE,CAAC,CAAC;QACrE,MAAM,MAAM,CAAC,IAAuB,CAAC,CAAC;IACxC,CAAC;CACF,CAAC","sourcesContent":["import { Argv } from \"yargs\";\nimport { captureEvent } from \"../../common/analytics/lib.js\";\nimport { authenticate } from \"../../common/middleware/authentication.js\";\nimport { configure } from \"../../common/middleware/user-configuration.js\";\nimport { identify } from \"../../common/middleware/user-identification.js\";\nimport setBlocking from \"../../common/output.js\";\nimport { create } from \"../../mtls-certificates/create/handler.js\";\nimport { CreateArguments } from \"../../mtls-certificates/models.js\";\nimport { fetchAccount } from \"../../common/middleware/get-account-param.js\";\nimport { fetchProject } from \"../../common/middleware/get-project-param.js\";\n\nexport default {\n desc: \"Creates a new mTLS certificate for a project\",\n command: \"create\",\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .usage(\n \"$0 mtls-certificates create --name <name> --cert <file> --key <file> --environment <env> [options]\"\n )\n .option(\"name\", {\n type: \"string\",\n describe: \"The name of the certificate (alphanumeric with underscores)\",\n })\n .option(\"cert\", {\n type: \"string\",\n describe: \"Path to the PEM-encoded certificate file\",\n })\n .option(\"key\", {\n type: \"string\",\n describe: \"Path to the PEM-encoded private key file\",\n })\n .option(\"environment\", {\n type: \"array\",\n describe:\n \"Environments where the certificate should be enabled (can be repeated: --environment development --environment production)\",\n choices: [\"development\", \"preview\", \"production\"],\n })\n .option(\"api-key\", {\n type: \"string\",\n describe: \"The API Key from Zuplo\",\n envVar: \"API_KEY\",\n })\n .option(\"account\", {\n type: \"string\",\n describe: \"The account name\",\n })\n .option(\"project\", {\n type: \"string\",\n describe: \"The project name\",\n })\n .demandOption([\"name\", \"cert\", \"key\", \"environment\"])\n .example([\n [\n \"$0 mtls-certificates create --name my_cert --cert ./cert.pem --key ./key.pem --environment production\",\n \"Create an mTLS certificate enabled for the production environment\",\n ],\n [\n \"$0 mtls-certificates create --name dev_cert --cert ./cert.pem --key ./key.pem --environment development --environment preview\",\n \"Create an mTLS certificate enabled for multiple environments\",\n ],\n [\n \"$0 mtls-certificates create --name my_cert --cert ./cert.pem --key ./key.pem --environment production --account my-account --project my-project\",\n \"Explicitly specify the account and project\",\n ],\n ])\n .middleware([\n setBlocking,\n authenticate,\n configure,\n fetchAccount,\n fetchProject,\n identify,\n ]);\n },\n handler: async (argv: unknown) => {\n await captureEvent({ argv, event: \"zuplo mtls-certificate create\" });\n await create(argv as CreateArguments);\n },\n};\n"]}
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC1E,OAAO,WAAW,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAE5E,eAAe;IACb,IAAI,EAAE,8CAA8C;IACpD,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,CAAC,KAAW,EAAiB,EAAE;QACtC,OAAO,KAAK;aACT,KAAK,CACJ,oGAAoG,CACrG;aACA,MAAM,CAAC,MAAM,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,6DAA6D;SAC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Event } from \"../../common/analytics/lib.js\";\nimport { authenticate } from \"../../common/middleware/authentication.js\";\nimport { configure } from \"../../common/middleware/user-configuration.js\";\nimport { identify } from \"../../common/middleware/user-identification.js\";\nimport setBlocking from \"../../common/output.js\";\nimport { create } from \"../../mtls-certificates/create/handler.js\";\nimport { CreateArguments } from \"../../mtls-certificates/models.js\";\nimport { fetchAccount } from \"../../common/middleware/get-account-param.js\";\nimport { fetchProject } from \"../../common/middleware/get-project-param.js\";\n\nexport default {\n desc: \"Creates a new mTLS certificate for a project\",\n command: \"create\",\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .usage(\n \"$0 mtls-certificates create --name <name> --cert <file> --key <file> --environment <env> [options]\"\n )\n .option(\"name\", {\n type: \"string\",\n describe: \"The name of the certificate (alphanumeric with underscores)\",\n })\n .option(\"cert\", {\n type: \"string\",\n describe: \"Path to the PEM-encoded certificate file\",\n })\n .option(\"key\", {\n type: \"string\",\n describe: \"Path to the PEM-encoded private key file\",\n })\n .option(\"environment-type\", {\n type: \"array\",\n describe:\n \"Environment types where the certificate should be enabled (can be repeated: --environment-type development --environment-type production)\",\n choices: [\"development\", \"preview\", \"production\"],\n })\n .option(\"api-key\", {\n type: \"string\",\n describe: \"The API Key from Zuplo\",\n envVar: \"API_KEY\",\n })\n .option(\"account\", {\n type: \"string\",\n describe: \"The account name\",\n })\n .option(\"project\", {\n type: \"string\",\n describe: \"The project name\",\n })\n .demandOption([\"name\", \"cert\", \"key\", \"environment-type\"])\n .example([\n [\n \"$0 mtls-certificate create --name my_cert --cert ./cert.pem --key ./key.pem --environment-type production\",\n \"Create an mTLS certificate enabled for the production environment type\",\n ],\n [\n \"$0 mtls-certificate create --name dev_cert --cert ./cert.pem --key ./key.pem --environment-type development --environment-type preview\",\n \"Create an mTLS certificate enabled for multiple environment types\",\n ],\n [\n \"$0 mtls-certificate create --name my_cert --cert ./cert.pem --key ./key.pem --environment-type production --account my-account --project my-project\",\n \"Explicitly specify the account and project\",\n ],\n ])\n .middleware([\n setBlocking,\n authenticate,\n configure,\n fetchAccount,\n fetchProject,\n identify,\n ]);\n },\n handler: async (argv: unknown) => {\n await captureEvent({ argv, event: \"zuplo mtls-certificate create\" });\n await create(argv as CreateArguments);\n },\n};\n"]}
@@ -0,0 +1,9 @@
1
+ import { Argv } from "yargs";
2
+ declare const _default: {
3
+ desc: string;
4
+ command: string;
5
+ builder: (yargs: Argv) => Argv<unknown>;
6
+ handler: (argv: unknown) => Promise<void>;
7
+ };
8
+ export default _default;
9
+ //# sourceMappingURL=disable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disable.d.ts","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/disable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAcV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;oBAwCf,OAAO;;AA3C/B,wBA+CE"}
@@ -0,0 +1,57 @@
1
+ import { captureEvent } from "../../common/analytics/lib.js";
2
+ import { authenticate } from "../../common/middleware/authentication.js";
3
+ import { configure } from "../../common/middleware/user-configuration.js";
4
+ import { identify } from "../../common/middleware/user-identification.js";
5
+ import setBlocking from "../../common/output.js";
6
+ import { disable } from "../../mtls-certificates/disable/handler.js";
7
+ import { fetchAccount } from "../../common/middleware/get-account-param.js";
8
+ import { fetchProject } from "../../common/middleware/get-project-param.js";
9
+ export default {
10
+ desc: "Disables an mTLS certificate for all environment types",
11
+ command: "disable",
12
+ builder: (yargs) => {
13
+ return yargs
14
+ .usage("$0 mtls-certificates disable --cert-id <id> [options]")
15
+ .option("cert-id", {
16
+ type: "string",
17
+ describe: "The ID of the certificate to disable",
18
+ })
19
+ .option("api-key", {
20
+ type: "string",
21
+ describe: "The API Key from Zuplo",
22
+ envVar: "API_KEY",
23
+ })
24
+ .option("account", {
25
+ type: "string",
26
+ describe: "The account name",
27
+ })
28
+ .option("project", {
29
+ type: "string",
30
+ describe: "The project name",
31
+ })
32
+ .demandOption(["cert-id"])
33
+ .example([
34
+ [
35
+ "$0 mtls-certificate disable --cert-id cert_abc123",
36
+ "Disable certificate for all environment types",
37
+ ],
38
+ [
39
+ "$0 mtls-certificate disable --cert-id cert_abc123 --account my-account --project my-project",
40
+ "Explicitly specify the account and project",
41
+ ],
42
+ ])
43
+ .middleware([
44
+ setBlocking,
45
+ authenticate,
46
+ configure,
47
+ fetchAccount,
48
+ fetchProject,
49
+ identify,
50
+ ]);
51
+ },
52
+ handler: async (argv) => {
53
+ await captureEvent({ argv, event: "zuplo mtls-certificate disable" });
54
+ await disable(argv);
55
+ },
56
+ };
57
+ //# sourceMappingURL=disable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disable.js","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/disable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC1E,OAAO,WAAW,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,4CAA4C,CAAC;AAErE,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAE5E,eAAe;IACb,IAAI,EAAE,wDAAwD;IAC9D,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,CAAC,KAAW,EAAiB,EAAE;QACtC,OAAO,KAAK;aACT,KAAK,CAAC,uDAAuD,CAAC;aAC9D,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,sCAAsC;SACjD,CAAC;aACD,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,wBAAwB;YAClC,MAAM,EAAE,SAAS;SAClB,CAAC;aACD,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;aACD,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;aACD,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC;aACzB,OAAO,CAAC;YACP;gBACE,mDAAmD;gBACnD,+CAA+C;aAChD;YACD;gBACE,6FAA6F;gBAC7F,4CAA4C;aAC7C;SACF,CAAC;aACD,UAAU,CAAC;YACV,WAAW;YACX,YAAY;YACZ,SAAS;YACT,YAAY;YACZ,YAAY;YACZ,QAAQ;SACT,CAAC,CAAC;IACP,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,IAAa,EAAE,EAAE;QAC/B,MAAM,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,gCAAgC,EAAE,CAAC,CAAC;QACtE,MAAM,OAAO,CAAC,IAAwB,CAAC,CAAC;IAC1C,CAAC;CACF,CAAC","sourcesContent":["import { Argv } from \"yargs\";\nimport { captureEvent } from \"../../common/analytics/lib.js\";\nimport { authenticate } from \"../../common/middleware/authentication.js\";\nimport { configure } from \"../../common/middleware/user-configuration.js\";\nimport { identify } from \"../../common/middleware/user-identification.js\";\nimport setBlocking from \"../../common/output.js\";\nimport { disable } from \"../../mtls-certificates/disable/handler.js\";\nimport { DisableArguments } from \"../../mtls-certificates/models.js\";\nimport { fetchAccount } from \"../../common/middleware/get-account-param.js\";\nimport { fetchProject } from \"../../common/middleware/get-project-param.js\";\n\nexport default {\n desc: \"Disables an mTLS certificate for all environment types\",\n command: \"disable\",\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .usage(\"$0 mtls-certificates disable --cert-id <id> [options]\")\n .option(\"cert-id\", {\n type: \"string\",\n describe: \"The ID of the certificate to disable\",\n })\n .option(\"api-key\", {\n type: \"string\",\n describe: \"The API Key from Zuplo\",\n envVar: \"API_KEY\",\n })\n .option(\"account\", {\n type: \"string\",\n describe: \"The account name\",\n })\n .option(\"project\", {\n type: \"string\",\n describe: \"The project name\",\n })\n .demandOption([\"cert-id\"])\n .example([\n [\n \"$0 mtls-certificate disable --cert-id cert_abc123\",\n \"Disable certificate for all environment types\",\n ],\n [\n \"$0 mtls-certificate disable --cert-id cert_abc123 --account my-account --project my-project\",\n \"Explicitly specify the account and project\",\n ],\n ])\n .middleware([\n setBlocking,\n authenticate,\n configure,\n fetchAccount,\n fetchProject,\n identify,\n ]);\n },\n handler: async (argv: unknown) => {\n await captureEvent({ argv, event: \"zuplo mtls-certificate disable\" });\n await disable(argv as DisableArguments);\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAQtC,QAAA,MAAM,QAAQ,EAAE,aAaf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAStC,QAAA,MAAM,QAAQ,EAAE,aAcf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -2,6 +2,7 @@ import { groupHandler } from "../../common/handler.js";
2
2
  import create from "./create.js";
3
3
  import deleteCommand from "./delete.js";
4
4
  import describe from "./describe.js";
5
+ import disable from "./disable.js";
5
6
  import list from "./list.js";
6
7
  import update from "./update.js";
7
8
  const commands = {
@@ -13,6 +14,7 @@ const commands = {
13
14
  .command(list)
14
15
  .command(describe)
15
16
  .command(update)
17
+ .command(disable)
16
18
  .command(deleteCommand)
17
19
  .help();
18
20
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,aAAa,MAAM,aAAa,CAAC;AACxC,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,QAAQ,GAAkB;IAC9B,QAAQ,EAAE,2BAA2B;IACrC,OAAO,EAAE,kBAAkB;IAC3B,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;QACjB,OAAO,KAAK;aACT,OAAO,CAAC,MAAM,CAAC;aACf,OAAO,CAAC,IAAI,CAAC;aACb,OAAO,CAAC,QAAQ,CAAC;aACjB,OAAO,CAAC,MAAM,CAAC;aACf,OAAO,CAAC,aAAa,CAAC;aACtB,IAAI,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,EAAE,YAAY;CACtB,CAAC;AAEF,eAAe,QAAQ,CAAC","sourcesContent":["import { CommandModule } from \"yargs\";\nimport { groupHandler } from \"../../common/handler.js\";\nimport create from \"./create.js\";\nimport deleteCommand from \"./delete.js\";\nimport describe from \"./describe.js\";\nimport list from \"./list.js\";\nimport update from \"./update.js\";\n\nconst commands: CommandModule = {\n describe: \"mTLS certificate commands\",\n command: \"mtls-certificate\",\n builder: (yargs) => {\n return yargs\n .command(create)\n .command(list)\n .command(describe)\n .command(update)\n .command(deleteCommand)\n .help();\n },\n handler: groupHandler,\n};\n\nexport default commands;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,aAAa,MAAM,aAAa,CAAC;AACxC,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,QAAQ,GAAkB;IAC9B,QAAQ,EAAE,2BAA2B;IACrC,OAAO,EAAE,kBAAkB;IAC3B,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;QACjB,OAAO,KAAK;aACT,OAAO,CAAC,MAAM,CAAC;aACf,OAAO,CAAC,IAAI,CAAC;aACb,OAAO,CAAC,QAAQ,CAAC;aACjB,OAAO,CAAC,MAAM,CAAC;aACf,OAAO,CAAC,OAAO,CAAC;aAChB,OAAO,CAAC,aAAa,CAAC;aACtB,IAAI,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,EAAE,YAAY;CACtB,CAAC;AAEF,eAAe,QAAQ,CAAC","sourcesContent":["import { CommandModule } from \"yargs\";\nimport { groupHandler } from \"../../common/handler.js\";\nimport create from \"./create.js\";\nimport deleteCommand from \"./delete.js\";\nimport describe from \"./describe.js\";\nimport disable from \"./disable.js\";\nimport list from \"./list.js\";\nimport update from \"./update.js\";\n\nconst commands: CommandModule = {\n describe: \"mTLS certificate commands\",\n command: \"mtls-certificate\",\n builder: (yargs) => {\n return yargs\n .command(create)\n .command(list)\n .command(describe)\n .command(update)\n .command(disable)\n .command(deleteCommand)\n .help();\n },\n handler: groupHandler,\n};\n\nexport default commands;\n"]}
@@ -16,9 +16,9 @@ export default {
16
16
  type: "string",
17
17
  describe: "The ID of the certificate to update",
18
18
  })
19
- .option("environment", {
19
+ .option("environment-type", {
20
20
  type: "array",
21
- describe: "Environments where the certificate should be enabled (can be repeated: --environment development --environment production)",
21
+ describe: "Environment types where the certificate should be enabled (can be repeated: --environment-type development --environment-type production)",
22
22
  choices: ["development", "preview", "production"],
23
23
  })
24
24
  .option("api-key", {
@@ -34,18 +34,18 @@ export default {
34
34
  type: "string",
35
35
  describe: "The project name",
36
36
  })
37
- .demandOption(["cert-id", "environment"])
37
+ .demandOption(["cert-id", "environment-type"])
38
38
  .example([
39
39
  [
40
- "$0 mtls-certificates update --cert-id cert_abc123 --environment production",
41
- "Update certificate to be enabled only for production environment",
40
+ "$0 mtls-certificate update --cert-id cert_abc123 --environment-type production",
41
+ "Update certificate to be enabled only for production environment type",
42
42
  ],
43
43
  [
44
- "$0 mtls-certificates update --cert-id cert_abc123 --environment development --environment preview --environment production",
45
- "Update certificate to be enabled for all environments",
44
+ "$0 mtls-certificate update --cert-id cert_abc123 --environment-type development --environment-type preview --environment-type production",
45
+ "Update certificate to be enabled for all environment types",
46
46
  ],
47
47
  [
48
- "$0 mtls-certificates update --cert-id cert_abc123 --environment development --account my-account --project my-project",
48
+ "$0 mtls-certificate update --cert-id cert_abc123 --environment-type development --account my-account --project my-project",
49
49
  "Explicitly specify the account and project",
50
50
  ],
51
51
  ])
@@ -1 +1 @@
1
- {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/update.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC1E,OAAO,WAAW,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAE5E,eAAe;IACb,IAAI,EAAE,0DAA0D;IAChE,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,CAAC,KAAW,EAAiB,EAAE;QACtC,OAAO,KAAK;aACT,KAAK,CACJ,0EAA0E,CAC3E;aACA,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,qCAAqC;SAChD,CAAC;aACD,MAAM,CAAC,aAAa,EAAE;YACrB,IAAI,EAAE,OAAO;YACb,QAAQ,EACN,4HAA4H;YAC9H,OAAO,EAAE,CAAC,aAAa,EAAE,SAAS,EAAE,YAAY,CAAC;SAClD,CAAC;aACD,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,wBAAwB;YAClC,MAAM,EAAE,SAAS;SAClB,CAAC;aACD,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;aACD,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;aACD,YAAY,CAAC,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;aACxC,OAAO,CAAC;YACP;gBACE,4EAA4E;gBAC5E,kEAAkE;aACnE;YACD;gBACE,4HAA4H;gBAC5H,uDAAuD;aACxD;YACD;gBACE,uHAAuH;gBACvH,4CAA4C;aAC7C;SACF,CAAC;aACD,UAAU,CAAC;YACV,WAAW;YACX,YAAY;YACZ,SAAS;YACT,YAAY;YACZ,YAAY;YACZ,QAAQ;SACT,CAAC,CAAC;IACP,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,IAAa,EAAE,EAAE;QAC/B,MAAM,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,+BAA+B,EAAE,CAAC,CAAC;QACrE,MAAM,MAAM,CAAC,IAAuB,CAAC,CAAC;IACxC,CAAC;CACF,CAAC","sourcesContent":["import { Argv } from \"yargs\";\nimport { captureEvent } from \"../../common/analytics/lib.js\";\nimport { authenticate } from \"../../common/middleware/authentication.js\";\nimport { configure } from \"../../common/middleware/user-configuration.js\";\nimport { identify } from \"../../common/middleware/user-identification.js\";\nimport setBlocking from \"../../common/output.js\";\nimport { update } from \"../../mtls-certificates/update/handler.js\";\nimport { UpdateArguments } from \"../../mtls-certificates/models.js\";\nimport { fetchAccount } from \"../../common/middleware/get-account-param.js\";\nimport { fetchProject } from \"../../common/middleware/get-project-param.js\";\n\nexport default {\n desc: \"Updates the environment settings for an mTLS certificate\",\n command: \"update\",\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .usage(\n \"$0 mtls-certificates update --cert-id <id> --environment <env> [options]\"\n )\n .option(\"cert-id\", {\n type: \"string\",\n describe: \"The ID of the certificate to update\",\n })\n .option(\"environment\", {\n type: \"array\",\n describe:\n \"Environments where the certificate should be enabled (can be repeated: --environment development --environment production)\",\n choices: [\"development\", \"preview\", \"production\"],\n })\n .option(\"api-key\", {\n type: \"string\",\n describe: \"The API Key from Zuplo\",\n envVar: \"API_KEY\",\n })\n .option(\"account\", {\n type: \"string\",\n describe: \"The account name\",\n })\n .option(\"project\", {\n type: \"string\",\n describe: \"The project name\",\n })\n .demandOption([\"cert-id\", \"environment\"])\n .example([\n [\n \"$0 mtls-certificates update --cert-id cert_abc123 --environment production\",\n \"Update certificate to be enabled only for production environment\",\n ],\n [\n \"$0 mtls-certificates update --cert-id cert_abc123 --environment development --environment preview --environment production\",\n \"Update certificate to be enabled for all environments\",\n ],\n [\n \"$0 mtls-certificates update --cert-id cert_abc123 --environment development --account my-account --project my-project\",\n \"Explicitly specify the account and project\",\n ],\n ])\n .middleware([\n setBlocking,\n authenticate,\n configure,\n fetchAccount,\n fetchProject,\n identify,\n ]);\n },\n handler: async (argv: unknown) => {\n await captureEvent({ argv, event: \"zuplo mtls-certificate update\" });\n await update(argv as UpdateArguments);\n },\n};\n"]}
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/update.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAC1E,OAA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YACZ,QAAQ;SACT,CAAC,CAAC;IACP,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,IAAa,EAAE,EAAE;QAC/B,MAAM,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,+BAA+B,EAAE,CAAC,CAAC;QACrE,MAAM,MAAM,CAAC,IAAuB,CAAC,CAAC;IACxC,CAAC;CACF,CAAC","sourcesContent":["import { Argv } from \"yargs\";\nimport { captureEvent } from \"../../common/analytics/lib.js\";\nimport { authenticate } from \"../../common/middleware/authentication.js\";\nimport { configure } from \"../../common/middleware/user-configuration.js\";\nimport { identify } from \"../../common/middleware/user-identification.js\";\nimport setBlocking from \"../../common/output.js\";\nimport { update } from \"../../mtls-certificates/update/handler.js\";\nimport { UpdateArguments } from \"../../mtls-certificates/models.js\";\nimport { fetchAccount } from \"../../common/middleware/get-account-param.js\";\nimport { fetchProject } from \"../../common/middleware/get-project-param.js\";\n\nexport default {\n desc: \"Updates the environment settings for an mTLS certificate\",\n command: \"update\",\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .usage(\n \"$0 mtls-certificates update --cert-id <id> --environment <env> [options]\"\n )\n .option(\"cert-id\", {\n type: \"string\",\n describe: \"The ID of the certificate to update\",\n })\n .option(\"environment-type\", {\n type: \"array\",\n describe:\n \"Environment types where the certificate should be enabled (can be repeated: --environment-type development --environment-type production)\",\n choices: [\"development\", \"preview\", \"production\"],\n })\n .option(\"api-key\", {\n type: \"string\",\n describe: \"The API Key from Zuplo\",\n envVar: \"API_KEY\",\n })\n .option(\"account\", {\n type: \"string\",\n describe: \"The account name\",\n })\n .option(\"project\", {\n type: \"string\",\n describe: \"The project name\",\n })\n .demandOption([\"cert-id\", \"environment-type\"])\n .example([\n [\n \"$0 mtls-certificate update --cert-id cert_abc123 --environment-type production\",\n \"Update certificate to be enabled only for production environment type\",\n ],\n [\n \"$0 mtls-certificate update --cert-id cert_abc123 --environment-type development --environment-type preview --environment-type production\",\n \"Update certificate to be enabled for all environment types\",\n ],\n [\n \"$0 mtls-certificate update --cert-id cert_abc123 --environment-type development --account my-account --project my-project\",\n \"Explicitly specify the account and project\",\n ],\n ])\n .middleware([\n setBlocking,\n authenticate,\n configure,\n fetchAccount,\n fetchProject,\n identify,\n ]);\n },\n handler: async (argv: unknown) => {\n await captureEvent({ argv, event: \"zuplo mtls-certificate update\" });\n await update(argv as UpdateArguments);\n },\n};\n"]}
@@ -17,7 +17,7 @@ export default {
17
17
  })
18
18
  .option("overlay", {
19
19
  type: "string",
20
- alias: "v",
20
+ alias: "l",
21
21
  describe: "The overlay file",
22
22
  normalize: true,
23
23
  demandOption: true,
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.js","sourceRoot":"","sources":["../../../src/cmds/open-api/overlay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAa,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAE5E,eAAe;IACb,IAAI,EAAE,iDAAiD;IACvD,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,CAAC,KAAW,EAAiB,EAAE;QACtC,OAAO,KAAK;aACT,KAAK,CACJ,0EAA0E,CAC3E;aACA,MAAM,CAAC,OAAO,EAAE;YACf,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,GAAG;YACV,QAAQ,EAAE,wBAAwB;YAClC,SAAS,EAAE,IAAI;YACf,YAAY,EAAE,IAAI;SACnB,CAAC;aACD,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,GAAG;YACV,QAAQ,EAAE,kBAAkB;YAC5B,SAAS,EAAE,IAAI;YACf,YAAY,EAAE,IAAI;SACnB,CAAC;aACD,MAAM,CAAC,QAAQ,EAAE;YAChB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,GAAG;YACV,QAAQ,EAAE,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CACb,oHAAoH,CACrH,CAAC;YACJ,CAAC;YAGD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,KAAe,CAAC,EAAE,CAAC;gBACzC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;YACzD,CAAC;YAED,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,OAAiB,CAAC,EAAE,CAAC;gBAC3C,MAAM,IAAI,KAAK,CAAC,2BAA2B,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;YAC7D,CAAC;YAED,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;IACP,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,IAAa,EAAE,EAAE;QAC/B,MAAM,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC,CAAC;QACzD,MAAM,YAAY,CAAC,IAAiB,CAAC,CAAC;IACxC,CAAC;CACF,CAAC","sourcesContent":["import fs from \"node:fs\";\nimport path from \"node:path\";\nimport { Argv } from \"yargs\";\nimport { captureEvent } from \"../../common/analytics/lib.js\";\nimport { Arguments, applyOverlay } from \"../../open-api/overlay/handler.js\";\n\nexport default {\n desc: \"Apply an OpenAPI Overlay to an OpenAPI document\",\n command: \"overlay\",\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .usage(\n \"$0 oas overlay --input <file> --overlay <file> --output <file> [options]\"\n )\n .option(\"input\", {\n type: \"string\",\n alias: \"i\",\n describe: \"The input OpenAPI file\",\n normalize: true,\n demandOption: true,\n })\n .option(\"overlay\", {\n type: \"string\",\n alias: \"v\",\n describe: \"The overlay file\",\n normalize: true,\n demandOption: true,\n })\n .option(\"output\", {\n type: \"string\",\n alias: \"o\",\n describe: \"The output OpenAPI file path\",\n normalize: true,\n demandOption: true,\n })\n .option(\"format\", {\n type: \"string\",\n alias: \"f\",\n describe: \"Output format\",\n choices: [\"json\", \"yaml\"],\n })\n .option(\"json\", {\n type: \"boolean\",\n describe: \"Output in JSON format\",\n conflicts: [\"yaml\", \"format\"],\n })\n .option(\"yaml\", {\n type: \"boolean\",\n describe: \"Output in YAML format\",\n conflicts: [\"json\", \"format\"],\n })\n .example([\n [\n \"$0 oas overlay --input openapi.json --overlay changes.json --output result.json\",\n \"Apply an overlay to an OpenAPI document\",\n ],\n [\n \"$0 oas overlay -i api.yaml -v overlay.yaml -o result.yaml --yaml\",\n \"Apply overlay and output in YAML format\",\n ],\n [\n \"$0 oas overlay --input openapi.json --overlay overlay.json --output result.yaml --format yaml\",\n \"Apply overlay and convert format in one step\",\n ],\n ])\n .check((argv) => {\n if (!argv.input || !argv.overlay || !argv.output) {\n throw new Error(\n \"All three arguments are required: input, overlay, and output\"\n );\n }\n\n // Validate output file has an extension for format detection\n const outputExt = path.extname(argv.output as string).toLowerCase();\n const validExtensions = [\".json\", \".yaml\", \".yml\"];\n\n // Only require extension if format not explicitly specified\n if (\n !argv.format &&\n !argv.json &&\n !argv.yaml &&\n !validExtensions.includes(outputExt)\n ) {\n throw new Error(\n `Output file must have a .json, .yaml, or .yml extension, or specify output format with --format, --json, or --yaml`\n );\n }\n\n // Validate input files exist\n if (!fs.existsSync(argv.input as string)) {\n throw new Error(`Input file not found: ${argv.input}`);\n }\n\n if (!fs.existsSync(argv.overlay as string)) {\n throw new Error(`Overlay file not found: ${argv.overlay}`);\n }\n\n return true;\n });\n },\n handler: async (argv: unknown) => {\n await captureEvent({ argv, event: \"zuplo oas overlay\" });\n await applyOverlay(argv as Arguments);\n },\n};\n"]}
1
+ {"version":3,"file":"overlay.js","sourceRoot":"","sources":["../../../src/cmds/open-api/overlay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAa,YAAY,EAAE,MAAM,mCAAmC,CAAC;AA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node:path\";\nimport { Argv } from \"yargs\";\nimport { captureEvent } from \"../../common/analytics/lib.js\";\nimport { Arguments, applyOverlay } from \"../../open-api/overlay/handler.js\";\n\nexport default {\n desc: \"Apply an OpenAPI Overlay to an OpenAPI document\",\n command: \"overlay\",\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .usage(\n \"$0 oas overlay --input <file> --overlay <file> --output <file> [options]\"\n )\n .option(\"input\", {\n type: \"string\",\n alias: \"i\",\n describe: \"The input OpenAPI file\",\n normalize: true,\n demandOption: true,\n })\n .option(\"overlay\", {\n type: \"string\",\n alias: \"l\",\n describe: \"The overlay file\",\n normalize: true,\n demandOption: true,\n })\n .option(\"output\", {\n type: \"string\",\n alias: \"o\",\n describe: \"The output OpenAPI file path\",\n normalize: true,\n demandOption: true,\n })\n .option(\"format\", {\n type: \"string\",\n alias: \"f\",\n describe: \"Output format\",\n choices: [\"json\", \"yaml\"],\n })\n .option(\"json\", {\n type: \"boolean\",\n describe: \"Output in JSON format\",\n conflicts: [\"yaml\", \"format\"],\n })\n .option(\"yaml\", {\n type: \"boolean\",\n describe: \"Output in YAML format\",\n conflicts: [\"json\", \"format\"],\n })\n .example([\n [\n \"$0 oas overlay --input openapi.json --overlay changes.json --output result.json\",\n \"Apply an overlay to an OpenAPI document\",\n ],\n [\n \"$0 oas overlay -i api.yaml -v overlay.yaml -o result.yaml --yaml\",\n \"Apply overlay and output in YAML format\",\n ],\n [\n \"$0 oas overlay --input openapi.json --overlay overlay.json --output result.yaml --format yaml\",\n \"Apply overlay and convert format in one step\",\n ],\n ])\n .check((argv) => {\n if (!argv.input || !argv.overlay || !argv.output) {\n throw new Error(\n \"All three arguments are required: input, overlay, and output\"\n );\n }\n\n // Validate output file has an extension for format detection\n const outputExt = path.extname(argv.output as string).toLowerCase();\n const validExtensions = [\".json\", \".yaml\", \".yml\"];\n\n // Only require extension if format not explicitly specified\n if (\n !argv.format &&\n !argv.json &&\n !argv.yaml &&\n !validExtensions.includes(outputExt)\n ) {\n throw new Error(\n `Output file must have a .json, .yaml, or .yml extension, or specify output format with --format, --json, or --yaml`\n );\n }\n\n // Validate input files exist\n if (!fs.existsSync(argv.input as string)) {\n throw new Error(`Input file not found: ${argv.input}`);\n }\n\n if (!fs.existsSync(argv.overlay as string)) {\n throw new Error(`Overlay file not found: ${argv.overlay}`);\n }\n\n return true;\n });\n },\n handler: async (argv: unknown) => {\n await captureEvent({ argv, event: \"zuplo oas overlay\" });\n await applyOverlay(argv as Arguments);\n },\n};\n"]}
@@ -0,0 +1,13 @@
1
+ export declare const OPEN_API_FILE_TYPES: readonly string[];
2
+ export declare const HTTP_METHODS: readonly [
3
+ "get",
4
+ "put",
5
+ "post",
6
+ "delete",
7
+ "options",
8
+ "head",
9
+ "patch",
10
+ "trace",
11
+ ];
12
+ export type HttpMethod = (typeof HTTP_METHODS)[number];
13
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/common/open-api/constants.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAIvC,CAAC;AAKX,eAAO,MAAM,YAAY,gFASf,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ export const OPEN_API_FILE_TYPES = [
2
+ ".json",
3
+ ".yml",
4
+ ".yaml",
5
+ ];
6
+ export const HTTP_METHODS = [
7
+ "get",
8
+ "put",
9
+ "post",
10
+ "delete",
11
+ "options",
12
+ "head",
13
+ "patch",
14
+ "trace",
15
+ ];
16
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/common/open-api/constants.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,mBAAmB,GAAsB;IACpD,OAAO;IACP,MAAM;IACN,OAAO;CACC,CAAC;AAKX,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,KAAK;IACL,KAAK;IACL,MAAM;IACN,QAAQ;IACR,SAAS;IACT,MAAM;IACN,OAAO;IACP,OAAO;CACC,CAAC","sourcesContent":["/**\n * Common constants for OpenAPI operations\n */\n\n/**\n * Supported OpenAPI file extensions\n */\nexport const OPEN_API_FILE_TYPES: readonly string[] = [\n \".json\",\n \".yml\",\n \".yaml\",\n] as const;\n\n/**\n * Standard HTTP methods as defined in OpenAPI specification\n */\nexport const HTTP_METHODS = [\n \"get\",\n \"put\",\n \"post\",\n \"delete\",\n \"options\",\n \"head\",\n \"patch\",\n \"trace\",\n] as const;\n\nexport type HttpMethod = (typeof HTTP_METHODS)[number];\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./constants.js";
2
+ export * from "./validation.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/open-api/index.ts"],"names":[],"mappings":"AASA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./constants.js";
2
+ export * from "./validation.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/open-api/index.ts"],"names":[],"mappings":"AASA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC","sourcesContent":["/**\n * Common OpenAPI utilities shared across CLI commands\n *\n * This module provides:\n * - Constants (file types, HTTP methods)\n * - Validation schemas and functions (OpenAPI Overlay specification)\n * - Type definitions\n */\n\nexport * from \"./constants.js\";\nexport * from \"./validation.js\";\n"]}
@@ -0,0 +1,297 @@
1
+ import { z } from "zod";
2
+ declare const RemoveConditionSchema: z.ZodEffects<
3
+ z.ZodObject<
4
+ {
5
+ empty: z.ZodOptional<z.ZodBoolean>;
6
+ missing: z.ZodOptional<z.ZodString>;
7
+ },
8
+ "strict",
9
+ z.ZodTypeAny,
10
+ {
11
+ empty?: boolean | undefined;
12
+ missing?: string | undefined;
13
+ },
14
+ {
15
+ empty?: boolean | undefined;
16
+ missing?: string | undefined;
17
+ }
18
+ >,
19
+ {
20
+ empty?: boolean | undefined;
21
+ missing?: string | undefined;
22
+ },
23
+ {
24
+ empty?: boolean | undefined;
25
+ missing?: string | undefined;
26
+ }
27
+ >;
28
+ declare const OverlayActionSchema: z.ZodEffects<
29
+ z.ZodObject<
30
+ {
31
+ target: z.ZodString;
32
+ description: z.ZodOptional<z.ZodString>;
33
+ update: z.ZodOptional<z.ZodUnknown>;
34
+ remove: z.ZodOptional<
35
+ z.ZodUnion<
36
+ [
37
+ z.ZodBoolean,
38
+ z.ZodEffects<
39
+ z.ZodObject<
40
+ {
41
+ empty: z.ZodOptional<z.ZodBoolean>;
42
+ missing: z.ZodOptional<z.ZodString>;
43
+ },
44
+ "strict",
45
+ z.ZodTypeAny,
46
+ {
47
+ empty?: boolean | undefined;
48
+ missing?: string | undefined;
49
+ },
50
+ {
51
+ empty?: boolean | undefined;
52
+ missing?: string | undefined;
53
+ }
54
+ >,
55
+ {
56
+ empty?: boolean | undefined;
57
+ missing?: string | undefined;
58
+ },
59
+ {
60
+ empty?: boolean | undefined;
61
+ missing?: string | undefined;
62
+ }
63
+ >,
64
+ ]
65
+ >
66
+ >;
67
+ },
68
+ "strict",
69
+ z.ZodTypeAny,
70
+ {
71
+ target: string;
72
+ description?: string | undefined;
73
+ update?: unknown;
74
+ remove?:
75
+ | boolean
76
+ | {
77
+ empty?: boolean | undefined;
78
+ missing?: string | undefined;
79
+ }
80
+ | undefined;
81
+ },
82
+ {
83
+ target: string;
84
+ description?: string | undefined;
85
+ update?: unknown;
86
+ remove?:
87
+ | boolean
88
+ | {
89
+ empty?: boolean | undefined;
90
+ missing?: string | undefined;
91
+ }
92
+ | undefined;
93
+ }
94
+ >,
95
+ {
96
+ target: string;
97
+ description?: string | undefined;
98
+ update?: unknown;
99
+ remove?:
100
+ | boolean
101
+ | {
102
+ empty?: boolean | undefined;
103
+ missing?: string | undefined;
104
+ }
105
+ | undefined;
106
+ },
107
+ {
108
+ target: string;
109
+ description?: string | undefined;
110
+ update?: unknown;
111
+ remove?:
112
+ | boolean
113
+ | {
114
+ empty?: boolean | undefined;
115
+ missing?: string | undefined;
116
+ }
117
+ | undefined;
118
+ }
119
+ >;
120
+ export declare const OverlayDocumentSchema: z.ZodObject<
121
+ {
122
+ overlay: z.ZodEffects<z.ZodString, string, string>;
123
+ info: z.ZodObject<
124
+ {
125
+ title: z.ZodString;
126
+ version: z.ZodString;
127
+ },
128
+ "strict",
129
+ z.ZodTypeAny,
130
+ {
131
+ version: string;
132
+ title: string;
133
+ },
134
+ {
135
+ version: string;
136
+ title: string;
137
+ }
138
+ >;
139
+ actions: z.ZodArray<
140
+ z.ZodEffects<
141
+ z.ZodObject<
142
+ {
143
+ target: z.ZodString;
144
+ description: z.ZodOptional<z.ZodString>;
145
+ update: z.ZodOptional<z.ZodUnknown>;
146
+ remove: z.ZodOptional<
147
+ z.ZodUnion<
148
+ [
149
+ z.ZodBoolean,
150
+ z.ZodEffects<
151
+ z.ZodObject<
152
+ {
153
+ empty: z.ZodOptional<z.ZodBoolean>;
154
+ missing: z.ZodOptional<z.ZodString>;
155
+ },
156
+ "strict",
157
+ z.ZodTypeAny,
158
+ {
159
+ empty?: boolean | undefined;
160
+ missing?: string | undefined;
161
+ },
162
+ {
163
+ empty?: boolean | undefined;
164
+ missing?: string | undefined;
165
+ }
166
+ >,
167
+ {
168
+ empty?: boolean | undefined;
169
+ missing?: string | undefined;
170
+ },
171
+ {
172
+ empty?: boolean | undefined;
173
+ missing?: string | undefined;
174
+ }
175
+ >,
176
+ ]
177
+ >
178
+ >;
179
+ },
180
+ "strict",
181
+ z.ZodTypeAny,
182
+ {
183
+ target: string;
184
+ description?: string | undefined;
185
+ update?: unknown;
186
+ remove?:
187
+ | boolean
188
+ | {
189
+ empty?: boolean | undefined;
190
+ missing?: string | undefined;
191
+ }
192
+ | undefined;
193
+ },
194
+ {
195
+ target: string;
196
+ description?: string | undefined;
197
+ update?: unknown;
198
+ remove?:
199
+ | boolean
200
+ | {
201
+ empty?: boolean | undefined;
202
+ missing?: string | undefined;
203
+ }
204
+ | undefined;
205
+ }
206
+ >,
207
+ {
208
+ target: string;
209
+ description?: string | undefined;
210
+ update?: unknown;
211
+ remove?:
212
+ | boolean
213
+ | {
214
+ empty?: boolean | undefined;
215
+ missing?: string | undefined;
216
+ }
217
+ | undefined;
218
+ },
219
+ {
220
+ target: string;
221
+ description?: string | undefined;
222
+ update?: unknown;
223
+ remove?:
224
+ | boolean
225
+ | {
226
+ empty?: boolean | undefined;
227
+ missing?: string | undefined;
228
+ }
229
+ | undefined;
230
+ }
231
+ >,
232
+ "many"
233
+ >;
234
+ extends: z.ZodOptional<z.ZodString>;
235
+ },
236
+ "strict",
237
+ z.ZodTypeAny,
238
+ {
239
+ info: {
240
+ version: string;
241
+ title: string;
242
+ };
243
+ overlay: string;
244
+ actions: {
245
+ target: string;
246
+ description?: string | undefined;
247
+ update?: unknown;
248
+ remove?:
249
+ | boolean
250
+ | {
251
+ empty?: boolean | undefined;
252
+ missing?: string | undefined;
253
+ }
254
+ | undefined;
255
+ }[];
256
+ extends?: string | undefined;
257
+ },
258
+ {
259
+ info: {
260
+ version: string;
261
+ title: string;
262
+ };
263
+ overlay: string;
264
+ actions: {
265
+ target: string;
266
+ description?: string | undefined;
267
+ update?: unknown;
268
+ remove?:
269
+ | boolean
270
+ | {
271
+ empty?: boolean | undefined;
272
+ missing?: string | undefined;
273
+ }
274
+ | undefined;
275
+ }[];
276
+ extends?: string | undefined;
277
+ }
278
+ >;
279
+ export declare const OpenApiDocumentSchema: z.ZodObject<
280
+ {},
281
+ "passthrough",
282
+ z.ZodTypeAny,
283
+ z.objectOutputType<{}, z.ZodTypeAny, "passthrough">,
284
+ z.objectInputType<{}, z.ZodTypeAny, "passthrough">
285
+ >;
286
+ export type OverlayDocument = z.infer<typeof OverlayDocumentSchema>;
287
+ export type OverlayAction = z.infer<typeof OverlayActionSchema>;
288
+ export type RemoveCondition = z.infer<typeof RemoveConditionSchema>;
289
+ export type OpenApiDocument = z.infer<typeof OpenApiDocumentSchema>;
290
+ export declare function validateOverlayDocument(
291
+ value: unknown
292
+ ): OverlayDocument;
293
+ export declare function validateOpenApiDocument(
294
+ value: unknown
295
+ ): OpenApiDocument;
296
+ export {};
297
+ //# sourceMappingURL=validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/common/open-api/validation.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;EAYvB,CAAC;AAKL,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCtB,CAAC;AAMJ,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBvB,CAAC;AAOZ,eAAO,MAAM,qBAAqB,uJAKkB,CAAC;AAKrD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAMpE,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAcvE;AAQD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CASvE"}