@company-semantics/contracts 13.0.0 → 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,3 +1,3 @@
|
|
|
1
1
|
// AUTO-GENERATED — do not edit. Run pnpm generate:spec-hash to regenerate.
|
|
2
|
-
export const SPEC_HASH = '
|
|
3
|
-
export const SPEC_HASH_FULL = '
|
|
2
|
+
export const SPEC_HASH = 'dd85c63b3fd6' as const;
|
|
3
|
+
export const SPEC_HASH_FULL = 'dd85c63b3fd6d351429bf5f601815dea1e6b22e52f31f467c7d1df4616d0b03f' as const;
|
package/src/api/generated.ts
CHANGED
|
@@ -3247,6 +3247,7 @@ export interface components {
|
|
|
3247
3247
|
name: string;
|
|
3248
3248
|
email: string;
|
|
3249
3249
|
};
|
|
3250
|
+
ownerTitle: string;
|
|
3250
3251
|
createdAt: string;
|
|
3251
3252
|
memberCount: number;
|
|
3252
3253
|
claimable: boolean;
|
|
@@ -3258,7 +3259,8 @@ export interface components {
|
|
|
3258
3259
|
handle: string;
|
|
3259
3260
|
};
|
|
3260
3261
|
OrgRenameRequest: {
|
|
3261
|
-
name
|
|
3262
|
+
name?: string;
|
|
3263
|
+
ownerTitle?: string | null;
|
|
3262
3264
|
};
|
|
3263
3265
|
WorkspaceMembersResponse: {
|
|
3264
3266
|
items: {
|
|
@@ -3267,7 +3269,7 @@ export interface components {
|
|
|
3267
3269
|
email: string;
|
|
3268
3270
|
avatarUrl?: string | null;
|
|
3269
3271
|
jobTitle: string | null;
|
|
3270
|
-
role: ("
|
|
3272
|
+
role: ("owner" | "leader" | "delegate" | "admin") | null;
|
|
3271
3273
|
roleNames: string[];
|
|
3272
3274
|
joinedAt: string;
|
|
3273
3275
|
lastActiveAt: string | null;
|
|
@@ -3462,7 +3464,7 @@ export interface components {
|
|
|
3462
3464
|
email: string;
|
|
3463
3465
|
avatarUrl?: string | null;
|
|
3464
3466
|
jobTitle: string | null;
|
|
3465
|
-
role: ("
|
|
3467
|
+
role: ("owner" | "leader" | "delegate" | "admin") | null;
|
|
3466
3468
|
roleNames: string[];
|
|
3467
3469
|
joinedAt: string;
|
|
3468
3470
|
lastActiveAt: string | null;
|
|
@@ -3535,7 +3537,7 @@ export interface components {
|
|
|
3535
3537
|
orgId: string;
|
|
3536
3538
|
orgName: string;
|
|
3537
3539
|
orgSlug: string;
|
|
3538
|
-
role: ("
|
|
3540
|
+
role: ("owner" | "leader" | "delegate" | "admin") | null;
|
|
3539
3541
|
joinedAt: string;
|
|
3540
3542
|
isActive: boolean;
|
|
3541
3543
|
/** @enum {string} */
|
|
@@ -4380,7 +4382,7 @@ export interface components {
|
|
|
4380
4382
|
OrgUnitMyAuthorityResponse: {
|
|
4381
4383
|
/** Format: uuid */
|
|
4382
4384
|
unitId: string;
|
|
4383
|
-
role: ("
|
|
4385
|
+
role: ("owner" | "leader" | "delegate" | "admin") | null;
|
|
4384
4386
|
canManageMembers: boolean;
|
|
4385
4387
|
canAssignDelegate: boolean;
|
|
4386
4388
|
canAssignAdmin: boolean;
|
|
@@ -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", () => {
|
package/src/org/types.ts
CHANGED
|
@@ -72,6 +72,12 @@ export interface WorkspaceOverview {
|
|
|
72
72
|
name: string;
|
|
73
73
|
email: string;
|
|
74
74
|
};
|
|
75
|
+
/**
|
|
76
|
+
* Org-configured display title for the `owner` org-chart role
|
|
77
|
+
* (ADR-CONTRACTS-061). Server-resolved (`orgs.owner_title` else "CEO").
|
|
78
|
+
* Mirror of `WorkspaceOverviewSchema.ownerTitle` — keep in lockstep.
|
|
79
|
+
*/
|
|
80
|
+
ownerTitle: string;
|
|
75
81
|
createdAt: string;
|
|
76
82
|
memberCount: number;
|
|
77
83
|
claimable: boolean;
|
package/src/org/view-scopes.ts
CHANGED
|
@@ -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,
|