@adobe/aio-cli-plugin-app 10.2.0 → 10.2.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/README.md +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
- package/schema/app.config.yaml.schema.json +157 -0
- package/schema/config.schema.json +25 -2
- package/schema/deploy.yaml.schema.json +107 -0
- package/schema/index.js +19 -0
package/README.md
CHANGED
|
@@ -71,7 +71,7 @@ DESCRIPTION
|
|
|
71
71
|
Create, run, test, and deploy Adobe I/O Apps
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
_See code: [src/commands/app/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/10.2.
|
|
74
|
+
_See code: [src/commands/app/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/10.2.2/src/commands/app/index.js)_
|
|
75
75
|
|
|
76
76
|
## `aio app add`
|
|
77
77
|
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/aio-cli-plugin-app",
|
|
3
3
|
"description": "Create, Build and Deploy Adobe I/O Applications",
|
|
4
|
-
"version": "10.2.
|
|
4
|
+
"version": "10.2.2",
|
|
5
5
|
"author": "Adobe Inc.",
|
|
6
6
|
"bugs": "https://github.com/adobe/aio-cli-plugin-app/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"bin/openwhisk-standalone-config/",
|
|
78
78
|
"oclif.manifest.json",
|
|
79
79
|
"src",
|
|
80
|
-
"schema
|
|
80
|
+
"schema"
|
|
81
81
|
],
|
|
82
82
|
"homepage": "https://github.com/adobe/aio-cli-plugin-app",
|
|
83
83
|
"keywords": [
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://adobe.io/schemas/app-builder/app.config.yaml.json/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"application": { "$ref": "#/definitions/application" },
|
|
7
|
+
"extensions": { "$ref": "#/definitions/extensions" }
|
|
8
|
+
},
|
|
9
|
+
"oneOf": [
|
|
10
|
+
{
|
|
11
|
+
"required": ["application"],
|
|
12
|
+
"allOf": [
|
|
13
|
+
{ "not": { "required": ["extensions"] } }
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"required": ["extensions"],
|
|
18
|
+
"allOf": [
|
|
19
|
+
{ "not": { "required": ["application"] } }
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"definitions": {
|
|
24
|
+
"application": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"runtimeManifest": { "$ref": "#/definitions/runtimeManifest" },
|
|
28
|
+
"actions": { "type": "string" },
|
|
29
|
+
"unitTest": { "type": "string" },
|
|
30
|
+
"e2eTest": { "type": "string" },
|
|
31
|
+
"dist": { "type": "string" },
|
|
32
|
+
"tvmurl": { "type": "string" },
|
|
33
|
+
"awsaccesskeyid": { "type": "string" },
|
|
34
|
+
"awssecretaccesskey": { "type": "string" },
|
|
35
|
+
"s3bucket": { "type": "string" },
|
|
36
|
+
"events": { "type": "object" },
|
|
37
|
+
"hostname": { "type": "string" },
|
|
38
|
+
"htmlcacheduration": { "type": "number" },
|
|
39
|
+
"jscacheduration": { "type": "number" },
|
|
40
|
+
"csscacheduration": { "type": "number" },
|
|
41
|
+
"imagecacheduration": { "type": "number" },
|
|
42
|
+
"hooks": { "$ref": "#/definitions/hooks" },
|
|
43
|
+
"web": { "$ref": "#/definitions/web" }
|
|
44
|
+
},
|
|
45
|
+
"required": ["runtimeManifest"]
|
|
46
|
+
},
|
|
47
|
+
"extensions": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"patternProperties": {
|
|
50
|
+
"^[A-Za-z0-9-_/\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff]{1,20}$": {
|
|
51
|
+
"$ref": "#/definitions/extension"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"additionalProperties": false
|
|
55
|
+
},
|
|
56
|
+
"extension": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"properties": {
|
|
59
|
+
"$include": { "type": "string" }
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"web": {
|
|
63
|
+
"anyOf": [
|
|
64
|
+
{
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "object",
|
|
69
|
+
"properties": {
|
|
70
|
+
"response-headers": { "type": "object" }
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"runtimeManifest": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"properties": {
|
|
78
|
+
"packages": { "$ref": "#/definitions/packages" }
|
|
79
|
+
},
|
|
80
|
+
"required": ["packages"]
|
|
81
|
+
},
|
|
82
|
+
"packages": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"patternProperties": {
|
|
85
|
+
"^[A-Za-z0-9-_\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff]{1,20}$": {
|
|
86
|
+
"$ref": "#/definitions/package"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"additionalProperties": false
|
|
90
|
+
},
|
|
91
|
+
"package": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"properties": {
|
|
94
|
+
"license": { "type": "string" },
|
|
95
|
+
"actions": { "$ref": "#/definitions/actions" }
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"actions": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"patternProperties": {
|
|
101
|
+
"^[A-Za-z0-9-_\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff]{1,20}$": {
|
|
102
|
+
"$ref": "#/definitions/action"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"additionalProperties": false
|
|
106
|
+
},
|
|
107
|
+
"action": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"properties": {
|
|
110
|
+
"function": { "type": "string" },
|
|
111
|
+
"web": { "type": "string" },
|
|
112
|
+
"runtime": { "type": "string" },
|
|
113
|
+
"inputs": { "$ref": "#/definitions/inputs" },
|
|
114
|
+
"annotations": { "$ref": "#/definitions/annotations" }
|
|
115
|
+
},
|
|
116
|
+
"required": ["function", "runtime"]
|
|
117
|
+
},
|
|
118
|
+
"inputs": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"patternProperties": {
|
|
121
|
+
"^[A-Za-z0-9-_\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff]{1,20}$": {
|
|
122
|
+
"type": ["string", "boolean"]
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"additionalProperties": false
|
|
126
|
+
},
|
|
127
|
+
"annotations": {
|
|
128
|
+
"type": "object",
|
|
129
|
+
"patternProperties": {
|
|
130
|
+
"^[A-Za-z0-9-_\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff]{1,20}$": {
|
|
131
|
+
"type": ["string", "boolean"]
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"additionalProperties": false
|
|
135
|
+
},
|
|
136
|
+
"hooks": {
|
|
137
|
+
"type": "object",
|
|
138
|
+
"properties": {
|
|
139
|
+
"pre-app-build": { "type": "string" },
|
|
140
|
+
"post-app-build": { "type": "string" },
|
|
141
|
+
"build-actions": { "type": "string" },
|
|
142
|
+
"build-static": { "type": "string" },
|
|
143
|
+
"pre-app-deploy": { "type": "string" },
|
|
144
|
+
"post-app-deploy": { "type": "string" },
|
|
145
|
+
"deploy-actions": { "type": "string" },
|
|
146
|
+
"deploy-static": { "type": "string" },
|
|
147
|
+
"pre-app-undeploy": { "type": "string" },
|
|
148
|
+
"post-app-undeploy": { "type": "string" },
|
|
149
|
+
"undeploy-actions": { "type": "string" },
|
|
150
|
+
"undeploy-static": { "type": "string" },
|
|
151
|
+
"pre-app-run": { "type": "string" },
|
|
152
|
+
"post-app-run": { "type": "string" },
|
|
153
|
+
"serve-static": { "type": "string" }
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
@@ -125,7 +125,8 @@
|
|
|
125
125
|
"apikey",
|
|
126
126
|
"oauthwebapp",
|
|
127
127
|
"oauthnativeapp",
|
|
128
|
-
"oauthsinglepageapp"
|
|
128
|
+
"oauthsinglepageapp",
|
|
129
|
+
"oauth_server_to_server"
|
|
129
130
|
]
|
|
130
131
|
},
|
|
131
132
|
"jwt": { "$ref": "#/definitions/jwt" },
|
|
@@ -138,7 +139,9 @@
|
|
|
138
139
|
"oneOf": [
|
|
139
140
|
{ "required": ["oauth2"] },
|
|
140
141
|
{ "required": ["jwt"] },
|
|
141
|
-
{ "required": ["api_key"] }
|
|
142
|
+
{ "required": ["api_key"] },
|
|
143
|
+
{ "required": ["oauth_server_to_server"] }
|
|
144
|
+
|
|
142
145
|
]
|
|
143
146
|
},
|
|
144
147
|
"service": {
|
|
@@ -176,6 +179,26 @@
|
|
|
176
179
|
},
|
|
177
180
|
"required": [ "client_id", "client_secret", "redirect_uri", "defaultRedirectUri" ]
|
|
178
181
|
},
|
|
182
|
+
"oauth_server_to_server": {
|
|
183
|
+
"properties": {
|
|
184
|
+
"client_id": { "type": "string" },
|
|
185
|
+
"client_secrets": { "type": "array" },
|
|
186
|
+
"technical_account_email": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"format": "email"
|
|
189
|
+
},
|
|
190
|
+
"technical_account_id": {
|
|
191
|
+
"type": "string",
|
|
192
|
+
"format": "email"
|
|
193
|
+
},
|
|
194
|
+
"scopes": {
|
|
195
|
+
"type": "array",
|
|
196
|
+
"items": { "type": "string" },
|
|
197
|
+
"default": []
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"required": [ "client_id", "client_secrets", "technical_account_email", "technical_account_id", "scopes" ]
|
|
201
|
+
},
|
|
179
202
|
"oauthsinglepageapp": {
|
|
180
203
|
"type": "object",
|
|
181
204
|
"properties": {
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://adobe.io/schemas/app-builder/deploy.yaml.json/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"application": { "$ref": "#/definitions/application" },
|
|
7
|
+
"workspaces": { "$ref": "#/definitions/workspaces" },
|
|
8
|
+
"meshConfig": { "$ref": "#/definitions/meshConfig" },
|
|
9
|
+
"extensions": { "$ref": "#/definitions/extensions" },
|
|
10
|
+
"apis": { "$ref": "#/definitions/apis" },
|
|
11
|
+
"runtime": {
|
|
12
|
+
"type": "boolean",
|
|
13
|
+
"default": true
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["application", "runtime"],
|
|
17
|
+
"definitions": {
|
|
18
|
+
"application": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"id": { "type": "string" },
|
|
22
|
+
"version": { "type": "string" }
|
|
23
|
+
},
|
|
24
|
+
"required": ["id", "version"]
|
|
25
|
+
},
|
|
26
|
+
"workspaces": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"items": { "$ref": "#/definitions/workspace" },
|
|
29
|
+
"default": []
|
|
30
|
+
},
|
|
31
|
+
"meshConfig": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"properties": {
|
|
34
|
+
"meshConfig": { "$ref": "#/definitions/meshConfigNested" },
|
|
35
|
+
"meshId": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"lastUpdatedBy": { "type": "object" },
|
|
39
|
+
"lastUpdated": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"pattern": "(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:\\.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)"
|
|
42
|
+
},
|
|
43
|
+
"meshStatus": { "type": "string" }
|
|
44
|
+
},
|
|
45
|
+
"required": ["meshConfig", "meshId"]
|
|
46
|
+
},
|
|
47
|
+
"meshConfigNested": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"properties": {
|
|
50
|
+
"sources": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": { "$ref": "#/definitions/meshConfigSource" },
|
|
53
|
+
"default": []
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"meshConfigSource": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"properties": {
|
|
60
|
+
"name": { "type": "string" },
|
|
61
|
+
"handler": { "$ref": "#/definitions/meshConfigSourceHandler" }
|
|
62
|
+
},
|
|
63
|
+
"required": ["name", "handler"]
|
|
64
|
+
},
|
|
65
|
+
"meshConfigSourceHandler": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"graphql": { "$ref": "#/definitions/graphql" }
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"graphql": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"properties": {
|
|
74
|
+
"handler": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"format": "uri"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"workspace": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"pattern": "^[A-Za-z0-9\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff]{1,20}$"
|
|
83
|
+
},
|
|
84
|
+
"extensions": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"items": { "$ref": "#/definitions/extension" }
|
|
87
|
+
},
|
|
88
|
+
"extension": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"properties": {
|
|
91
|
+
"extensionPointId": { "type": "string" }
|
|
92
|
+
},
|
|
93
|
+
"required": ["extensionPointId"]
|
|
94
|
+
},
|
|
95
|
+
"apis": {
|
|
96
|
+
"type": "array",
|
|
97
|
+
"items": { "$ref": "#/definitions/api" }
|
|
98
|
+
},
|
|
99
|
+
"api": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"properties": {
|
|
102
|
+
"code": { "type": "string" }
|
|
103
|
+
},
|
|
104
|
+
"required": ["code"]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
package/schema/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
const { USER_CONFIG_FILE, DEPLOY_CONFIG_FILE, IMPORT_CONFIG_FILE } = require('../src/lib/defaults')
|
|
14
|
+
|
|
15
|
+
module.exports = {
|
|
16
|
+
[IMPORT_CONFIG_FILE]: require('./config.schema.json'),
|
|
17
|
+
[USER_CONFIG_FILE]: require('./app.config.yaml.schema.json'),
|
|
18
|
+
[DEPLOY_CONFIG_FILE]: require('./deploy.yaml.schema.json')
|
|
19
|
+
}
|