@company-semantics/contracts 21.3.0 → 22.0.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": "21.3.0",
3
+ "version": "22.0.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED — do not edit. Run pnpm generate:spec-hash to regenerate.
2
- export const SPEC_HASH = '16094a4fcda0' as const;
3
- export const SPEC_HASH_FULL = '16094a4fcda0647e96289cdc0e104eab13d9539c043207cdda1ad8c8bf5a4dcb' as const;
2
+ export const SPEC_HASH = 'c4553ad2d609' as const;
3
+ export const SPEC_HASH_FULL = 'c4553ad2d6092751eed87104b6614f3ef60884954c1d5a029a98129d32c5b9bf' as const;
@@ -4811,6 +4811,8 @@ export interface components {
4811
4811
  /** Format: uuid */
4812
4812
  id: string;
4813
4813
  name: string;
4814
+ /** @enum {string} */
4815
+ mutability: "derived" | "user_managed";
4814
4816
  }[];
4815
4817
  }[];
4816
4818
  edges: {
@@ -84,7 +84,7 @@ TypeScript types and functions for user identity and display name resolution.
84
84
 
85
85
  **Internal domains:**
86
86
 
87
- _None._
87
+ - `org`
88
88
 
89
89
  **External packages:**
90
90
 
@@ -12,6 +12,7 @@
12
12
  * ADR-BE-120). Tree traversal must never consult either.
13
13
  */
14
14
  import { z } from "zod";
15
+ import { AuthorityMutabilitySchema } from "../org/schemas";
15
16
 
16
17
  // ---------------------------------------------------------------------------
17
18
  // Reporting Relationship Type
@@ -34,6 +35,14 @@ export type ReportingRelationshipType = z.infer<
34
35
  export const PeopleOrgChartOwnedUnitSchema = z.object({
35
36
  id: z.string().uuid(),
36
37
  name: z.string(),
38
+ // Whether this local structural ownership is DERIVED from reporting topology
39
+ // (the senior person homed in a unit with no manager inside it — ADR-BE-267/
40
+ // 294/329) or an explicit grant (`user_managed`). The chart marks a derived
41
+ // owner with the distinct ✧ marker (not the held-key glyph). A derived owner
42
+ // can't be revoked in place — only relinquished. Display + affordance gating
43
+ // only; never an authorization input. Mirrors `WorkspaceMemberUnitDesignation
44
+ // Entry.mutability`.
45
+ mutability: AuthorityMutabilitySchema,
37
46
  });
38
47
 
39
48
  export type PeopleOrgChartOwnedUnit = z.infer<