@adobe/helix-config-storage 1.0.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/.eslintrc.cjs +16 -0
- package/.husky/pre-commit +1 -0
- package/.mocha-multi.json +6 -0
- package/.nycrc.json +10 -0
- package/.releaserc.cjs +16 -0
- package/CHANGELOG.md +877 -0
- package/CODE_OF_CONDUCT.md +74 -0
- package/CONTRIBUTING.md +74 -0
- package/LICENSE.txt +264 -0
- package/README.md +40 -0
- package/package.json +71 -0
- package/src/ValidationError.js +95 -0
- package/src/config-merge.js +145 -0
- package/src/config-store.js +359 -0
- package/src/config-validator.js +112 -0
- package/src/index.js +15 -0
- package/src/schemas/access-admin.schema.cjs +12 -0
- package/src/schemas/access-admin.schema.json +57 -0
- package/src/schemas/access-site.schema.cjs +12 -0
- package/src/schemas/access-site.schema.json +24 -0
- package/src/schemas/access.schema.cjs +12 -0
- package/src/schemas/access.schema.json +22 -0
- package/src/schemas/cdn-prod-akamai.schema.cjs +12 -0
- package/src/schemas/cdn-prod-akamai.schema.json +45 -0
- package/src/schemas/cdn-prod-cloudflare.schema.cjs +12 -0
- package/src/schemas/cdn-prod-cloudflare.schema.json +41 -0
- package/src/schemas/cdn-prod-cloudfront.schema.cjs +12 -0
- package/src/schemas/cdn-prod-cloudfront.schema.json +41 -0
- package/src/schemas/cdn-prod-fastly.schema.cjs +12 -0
- package/src/schemas/cdn-prod-fastly.schema.json +40 -0
- package/src/schemas/cdn-prod-managed.schema.cjs +12 -0
- package/src/schemas/cdn-prod-managed.schema.json +29 -0
- package/src/schemas/cdn.schema.cjs +12 -0
- package/src/schemas/cdn.schema.json +75 -0
- package/src/schemas/code.schema.cjs +12 -0
- package/src/schemas/code.schema.json +43 -0
- package/src/schemas/common.schema.cjs +12 -0
- package/src/schemas/common.schema.json +27 -0
- package/src/schemas/content-source-google.schema.cjs +12 -0
- package/src/schemas/content-source-google.schema.json +26 -0
- package/src/schemas/content-source-markup.schema.cjs +12 -0
- package/src/schemas/content-source-markup.schema.json +24 -0
- package/src/schemas/content-source-onedrive.schema.cjs +12 -0
- package/src/schemas/content-source-onedrive.schema.json +28 -0
- package/src/schemas/content.schema.cjs +12 -0
- package/src/schemas/content.schema.json +30 -0
- package/src/schemas/folders.schema.cjs +12 -0
- package/src/schemas/folders.schema.json +13 -0
- package/src/schemas/groups.schema.cjs +12 -0
- package/src/schemas/groups.schema.json +39 -0
- package/src/schemas/headers.schema.cjs +12 -0
- package/src/schemas/headers.schema.json +16 -0
- package/src/schemas/metadata-source.schema.cjs +12 -0
- package/src/schemas/metadata-source.schema.json +16 -0
- package/src/schemas/org.schema.cjs +12 -0
- package/src/schemas/org.schema.json +26 -0
- package/src/schemas/profile.schema.cjs +12 -0
- package/src/schemas/profile.schema.json +57 -0
- package/src/schemas/profiles.schema.cjs +12 -0
- package/src/schemas/profiles.schema.json +28 -0
- package/src/schemas/public.schema.cjs +12 -0
- package/src/schemas/public.schema.json +8 -0
- package/src/schemas/robots.schema.cjs +12 -0
- package/src/schemas/robots.schema.json +13 -0
- package/src/schemas/sidekick.schema.cjs +12 -0
- package/src/schemas/sidekick.schema.json +112 -0
- package/src/schemas/site.schema.cjs +12 -0
- package/src/schemas/site.schema.json +74 -0
- package/src/schemas/sites.schema.cjs +12 -0
- package/src/schemas/sites.schema.json +28 -0
- package/src/schemas/tokens.schema.cjs +12 -0
- package/src/schemas/tokens.schema.json +28 -0
- package/src/schemas/user.schema.cjs +12 -0
- package/src/schemas/user.schema.json +42 -0
- package/src/schemas/users.schema.cjs +12 -0
- package/src/schemas/users.schema.json +10 -0
- package/src/status-code-error.js +22 -0
- package/src/utils.js +223 -0
- package/types/org-config.d.ts +51 -0
- package/types/profile-config.d.ts +368 -0
- package/types/site-config.d.ts +375 -0
- package/validate-json-schemas.sh +32 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./access-site.schema.json');
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
|
|
3
|
+
"$id": "https://ns.adobe.com/helix/config/access/site",
|
|
4
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
5
|
+
"title": "Site Access Config",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"apiKeyId": {
|
|
9
|
+
"description": "IDs of the api keys (tokens) that are allowed.",
|
|
10
|
+
"type": "array",
|
|
11
|
+
"items": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"clientCertDN": {
|
|
16
|
+
"description": "the DNs of the client certificates that are allowed.",
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"additionalProperties": false
|
|
24
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./access.schema.json');
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
4
|
+
"$id": "https://ns.adobe.com/helix/config/access",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "Access",
|
|
7
|
+
"properties": {
|
|
8
|
+
"admin": {
|
|
9
|
+
"$ref": "https://ns.adobe.com/helix/config/access/admin"
|
|
10
|
+
},
|
|
11
|
+
"site": {
|
|
12
|
+
"$ref": "https://ns.adobe.com/helix/config/access/site"
|
|
13
|
+
},
|
|
14
|
+
"preview": {
|
|
15
|
+
"$ref": "https://ns.adobe.com/helix/config/access/site"
|
|
16
|
+
},
|
|
17
|
+
"live": {
|
|
18
|
+
"$ref": "https://ns.adobe.com/helix/config/access/site"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"additionalProperties": false
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./cdn-prod-akamai.schema.json');
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
|
|
3
|
+
"$id": "https://ns.adobe.com/helix/config/cdn/prod/akamai",
|
|
4
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
5
|
+
"title": "Akamai CDN Config",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "akamai"
|
|
11
|
+
},
|
|
12
|
+
"host": {
|
|
13
|
+
"description": "production host",
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"route": {
|
|
17
|
+
"description": "Routes on the CDN that are rendered with Franklin",
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"endpoint": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"clientSecret": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"clientToken": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"accessToken": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"type",
|
|
38
|
+
"host",
|
|
39
|
+
"endpoint",
|
|
40
|
+
"clientSecret",
|
|
41
|
+
"clientToken",
|
|
42
|
+
"accessToken"
|
|
43
|
+
],
|
|
44
|
+
"additionalProperties": false
|
|
45
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./cdn-prod-cloudflare.schema.json');
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
|
|
3
|
+
"$id": "https://ns.adobe.com/helix/config/cdn/prod/cloudflare",
|
|
4
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
5
|
+
"title": "Cloudflare CDN Config",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "cloudflare"
|
|
11
|
+
},
|
|
12
|
+
"host": {
|
|
13
|
+
"description": "production host",
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"route": {
|
|
17
|
+
"description": "Routes on the CDN that are rendered with Franklin",
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"plan": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"zoneId": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"apiToken": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"type",
|
|
35
|
+
"host",
|
|
36
|
+
"plan",
|
|
37
|
+
"zoneId",
|
|
38
|
+
"apiToken"
|
|
39
|
+
],
|
|
40
|
+
"additionalProperties": false
|
|
41
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./cdn-prod-cloudfront.schema.json');
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
|
|
3
|
+
"$id": "https://ns.adobe.com/helix/config/cdn/prod/cloudfront",
|
|
4
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
5
|
+
"title": "Cloudfront CDN Config",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "cloudfront"
|
|
11
|
+
},
|
|
12
|
+
"host": {
|
|
13
|
+
"description": "production host",
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"route": {
|
|
17
|
+
"description": "Routes on the CDN that are rendered with Franklin",
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"distributionId": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"accessKeyId": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"secretAccessKey": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"type",
|
|
35
|
+
"host",
|
|
36
|
+
"distributionId",
|
|
37
|
+
"accessKeyId",
|
|
38
|
+
"secretAccessKey"
|
|
39
|
+
],
|
|
40
|
+
"additionalProperties": false
|
|
41
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./cdn-prod-fastly.schema.json');
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
|
|
3
|
+
"$id": "https://ns.adobe.com/helix/config/cdn/prod/fastly",
|
|
4
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
5
|
+
"title": "Fastly CDN Config",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"description": "Production CDN configuration for Fastly",
|
|
8
|
+
"properties": {
|
|
9
|
+
"type": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"const": "fastly"
|
|
12
|
+
},
|
|
13
|
+
"host": {
|
|
14
|
+
"description": "production host",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"route": {
|
|
18
|
+
"description": "Routes on the CDN that are rendered with Franklin",
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"serviceId": {
|
|
25
|
+
"description": "The Fastly Service ID",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"authToken": {
|
|
29
|
+
"description": "A Fastly token for purging",
|
|
30
|
+
"type": "string"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"type",
|
|
35
|
+
"host",
|
|
36
|
+
"serviceId",
|
|
37
|
+
"authToken"
|
|
38
|
+
],
|
|
39
|
+
"additionalProperties": false
|
|
40
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./cdn-prod-managed.schema.json');
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
|
|
3
|
+
"$id": "https://ns.adobe.com/helix/config/cdn/prod/managed",
|
|
4
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
5
|
+
"title": "Managed CDN Config",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "managed"
|
|
11
|
+
},
|
|
12
|
+
"host": {
|
|
13
|
+
"description": "production host",
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"route": {
|
|
17
|
+
"description": "Routes on the CDN that are rendered with Franklin",
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": [
|
|
25
|
+
"type",
|
|
26
|
+
"host"
|
|
27
|
+
],
|
|
28
|
+
"additionalProperties": false
|
|
29
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./cdn.schema.json');
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
|
|
3
|
+
"$id": "https://ns.adobe.com/helix/config/cdn",
|
|
4
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
5
|
+
"title": "CDN Config",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"prod": {
|
|
9
|
+
"oneOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "https://ns.adobe.com/helix/config/cdn/prod/fastly"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "https://ns.adobe.com/helix/config/cdn/prod/cloudflare"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"$ref": "https://ns.adobe.com/helix/config/cdn/prod/akamai"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"$ref": "https://ns.adobe.com/helix/config/cdn/prod/managed"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"$ref": "https://ns.adobe.com/helix/config/cdn/prod/cloudfront"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "object",
|
|
27
|
+
"title": "EmptyConfig",
|
|
28
|
+
"properties": {
|
|
29
|
+
"host": {
|
|
30
|
+
"description": "production host",
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": [
|
|
35
|
+
"host"
|
|
36
|
+
],
|
|
37
|
+
"additionalProperties": false
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"live": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"properties": {
|
|
44
|
+
"host": {
|
|
45
|
+
"description": "Sidekick config to override the default preview host. it supports parameters $owner and $repo",
|
|
46
|
+
"examples": [
|
|
47
|
+
"main--$repo--page.example.com"
|
|
48
|
+
],
|
|
49
|
+
"type": "string"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": [
|
|
53
|
+
"host"
|
|
54
|
+
],
|
|
55
|
+
"additionalProperties": false
|
|
56
|
+
},
|
|
57
|
+
"preview": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"properties": {
|
|
60
|
+
"host": {
|
|
61
|
+
"description": "Sidekick config to override the default live host. it supports parameters $owner and $repo",
|
|
62
|
+
"examples": [
|
|
63
|
+
"main--$repo--live.example.com\""
|
|
64
|
+
],
|
|
65
|
+
"type": "string"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"required": [
|
|
69
|
+
"host"
|
|
70
|
+
],
|
|
71
|
+
"additionalProperties": false
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"additionalProperties": false
|
|
75
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./code.schema.json');
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
4
|
+
"$id": "https://ns.adobe.com/helix/config/code",
|
|
5
|
+
"title": "Code source",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"description": "Defines the code bus location and source.",
|
|
8
|
+
"properties": {
|
|
9
|
+
"title": { "$ref": "https://ns.adobe.com/helix/config/common#/definitions/title" },
|
|
10
|
+
"description": { "$ref": "https://ns.adobe.com/helix/config/common#/definitions/description" },
|
|
11
|
+
"owner": {
|
|
12
|
+
"$comment": "Note, that owner/repo are no longer part of the hostname and can therefor have more allowed characters than in helix4",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"pattern": "[a-zA-Z0-9_-]+"
|
|
15
|
+
},
|
|
16
|
+
"repo": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"pattern": "[a-zA-Z0-9_-]+"
|
|
19
|
+
},
|
|
20
|
+
"source": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"type": {
|
|
24
|
+
"const": "github"
|
|
25
|
+
},
|
|
26
|
+
"url": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": "uri"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": [
|
|
32
|
+
"type",
|
|
33
|
+
"url"
|
|
34
|
+
],
|
|
35
|
+
"additionalProperties": false
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"required": [
|
|
39
|
+
"owner",
|
|
40
|
+
"repo",
|
|
41
|
+
"source"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./common.schema.json');
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
4
|
+
"$id": "https://ns.adobe.com/helix/config/common",
|
|
5
|
+
"definitions": {
|
|
6
|
+
"title": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "human readable title. has no influence on the configuration."
|
|
9
|
+
},
|
|
10
|
+
"description": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "description for clarity. has no influence on the configuration."
|
|
13
|
+
},
|
|
14
|
+
"keyValuePair": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"key": {"type": "string"},
|
|
18
|
+
"value": {"type": "string"}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"key",
|
|
22
|
+
"value"
|
|
23
|
+
],
|
|
24
|
+
"additionalProperties": false
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./content-source-google.schema.json');
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
4
|
+
"$id": "https://ns.adobe.com/helix/config/content-source/google",
|
|
5
|
+
"title": "Google Content Source",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"type": {
|
|
9
|
+
"const": "google"
|
|
10
|
+
},
|
|
11
|
+
"url": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"format": "uri"
|
|
14
|
+
},
|
|
15
|
+
"id": {
|
|
16
|
+
"description": "Google drive ID of the root folder; updated automatically when updating the url.",
|
|
17
|
+
"type": "string"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"type",
|
|
22
|
+
"url",
|
|
23
|
+
"id"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./content-source-markup.schema.json');
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
4
|
+
"$id": "https://ns.adobe.com/helix/config/content-source/markup",
|
|
5
|
+
"title": "Markup Content Source",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"type": {
|
|
9
|
+
"const": "markup"
|
|
10
|
+
},
|
|
11
|
+
"url": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"format": "uri"
|
|
14
|
+
},
|
|
15
|
+
"suffix": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"required": [
|
|
20
|
+
"type",
|
|
21
|
+
"url"
|
|
22
|
+
],
|
|
23
|
+
"additionalProperties": false
|
|
24
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./content-source-onedrive.schema.json');
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
4
|
+
"$id": "https://ns.adobe.com/helix/config/content-source/onedrive",
|
|
5
|
+
"title": "Onedrive Content Source",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"type": {
|
|
9
|
+
"const": "onedrive"
|
|
10
|
+
},
|
|
11
|
+
"url": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"format": "uri"
|
|
14
|
+
},
|
|
15
|
+
"tenantId": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"itemId": {
|
|
19
|
+
"description": "onedrive item ID of the root folder; currently not required as we don't know how setup will work.",
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": [
|
|
24
|
+
"type",
|
|
25
|
+
"url"
|
|
26
|
+
],
|
|
27
|
+
"additionalProperties": false
|
|
28
|
+
}
|