@flowcore/cli-plugin-iam 1.6.1 → 1.8.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 (47) hide show
  1. package/README.md +396 -7
  2. package/bin/dev.js +2 -2
  3. package/bin/run.js +2 -2
  4. package/dist/commands/assign/policy.d.ts +16 -0
  5. package/dist/commands/assign/policy.js +124 -0
  6. package/dist/commands/assign/role.d.ts +15 -0
  7. package/dist/commands/assign/role.js +98 -0
  8. package/dist/commands/create/policy.d.ts +16 -0
  9. package/dist/commands/create/policy.js +110 -0
  10. package/dist/commands/create/role.d.ts +14 -0
  11. package/dist/commands/create/role.js +78 -0
  12. package/dist/commands/edit/policy.js +3 -3
  13. package/dist/commands/edit/role.js +3 -3
  14. package/dist/commands/get/key-policies.d.ts +13 -0
  15. package/dist/commands/get/key-policies.js +79 -0
  16. package/dist/commands/get/key-roles.d.ts +13 -0
  17. package/dist/commands/get/key-roles.js +75 -0
  18. package/dist/commands/get/user-policies.d.ts +14 -0
  19. package/dist/commands/get/user-policies.js +94 -0
  20. package/dist/commands/get/user-roles.d.ts +14 -0
  21. package/dist/commands/get/user-roles.js +90 -0
  22. package/dist/commands/unassign/policy.d.ts +17 -0
  23. package/dist/commands/unassign/policy.js +143 -0
  24. package/dist/commands/unassign/role.d.ts +16 -0
  25. package/dist/commands/unassign/role.js +117 -0
  26. package/dist/commands/validate/key.d.ts +15 -0
  27. package/dist/commands/validate/key.js +106 -0
  28. package/dist/commands/validate/user.d.ts +15 -0
  29. package/dist/commands/validate/user.js +106 -0
  30. package/dist/index.d.ts +1 -1
  31. package/dist/index.js +1 -1
  32. package/dist/resource-types/iam-api-version.js +2 -2
  33. package/dist/resource-types/policy.resource.d.ts +8 -7
  34. package/dist/resource-types/policy.resource.js +7 -4
  35. package/dist/resource-types/role-binding.resource.d.ts +4 -4
  36. package/dist/resource-types/role.resource.d.ts +3 -3
  37. package/dist/resource-types/role.resource.js +2 -2
  38. package/dist/utils/combine-merge.util.d.ts +1 -1
  39. package/dist/utils/combine-merge.util.js +1 -1
  40. package/dist/utils/error-message.util.d.ts +1 -0
  41. package/dist/utils/error-message.util.js +4 -0
  42. package/dist/utils/fetch-manifest.util.js +2 -2
  43. package/dist/utils/read-pipe.util.js +5 -5
  44. package/oclif.manifest.json +964 -69
  45. package/package.json +18 -11
  46. package/.npmrc +0 -1
  47. package/CHANGELOG.md +0 -124
package/package.json CHANGED
@@ -26,6 +26,7 @@
26
26
  },
27
27
  "description": "Flowcore CLI plugin for managing the IAM of the Flowcore Platform",
28
28
  "devDependencies": {
29
+ "@biomejs/biome": "1.9.4",
29
30
  "@oclif/prettier-config": "^0.2.1",
30
31
  "@oclif/test": "^4.0.9",
31
32
  "@types/chai": "^4",
@@ -50,12 +51,7 @@
50
51
  "engines": {
51
52
  "node": ">=18.0.0"
52
53
  },
53
- "files": [
54
- "/bin",
55
- "/dist",
56
- "/oclif.manifest.json",
57
- ".npmrc"
58
- ],
54
+ "files": ["/bin", "/dist", "/oclif.manifest.json", ".npmrc"],
59
55
  "homepage": "https://github.com/flowcore-io/cli-plugin-iam",
60
56
  "license": "MIT",
61
57
  "main": "",
@@ -76,13 +72,26 @@
76
72
  "topics": {
77
73
  "iam": {
78
74
  "description": "Flowcore CLI plugin for managing the IAM of the Flowcore Platform"
75
+ },
76
+ "assign": {
77
+ "description": "Assign policies or roles to users, keys, or roles"
78
+ },
79
+ "create": {
80
+ "description": "Create IAM resources (policies, roles)"
81
+ },
82
+ "unassign": {
83
+ "description": "Remove policy or role assignments from users, keys, or roles"
84
+ },
85
+ "validate": {
86
+ "description": "Validate whether a user or key has access to perform actions on resources"
79
87
  }
80
88
  }
81
89
  },
82
90
  "repository": "flowcore-io/cli-plugin-iam",
83
91
  "scripts": {
84
92
  "build": "shx rm -rf dist && tsc -b",
85
- "lint": "eslint . --ext .ts",
93
+ "lint": "biome lint",
94
+ "format": "biome format",
86
95
  "postpack": "shx rm -f oclif.manifest.json",
87
96
  "posttest": "yarn run lint",
88
97
  "prepack": "yarn run build && oclif manifest && oclif readme",
@@ -91,11 +100,9 @@
91
100
  "version": "oclif readme && git add README.md",
92
101
  "update-schema": "rover graph introspect https://graph.api.flowcore.io/graphql -o schema.gql"
93
102
  },
94
- "version": "1.6.1",
103
+ "version": "1.8.0",
95
104
  "bugs": "https://github.com/flowcore-io/cli-plugin-iam/issues",
96
- "keywords": [
97
- "oclif"
98
- ],
105
+ "keywords": ["oclif"],
99
106
  "types": "dist/index.d.ts",
100
107
  "exports": "./dist/index.js",
101
108
  "type": "module"
package/.npmrc DELETED
@@ -1 +0,0 @@
1
- @jsr:registry=https://npm.jsr.io
package/CHANGELOG.md DELETED
@@ -1,124 +0,0 @@
1
- # Changelog
2
-
3
- ## [1.6.1](https://github.com/flowcore-io/cli-plugin-iam/compare/v1.6.0...v1.6.1) (2025-03-20)
4
-
5
-
6
- ### Bug Fixes
7
-
8
- * **role:** :art: improve formatting in GetRole command output, removed console logs ([ee41739](https://github.com/flowcore-io/cli-plugin-iam/commit/ee417394174d567abf48133d767ba70bedb2bdc2))
9
-
10
- ## [1.6.0](https://github.com/flowcore-io/cli-plugin-iam/compare/v1.5.0...v1.6.0) (2025-02-16)
11
-
12
-
13
- ### Features
14
-
15
- * add edit role command to modify role details interactively ([d67eb3a](https://github.com/flowcore-io/cli-plugin-iam/commit/d67eb3a28d25ca7cac0683fb9aeb6f478386f8e8))
16
-
17
-
18
- ### Bug Fixes
19
-
20
- * :rotating_light: fixed linting errors ([7f481bd](https://github.com/flowcore-io/cli-plugin-iam/commit/7f481bd90bf67edfbd483dbd351b52ebba0d0bd2))
21
-
22
- ## [1.5.0](https://github.com/flowcore-io/cli-plugin-iam/compare/v1.4.0...v1.5.0) (2025-02-16)
23
-
24
-
25
- ### Features
26
-
27
- * add edit policy command to modify policy details interactively ([061e036](https://github.com/flowcore-io/cli-plugin-iam/commit/061e036e07fb076017543b8ed232f9077d615a72))
28
-
29
-
30
- ### Bug Fixes
31
-
32
- * :rotating_light: fixed linting errors ([ff60a54](https://github.com/flowcore-io/cli-plugin-iam/commit/ff60a54131d35bfbc7f8b0ca3985e6a6528be8ae))
33
- * update GitHub Actions runners to use blacksmith infrastructure ([826d577](https://github.com/flowcore-io/cli-plugin-iam/commit/826d577d8145442b1e35b7268a6f7a5482047509))
34
-
35
- ## [1.4.0](https://github.com/flowcore-io/cli-plugin-iam/compare/v1.3.1...v1.4.0) (2024-11-08)
36
-
37
-
38
- ### Features
39
-
40
- * :sparkles: added frn to role and policy display ([9cb9140](https://github.com/flowcore-io/cli-plugin-iam/commit/9cb9140242aaecdedc669cde48c1611ed53610ac))
41
-
42
-
43
- ### Bug Fixes
44
-
45
- * :rotating_light: fixed linting errors ([7e5249e](https://github.com/flowcore-io/cli-plugin-iam/commit/7e5249e90c075b60a71c996184bb7a7fc9465bf6))
46
-
47
- ## [1.3.1](https://github.com/flowcore-io/cli-plugin-iam/compare/v1.3.0...v1.3.1) (2024-10-23)
48
-
49
-
50
- ### Bug Fixes
51
-
52
- * **configuration:** :fire: removed jit hook ([dbe7b12](https://github.com/flowcore-io/cli-plugin-iam/commit/dbe7b1285d5877e3baf3255e84f8f64a2adeb1d9))
53
-
54
- ## [1.3.0](https://github.com/flowcore-io/cli-plugin-iam/compare/v1.2.3...v1.3.0) (2024-10-23)
55
-
56
-
57
- ### Features
58
-
59
- * **configuration:** :rocket: added JIT plugin install hook ([14c918b](https://github.com/flowcore-io/cli-plugin-iam/commit/14c918b4de2c0daeaae224937de19f571ba92aae))
60
-
61
-
62
- ### Bug Fixes
63
-
64
- * **configuration:** :rotating_light: fixed linting errors ([08fe8f1](https://github.com/flowcore-io/cli-plugin-iam/commit/08fe8f182661997a7e05b1a35aa272b98e7e6df7))
65
-
66
- ## [1.2.3](https://github.com/flowcore-io/cli-plugin-iam/compare/v1.2.2...v1.2.3) (2024-10-23)
67
-
68
-
69
- ### Bug Fixes
70
-
71
- * **configuration:** :rocket: moved back to using jsr ([e3c107c](https://github.com/flowcore-io/cli-plugin-iam/commit/e3c107cedec7962e72eb13333015af9f3525bfd1))
72
- * include npmrc file in package ([1332d3e](https://github.com/flowcore-io/cli-plugin-iam/commit/1332d3e5b17024ed0a1e6e3cad2d5b8b8d2ee7dc))
73
-
74
- ## [1.2.2](https://github.com/flowcore-io/cli-plugin-iam/compare/v1.2.1...v1.2.2) (2024-10-22)
75
-
76
-
77
- ### Bug Fixes
78
-
79
- * **configuration:** :bug: changed capitalization of policy document action dto ([6db5015](https://github.com/flowcore-io/cli-plugin-iam/commit/6db5015a1574f4ca146808d19f4fab60df2ed909))
80
-
81
- ## [1.2.1](https://github.com/flowcore-io/cli-plugin-iam/compare/v1.2.0...v1.2.1) (2024-10-22)
82
-
83
-
84
- ### Bug Fixes
85
-
86
- * **configuration:** :bug: changed from prompt to enquirer import ([172ae77](https://github.com/flowcore-io/cli-plugin-iam/commit/172ae77e0a96f61786f334da1de8d2f388c10463))
87
-
88
- ## [1.2.0](https://github.com/flowcore-io/cli-plugin-iam/compare/v1.1.0...v1.2.0) (2024-10-22)
89
-
90
-
91
- ### Features
92
-
93
- * :sparkles: added delete and updated get for policies and roles ([22fe717](https://github.com/flowcore-io/cli-plugin-iam/commit/22fe71767c39f4a234583ae637d5204c7732900c))
94
-
95
-
96
- ### Bug Fixes
97
-
98
- * **configuration:** :bug: switched from jsr to npm for obj-diff ([141d75e](https://github.com/flowcore-io/cli-plugin-iam/commit/141d75e1b9efb1c5c851dfbfc466e03c58c8fcfa))
99
-
100
- ## [1.1.0](https://github.com/flowcore-io/cli-plugin-iam/compare/v1.0.0...v1.1.0) (2024-10-21)
101
-
102
-
103
- ### Features
104
-
105
- * :sparkles: added functionality to create and delete iam policies ([0916612](https://github.com/flowcore-io/cli-plugin-iam/commit/09166128f3d1180d019b301eab5ead0af3055dbd))
106
- * :sparkles: added policy and role bindings to the iam api ([a1815a0](https://github.com/flowcore-io/cli-plugin-iam/commit/a1815a093ad6743b26dd3cf7a4cfd0c32a8b4326))
107
-
108
-
109
- ### Bug Fixes
110
-
111
- * :fire: removed console log on create policy ([6289f72](https://github.com/flowcore-io/cli-plugin-iam/commit/6289f72ec7eff9b00fc6a15e928e448ca6403294))
112
- * :rotating_light: fixed linting errors ([b388ac6](https://github.com/flowcore-io/cli-plugin-iam/commit/b388ac6532d7d5c5c6c7fc1d401218bfbaa75b33))
113
-
114
- ## 1.0.0 (2024-09-29)
115
-
116
-
117
- ### Features
118
-
119
- * :tada: initial commit ([72c9ba6](https://github.com/flowcore-io/cli-plugin-iam/commit/72c9ba65bd10c43d7e6711fbc39eb877ee257bb2))
120
-
121
-
122
- ### Bug Fixes
123
-
124
- * **configuration:** :wrench: updated eslint configuration ([f9d2bac](https://github.com/flowcore-io/cli-plugin-iam/commit/f9d2bac01baa39963273922dbad697da6496a41b))