@adobe/helix-admin-support 1.6.31 → 1.6.33

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.
Files changed (74) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/docs/API.md +434 -5
  3. package/docs/README.md +45 -0
  4. package/docs/project-config-all-properties-config-properties-data.md +15 -0
  5. package/docs/project-config-all-properties-config-properties-lastmodified.md +15 -0
  6. package/docs/project-config-all-properties-config.md +58 -0
  7. package/docs/project-config-all-properties-headers-properties-data.md +15 -0
  8. package/docs/project-config-all-properties-headers-properties-lastmodified.md +15 -0
  9. package/docs/project-config-all-properties-headers.md +58 -0
  10. package/docs/project-config-all-properties-metadata-properties-data.md +15 -0
  11. package/docs/project-config-all-properties-metadata-properties-lastmodified.md +15 -0
  12. package/docs/project-config-all-properties-metadata.md +58 -0
  13. package/docs/project-config-all-properties-projectconfigentry-properties-data.md +15 -0
  14. package/docs/project-config-all-properties-projectconfigentry-properties-lastmodified.md +15 -0
  15. package/docs/project-config-all-properties-projectconfigentry.md +58 -0
  16. package/docs/project-config-all.md +77 -0
  17. package/docs/project-config-all.schema.json +1 -0
  18. package/docs/project-config-cdn-defs-stringorarray-oneof-0.md +15 -0
  19. package/docs/project-config-cdn-defs-stringorarray-oneof-1-items.md +15 -0
  20. package/docs/project-config-cdn-defs-stringorarray-oneof-1.md +15 -0
  21. package/docs/project-config-cdn-defs-stringorarray.md +21 -0
  22. package/docs/project-config-cdn-defs.md +15 -0
  23. package/docs/project-config-cdn-properties-prod-oneof-akamaiconfig-properties-accesstoken.md +15 -0
  24. package/docs/project-config-cdn-properties-prod-oneof-akamaiconfig-properties-clientsecret.md +15 -0
  25. package/docs/project-config-cdn-properties-prod-oneof-akamaiconfig-properties-clienttoken.md +15 -0
  26. package/docs/project-config-cdn-properties-prod-oneof-akamaiconfig-properties-endpoint.md +15 -0
  27. package/docs/project-config-cdn-properties-prod-oneof-akamaiconfig-properties-host.md +15 -0
  28. package/docs/project-config-cdn-properties-prod-oneof-akamaiconfig-properties-type.md +23 -0
  29. package/docs/project-config-cdn-properties-prod-oneof-akamaiconfig.md +167 -0
  30. package/docs/project-config-cdn-properties-prod-oneof-cloudflareconfig-properties-apitoken.md +15 -0
  31. package/docs/project-config-cdn-properties-prod-oneof-cloudflareconfig-properties-host.md +15 -0
  32. package/docs/project-config-cdn-properties-prod-oneof-cloudflareconfig-properties-origin.md +15 -0
  33. package/docs/project-config-cdn-properties-prod-oneof-cloudflareconfig-properties-plan.md +15 -0
  34. package/docs/project-config-cdn-properties-prod-oneof-cloudflareconfig-properties-type.md +23 -0
  35. package/docs/project-config-cdn-properties-prod-oneof-cloudflareconfig-properties-zoneid.md +15 -0
  36. package/docs/project-config-cdn-properties-prod-oneof-cloudflareconfig.md +167 -0
  37. package/docs/project-config-cdn-properties-prod-oneof-fastlyconfig-properties-authtoken.md +15 -0
  38. package/docs/project-config-cdn-properties-prod-oneof-fastlyconfig-properties-host.md +15 -0
  39. package/docs/project-config-cdn-properties-prod-oneof-fastlyconfig-properties-serviceid.md +15 -0
  40. package/docs/project-config-cdn-properties-prod-oneof-fastlyconfig-properties-type.md +23 -0
  41. package/docs/project-config-cdn-properties-prod-oneof-fastlyconfig.md +129 -0
  42. package/docs/project-config-cdn-properties-prod-oneof-managedconfig-properties-host.md +15 -0
  43. package/docs/project-config-cdn-properties-prod-oneof-managedconfig-properties-type.md +23 -0
  44. package/docs/project-config-cdn-properties-prod-oneof-managedconfig.md +91 -0
  45. package/docs/project-config-cdn-properties-prod.md +25 -0
  46. package/docs/project-config-cdn.md +62 -0
  47. package/docs/project-config-cdn.schema.json +1 -0
  48. package/docs/project-config-defs-emailglob-oneof-0.md +15 -0
  49. package/docs/project-config-defs-emailglob-oneof-1-items.md +15 -0
  50. package/docs/project-config-defs-emailglob-oneof-1.md +15 -0
  51. package/docs/project-config-defs-emailglob.md +21 -0
  52. package/docs/project-config-defs.md +15 -0
  53. package/docs/project-config-properties-adminconfig-properties-role.md +70 -0
  54. package/docs/project-config-properties-adminconfig.md +39 -0
  55. package/docs/project-config-properties-host.md +15 -0
  56. package/docs/project-config-properties-name.md +15 -0
  57. package/docs/project-config-properties-project.md +15 -0
  58. package/docs/project-config-properties-siteaccessconfig.md +45 -0
  59. package/docs/project-config-properties-slack-oneof-0.md +15 -0
  60. package/docs/project-config-properties-slack-oneof-1-items.md +15 -0
  61. package/docs/project-config-properties-slack-oneof-1.md +15 -0
  62. package/docs/project-config-properties-slack.md +21 -0
  63. package/docs/project-config-properties-timezone.md +22 -0
  64. package/docs/project-config.md +198 -0
  65. package/docs/project-config.schema.json +1 -0
  66. package/package.json +12 -7
  67. package/src/fetch-config-all.d.ts +1 -32
  68. package/src/fetch-config.d.ts +2 -77
  69. package/src/fetch-ignore.js +0 -2
  70. package/src/schemas/project-config-all.schema.json +63 -0
  71. package/src/schemas/project-config-cdn.schema.json +148 -0
  72. package/src/schemas/project-config.schema.json +108 -0
  73. package/types/project-config-all.d.ts +42 -0
  74. package/types/project-config.d.ts +127 -0
@@ -0,0 +1,108 @@
1
+ {
2
+ "meta:license": [
3
+ "Copyright 2023 Adobe. All rights reserved.",
4
+ "This file is licensed to you under the Apache License, Version 2.0 (the \"License\");",
5
+ "you may not use this file except in compliance with the License. You may obtain a copy",
6
+ "of the License at http://www.apache.org/licenses/LICENSE-2.0",
7
+ "",
8
+ "Unless required by applicable law or agreed to in writing, software distributed under",
9
+ "the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS",
10
+ "OF ANY KIND, either express or implied. See the License for the specific language",
11
+ "governing permissions and limitations under the License."
12
+ ],
13
+ "$id": "https://ns.adobe.com/helix/config/project",
14
+ "$schema": "http://json-schema.org/draft-07/schema#",
15
+ "$defs": {
16
+ "emailglob": {
17
+ "oneOf": [
18
+ {
19
+ "type": "string"
20
+ },
21
+ {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "string"
25
+ }
26
+ }
27
+ ],
28
+ "description": "matches one or several users or group of users"
29
+ }
30
+ },
31
+ "title": "ProjectConfig",
32
+ "type": "object",
33
+ "properties": {
34
+ "name": {
35
+ "type": "string",
36
+ "description": "Name of the project used by the slack bot when reporting."
37
+ },
38
+ "project": {
39
+ "type": "string",
40
+ "description": "Name of the project used by the sidekick."
41
+ },
42
+ "timezone": {
43
+ "type": "string",
44
+ "description": "Timezone to be used by the slack bot when reporting times.",
45
+ "examples": [ "Europe/Zurich" ]
46
+ },
47
+ "host": {
48
+ "type": "string",
49
+ "description": "Production host use by the slack bot to display project information."
50
+ },
51
+ "slack": {
52
+ "description": "the slack teamId/channelID(s) where the slack bot is used.",
53
+ "oneOf": [
54
+ {
55
+ "type": "string"
56
+ },
57
+ {
58
+ "type": "array",
59
+ "items": {
60
+ "type": "string"
61
+ }
62
+ }
63
+ ]
64
+ },
65
+ "cdn": {
66
+ "description": "The CDN config",
67
+ "$ref": "./project-config-cdn.schema.json"
68
+ },
69
+ "access": {
70
+ "type": "object",
71
+ "title": "SiteAccessConfig",
72
+ "properties": {
73
+ "allow": {
74
+ "description": "The email glob of the users that are allowed.",
75
+ "$ref": "#/$defs/emailglob"
76
+ }
77
+ },
78
+ "required": [
79
+ "allow"
80
+ ],
81
+ "additionalProperties": false
82
+ },
83
+ "admin": {
84
+ "title": "AdminConfig",
85
+ "type": "object",
86
+ "properties": {
87
+ "role": {
88
+ "title": "Role",
89
+ "type": "object",
90
+ "properties": {
91
+ "author": {
92
+ "description": "The email glob of the users with author role.",
93
+ "$ref": "#/$defs/emailglob"
94
+ },
95
+ "publish": {
96
+ "description": "The email glob of the users with publish role.",
97
+ "$ref": "#/$defs/emailglob"
98
+ }
99
+ },
100
+ "required": [ "role" ],
101
+ "additionalProperties": false
102
+ }
103
+ },
104
+ "additionalProperties": false
105
+ }
106
+ },
107
+ "additionalProperties": false
108
+ }
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Copyright 2023 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
+
13
+ // NOTE: this file is autogenerated via 'npm run docs:types'
14
+ import {ModifierMap} from '@adobe/helix-shared-config';
15
+ import {ProjectConfig} from './project-config';
16
+
17
+ export interface ConfigAll {
18
+ /**
19
+ * Project config (from /.helix/config.json)
20
+ */
21
+ config?: {
22
+ /**
23
+ * The project config
24
+ */
25
+ data: ProjectConfig;
26
+ lastModified: string;
27
+ };
28
+ /**
29
+ * Metadata (from /metadata.json)
30
+ */
31
+ metadata?: {
32
+ data: ModifierMap;
33
+ lastModified: string;
34
+ };
35
+ /**
36
+ * Headers modifier (from /.helix/config.json)
37
+ */
38
+ headers?: {
39
+ data: ModifierMap;
40
+ lastModified: string;
41
+ };
42
+ }
@@ -0,0 +1,127 @@
1
+ /*
2
+ * Copyright 2023 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
+
13
+ // NOTE: this file is autogenerated via 'npm run docs:types'
14
+
15
+ export interface ProjectConfig {
16
+ /**
17
+ * Name of the project used by the slack bot when reporting.
18
+ */
19
+ name?: string;
20
+ /**
21
+ * Name of the project used by the sidekick.
22
+ */
23
+ project?: string;
24
+ /**
25
+ * Timezone to be used by the slack bot when reporting times.
26
+ */
27
+ timezone?: string;
28
+ /**
29
+ * Production host use by the slack bot to display project information.
30
+ */
31
+ host?: string;
32
+ /**
33
+ * the slack teamId/channelID(s) where the slack bot is used.
34
+ */
35
+ slack?: string | string[];
36
+ cdn?: ProjectCDNConfig;
37
+ access?: SiteAccessConfig;
38
+ admin?: AdminConfig;
39
+ }
40
+ /**
41
+ * The CDN config
42
+ */
43
+ export interface ProjectCDNConfig {
44
+ prod: FastlyConfig | AkamaiConfig | CloudflareConfig | ManagedConfig;
45
+ }
46
+ /**
47
+ * Production CDN configuration for Fastly
48
+ */
49
+ export interface FastlyConfig {
50
+ type: 'fastly';
51
+ /**
52
+ * production host
53
+ */
54
+ host: string;
55
+ /**
56
+ * Route or routes on the CDN that are rendered with Franklin
57
+ */
58
+ route: string | string[];
59
+ /**
60
+ * The Fastly Service ID
61
+ */
62
+ serviceId: string;
63
+ /**
64
+ * A Fastly token for purging
65
+ */
66
+ authToken: string;
67
+ }
68
+ export interface AkamaiConfig {
69
+ type: 'akamai';
70
+ /**
71
+ * production host
72
+ */
73
+ host: string;
74
+ /**
75
+ * Route or routes on the CDN that are rendered with Franklin
76
+ */
77
+ route: string | string[];
78
+ endpoint: string;
79
+ clientSecret: string;
80
+ clientToken: string;
81
+ accessToken: string;
82
+ }
83
+ export interface CloudflareConfig {
84
+ type: 'cloudflare';
85
+ /**
86
+ * production host
87
+ */
88
+ host: string;
89
+ /**
90
+ * Route or routes on the CDN that are rendered with Franklin
91
+ */
92
+ route: string | string[];
93
+ origin: string;
94
+ plan: string;
95
+ zoneId: string;
96
+ apiToken: string;
97
+ }
98
+ export interface ManagedConfig {
99
+ type: 'managed';
100
+ /**
101
+ * production host
102
+ */
103
+ host: string;
104
+ /**
105
+ * Route or routes on the CDN that are rendered with Franklin
106
+ */
107
+ route: string | string[];
108
+ }
109
+ export interface SiteAccessConfig {
110
+ /**
111
+ * The email glob of the users that are allowed.
112
+ */
113
+ allow: string | string[];
114
+ }
115
+ export interface AdminConfig {
116
+ role?: Role;
117
+ }
118
+ export interface Role {
119
+ /**
120
+ * The email glob of the users with author role.
121
+ */
122
+ author?: string | string[];
123
+ /**
124
+ * The email glob of the users with publish role.
125
+ */
126
+ publish?: string | string[];
127
+ }