@company-semantics/contracts 20.2.0 → 21.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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@company-semantics/contracts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"build": "tsc -b --noEmit",
|
|
83
83
|
"typecheck": "tsc -b --noEmit",
|
|
84
84
|
"typecheck:ci": "tsc -p scripts/ci/tsconfig.json",
|
|
85
|
-
"lint:md": "markdownlint-cli2 '**/*.md' '#node_modules'",
|
|
85
|
+
"lint:md": "markdownlint-cli2 '**/*.md' '#node_modules' '#.ralph/worktrees' '#.claude/worktrees'",
|
|
86
86
|
"format": "prettier --write src/",
|
|
87
87
|
"format:check": "prettier --check src/",
|
|
88
88
|
"lint:json": "node -e \"JSON.parse(require('fs').readFileSync('package.json'))\"",
|
|
@@ -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 = '04f6a4a8fe16' as const;
|
|
3
|
+
export const SPEC_HASH_FULL = '04f6a4a8fe169119fda699f1854d409df278ac5dd7ab16f1d5affff6cd133e47' as const;
|
package/src/api/generated.ts
CHANGED
|
@@ -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'],
|
package/src/identity/types.ts
CHANGED
|
@@ -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
|
|
|
@@ -30,6 +30,14 @@ export const HrConnectionStatusSchema = z
|
|
|
30
30
|
connected: z.boolean().meta({
|
|
31
31
|
description: "Whether an HR provider is currently connected.",
|
|
32
32
|
}),
|
|
33
|
+
connectionId: z
|
|
34
|
+
.string()
|
|
35
|
+
.nullable()
|
|
36
|
+
.meta({
|
|
37
|
+
description:
|
|
38
|
+
"Stable id of the active connection — the handle the app passes to " +
|
|
39
|
+
"`integration.disconnect`. Null when not connected.",
|
|
40
|
+
}),
|
|
33
41
|
employeeCount: z.number().int().nonnegative().nullable().meta({
|
|
34
42
|
description:
|
|
35
43
|
"Employees mirrored from the HR provider; null when never synced.",
|
package/src/org/schemas.ts
CHANGED
|
@@ -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
|
-
/**
|
|
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
|