@company-semantics/contracts 20.2.0 → 21.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": "20.2.0",
3
+ "version": "21.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 = '325ec2565e49' as const;
3
- export const SPEC_HASH_FULL = '325ec2565e49e75abbf3b93a918e328dbe47a74586212e390cd0dff381a9913f' as const;
2
+ export const SPEC_HASH = '04f6a4a8fe16' as const;
3
+ export const SPEC_HASH_FULL = '04f6a4a8fe169119fda699f1854d409df278ac5dd7ab16f1d5affff6cd133e47' as const;
@@ -736,6 +736,23 @@ export interface paths {
736
736
  patch: operations["setMemberManager"];
737
737
  trace?: never;
738
738
  };
739
+ "/api/reporting/bulk-reparent": {
740
+ parameters: {
741
+ query?: never;
742
+ header?: never;
743
+ path?: never;
744
+ cookie?: never;
745
+ };
746
+ get?: never;
747
+ put?: never;
748
+ /** Atomically re-point many members' solid manager to one new manager */
749
+ post: operations["bulkReparentReporting"];
750
+ delete?: never;
751
+ options?: never;
752
+ head?: never;
753
+ patch?: never;
754
+ trace?: never;
755
+ };
739
756
  "/api/chat/interactive-tasks/submit": {
740
757
  parameters: {
741
758
  query?: never;
@@ -3667,6 +3684,19 @@ export interface components {
3667
3684
  /** Format: uuid */
3668
3685
  managerUserId: string;
3669
3686
  };
3687
+ BulkReparentReportingResponse: {
3688
+ /** @constant */
3689
+ success: true;
3690
+ movedCount: number;
3691
+ /** Format: uuid */
3692
+ toManagerId: string;
3693
+ };
3694
+ BulkReparentReportingRequest: {
3695
+ memberIds: string[];
3696
+ /** Format: uuid */
3697
+ toManagerId: string;
3698
+ idempotencyKey: string;
3699
+ };
3670
3700
  SubmitInteractiveTaskResponse: {
3671
3701
  executionId: string;
3672
3702
  /** @enum {string} */
@@ -6575,6 +6605,30 @@ export interface operations {
6575
6605
  };
6576
6606
  };
6577
6607
  };
6608
+ bulkReparentReporting: {
6609
+ parameters: {
6610
+ query?: never;
6611
+ header?: never;
6612
+ path?: never;
6613
+ cookie?: never;
6614
+ };
6615
+ requestBody: {
6616
+ content: {
6617
+ "application/json": components["schemas"]["BulkReparentReportingRequest"];
6618
+ };
6619
+ };
6620
+ responses: {
6621
+ /** @description Cluster reorg applied atomically */
6622
+ 200: {
6623
+ headers: {
6624
+ [name: string]: unknown;
6625
+ };
6626
+ content: {
6627
+ "application/json": components["schemas"]["BulkReparentReportingResponse"];
6628
+ };
6629
+ };
6630
+ };
6631
+ };
6578
6632
  submitInteractiveTask: {
6579
6633
  parameters: {
6580
6634
  query?: never;
@@ -115,6 +115,7 @@ export const openApiRoutes = {
115
115
  '/api/orgs/{orgId}/budget-config': ['GET', 'PUT'],
116
116
  '/api/orgs/{orgId}/level-config': ['GET', 'PUT'],
117
117
  '/api/rbac/roles': ['GET'],
118
+ '/api/reporting/bulk-reparent': ['POST'],
118
119
  '/api/scope/check': ['GET'],
119
120
  '/api/scope/check-batch': ['POST'],
120
121
  '/api/shared/{token}': ['GET'],
@@ -66,12 +66,6 @@ export type UserIdentity = {
66
66
  */
67
67
  nameSource: NameSource;
68
68
 
69
- /**
70
- * Free-text job title displayed in the people org chart and team views.
71
- * Optional; not authoritative for role/RBAC.
72
- */
73
- jobTitle?: string | null;
74
-
75
69
  /** When the identity was created */
76
70
  createdAt: ISODateString;
77
71
 
@@ -66,7 +66,7 @@ const WorkspaceMemberSchema = z.object({
66
66
  * display-only enrichment (see ADR-CONTRACTS-055).
67
67
  */
68
68
  avatarUrl: z.string().nullable().optional(),
69
- /** Free-text job title (`users.job_title`). Null when unset. */
69
+ /** The occupant's Position seat title (org-scoped). Null when the seat is untitled. */
70
70
  jobTitle: z.string().nullable(),
71
71
  /**
72
72
  * Display role — the member's highest org-chart standing, or `null` for a