@company-semantics/contracts 13.11.0 → 13.12.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.11.0",
3
+ "version": "13.12.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 = '82b9493c89c4' as const;
3
- export const SPEC_HASH_FULL = '82b9493c89c442f25165f969fc23716d2ed0ba12f563534d9d00eae3aed8f671' as const;
2
+ export const SPEC_HASH = '96e4027ac1c0' as const;
3
+ export const SPEC_HASH_FULL = '96e4027ac1c0c18ce85a7ade0cf100eaae0ce3f55216e8a1384c1d96f3588ca8' as const;
@@ -3357,6 +3357,8 @@ export interface components {
3357
3357
  email: string;
3358
3358
  };
3359
3359
  ownerTitle: string;
3360
+ /** @enum {string} */
3361
+ ownerIcon: "crown" | "crown-cross" | "person" | "person-simple-circle" | "medal-military";
3360
3362
  createdAt: string;
3361
3363
  memberCount: number;
3362
3364
  claimable: boolean;
@@ -3370,6 +3372,7 @@ export interface components {
3370
3372
  OrgRenameRequest: {
3371
3373
  name?: string;
3372
3374
  ownerTitle?: string | null;
3375
+ ownerIcon?: ("crown" | "crown-cross" | "person" | "person-simple-circle" | "medal-military") | null;
3373
3376
  };
3374
3377
  WorkspaceMembersResponse: {
3375
3378
  items: {
@@ -4273,6 +4276,7 @@ export interface components {
4273
4276
  depth: number;
4274
4277
  hasChildren: boolean;
4275
4278
  memberCount: number;
4279
+ openRoleCount: number;
4276
4280
  missingAtNextLevel: {
4277
4281
  count: number;
4278
4282
  userIds: string[];
@@ -4420,6 +4424,7 @@ export interface components {
4420
4424
  depth: number;
4421
4425
  hasChildren: boolean;
4422
4426
  memberCount: number;
4427
+ openRoleCount: number;
4423
4428
  missingAtNextLevel: {
4424
4429
  count: number;
4425
4430
  userIds: string[];
@@ -4675,6 +4680,13 @@ export interface components {
4675
4680
  /** @enum {string} */
4676
4681
  relationshipType: "solid" | "dotted";
4677
4682
  }[];
4683
+ openRoles: {
4684
+ /** Format: uuid */
4685
+ id: string;
4686
+ /** Format: uuid */
4687
+ unitId: string;
4688
+ title: string | null;
4689
+ }[];
4678
4690
  };
4679
4691
  /** @description Polling snapshot of a generic ingestion operation. */
4680
4692
  IngestionOperationPollResponse: {
package/src/org/index.ts CHANGED
@@ -247,6 +247,7 @@ export {
247
247
  OrgUnitRelationshipSchema,
248
248
  OrgLevelConfigSchema,
249
249
  OrgLevelIconSchema,
250
+ OrgOwnerIconSchema,
250
251
  OrgUnitResponseSchema,
251
252
  OrgUnitTreeResponseSchema,
252
253
  MissingAtNextLevelSchema,
@@ -276,6 +277,7 @@ export type {
276
277
  OrgUnitRelationship,
277
278
  OrgLevelConfig,
278
279
  OrgLevelIcon,
280
+ OrgOwnerIcon,
279
281
  OrgUnitResponse,
280
282
  OrgUnitTreeResponse,
281
283
  MissingAtNextLevel,
@@ -158,6 +158,19 @@ export type WorkspaceAccessResponse = z.infer<
158
158
  // PATCH /api/workspace/name (returns WorkspaceOverview)
159
159
  // ---------------------------------------------------------------------------
160
160
 
161
+ /**
162
+ * Icon options for the `owner` org-chart role (ADR-CONT-070). Selected
163
+ * alongside the owner title in the Organization structure editor; `crown` is
164
+ * the default. Presentation only — never an authorization input.
165
+ */
166
+ export const OrgOwnerIconSchema = z.enum([
167
+ "crown",
168
+ "crown-cross",
169
+ "person",
170
+ "person-simple-circle",
171
+ "medal-military",
172
+ ]);
173
+
161
174
  export const WorkspaceOverviewSchema = z.object({
162
175
  id: z.string(),
163
176
  name: z.string(),
@@ -173,11 +186,19 @@ export const WorkspaceOverviewSchema = z.object({
173
186
  * section heading renders. Presentation only — never an authorization input.
174
187
  */
175
188
  ownerTitle: z.string(),
189
+ /**
190
+ * Org-configured icon for the `owner` org-chart role (ADR-CONT-070).
191
+ * Server-resolved: `orgs.owner_icon` when set, otherwise the default
192
+ * "crown". Always present. Presentation only — never an authorization input.
193
+ */
194
+ ownerIcon: OrgOwnerIconSchema,
176
195
  createdAt: z.string(),
177
196
  memberCount: z.number(),
178
197
  claimable: z.boolean(),
179
198
  });
180
199
 
200
+ export type OrgOwnerIcon = z.infer<typeof OrgOwnerIconSchema>;
201
+
181
202
  export type WorkspaceOverview = z.infer<typeof WorkspaceOverviewSchema>;
182
203
 
183
204
  // ---------------------------------------------------------------------------
package/src/org/types.ts CHANGED
@@ -78,6 +78,17 @@ export interface WorkspaceOverview {
78
78
  * Mirror of `WorkspaceOverviewSchema.ownerTitle` — keep in lockstep.
79
79
  */
80
80
  ownerTitle: string;
81
+ /**
82
+ * Org-configured icon for the `owner` org-chart role (ADR-CONT-070).
83
+ * Server-resolved (`orgs.owner_icon` else "crown"). Mirror of
84
+ * `WorkspaceOverviewSchema.ownerIcon` / `OrgOwnerIconSchema` — keep in lockstep.
85
+ */
86
+ ownerIcon:
87
+ | "crown"
88
+ | "crown-cross"
89
+ | "person"
90
+ | "person-simple-circle"
91
+ | "medal-military";
81
92
  createdAt: string;
82
93
  memberCount: number;
83
94
  claimable: boolean;