@company-semantics/contracts 1.25.1 → 2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/org/schemas.ts +14 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "1.25.1",
3
+ "version": "2.0.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -652,7 +652,12 @@ export type OrgUsageResponse = z.infer<typeof OrgUsageResponseSchema>;
652
652
  // OrgUnit canonical model (ADR-BE-120)
653
653
  // ---------------------------------------------------------------------------
654
654
 
655
- export const OrgUnitClassificationSchema = z.enum(['execution_unit', 'org_container', 'custom']);
655
+ export const OrgUnitClassificationSchema = z.enum([
656
+ 'execution_unit',
657
+ 'org_container',
658
+ 'leadership',
659
+ 'custom',
660
+ ]);
656
661
 
657
662
  export const OrgUnitSyncModeSchema = z.enum([
658
663
  'manual_only',
@@ -671,7 +676,14 @@ export const OrgUnitRelationshipTypeSchema = z.enum([
671
676
 
672
677
  export const OrgUnitRelationshipRoleSchema = z.enum(['owner', 'participant', 'supporting']);
673
678
 
674
- export const OrgUnitMembershipRoleSchema = z.enum(['member', 'manager', 'owner']);
679
+ export const OrgUnitMembershipRoleSchema = z.enum([
680
+ 'member',
681
+ 'l1_unit_owner',
682
+ 'l2_unit_owner',
683
+ 'l3_unit_owner',
684
+ 'l4_unit_owner',
685
+ 'l5_unit_owner',
686
+ ]);
675
687
 
676
688
  export const OrgUnitMembershipStatusSchema = z.enum(['active', 'pending', 'removed']);
677
689