@adobe/helix-admin-support 2.1.22 → 2.1.23

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
+ ## [2.1.23](https://github.com/adobe/helix-admin-support/compare/v2.1.22...v2.1.23) (2023-06-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update external fixes ([#160](https://github.com/adobe/helix-admin-support/issues/160)) ([9bfe1bb](https://github.com/adobe/helix-admin-support/commit/9bfe1bbeb31820cad7e33b8b6967a659b9e9ee8b))
7
+
1
8
  ## [2.1.22](https://github.com/adobe/helix-admin-support/compare/v2.1.21...v2.1.22) (2023-06-10)
2
9
 
3
10
 
package/docs/README.md CHANGED
@@ -58,6 +58,8 @@
58
58
 
59
59
  * [Untitled array in ProjectConfig](./project-config-properties-siteaccessconfig-properties-apikeyid-oneof-1.md) – `https://ns.adobe.com/helix/config/project#/properties/access/properties/apiKeyId/oneOf/1`
60
60
 
61
+ * [Untitled array in ProjectConfig](./project-config-properties-adminconfig-properties-apikeyid-oneof-1.md) – `https://ns.adobe.com/helix/config/project#/properties/admin/properties/apiKeyId/oneOf/1`
62
+
61
63
  ## Version Note
62
64
 
63
65
  The schemas linked above follow the JSON Schema Spec version: `http://json-schema.org/draft-07/schema#`
@@ -0,0 +1,15 @@
1
+ # Untitled string in ProjectConfig Schema
2
+
3
+ ```txt
4
+ https://ns.adobe.com/helix/config/project#/properties/admin/properties/apiKeyId/oneOf/0
5
+ ```
6
+
7
+
8
+
9
+ | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
+ | :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------------- |
11
+ | Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [project-config.schema.json\*](project-config.schema.json "open original schema") |
12
+
13
+ ## 0 Type
14
+
15
+ `string`
@@ -0,0 +1,15 @@
1
+ # Untitled string in ProjectConfig Schema
2
+
3
+ ```txt
4
+ https://ns.adobe.com/helix/config/project#/properties/admin/properties/apiKeyId/oneOf/1/items
5
+ ```
6
+
7
+
8
+
9
+ | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
+ | :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------------- |
11
+ | Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [project-config.schema.json\*](project-config.schema.json "open original schema") |
12
+
13
+ ## items Type
14
+
15
+ `string`
@@ -0,0 +1,15 @@
1
+ # Untitled array in ProjectConfig Schema
2
+
3
+ ```txt
4
+ https://ns.adobe.com/helix/config/project#/properties/admin/properties/apiKeyId/oneOf/1
5
+ ```
6
+
7
+
8
+
9
+ | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
+ | :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------------- |
11
+ | Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [project-config.schema.json\*](project-config.schema.json "open original schema") |
12
+
13
+ ## 1 Type
14
+
15
+ `string[]`
@@ -0,0 +1,21 @@
1
+ # Untitled undefined type in ProjectConfig Schema
2
+
3
+ ```txt
4
+ https://ns.adobe.com/helix/config/project#/properties/admin/properties/apiKeyId
5
+ ```
6
+
7
+ the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.
8
+
9
+ | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
+ | :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------------- |
11
+ | Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [project-config.schema.json\*](project-config.schema.json "open original schema") |
12
+
13
+ ## apiKeyId Type
14
+
15
+ merged type ([Details](project-config-properties-adminconfig-properties-apikeyid.md))
16
+
17
+ one (and only one) of
18
+
19
+ * [Untitled string in ProjectConfig](project-config-properties-adminconfig-properties-apikeyid-oneof-0.md "check type definition")
20
+
21
+ * [Untitled array in ProjectConfig](project-config-properties-adminconfig-properties-apikeyid-oneof-1.md "check type definition")
@@ -16,9 +16,10 @@ https://ns.adobe.com/helix/config/project#/properties/admin
16
16
 
17
17
  # admin Properties
18
18
 
19
- | Property | Type | Required | Nullable | Defined by |
20
- | :------------ | :------- | :------- | :------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------ |
21
- | [role](#role) | `object` | Optional | cannot be null | [ProjectConfig](project-config-properties-adminconfig-properties-role.md "https://ns.adobe.com/helix/config/project#/properties/admin/properties/role") |
19
+ | Property | Type | Required | Nullable | Defined by |
20
+ | :-------------------- | :------- | :------- | :------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | [role](#role) | `object` | Optional | cannot be null | [ProjectConfig](project-config-properties-adminconfig-properties-role.md "https://ns.adobe.com/helix/config/project#/properties/admin/properties/role") |
22
+ | [apiKeyId](#apikeyid) | Merged | Optional | cannot be null | [ProjectConfig](project-config-properties-adminconfig-properties-apikeyid.md "https://ns.adobe.com/helix/config/project#/properties/admin/properties/apiKeyId") |
22
23
 
23
24
  ## role
24
25
 
@@ -37,3 +38,27 @@ https://ns.adobe.com/helix/config/project#/properties/admin
37
38
  ### role Type
38
39
 
39
40
  `object` ([Role](project-config-properties-adminconfig-properties-role.md))
41
+
42
+ ## apiKeyId
43
+
44
+ the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.
45
+
46
+ `apiKeyId`
47
+
48
+ * is optional
49
+
50
+ * Type: merged type ([Details](project-config-properties-adminconfig-properties-apikeyid.md))
51
+
52
+ * cannot be null
53
+
54
+ * defined in: [ProjectConfig](project-config-properties-adminconfig-properties-apikeyid.md "https://ns.adobe.com/helix/config/project#/properties/admin/properties/apiKeyId")
55
+
56
+ ### apiKeyId Type
57
+
58
+ merged type ([Details](project-config-properties-adminconfig-properties-apikeyid.md))
59
+
60
+ one (and only one) of
61
+
62
+ * [Untitled string in ProjectConfig](project-config-properties-adminconfig-properties-apikeyid-oneof-0.md "check type definition")
63
+
64
+ * [Untitled array in ProjectConfig](project-config-properties-adminconfig-properties-apikeyid-oneof-1.md "check type definition")
@@ -1 +1 @@
1
- {"meta:license":["Copyright 2023 Adobe. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the \"License\");","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0","","Unless required by applicable law or agreed to in writing, software distributed under","the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS","OF ANY KIND, either express or implied. See the License for the specific language","governing permissions and limitations under the License."],"$id":"https://ns.adobe.com/helix/config/project","$schema":"http://json-schema.org/draft-07/schema#","$defs":{"emailglob":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"matches one or several users or group of users"}},"title":"ProjectConfig","type":"object","properties":{"name":{"type":"string","description":"Name of the project used by the slack bot when reporting."},"project":{"type":"string","description":"Name of the project used by the sidekick."},"timezone":{"type":"string","description":"Timezone to be used by the slack bot when reporting times.","examples":["Europe/Zurich"]},"host":{"type":"string","description":"Production host use by the slack bot to display project information."},"blueprint":{"type":"string","description":"configuration blueprint repository in the owner/repo format.","examples":["adobe/helix-website"]},"slack":{"description":"the slack teamId/channelID(s) where the slack bot is used.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"cdn":{"description":"The CDN config","$ref":"./project-config-cdn.schema.json"},"access":{"type":"object","title":"SiteAccessConfig","properties":{"allow":{"description":"The email glob of the users that are allowed.","$ref":"#/$defs/emailglob"},"apiKeyId":{"description":"the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"require":{"type":"object","properties":{"repository":{"description":"The list of owner/repo pointers to projects that are allowed to use this content.","examples":["adobe/*","hlxsites/wknd"],"$ref":"#/$defs/emailglob"}},"required":["repository"],"additionalProperties":false}},"required":["allow"],"additionalProperties":false},"admin":{"title":"AdminConfig","type":"object","properties":{"role":{"title":"Role","type":"object","properties":{"author":{"description":"The email glob of the users with author role.","$ref":"#/$defs/emailglob"},"publish":{"description":"The email glob of the users with publish role.","$ref":"#/$defs/emailglob"}},"required":["role"],"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}
1
+ {"meta:license":["Copyright 2023 Adobe. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the \"License\");","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0","","Unless required by applicable law or agreed to in writing, software distributed under","the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS","OF ANY KIND, either express or implied. See the License for the specific language","governing permissions and limitations under the License."],"$id":"https://ns.adobe.com/helix/config/project","$schema":"http://json-schema.org/draft-07/schema#","$defs":{"emailglob":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"matches one or several users or group of users"}},"title":"ProjectConfig","type":"object","properties":{"name":{"type":"string","description":"Name of the project used by the slack bot when reporting."},"project":{"type":"string","description":"Name of the project used by the sidekick."},"timezone":{"type":"string","description":"Timezone to be used by the slack bot when reporting times.","examples":["Europe/Zurich"]},"host":{"type":"string","description":"Production host use by the slack bot to display project information."},"blueprint":{"type":"string","description":"configuration blueprint repository in the owner/repo format.","examples":["adobe/helix-website"]},"slack":{"description":"the slack teamId/channelID(s) where the slack bot is used.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"cdn":{"description":"The CDN config","$ref":"./project-config-cdn.schema.json"},"access":{"type":"object","title":"SiteAccessConfig","properties":{"allow":{"description":"The email glob of the users that are allowed.","$ref":"#/$defs/emailglob"},"apiKeyId":{"description":"the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"require":{"type":"object","properties":{"repository":{"description":"The list of owner/repo pointers to projects that are allowed to use this content.","examples":["adobe/*","hlxsites/wknd"],"$ref":"#/$defs/emailglob"}},"required":["repository"],"additionalProperties":false}},"required":["allow"],"additionalProperties":false},"admin":{"title":"AdminConfig","type":"object","properties":{"role":{"title":"Role","type":"object","properties":{"author":{"description":"The email glob of the users with author role.","$ref":"#/$defs/emailglob"},"publish":{"description":"The email glob of the users with publish role.","$ref":"#/$defs/emailglob"}},"required":["role"],"additionalProperties":false},"apiKeyId":{"description":"the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"additionalProperties":false}},"additionalProperties":false}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-admin-support",
3
- "version": "2.1.22",
3
+ "version": "2.1.23",
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.0.13",
38
38
  "@adobe/helix-shared-config": "10.2.3",
39
39
  "@adobe/helix-shared-utils": "3.0.0",
40
- "@aws-sdk/client-s3": "3.350.0",
41
- "@aws-sdk/client-sqs": "3.350.0",
40
+ "@aws-sdk/client-s3": "3.354.0",
41
+ "@aws-sdk/client-sqs": "3.354.0",
42
42
  "@aws-sdk/node-http-handler": "3.350.0"
43
43
  },
44
44
  "devDependencies": {
@@ -48,7 +48,7 @@
48
48
  "@semantic-release/git": "10.0.1",
49
49
  "@semantic-release/npm": "10.0.4",
50
50
  "c8": "7.14.0",
51
- "eslint": "8.42.0",
51
+ "eslint": "8.43.0",
52
52
  "husky": "8.0.3",
53
53
  "jsdoc-to-markdown": "8.0.0",
54
54
  "json-schema-to-typescript": "13.0.2",
@@ -132,6 +132,20 @@
132
132
  },
133
133
  "required": [ "role" ],
134
134
  "additionalProperties": false
135
+ },
136
+ "apiKeyId": {
137
+ "description": "the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.",
138
+ "oneOf": [
139
+ {
140
+ "type": "string"
141
+ },
142
+ {
143
+ "type": "array",
144
+ "items": {
145
+ "type": "string"
146
+ }
147
+ }
148
+ ]
135
149
  }
136
150
  },
137
151
  "additionalProperties": false
@@ -140,6 +140,10 @@ export interface SiteAccessConfig {
140
140
  }
141
141
  export interface AdminConfig {
142
142
  role?: Role;
143
+ /**
144
+ * the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.
145
+ */
146
+ apiKeyId?: string | string[];
143
147
  }
144
148
  export interface Role {
145
149
  /**