@company-semantics/contracts 13.0.0 → 13.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "13.0.0",
3
+ "version": "13.0.1",
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 = '256c847768b8' as const;
3
- export const SPEC_HASH_FULL = '256c847768b815079ad97a8b75438b3e3162e1caa223c7d8a97ac33285316192' as const;
2
+ export const SPEC_HASH = 'dd85c63b3fd6' as const;
3
+ export const SPEC_HASH_FULL = 'dd85c63b3fd6d351429bf5f601815dea1e6b22e52f31f467c7d1df4616d0b03f' as const;
@@ -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: string;
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: ("ceo" | "leader" | "delegate" | "admin") | null;
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: ("ceo" | "leader" | "delegate" | "admin") | null;
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: ("ceo" | "leader" | "delegate" | "admin") | null;
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: ("ceo" | "leader" | "delegate" | "admin") | null;
4385
+ role: ("owner" | "leader" | "delegate" | "admin") | null;
4384
4386
  canManageMembers: boolean;
4385
4387
  canAssignDelegate: boolean;
4386
4388
  canAssignAdmin: boolean;
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;