@company-semantics/contracts 0.128.0 → 0.129.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": "0.128.0",
3
+ "version": "0.129.1",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -89,7 +89,7 @@
89
89
  "guard:decisions-deprecation": "npx tsx scripts/ci/decisions-deprecation-guard.ts",
90
90
  "guard:decisions-deprecation:json": "npx tsx scripts/ci/decisions-deprecation-guard.ts --json",
91
91
  "guard:quick": "GUARD_DEPENDENCY_ROOT=../ tsx ../company-semantics-ci/run-guards.ts --config scripts/ci/guard-entries.ts --quick",
92
- "ci:local": "pnpm typecheck && pnpm lint:md && pnpm guard:test",
92
+ "ci:local": "pnpm typecheck && pnpm lint:md && pnpm guard:test && GUARD_DEPENDENCY_ROOT=../ pnpm guard",
93
93
  "guard": "GUARD_DEPENDENCY_ROOT=../ tsx ../company-semantics-ci/run-guards.ts --config scripts/ci/guard-entries.ts",
94
94
  "guard:test": "vitest run scripts/ci/__tests__",
95
95
  "release": "npx tsx scripts/release.ts",
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED — do not edit. Run pnpm generate:spec-hash to regenerate.
2
- export const SPEC_HASH = '1ea1ca93400b' as const;
3
- export const SPEC_HASH_FULL = '1ea1ca93400bac2762891fec5ba547b33787da342bf310b9399eab161f969654' as const;
2
+ export const SPEC_HASH = 'd7d0d2c97eb7' as const;
3
+ export const SPEC_HASH_FULL = 'd7d0d2c97eb78e5a64e7bc0a46dda3e3a97f4f07e30fa51762a5feecb34b9ff8' as const;
@@ -2786,6 +2786,19 @@ export interface components {
2786
2786
  name: string;
2787
2787
  slug: string;
2788
2788
  description: string | null;
2789
+ memberCount: number;
2790
+ /** @enum {string} */
2791
+ scope: "department" | "cross_department" | "org";
2792
+ department: {
2793
+ id: string;
2794
+ name: string;
2795
+ slug: string;
2796
+ } | null;
2797
+ homeDepartment: {
2798
+ id: string;
2799
+ name: string;
2800
+ slug: string;
2801
+ } | null;
2789
2802
  /** @enum {string} */
2790
2803
  syncMode: "manual_only" | "synced_readonly" | "synced_with_overrides";
2791
2804
  members: {
@@ -180,11 +180,7 @@ export const TeamListResponseSchema = z.object({
180
180
  });
181
181
 
182
182
  /** Response for GET /api/teams/:teamId */
183
- export const TeamResponseSchema = z.object({
184
- id: z.string(),
185
- name: z.string(),
186
- slug: z.string(),
187
- description: z.string().nullable(),
183
+ export const TeamResponseSchema = TeamSummarySchema.extend({
188
184
  syncMode: z.enum(['manual_only', 'synced_readonly', 'synced_with_overrides']),
189
185
  members: z.array(TeamMemberSchema),
190
186
  });
package/src/org/teams.ts CHANGED
@@ -47,6 +47,12 @@ export interface TeamMember {
47
47
  /**
48
48
  * Full team detail view including members.
49
49
  * Returned by GET /api/teams/:teamId.
50
+ *
51
+ * TODO: Potentially redundant with TeamResponse (z.infer<typeof TeamResponseSchema>)
52
+ * from src/content/schemas.ts now that TeamResponseSchema is derived from
53
+ * TeamSummarySchema.extend(). Follow-up cleanup: check consumers and consider
54
+ * collapsing to the schema-derived type. Not done in PRD-00458 to avoid
55
+ * scope creep into untracked consumers.
50
56
  */
51
57
  export interface TeamDetail extends Team {
52
58
  readonly members: ReadonlyArray<TeamMember>;