@company-semantics/contracts 13.0.1 → 13.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "13.0.1",
3
+ "version": "13.1.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,8 +9,8 @@ describe("VIEW_SCOPE_MAP golden snapshot", () => {
9
9
  teamwork: "org.view_teamwork",
10
10
  "teamwork-member": "org.view_teamwork",
11
11
  "company-md": "org.view_company_md",
12
- teams: "org.view_teams",
13
12
  "internal-admin": "internal.view_admin",
13
+ teams: null,
14
14
  chat: null,
15
15
  settings: null,
16
16
  chats: null,
@@ -35,6 +35,8 @@ describe("getViewScope", () => {
35
35
  expect(getViewScope("settings")).toBeNull();
36
36
  expect(getViewScope("chats")).toBeNull();
37
37
  expect(getViewScope("upgrade")).toBeNull();
38
+ // teams is membership-derived, not scope-gated (ADR-CONTRACTS-062).
39
+ expect(getViewScope("teams")).toBeNull();
38
40
  });
39
41
 
40
42
  it("returns null for unknown view string", () => {
@@ -22,9 +22,12 @@ export const VIEW_SCOPE_MAP = {
22
22
  teamwork: "org.view_teamwork",
23
23
  "teamwork-member": "org.view_teamwork",
24
24
  "company-md": "org.view_company_md",
25
- teams: "org.view_teams",
26
25
  "internal-admin": "internal.view_admin",
27
26
  // Public views (require only authentication)
27
+ // `teams`: team/directory visibility is membership-derived (ADR-BE-241 tier 1),
28
+ // not a scope. Repointed from the never-enforced `org.view_teams` to null when
29
+ // that scope was retired from the backend catalog (ADR-CONTRACTS-062 / ADR-BE-256).
30
+ teams: null,
28
31
  chat: null,
29
32
  settings: null,
30
33
  chats: null,