@company-semantics/contracts 1.24.2 → 1.25.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": "1.24.2",
3
+ "version": "1.25.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 = '39a6b1630dd2' as const;
3
- export const SPEC_HASH_FULL = '39a6b1630dd2912df45199a117d6046f6fc84c911294497ad3e0b6b3a0066a8b' as const;
2
+ export const SPEC_HASH = '3b3621a12672' as const;
3
+ export const SPEC_HASH_FULL = '3b3621a12672d03e48dad9007c700d26cadac5e1835ca7b6469ffd59366faa8e' as const;
@@ -2542,6 +2542,7 @@ export interface components {
2542
2542
  id: string;
2543
2543
  name: string;
2544
2544
  email: string;
2545
+ jobTitle: string | null;
2545
2546
  /** @enum {string} */
2546
2547
  role: "owner" | "admin" | "member" | "auditor";
2547
2548
  roleNames: string[];
@@ -2730,6 +2731,7 @@ export interface components {
2730
2731
  id: string;
2731
2732
  name: string;
2732
2733
  email: string;
2734
+ jobTitle: string | null;
2733
2735
  /** @enum {string} */
2734
2736
  role: "owner" | "admin" | "member" | "auditor";
2735
2737
  roleNames: string[];
@@ -73,6 +73,14 @@ export const CompanyMdDocResponseSchema = z.object({
73
73
  dependencies: z.array(CompanyMdDependencySchema),
74
74
  members: z.array(CompanyMdPersonSchema),
75
75
  extractionStatus: z.enum(['pending', 'extracting', 'complete', 'failed']),
76
+ /**
77
+ * Populated only when `extractionStatus === 'failed'`. Carries the
78
+ * diagnostic class/reason recorded by the worker on the latest
79
+ * extraction_runs row for this doc. `null` on the happy path and when
80
+ * no failed run is recorded.
81
+ */
82
+ errorClass: z.string().nullable().optional(),
83
+ errorReason: z.string().nullable().optional(),
76
84
  createdAt: z.string(),
77
85
  updatedAt: z.string(),
78
86
  });
@@ -28,6 +28,7 @@ const WorkspaceMemberSchema = z.object({
28
28
  id: z.string(),
29
29
  name: z.string(),
30
30
  email: z.string(),
31
+ jobTitle: z.string().nullable(),
31
32
  role: z.enum(['owner', 'admin', 'member', 'auditor']),
32
33
  roleNames: z.array(z.string()),
33
34
  joinedAt: z.string(),
package/src/org/types.ts CHANGED
@@ -118,6 +118,8 @@ export interface WorkspaceMember {
118
118
  id: string;
119
119
  name: string;
120
120
  email: string;
121
+ /** Free-text job title (`users.job_title`). Null when unset. */
122
+ jobTitle: string | null;
121
123
  /** Display role — derived collapse of RBAC into {owner,admin,member,auditor}. */
122
124
  role: WorkspaceRole;
123
125
  /** Raw RBAC role names (e.g. 'org_owner', 'org_admin', 'auditor'). Superset of `role`. */