@forge/manifest 0.0.0-experimental-d8cea00 → 0.0.0-experimental-c3d0263

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 (49) hide show
  1. package/CHANGELOG.md +665 -2
  2. package/out/builder/processor-builder.d.ts.map +1 -1
  3. package/out/builder/processor-builder.js +3 -0
  4. package/out/index.d.ts +1 -1
  5. package/out/index.d.ts.map +1 -1
  6. package/out/mapping/product-event-to-scope-mapping.json +376 -62
  7. package/out/processor/deprecated-csp-method-validation-processor.d.ts +6 -0
  8. package/out/processor/deprecated-csp-method-validation-processor.d.ts.map +1 -0
  9. package/out/processor/deprecated-csp-method-validation-processor.js +18 -0
  10. package/out/processor/full-validation-processor.d.ts.map +1 -1
  11. package/out/processor/full-validation-processor.js +3 -0
  12. package/out/schema/basic-manifest-schema.json +32 -0
  13. package/out/schema/basic-manifest.d.ts +13 -0
  14. package/out/schema/manifest-schema.json +2937 -525
  15. package/out/schema/manifest.d.ts +1991 -669
  16. package/out/scopes/deprecated-shipyard-scopes.json +24 -0
  17. package/out/scopes/shipyard-scopes.json +199 -94
  18. package/out/text/errors.d.ts +7 -0
  19. package/out/text/errors.d.ts.map +1 -1
  20. package/out/text/errors.js +9 -2
  21. package/out/types/egress-types.d.ts +1 -1
  22. package/out/types/egress-types.d.ts.map +1 -1
  23. package/out/types/egress-types.js +3 -1
  24. package/out/types/module-types.d.ts +10 -0
  25. package/out/types/module-types.d.ts.map +1 -1
  26. package/out/types/module-types.js +10 -0
  27. package/out/types/validation-types.d.ts +2 -1
  28. package/out/types/validation-types.d.ts.map +1 -1
  29. package/out/types/validation-types.js +1 -0
  30. package/out/validators/connect-authentication-validator.d.ts +7 -0
  31. package/out/validators/connect-authentication-validator.d.ts.map +1 -0
  32. package/out/validators/connect-authentication-validator.js +27 -0
  33. package/out/validators/deprecated-permissions-validator.d.ts +7 -0
  34. package/out/validators/deprecated-permissions-validator.d.ts.map +1 -0
  35. package/out/validators/deprecated-permissions-validator.js +31 -0
  36. package/out/validators/index.d.ts +1 -0
  37. package/out/validators/index.d.ts.map +1 -1
  38. package/out/validators/index.js +1 -0
  39. package/out/validators/modules-validator.d.ts.map +1 -1
  40. package/out/validators/modules-validator.js +13 -4
  41. package/out/validators/permissions-validator.d.ts +6 -0
  42. package/out/validators/permissions-validator.d.ts.map +1 -1
  43. package/out/validators/permissions-validator.js +78 -69
  44. package/out/validators/product-trigger-scopes-validator.d.ts +4 -1
  45. package/out/validators/product-trigger-scopes-validator.d.ts.map +1 -1
  46. package/out/validators/product-trigger-scopes-validator.js +23 -7
  47. package/out/validators/resources-validator.d.ts.map +1 -1
  48. package/out/validators/resources-validator.js +26 -2
  49. package/package.json +4 -3
@@ -1,124 +1,438 @@
1
1
  {
2
- "mapping": [
3
- {
2
+ "mapping": [{
4
3
  "productEvent": "avi:jira:assigned:issue",
5
- "oAuthScopes": [
6
- "read:jira-work"
7
- ]
4
+ "oAuthScopes": {
5
+ "current": [
6
+ "read:issue:jira",
7
+ "read:issue-type:jira",
8
+ "read:user:jira",
9
+ "read:project:jira",
10
+ "read:status:jira"
11
+ ],
12
+ "deprecated": [
13
+ "read:jira-work"
14
+ ]
15
+ }
8
16
  },
9
17
  {
10
18
  "productEvent": "avi:jira:commented:issue",
11
- "oAuthScopes": [
12
- "read:jira-work"
13
- ]
19
+ "oAuthScopes": {
20
+ "current": [
21
+ "read:issue:jira",
22
+ "read:issue-type:jira",
23
+ "read:user:jira",
24
+ "read:project:jira",
25
+ "read:status:jira",
26
+ "read:comment:jira"
27
+ ],
28
+ "deprecated": [
29
+ "read:jira-work"
30
+ ]
31
+ }
14
32
  },
15
33
  {
16
34
  "productEvent": "avi:jira:created:issue",
17
- "oAuthScopes": [
18
- "read:jira-work"
19
- ]
35
+ "oAuthScopes": {
36
+ "current": [
37
+ "read:issue:jira",
38
+ "read:issue-type:jira",
39
+ "read:user:jira",
40
+ "read:project:jira",
41
+ "read:status:jira"
42
+ ],
43
+ "deprecated": [
44
+ "read:jira-work"
45
+ ]
46
+ }
20
47
  },
21
48
  {
22
49
  "productEvent": "avi:jira:mentioned:comment",
23
- "oAuthScopes": [
24
- "read:jira-work"
25
- ]
50
+ "oAuthScopes": {
51
+ "current": [
52
+ "read:issue:jira",
53
+ "read:issue-type:jira",
54
+ "read:user:jira",
55
+ "read:project:jira",
56
+ "read:status:jira",
57
+ "read:comment:jira"
58
+ ],
59
+ "deprecated": [
60
+ "read:jira-work"
61
+ ]
62
+ }
26
63
  },
27
64
  {
28
65
  "productEvent": "avi:jira:mentioned:issue",
29
- "oAuthScopes": [
30
- "read:jira-work"
31
- ]
66
+ "oAuthScopes": {
67
+ "current": [
68
+ "read:issue:jira",
69
+ "read:issue-type:jira",
70
+ "read:user:jira",
71
+ "read:project:jira",
72
+ "read:status:jira"
73
+ ],
74
+ "deprecated": [
75
+ "read:jira-work"
76
+ ]
77
+ }
32
78
  },
33
79
  {
34
80
  "productEvent": "avi:jira:updated:issue",
35
- "oAuthScopes": [
36
- "read:jira-work"
37
- ]
81
+ "oAuthScopes": {
82
+ "current": [
83
+ "read:issue:jira",
84
+ "read:issue-type:jira",
85
+ "read:user:jira",
86
+ "read:project:jira",
87
+ "read:status:jira"
88
+ ],
89
+ "deprecated": [
90
+ "read:jira-work"
91
+ ]
92
+ }
38
93
  },
39
94
  {
40
95
  "productEvent": "avi:jira:viewed:issue",
41
- "oAuthScopes": [
42
- "read:jira-work"
43
- ]
96
+ "oAuthScopes": {
97
+ "current": [
98
+ "read:issue:jira",
99
+ "read:issue-type:jira",
100
+ "read:user:jira",
101
+ "read:project:jira",
102
+ "read:status:jira"
103
+ ],
104
+ "deprecated": [
105
+ "read:jira-work"
106
+ ]
107
+ }
108
+ },
109
+ {
110
+ "productEvent": "avi:jira:created:field",
111
+ "oAuthScopes": {
112
+ "current": [
113
+ "read:field:jira"
114
+ ],
115
+ "deprecated": [
116
+ "manage:jira-configuration"
117
+ ]
118
+ }
119
+ },
120
+ {
121
+ "productEvent": "avi:jira:updated:field",
122
+ "oAuthScopes": {
123
+ "current": [
124
+ "read:field:jira"
125
+ ],
126
+ "deprecated": [
127
+ "manage:jira-configuration"
128
+ ]
129
+ }
130
+ },
131
+ {
132
+ "productEvent": "avi:jira:trashed:field",
133
+ "oAuthScopes": {
134
+ "current": [
135
+ "read:field:jira"
136
+ ],
137
+ "deprecated": [
138
+ "manage:jira-configuration"
139
+ ]
140
+ }
141
+ },
142
+ {
143
+ "productEvent": "avi:jira:deleted:field",
144
+ "oAuthScopes": {
145
+ "current": [
146
+ "read:field:jira"
147
+ ],
148
+ "deprecated": [
149
+ "manage:jira-configuration"
150
+ ]
151
+ }
152
+ },
153
+ {
154
+ "productEvent": "avi:jira:restored:field",
155
+ "oAuthScopes": {
156
+ "current": [
157
+ "read:field:jira"
158
+ ],
159
+ "deprecated": [
160
+ "manage:jira-configuration"
161
+ ]
162
+ }
163
+ },
164
+ {
165
+ "productEvent": "avi:jira:created:field:context",
166
+ "oAuthScopes": {
167
+ "current": [
168
+ "read:field:jira"
169
+ ],
170
+ "deprecated": [
171
+ "manage:jira-configuration"
172
+ ]
173
+ }
174
+ },
175
+ {
176
+ "productEvent": "avi:jira:updated:field:context",
177
+ "oAuthScopes": {
178
+ "current": [
179
+ "read:field:jira"
180
+ ],
181
+ "deprecated": [
182
+ "manage:jira-configuration"
183
+ ]
184
+ }
185
+ },
186
+ {
187
+ "productEvent": "avi:jira:deleted:field:context",
188
+ "oAuthScopes": {
189
+ "current": [
190
+ "read:field:jira"
191
+ ],
192
+ "deprecated": [
193
+ "manage:jira-configuration"
194
+ ]
195
+ }
196
+ },
197
+ {
198
+ "productEvent": "avi:jira:updated:field:context:configuration",
199
+ "oAuthScopes": {
200
+ "current": [
201
+ "read:custom-field-contextual-configuration:jira"
202
+ ]
203
+ }
44
204
  },
45
205
  {
46
206
  "productEvent": "avi:confluence:updated:blogpost",
47
- "oAuthScopes": [
48
- "read:confluence-content.summary"
49
- ]
207
+ "oAuthScopes": {
208
+ "current": [
209
+ "read:blogpost:confluence",
210
+ "read:space:confluence",
211
+ "read:user:confluence",
212
+ "read:content.metadata:confluence"
213
+ ],
214
+ "deprecated": [
215
+ "read:confluence-content.summary"
216
+ ]
217
+ }
50
218
  },
51
219
  {
52
220
  "productEvent": "avi:confluence:liked:comment",
53
- "oAuthScopes": [
54
- "read:confluence-content.summary"
55
- ]
221
+ "oAuthScopes": {
222
+ "current": [
223
+ "read:comment:confluence",
224
+ "read:page:confluence",
225
+ "read:blogpost:confluence",
226
+ "read:space:confluence",
227
+ "read:user:confluence",
228
+ "read:content.metadata:confluence"
229
+ ],
230
+ "deprecated": [
231
+ "read:confluence-content.summary"
232
+ ]
233
+ }
56
234
  },
57
235
  {
58
236
  "productEvent": "avi:confluence:created:page",
59
- "oAuthScopes": [
60
- "read:confluence-content.summary"
61
- ]
237
+ "oAuthScopes": {
238
+ "current": [
239
+ "read:page:confluence",
240
+ "read:space:confluence",
241
+ "read:user:confluence",
242
+ "read:content.metadata:confluence"
243
+ ],
244
+ "deprecated": [
245
+ "read:confluence-content.summary"
246
+ ]
247
+ }
62
248
  },
63
249
  {
64
250
  "productEvent": "avi:confluence:viewed:page",
65
- "oAuthScopes": [
66
- "read:confluence-content.summary"
67
- ]
251
+ "oAuthScopes": {
252
+ "current": [
253
+ "read:page:confluence",
254
+ "read:space:confluence",
255
+ "read:user:confluence",
256
+ "read:content.metadata:confluence"
257
+ ],
258
+ "deprecated": [
259
+ "read:confluence-content.summary"
260
+ ]
261
+ }
68
262
  },
69
263
  {
70
264
  "productEvent": "avi:confluence:updated:page",
71
- "oAuthScopes": [
72
- "read:confluence-content.summary"
73
- ]
265
+ "oAuthScopes": {
266
+ "current": [
267
+ "read:page:confluence",
268
+ "read:space:confluence",
269
+ "read:user:confluence",
270
+ "read:content.metadata:confluence"
271
+ ],
272
+ "deprecated": [
273
+ "read:confluence-content.summary"
274
+ ]
275
+ }
74
276
  },
75
277
  {
76
278
  "productEvent": "avi:confluence:created:comment",
77
- "oAuthScopes": [
78
- "read:confluence-content.summary"
79
- ]
279
+ "oAuthScopes": {
280
+ "current": [
281
+ "read:comment:confluence",
282
+ "read:page:confluence",
283
+ "read:blogpost:confluence",
284
+ "read:space:confluence",
285
+ "read:user:confluence",
286
+ "read:content.metadata:confluence"
287
+ ],
288
+ "deprecated": [
289
+ "read:confluence-content.summary"
290
+ ]
291
+ }
80
292
  },
81
293
  {
82
294
  "productEvent": "avi:confluence:viewed:blogpost",
83
- "oAuthScopes": [
84
- "read:confluence-content.summary"
85
- ]
295
+ "oAuthScopes": {
296
+ "current": [
297
+ "read:blogpost:confluence",
298
+ "read:space:confluence",
299
+ "read:user:confluence",
300
+ "read:content.metadata:confluence"
301
+ ],
302
+ "deprecated": [
303
+ "read:confluence-content.summary"
304
+ ]
305
+ }
86
306
  },
87
307
  {
88
308
  "productEvent": "avi:confluence:liked:page",
89
- "oAuthScopes": [
90
- "read:confluence-content.summary"
91
- ]
309
+ "oAuthScopes": {
310
+ "current": [
311
+ "read:page:confluence",
312
+ "read:space:confluence",
313
+ "read:user:confluence",
314
+ "read:content.metadata:confluence"
315
+ ],
316
+ "deprecated": [
317
+ "read:confluence-content.summary"
318
+ ]
319
+ }
92
320
  },
93
321
  {
94
322
  "productEvent": "avi:confluence:liked:blogpost",
95
- "oAuthScopes": [
96
- "read:confluence-content.summary"
97
- ]
323
+ "oAuthScopes": {
324
+ "current": [
325
+ "read:blogpost:confluence",
326
+ "read:space:confluence",
327
+ "read:user:confluence",
328
+ "read:content.metadata:confluence"
329
+ ],
330
+ "deprecated": [
331
+ "read:confluence-content.summary"
332
+ ]
333
+ }
98
334
  },
99
335
  {
100
336
  "productEvent": "avi:confluence:created:blogpost",
101
- "oAuthScopes": [
102
- "read:confluence-content.summary"
103
- ]
337
+ "oAuthScopes": {
338
+ "current": [
339
+ "read:blogpost:confluence",
340
+ "read:space:confluence",
341
+ "read:user:confluence",
342
+ "read:content.metadata:confluence"
343
+ ],
344
+ "deprecated": [
345
+ "read:confluence-content.summary"
346
+ ]
347
+ }
104
348
  },
105
349
  {
106
350
  "productEvent": "avi:confluence:created:task",
107
- "oAuthScopes": [
108
- "read:confluence-content.all"
109
- ]
351
+ "oAuthScopes": {
352
+ "current": [
353
+ "read:inlinetask:confluence",
354
+ "read:space:confluence",
355
+ "read:user:confluence",
356
+ "read:content.metadata:confluence"
357
+ ],
358
+ "deprecated": [
359
+ "read:confluence-content.all"
360
+ ]
361
+ }
110
362
  },
111
363
  {
112
364
  "productEvent": "avi:confluence:updated:task",
113
- "oAuthScopes": [
114
- "read:confluence-content.all"
115
- ]
365
+ "oAuthScopes": {
366
+ "current": [
367
+ "read:inlinetask:confluence",
368
+ "read:space:confluence",
369
+ "read:user:confluence",
370
+ "read:content.metadata:confluence"
371
+ ],
372
+ "deprecated": [
373
+ "read:confluence-content.all"
374
+ ]
375
+ }
116
376
  },
117
377
  {
118
378
  "productEvent": "avi:confluence:removed:task",
119
- "oAuthScopes": [
120
- "read:confluence-content.all"
121
- ]
379
+ "oAuthScopes": {
380
+ "current": [
381
+ "read:inlinetask:confluence",
382
+ "read:space:confluence",
383
+ "read:user:confluence",
384
+ "read:content.metadata:confluence"
385
+ ],
386
+ "deprecated": [
387
+ "read:confluence-content.all"
388
+ ]
389
+ }
390
+ },
391
+ {
392
+ "productEvent": "avi:confluence:created:space:V2",
393
+ "oAuthScopes": {
394
+ "current": [
395
+ "read:space:confluence"
396
+ ],
397
+ "deprecated": [
398
+ "read:confluence-space.summary"
399
+ ]
400
+ }
401
+ },
402
+ {
403
+ "productEvent": "avi:confluence:updated:space:V2",
404
+ "oAuthScopes": {
405
+ "current": [
406
+ "read:space:confluence"
407
+ ],
408
+ "deprecated": [
409
+ "read:confluence-space.summary"
410
+ ]
411
+ }
412
+ },
413
+ {
414
+ "productEvent": "avi:compass:created:component_link",
415
+ "oAuthScopes": {
416
+ "current": [
417
+ "read:component:compass"
418
+ ]
419
+ }
420
+ },
421
+ {
422
+ "productEvent": "avi:compass:updated:component_link",
423
+ "oAuthScopes": {
424
+ "current": [
425
+ "read:component:compass"
426
+ ]
427
+ }
428
+ },
429
+ {
430
+ "productEvent": "avi:compass:deleted:component_link",
431
+ "oAuthScopes": {
432
+ "current": [
433
+ "read:component:compass"
434
+ ]
435
+ }
122
436
  }
123
437
  ]
124
438
  }
@@ -0,0 +1,6 @@
1
+ import { AbstractValidationProcessor } from './abstract-validation-processor';
2
+ import { ManifestSchema } from '../schema/manifest';
3
+ export declare class DeprecatedCspMethodValidationProcessor extends AbstractValidationProcessor<ManifestSchema> {
4
+ constructor();
5
+ }
6
+ //# sourceMappingURL=deprecated-csp-method-validation-processor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deprecated-csp-method-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/deprecated-csp-method-validation-processor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,qBAAa,sCAAuC,SAAQ,2BAA2B,CAAC,cAAc,CAAC;;CAStG"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeprecatedCspMethodValidationProcessor = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const validators_1 = require("../validators");
6
+ const abstract_validation_processor_1 = require("./abstract-validation-processor");
7
+ const FULL_SCHEMA = tslib_1.__importStar(require("../schema/manifest-schema.json"));
8
+ class DeprecatedCspMethodValidationProcessor extends abstract_validation_processor_1.AbstractValidationProcessor {
9
+ constructor() {
10
+ super([
11
+ new validators_1.FileValidator(),
12
+ new validators_1.YamlValidator(),
13
+ new validators_1.SchemaValidator(FULL_SCHEMA),
14
+ new validators_1.ResourcesValidator()
15
+ ]);
16
+ }
17
+ }
18
+ exports.DeprecatedCspMethodValidationProcessor = DeprecatedCspMethodValidationProcessor;
@@ -1 +1 @@
1
- {"version":3,"file":"full-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/full-validation-processor.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBAAa,uBAAwB,SAAQ,2BAA2B,CAAC,cAAc,CAAC;;CAevF"}
1
+ {"version":3,"file":"full-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/full-validation-processor.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,qBAAa,uBAAwB,SAAQ,2BAA2B,CAAC,cAAc,CAAC;;CAiBvF"}
@@ -6,6 +6,7 @@ const validators_1 = require("../validators");
6
6
  const FULL_SCHEMA = tslib_1.__importStar(require("../schema/manifest-schema.json"));
7
7
  const DISPLAY_CONDITIONS_SCHEMA = tslib_1.__importStar(require("../schema/display-conditions-schema.json"));
8
8
  const abstract_validation_processor_1 = require("./abstract-validation-processor");
9
+ const deprecated_permissions_validator_1 = require("../validators/deprecated-permissions-validator");
9
10
  class FullValidationProcessor extends abstract_validation_processor_1.AbstractValidationProcessor {
10
11
  constructor() {
11
12
  super([
@@ -16,7 +17,9 @@ class FullValidationProcessor extends abstract_validation_processor_1.AbstractVa
16
17
  new validators_1.ConnectModulesValidator(),
17
18
  new validators_1.ResourcesValidator(),
18
19
  new validators_1.ConnectRemoteValidator(),
20
+ new validators_1.ConnectAuthenticationValidator(),
19
21
  new validators_1.PermissionsValidator(),
22
+ new deprecated_permissions_validator_1.DeprecatedPermissionsValidator(),
20
23
  new validators_1.DisplayConditionsValidator(DISPLAY_CONDITIONS_SCHEMA),
21
24
  new validators_1.ProvidersValidator()
22
25
  ]);
@@ -69,6 +69,38 @@
69
69
  "description": "A key for the remote, which other modules can refer to. Must be unique within the manifest and have a maximum of 23 characters.",
70
70
  "pattern": "^[a-zA-Z0-9_-]+$",
71
71
  "maxLength": 23
72
+ },
73
+ "authentication": {
74
+ "description": "The type of authentication used to communicate with tenant APIs",
75
+ "type": "string",
76
+ "default": "jwt",
77
+ "enum": [
78
+ "jwt",
79
+ "oauth2"
80
+ ]
81
+ }
82
+ }
83
+ },
84
+ "storage": {
85
+ "description": "Options related to hosted storage",
86
+ "type": "object",
87
+ "required": [
88
+ "classifications"
89
+ ],
90
+ "additionalProperties": false,
91
+ "properties": {
92
+ "classifications": {
93
+ "description": "Labels to classify the type of data stored",
94
+ "type": "array",
95
+ "items": {
96
+ "type": "string",
97
+ "enum": [
98
+ "ugc",
99
+ "pii",
100
+ "other"
101
+ ]
102
+ },
103
+ "minItems": 1
72
104
  }
73
105
  }
74
106
  }
@@ -36,6 +36,15 @@ export interface App {
36
36
  runtime?: Runtime;
37
37
  licensing?: Licensing;
38
38
  connect?: Connect;
39
+ /**
40
+ * Options related to hosted storage
41
+ */
42
+ storage?: {
43
+ /**
44
+ * Labels to classify the type of data stored
45
+ */
46
+ classifications: ['ugc' | 'pii' | 'other', ...('ugc' | 'pii' | 'other')[]];
47
+ };
39
48
  }
40
49
  /**
41
50
  * Options related to the Forge Javascript runtime.
@@ -58,4 +67,8 @@ export interface Connect {
58
67
  * A key for the remote, which other modules can refer to. Must be unique within the manifest and have a maximum of 23 characters.
59
68
  */
60
69
  remote?: string;
70
+ /**
71
+ * The type of authentication used to communicate with tenant APIs
72
+ */
73
+ authentication?: 'jwt' | 'oauth2';
61
74
  }