@forge/manifest 3.11.0-next.2 → 4.0.0-next.5

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 (57) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/out/index.d.ts +1 -1
  3. package/out/index.d.ts.map +1 -1
  4. package/out/index.js +4 -6
  5. package/out/mapping/product-event-to-scope-mapping.json +0 -8
  6. package/out/processor/abstract-validation-processor.d.ts +1 -1
  7. package/out/processor/abstract-validation-processor.d.ts.map +1 -1
  8. package/out/processor/abstract-validation-processor.js +10 -5
  9. package/out/processor/processor-interface.d.ts +1 -1
  10. package/out/processor/processor-interface.d.ts.map +1 -1
  11. package/out/schema/manifest-schema.json +212 -0
  12. package/out/schema/manifest.d.ts +90 -0
  13. package/out/scopes/index.d.ts +1 -1
  14. package/out/scopes/index.d.ts.map +1 -1
  15. package/out/scopes/index.js +1 -1
  16. package/out/validators/connect-authentication-validator.d.ts +1 -1
  17. package/out/validators/connect-authentication-validator.d.ts.map +1 -1
  18. package/out/validators/connect-authentication-validator.js +1 -1
  19. package/out/validators/connect-modules-validator.d.ts +1 -1
  20. package/out/validators/connect-modules-validator.d.ts.map +1 -1
  21. package/out/validators/connect-modules-validator.js +1 -1
  22. package/out/validators/connect-remote-validator.d.ts +1 -1
  23. package/out/validators/connect-remote-validator.d.ts.map +1 -1
  24. package/out/validators/connect-remote-validator.js +1 -1
  25. package/out/validators/display-conditions-validator.d.ts +1 -1
  26. package/out/validators/display-conditions-validator.d.ts.map +1 -1
  27. package/out/validators/display-conditions-validator.js +1 -1
  28. package/out/validators/entity-property-validator.d.ts +1 -1
  29. package/out/validators/entity-property-validator.d.ts.map +1 -1
  30. package/out/validators/entity-property-validator.js +1 -1
  31. package/out/validators/file-validator.d.ts +1 -1
  32. package/out/validators/file-validator.d.ts.map +1 -1
  33. package/out/validators/file-validator.js +1 -1
  34. package/out/validators/modules-validator.d.ts +1 -1
  35. package/out/validators/modules-validator.d.ts.map +1 -1
  36. package/out/validators/modules-validator.js +1 -1
  37. package/out/validators/permissions-validator.d.ts +1 -1
  38. package/out/validators/permissions-validator.d.ts.map +1 -1
  39. package/out/validators/permissions-validator.js +1 -1
  40. package/out/validators/product-trigger-scopes-validator.d.ts +1 -1
  41. package/out/validators/product-trigger-scopes-validator.d.ts.map +1 -1
  42. package/out/validators/product-trigger-scopes-validator.js +4 -4
  43. package/out/validators/providers-validator.d.ts +1 -1
  44. package/out/validators/providers-validator.d.ts.map +1 -1
  45. package/out/validators/providers-validator.js +1 -1
  46. package/out/validators/resources-validator.d.ts +1 -1
  47. package/out/validators/resources-validator.d.ts.map +1 -1
  48. package/out/validators/resources-validator.js +1 -1
  49. package/out/validators/schema-validator.d.ts +1 -1
  50. package/out/validators/schema-validator.d.ts.map +1 -1
  51. package/out/validators/schema-validator.js +1 -1
  52. package/out/validators/validator-interface.d.ts +1 -1
  53. package/out/validators/validator-interface.d.ts.map +1 -1
  54. package/out/validators/yaml-validator.d.ts +1 -1
  55. package/out/validators/yaml-validator.d.ts.map +1 -1
  56. package/out/validators/yaml-validator.js +1 -1
  57. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 4.0.0-next.5
4
+
5
+ ### Minor Changes
6
+
7
+ - c0c88f09: BCAT-1386 Remove scopes mapping for bitbucket repo created event
8
+
9
+ ## 4.0.0-next.4
10
+
11
+ ### Patch Changes
12
+
13
+ - b1684fd: Update manifest definitions
14
+
15
+ ## 4.0.0-next.3
16
+
17
+ ### Major Changes
18
+
19
+ - 6728c67: Make validator interface asynchronous
20
+
3
21
  ## 3.11.0-next.2
4
22
 
5
23
  ### Minor Changes
package/out/index.d.ts CHANGED
@@ -9,5 +9,5 @@ export * from './types';
9
9
  export * from './utils';
10
10
  export * from './validators';
11
11
  export { Modules, ManifestSchema, App, Resources, Permissions, Remotes, Fetch } from './schema/manifest';
12
- export declare const validate: (basic?: boolean, manifest?: string | undefined) => ManifestValidationResult<ManifestSchema | BasicManifestSchema>;
12
+ export declare const validate: (basic?: boolean, manifest?: string | undefined) => Promise<ManifestValidationResult<ManifestSchema | BasicManifestSchema>>;
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAmB,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEzG,eAAO,MAAM,QAAQ,+BAET,MAAM,GAAG,SAAS,KAC3B,wBAAwB,CAAC,cAAc,GAAG,mBAAmB,CAK/D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAmB,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEzG,eAAO,MAAM,QAAQ,+BAET,MAAM,GAAG,SAAS,KAC3B,OAAO,CAAC,wBAAwB,CAAC,cAAc,GAAG,mBAAmB,CAAC,CAInD,CAAC"}
package/out/index.js CHANGED
@@ -11,9 +11,7 @@ tslib_1.__exportStar(require("./text"), exports);
11
11
  tslib_1.__exportStar(require("./types"), exports);
12
12
  tslib_1.__exportStar(require("./utils"), exports);
13
13
  tslib_1.__exportStar(require("./validators"), exports);
14
- exports.validate = (basic = false, manifest = undefined) => {
15
- return builder_1.ProcessorBuilder.instance()
16
- .withValidation(basic ? types_1.ValidationTypes.BASIC : types_1.ValidationTypes.FULL)
17
- .build()
18
- .process(manifest);
19
- };
14
+ exports.validate = (basic = false, manifest = undefined) => builder_1.ProcessorBuilder.instance()
15
+ .withValidation(basic ? types_1.ValidationTypes.BASIC : types_1.ValidationTypes.FULL)
16
+ .build()
17
+ .process(manifest);
@@ -524,14 +524,6 @@
524
524
  "read:component:compass"
525
525
  ]
526
526
  }
527
- },
528
- {
529
- "productEvent": "avi:bitbucket:created:repository",
530
- "oAuthScopes": {
531
- "current": [
532
- "read:repository:bitbucket"
533
- ]
534
- }
535
527
  }
536
528
  ]
537
529
  }
@@ -4,6 +4,6 @@ import { ValidatorInterface } from '../validators';
4
4
  export declare abstract class AbstractValidationProcessor<T> implements ProcessorInterface<T> {
5
5
  protected readonly validators: ValidatorInterface<any | undefined, T>[];
6
6
  protected constructor(validators: ValidatorInterface<any | undefined, T>[]);
7
- process(manifest: string | undefined): ManifestValidationResult<T>;
7
+ process(manifest: string | undefined): Promise<ManifestValidationResult<T>>;
8
8
  }
9
9
  //# sourceMappingURL=abstract-validation-processor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"abstract-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/abstract-validation-processor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD,8BAAsB,2BAA2B,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,CAAC,CAAC;IAC7D,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC,GAAG,GAAG,SAAS,EAAE,CAAC,CAAC,EAAE;IAA7F,SAAS,aAAgC,UAAU,EAAE,kBAAkB,CAAC,GAAG,GAAG,SAAS,EAAE,CAAC,CAAC,EAAE;IAE7F,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,wBAAwB,CAAC,CAAC,CAAC;CAcnE"}
1
+ {"version":3,"file":"abstract-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/abstract-validation-processor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD,8BAAsB,2BAA2B,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,CAAC,CAAC;IAC7D,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC,GAAG,GAAG,SAAS,EAAE,CAAC,CAAC,EAAE;IAA7F,SAAS,aAAgC,UAAU,EAAE,kBAAkB,CAAC,GAAG,GAAG,SAAS,EAAE,CAAC,CAAC,EAAE;IAEvF,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;CAkBlF"}
@@ -5,15 +5,20 @@ class AbstractValidationProcessor {
5
5
  constructor(validators) {
6
6
  this.validators = validators;
7
7
  }
8
- process(manifest) {
9
- return this.validators.reduce((results, validator) => {
10
- const stepResults = validator.validate(results.manifestObject ? results.manifestObject : manifest);
11
- return {
8
+ async process(manifest) {
9
+ var _a;
10
+ let results = {
11
+ success: true
12
+ };
13
+ for (const validator of this.validators) {
14
+ const stepResults = await validator.validate((_a = results.manifestObject) !== null && _a !== void 0 ? _a : manifest);
15
+ results = {
12
16
  success: results.success && stepResults.success,
13
17
  manifestObject: stepResults.manifestObject || results.manifestObject,
14
18
  errors: [...(results.errors || []), ...(stepResults.errors || [])]
15
19
  };
16
- }, { success: true });
20
+ }
21
+ return results;
17
22
  }
18
23
  }
19
24
  exports.AbstractValidationProcessor = AbstractValidationProcessor;
@@ -1,5 +1,5 @@
1
1
  import { ManifestValidationResult } from '../types';
2
2
  export interface ProcessorInterface<T> {
3
- process(manifest?: string): ManifestValidationResult<T>;
3
+ process(manifest?: string): Promise<ManifestValidationResult<T>>;
4
4
  }
5
5
  //# sourceMappingURL=processor-interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"processor-interface.d.ts","sourceRoot":"","sources":["../../src/processor/processor-interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"processor-interface.d.ts","sourceRoot":"","sources":["../../src/processor/processor-interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;CAClE"}
@@ -6264,6 +6264,218 @@
6264
6264
  },
6265
6265
  "minItems": 1
6266
6266
  },
6267
+ "jiraServiceManagement:portalRequestViewAction": {
6268
+ "type": "array",
6269
+ "items": {
6270
+ "oneOf": [
6271
+ {
6272
+ "type": "object",
6273
+ "properties": {
6274
+ "title": {
6275
+ "type": "string",
6276
+ "minLength": 1,
6277
+ "maxLength": 255
6278
+ },
6279
+ "function": {
6280
+ "type": "string",
6281
+ "minLength": 1,
6282
+ "maxLength": 255,
6283
+ "pattern": "^[a-zA-Z0-9-_]+$"
6284
+ },
6285
+ "key": {
6286
+ "$ref": "#/definitions/ModuleKeySchema"
6287
+ }
6288
+ },
6289
+ "required": [
6290
+ "title",
6291
+ "function",
6292
+ "key"
6293
+ ]
6294
+ },
6295
+ {
6296
+ "type": "object",
6297
+ "properties": {
6298
+ "title": {
6299
+ "type": "string",
6300
+ "minLength": 1,
6301
+ "maxLength": 255
6302
+ },
6303
+ "resolver": {
6304
+ "additionalProperties": false,
6305
+ "type": "object",
6306
+ "properties": {
6307
+ "function": {
6308
+ "type": "string",
6309
+ "minLength": 1,
6310
+ "maxLength": 255,
6311
+ "pattern": "^[a-zA-Z0-9-_]+$"
6312
+ }
6313
+ },
6314
+ "required": [
6315
+ "function"
6316
+ ]
6317
+ },
6318
+ "resource": {
6319
+ "type": "string",
6320
+ "minLength": 1,
6321
+ "maxLength": 23,
6322
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
6323
+ },
6324
+ "resourceUploadId": {
6325
+ "type": "string",
6326
+ "minLength": 1,
6327
+ "maxLength": 255
6328
+ },
6329
+ "viewportSize": {
6330
+ "type": "string",
6331
+ "minLength": 1,
6332
+ "maxLength": 255,
6333
+ "enum": [
6334
+ "small",
6335
+ "medium",
6336
+ "large",
6337
+ "xlarge"
6338
+ ]
6339
+ },
6340
+ "key": {
6341
+ "$ref": "#/definitions/ModuleKeySchema"
6342
+ }
6343
+ },
6344
+ "required": [
6345
+ "title",
6346
+ "resource",
6347
+ "key"
6348
+ ]
6349
+ }
6350
+ ]
6351
+ },
6352
+ "minItems": 1
6353
+ },
6354
+ "jiraServiceManagement:portalRequestCreatePropertyPanel": {
6355
+ "type": "array",
6356
+ "items": {
6357
+ "oneOf": [
6358
+ {
6359
+ "type": "object",
6360
+ "required": [
6361
+ "function",
6362
+ "key"
6363
+ ],
6364
+ "properties": {
6365
+ "title": {
6366
+ "type": "string",
6367
+ "minLength": 1,
6368
+ "maxLength": 255
6369
+ },
6370
+ "icon": {
6371
+ "type": "string",
6372
+ "minLength": 1,
6373
+ "maxLength": 255
6374
+ },
6375
+ "layout": {
6376
+ "type": "string",
6377
+ "minLength": 1,
6378
+ "maxLength": 255,
6379
+ "enum": [
6380
+ "native",
6381
+ "basic"
6382
+ ]
6383
+ },
6384
+ "viewportSize": {
6385
+ "type": "string",
6386
+ "minLength": 1,
6387
+ "maxLength": 255,
6388
+ "enum": [
6389
+ "small",
6390
+ "medium",
6391
+ "large",
6392
+ "xlarge"
6393
+ ]
6394
+ },
6395
+ "function": {
6396
+ "type": "string",
6397
+ "minLength": 1,
6398
+ "maxLength": 255,
6399
+ "pattern": "^[a-zA-Z0-9-_]+$"
6400
+ },
6401
+ "key": {
6402
+ "$ref": "#/definitions/ModuleKeySchema"
6403
+ }
6404
+ }
6405
+ },
6406
+ {
6407
+ "type": "object",
6408
+ "required": [
6409
+ "resource",
6410
+ "key"
6411
+ ],
6412
+ "properties": {
6413
+ "viewportSize": {
6414
+ "type": "string",
6415
+ "minLength": 1,
6416
+ "maxLength": 255,
6417
+ "enum": [
6418
+ "xsmall",
6419
+ "small",
6420
+ "medium",
6421
+ "large",
6422
+ "xlarge"
6423
+ ]
6424
+ },
6425
+ "title": {
6426
+ "type": "string",
6427
+ "minLength": 1,
6428
+ "maxLength": 255
6429
+ },
6430
+ "icon": {
6431
+ "type": "string",
6432
+ "minLength": 1,
6433
+ "maxLength": 255
6434
+ },
6435
+ "layout": {
6436
+ "type": "string",
6437
+ "minLength": 1,
6438
+ "maxLength": 255,
6439
+ "enum": [
6440
+ "native",
6441
+ "basic"
6442
+ ]
6443
+ },
6444
+ "resolver": {
6445
+ "additionalProperties": false,
6446
+ "type": "object",
6447
+ "properties": {
6448
+ "function": {
6449
+ "type": "string",
6450
+ "minLength": 1,
6451
+ "maxLength": 255,
6452
+ "pattern": "^[a-zA-Z0-9-_]+$"
6453
+ }
6454
+ },
6455
+ "required": [
6456
+ "function"
6457
+ ]
6458
+ },
6459
+ "resource": {
6460
+ "type": "string",
6461
+ "minLength": 1,
6462
+ "maxLength": 23,
6463
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
6464
+ },
6465
+ "resourceUploadId": {
6466
+ "type": "string",
6467
+ "minLength": 1,
6468
+ "maxLength": 255
6469
+ },
6470
+ "key": {
6471
+ "$ref": "#/definitions/ModuleKeySchema"
6472
+ }
6473
+ }
6474
+ }
6475
+ ]
6476
+ },
6477
+ "minItems": 1
6478
+ },
6267
6479
  "connect-jira:keyboardShortcuts": {
6268
6480
  "type": "array",
6269
6481
  "items": {
@@ -3368,6 +3368,96 @@ export interface Modules {
3368
3368
  }
3369
3369
  )[]
3370
3370
  ];
3371
+ 'jiraServiceManagement:portalRequestViewAction'?: [
3372
+ (
3373
+ | {
3374
+ title: string;
3375
+ function: string;
3376
+ key: ModuleKeySchema;
3377
+ [k: string]: unknown;
3378
+ }
3379
+ | {
3380
+ title: string;
3381
+ resolver?: {
3382
+ function: string;
3383
+ };
3384
+ resource: string;
3385
+ resourceUploadId?: string;
3386
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
3387
+ key: ModuleKeySchema;
3388
+ [k: string]: unknown;
3389
+ }
3390
+ ),
3391
+ ...(
3392
+ | {
3393
+ title: string;
3394
+ function: string;
3395
+ key: ModuleKeySchema;
3396
+ [k: string]: unknown;
3397
+ }
3398
+ | {
3399
+ title: string;
3400
+ resolver?: {
3401
+ function: string;
3402
+ };
3403
+ resource: string;
3404
+ resourceUploadId?: string;
3405
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
3406
+ key: ModuleKeySchema;
3407
+ [k: string]: unknown;
3408
+ }
3409
+ )[]
3410
+ ];
3411
+ 'jiraServiceManagement:portalRequestCreatePropertyPanel'?: [
3412
+ (
3413
+ | {
3414
+ title?: string;
3415
+ icon?: string;
3416
+ layout?: 'native' | 'basic';
3417
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
3418
+ function: string;
3419
+ key: ModuleKeySchema;
3420
+ [k: string]: unknown;
3421
+ }
3422
+ | {
3423
+ viewportSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3424
+ title?: string;
3425
+ icon?: string;
3426
+ layout?: 'native' | 'basic';
3427
+ resolver?: {
3428
+ function: string;
3429
+ };
3430
+ resource: string;
3431
+ resourceUploadId?: string;
3432
+ key: ModuleKeySchema;
3433
+ [k: string]: unknown;
3434
+ }
3435
+ ),
3436
+ ...(
3437
+ | {
3438
+ title?: string;
3439
+ icon?: string;
3440
+ layout?: 'native' | 'basic';
3441
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
3442
+ function: string;
3443
+ key: ModuleKeySchema;
3444
+ [k: string]: unknown;
3445
+ }
3446
+ | {
3447
+ viewportSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3448
+ title?: string;
3449
+ icon?: string;
3450
+ layout?: 'native' | 'basic';
3451
+ resolver?: {
3452
+ function: string;
3453
+ };
3454
+ resource: string;
3455
+ resourceUploadId?: string;
3456
+ key: ModuleKeySchema;
3457
+ [k: string]: unknown;
3458
+ }
3459
+ )[]
3460
+ ];
3371
3461
  'connect-jira:keyboardShortcuts'?: [
3372
3462
  {
3373
3463
  shortcut?: string;
@@ -3,5 +3,5 @@ export declare type RequiredScopes = {
3
3
  deprecated?: string[];
4
4
  beta?: string[];
5
5
  };
6
- export declare function getMissingScopes(existing: string[] | undefined, required: RequiredScopes): string[];
6
+ export declare function getMissingScopes(existing: string[] | undefined, required: RequiredScopes): Promise<string[]>;
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scopes/index.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc,GAAG;IAC3B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,QAAQ,EAAE,cAAc,GAAG,MAAM,EAAE,CAoBnG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scopes/index.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc,GAAG;IAC3B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,wBAAsB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAoBlH"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getMissingScopes = void 0;
4
- function getMissingScopes(existing, required) {
4
+ async function getMissingScopes(existing, required) {
5
5
  var _a, _b;
6
6
  if (!(existing === null || existing === void 0 ? void 0 : existing.length)) {
7
7
  return required.current;
@@ -2,6 +2,6 @@ import { ValidatorInterface } from './validator-interface';
2
2
  import { ManifestObject, ManifestValidationResult } from '../types';
3
3
  import { ManifestSchema } from '../schema/manifest';
4
4
  export declare class ConnectAuthenticationValidator implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
5
- validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema>;
5
+ validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
6
6
  }
7
7
  //# sourceMappingURL=connect-authentication-validator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connect-authentication-validator.d.ts","sourceRoot":"","sources":["../../src/validators/connect-authentication-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,qBAAa,8BACX,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;CA0BzG"}
1
+ {"version":3,"file":"connect-authentication-validator.d.ts","sourceRoot":"","sources":["../../src/validators/connect-authentication-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,qBAAa,8BACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CA0BrD"}
@@ -4,7 +4,7 @@ exports.ConnectAuthenticationValidator = void 0;
4
4
  const text_1 = require("../text");
5
5
  const utils_1 = require("../utils");
6
6
  class ConnectAuthenticationValidator {
7
- validate(manifest) {
7
+ async validate(manifest) {
8
8
  var _a, _b;
9
9
  if (!((_a = manifest === null || manifest === void 0 ? void 0 : manifest.typedContent) === null || _a === void 0 ? void 0 : _a.app)) {
10
10
  return {
@@ -2,6 +2,6 @@ import { ManifestObject, ManifestValidationResult } from '../types';
2
2
  import { ManifestSchema } from '../schema/manifest';
3
3
  import { ValidatorInterface } from './validator-interface';
4
4
  export declare class ConnectModulesValidator implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
5
- validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema>;
5
+ validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
6
6
  }
7
7
  //# sourceMappingURL=connect-modules-validator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connect-modules-validator.d.ts","sourceRoot":"","sources":["../../src/validators/connect-modules-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGxG,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,uBACX,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;CA0EzG"}
1
+ {"version":3,"file":"connect-modules-validator.d.ts","sourceRoot":"","sources":["../../src/validators/connect-modules-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGxG,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,uBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CA0ErD"}
@@ -5,7 +5,7 @@ const types_1 = require("../types");
5
5
  const utils_1 = require("../utils");
6
6
  const text_1 = require("../text");
7
7
  class ConnectModulesValidator {
8
- validate(manifest) {
8
+ async validate(manifest) {
9
9
  if (!manifest || !manifest.typedContent || !manifest.filePath) {
10
10
  return {
11
11
  success: false,
@@ -2,6 +2,6 @@ import { ValidatorInterface } from './validator-interface';
2
2
  import { ManifestObject, ManifestValidationResult } from '../types';
3
3
  import { ManifestSchema } from '../schema/manifest';
4
4
  export declare class ConnectRemoteValidator implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
5
- validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema>;
5
+ validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
6
6
  }
7
7
  //# sourceMappingURL=connect-remote-validator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connect-remote-validator.d.ts","sourceRoot":"","sources":["../../src/validators/connect-remote-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,qBAAa,sBACX,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;CAwCzG"}
1
+ {"version":3,"file":"connect-remote-validator.d.ts","sourceRoot":"","sources":["../../src/validators/connect-remote-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,qBAAa,sBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAwCrD"}
@@ -4,7 +4,7 @@ exports.ConnectRemoteValidator = void 0;
4
4
  const text_1 = require("../text");
5
5
  const utils_1 = require("../utils");
6
6
  class ConnectRemoteValidator {
7
- validate(manifest) {
7
+ async validate(manifest) {
8
8
  var _a, _b, _c, _d, _e;
9
9
  if (!((_a = manifest === null || manifest === void 0 ? void 0 : manifest.typedContent) === null || _a === void 0 ? void 0 : _a.app)) {
10
10
  return {
@@ -9,6 +9,6 @@ export declare class DisplayConditionsValidator<T> implements ValidatorInterface
9
9
  constructor(schema: object);
10
10
  flattenDisplayConditions(moduleKey: string, displayConditions: any, nesting?: number): any;
11
11
  toValidationError(message: string): ValidationError;
12
- validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema>;
12
+ validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
13
13
  }
14
14
  //# sourceMappingURL=display-conditions-validator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"display-conditions-validator.d.ts","sourceRoot":"","sources":["../../src/validators/display-conditions-validator.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,cAAc,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAErG,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKpD,qBAAa,0BAA0B,CAAC,CAAC,CACvC,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAK7E,OAAO,CAAC,QAAQ,CAAC,MAAM;IAJnC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAuB;IACtD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAiB;IAC/C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA2B;gBAElC,MAAM,EAAE,MAAM;IAoE3C,wBAAwB,CAAC,SAAS,EAAE,MAAM,EAAE,iBAAiB,EAAE,GAAG,EAAE,OAAO,SAAI,GAAG,GAAG;IA2BrF,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe;IAUnD,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GAAG,wBAAwB,CAAC,cAAc,CAAC;CAuFzG"}
1
+ {"version":3,"file":"display-conditions-validator.d.ts","sourceRoot":"","sources":["../../src/validators/display-conditions-validator.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,cAAc,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAErG,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKpD,qBAAa,0BAA0B,CAAC,CAAC,CACvC,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAK7E,OAAO,CAAC,QAAQ,CAAC,MAAM;IAJnC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAuB;IACtD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAiB;IAC/C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA2B;gBAElC,MAAM,EAAE,MAAM;IAoE3C,wBAAwB,CAAC,SAAS,EAAE,MAAM,EAAE,iBAAiB,EAAE,GAAG,EAAE,OAAO,SAAI,GAAG,GAAG;IA2BrF,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe;IAU7C,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAuFrD"}
@@ -45,7 +45,7 @@ class DisplayConditionsValidator {
45
45
  column: 0
46
46
  };
47
47
  }
48
- validate(manifest) {
48
+ async validate(manifest) {
49
49
  if (!manifest ||
50
50
  !manifest.typedContent ||
51
51
  (!manifest.typedContent.modules && !manifest.typedContent.connectModules)) {
@@ -1,6 +1,6 @@
1
1
  import { ValidatorInterface } from './validator-interface';
2
2
  import { ManifestObject, ManifestValidationResult } from '../types';
3
3
  export declare class EntityPropertyValidator<T> implements ValidatorInterface<ManifestObject<T> | undefined, T> {
4
- validate(manifest: ManifestObject<T> | undefined): ManifestValidationResult<T>;
4
+ validate(manifest: ManifestObject<T> | undefined): Promise<ManifestValidationResult<T>>;
5
5
  }
6
6
  //# sourceMappingURL=entity-property-validator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity-property-validator.d.ts","sourceRoot":"","sources":["../../src/validators/entity-property-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAkB,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AASrG,qBAAa,uBAAuB,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IACrG,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,wBAAwB,CAAC,CAAC,CAAC;CAoC/E"}
1
+ {"version":3,"file":"entity-property-validator.d.ts","sourceRoot":"","sources":["../../src/validators/entity-property-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAkB,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AASrG,qBAAa,uBAAuB,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IAC/F,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;CAoC9F"}
@@ -9,7 +9,7 @@ const isManifestWithModules = (manifest) => {
9
9
  return !!((_a = manifest === null || manifest === void 0 ? void 0 : manifest.typedContent) === null || _a === void 0 ? void 0 : _a['modules']);
10
10
  };
11
11
  class EntityPropertyValidator {
12
- validate(manifest) {
12
+ async validate(manifest) {
13
13
  var _a;
14
14
  if (!(manifest === null || manifest === void 0 ? void 0 : manifest.typedContent)) {
15
15
  return {
@@ -1,6 +1,6 @@
1
1
  import { ManifestValidationResult } from '../types';
2
2
  import { ValidatorInterface } from './validator-interface';
3
3
  export declare class FileValidator<T> implements ValidatorInterface<string | undefined, T> {
4
- validate(manifest: string | undefined): ManifestValidationResult<T>;
4
+ validate(manifest: string | undefined): Promise<ManifestValidationResult<T>>;
5
5
  }
6
6
  //# sourceMappingURL=file-validator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-validator.d.ts","sourceRoot":"","sources":["../../src/validators/file-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAGnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,aAAa,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,MAAM,GAAG,SAAS,EAAE,CAAC,CAAC;IAChF,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,wBAAwB,CAAC,CAAC,CAAC;CAuBpE"}
1
+ {"version":3,"file":"file-validator.d.ts","sourceRoot":"","sources":["../../src/validators/file-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAGnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,aAAa,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,MAAM,GAAG,SAAS,EAAE,CAAC,CAAC;IAC1E,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;CAuBnF"}
@@ -6,7 +6,7 @@ const types_1 = require("../types");
6
6
  const fs_1 = tslib_1.__importDefault(require("fs"));
7
7
  const text_1 = require("../text");
8
8
  class FileValidator {
9
- validate(manifest) {
9
+ async validate(manifest) {
10
10
  const file = manifest || types_1.MANIFEST_FILE;
11
11
  if (!fs_1.default.existsSync(file)) {
12
12
  return {
@@ -3,6 +3,6 @@ import { ManifestSchema } from '../schema/manifest';
3
3
  import { ValidatorInterface } from './validator-interface';
4
4
  export declare class ModulesValidator implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
5
5
  private functionHandlerRegex;
6
- validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema>;
6
+ validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
7
7
  }
8
8
  //# sourceMappingURL=modules-validator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"modules-validator.d.ts","sourceRoot":"","sources":["../../src/validators/modules-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,cAAc,EAAE,wBAAwB,EAAsC,MAAM,UAAU,CAAC;AAGxH,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAM3D,qBAAa,gBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACzF,OAAO,CAAC,oBAAoB,CAA0C;IAEtE,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GAAG,wBAAwB,CAAC,cAAc,CAAC;CA6OzG"}
1
+ {"version":3,"file":"modules-validator.d.ts","sourceRoot":"","sources":["../../src/validators/modules-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,cAAc,EAAE,wBAAwB,EAAsC,MAAM,UAAU,CAAC;AAGxH,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAM3D,qBAAa,gBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACzF,OAAO,CAAC,oBAAoB,CAA0C;IAEhE,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CA6OrD"}
@@ -12,7 +12,7 @@ class ModulesValidator {
12
12
  constructor() {
13
13
  this.functionHandlerRegex = /^([a-zA-Z0-9-_]+)\.([a-zA-Z0-9-_]+)$/;
14
14
  }
15
- validate(manifest) {
15
+ async validate(manifest) {
16
16
  var _a, _b;
17
17
  if (!manifest || !manifest.typedContent || !manifest.filePath) {
18
18
  return {
@@ -8,6 +8,6 @@ export declare class PermissionsValidator implements ValidatorInterface<Manifest
8
8
  private isValidHash;
9
9
  private addValidationErrors;
10
10
  private validateExternalPermissionURLs;
11
- validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema>;
11
+ validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
12
12
  }
13
13
  //# sourceMappingURL=permissions-validator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"permissions-validator.d.ts","sourceRoot":"","sources":["../../src/validators/permissions-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,EAAE,cAAc,EAAU,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAM3D,qBAAa,oBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACzF,OAAO,CAAC,gBAAgB,CAAoB;;IAM5C,OAAO,CAAC,UAAU;IA+BlB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,8BAA8B;IAWtC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GAAG,wBAAwB,CAAC,cAAc,CAAC;CA8FzG"}
1
+ {"version":3,"file":"permissions-validator.d.ts","sourceRoot":"","sources":["../../src/validators/permissions-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,EAAE,cAAc,EAAU,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAM3D,qBAAa,oBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACzF,OAAO,CAAC,gBAAgB,CAAoB;;IAM5C,OAAO,CAAC,UAAU;IA+BlB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,8BAA8B;IAWhC,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CA8FrD"}
@@ -57,7 +57,7 @@ class PermissionsValidator {
57
57
  this.addValidationErrors(extPermType, invalidPerms, manifest);
58
58
  }
59
59
  }
60
- validate(manifest) {
60
+ async validate(manifest) {
61
61
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
62
62
  if (!manifest || !manifest.typedContent || !manifest.typedContent.permissions) {
63
63
  return {
@@ -12,6 +12,6 @@ export interface MappingConfig {
12
12
  export declare class ProductTriggerScopesValidator<T> implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
13
13
  private readonly config;
14
14
  constructor(config: MappingConfig);
15
- validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema>;
15
+ validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
16
16
  }
17
17
  //# sourceMappingURL=product-trigger-scopes-validator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"product-trigger-scopes-validator.d.ts","sourceRoot":"","sources":["../../src/validators/product-trigger-scopes-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,EAAoB,cAAc,EAAE,MAAM,WAAW,CAAC;AAE7D,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,cAAc,CAAC;CAC7B;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,qBAAa,6BAA6B,CAAC,CAAC,CAC1C,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAC7E,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAElD,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GAAG,wBAAwB,CAAC,cAAc,CAAC;CAoDzG"}
1
+ {"version":3,"file":"product-trigger-scopes-validator.d.ts","sourceRoot":"","sources":["../../src/validators/product-trigger-scopes-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,EAAoB,cAAc,EAAE,MAAM,WAAW,CAAC;AAE7D,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,cAAc,CAAC;CAC7B;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,qBAAa,6BAA6B,CAAC,CAAC,CAC1C,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAC7E,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAE5C,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAoDrD"}
@@ -8,7 +8,7 @@ class ProductTriggerScopesValidator {
8
8
  constructor(config) {
9
9
  this.config = config;
10
10
  }
11
- validate(manifest) {
11
+ async validate(manifest) {
12
12
  var _a;
13
13
  if (!manifest || !manifest.typedContent) {
14
14
  return {
@@ -34,13 +34,13 @@ class ProductTriggerScopesValidator {
34
34
  };
35
35
  }
36
36
  const manifestScopes = ((_a = manifest.typedContent.permissions) === null || _a === void 0 ? void 0 : _a.scopes) || [];
37
- manifest.typedContent.modules.trigger.forEach((element) => {
37
+ for (const element of manifest.typedContent.modules.trigger) {
38
38
  for (const event of element.events) {
39
39
  const requiredScopes = getRequiredScopes(event);
40
- const missingScopes = scopes_1.getMissingScopes(manifestScopes, requiredScopes);
40
+ const missingScopes = await scopes_1.getMissingScopes(manifestScopes, requiredScopes);
41
41
  missingScopes.forEach((scope) => addValidationError(scope, event));
42
42
  }
43
- });
43
+ }
44
44
  return {
45
45
  success: validationErrors.length === 0,
46
46
  manifestObject: manifest,
@@ -2,7 +2,7 @@ import { ManifestObject, ManifestValidationResult } from '../types';
2
2
  import type { ManifestSchema } from '../schema/manifest';
3
3
  import { ValidatorInterface } from './validator-interface';
4
4
  export declare class ProvidersValidator implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
5
- validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema>;
5
+ validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
6
6
  private isActionValidRemote;
7
7
  private isValidProfileRetrieverFunction;
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"providers-validator.d.ts","sourceRoot":"","sources":["../../src/validators/providers-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,KAAK,EAGV,cAAc,EAGf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,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;IA0ExG,OAAO,CAAC,mBAAmB;IAiB3B,OAAO,CAAC,+BAA+B;CAiBxC"}
1
+ {"version":3,"file":"providers-validator.d.ts","sourceRoot":"","sources":["../../src/validators/providers-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,KAAK,EAGV,cAAc,EAGf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,kBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;IA0EpD,OAAO,CAAC,mBAAmB;IAiB3B,OAAO,CAAC,+BAA+B;CAiBxC"}
@@ -4,7 +4,7 @@ exports.ProvidersValidator = void 0;
4
4
  const utils_1 = require("../utils");
5
5
  const text_1 = require("../text");
6
6
  class ProvidersValidator {
7
- validate(manifest) {
7
+ async validate(manifest) {
8
8
  if (!manifest || !manifest.typedContent || !manifest.typedContent.providers) {
9
9
  return {
10
10
  success: true,
@@ -2,6 +2,6 @@ import { ManifestObject, ManifestValidationResult } from '../types';
2
2
  import { ManifestSchema } from '../schema/manifest';
3
3
  import { ValidatorInterface } from './validator-interface';
4
4
  export declare class ResourcesValidator implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
5
- validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema>;
5
+ validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
6
6
  }
7
7
  //# sourceMappingURL=resources-validator.d.ts.map
@@ -1 +1 @@
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"}
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;IACnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAgIrD"}
@@ -10,7 +10,7 @@ const text_1 = require("../text");
10
10
  const utils_2 = require("../utils");
11
11
  const MAX_RESOURCE_COUNT = 10;
12
12
  class ResourcesValidator {
13
- validate(manifest) {
13
+ async validate(manifest) {
14
14
  if (!manifest || !manifest.typedContent || !manifest.filePath) {
15
15
  return {
16
16
  success: false,
@@ -11,6 +11,6 @@ export declare class SchemaValidator<T> implements ValidatorInterface<ManifestOb
11
11
  private getDeprecationInfo;
12
12
  private handleDeprecatedField;
13
13
  private handleError;
14
- validate(manifest: ManifestObject<T> | undefined): ManifestValidationResult<T>;
14
+ validate(manifest: ManifestObject<T> | undefined): Promise<ManifestValidationResult<T>>;
15
15
  }
16
16
  //# sourceMappingURL=schema-validator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-validator.d.ts","sourceRoot":"","sources":["../../src/validators/schema-validator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAA0C,MAAM,UAAU,CAAC;AAG5G,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,eAAe,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IAGjF,OAAO,CAAC,QAAQ,CAAC,MAAM;IAFnC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAuB;gBAEzB,MAAM,EAAE,MAAM;IAK3C,OAAO,CAAC,mBAAmB,CA4BzB;IAEF,OAAO,CAAC,iBAAiB,CAyBvB;IAEF,OAAO,CAAC,kBAAkB,CAyBxB;IAEF,OAAO,CAAC,iBAAiB,CAKvB;IAEF,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,qBAAqB,CAa3B;IAEF,OAAO,CAAC,WAAW,CAcjB;IAEF,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,wBAAwB,CAAC,CAAC,CAAC;CAkD/E"}
1
+ {"version":3,"file":"schema-validator.d.ts","sourceRoot":"","sources":["../../src/validators/schema-validator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAA0C,MAAM,UAAU,CAAC;AAG5G,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,eAAe,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IAGjF,OAAO,CAAC,QAAQ,CAAC,MAAM;IAFnC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAuB;gBAEzB,MAAM,EAAE,MAAM;IAK3C,OAAO,CAAC,mBAAmB,CA4BzB;IAEF,OAAO,CAAC,iBAAiB,CAyBvB;IAEF,OAAO,CAAC,kBAAkB,CAyBxB;IAEF,OAAO,CAAC,iBAAiB,CAKvB;IAEF,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,qBAAqB,CAa3B;IAEF,OAAO,CAAC,WAAW,CAcjB;IAEI,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;CAkD9F"}
@@ -95,7 +95,7 @@ class SchemaValidator {
95
95
  return deprecationSection[property];
96
96
  }
97
97
  }
98
- validate(manifest) {
98
+ async validate(manifest) {
99
99
  var _a;
100
100
  if (!manifest || !manifest.yamlContent) {
101
101
  return {
@@ -1,5 +1,5 @@
1
1
  import { ManifestValidationResult } from '../types';
2
2
  export interface ValidatorInterface<I, O> {
3
- validate(manifest: I): ManifestValidationResult<O>;
3
+ validate(manifest: I): Promise<ManifestValidationResult<O>>;
4
4
  }
5
5
  //# sourceMappingURL=validator-interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validator-interface.d.ts","sourceRoot":"","sources":["../../src/validators/validator-interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,WAAW,kBAAkB,CAAC,CAAC,EAAE,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;CACpD"}
1
+ {"version":3,"file":"validator-interface.d.ts","sourceRoot":"","sources":["../../src/validators/validator-interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,WAAW,kBAAkB,CAAC,CAAC,EAAE,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;CAC7D"}
@@ -1,6 +1,6 @@
1
1
  import { ManifestObject, ManifestValidationResult } from '../types';
2
2
  import { ValidatorInterface } from './validator-interface';
3
3
  export declare class YamlValidator<T> implements ValidatorInterface<ManifestObject<T> | undefined, T> {
4
- validate(manifest: ManifestObject<T> | undefined): ManifestValidationResult<T>;
4
+ validate(manifest: ManifestObject<T> | undefined): Promise<ManifestValidationResult<T>>;
5
5
  }
6
6
  //# sourceMappingURL=yaml-validator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"yaml-validator.d.ts","sourceRoot":"","sources":["../../src/validators/yaml-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAIpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,aAAa,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IAC3F,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,wBAAwB,CAAC,CAAC,CAAC;CAkD/E"}
1
+ {"version":3,"file":"yaml-validator.d.ts","sourceRoot":"","sources":["../../src/validators/yaml-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAIpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,aAAa,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IACrF,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;CAkD9F"}
@@ -6,7 +6,7 @@ const js_yaml_1 = tslib_1.__importStar(require("js-yaml"));
6
6
  const fs_1 = tslib_1.__importDefault(require("fs"));
7
7
  const text_1 = require("../text");
8
8
  class YamlValidator {
9
- validate(manifest) {
9
+ async validate(manifest) {
10
10
  if (!manifest || !manifest.filePath) {
11
11
  return {
12
12
  success: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "3.11.0-next.2",
3
+ "version": "4.0.0-next.5",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {