@forge/manifest 13.6.0-next.2 → 13.6.0-next.3

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,11 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 13.6.0-next.3
4
+
5
+ ### Minor Changes
6
+
7
+ - e7dc317: Warn when Teamwork Graph API usage is detected without graph scopes in the manifest, with guidance to review scope documentation. The warning does not block builds or automatically add scopes.
8
+
3
9
  ## 13.6.0-next.2
4
10
 
5
11
  ### Minor Changes
@@ -6,4 +6,5 @@ export type RequiredScopes = {
6
6
  };
7
7
  export declare function getMissingScopes(existing: Scopes | undefined, required: RequiredScopes): Promise<string[]>;
8
8
  export declare function getScopesWithInteractiveConsent(): Set<string>;
9
+ export declare function getTeamworkGraphScopes(): ReadonlySet<string>;
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scopes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAI5C,MAAM,MAAM,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,GAAG,SAAS,EAAE,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CA+BhH;AAED,wBAAgB,+BAA+B,IAAI,GAAG,CAAC,MAAM,CAAC,CAE7D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scopes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAK5C,MAAM,MAAM,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,GAAG,SAAS,EAAE,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CA+BhH;AAED,wBAAgB,+BAA+B,IAAI,GAAG,CAAC,MAAM,CAAC,CAE7D;AAGD,wBAAgB,sBAAsB,IAAI,WAAW,CAAC,MAAM,CAAC,CAE5D"}
@@ -2,9 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getMissingScopes = getMissingScopes;
4
4
  exports.getScopesWithInteractiveConsent = getScopesWithInteractiveConsent;
5
+ exports.getTeamworkGraphScopes = getTeamworkGraphScopes;
5
6
  const tslib_1 = require("tslib");
6
7
  const scopes_1 = require("../utils/scopes");
7
8
  const shipyard_scopes_with_interactive_consent_json_1 = tslib_1.__importDefault(require("./shipyard-scopes-with-interactive-consent.json"));
9
+ const teamwork_graph_scopes_json_1 = tslib_1.__importDefault(require("./teamwork-graph-scopes.json"));
8
10
  async function getMissingScopes(existing, required) {
9
11
  const { current: requiredCurrentScopes = [], beta: requiredBetaScopes = [], deprecated: requiredDeprecatedScopes = [] } = required;
10
12
  const existingScopes = existing ? (0, scopes_1.getAllScopeKeys)(existing) : [];
@@ -27,3 +29,6 @@ async function getMissingScopes(existing, required) {
27
29
  function getScopesWithInteractiveConsent() {
28
30
  return new Set(shipyard_scopes_with_interactive_consent_json_1.default);
29
31
  }
32
+ function getTeamworkGraphScopes() {
33
+ return new Set(teamwork_graph_scopes_json_1.default);
34
+ }
@@ -0,0 +1,72 @@
1
+ [
2
+ "read:graph:assets-object:atlassian",
3
+ "read:graph:blogpost:confluence",
4
+ "read:graph:board:jira",
5
+ "read:graph:branch:external",
6
+ "read:graph:build:external",
7
+ "read:graph:calendar-event:external",
8
+ "read:graph:change-proposal:focus",
9
+ "read:graph:comment:atlassian",
10
+ "read:graph:comment:confluence",
11
+ "read:graph:comment:external",
12
+ "read:graph:comment:loom",
13
+ "read:graph:commit:external",
14
+ "read:graph:component-link:compass",
15
+ "read:graph:component:compass",
16
+ "read:graph:conversation:external",
17
+ "read:graph:customer-contact:external",
18
+ "read:graph:customer-org-category:external",
19
+ "read:graph:customer-org:external",
20
+ "read:graph:dashboard:external",
21
+ "read:graph:data-table:external",
22
+ "read:graph:database:confluence",
23
+ "read:graph:deal:external",
24
+ "read:graph:deployment:external",
25
+ "read:graph:design:external",
26
+ "read:graph:document:external",
27
+ "read:graph:feature-flag:external",
28
+ "read:graph:focus-area-status-update:focus",
29
+ "read:graph:focus-area:focus",
30
+ "read:graph:folder:confluence",
31
+ "read:graph:goal-update:atlassian",
32
+ "read:graph:goal:atlassian",
33
+ "read:graph:issue-comment:jira",
34
+ "read:graph:issue-remote-link:jira",
35
+ "read:graph:issue-status:jira",
36
+ "read:graph:issue-worklog:jira",
37
+ "read:graph:issue:jira",
38
+ "read:graph:meeting-recurrence:loom",
39
+ "read:graph:meeting:loom",
40
+ "read:graph:message:external",
41
+ "read:graph:organisation:external",
42
+ "read:graph:page:confluence",
43
+ "read:graph:position:external",
44
+ "read:graph:position:talent",
45
+ "read:graph:priority:jira",
46
+ "read:graph:project-update:atlassian",
47
+ "read:graph:project:atlassian",
48
+ "read:graph:project:external",
49
+ "read:graph:project:jira",
50
+ "read:graph:pull-request:external",
51
+ "read:graph:remote-link:external",
52
+ "read:graph:repository:external",
53
+ "read:graph:scorecard:compass",
54
+ "read:graph:service:external",
55
+ "read:graph:space:confluence",
56
+ "read:graph:space:external",
57
+ "read:graph:space:loom",
58
+ "read:graph:sprint:jira",
59
+ "read:graph:tag:atlassian",
60
+ "read:graph:team-type:atlassian",
61
+ "read:graph:team:atlassian",
62
+ "read:graph:team:opsgenie",
63
+ "read:graph:user:atlassian",
64
+ "read:graph:version:jira",
65
+ "read:graph:video:external",
66
+ "read:graph:video:loom",
67
+ "read:graph:vulnerability:external",
68
+ "read:graph:whiteboard:confluence",
69
+ "read:graph:work-item:external",
70
+ "read:graph:worker:external",
71
+ "read:graph:worker:talent"
72
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "13.6.0-next.2",
3
+ "version": "13.6.0-next.3",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {