@htilabs/platform-common-models 0.14.0 → 0.17.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/dist/{cvcEntry-0BIB9sen.d.cts → cvcEntry-ctHTp2df.d.cts} +36 -36
- package/dist/{cvcEntry-0BIB9sen.d.ts → cvcEntry-ctHTp2df.d.ts} +36 -36
- package/dist/cvcs/index.cjs +184 -40
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +191 -41
- package/dist/cvcs/index.d.ts +191 -41
- package/dist/cvcs/index.js +184 -40
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +3 -1
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +8 -6
- package/dist/enums/index.d.ts +8 -6
- package/dist/enums/index.js +3 -1
- package/dist/enums/index.js.map +1 -1
- package/dist/{index-CDoqrfc1.d.ts → index-4DiJrn7y.d.ts} +1 -1
- package/dist/{index-Zu_mOJRn.d.cts → index-qreOzXYS.d.cts} +1 -1
- package/dist/index.cjs +187 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +187 -41
- 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 +11 -11
- package/dist/schemas/index.d.ts +11 -11
- package/package.json +27 -26
- package/src/__tests__/__snapshots__/cvc-sot.snap +5 -5
- package/src/__tests__/core-functions-canon.test.ts +53 -0
- package/src/__tests__/core-information-scope-invariant.test.ts +298 -19
- package/src/__tests__/cvc-sot-snapshot.test.ts +19 -12
- package/src/__tests__/cvc-status-parser.test.ts +1 -1
- package/src/__tests__/cvc-structural.test.ts +3 -3
- package/src/__tests__/location-type-routing-invariant.test.ts +1 -1
- package/src/cvcs/{coreFunctions.v1.0.0.json → coreFunctions.v1.1.0.json} +11 -2
- package/src/cvcs/{coreInformationScope.v1.0.0.json → coreInformationScope.v1.1.0.json} +113 -22
- package/src/cvcs/index.ts +3 -3
- package/src/cvcs/{roiScope.v1.0.0.json → roiScope.v1.2.0.json} +51 -7
- package/src/generated/cvc-enums.ts +8 -6
package/dist/enums/index.d.cts
CHANGED
|
@@ -3693,9 +3693,9 @@ declare const RiskCategoryKeys: {
|
|
|
3693
3693
|
};
|
|
3694
3694
|
type RiskCategoryKey = keyof typeof RiskCategoryKeys;
|
|
3695
3695
|
/**
|
|
3696
|
-
* Key → positional code map for the `core_functions` CVC domain (CANONICAL Notion CVC-133 `core - functions`, verified v1.0 — the Canonical Authorization Model function registry:
|
|
3696
|
+
* Key → positional code map for the `core_functions` CVC domain (CANONICAL Notion CVC-133 `core - functions`, verified v1.0 — the Canonical Authorization Model function registry: 78 functions (the verified 77 + `note_open_departed_author`, 133-078, appended 2026-10-05) the roles → functions → gates/tiers graph is built over. NOT provisional numbering. Per-entry lifecycle Status (v1 / future / not-started), Platform Relevance, user/admin relevance and Category are carried in each entry's definition, since the CVC entry schema has no fields for them).
|
|
3697
3697
|
*
|
|
3698
|
-
* Domain: `core_functions` · Version: 1.
|
|
3698
|
+
* Domain: `core_functions` · Version: 1.1.0 · Entries: 82
|
|
3699
3699
|
*/
|
|
3700
3700
|
declare const CoreFunctionsKeys: {
|
|
3701
3701
|
readonly missingness_root: "133-000-000-000-000-000-000";
|
|
@@ -3779,6 +3779,7 @@ declare const CoreFunctionsKeys: {
|
|
|
3779
3779
|
readonly training_content_upload: "133-075-000-000-000-000-000";
|
|
3780
3780
|
readonly training_gate_manage: "133-076-000-000-000-000-000";
|
|
3781
3781
|
readonly usr_manage: "133-077-000-000-000-000-000";
|
|
3782
|
+
readonly note_open_departed_author: "133-078-000-000-000-000-000";
|
|
3782
3783
|
};
|
|
3783
3784
|
type CoreFunctionsKey = keyof typeof CoreFunctionsKeys;
|
|
3784
3785
|
/**
|
|
@@ -3803,9 +3804,9 @@ declare const NeedsAssessmentChangeTypeKeys: {
|
|
|
3803
3804
|
};
|
|
3804
3805
|
type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;
|
|
3805
3806
|
/**
|
|
3806
|
-
* Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES +
|
|
3807
|
+
* Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES + 55 authorization-grain UNITS + 2 RETIRED tombstones. Categories are level 1 and NOT selectable; units are level 2 and are what an ROI or a share authorizes. Tombstones (`screen_notes`, `background`; retired 2026-10-05) keep their codes so a stored value resolves, but are `selectable: false` + `retired: true` and include nothing — offer only selectable children. Distinct from the sibling `roi_scope` domain, which is the FLAT item vocabulary and deliberately omits the category axis — every one of roi_scope's 27 substantive keys resolves here with no renames (25 live units, 2 tombstones), so a stored ROI never widens).
|
|
3807
3808
|
*
|
|
3808
|
-
* Domain: `core_information_scope` · Version: 1.
|
|
3809
|
+
* Domain: `core_information_scope` · Version: 1.1.0 · Entries: 73
|
|
3809
3810
|
*/
|
|
3810
3811
|
declare const CoreInformationScopeKeys: {
|
|
3811
3812
|
readonly missingness_root: "236-000-000-000-000-000-000";
|
|
@@ -3849,6 +3850,7 @@ declare const CoreInformationScopeKeys: {
|
|
|
3849
3850
|
readonly screen_notes: "236-005-001-000-000-000-000";
|
|
3850
3851
|
readonly case_notes: "236-005-002-000-000-000-000";
|
|
3851
3852
|
readonly background: "236-005-003-000-000-000-000";
|
|
3853
|
+
readonly session_summary: "236-005-004-000-000-000-000";
|
|
3852
3854
|
readonly health_accommodation: "236-006-000-000-000-000-000";
|
|
3853
3855
|
readonly accommodation_needs: "236-006-001-000-000-000-000";
|
|
3854
3856
|
readonly disability_subtypes: "236-006-002-000-000-000-000";
|
|
@@ -3883,9 +3885,9 @@ declare const CoreInformationScopeKeys: {
|
|
|
3883
3885
|
};
|
|
3884
3886
|
type CoreInformationScopeKey = keyof typeof CoreInformationScopeKeys;
|
|
3885
3887
|
/**
|
|
3886
|
-
* Key → positional code map for the `roi_scope` CVC domain (DRAFT-TEMPORARY;
|
|
3888
|
+
* Key → positional code map for the `roi_scope` CVC domain (DRAFT-TEMPORARY; LEGACY flat item vocabulary, superseded for new work by `core_information_scope` (CVC-236). 27 ROI scope ITEMS: 25 live + 2 RETIRED tombstones (`screen_notes`, `background`; retired 2026-10-05, matching CVC-236 v1.1.0) that keep their codes so a stored value resolves, but are `selectable: false` + `retired: true` and include nothing — never offer them. The item axis only — named bundles over these items are ROI_SCOPE_PRESET_NAMES).
|
|
3887
3889
|
*
|
|
3888
|
-
* Domain: `roi_scope` · Version: 1.
|
|
3890
|
+
* Domain: `roi_scope` · Version: 1.2.0 · Entries: 31
|
|
3889
3891
|
*/
|
|
3890
3892
|
declare const RoiScopeKeys: {
|
|
3891
3893
|
readonly missingness_root: "983-000-000-000-000-000-000";
|
package/dist/enums/index.d.ts
CHANGED
|
@@ -3693,9 +3693,9 @@ declare const RiskCategoryKeys: {
|
|
|
3693
3693
|
};
|
|
3694
3694
|
type RiskCategoryKey = keyof typeof RiskCategoryKeys;
|
|
3695
3695
|
/**
|
|
3696
|
-
* Key → positional code map for the `core_functions` CVC domain (CANONICAL Notion CVC-133 `core - functions`, verified v1.0 — the Canonical Authorization Model function registry:
|
|
3696
|
+
* Key → positional code map for the `core_functions` CVC domain (CANONICAL Notion CVC-133 `core - functions`, verified v1.0 — the Canonical Authorization Model function registry: 78 functions (the verified 77 + `note_open_departed_author`, 133-078, appended 2026-10-05) the roles → functions → gates/tiers graph is built over. NOT provisional numbering. Per-entry lifecycle Status (v1 / future / not-started), Platform Relevance, user/admin relevance and Category are carried in each entry's definition, since the CVC entry schema has no fields for them).
|
|
3697
3697
|
*
|
|
3698
|
-
* Domain: `core_functions` · Version: 1.
|
|
3698
|
+
* Domain: `core_functions` · Version: 1.1.0 · Entries: 82
|
|
3699
3699
|
*/
|
|
3700
3700
|
declare const CoreFunctionsKeys: {
|
|
3701
3701
|
readonly missingness_root: "133-000-000-000-000-000-000";
|
|
@@ -3779,6 +3779,7 @@ declare const CoreFunctionsKeys: {
|
|
|
3779
3779
|
readonly training_content_upload: "133-075-000-000-000-000-000";
|
|
3780
3780
|
readonly training_gate_manage: "133-076-000-000-000-000-000";
|
|
3781
3781
|
readonly usr_manage: "133-077-000-000-000-000-000";
|
|
3782
|
+
readonly note_open_departed_author: "133-078-000-000-000-000-000";
|
|
3782
3783
|
};
|
|
3783
3784
|
type CoreFunctionsKey = keyof typeof CoreFunctionsKeys;
|
|
3784
3785
|
/**
|
|
@@ -3803,9 +3804,9 @@ declare const NeedsAssessmentChangeTypeKeys: {
|
|
|
3803
3804
|
};
|
|
3804
3805
|
type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;
|
|
3805
3806
|
/**
|
|
3806
|
-
* Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES +
|
|
3807
|
+
* Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES + 55 authorization-grain UNITS + 2 RETIRED tombstones. Categories are level 1 and NOT selectable; units are level 2 and are what an ROI or a share authorizes. Tombstones (`screen_notes`, `background`; retired 2026-10-05) keep their codes so a stored value resolves, but are `selectable: false` + `retired: true` and include nothing — offer only selectable children. Distinct from the sibling `roi_scope` domain, which is the FLAT item vocabulary and deliberately omits the category axis — every one of roi_scope's 27 substantive keys resolves here with no renames (25 live units, 2 tombstones), so a stored ROI never widens).
|
|
3807
3808
|
*
|
|
3808
|
-
* Domain: `core_information_scope` · Version: 1.
|
|
3809
|
+
* Domain: `core_information_scope` · Version: 1.1.0 · Entries: 73
|
|
3809
3810
|
*/
|
|
3810
3811
|
declare const CoreInformationScopeKeys: {
|
|
3811
3812
|
readonly missingness_root: "236-000-000-000-000-000-000";
|
|
@@ -3849,6 +3850,7 @@ declare const CoreInformationScopeKeys: {
|
|
|
3849
3850
|
readonly screen_notes: "236-005-001-000-000-000-000";
|
|
3850
3851
|
readonly case_notes: "236-005-002-000-000-000-000";
|
|
3851
3852
|
readonly background: "236-005-003-000-000-000-000";
|
|
3853
|
+
readonly session_summary: "236-005-004-000-000-000-000";
|
|
3852
3854
|
readonly health_accommodation: "236-006-000-000-000-000-000";
|
|
3853
3855
|
readonly accommodation_needs: "236-006-001-000-000-000-000";
|
|
3854
3856
|
readonly disability_subtypes: "236-006-002-000-000-000-000";
|
|
@@ -3883,9 +3885,9 @@ declare const CoreInformationScopeKeys: {
|
|
|
3883
3885
|
};
|
|
3884
3886
|
type CoreInformationScopeKey = keyof typeof CoreInformationScopeKeys;
|
|
3885
3887
|
/**
|
|
3886
|
-
* Key → positional code map for the `roi_scope` CVC domain (DRAFT-TEMPORARY;
|
|
3888
|
+
* Key → positional code map for the `roi_scope` CVC domain (DRAFT-TEMPORARY; LEGACY flat item vocabulary, superseded for new work by `core_information_scope` (CVC-236). 27 ROI scope ITEMS: 25 live + 2 RETIRED tombstones (`screen_notes`, `background`; retired 2026-10-05, matching CVC-236 v1.1.0) that keep their codes so a stored value resolves, but are `selectable: false` + `retired: true` and include nothing — never offer them. The item axis only — named bundles over these items are ROI_SCOPE_PRESET_NAMES).
|
|
3887
3889
|
*
|
|
3888
|
-
* Domain: `roi_scope` · Version: 1.
|
|
3890
|
+
* Domain: `roi_scope` · Version: 1.2.0 · Entries: 31
|
|
3889
3891
|
*/
|
|
3890
3892
|
declare const RoiScopeKeys: {
|
|
3891
3893
|
readonly missingness_root: "983-000-000-000-000-000-000";
|
package/dist/enums/index.js
CHANGED
|
@@ -2888,7 +2888,8 @@ var CoreFunctionsKeys = {
|
|
|
2888
2888
|
thread_share_send: "133-074-000-000-000-000-000",
|
|
2889
2889
|
training_content_upload: "133-075-000-000-000-000-000",
|
|
2890
2890
|
training_gate_manage: "133-076-000-000-000-000-000",
|
|
2891
|
-
usr_manage: "133-077-000-000-000-000-000"
|
|
2891
|
+
usr_manage: "133-077-000-000-000-000-000",
|
|
2892
|
+
note_open_departed_author: "133-078-000-000-000-000-000"
|
|
2892
2893
|
};
|
|
2893
2894
|
var NeedsAssessmentChangeTypeKeys = {
|
|
2894
2895
|
missingness_root: "982-000-000-000-000-000-000",
|
|
@@ -2947,6 +2948,7 @@ var CoreInformationScopeKeys = {
|
|
|
2947
2948
|
screen_notes: "236-005-001-000-000-000-000",
|
|
2948
2949
|
case_notes: "236-005-002-000-000-000-000",
|
|
2949
2950
|
background: "236-005-003-000-000-000-000",
|
|
2951
|
+
session_summary: "236-005-004-000-000-000-000",
|
|
2950
2952
|
health_accommodation: "236-006-000-000-000-000-000",
|
|
2951
2953
|
accommodation_needs: "236-006-001-000-000-000-000",
|
|
2952
2954
|
disability_subtypes: "236-006-002-000-000-000-000",
|