@htilabs/platform-common-models 0.15.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 (37) hide show
  1. package/dist/cvcs/index.cjs +68 -15
  2. package/dist/cvcs/index.cjs.map +1 -1
  3. package/dist/cvcs/index.d.cts +76 -20
  4. package/dist/cvcs/index.d.ts +76 -20
  5. package/dist/cvcs/index.js +68 -15
  6. package/dist/cvcs/index.js.map +1 -1
  7. package/dist/enums/index.cjs +2 -1
  8. package/dist/enums/index.cjs.map +1 -1
  9. package/dist/enums/index.d.cts +5 -4
  10. package/dist/enums/index.d.ts +5 -4
  11. package/dist/enums/index.js +2 -1
  12. package/dist/enums/index.js.map +1 -1
  13. package/dist/{index-C0J3f169.d.ts → index-4DiJrn7y.d.ts} +1 -1
  14. package/dist/{index-EPjPjR0z.d.cts → index-qreOzXYS.d.cts} +1 -1
  15. package/dist/index.cjs +70 -16
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +2 -2
  18. package/dist/index.d.ts +2 -2
  19. package/dist/index.js +70 -16
  20. package/dist/index.js.map +1 -1
  21. package/dist/models/index.d.cts +2 -2
  22. package/dist/models/index.d.ts +2 -2
  23. package/dist/schemas/index.d.cts +25 -25
  24. package/dist/schemas/index.d.ts +25 -25
  25. package/package.json +1 -1
  26. package/src/__tests__/__snapshots__/cvc-sot.snap +3 -3
  27. package/src/__tests__/core-functions-canon.test.ts +53 -0
  28. package/src/__tests__/core-information-scope-invariant.test.ts +94 -4
  29. package/src/__tests__/cvc-sot-snapshot.test.ts +8 -5
  30. package/src/__tests__/cvc-status-parser.test.ts +1 -1
  31. package/src/__tests__/cvc-structural.test.ts +2 -2
  32. package/src/cvcs/{coreFunctions.v1.0.0.json → coreFunctions.v1.1.0.json} +11 -2
  33. package/src/cvcs/index.ts +2 -2
  34. package/src/cvcs/{roiScope.v1.0.0.json → roiScope.v1.2.0.json} +51 -7
  35. package/src/generated/cvc-enums.ts +5 -4
  36. package/dist/{cvcEntry-DaDrEuTa.d.cts → cvcEntry-ctHTp2df.d.cts} +8 -8
  37. package/dist/{cvcEntry-DaDrEuTa.d.ts → cvcEntry-ctHTp2df.d.ts} +8 -8
@@ -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
  /**
@@ -3884,9 +3885,9 @@ declare const CoreInformationScopeKeys: {
3884
3885
  };
3885
3886
  type CoreInformationScopeKey = keyof typeof CoreInformationScopeKeys;
3886
3887
  /**
3887
- * 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).
3888
3889
  *
3889
- * Domain: `roi_scope` · Version: 1.1.0 · Entries: 31
3890
+ * Domain: `roi_scope` · Version: 1.2.0 · Entries: 31
3890
3891
  */
3891
3892
  declare const RoiScopeKeys: {
3892
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
  /**
@@ -3884,9 +3885,9 @@ declare const CoreInformationScopeKeys: {
3884
3885
  };
3885
3886
  type CoreInformationScopeKey = keyof typeof CoreInformationScopeKeys;
3886
3887
  /**
3887
- * 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).
3888
3889
  *
3889
- * Domain: `roi_scope` · Version: 1.1.0 · Entries: 31
3890
+ * Domain: `roi_scope` · Version: 1.2.0 · Entries: 31
3890
3891
  */
3891
3892
  declare const RoiScopeKeys: {
3892
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",