@company-semantics/contracts 6.5.0 → 6.6.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": "6.5.0",
3
+ "version": "6.6.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -826,6 +826,14 @@ export const OwnerAuthoritySchema = z.object({
826
826
  mutability: AuthorityMutabilitySchema,
827
827
  derivedFromUnitId: z.string().uuid(),
828
828
  derivedFromUnitName: z.string().min(1).optional(),
829
+ /**
830
+ * True when this authority derives from the org ROOT unit — i.e. the holder
831
+ * is a CEO (a structural leader of the org root, observed locally on the root
832
+ * or as inherited authority on a descendant). Lets consumers classify CEO
833
+ * without a separate org-tree lookup, the same way `mechanism === 'rbac'`
834
+ * identifies an org admin. Omitted (falsy) for non-root derivations.
835
+ */
836
+ derivedFromRoot: z.boolean().optional(),
829
837
  derivedFromUserId: z.string().uuid().nullable().optional(),
830
838
  /**
831
839
  * Human-readable reason this authority applies, built at serialize time from