@forge/manifest 0.0.0-experimental-d8cea00 → 0.0.0-experimental-64caa5a
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 +354 -2
- package/out/builder/processor-builder.d.ts.map +1 -1
- package/out/builder/processor-builder.js +3 -0
- package/out/mapping/product-event-to-scope-mapping.json +90 -0
- package/out/processor/deprecated-csp-method-validation-processor.d.ts +6 -0
- package/out/processor/deprecated-csp-method-validation-processor.d.ts.map +1 -0
- package/out/processor/deprecated-csp-method-validation-processor.js +18 -0
- package/out/schema/manifest-schema.json +1814 -530
- package/out/schema/manifest.d.ts +1157 -575
- package/out/scopes/shipyard-scopes.json +170 -45
- package/out/text/errors.d.ts +1 -0
- package/out/text/errors.d.ts.map +1 -1
- package/out/text/errors.js +1 -0
- package/out/types/module-types.d.ts +2 -0
- package/out/types/module-types.d.ts.map +1 -1
- package/out/types/module-types.js +2 -0
- package/out/types/validation-types.d.ts +2 -1
- package/out/types/validation-types.d.ts.map +1 -1
- package/out/types/validation-types.js +1 -0
- package/out/validators/modules-validator.js +1 -1
- package/out/validators/resources-validator.d.ts.map +1 -1
- package/out/validators/resources-validator.js +26 -2
- package/package.json +3 -2
|
@@ -1,28 +1,99 @@
|
|
|
1
1
|
[
|
|
2
|
+
"access-email-addresses:connect-confluence",
|
|
2
3
|
"access-email-addresses:connect-jira",
|
|
4
|
+
"act-as-user:connect-confluence",
|
|
3
5
|
"act-as-user:connect-jira",
|
|
6
|
+
"admin:connect-confluence",
|
|
4
7
|
"admin:connect-jira",
|
|
8
|
+
"delete:async-task:jira",
|
|
9
|
+
"delete:attachment:confluence",
|
|
10
|
+
"delete:attachment:jira",
|
|
11
|
+
"delete:avatar:jira",
|
|
12
|
+
"delete:blogpost:confluence",
|
|
13
|
+
"delete:board-scope.admin:jira-software",
|
|
14
|
+
"delete:comment.property:jira",
|
|
15
|
+
"delete:comment:confluence",
|
|
16
|
+
"delete:comment:jira",
|
|
17
|
+
"delete:connect-confluence",
|
|
5
18
|
"delete:connect-jira",
|
|
6
19
|
"delete:content:confluence",
|
|
20
|
+
"delete:custom-content:confluence",
|
|
21
|
+
"delete:dashboard.property:jira",
|
|
22
|
+
"delete:dashboard:jira",
|
|
23
|
+
"delete:field-configuration-scheme:jira",
|
|
24
|
+
"delete:field-configuration:jira",
|
|
25
|
+
"delete:field.option:jira",
|
|
26
|
+
"delete:field:jira",
|
|
27
|
+
"delete:filter.column:jira",
|
|
28
|
+
"delete:filter:jira",
|
|
29
|
+
"delete:group:jira",
|
|
30
|
+
"delete:issue-link-type:jira",
|
|
31
|
+
"delete:issue-link:jira",
|
|
32
|
+
"delete:issue-type-scheme:jira",
|
|
33
|
+
"delete:issue-type-screen-scheme:jira",
|
|
34
|
+
"delete:issue-type.property:jira",
|
|
35
|
+
"delete:issue-type:jira",
|
|
36
|
+
"delete:issue-worklog.property:jira",
|
|
37
|
+
"delete:issue-worklog:jira",
|
|
38
|
+
"delete:issue.property:jira",
|
|
39
|
+
"delete:issue.remote-link:jira",
|
|
40
|
+
"delete:issue:jira",
|
|
41
|
+
"delete:organization.property:jira-service-management",
|
|
42
|
+
"delete:organization.user:jira-service-management",
|
|
43
|
+
"delete:organization:jira-service-management",
|
|
44
|
+
"delete:page:confluence",
|
|
45
|
+
"delete:permission-scheme:jira",
|
|
46
|
+
"delete:permission:jira",
|
|
47
|
+
"delete:project-category:jira",
|
|
48
|
+
"delete:project-role:jira",
|
|
49
|
+
"delete:project-version:jira",
|
|
50
|
+
"delete:project.avatar:jira",
|
|
51
|
+
"delete:project.component:jira",
|
|
52
|
+
"delete:project.property:jira",
|
|
53
|
+
"delete:project:jira",
|
|
54
|
+
"delete:request.feedback:jira-service-management",
|
|
55
|
+
"delete:request.notification:jira-service-management",
|
|
56
|
+
"delete:request.participant:jira-service-management",
|
|
57
|
+
"delete:requesttype.property:jira-service-management",
|
|
58
|
+
"delete:screen-scheme:jira",
|
|
59
|
+
"delete:screen-tab:jira",
|
|
60
|
+
"delete:screen:jira",
|
|
61
|
+
"delete:screenable-field:jira",
|
|
62
|
+
"delete:servicedesk.customer:jira-service-management",
|
|
63
|
+
"delete:servicedesk.organization:jira-service-management",
|
|
64
|
+
"delete:servicedesk.property:jira-service-management",
|
|
7
65
|
"delete:space:confluence",
|
|
66
|
+
"delete:sprint:jira-software",
|
|
67
|
+
"delete:user-configuration:jira",
|
|
68
|
+
"delete:user.property:jira",
|
|
69
|
+
"delete:webhook:jira",
|
|
70
|
+
"delete:workflow-scheme:jira",
|
|
71
|
+
"delete:workflow.property:jira",
|
|
72
|
+
"delete:workflow:jira",
|
|
8
73
|
"manage:confluence-configuration",
|
|
9
74
|
"manage:jira-configuration",
|
|
10
75
|
"manage:jira-data-provider",
|
|
11
76
|
"manage:jira-project",
|
|
12
77
|
"manage:jira-webhook",
|
|
78
|
+
"manage:servicedesk-customer",
|
|
13
79
|
"project-admin:connect-jira",
|
|
14
80
|
"read:account",
|
|
15
81
|
"read:analytics.content:confluence",
|
|
82
|
+
"read:application-role:jira",
|
|
16
83
|
"read:attachment:confluence",
|
|
84
|
+
"read:attachment:jira",
|
|
17
85
|
"read:audit-log:confluence",
|
|
18
86
|
"read:audit-log:jira",
|
|
19
87
|
"read:avatar:jira",
|
|
88
|
+
"read:blogpost:confluence",
|
|
20
89
|
"read:board-scope.admin:jira-software",
|
|
21
90
|
"read:board-scope:jira-software",
|
|
22
91
|
"read:build:jira-software",
|
|
92
|
+
"read:comment.property:jira",
|
|
93
|
+
"read:comment:confluence",
|
|
94
|
+
"read:comment:jira",
|
|
23
95
|
"read:component:compass",
|
|
24
96
|
"read:configuration:confluence",
|
|
25
|
-
"read:configuration:jira",
|
|
26
97
|
"read:confluence-content.all",
|
|
27
98
|
"read:confluence-content.permission",
|
|
28
99
|
"read:confluence-content.summary",
|
|
@@ -30,18 +101,16 @@
|
|
|
30
101
|
"read:confluence-props",
|
|
31
102
|
"read:confluence-space.summary",
|
|
32
103
|
"read:confluence-user",
|
|
104
|
+
"read:connect-confluence",
|
|
33
105
|
"read:connect-jira",
|
|
34
|
-
"read:content
|
|
35
|
-
"read:content.
|
|
36
|
-
"read:content.inlinetask:confluence",
|
|
37
|
-
"read:content.label:confluence",
|
|
106
|
+
"read:content-details:confluence",
|
|
107
|
+
"read:content.metadata:confluence",
|
|
38
108
|
"read:content.permission:confluence",
|
|
39
109
|
"read:content.property:confluence",
|
|
40
110
|
"read:content.restriction:confluence",
|
|
41
|
-
"read:content.summary:confluence",
|
|
42
|
-
"read:content.template:confluence",
|
|
43
|
-
"read:content.watcher:confluence",
|
|
44
111
|
"read:content:confluence",
|
|
112
|
+
"read:custom-content:confluence",
|
|
113
|
+
"read:custom-field-contextual-configuration:jira",
|
|
45
114
|
"read:customer:jira-service-management",
|
|
46
115
|
"read:dashboard.property:jira",
|
|
47
116
|
"read:dashboard:jira",
|
|
@@ -50,47 +119,72 @@
|
|
|
50
119
|
"read:event:compass",
|
|
51
120
|
"read:feature-flag:jira-software",
|
|
52
121
|
"read:field-configuration-scheme:jira",
|
|
122
|
+
"read:field-configuration:jira",
|
|
123
|
+
"read:field.default-value:jira",
|
|
124
|
+
"read:field.option:jira",
|
|
125
|
+
"read:field.options:jira",
|
|
53
126
|
"read:field:jira",
|
|
127
|
+
"read:filter.column:jira",
|
|
128
|
+
"read:filter.default-share-scope:jira",
|
|
54
129
|
"read:filter:jira",
|
|
55
130
|
"read:group:confluence",
|
|
56
131
|
"read:group:jira",
|
|
57
|
-
"read:
|
|
58
|
-
"read:instance:jira",
|
|
132
|
+
"read:inlinetask:confluence",
|
|
133
|
+
"read:instance-configuration:jira",
|
|
134
|
+
"read:issue-details:jira",
|
|
135
|
+
"read:issue-event:jira",
|
|
136
|
+
"read:issue-field-values:jira",
|
|
59
137
|
"read:issue-link-type:jira",
|
|
138
|
+
"read:issue-link:jira",
|
|
139
|
+
"read:issue-meta:jira",
|
|
140
|
+
"read:issue-security-level:jira",
|
|
60
141
|
"read:issue-security-scheme:jira",
|
|
142
|
+
"read:issue-status:jira",
|
|
143
|
+
"read:issue-type-hierarchy:jira",
|
|
61
144
|
"read:issue-type-scheme:jira",
|
|
62
145
|
"read:issue-type-screen-scheme:jira",
|
|
146
|
+
"read:issue-type-transition:jira",
|
|
63
147
|
"read:issue-type.property:jira",
|
|
64
148
|
"read:issue-type:jira",
|
|
65
|
-
"read:issue.
|
|
66
|
-
"read:issue
|
|
67
|
-
"read:issue.
|
|
68
|
-
"read:issue.link:jira",
|
|
149
|
+
"read:issue-worklog.property:jira",
|
|
150
|
+
"read:issue-worklog:jira",
|
|
151
|
+
"read:issue.changelog:jira",
|
|
69
152
|
"read:issue.property:jira",
|
|
70
153
|
"read:issue.remote-link:jira",
|
|
71
154
|
"read:issue.time-tracking:jira",
|
|
72
|
-
"read:issue.
|
|
73
|
-
"read:issue.
|
|
74
|
-
"read:issue.
|
|
75
|
-
"read:issue.
|
|
155
|
+
"read:issue.transition:jira",
|
|
156
|
+
"read:issue.vote:jira",
|
|
157
|
+
"read:issue.votes:jira",
|
|
158
|
+
"read:issue.watcher:jira",
|
|
76
159
|
"read:issue:jira",
|
|
77
160
|
"read:issue:jira-software",
|
|
161
|
+
"read:jira-expressions:jira",
|
|
78
162
|
"read:jira-user",
|
|
79
163
|
"read:jira-work",
|
|
164
|
+
"read:jql:jira",
|
|
80
165
|
"read:knowledgebase:jira-service-management",
|
|
166
|
+
"read:label:confluence",
|
|
81
167
|
"read:label:jira",
|
|
168
|
+
"read:license:jira",
|
|
82
169
|
"read:me",
|
|
170
|
+
"read:metric:compass",
|
|
83
171
|
"read:notification-scheme:jira",
|
|
84
172
|
"read:organization.property:jira-service-management",
|
|
85
173
|
"read:organization.user:jira-service-management",
|
|
86
174
|
"read:organization:jira-service-management",
|
|
87
|
-
"read:
|
|
175
|
+
"read:page:confluence",
|
|
176
|
+
"read:permission-scheme:jira",
|
|
177
|
+
"read:permission:jira",
|
|
88
178
|
"read:priority:jira",
|
|
89
179
|
"read:project-category:jira",
|
|
90
|
-
"read:project
|
|
91
|
-
"read:project
|
|
180
|
+
"read:project-role:jira",
|
|
181
|
+
"read:project-type:jira",
|
|
182
|
+
"read:project-version:jira",
|
|
183
|
+
"read:project.avatar:jira",
|
|
184
|
+
"read:project.component:jira",
|
|
185
|
+
"read:project.email:jira",
|
|
186
|
+
"read:project.feature:jira",
|
|
92
187
|
"read:project.property:jira",
|
|
93
|
-
"read:project.version:jira",
|
|
94
188
|
"read:project:jira",
|
|
95
189
|
"read:queue:jira-service-management",
|
|
96
190
|
"read:relation:confluence",
|
|
@@ -110,38 +204,54 @@
|
|
|
110
204
|
"read:resolution:jira",
|
|
111
205
|
"read:role:jira",
|
|
112
206
|
"read:scorecard:compass",
|
|
207
|
+
"read:screen-field:jira",
|
|
208
|
+
"read:screen-scheme:jira",
|
|
209
|
+
"read:screen-tab:jira",
|
|
113
210
|
"read:screen:jira",
|
|
211
|
+
"read:screenable-field:jira",
|
|
212
|
+
"read:servicedesk-request",
|
|
114
213
|
"read:servicedesk.customer:jira-service-management",
|
|
115
214
|
"read:servicedesk.organization:jira-service-management",
|
|
116
215
|
"read:servicedesk.property:jira-service-management",
|
|
117
216
|
"read:servicedesk:jira-service-management",
|
|
217
|
+
"read:servicemanagement-insight-objects",
|
|
118
218
|
"read:source-code:jira-software",
|
|
219
|
+
"read:space-details:confluence",
|
|
119
220
|
"read:space.permission:confluence",
|
|
120
221
|
"read:space.property:confluence",
|
|
121
222
|
"read:space.setting:confluence",
|
|
122
223
|
"read:space:confluence",
|
|
123
224
|
"read:sprint:jira-software",
|
|
124
225
|
"read:status:jira",
|
|
125
|
-
"read:
|
|
226
|
+
"read:template:confluence",
|
|
227
|
+
"read:user-configuration:jira",
|
|
228
|
+
"read:user.columns:jira",
|
|
126
229
|
"read:user.property:jira",
|
|
127
230
|
"read:user:confluence",
|
|
128
231
|
"read:user:jira",
|
|
232
|
+
"read:watcher:confluence",
|
|
129
233
|
"read:webhook:jira",
|
|
234
|
+
"read:workflow-scheme:jira",
|
|
130
235
|
"read:workflow.property:jira",
|
|
131
236
|
"read:workflow:jira",
|
|
237
|
+
"readonly:content.attachment:confluence",
|
|
132
238
|
"report:personal-data",
|
|
133
239
|
"search:confluence",
|
|
134
|
-
"search:issue:jira",
|
|
135
|
-
"search:jira",
|
|
136
|
-
"search:user:jira",
|
|
137
240
|
"send:notification:jira",
|
|
241
|
+
"space-admin:connect-confluence",
|
|
138
242
|
"storage:app",
|
|
243
|
+
"validate:jql:jira",
|
|
139
244
|
"write:attachment:confluence",
|
|
245
|
+
"write:attachment:jira",
|
|
140
246
|
"write:audit-log:confluence",
|
|
141
247
|
"write:avatar:jira",
|
|
248
|
+
"write:blogpost:confluence",
|
|
142
249
|
"write:board-scope.admin:jira-software",
|
|
143
250
|
"write:board-scope:jira-software",
|
|
144
251
|
"write:build:jira-software",
|
|
252
|
+
"write:comment.property:jira",
|
|
253
|
+
"write:comment:confluence",
|
|
254
|
+
"write:comment:jira",
|
|
145
255
|
"write:component:compass",
|
|
146
256
|
"write:configuration:confluence",
|
|
147
257
|
"write:confluence-content",
|
|
@@ -149,14 +259,13 @@
|
|
|
149
259
|
"write:confluence-groups",
|
|
150
260
|
"write:confluence-props",
|
|
151
261
|
"write:confluence-space",
|
|
262
|
+
"write:connect-confluence",
|
|
152
263
|
"write:connect-jira",
|
|
153
|
-
"write:content.inlinetask:confluence",
|
|
154
|
-
"write:content.label:confluence",
|
|
155
264
|
"write:content.property:confluence",
|
|
156
265
|
"write:content.restriction:confluence",
|
|
157
|
-
"write:content.template:confluence",
|
|
158
|
-
"write:content.watcher:confluence",
|
|
159
266
|
"write:content:confluence",
|
|
267
|
+
"write:custom-content:confluence",
|
|
268
|
+
"write:custom-field-contextual-configuration:jira",
|
|
160
269
|
"write:customer:jira-service-management",
|
|
161
270
|
"write:dashboard.property:jira",
|
|
162
271
|
"write:dashboard:jira",
|
|
@@ -165,38 +274,49 @@
|
|
|
165
274
|
"write:event:compass",
|
|
166
275
|
"write:feature-flag:jira-software",
|
|
167
276
|
"write:field-configuration-scheme:jira",
|
|
277
|
+
"write:field-configuration:jira",
|
|
278
|
+
"write:field.default-value:jira",
|
|
279
|
+
"write:field.option:jira",
|
|
168
280
|
"write:field:jira",
|
|
281
|
+
"write:filter.column:jira",
|
|
282
|
+
"write:filter.default-share-scope:jira",
|
|
169
283
|
"write:filter:jira",
|
|
170
284
|
"write:group:confluence",
|
|
171
285
|
"write:group:jira",
|
|
286
|
+
"write:inlinetask:confluence",
|
|
287
|
+
"write:instance-configuration:jira",
|
|
172
288
|
"write:issue-link-type:jira",
|
|
289
|
+
"write:issue-link:jira",
|
|
173
290
|
"write:issue-type-scheme:jira",
|
|
174
291
|
"write:issue-type-screen-scheme:jira",
|
|
175
292
|
"write:issue-type.property:jira",
|
|
176
293
|
"write:issue-type:jira",
|
|
177
|
-
"write:issue.
|
|
178
|
-
"write:issue
|
|
179
|
-
"write:issue.comment:jira",
|
|
180
|
-
"write:issue.link:jira",
|
|
294
|
+
"write:issue-worklog.property:jira",
|
|
295
|
+
"write:issue-worklog:jira",
|
|
181
296
|
"write:issue.property:jira",
|
|
182
297
|
"write:issue.remote-link:jira",
|
|
183
298
|
"write:issue.time-tracking:jira",
|
|
184
|
-
"write:issue.
|
|
185
|
-
"write:issue.
|
|
186
|
-
"write:issue.worklog.property:jira",
|
|
187
|
-
"write:issue.worklog:jira",
|
|
299
|
+
"write:issue.vote:jira",
|
|
300
|
+
"write:issue.watcher:jira",
|
|
188
301
|
"write:issue:jira",
|
|
189
302
|
"write:issue:jira-software",
|
|
190
303
|
"write:jira-work",
|
|
304
|
+
"write:label:confluence",
|
|
305
|
+
"write:metric:compass",
|
|
191
306
|
"write:organization.property:jira-service-management",
|
|
192
307
|
"write:organization.user:jira-service-management",
|
|
193
308
|
"write:organization:jira-service-management",
|
|
194
|
-
"write:
|
|
309
|
+
"write:page:confluence",
|
|
310
|
+
"write:permission-scheme:jira",
|
|
311
|
+
"write:permission:jira",
|
|
195
312
|
"write:project-category:jira",
|
|
196
|
-
"write:project
|
|
197
|
-
"write:project
|
|
313
|
+
"write:project-role:jira",
|
|
314
|
+
"write:project-version:jira",
|
|
315
|
+
"write:project.avatar:jira",
|
|
316
|
+
"write:project.component:jira",
|
|
317
|
+
"write:project.email:jira",
|
|
318
|
+
"write:project.feature:jira",
|
|
198
319
|
"write:project.property:jira",
|
|
199
|
-
"write:project.version:jira",
|
|
200
320
|
"write:project:jira",
|
|
201
321
|
"write:relation:confluence",
|
|
202
322
|
"write:remote-link:jira-software",
|
|
@@ -210,9 +330,12 @@
|
|
|
210
330
|
"write:request:jira-service-management",
|
|
211
331
|
"write:requesttype.property:jira-service-management",
|
|
212
332
|
"write:requesttype:jira-service-management",
|
|
213
|
-
"write:role:jira",
|
|
214
333
|
"write:scorecard:compass",
|
|
334
|
+
"write:screen-scheme:jira",
|
|
335
|
+
"write:screen-tab:jira",
|
|
215
336
|
"write:screen:jira",
|
|
337
|
+
"write:screenable-field:jira",
|
|
338
|
+
"write:servicedesk-request",
|
|
216
339
|
"write:servicedesk.customer:jira-service-management",
|
|
217
340
|
"write:servicedesk.organization:jira-service-management",
|
|
218
341
|
"write:servicedesk.property:jira-service-management",
|
|
@@ -223,10 +346,12 @@
|
|
|
223
346
|
"write:space.setting:confluence",
|
|
224
347
|
"write:space:confluence",
|
|
225
348
|
"write:sprint:jira-software",
|
|
226
|
-
"write:
|
|
349
|
+
"write:template:confluence",
|
|
350
|
+
"write:user-configuration:jira",
|
|
227
351
|
"write:user.property:jira",
|
|
228
|
-
"write:
|
|
352
|
+
"write:watcher:confluence",
|
|
229
353
|
"write:webhook:jira",
|
|
354
|
+
"write:workflow-scheme:jira",
|
|
230
355
|
"write:workflow.property:jira",
|
|
231
356
|
"write:workflow:jira"
|
|
232
357
|
]
|
package/out/text/errors.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export declare const errors: {
|
|
|
53
53
|
missingDirectory: (folder: string, key: string) => string;
|
|
54
54
|
emptyDirectory: (folder: string, key: string) => string;
|
|
55
55
|
missingEntrypoint: (folder: string, key: string) => string;
|
|
56
|
+
deprecatedCspPolicyDefinition: (folder: string) => string;
|
|
56
57
|
tooManyResourcesError: (limit: number) => string;
|
|
57
58
|
};
|
|
58
59
|
deprecationInfo: {
|
package/out/text/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/text/errors.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;8BACS,MAAM,KAAG,MAAM;2BACpB,MAAM;yBAEN,MAAM,GAAG,SAAS,QAAQ,MAAM,EAAE,UAAU,MAAM,GAAG,SAAS,KAAG,MAAM;;uBAO3E,MAAM,EAAE,EAAE,GAAG,SAAS,KAAG,MAAM;4BAI1B,MAAM,EAAE,KAAG,MAAM;mCACV,MAAM,SAAS,MAAM,0CAA4B,MAAM;mDAIvC,MAAM,KAAG,MAAM;;;qCAI7B,MAAM,SAAS,MAAM,KAAG,MAAM;4CAEvB,MAAM,SAAS,MAAM,KAAG,MAAM;;;uCAInC,MAAM,KAAG,MAAM;oCACpB,MAAM;iCAEP,MAAM,KAAG,MAAM;4CACJ,MAAM,KAAG,MAAM;;;gCAG3B,MAAM,KAAG,MAAM;6BACpB,MAAM;+BACJ,MAAM;iCACF,MAAM,KAAG,MAAM;yCACP,MAAM,eAAe,MAAM,KAAG,MAAM;yCAEpC,MAAM,eAAe,MAAM,KAAG,MAAM;;yCAGtC,MAAM,KAAG,MAAM;iCAEvB,MAAM,KAAG,MAAM;4CACJ,MAAM,gBAAgB,MAAM,KAAG,MAAM;sCAE3C,MAAM,gBAAgB,MAAM,gBAAgB,MAAM,KAAG,MAAM;;;mCAI9D,MAAM,KAAG,MAAM;mCAEf,MAAM,KAAG,MAAM;;;mCAIf,MAAM,KAAG,MAAM;;;mCAIf,MAAM,EAAE,KAAG,MAAM;;;oCAIhB,MAAM,KAAG,MAAM;;oCAEjB,MAAM,SAAS,MAAM,K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MAAM;;;;;mCAQ/B,MAAM,OAAO,MAAM,KAAG,MAAM;iCAE9B,MAAM,OAAO,MAAM,KAAG,MAAM;oCAEzB,MAAM,OAAO,MAAM,KAAG,MAAM;gDAEhB,MAAM,KAAG,MAAM;uCAExB,MAAM,KAAG,MAAM;;;;;;;;kCAQpB,MAAM,UAAU,MAAM,KAAG,MAAM;gCAEjC,MAAM,KAAG,MAAM;2CAEJ,MAAM,eAAe,MAAM,KAAG,MAAM;;;uCAI1C,MAAM;uCAEJ,MAAM,KAAG,MAAM;;CAGjD,CAAC;AAEF,oBAAY,UAAU;IACpB,eAAe,2BAA2B;IAC1C,eAAe,wBAAwB;IACvC,WAAW,4BAA4B;IACvC,WAAW,+BAA+B;IAC1C,aAAa,8BAA8B;IAC3C,OAAO,0BAA0B;IACjC,cAAc,kCAAkC;IAChD,mBAAmB,0BAA0B;IAC7C,SAAS,4BAA4B;IACrC,SAAS,4BAA4B;IACrC,UAAU,wBAAwB;IAClC,GAAG,8BAA8B;CAClC"}
|
package/out/text/errors.js
CHANGED
|
@@ -65,6 +65,7 @@ exports.errors = {
|
|
|
65
65
|
missingDirectory: (folder, key) => `missing directory '${folder}' is being referenced by '${key}' in resources`,
|
|
66
66
|
emptyDirectory: (folder, key) => `empty directory '${folder}' is being referenced by '${key}' in resources`,
|
|
67
67
|
missingEntrypoint: (folder, key) => `missing index.html file in directory (${folder}) is being referenced by a custom UI resource in ${key} module`,
|
|
68
|
+
deprecatedCspPolicyDefinition: (folder) => `The index.html file in the (${folder}) directory is using a deprecated method of defining CSP. To use the supported method, go to: https://go.atlassian.com/forge-content-security-and-egress-controls`,
|
|
68
69
|
tooManyResourcesError: (limit) => `document exceeds ${limit} resources`
|
|
69
70
|
},
|
|
70
71
|
deprecationInfo: {
|
|
@@ -9,6 +9,7 @@ export declare enum AllModuleTypes {
|
|
|
9
9
|
ConfluenceContentBylineItem = "confluence:contentBylineItem",
|
|
10
10
|
ConfluenceContextMenu = "confluence:contextMenu",
|
|
11
11
|
ConfluenceGlobalSettings = "confluence:globalSettings",
|
|
12
|
+
ConfluenceGlobalPage = "confluence:globalPage",
|
|
12
13
|
ConfluenceHomepageFeed = "confluence:homepageFeed",
|
|
13
14
|
ConfluenceSpacePage = "confluence:spacePage",
|
|
14
15
|
ConfluenceSpaceSettings = "confluence:spaceSettings",
|
|
@@ -26,6 +27,7 @@ export declare enum AllModuleTypes {
|
|
|
26
27
|
JiraDashboardGadget = "jira:dashboardGadget",
|
|
27
28
|
CompassAdminPage = "compass:adminPage",
|
|
28
29
|
CompassComponentPage = "compass:componentPage",
|
|
30
|
+
CompassGlobalPage = "compass:globalPage",
|
|
29
31
|
ConnectJiraAdminPages = "connect-jira:adminPages",
|
|
30
32
|
ConnectJiraJiraBackgroundScripts = "connect-jira:jiraBackgroundScripts",
|
|
31
33
|
ConnectJiraGeneralPages = "connect-jira:generalPages",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-types.d.ts","sourceRoot":"","sources":["../../src/types/module-types.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,YAAY,kBAAkB;IAC9B,WAAW,iBAAiB;IAC5B,cAAc,oBAAoB;IAClC,YAAY,kBAAkB;IAC9B,oBAAoB,0BAA0B;IAC9C,QAAQ,cAAc;IACtB,uBAAuB,6BAA6B;IACpD,2BAA2B,iCAAiC;IAC5D,qBAAqB,2BAA2B;IAChD,wBAAwB,8BAA8B;IACtD,sBAAsB,4BAA4B;IAClD,mBAAmB,yBAAyB;IAC5C,uBAAuB,6BAA6B;IACpD,qBAAqB,2BAA2B;IAChD,eAAe,qBAAqB;IACpC,mBAAmB,yBAAyB;IAC5C,eAAe,qBAAqB;IACpC,iBAAiB,uBAAuB;IACxC,eAAe,qBAAqB;IACpC,cAAc,oBAAoB;IAClC,aAAa,mBAAmB;IAChC,eAAe,qBAAqB;IACpC,uBAAuB,6BAA6B;IACpD,cAAc,oBAAoB;IAClC,mBAAmB,yBAAyB;IAC5C,gBAAgB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CAAmC,0CAA0C;IAC7E,8BAA8B,qCAAqC;IACnE,wBAAwB,+BAA+B;IACvD,qCAAqC,4CAA4C;IACjF,6BAA6B,oCAAoC;IACjE,kCAAkC,yCAAyC;IAC3E,gCAAgC,uCAAuC;IACvE,+BAA+B,sCAAsC;IACrE,oCAAoC,2CAA2C;IAC/E,yBAAyB,gCAAgC;IACzD,0BAA0B,iCAAiC;IAC3D,4BAA4B,mCAAmC;IAC/D,yBAAyB,gCAAgC;IACzD,wBAAwB,+BAA+B;IACvD,kBAAkB,yBAAyB;IAC3C,gCAAgC,uCAAuC;IACvE,qCAAqC,4CAA4C;IACjF,8BAA8B,qCAAqC;IACnE,+BAA+B,sCAAsC;IACrE,sCAAsC,6CAA6C;IACnF,4BAA4B,mCAAmC;IAC/D,6BAA6B,oCAAoC;IACjE,yBAAyB,gCAAgC;IACzD,2BAA2B,kCAAkC;IAC7D,iCAAiC,wCAAwC;IACzE,sBAAsB,6BAA6B;IACnD,iCAAiC,wCAAwC;IACzE,oCAAoC,2CAA2C;IAC/E,iCAAiC,wCAAwC;IACzE,0BAA0B,iCAAiC;IAC3D,oBAAoB,2BAA2B;IAC/C,sBAAsB,6BAA6B;IACnD,mBAAmB,0BAA0B;IAC7C,0BAA0B,iCAAiC;CAC5D;AAED,eAAO,MAAM,iBAAiB,kBAAgC,CAAC;AAE/D,eAAO,MAAM,uBAAuB,UAAwE,CAAC"}
|
|
@@ -13,6 +13,7 @@ var AllModuleTypes;
|
|
|
13
13
|
AllModuleTypes["ConfluenceContentBylineItem"] = "confluence:contentBylineItem";
|
|
14
14
|
AllModuleTypes["ConfluenceContextMenu"] = "confluence:contextMenu";
|
|
15
15
|
AllModuleTypes["ConfluenceGlobalSettings"] = "confluence:globalSettings";
|
|
16
|
+
AllModuleTypes["ConfluenceGlobalPage"] = "confluence:globalPage";
|
|
16
17
|
AllModuleTypes["ConfluenceHomepageFeed"] = "confluence:homepageFeed";
|
|
17
18
|
AllModuleTypes["ConfluenceSpacePage"] = "confluence:spacePage";
|
|
18
19
|
AllModuleTypes["ConfluenceSpaceSettings"] = "confluence:spaceSettings";
|
|
@@ -30,6 +31,7 @@ var AllModuleTypes;
|
|
|
30
31
|
AllModuleTypes["JiraDashboardGadget"] = "jira:dashboardGadget";
|
|
31
32
|
AllModuleTypes["CompassAdminPage"] = "compass:adminPage";
|
|
32
33
|
AllModuleTypes["CompassComponentPage"] = "compass:componentPage";
|
|
34
|
+
AllModuleTypes["CompassGlobalPage"] = "compass:globalPage";
|
|
33
35
|
AllModuleTypes["ConnectJiraAdminPages"] = "connect-jira:adminPages";
|
|
34
36
|
AllModuleTypes["ConnectJiraJiraBackgroundScripts"] = "connect-jira:jiraBackgroundScripts";
|
|
35
37
|
AllModuleTypes["ConnectJiraGeneralPages"] = "connect-jira:generalPages";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-types.d.ts","sourceRoot":"","sources":["../../src/types/validation-types.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,eAAe,oBAAoB;
|
|
1
|
+
{"version":3,"file":"validation-types.d.ts","sourceRoot":"","sources":["../../src/types/validation-types.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,eAAe,oBAAoB;IACnC,qBAAqB,0BAA0B;CAChD"}
|
|
@@ -6,4 +6,5 @@ var ValidationTypes;
|
|
|
6
6
|
ValidationTypes["BASIC"] = "basic";
|
|
7
7
|
ValidationTypes["FULL"] = "full";
|
|
8
8
|
ValidationTypes["PRODUCT_TRIGGER"] = "product-trigger";
|
|
9
|
+
ValidationTypes["DEPRECATED_CSP_METHOD"] = "deprecated-csp-method";
|
|
9
10
|
})(ValidationTypes = exports.ValidationTypes || (exports.ValidationTypes = {}));
|
|
@@ -55,7 +55,7 @@ class ModulesValidator {
|
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
57
|
const moduleKeys = [];
|
|
58
|
-
|
|
58
|
+
Object.keys(modules).forEach((moduleKey) => {
|
|
59
59
|
var _a;
|
|
60
60
|
(_a = modules[moduleKey]) === null || _a === void 0 ? void 0 : _a.forEach((module) => moduleKeys.push(module.key));
|
|
61
61
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources-validator.d.ts","sourceRoot":"","sources":["../../src/validators/resources-validator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resources-validator.d.ts","sourceRoot":"","sources":["../../src/validators/resources-validator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAK3D,qBAAa,kBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACzF,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GAAG,wBAAwB,CAAC,cAAc,CAAC;CAgIzG"}
|
|
@@ -4,6 +4,7 @@ exports.ResourcesValidator = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
6
6
|
const path_1 = require("path");
|
|
7
|
+
const cheerio_1 = tslib_1.__importDefault(require("cheerio"));
|
|
7
8
|
const utils_1 = require("../utils");
|
|
8
9
|
const text_1 = require("../text");
|
|
9
10
|
const utils_2 = require("../utils");
|
|
@@ -41,8 +42,31 @@ class ResourcesValidator {
|
|
|
41
42
|
utils_1.getValidModules(modules).forEach((moduleKey) => {
|
|
42
43
|
const uniquePaths = new Set(modules[moduleKey].map(({ resource }) => resourceMap.get(resource)));
|
|
43
44
|
uniquePaths.forEach((path) => {
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
var _a, _b, _c;
|
|
46
|
+
if (path) {
|
|
47
|
+
if (!fs_1.default.existsSync(path_1.resolve(manifestDir, path, 'index.html'))) {
|
|
48
|
+
validationErrors.push(Object.assign({ message: text_1.errors.resources.missingEntrypoint(path, moduleKey), reference: text_1.References.Resources, level: 'error' }, utils_1.findPosition(path, yamlContentByLine)));
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
const content = fs_1.default.readFileSync(path_1.resolve(manifestDir, path, 'index.html'));
|
|
52
|
+
const $ = cheerio_1.default.load(content);
|
|
53
|
+
const cspContent = $('meta[http-equiv="Content-Security-Policy"]').attr('content');
|
|
54
|
+
if (cspContent) {
|
|
55
|
+
const cspStyleSrc = cspContent.split(';').find((s) => s.startsWith('style-src'));
|
|
56
|
+
if (cspStyleSrc === null || cspStyleSrc === void 0 ? void 0 : cspStyleSrc.includes("'unsafe-inline'")) {
|
|
57
|
+
const existingStylesPermissions = (_c = (_b = (_a = manifest.typedContent) === null || _a === void 0 ? void 0 : _a.permissions) === null || _b === void 0 ? void 0 : _b.content) === null || _c === void 0 ? void 0 : _c.styles;
|
|
58
|
+
let shouldShowError = false;
|
|
59
|
+
if (!(existingStylesPermissions === null || existingStylesPermissions === void 0 ? void 0 : existingStylesPermissions.length) || !(existingStylesPermissions === null || existingStylesPermissions === void 0 ? void 0 : existingStylesPermissions.includes('unsafe-inline'))) {
|
|
60
|
+
shouldShowError = true;
|
|
61
|
+
}
|
|
62
|
+
if (shouldShowError) {
|
|
63
|
+
validationErrors.push(Object.assign({ message: text_1.errors.resources.deprecatedCspPolicyDefinition(path), reference: text_1.References.Resources, level: 'error', metadata: {
|
|
64
|
+
missingContentStylePermission: 'unsafe-inline'
|
|
65
|
+
} }, utils_1.findPosition(path, yamlContentByLine)));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
46
70
|
}
|
|
47
71
|
});
|
|
48
72
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/manifest",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-64caa5a",
|
|
4
4
|
"description": "Definitions and validations of the Forge manifest",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -23,8 +23,9 @@
|
|
|
23
23
|
"author": "Atlassian",
|
|
24
24
|
"license": "UNLICENSED",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@forge/util": "1.0.
|
|
26
|
+
"@forge/util": "1.0.1",
|
|
27
27
|
"ajv": "^6.12.5",
|
|
28
|
+
"cheerio": "^0.22.0",
|
|
28
29
|
"js-yaml": "^3.13.1",
|
|
29
30
|
"json-schema-to-typescript": "^9.1.1",
|
|
30
31
|
"node-fetch": "^2.6.1",
|