@htilabs/platform-common-models 0.54.0 → 0.55.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/README.md +48 -0
- package/dist/authz/index.cjs.map +1 -1
- package/dist/authz/index.d.cts +10 -8
- package/dist/authz/index.d.ts +10 -8
- package/dist/authz/index.js.map +1 -1
- package/dist/{index-XWSYon40.d.cts → index-Bj-s0nZy.d.cts} +1 -1
- package/dist/{index-Bh1zO_Vu.d.ts → index-DvAypMJV.d.ts} +1 -1
- package/dist/index.cjs +152 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +145 -2
- package/dist/index.js.map +1 -1
- package/dist/models/index.d.cts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/schemas/index.d.cts +25 -25
- package/dist/schemas/index.d.ts +25 -25
- package/dist/sharing-ceiling/index.cjs +152 -2
- package/dist/sharing-ceiling/index.cjs.map +1 -1
- package/dist/sharing-ceiling/index.d.cts +214 -2
- package/dist/sharing-ceiling/index.d.ts +214 -2
- package/dist/sharing-ceiling/index.js +145 -2
- package/dist/sharing-ceiling/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/core-function-default-bounds.test.ts +2 -2
- package/src/authz/functionDoor.ts +4 -4
- package/src/authz/resolveEffectiveFunctions.ts +6 -4
- package/src/sharingCeiling/__tests__/fireShareEvent.test.ts +437 -0
- package/src/sharingCeiling/fireShareEvent.ts +352 -0
- package/src/sharingCeiling/index.ts +4 -0
- package/src/sharingCeiling/resolve.ts +31 -5
- package/dist/{cvcEntry-D787utvP.d.cts → cvcEntry-BLeRivoF.d.cts} +8 -8
- package/dist/{cvcEntry-D787utvP.d.ts → cvcEntry-BLeRivoF.d.ts} +8 -8
package/dist/authz/index.d.cts
CHANGED
|
@@ -52,10 +52,12 @@ export { D as DEFAULT_BOUND_STATE, a as DEFAULT_BOUND_STATE_DISPLAY, b as DEFAUL
|
|
|
52
52
|
* `platform/lib/utils/policyResolver.js:58-72`; prototype `:625` "agency
|
|
53
53
|
* cannot disable"). NEVER at Tier 1 / Tier 2 is immune to a team lift —
|
|
54
54
|
* a Tier-1 ALWAYS / NEVER also ignores the agency layer
|
|
55
|
-
* (`policyResolver.js:46-48`).
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
55
|
+
* (`policyResolver.js:46-48`). The prototypes now behave the same way:
|
|
56
|
+
* platform-prototype `authzResolve` since #492 (2026-11-03), and the
|
|
57
|
+
* records monolith `shareFunctionAccess` plus the LEADS app
|
|
58
|
+
* `resolveEffectiveAccess` since prototype #1050 (2026-11-09). Before
|
|
59
|
+
* those ships the prototypes still ran the team check for `required`;
|
|
60
|
+
* this resolver encoded the ruling first.
|
|
59
61
|
* 4. The team layer is RESTRICT-ONLY (`:626-628` "teams are workflow
|
|
60
62
|
* containers, never authority"; editor log lines `:1236` / `:4490` "it never
|
|
61
63
|
* grants"; UDD Team object, Notion 3ec1ef14abcd814385e4c4e84e071178: "If a
|
|
@@ -434,10 +436,10 @@ declare function codebookDefaultBound(functionCode: string, roleCode: string): D
|
|
|
434
436
|
* - a seat with no role code that resolves (the prototype fails it open).
|
|
435
437
|
*
|
|
436
438
|
* Required (ALWAYS after the platform and account layers) is immune to the
|
|
437
|
-
* team (resolver rule 3), so it never gets the team sentence. The
|
|
438
|
-
* prototype
|
|
439
|
-
*
|
|
440
|
-
*
|
|
439
|
+
* team (resolver rule 3), so it never gets the team sentence. The prototypes
|
|
440
|
+
* match: platform-prototype `authzResolve` since #492 (2026-11-03), and the
|
|
441
|
+
* records monolith `shareFunctionAccess` plus the LEADS app
|
|
442
|
+
* `resolveEffectiveAccess` since prototype #1050 (2026-11-09).
|
|
441
443
|
*
|
|
442
444
|
* WHICH LAYER REFUSED. `explainFunctionRefusal` (the resolver's own cascade)
|
|
443
445
|
* answers it, over:
|
package/dist/authz/index.d.ts
CHANGED
|
@@ -52,10 +52,12 @@ export { D as DEFAULT_BOUND_STATE, a as DEFAULT_BOUND_STATE_DISPLAY, b as DEFAUL
|
|
|
52
52
|
* `platform/lib/utils/policyResolver.js:58-72`; prototype `:625` "agency
|
|
53
53
|
* cannot disable"). NEVER at Tier 1 / Tier 2 is immune to a team lift —
|
|
54
54
|
* a Tier-1 ALWAYS / NEVER also ignores the agency layer
|
|
55
|
-
* (`policyResolver.js:46-48`).
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
55
|
+
* (`policyResolver.js:46-48`). The prototypes now behave the same way:
|
|
56
|
+
* platform-prototype `authzResolve` since #492 (2026-11-03), and the
|
|
57
|
+
* records monolith `shareFunctionAccess` plus the LEADS app
|
|
58
|
+
* `resolveEffectiveAccess` since prototype #1050 (2026-11-09). Before
|
|
59
|
+
* those ships the prototypes still ran the team check for `required`;
|
|
60
|
+
* this resolver encoded the ruling first.
|
|
59
61
|
* 4. The team layer is RESTRICT-ONLY (`:626-628` "teams are workflow
|
|
60
62
|
* containers, never authority"; editor log lines `:1236` / `:4490` "it never
|
|
61
63
|
* grants"; UDD Team object, Notion 3ec1ef14abcd814385e4c4e84e071178: "If a
|
|
@@ -434,10 +436,10 @@ declare function codebookDefaultBound(functionCode: string, roleCode: string): D
|
|
|
434
436
|
* - a seat with no role code that resolves (the prototype fails it open).
|
|
435
437
|
*
|
|
436
438
|
* Required (ALWAYS after the platform and account layers) is immune to the
|
|
437
|
-
* team (resolver rule 3), so it never gets the team sentence. The
|
|
438
|
-
* prototype
|
|
439
|
-
*
|
|
440
|
-
*
|
|
439
|
+
* team (resolver rule 3), so it never gets the team sentence. The prototypes
|
|
440
|
+
* match: platform-prototype `authzResolve` since #492 (2026-11-03), and the
|
|
441
|
+
* records monolith `shareFunctionAccess` plus the LEADS app
|
|
442
|
+
* `resolveEffectiveAccess` since prototype #1050 (2026-11-09).
|
|
441
443
|
*
|
|
442
444
|
* WHICH LAYER REFUSED. `explainFunctionRefusal` (the resolver's own cascade)
|
|
443
445
|
* answers it, over:
|