@company-semantics/contracts 2.11.0 → 2.12.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 +1 -3
- package/src/org/company-md.ts +16 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@company-semantics/contracts",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -81,8 +81,6 @@
|
|
|
81
81
|
"lint:md": "markdownlint-cli2 '**/*.md' '#node_modules'",
|
|
82
82
|
"lint:json": "node -e \"JSON.parse(require('fs').readFileSync('package.json'))\"",
|
|
83
83
|
"prepare": "husky",
|
|
84
|
-
"guard:decision": "npx tsx scripts/ci/decision-guard.ts",
|
|
85
|
-
"guard:decision:json": "npx tsx scripts/ci/decision-guard.ts --json",
|
|
86
84
|
"guard:export": "npx tsx scripts/ci/export-guard.ts",
|
|
87
85
|
"guard:export:json": "npx tsx scripts/ci/export-guard.ts --json",
|
|
88
86
|
"guard:vocabulary": "npx tsx scripts/ci/vocabulary-guard.ts",
|
package/src/org/company-md.ts
CHANGED
|
@@ -6,7 +6,22 @@
|
|
|
6
6
|
* @see PRD-00173 for design rationale
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Visibility band for a Company.md document — the canonical AUTH
|
|
11
|
+
* `entity_visibility` vocabulary (ADR-CONT-049, backend ADR-BE-178).
|
|
12
|
+
*
|
|
13
|
+
* - `private`: owner, co-owners, and explicit ACL grantees only.
|
|
14
|
+
* - `unit`: the doc's owning `org_unit` (members + delegated authorities).
|
|
15
|
+
* This is the default for tree-nav docs, so availability shrinks toward the
|
|
16
|
+
* root (the root doc's owning unit is leadership ⇒ CEO/leadership-only).
|
|
17
|
+
* - `org`: every member of the org (the former `public`).
|
|
18
|
+
*
|
|
19
|
+
* Widened from the legacy `'public' | 'private'` model: `public` is replaced by
|
|
20
|
+
* `org` and the intermediate `unit` band is added. Enforcement of the narrowed
|
|
21
|
+
* bands is the AUTH-005 evaluator; the backend tags docs with the correct band
|
|
22
|
+
* in AUTH-004.
|
|
23
|
+
*/
|
|
24
|
+
export type CompanyMdVisibility = "private" | "unit" | "org";
|
|
10
25
|
|
|
11
26
|
/**
|
|
12
27
|
* @deprecated Since 1.12.0. `CompanyMdDocLevel` is superseded by `CompanyMdDocKind` + `depth`.
|