@adobe/helix-config 3.4.4 → 3.5.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,10 @@
1
+ # [3.5.0](https://github.com/adobe/helix-config/compare/v3.4.4...v3.5.0) (2024-07-10)
2
+
3
+
4
+ ### Features
5
+
6
+ * refine roles ([#128](https://github.com/adobe/helix-config/issues/128)) ([4550be1](https://github.com/adobe/helix-config/commit/4550be179e6b0fe6bcc65742500bae6bb3c82486))
7
+
1
8
  ## [3.4.4](https://github.com/adobe/helix-config/compare/v3.4.3...v3.4.4) (2024-07-09)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config",
3
- "version": "3.4.4",
3
+ "version": "3.5.0",
4
4
  "description": "Helix Config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -43,7 +43,19 @@
43
43
  "defaultRole": {
44
44
  "description": "the default roles assigned to the users. defaults to `basic_publish` for unauthenticated setups.",
45
45
  "type": "array",
46
- "items": {"type": "string"}
46
+ "items": {
47
+ "type": "string",
48
+ "enum": [
49
+ "admin",
50
+ "author",
51
+ "publish",
52
+ "develop",
53
+ "basic_author",
54
+ "basic_publish",
55
+ "config",
56
+ "config_admin"
57
+ ]
58
+ }
47
59
  },
48
60
  "apiKeyId": {
49
61
  "description": "the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.",
@@ -33,6 +33,9 @@
33
33
  "admin",
34
34
  "author",
35
35
  "publish",
36
+ "develop",
37
+ "basic_author",
38
+ "basic_publish",
36
39
  "config",
37
40
  "config_admin"
38
41
  ]
@@ -43,7 +43,7 @@ export interface HttpsNsAdobeComHelixConfigUser {
43
43
  id: string;
44
44
  email: string;
45
45
  name?: string;
46
- roles: ('admin' | 'author' | 'publish' | 'config' | 'config_admin')[];
46
+ roles: ('admin' | 'author' | 'publish' | 'develop' | 'basic_author' | 'basic_publish' | 'config' | 'config_admin')[];
47
47
  }
48
48
  export interface Groups {
49
49
  [k: string]: Group;
@@ -220,7 +220,16 @@ export interface AdminAccessConfig {
220
220
  /**
221
221
  * the default roles assigned to the users. defaults to `basic_publish` for unauthenticated setups.
222
222
  */
223
- defaultRole?: string[];
223
+ defaultRole?: (
224
+ | 'admin'
225
+ | 'author'
226
+ | 'publish'
227
+ | 'develop'
228
+ | 'basic_author'
229
+ | 'basic_publish'
230
+ | 'config'
231
+ | 'config_admin'
232
+ )[];
224
233
  /**
225
234
  * the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.
226
235
  */
@@ -228,7 +228,16 @@ export interface AdminAccessConfig {
228
228
  /**
229
229
  * the default roles assigned to the users. defaults to `basic_publish` for unauthenticated setups.
230
230
  */
231
- defaultRole?: string[];
231
+ defaultRole?: (
232
+ | 'admin'
233
+ | 'author'
234
+ | 'publish'
235
+ | 'develop'
236
+ | 'basic_author'
237
+ | 'basic_publish'
238
+ | 'config'
239
+ | 'config_admin'
240
+ )[];
232
241
  /**
233
242
  * the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.
234
243
  */