@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.
Files changed (39) hide show
  1. package/dist/{cvcEntry-0BIB9sen.d.cts → cvcEntry-ctHTp2df.d.cts} +36 -36
  2. package/dist/{cvcEntry-0BIB9sen.d.ts → cvcEntry-ctHTp2df.d.ts} +36 -36
  3. package/dist/cvcs/index.cjs +184 -40
  4. package/dist/cvcs/index.cjs.map +1 -1
  5. package/dist/cvcs/index.d.cts +191 -41
  6. package/dist/cvcs/index.d.ts +191 -41
  7. package/dist/cvcs/index.js +184 -40
  8. package/dist/cvcs/index.js.map +1 -1
  9. package/dist/enums/index.cjs +3 -1
  10. package/dist/enums/index.cjs.map +1 -1
  11. package/dist/enums/index.d.cts +8 -6
  12. package/dist/enums/index.d.ts +8 -6
  13. package/dist/enums/index.js +3 -1
  14. package/dist/enums/index.js.map +1 -1
  15. package/dist/{index-CDoqrfc1.d.ts → index-4DiJrn7y.d.ts} +1 -1
  16. package/dist/{index-Zu_mOJRn.d.cts → index-qreOzXYS.d.cts} +1 -1
  17. package/dist/index.cjs +187 -41
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +2 -2
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +187 -41
  22. package/dist/index.js.map +1 -1
  23. package/dist/models/index.d.cts +2 -2
  24. package/dist/models/index.d.ts +2 -2
  25. package/dist/schemas/index.d.cts +11 -11
  26. package/dist/schemas/index.d.ts +11 -11
  27. package/package.json +27 -26
  28. package/src/__tests__/__snapshots__/cvc-sot.snap +5 -5
  29. package/src/__tests__/core-functions-canon.test.ts +53 -0
  30. package/src/__tests__/core-information-scope-invariant.test.ts +298 -19
  31. package/src/__tests__/cvc-sot-snapshot.test.ts +19 -12
  32. package/src/__tests__/cvc-status-parser.test.ts +1 -1
  33. package/src/__tests__/cvc-structural.test.ts +3 -3
  34. package/src/__tests__/location-type-routing-invariant.test.ts +1 -1
  35. package/src/cvcs/{coreFunctions.v1.0.0.json → coreFunctions.v1.1.0.json} +11 -2
  36. package/src/cvcs/{coreInformationScope.v1.0.0.json → coreInformationScope.v1.1.0.json} +113 -22
  37. package/src/cvcs/index.ts +3 -3
  38. package/src/cvcs/{roiScope.v1.0.0.json → roiScope.v1.2.0.json} +51 -7
  39. package/src/generated/cvc-enums.ts +8 -6
@@ -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: 77 functions 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).
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.0.0 · Entries: 81
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 + 56 authorization-grain UNITS. Categories are level 1 and NOT selectable; units are level 2 and are what an ROI or a share authorizes. Distinct from the sibling `roi_scope` domain, which is the FLAT item vocabulary and deliberately omits the category axis — roi_scope's 27 substantive keys are a strict SUBSET of these 56 units, with no renames, so adoption is additive and no stored ROI changes meaning).
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.0.0 · Entries: 72
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; the 15 ROI scope ITEMS an ROI authorizes for sharing, sourced from PAVE `@pave/domain` ROI_SCOPE_KEYS. The item axis only — named bundles over these items are ROI_SCOPE_PRESET_NAMES. The prototype's 27-item HTI_SHARE_SCOPE_GROUPS superset holds +12 health-accommodation / immigration-legal items that are the documented extension set).
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.1.0 · Entries: 31
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";
@@ -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: 77 functions 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).
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.0.0 · Entries: 81
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 + 56 authorization-grain UNITS. Categories are level 1 and NOT selectable; units are level 2 and are what an ROI or a share authorizes. Distinct from the sibling `roi_scope` domain, which is the FLAT item vocabulary and deliberately omits the category axis — roi_scope's 27 substantive keys are a strict SUBSET of these 56 units, with no renames, so adoption is additive and no stored ROI changes meaning).
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.0.0 · Entries: 72
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; the 15 ROI scope ITEMS an ROI authorizes for sharing, sourced from PAVE `@pave/domain` ROI_SCOPE_KEYS. The item axis only — named bundles over these items are ROI_SCOPE_PRESET_NAMES. The prototype's 27-item HTI_SHARE_SCOPE_GROUPS superset holds +12 health-accommodation / immigration-legal items that are the documented extension set).
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.1.0 · Entries: 31
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";
@@ -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",