opal-security 3.0.0 → 3.0.1-beta.4262451

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 (67) hide show
  1. package/README.md +19 -20
  2. package/lib/commands/aws/identity.d.ts +1 -1
  3. package/lib/commands/aws/identity.js +2 -2
  4. package/lib/commands/clear-auth-provider.d.ts +1 -1
  5. package/lib/commands/clear-auth-provider.js +3 -3
  6. package/lib/commands/curl-example.d.ts +1 -1
  7. package/lib/commands/curl-example.js +2 -2
  8. package/lib/commands/iam-roles/start.d.ts +1 -1
  9. package/lib/commands/iam-roles/start.js +14 -14
  10. package/lib/commands/kube-roles/start.d.ts +1 -1
  11. package/lib/commands/kube-roles/start.js +10 -10
  12. package/lib/commands/login.d.ts +1 -1
  13. package/lib/commands/login.js +71 -63
  14. package/lib/commands/logout.d.ts +1 -1
  15. package/lib/commands/logout.js +3 -3
  16. package/lib/commands/postgres-instances/start.d.ts +1 -1
  17. package/lib/commands/postgres-instances/start.js +35 -34
  18. package/lib/commands/resources/get.d.ts +1 -1
  19. package/lib/commands/resources/get.js +6 -4
  20. package/lib/commands/set-auth-provider.d.ts +1 -1
  21. package/lib/commands/set-auth-provider.js +6 -4
  22. package/lib/commands/set-custom-header.d.ts +1 -1
  23. package/lib/commands/set-custom-header.js +5 -3
  24. package/lib/commands/set-token.d.ts +1 -1
  25. package/lib/commands/set-token.js +26 -19
  26. package/lib/commands/set-url.d.ts +1 -1
  27. package/lib/commands/set-url.js +13 -12
  28. package/lib/commands/ssh/copyFrom.d.ts +1 -1
  29. package/lib/commands/ssh/copyFrom.js +13 -13
  30. package/lib/commands/ssh/copyTo.d.ts +1 -1
  31. package/lib/commands/ssh/copyTo.js +13 -13
  32. package/lib/commands/ssh/start.d.ts +1 -1
  33. package/lib/commands/ssh/start.js +14 -15
  34. package/lib/graphql/fragment-masking.d.ts +19 -0
  35. package/lib/graphql/fragment-masking.js +21 -0
  36. package/lib/graphql/gql.d.ts +36 -0
  37. package/lib/graphql/gql.js +12 -0
  38. package/lib/graphql/graphql.d.ts +11413 -0
  39. package/lib/graphql/graphql.js +1491 -0
  40. package/lib/graphql/index.d.ts +2 -0
  41. package/lib/graphql/index.js +5 -0
  42. package/lib/handler.d.ts +5 -5
  43. package/lib/handler.js +7 -7
  44. package/lib/index.d.ts +1 -1
  45. package/lib/lib/apollo.d.ts +3 -2
  46. package/lib/lib/apollo.js +59 -46
  47. package/lib/lib/aws.js +15 -12
  48. package/lib/lib/cmd.d.ts +4 -6
  49. package/lib/lib/cmd.js +11 -11
  50. package/lib/lib/config.js +14 -14
  51. package/lib/lib/credentials/index.d.ts +1 -1
  52. package/lib/lib/credentials/index.js +6 -6
  53. package/lib/lib/credentials/keychain.js +5 -5
  54. package/lib/lib/credentials/localEncryption.d.ts +2 -2
  55. package/lib/lib/credentials/localEncryption.js +33 -24
  56. package/lib/lib/flags.js +9 -9
  57. package/lib/lib/resources.d.ts +2 -2
  58. package/lib/lib/resources.js +29 -23
  59. package/lib/lib/sessions.d.ts +2 -2
  60. package/lib/lib/sessions.js +18 -17
  61. package/lib/lib/ssh.d.ts +1 -1
  62. package/lib/lib/ssh.js +8 -8
  63. package/lib/lib/util.d.ts +0 -1
  64. package/lib/lib/util.js +13 -13
  65. package/lib/types.d.ts +1787 -1787
  66. package/oclif.manifest.json +2 -3
  67. package/package.json +23 -29
@@ -527,12 +527,11 @@
527
527
  "type": "boolean"
528
528
  },
529
529
  "action": {
530
- "description": "Method of connecting to the database.\n- open: Open external database app\n- psql: Start psql session in shell\n- view: View connection configuration details",
530
+ "description": "Method of connecting to the database.\n- psql: Start psql session in shell\n- view: View connection configuration details",
531
531
  "name": "action",
532
532
  "hasDynamicHelp": false,
533
533
  "multiple": false,
534
534
  "options": [
535
- "open",
536
535
  "psql",
537
536
  "view"
538
537
  ],
@@ -802,5 +801,5 @@
802
801
  ]
803
802
  }
804
803
  },
805
- "version": "3.0.0"
804
+ "version": "3.0.1-beta.4262451"
806
805
  }
package/package.json CHANGED
@@ -1,26 +1,24 @@
1
1
  {
2
2
  "name": "opal-security",
3
3
  "description": "Opal allows you to centrally manage access to all of your sensitive systems.",
4
- "version": "3.0.0",
4
+ "version": "3.0.1-beta.4262451",
5
5
  "author": "Stephen Cobbe",
6
6
  "bin": {
7
7
  "opal": "./bin/run"
8
8
  },
9
9
  "bugs": "https://github.com/opalsecurity/opal-cli/issues",
10
10
  "dependencies": {
11
- "@apollo/client": "^3.9.5",
11
+ "@apollo/client": "^3.13.5",
12
12
  "@oclif/core": "^3.19.3",
13
13
  "@oclif/plugin-autocomplete": "^1.4.6",
14
14
  "@oclif/plugin-help": "^5.2.20",
15
15
  "@oclif/plugin-version": "^2.0.12",
16
- "@types/prettyjson": "0.0.29",
17
16
  "argon2": "^0.40.1",
18
17
  "chalk": "^2.4.2",
19
18
  "graphql": "^15.5.0",
20
19
  "inquirer": "^8.2.6",
21
20
  "inquirer-autocomplete-prompt": "^2.0.1",
22
21
  "keychain": "^1.5.0",
23
- "keytar": "^7.7.0",
24
22
  "lodash": "^4.17.21",
25
23
  "moment": "^2.30.1",
26
24
  "node-fetch": "^2.6.7",
@@ -28,34 +26,27 @@
28
26
  "openid-client": "^5.6.5",
29
27
  "prettyjson": "^1.2.1",
30
28
  "semver": "^7.5.4",
31
- "tslib": "^1.14.1"
29
+ "tslib": "^2.8.1"
32
30
  },
33
31
  "devDependencies": {
32
+ "@biomejs/biome": "1.9.4",
34
33
  "@graphql-codegen/cli": "^5.0.2",
35
- "@graphql-codegen/near-operation-file-preset": "^3.0.0",
36
- "@graphql-codegen/typescript": "^4.0.5",
37
- "@graphql-codegen/typescript-oclif": "^3.0.0",
38
- "@oclif/test": "^3",
39
- "@types/chai": "^4.2.16",
34
+ "@graphql-codegen/client-preset": "^4.8.0",
35
+ "@oclif/test": "^4.1.12",
40
36
  "@types/inquirer": "^8.2.10",
41
37
  "@types/keychain": "^1.4.4",
42
38
  "@types/lodash": "^4.14.169",
43
- "@types/mocha": "^5.2.7",
44
- "@types/node": "^18.11.9",
39
+ "@types/node": "^22.14.0",
40
+ "@types/prettyjson": "0.0.29",
45
41
  "@types/semver": "^7.3.8",
46
- "@typescript-eslint/eslint-plugin": "^7.0.2",
47
42
  "better-npm-audit": "^3.7.3",
48
- "chai": "^4.3.4",
49
- "eslint-config-oclif": "^5.0.2",
50
- "eslint-config-oclif-typescript": "^3.1.4",
51
- "eslint-plugin-simple-import-sort": "^12.0.0",
52
- "eslint-plugin-unused-imports": "^3.1.0",
53
- "globby": "^10.0.2",
54
- "mocha": "^10.0.0",
43
+ "get-graphql-schema": "^2.1.2",
44
+ "nock": "^14.0.2",
55
45
  "nyc": "^15.1.0",
56
46
  "oclif": "^4.8.0",
57
47
  "ts-node": "^8.10.2",
58
- "typescript": "^5.3.3"
48
+ "typescript": "^5.8.2",
49
+ "vitest": "^3.1.1"
59
50
  },
60
51
  "engines": {
61
52
  "node": ">=18.0.0"
@@ -80,23 +71,26 @@
80
71
  "@oclif/plugin-help",
81
72
  "@oclif/plugin-autocomplete",
82
73
  "@oclif/plugin-version"
83
- ]
74
+ ],
75
+ "macos": {
76
+ "identifier": "dev.opal.cli"
77
+ }
84
78
  },
85
79
  "repository": {
86
80
  "type": "git",
87
81
  "url": "https://github.com/opalsecurity/opal-cli.git"
88
82
  },
89
- "resolutions": {
90
- "agent-base": "^6.0.1",
91
- "ansi-regex": "5.0.1"
92
- },
93
83
  "scripts": {
94
84
  "build": "rm -rf lib && tsc -b",
95
85
  "postpack": "rm -f oclif.manifest.json",
96
- "posttest": "eslint . --ext .ts --config .eslintrc",
97
86
  "prepack": "npm run build && oclif manifest && oclif readme",
98
- "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
99
- "version": "oclif readme && git add README.md"
87
+ "test": "vitest",
88
+ "coverage": "vitest run --coverage",
89
+ "version": "oclif readme && git add README.md",
90
+ "posttest": "biome check",
91
+ "biome-ci": "biome ci --reporter=github",
92
+ "gql-codegen": "graphql-codegen",
93
+ "get-gql-schema": "get-graphql-schema http://localhost:3000/query > schema.graphql && biome check --write schema.graphql"
100
94
  },
101
95
  "types": "lib/index.d.ts"
102
96
  }