@forge/manifest 11.3.2 → 11.4.0-next.1

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 11.4.0-next.1
4
+
5
+ ### Minor Changes
6
+
7
+ - e21f32f: Remove remote oauth scopes lint check as scopes are no longer required in manifest
8
+
9
+ ## 11.3.3-next.0
10
+
11
+ ### Patch Changes
12
+
13
+ - 545ecc1: Update manifest definitions
14
+
3
15
  ## 11.3.2
4
16
 
5
17
  ### Patch Changes
@@ -6254,6 +6254,12 @@
6254
6254
  },
6255
6255
  "export": {
6256
6256
  "type": "boolean"
6257
+ },
6258
+ "api": {
6259
+ "type": "boolean"
6260
+ },
6261
+ "historyView": {
6262
+ "type": "boolean"
6257
6263
  }
6258
6264
  },
6259
6265
  "required": [
@@ -6715,6 +6721,12 @@
6715
6721
  },
6716
6722
  "export": {
6717
6723
  "type": "boolean"
6724
+ },
6725
+ "api": {
6726
+ "type": "boolean"
6727
+ },
6728
+ "historyView": {
6729
+ "type": "boolean"
6718
6730
  }
6719
6731
  },
6720
6732
  "required": [
@@ -7160,6 +7172,12 @@
7160
7172
  },
7161
7173
  "export": {
7162
7174
  "type": "boolean"
7175
+ },
7176
+ "api": {
7177
+ "type": "boolean"
7178
+ },
7179
+ "historyView": {
7180
+ "type": "boolean"
7163
7181
  }
7164
7182
  },
7165
7183
  "required": [
@@ -7601,6 +7619,12 @@
7601
7619
  },
7602
7620
  "export": {
7603
7621
  "type": "boolean"
7622
+ },
7623
+ "api": {
7624
+ "type": "boolean"
7625
+ },
7626
+ "historyView": {
7627
+ "type": "boolean"
7604
7628
  }
7605
7629
  },
7606
7630
  "required": [
@@ -8142,6 +8166,12 @@
8142
8166
  },
8143
8167
  "export": {
8144
8168
  "type": "boolean"
8169
+ },
8170
+ "api": {
8171
+ "type": "boolean"
8172
+ },
8173
+ "historyView": {
8174
+ "type": "boolean"
8145
8175
  }
8146
8176
  },
8147
8177
  "required": [
@@ -8667,6 +8697,12 @@
8667
8697
  },
8668
8698
  "export": {
8669
8699
  "type": "boolean"
8700
+ },
8701
+ "api": {
8702
+ "type": "boolean"
8703
+ },
8704
+ "historyView": {
8705
+ "type": "boolean"
8670
8706
  }
8671
8707
  },
8672
8708
  "required": [
@@ -14355,6 +14355,8 @@ export interface Modules {
14355
14355
  formatter?: {
14356
14356
  expression: string;
14357
14357
  export?: boolean;
14358
+ api?: boolean;
14359
+ historyView?: boolean;
14358
14360
  [k: string]: unknown;
14359
14361
  };
14360
14362
  value?: {
@@ -14470,6 +14472,8 @@ export interface Modules {
14470
14472
  formatter: {
14471
14473
  expression: string;
14472
14474
  export?: boolean;
14475
+ api?: boolean;
14476
+ historyView?: boolean;
14473
14477
  [k: string]: unknown;
14474
14478
  };
14475
14479
  value?: {
@@ -14585,6 +14589,8 @@ export interface Modules {
14585
14589
  formatter: {
14586
14590
  expression: string;
14587
14591
  export?: boolean;
14592
+ api?: boolean;
14593
+ historyView?: boolean;
14588
14594
  [k: string]: unknown;
14589
14595
  };
14590
14596
  schema?: {
@@ -14698,6 +14704,8 @@ export interface Modules {
14698
14704
  formatter?: {
14699
14705
  expression: string;
14700
14706
  export?: boolean;
14707
+ api?: boolean;
14708
+ historyView?: boolean;
14701
14709
  [k: string]: unknown;
14702
14710
  };
14703
14711
  value?: {
@@ -14813,6 +14821,8 @@ export interface Modules {
14813
14821
  formatter: {
14814
14822
  expression: string;
14815
14823
  export?: boolean;
14824
+ api?: boolean;
14825
+ historyView?: boolean;
14816
14826
  [k: string]: unknown;
14817
14827
  };
14818
14828
  value?: {
@@ -14928,6 +14938,8 @@ export interface Modules {
14928
14938
  formatter: {
14929
14939
  expression: string;
14930
14940
  export?: boolean;
14941
+ api?: boolean;
14942
+ historyView?: boolean;
14931
14943
  [k: string]: unknown;
14932
14944
  };
14933
14945
  schema?: {
@@ -15043,6 +15055,8 @@ export interface Modules {
15043
15055
  formatter?: {
15044
15056
  expression: string;
15045
15057
  export?: boolean;
15058
+ api?: boolean;
15059
+ historyView?: boolean;
15046
15060
  [k: string]: unknown;
15047
15061
  };
15048
15062
  value?: {
@@ -15173,6 +15187,8 @@ export interface Modules {
15173
15187
  formatter: {
15174
15188
  expression: string;
15175
15189
  export?: boolean;
15190
+ api?: boolean;
15191
+ historyView?: boolean;
15176
15192
  [k: string]: unknown;
15177
15193
  };
15178
15194
  value?: {
@@ -15303,6 +15319,8 @@ export interface Modules {
15303
15319
  formatter: {
15304
15320
  expression: string;
15305
15321
  export?: boolean;
15322
+ api?: boolean;
15323
+ historyView?: boolean;
15306
15324
  [k: string]: unknown;
15307
15325
  };
15308
15326
  schema?: {
@@ -15431,6 +15449,8 @@ export interface Modules {
15431
15449
  formatter?: {
15432
15450
  expression: string;
15433
15451
  export?: boolean;
15452
+ api?: boolean;
15453
+ historyView?: boolean;
15434
15454
  [k: string]: unknown;
15435
15455
  };
15436
15456
  value?: {
@@ -15561,6 +15581,8 @@ export interface Modules {
15561
15581
  formatter: {
15562
15582
  expression: string;
15563
15583
  export?: boolean;
15584
+ api?: boolean;
15585
+ historyView?: boolean;
15564
15586
  [k: string]: unknown;
15565
15587
  };
15566
15588
  value?: {
@@ -15691,6 +15713,8 @@ export interface Modules {
15691
15713
  formatter: {
15692
15714
  expression: string;
15693
15715
  export?: boolean;
15716
+ api?: boolean;
15717
+ historyView?: boolean;
15694
15718
  [k: string]: unknown;
15695
15719
  };
15696
15720
  schema?: {
@@ -1,5 +1,3 @@
1
1
  export declare const MANIFEST_FILE = "manifest.yml";
2
- export declare const SYSTEM_TOKEN_SCOPE = "read:app-system-token";
3
- export declare const USER_TOKEN_SCOPE = "read:app-user-token";
4
2
  export declare const REMOTE_AUTH_SCOPES: string[];
5
3
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/types/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,iBAAiB,CAAC;AAE5C,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AAC1D,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AACtD,eAAO,MAAM,kBAAkB,UAAyC,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/types/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,iBAAiB,CAAC;AAE5C,eAAO,MAAM,kBAAkB,UAAmD,CAAC"}
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.REMOTE_AUTH_SCOPES = exports.USER_TOKEN_SCOPE = exports.SYSTEM_TOKEN_SCOPE = exports.MANIFEST_FILE = void 0;
3
+ exports.REMOTE_AUTH_SCOPES = exports.MANIFEST_FILE = void 0;
4
4
  exports.MANIFEST_FILE = 'manifest.yml';
5
- exports.SYSTEM_TOKEN_SCOPE = 'read:app-system-token';
6
- exports.USER_TOKEN_SCOPE = 'read:app-user-token';
7
- exports.REMOTE_AUTH_SCOPES = [exports.SYSTEM_TOKEN_SCOPE, exports.USER_TOKEN_SCOPE];
5
+ exports.REMOTE_AUTH_SCOPES = ['read:app-system-token', 'read:app-user-token'];
@@ -1 +1 @@
1
- {"version":3,"file":"modules-validator.d.ts","sourceRoot":"","sources":["../../src/validators/modules-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACd,wBAAwB,EAKzB,MAAM,UAAU,CAAC;AASlB,OAAO,EAEL,cAAc,EAMf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAyB3D,qBAAa,gBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAGzF,OAAO,CAAC,oBAAoB,CAAsE;IAE5F,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;IA+DpD,OAAO,CAAC,uBAAuB;IAO/B,OAAO,CAAC,iBAAiB;IAkBzB,OAAO,CAAC,4BAA4B;IAapC,OAAO,CAAC,uBAAuB;IAe/B,OAAO,CAAC,uBAAuB;IAiB/B,OAAO,CAAC,4BAA4B;IA0BpC,OAAO,CAAC,mBAAmB;IA+H3B,OAAO,CAAC,4BAA4B;IA2BpC,OAAO,CAAC,yBAAyB;CAkClC"}
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;AASxH,OAAO,EAEL,cAAc,EAMf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAwB3D,qBAAa,gBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAGzF,OAAO,CAAC,oBAAoB,CAAsE;IAE5F,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;IA+DpD,OAAO,CAAC,uBAAuB;IAO/B,OAAO,CAAC,iBAAiB;IAkBzB,OAAO,CAAC,4BAA4B;IAapC,OAAO,CAAC,uBAAuB;IAe/B,OAAO,CAAC,uBAAuB;IAiB/B,OAAO,CAAC,4BAA4B;IA0BpC,OAAO,CAAC,mBAAmB;IA2E3B,OAAO,CAAC,4BAA4B;IA2BpC,OAAO,CAAC,yBAAyB;CAkClC"}
@@ -22,7 +22,6 @@ const validate_custom_field_1 = require("./modules-validators/jira/validate-cust
22
22
  const validate_trigger_1 = require("./modules-validators/jira/validate-trigger");
23
23
  const validate_command_1 = require("./modules-validators/jira/validate-command");
24
24
  const validate_action_validator_1 = require("./modules-validators/jira/validate-action-validator");
25
- const scopes_1 = require("../utils/scopes");
26
25
  const automation_1 = require("./modules-validators/automation");
27
26
  class ModulesValidator {
28
27
  functionHandlerRegex = /^([\p{Alpha}\d_-]+(?:\/[\p{Alpha}\d_-]+)*)\.([\p{Alpha}\d_-]+)$/u;
@@ -136,7 +135,6 @@ class ModulesValidator {
136
135
  };
137
136
  const { endpoint: _endpoint } = modules;
138
137
  const eventModulesWithEndpoint = modules?.trigger?.filter((trigger) => trigger.endpoint != null) || [];
139
- const scopeKeys = (0, scopes_1.getAllScopeKeys)(scopes);
140
138
  eventModulesWithEndpoint.forEach((event) => {
141
139
  const endpointModule = _endpoint?.find((remoteEndpoint) => remoteEndpoint.key === event.endpoint);
142
140
  if (endpointModule) {
@@ -174,28 +172,6 @@ class ModulesValidator {
174
172
  ...(0, utils_1.findPosition)(endpoint.remote, yamlContentByLine)
175
173
  });
176
174
  }
177
- if (endpoint.auth?.appUserToken?.enabled && !scopeKeys.includes(types_1.USER_TOKEN_SCOPE)) {
178
- validationErrors.push({
179
- message: text_1.errors.permissions.missingEndpointPermissionFromScope(types_1.USER_TOKEN_SCOPE, endpoint.key),
180
- reference: text_1.References.MissingScopes,
181
- level: 'error',
182
- metadata: {
183
- missingPermission: types_1.USER_TOKEN_SCOPE
184
- },
185
- ...(0, utils_1.findPosition)('scopes', yamlContentByLine)
186
- });
187
- }
188
- if (endpoint.auth?.appSystemToken?.enabled && !scopeKeys.includes(types_1.SYSTEM_TOKEN_SCOPE)) {
189
- validationErrors.push({
190
- message: text_1.errors.permissions.missingEndpointPermissionFromScope(types_1.SYSTEM_TOKEN_SCOPE, endpoint.key),
191
- reference: text_1.References.MissingScopes,
192
- level: 'error',
193
- metadata: {
194
- missingPermission: types_1.SYSTEM_TOKEN_SCOPE
195
- },
196
- ...(0, utils_1.findPosition)('scopes', yamlContentByLine)
197
- });
198
- }
199
175
  }
200
176
  else if (isServiceType(endpoint)) {
201
177
  (0, utils_1.findInvalidServiceReferences)(endpoint, services).forEach((service) => {
@@ -208,30 +184,6 @@ class ModulesValidator {
208
184
  });
209
185
  }
210
186
  });
211
- remotes?.forEach((remote) => {
212
- if (remote.auth?.appUserToken?.enabled && !scopeKeys.includes(types_1.USER_TOKEN_SCOPE)) {
213
- validationErrors.push({
214
- message: text_1.errors.permissions.missingRemotePermissionFromScope(types_1.USER_TOKEN_SCOPE, remote.key),
215
- reference: text_1.References.MissingScopes,
216
- level: 'error',
217
- metadata: {
218
- missingPermission: types_1.USER_TOKEN_SCOPE
219
- },
220
- ...(0, utils_1.findPosition)('scopes', yamlContentByLine)
221
- });
222
- }
223
- if (remote.auth?.appSystemToken?.enabled && !scopeKeys.includes(types_1.SYSTEM_TOKEN_SCOPE)) {
224
- validationErrors.push({
225
- message: text_1.errors.permissions.missingRemotePermissionFromScope(types_1.SYSTEM_TOKEN_SCOPE, remote.key),
226
- reference: text_1.References.MissingScopes,
227
- level: 'error',
228
- metadata: {
229
- missingPermission: types_1.SYSTEM_TOKEN_SCOPE
230
- },
231
- ...(0, utils_1.findPosition)('scopes', yamlContentByLine)
232
- });
233
- }
234
- });
235
187
  return validationErrors;
236
188
  }
237
189
  duplicateModuleKeyValidation(modules, connectModules, yamlContentByLine) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "11.3.2",
3
+ "version": "11.4.0-next.1",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {