@adobe/helix-admin-support 2.2.20 → 2.3.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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [2.3.0](https://github.com/adobe/helix-admin-support/compare/v2.2.21...v2.3.0) (2023-11-08)
2
+
3
+
4
+ ### Features
5
+
6
+ * add defaultRole ([#201](https://github.com/adobe/helix-admin-support/issues/201)) ([5115488](https://github.com/adobe/helix-admin-support/commit/5115488c6ef639cf7dac3e8ff2129ee3abecd44e))
7
+
8
+ ## [2.2.21](https://github.com/adobe/helix-admin-support/compare/v2.2.20...v2.2.21) (2023-11-04)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update external fixes ([cf123fd](https://github.com/adobe/helix-admin-support/commit/cf123fd90990472f225e210b67b894daad3f9a4b))
14
+
1
15
  ## [2.2.20](https://github.com/adobe/helix-admin-support/compare/v2.2.19...v2.2.20) (2023-10-30)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-admin-support",
3
- "version": "2.2.20",
3
+ "version": "2.3.0",
4
4
  "description": "Helix Admin Support Library",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -37,8 +37,8 @@
37
37
  "@adobe/fetch": "4.1.1",
38
38
  "@adobe/helix-shared-config": "10.3.6",
39
39
  "@adobe/helix-shared-utils": "3.0.0",
40
- "@aws-sdk/client-s3": "3.438.0",
41
- "@aws-sdk/client-sqs": "3.438.0",
40
+ "@aws-sdk/client-s3": "3.441.0",
41
+ "@aws-sdk/client-sqs": "3.441.0",
42
42
  "@aws-sdk/node-http-handler": "3.370.0"
43
43
  },
44
44
  "devDependencies": {
@@ -46,9 +46,9 @@
46
46
  "@adobe/jsonschema2md": "7.1.5",
47
47
  "@semantic-release/changelog": "6.0.3",
48
48
  "@semantic-release/git": "10.0.1",
49
- "@semantic-release/npm": "11.0.0",
49
+ "@semantic-release/npm": "11.0.1",
50
50
  "c8": "8.0.1",
51
- "eslint": "8.52.0",
51
+ "eslint": "8.53.0",
52
52
  "husky": "8.0.3",
53
53
  "jsdoc-to-markdown": "8.0.0",
54
54
  "json-schema-to-typescript": "13.1.1",
@@ -56,9 +56,9 @@
56
56
  "lint-staged": "15.0.2",
57
57
  "mocha": "10.2.0",
58
58
  "mocha-multi-reporters": "1.5.1",
59
- "nock": "13.3.6",
60
- "semantic-release": "22.0.5",
61
- "yaml": "2.3.3"
59
+ "nock": "13.3.8",
60
+ "semantic-release": "22.0.7",
61
+ "yaml": "2.3.4"
62
62
  },
63
63
  "lint-staged": {
64
64
  "*.js": "eslint",
@@ -156,6 +156,20 @@
156
156
  }
157
157
  ]
158
158
  },
159
+ "defaultRole": {
160
+ "description": "the default roles assigned to the users. defaults to `basic_publish` for unauthenticated setups.",
161
+ "oneOf": [
162
+ {
163
+ "type": "string"
164
+ },
165
+ {
166
+ "type": "array",
167
+ "items": {
168
+ "type": "string"
169
+ }
170
+ }
171
+ ]
172
+ },
159
173
  "apiKeyId": {
160
174
  "description": "the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.",
161
175
  "oneOf": [
@@ -153,6 +153,10 @@ export interface AdminConfig {
153
153
  * Enforce authentication if set to true. If set to 'auto' it will enforce authentication if a role mapping is defined. defaults to 'auto'.
154
154
  */
155
155
  requireAuth?: boolean | 'auto';
156
+ /**
157
+ * the default roles assigned to the users. defaults to `basic_publish` for unauthenticated setups.
158
+ */
159
+ defaultRole?: string | string[];
156
160
  /**
157
161
  * the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.
158
162
  */