@adobe/helix-admin-support 2.3.0 → 2.3.2
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 +14 -0
- package/docs/README.md +3 -9
- package/docs/{project-config-properties-metadata-oneof-0.md → project-config-defs-stringorarray-oneof-0.md} +1 -1
- package/docs/{project-config-properties-metadata-oneof-1-items.md → project-config-defs-stringorarray-oneof-1-items.md} +1 -1
- package/docs/{project-config-properties-metadata-oneof-1.md → project-config-defs-stringorarray-oneof-1.md} +1 -1
- package/docs/{project-config-properties-adminconfig-properties-apikeyid.md → project-config-defs-stringorarray.md} +3 -3
- package/docs/project-config-properties-adminconfig-properties-role.md +16 -16
- package/docs/project-config-properties-adminconfig.md +31 -6
- package/docs/project-config-properties-siteaccessconfig-properties-accessconfig.md +70 -0
- package/docs/{project-config-properties-siteaccessconfig-properties-apikeyid-oneof-0.md → project-config-properties-siteaccessconfig-properties-live.md} +5 -5
- package/docs/project-config-properties-siteaccessconfig-properties-require.md +9 -9
- package/docs/project-config-properties-siteaccessconfig.md +55 -17
- package/docs/project-config.md +14 -14
- package/docs/project-config.schema.json +1 -1
- package/package.json +4 -4
- package/src/BatchedQueueClient.js +2 -2
- package/src/schemas/project-config.schema.json +42 -66
- package/types/project-config.d.ts +19 -1
- package/docs/project-config-defs-emailglob-oneof-0.md +0 -15
- package/docs/project-config-defs-emailglob-oneof-1-items.md +0 -15
- package/docs/project-config-defs-emailglob-oneof-1.md +0 -15
- package/docs/project-config-defs-emailglob.md +0 -21
- package/docs/project-config-properties-adminconfig-properties-apikeyid-oneof-0.md +0 -15
- package/docs/project-config-properties-adminconfig-properties-apikeyid-oneof-1-items.md +0 -15
- package/docs/project-config-properties-adminconfig-properties-apikeyid-oneof-1.md +0 -15
- package/docs/project-config-properties-metadata.md +0 -21
- package/docs/project-config-properties-siteaccessconfig-properties-apikeyid-oneof-1-items.md +0 -15
- package/docs/project-config-properties-siteaccessconfig-properties-apikeyid-oneof-1.md +0 -15
- package/docs/project-config-properties-siteaccessconfig-properties-apikeyid.md +0 -21
- package/docs/project-config-properties-slack-oneof-0.md +0 -15
- package/docs/project-config-properties-slack-oneof-1-items.md +0 -15
- package/docs/project-config-properties-slack-oneof-1.md +0 -15
- package/docs/project-config-properties-slack.md +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [2.3.2](https://github.com/adobe/helix-admin-support/compare/v2.3.1...v2.3.2) (2023-11-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add partition specific auth ([#203](https://github.com/adobe/helix-admin-support/issues/203)) ([47c5f15](https://github.com/adobe/helix-admin-support/commit/47c5f1517a8e5faae5d34c0c5c53af429ae5775f))
|
|
7
|
+
|
|
8
|
+
## [2.3.1](https://github.com/adobe/helix-admin-support/compare/v2.3.0...v2.3.1) (2023-11-13)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update external fixes ([#202](https://github.com/adobe/helix-admin-support/issues/202)) ([2a1e8fb](https://github.com/adobe/helix-admin-support/commit/2a1e8fbe3cf8b3f66010b965b1fd6547b306556d))
|
|
14
|
+
|
|
1
15
|
# [2.3.0](https://github.com/adobe/helix-admin-support/compare/v2.2.21...v2.3.0) (2023-11-08)
|
|
2
16
|
|
|
3
17
|
|
package/docs/README.md
CHANGED
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
|
|
15
15
|
### Objects
|
|
16
16
|
|
|
17
|
+
* [AccessConfig](./project-config-properties-siteaccessconfig-properties-accessconfig.md "Access config specific to preview content") – `https://ns.adobe.com/helix/config/project#/properties/access/properties/preview`
|
|
18
|
+
|
|
17
19
|
* [AdminConfig](./project-config-properties-adminconfig.md) – `https://ns.adobe.com/helix/config/project#/properties/admin`
|
|
18
20
|
|
|
19
21
|
* [AkamaiConfig](./project-config-cdn-properties-prod-oneof-akamaiconfig.md) – `https://ns.adobe.com/helix/config/cdn#/properties/prod/oneOf/1`
|
|
@@ -56,15 +58,7 @@
|
|
|
56
58
|
|
|
57
59
|
* [Untitled array in ProjectCDNConfig](./project-config-cdn-defs-stringorarray-oneof-1.md) – `https://ns.adobe.com/helix/config/cdn#/$defs/stringOrArray/oneOf/1`
|
|
58
60
|
|
|
59
|
-
* [Untitled array in ProjectConfig](./project-config-defs-
|
|
60
|
-
|
|
61
|
-
* [Untitled array in ProjectConfig](./project-config-properties-slack-oneof-1.md) – `https://ns.adobe.com/helix/config/project#/properties/slack/oneOf/1`
|
|
62
|
-
|
|
63
|
-
* [Untitled array in ProjectConfig](./project-config-properties-metadata-oneof-1.md) – `https://ns.adobe.com/helix/config/project#/properties/metadata/oneOf/1`
|
|
64
|
-
|
|
65
|
-
* [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`
|
|
66
|
-
|
|
67
|
-
* [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`
|
|
61
|
+
* [Untitled array in ProjectConfig](./project-config-defs-stringorarray-oneof-1.md) – `https://ns.adobe.com/helix/config/project#/$defs/stringOrArray/oneOf/1`
|
|
68
62
|
|
|
69
63
|
## Version Note
|
|
70
64
|
|
|
@@ -12,10 +12,10 @@ the id of the API key(s). this is used to validate the API KEYS and allows to in
|
|
|
12
12
|
|
|
13
13
|
## apiKeyId Type
|
|
14
14
|
|
|
15
|
-
merged type ([Details](project-config-
|
|
15
|
+
merged type ([Details](project-config-defs-stringorarray.md))
|
|
16
16
|
|
|
17
17
|
one (and only one) of
|
|
18
18
|
|
|
19
|
-
* [Untitled string in ProjectConfig](project-config-
|
|
19
|
+
* [Untitled string in ProjectConfig](project-config-defs-stringorarray-oneof-0.md "check type definition")
|
|
20
20
|
|
|
21
|
-
* [Untitled array in ProjectConfig](project-config-
|
|
21
|
+
* [Untitled array in ProjectConfig](project-config-defs-stringorarray-oneof-1.md "check type definition")
|
|
@@ -16,55 +16,55 @@ https://ns.adobe.com/helix/config/project#/properties/admin/properties/role
|
|
|
16
16
|
|
|
17
17
|
# role Properties
|
|
18
18
|
|
|
19
|
-
| Property | Type | Required | Nullable | Defined by
|
|
20
|
-
| :------------------ | :----- | :------- | :------------- |
|
|
21
|
-
| [author](#author) | Merged | Optional | cannot be null | [ProjectConfig](project-config-defs-
|
|
22
|
-
| [publish](#publish) | Merged | Optional | cannot be null | [ProjectConfig](project-config-defs-
|
|
19
|
+
| Property | Type | Required | Nullable | Defined by |
|
|
20
|
+
| :------------------ | :----- | :------- | :------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
21
|
+
| [author](#author) | Merged | Optional | cannot be null | [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/admin/properties/role/properties/author") |
|
|
22
|
+
| [publish](#publish) | Merged | Optional | cannot be null | [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/admin/properties/role/properties/publish") |
|
|
23
23
|
|
|
24
24
|
## author
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
The email glob of the users with author role.
|
|
27
27
|
|
|
28
28
|
`author`
|
|
29
29
|
|
|
30
30
|
* is optional
|
|
31
31
|
|
|
32
|
-
* Type: merged type ([Details](project-config-defs-
|
|
32
|
+
* Type: merged type ([Details](project-config-defs-stringorarray.md))
|
|
33
33
|
|
|
34
34
|
* cannot be null
|
|
35
35
|
|
|
36
|
-
* defined in: [ProjectConfig](project-config-defs-
|
|
36
|
+
* defined in: [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/admin/properties/role/properties/author")
|
|
37
37
|
|
|
38
38
|
### author Type
|
|
39
39
|
|
|
40
|
-
merged type ([Details](project-config-defs-
|
|
40
|
+
merged type ([Details](project-config-defs-stringorarray.md))
|
|
41
41
|
|
|
42
42
|
one (and only one) of
|
|
43
43
|
|
|
44
|
-
* [Untitled string in ProjectConfig](project-config-defs-
|
|
44
|
+
* [Untitled string in ProjectConfig](project-config-defs-stringorarray-oneof-0.md "check type definition")
|
|
45
45
|
|
|
46
|
-
* [Untitled array in ProjectConfig](project-config-defs-
|
|
46
|
+
* [Untitled array in ProjectConfig](project-config-defs-stringorarray-oneof-1.md "check type definition")
|
|
47
47
|
|
|
48
48
|
## publish
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
The email glob of the users with publish role.
|
|
51
51
|
|
|
52
52
|
`publish`
|
|
53
53
|
|
|
54
54
|
* is optional
|
|
55
55
|
|
|
56
|
-
* Type: merged type ([Details](project-config-defs-
|
|
56
|
+
* Type: merged type ([Details](project-config-defs-stringorarray.md))
|
|
57
57
|
|
|
58
58
|
* cannot be null
|
|
59
59
|
|
|
60
|
-
* defined in: [ProjectConfig](project-config-defs-
|
|
60
|
+
* defined in: [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/admin/properties/role/properties/publish")
|
|
61
61
|
|
|
62
62
|
### publish Type
|
|
63
63
|
|
|
64
|
-
merged type ([Details](project-config-defs-
|
|
64
|
+
merged type ([Details](project-config-defs-stringorarray.md))
|
|
65
65
|
|
|
66
66
|
one (and only one) of
|
|
67
67
|
|
|
68
|
-
* [Untitled string in ProjectConfig](project-config-defs-
|
|
68
|
+
* [Untitled string in ProjectConfig](project-config-defs-stringorarray-oneof-0.md "check type definition")
|
|
69
69
|
|
|
70
|
-
* [Untitled array in ProjectConfig](project-config-defs-
|
|
70
|
+
* [Untitled array in ProjectConfig](project-config-defs-stringorarray-oneof-1.md "check type definition")
|
|
@@ -20,7 +20,8 @@ https://ns.adobe.com/helix/config/project#/properties/admin
|
|
|
20
20
|
| :-------------------------- | :------- | :------- | :------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
21
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
22
|
| [requireAuth](#requireauth) | Merged | Optional | cannot be null | [ProjectConfig](project-config-properties-adminconfig-properties-requireauth.md "https://ns.adobe.com/helix/config/project#/properties/admin/properties/requireAuth") |
|
|
23
|
-
| [
|
|
23
|
+
| [defaultRole](#defaultrole) | Merged | Optional | cannot be null | [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/admin/properties/defaultRole") |
|
|
24
|
+
| [apiKeyId](#apikeyid) | Merged | Optional | cannot be null | [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/admin/properties/apiKeyId") |
|
|
24
25
|
| [events](#events) | `object` | Optional | cannot be null | [ProjectConfig](project-config-properties-adminconfig-properties-events.md "https://ns.adobe.com/helix/config/project#/properties/admin/properties/events") |
|
|
25
26
|
|
|
26
27
|
## role
|
|
@@ -73,6 +74,30 @@ The default value is:
|
|
|
73
74
|
"auto"
|
|
74
75
|
```
|
|
75
76
|
|
|
77
|
+
## defaultRole
|
|
78
|
+
|
|
79
|
+
the default roles assigned to the users. defaults to `basic_publish` for unauthenticated setups.
|
|
80
|
+
|
|
81
|
+
`defaultRole`
|
|
82
|
+
|
|
83
|
+
* is optional
|
|
84
|
+
|
|
85
|
+
* Type: merged type ([Details](project-config-defs-stringorarray.md))
|
|
86
|
+
|
|
87
|
+
* cannot be null
|
|
88
|
+
|
|
89
|
+
* defined in: [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/admin/properties/defaultRole")
|
|
90
|
+
|
|
91
|
+
### defaultRole Type
|
|
92
|
+
|
|
93
|
+
merged type ([Details](project-config-defs-stringorarray.md))
|
|
94
|
+
|
|
95
|
+
one (and only one) of
|
|
96
|
+
|
|
97
|
+
* [Untitled string in ProjectConfig](project-config-defs-stringorarray-oneof-0.md "check type definition")
|
|
98
|
+
|
|
99
|
+
* [Untitled array in ProjectConfig](project-config-defs-stringorarray-oneof-1.md "check type definition")
|
|
100
|
+
|
|
76
101
|
## apiKeyId
|
|
77
102
|
|
|
78
103
|
the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.
|
|
@@ -81,21 +106,21 @@ the id of the API key(s). this is used to validate the API KEYS and allows to in
|
|
|
81
106
|
|
|
82
107
|
* is optional
|
|
83
108
|
|
|
84
|
-
* Type: merged type ([Details](project-config-
|
|
109
|
+
* Type: merged type ([Details](project-config-defs-stringorarray.md))
|
|
85
110
|
|
|
86
111
|
* cannot be null
|
|
87
112
|
|
|
88
|
-
* defined in: [ProjectConfig](project-config-
|
|
113
|
+
* defined in: [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/admin/properties/apiKeyId")
|
|
89
114
|
|
|
90
115
|
### apiKeyId Type
|
|
91
116
|
|
|
92
|
-
merged type ([Details](project-config-
|
|
117
|
+
merged type ([Details](project-config-defs-stringorarray.md))
|
|
93
118
|
|
|
94
119
|
one (and only one) of
|
|
95
120
|
|
|
96
|
-
* [Untitled string in ProjectConfig](project-config-
|
|
121
|
+
* [Untitled string in ProjectConfig](project-config-defs-stringorarray-oneof-0.md "check type definition")
|
|
97
122
|
|
|
98
|
-
* [Untitled array in ProjectConfig](project-config-
|
|
123
|
+
* [Untitled array in ProjectConfig](project-config-defs-stringorarray-oneof-1.md "check type definition")
|
|
99
124
|
|
|
100
125
|
## events
|
|
101
126
|
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# AccessConfig Schema
|
|
2
|
+
|
|
3
|
+
```txt
|
|
4
|
+
https://ns.adobe.com/helix/config/project#/properties/access/properties/preview
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
Access config specific to preview content
|
|
8
|
+
|
|
9
|
+
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
|
|
10
|
+
| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------------- |
|
|
11
|
+
| Can be instantiated | No | Unknown status | No | Forbidden | Forbidden | none | [project-config.schema.json\*](project-config.schema.json "open original schema") |
|
|
12
|
+
|
|
13
|
+
## preview Type
|
|
14
|
+
|
|
15
|
+
`object` ([AccessConfig](project-config-properties-siteaccessconfig-properties-accessconfig.md))
|
|
16
|
+
|
|
17
|
+
# preview Properties
|
|
18
|
+
|
|
19
|
+
| Property | Type | Required | Nullable | Defined by |
|
|
20
|
+
| :-------------------- | :----- | :------- | :------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
21
|
+
| [allow](#allow) | Merged | Required | cannot be null | [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/access/properties/preview/properties/allow") |
|
|
22
|
+
| [apiKeyId](#apikeyid) | Merged | Optional | cannot be null | [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/access/properties/preview/properties/apiKeyId") |
|
|
23
|
+
|
|
24
|
+
## allow
|
|
25
|
+
|
|
26
|
+
The email glob of the users that are allowed.
|
|
27
|
+
|
|
28
|
+
`allow`
|
|
29
|
+
|
|
30
|
+
* is required
|
|
31
|
+
|
|
32
|
+
* Type: merged type ([Details](project-config-defs-stringorarray.md))
|
|
33
|
+
|
|
34
|
+
* cannot be null
|
|
35
|
+
|
|
36
|
+
* defined in: [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/access/properties/preview/properties/allow")
|
|
37
|
+
|
|
38
|
+
### allow Type
|
|
39
|
+
|
|
40
|
+
merged type ([Details](project-config-defs-stringorarray.md))
|
|
41
|
+
|
|
42
|
+
one (and only one) of
|
|
43
|
+
|
|
44
|
+
* [Untitled string in ProjectConfig](project-config-defs-stringorarray-oneof-0.md "check type definition")
|
|
45
|
+
|
|
46
|
+
* [Untitled array in ProjectConfig](project-config-defs-stringorarray-oneof-1.md "check type definition")
|
|
47
|
+
|
|
48
|
+
## apiKeyId
|
|
49
|
+
|
|
50
|
+
the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.
|
|
51
|
+
|
|
52
|
+
`apiKeyId`
|
|
53
|
+
|
|
54
|
+
* is optional
|
|
55
|
+
|
|
56
|
+
* Type: merged type ([Details](project-config-defs-stringorarray.md))
|
|
57
|
+
|
|
58
|
+
* cannot be null
|
|
59
|
+
|
|
60
|
+
* defined in: [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/access/properties/preview/properties/apiKeyId")
|
|
61
|
+
|
|
62
|
+
### apiKeyId Type
|
|
63
|
+
|
|
64
|
+
merged type ([Details](project-config-defs-stringorarray.md))
|
|
65
|
+
|
|
66
|
+
one (and only one) of
|
|
67
|
+
|
|
68
|
+
* [Untitled string in ProjectConfig](project-config-defs-stringorarray-oneof-0.md "check type definition")
|
|
69
|
+
|
|
70
|
+
* [Untitled array in ProjectConfig](project-config-defs-stringorarray-oneof-1.md "check type definition")
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# Untitled
|
|
1
|
+
# Untitled undefined type in ProjectConfig Schema
|
|
2
2
|
|
|
3
3
|
```txt
|
|
4
|
-
https://ns.adobe.com/helix/config/project#/properties/access/properties/
|
|
4
|
+
https://ns.adobe.com/helix/config/project#/properties/access/properties/live
|
|
5
5
|
```
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Access config specific to live content
|
|
8
8
|
|
|
9
9
|
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
|
|
10
10
|
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------------- |
|
|
11
11
|
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [project-config.schema.json\*](project-config.schema.json "open original schema") |
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## live Type
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
unknown
|
|
@@ -16,33 +16,33 @@ https://ns.adobe.com/helix/config/project#/properties/access/properties/require
|
|
|
16
16
|
|
|
17
17
|
# require Properties
|
|
18
18
|
|
|
19
|
-
| Property | Type | Required | Nullable | Defined by
|
|
20
|
-
| :------------------------ | :----- | :------- | :------------- |
|
|
21
|
-
| [repository](#repository) | Merged | Required | cannot be null | [ProjectConfig](project-config-defs-
|
|
19
|
+
| Property | Type | Required | Nullable | Defined by |
|
|
20
|
+
| :------------------------ | :----- | :------- | :------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
21
|
+
| [repository](#repository) | Merged | Required | cannot be null | [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/access/properties/require/properties/repository") |
|
|
22
22
|
|
|
23
23
|
## repository
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
The list of owner/repo pointers to projects that are allowed to use this content.
|
|
26
26
|
|
|
27
27
|
`repository`
|
|
28
28
|
|
|
29
29
|
* is required
|
|
30
30
|
|
|
31
|
-
* Type: merged type ([Details](project-config-defs-
|
|
31
|
+
* Type: merged type ([Details](project-config-defs-stringorarray.md))
|
|
32
32
|
|
|
33
33
|
* cannot be null
|
|
34
34
|
|
|
35
|
-
* defined in: [ProjectConfig](project-config-defs-
|
|
35
|
+
* defined in: [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/access/properties/require/properties/repository")
|
|
36
36
|
|
|
37
37
|
### repository Type
|
|
38
38
|
|
|
39
|
-
merged type ([Details](project-config-defs-
|
|
39
|
+
merged type ([Details](project-config-defs-stringorarray.md))
|
|
40
40
|
|
|
41
41
|
one (and only one) of
|
|
42
42
|
|
|
43
|
-
* [Untitled string in ProjectConfig](project-config-defs-
|
|
43
|
+
* [Untitled string in ProjectConfig](project-config-defs-stringorarray-oneof-0.md "check type definition")
|
|
44
44
|
|
|
45
|
-
* [Untitled array in ProjectConfig](project-config-defs-
|
|
45
|
+
* [Untitled array in ProjectConfig](project-config-defs-stringorarray-oneof-1.md "check type definition")
|
|
46
46
|
|
|
47
47
|
### repository Examples
|
|
48
48
|
|
|
@@ -16,35 +16,37 @@ https://ns.adobe.com/helix/config/project#/properties/access
|
|
|
16
16
|
|
|
17
17
|
# access Properties
|
|
18
18
|
|
|
19
|
-
| Property | Type
|
|
20
|
-
| :-------------------- |
|
|
21
|
-
| [allow](#allow) | Merged
|
|
22
|
-
| [apiKeyId](#apikeyid) | Merged
|
|
23
|
-
| [require](#require) | `object`
|
|
19
|
+
| Property | Type | Required | Nullable | Defined by |
|
|
20
|
+
| :-------------------- | :------------ | :------- | :------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
21
|
+
| [allow](#allow) | Merged | Optional | cannot be null | [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/access/properties/allow") |
|
|
22
|
+
| [apiKeyId](#apikeyid) | Merged | Optional | cannot be null | [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/access/properties/apiKeyId") |
|
|
23
|
+
| [require](#require) | `object` | Optional | cannot be null | [ProjectConfig](project-config-properties-siteaccessconfig-properties-require.md "https://ns.adobe.com/helix/config/project#/properties/access/properties/require") |
|
|
24
|
+
| [preview](#preview) | `object` | Optional | cannot be null | [ProjectConfig](project-config-properties-siteaccessconfig-properties-accessconfig.md "https://ns.adobe.com/helix/config/project#/properties/access/properties/preview") |
|
|
25
|
+
| [live](#live) | Not specified | Optional | cannot be null | [ProjectConfig](project-config-properties-siteaccessconfig-properties-live.md "https://ns.adobe.com/helix/config/project#/properties/access/properties/live") |
|
|
24
26
|
|
|
25
27
|
## allow
|
|
26
28
|
|
|
27
|
-
|
|
29
|
+
The email glob of the users that are allowed.
|
|
28
30
|
|
|
29
31
|
`allow`
|
|
30
32
|
|
|
31
|
-
* is
|
|
33
|
+
* is optional
|
|
32
34
|
|
|
33
|
-
* Type: merged type ([Details](project-config-defs-
|
|
35
|
+
* Type: merged type ([Details](project-config-defs-stringorarray.md))
|
|
34
36
|
|
|
35
37
|
* cannot be null
|
|
36
38
|
|
|
37
|
-
* defined in: [ProjectConfig](project-config-defs-
|
|
39
|
+
* defined in: [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/access/properties/allow")
|
|
38
40
|
|
|
39
41
|
### allow Type
|
|
40
42
|
|
|
41
|
-
merged type ([Details](project-config-defs-
|
|
43
|
+
merged type ([Details](project-config-defs-stringorarray.md))
|
|
42
44
|
|
|
43
45
|
one (and only one) of
|
|
44
46
|
|
|
45
|
-
* [Untitled string in ProjectConfig](project-config-defs-
|
|
47
|
+
* [Untitled string in ProjectConfig](project-config-defs-stringorarray-oneof-0.md "check type definition")
|
|
46
48
|
|
|
47
|
-
* [Untitled array in ProjectConfig](project-config-defs-
|
|
49
|
+
* [Untitled array in ProjectConfig](project-config-defs-stringorarray-oneof-1.md "check type definition")
|
|
48
50
|
|
|
49
51
|
## apiKeyId
|
|
50
52
|
|
|
@@ -54,21 +56,21 @@ the id of the API key(s). this is used to validate the API KEYS and allows to in
|
|
|
54
56
|
|
|
55
57
|
* is optional
|
|
56
58
|
|
|
57
|
-
* Type: merged type ([Details](project-config-
|
|
59
|
+
* Type: merged type ([Details](project-config-defs-stringorarray.md))
|
|
58
60
|
|
|
59
61
|
* cannot be null
|
|
60
62
|
|
|
61
|
-
* defined in: [ProjectConfig](project-config-
|
|
63
|
+
* defined in: [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/access/properties/apiKeyId")
|
|
62
64
|
|
|
63
65
|
### apiKeyId Type
|
|
64
66
|
|
|
65
|
-
merged type ([Details](project-config-
|
|
67
|
+
merged type ([Details](project-config-defs-stringorarray.md))
|
|
66
68
|
|
|
67
69
|
one (and only one) of
|
|
68
70
|
|
|
69
|
-
* [Untitled string in ProjectConfig](project-config-
|
|
71
|
+
* [Untitled string in ProjectConfig](project-config-defs-stringorarray-oneof-0.md "check type definition")
|
|
70
72
|
|
|
71
|
-
* [Untitled array in ProjectConfig](project-config-
|
|
73
|
+
* [Untitled array in ProjectConfig](project-config-defs-stringorarray-oneof-1.md "check type definition")
|
|
72
74
|
|
|
73
75
|
## require
|
|
74
76
|
|
|
@@ -87,3 +89,39 @@ one (and only one) of
|
|
|
87
89
|
### require Type
|
|
88
90
|
|
|
89
91
|
`object` ([Details](project-config-properties-siteaccessconfig-properties-require.md))
|
|
92
|
+
|
|
93
|
+
## preview
|
|
94
|
+
|
|
95
|
+
Access config specific to preview content
|
|
96
|
+
|
|
97
|
+
`preview`
|
|
98
|
+
|
|
99
|
+
* is optional
|
|
100
|
+
|
|
101
|
+
* Type: `object` ([AccessConfig](project-config-properties-siteaccessconfig-properties-accessconfig.md))
|
|
102
|
+
|
|
103
|
+
* cannot be null
|
|
104
|
+
|
|
105
|
+
* defined in: [ProjectConfig](project-config-properties-siteaccessconfig-properties-accessconfig.md "https://ns.adobe.com/helix/config/project#/properties/access/properties/preview")
|
|
106
|
+
|
|
107
|
+
### preview Type
|
|
108
|
+
|
|
109
|
+
`object` ([AccessConfig](project-config-properties-siteaccessconfig-properties-accessconfig.md))
|
|
110
|
+
|
|
111
|
+
## live
|
|
112
|
+
|
|
113
|
+
Access config specific to live content
|
|
114
|
+
|
|
115
|
+
`live`
|
|
116
|
+
|
|
117
|
+
* is optional
|
|
118
|
+
|
|
119
|
+
* Type: unknown
|
|
120
|
+
|
|
121
|
+
* cannot be null
|
|
122
|
+
|
|
123
|
+
* defined in: [ProjectConfig](project-config-properties-siteaccessconfig-properties-live.md "https://ns.adobe.com/helix/config/project#/properties/access/properties/live")
|
|
124
|
+
|
|
125
|
+
### live Type
|
|
126
|
+
|
|
127
|
+
unknown
|
package/docs/project-config.md
CHANGED
|
@@ -23,8 +23,8 @@ https://ns.adobe.com/helix/config/project
|
|
|
23
23
|
| [timezone](#timezone) | `string` | Optional | cannot be null | [ProjectConfig](project-config-properties-timezone.md "https://ns.adobe.com/helix/config/project#/properties/timezone") |
|
|
24
24
|
| [host](#host) | `string` | Optional | cannot be null | [ProjectConfig](project-config-properties-host.md "https://ns.adobe.com/helix/config/project#/properties/host") |
|
|
25
25
|
| [blueprint](#blueprint) | `string` | Optional | cannot be null | [ProjectConfig](project-config-properties-blueprint.md "https://ns.adobe.com/helix/config/project#/properties/blueprint") |
|
|
26
|
-
| [slack](#slack) | Merged | Optional | cannot be null | [ProjectConfig](project-config-
|
|
27
|
-
| [metadata](#metadata) | Merged | Optional | cannot be null | [ProjectConfig](project-config-
|
|
26
|
+
| [slack](#slack) | Merged | Optional | cannot be null | [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/slack") |
|
|
27
|
+
| [metadata](#metadata) | Merged | Optional | cannot be null | [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/metadata") |
|
|
28
28
|
| [cdn](#cdn) | `object` | Optional | cannot be null | [ProjectConfig](project-config-cdn.md "https://ns.adobe.com/helix/config/cdn#/properties/cdn") |
|
|
29
29
|
| [access](#access) | `object` | Optional | cannot be null | [ProjectConfig](project-config-properties-siteaccessconfig.md "https://ns.adobe.com/helix/config/project#/properties/access") |
|
|
30
30
|
| [admin](#admin) | `object` | Optional | cannot be null | [ProjectConfig](project-config-properties-adminconfig.md "https://ns.adobe.com/helix/config/project#/properties/admin") |
|
|
@@ -141,21 +141,21 @@ the slack teamId/channelID(s) where the slack bot is used.
|
|
|
141
141
|
|
|
142
142
|
* is optional
|
|
143
143
|
|
|
144
|
-
* Type: merged type ([Details](project-config-
|
|
144
|
+
* Type: merged type ([Details](project-config-defs-stringorarray.md))
|
|
145
145
|
|
|
146
146
|
* cannot be null
|
|
147
147
|
|
|
148
|
-
* defined in: [ProjectConfig](project-config-
|
|
148
|
+
* defined in: [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/slack")
|
|
149
149
|
|
|
150
150
|
### slack Type
|
|
151
151
|
|
|
152
|
-
merged type ([Details](project-config-
|
|
152
|
+
merged type ([Details](project-config-defs-stringorarray.md))
|
|
153
153
|
|
|
154
154
|
one (and only one) of
|
|
155
155
|
|
|
156
|
-
* [Untitled string in ProjectConfig](project-config-
|
|
156
|
+
* [Untitled string in ProjectConfig](project-config-defs-stringorarray-oneof-0.md "check type definition")
|
|
157
157
|
|
|
158
|
-
* [Untitled array in ProjectConfig](project-config-
|
|
158
|
+
* [Untitled array in ProjectConfig](project-config-defs-stringorarray-oneof-1.md "check type definition")
|
|
159
159
|
|
|
160
160
|
## metadata
|
|
161
161
|
|
|
@@ -165,21 +165,21 @@ source paths for metadata.
|
|
|
165
165
|
|
|
166
166
|
* is optional
|
|
167
167
|
|
|
168
|
-
* Type: merged type ([Details](project-config-
|
|
168
|
+
* Type: merged type ([Details](project-config-defs-stringorarray.md))
|
|
169
169
|
|
|
170
170
|
* cannot be null
|
|
171
171
|
|
|
172
|
-
* defined in: [ProjectConfig](project-config-
|
|
172
|
+
* defined in: [ProjectConfig](project-config-defs-stringorarray.md "https://ns.adobe.com/helix/config/project#/properties/metadata")
|
|
173
173
|
|
|
174
174
|
### metadata Type
|
|
175
175
|
|
|
176
|
-
merged type ([Details](project-config-
|
|
176
|
+
merged type ([Details](project-config-defs-stringorarray.md))
|
|
177
177
|
|
|
178
178
|
one (and only one) of
|
|
179
179
|
|
|
180
|
-
* [Untitled string in ProjectConfig](project-config-
|
|
180
|
+
* [Untitled string in ProjectConfig](project-config-defs-stringorarray-oneof-0.md "check type definition")
|
|
181
181
|
|
|
182
|
-
* [Untitled array in ProjectConfig](project-config-
|
|
182
|
+
* [Untitled array in ProjectConfig](project-config-defs-stringorarray-oneof-1.md "check type definition")
|
|
183
183
|
|
|
184
184
|
## cdn
|
|
185
185
|
|
|
@@ -237,12 +237,12 @@ The CDN config
|
|
|
237
237
|
|
|
238
238
|
# ProjectConfig Definitions
|
|
239
239
|
|
|
240
|
-
## Definitions group
|
|
240
|
+
## Definitions group stringOrArray
|
|
241
241
|
|
|
242
242
|
Reference this group by using
|
|
243
243
|
|
|
244
244
|
```json
|
|
245
|
-
{"$ref":"https://ns.adobe.com/helix/config/project#/$defs/
|
|
245
|
+
{"$ref":"https://ns.adobe.com/helix/config/project#/$defs/stringOrArray"}
|
|
246
246
|
```
|
|
247
247
|
|
|
248
248
|
| Property | Type | Required | Nullable | Defined by |
|
|
@@ -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":{"
|
|
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":{"stringOrArray":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"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.","$ref":"#/$defs/stringOrArray"},"metadata":{"description":"source paths for metadata.","$ref":"#/$defs/stringOrArray"},"cdn":{"description":"The CDN config","$ref":"./project-config-cdn.schema.json"},"access":{"title":"SiteAccessConfig","type":"object","properties":{"allow":{"description":"The email glob of the users that are allowed.","$ref":"#/$defs/stringOrArray"},"apiKeyId":{"description":"the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.","$ref":"#/$defs/stringOrArray"},"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/stringOrArray"}},"required":["repository"],"additionalProperties":false},"preview":{"description":"Access config specific to preview content","type":"object","title":"AccessConfig","properties":{"allow":{"description":"The email glob of the users that are allowed.","$ref":"#/$defs/stringOrArray"},"apiKeyId":{"description":"the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.","$ref":"#/$defs/stringOrArray"}},"required":["allow"],"additionalProperties":false},"live":{"description":"Access config specific to live content","tsType":"AccessConfig"}},"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/stringOrArray"},"publish":{"description":"The email glob of the users with publish role.","$ref":"#/$defs/stringOrArray"}},"required":["role"],"additionalProperties":false},"requireAuth":{"description":"Enforce authentication if set to true. If set to 'auto' it will enforce authentication if a role mapping is defined. defaults to 'auto'.","default":"auto","oneOf":[{"type":"boolean"},{"type":"string","enum":["auto"]}]},"defaultRole":{"description":"the default roles assigned to the users. defaults to `basic_publish` for unauthenticated setups.","$ref":"#/$defs/stringOrArray"},"apiKeyId":{"description":"the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.","$ref":"#/$defs/stringOrArray"},"events":{"description":"Events that are triggered by the admin.","type":"object","additionalProperties":false,"properties":{"github":{"description":"Github configuration for admin events.","type":"object","additionalProperties":false,"properties":{"target":{"title":"Github Event Notification Target Owner/Repository","description":"The target github owner and repository to which the event is to be sent in the owner/repo format. For e.g. hlxsites/target-repo","type":"string","additionalProperties":false}}}}}},"additionalProperties":false}},"additionalProperties":false}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-admin-support",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
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.
|
|
41
|
-
"@aws-sdk/client-sqs": "3.
|
|
40
|
+
"@aws-sdk/client-s3": "3.449.0",
|
|
41
|
+
"@aws-sdk/client-sqs": "3.449.0",
|
|
42
42
|
"@aws-sdk/node-http-handler": "3.370.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"jsdoc-to-markdown": "8.0.0",
|
|
54
54
|
"json-schema-to-typescript": "13.1.1",
|
|
55
55
|
"junit-report-builder": "3.1.0",
|
|
56
|
-
"lint-staged": "15.0
|
|
56
|
+
"lint-staged": "15.1.0",
|
|
57
57
|
"mocha": "10.2.0",
|
|
58
58
|
"mocha-multi-reporters": "1.5.1",
|
|
59
59
|
"nock": "13.3.8",
|
|
@@ -157,7 +157,7 @@ export class BatchedQueueClient {
|
|
|
157
157
|
const result = await sqs.send(new DeleteMessageBatchCommand({
|
|
158
158
|
QueueUrl: this.inQueue,
|
|
159
159
|
Entries: batch.map((msg, idx) => ({
|
|
160
|
-
Id: idx
|
|
160
|
+
Id: `msg${idx}`,
|
|
161
161
|
ReceiptHandle: msg.ReceiptHandle,
|
|
162
162
|
})),
|
|
163
163
|
}));
|
|
@@ -241,7 +241,7 @@ export class BatchedQueueClient {
|
|
|
241
241
|
const result = await sqs.send(new SendMessageBatchCommand({
|
|
242
242
|
QueueUrl: this.outQueue,
|
|
243
243
|
Entries: batch.map((data, idx) => ({
|
|
244
|
-
Id: idx
|
|
244
|
+
Id: `msg${idx}`,
|
|
245
245
|
...data,
|
|
246
246
|
})),
|
|
247
247
|
}));
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"$id": "https://ns.adobe.com/helix/config/project",
|
|
14
14
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
15
|
"$defs": {
|
|
16
|
-
"
|
|
16
|
+
"stringOrArray": {
|
|
17
17
|
"oneOf": [
|
|
18
18
|
{
|
|
19
19
|
"type": "string"
|
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
"type": "string"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
]
|
|
28
|
-
"description": "matches one or several users or group of users"
|
|
27
|
+
]
|
|
29
28
|
}
|
|
30
29
|
},
|
|
31
30
|
"title": "ProjectConfig",
|
|
@@ -55,72 +54,69 @@
|
|
|
55
54
|
},
|
|
56
55
|
"slack": {
|
|
57
56
|
"description": "the slack teamId/channelID(s) where the slack bot is used.",
|
|
58
|
-
"
|
|
59
|
-
{
|
|
60
|
-
"type": "string"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"type": "array",
|
|
64
|
-
"items": {
|
|
65
|
-
"type": "string"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
]
|
|
57
|
+
"$ref": "#/$defs/stringOrArray"
|
|
69
58
|
},
|
|
70
59
|
"metadata": {
|
|
71
60
|
"description": "source paths for metadata.",
|
|
72
|
-
"
|
|
73
|
-
{
|
|
74
|
-
"type": "string"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"type": "array",
|
|
78
|
-
"items": {
|
|
79
|
-
"type": "string"
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
]
|
|
61
|
+
"$ref": "#/$defs/stringOrArray"
|
|
83
62
|
},
|
|
84
63
|
"cdn": {
|
|
85
64
|
"description": "The CDN config",
|
|
86
65
|
"$ref": "./project-config-cdn.schema.json"
|
|
87
66
|
},
|
|
88
67
|
"access": {
|
|
89
|
-
"type": "object",
|
|
90
68
|
"title": "SiteAccessConfig",
|
|
69
|
+
"type": "object",
|
|
91
70
|
"properties": {
|
|
92
71
|
"allow": {
|
|
93
72
|
"description": "The email glob of the users that are allowed.",
|
|
94
|
-
"$ref": "#/$defs/
|
|
73
|
+
"$ref": "#/$defs/stringOrArray"
|
|
95
74
|
},
|
|
96
75
|
"apiKeyId": {
|
|
97
76
|
"description": "the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.",
|
|
98
|
-
"
|
|
99
|
-
{
|
|
100
|
-
"type": "string"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"type": "array",
|
|
104
|
-
"items": {
|
|
105
|
-
"type": "string"
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
]
|
|
77
|
+
"$ref": "#/$defs/stringOrArray"
|
|
109
78
|
},
|
|
110
79
|
"require": {
|
|
111
80
|
"type": "object",
|
|
112
81
|
"properties": {
|
|
113
82
|
"repository": {
|
|
114
83
|
"description": "The list of owner/repo pointers to projects that are allowed to use this content.",
|
|
115
|
-
"examples": [
|
|
116
|
-
|
|
84
|
+
"examples": [
|
|
85
|
+
"adobe/*",
|
|
86
|
+
"hlxsites/wknd"
|
|
87
|
+
],
|
|
88
|
+
"$ref": "#/$defs/stringOrArray"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"required": [
|
|
92
|
+
"repository"
|
|
93
|
+
],
|
|
94
|
+
"additionalProperties": false
|
|
95
|
+
},
|
|
96
|
+
"preview": {
|
|
97
|
+
"description": "Access config specific to preview content",
|
|
98
|
+
"type": "object",
|
|
99
|
+
"title": "AccessConfig",
|
|
100
|
+
"properties": {
|
|
101
|
+
"allow": {
|
|
102
|
+
"description": "The email glob of the users that are allowed.",
|
|
103
|
+
"$ref": "#/$defs/stringOrArray"
|
|
104
|
+
},
|
|
105
|
+
"apiKeyId": {
|
|
106
|
+
"description": "the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.",
|
|
107
|
+
"$ref": "#/$defs/stringOrArray"
|
|
117
108
|
}
|
|
118
109
|
},
|
|
119
|
-
"required": [
|
|
110
|
+
"required": [
|
|
111
|
+
"allow"
|
|
112
|
+
],
|
|
120
113
|
"additionalProperties": false
|
|
114
|
+
},
|
|
115
|
+
"live": {
|
|
116
|
+
"description": "Access config specific to live content",
|
|
117
|
+
"tsType": "AccessConfig"
|
|
121
118
|
}
|
|
122
119
|
},
|
|
123
|
-
"required": ["allow"],
|
|
124
120
|
"additionalProperties": false
|
|
125
121
|
},
|
|
126
122
|
"admin": {
|
|
@@ -133,11 +129,11 @@
|
|
|
133
129
|
"properties": {
|
|
134
130
|
"author": {
|
|
135
131
|
"description": "The email glob of the users with author role.",
|
|
136
|
-
"$ref": "#/$defs/
|
|
132
|
+
"$ref": "#/$defs/stringOrArray"
|
|
137
133
|
},
|
|
138
134
|
"publish": {
|
|
139
135
|
"description": "The email glob of the users with publish role.",
|
|
140
|
-
"$ref": "#/$defs/
|
|
136
|
+
"$ref": "#/$defs/stringOrArray"
|
|
141
137
|
}
|
|
142
138
|
},
|
|
143
139
|
"required": ["role"],
|
|
@@ -158,31 +154,11 @@
|
|
|
158
154
|
},
|
|
159
155
|
"defaultRole": {
|
|
160
156
|
"description": "the default roles assigned to the users. defaults to `basic_publish` for unauthenticated setups.",
|
|
161
|
-
"
|
|
162
|
-
{
|
|
163
|
-
"type": "string"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"type": "array",
|
|
167
|
-
"items": {
|
|
168
|
-
"type": "string"
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
]
|
|
157
|
+
"$ref": "#/$defs/stringOrArray"
|
|
172
158
|
},
|
|
173
159
|
"apiKeyId": {
|
|
174
160
|
"description": "the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.",
|
|
175
|
-
"
|
|
176
|
-
{
|
|
177
|
-
"type": "string"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"type": "array",
|
|
181
|
-
"items": {
|
|
182
|
-
"type": "string"
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
]
|
|
161
|
+
"$ref": "#/$defs/stringOrArray"
|
|
186
162
|
},
|
|
187
163
|
"events": {
|
|
188
164
|
"description": "Events that are triggered by the admin.",
|
|
@@ -135,7 +135,7 @@ export interface SiteAccessConfig {
|
|
|
135
135
|
/**
|
|
136
136
|
* The email glob of the users that are allowed.
|
|
137
137
|
*/
|
|
138
|
-
allow
|
|
138
|
+
allow?: string | string[];
|
|
139
139
|
/**
|
|
140
140
|
* the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.
|
|
141
141
|
*/
|
|
@@ -146,6 +146,24 @@ export interface SiteAccessConfig {
|
|
|
146
146
|
*/
|
|
147
147
|
repository: string | string[];
|
|
148
148
|
};
|
|
149
|
+
preview?: AccessConfig;
|
|
150
|
+
/**
|
|
151
|
+
* Access config specific to live content
|
|
152
|
+
*/
|
|
153
|
+
live?: AccessConfig;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Access config specific to preview content
|
|
157
|
+
*/
|
|
158
|
+
export interface AccessConfig {
|
|
159
|
+
/**
|
|
160
|
+
* The email glob of the users that are allowed.
|
|
161
|
+
*/
|
|
162
|
+
allow: string | string[];
|
|
163
|
+
/**
|
|
164
|
+
* the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.
|
|
165
|
+
*/
|
|
166
|
+
apiKeyId?: string | string[];
|
|
149
167
|
}
|
|
150
168
|
export interface AdminConfig {
|
|
151
169
|
role?: Role;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Untitled string in ProjectConfig Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://ns.adobe.com/helix/config/project#/$defs/emailglob/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`
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Untitled string in ProjectConfig Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://ns.adobe.com/helix/config/project#/$defs/emailglob/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`
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Untitled array in ProjectConfig Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://ns.adobe.com/helix/config/project#/$defs/emailglob/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[]`
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Untitled undefined type in ProjectConfig Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://ns.adobe.com/helix/config/project#/properties/admin/properties/role/properties/publish
|
|
5
|
-
```
|
|
6
|
-
|
|
7
|
-
matches one or several users or group of users
|
|
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
|
-
## publish Type
|
|
14
|
-
|
|
15
|
-
merged type ([Details](project-config-defs-emailglob.md))
|
|
16
|
-
|
|
17
|
-
one (and only one) of
|
|
18
|
-
|
|
19
|
-
* [Untitled string in ProjectConfig](project-config-defs-emailglob-oneof-0.md "check type definition")
|
|
20
|
-
|
|
21
|
-
* [Untitled array in ProjectConfig](project-config-defs-emailglob-oneof-1.md "check type definition")
|
|
@@ -1,15 +0,0 @@
|
|
|
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`
|
|
@@ -1,15 +0,0 @@
|
|
|
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`
|
|
@@ -1,15 +0,0 @@
|
|
|
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[]`
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Untitled undefined type in ProjectConfig Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://ns.adobe.com/helix/config/project#/properties/metadata
|
|
5
|
-
```
|
|
6
|
-
|
|
7
|
-
source paths for metadata.
|
|
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
|
-
## metadata Type
|
|
14
|
-
|
|
15
|
-
merged type ([Details](project-config-properties-metadata.md))
|
|
16
|
-
|
|
17
|
-
one (and only one) of
|
|
18
|
-
|
|
19
|
-
* [Untitled string in ProjectConfig](project-config-properties-metadata-oneof-0.md "check type definition")
|
|
20
|
-
|
|
21
|
-
* [Untitled array in ProjectConfig](project-config-properties-metadata-oneof-1.md "check type definition")
|
package/docs/project-config-properties-siteaccessconfig-properties-apikeyid-oneof-1-items.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Untitled string in ProjectConfig Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://ns.adobe.com/helix/config/project#/properties/access/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`
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Untitled array in ProjectConfig Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://ns.adobe.com/helix/config/project#/properties/access/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[]`
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Untitled undefined type in ProjectConfig Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://ns.adobe.com/helix/config/project#/properties/access/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-siteaccessconfig-properties-apikeyid.md))
|
|
16
|
-
|
|
17
|
-
one (and only one) of
|
|
18
|
-
|
|
19
|
-
* [Untitled string in ProjectConfig](project-config-properties-siteaccessconfig-properties-apikeyid-oneof-0.md "check type definition")
|
|
20
|
-
|
|
21
|
-
* [Untitled array in ProjectConfig](project-config-properties-siteaccessconfig-properties-apikeyid-oneof-1.md "check type definition")
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Untitled string in ProjectConfig Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://ns.adobe.com/helix/config/project#/properties/slack/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`
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Untitled string in ProjectConfig Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://ns.adobe.com/helix/config/project#/properties/slack/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`
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Untitled array in ProjectConfig Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://ns.adobe.com/helix/config/project#/properties/slack/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[]`
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Untitled undefined type in ProjectConfig Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://ns.adobe.com/helix/config/project#/properties/slack
|
|
5
|
-
```
|
|
6
|
-
|
|
7
|
-
the slack teamId/channelID(s) where the slack bot is used.
|
|
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
|
-
## slack Type
|
|
14
|
-
|
|
15
|
-
merged type ([Details](project-config-properties-slack.md))
|
|
16
|
-
|
|
17
|
-
one (and only one) of
|
|
18
|
-
|
|
19
|
-
* [Untitled string in ProjectConfig](project-config-properties-slack-oneof-0.md "check type definition")
|
|
20
|
-
|
|
21
|
-
* [Untitled array in ProjectConfig](project-config-properties-slack-oneof-1.md "check type definition")
|