@htilabs/platform-common-models 0.21.0 → 0.22.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 (40) hide show
  1. package/dist/cvcs/index.cjs +449 -50
  2. package/dist/cvcs/index.cjs.map +1 -1
  3. package/dist/cvcs/index.d.cts +491 -55
  4. package/dist/cvcs/index.d.ts +491 -55
  5. package/dist/cvcs/index.js +449 -50
  6. package/dist/cvcs/index.js.map +1 -1
  7. package/dist/enums/index.cjs +36 -1
  8. package/dist/enums/index.cjs.map +1 -1
  9. package/dist/enums/index.d.cts +37 -2
  10. package/dist/enums/index.d.ts +37 -2
  11. package/dist/enums/index.js +36 -1
  12. package/dist/enums/index.js.map +1 -1
  13. package/dist/index.cjs +589 -51
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +1 -1
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js +580 -51
  18. package/dist/index.js.map +1 -1
  19. package/dist/schemas/index.cjs +104 -0
  20. package/dist/schemas/index.cjs.map +1 -1
  21. package/dist/schemas/index.d.cts +240 -1
  22. package/dist/schemas/index.d.ts +240 -1
  23. package/dist/schemas/index.js +95 -0
  24. package/dist/schemas/index.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/__sot__/README.md +1 -0
  27. package/src/__sot__/coreFunctionFields.ts +121 -0
  28. package/src/__sot__/coreFunctions.pin.json +1546 -0
  29. package/src/__sot__/coreFunctions.published.json +233 -0
  30. package/src/__tests__/__snapshots__/cvc-sot.snap +2 -2
  31. package/src/__tests__/core-functions-canon.test.ts +308 -24
  32. package/src/__tests__/cvc-sot-snapshot.test.ts +7 -4
  33. package/src/__tests__/cvc-status-parser.test.ts +1 -1
  34. package/src/__tests__/cvc-structural.test.ts +1 -1
  35. package/src/__tests__/organization-program.test.ts +254 -0
  36. package/src/cvcs/{coreFunctions.v1.1.0.json → coreFunctions.v1.2.0.json} +446 -47
  37. package/src/cvcs/index.ts +1 -1
  38. package/src/generated/cvc-enums.ts +37 -2
  39. package/src/schemas/index.ts +18 -0
  40. package/src/schemas/organization-program.ts +297 -0
@@ -3694,9 +3694,9 @@ declare const RiskCategoryKeys: {
3694
3694
  };
3695
3695
  type RiskCategoryKey = keyof typeof RiskCategoryKeys;
3696
3696
  /**
3697
- * 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
+ * Key → positional code map for the `core_functions` CVC domain (CANONICAL Notion CVC-133 `core - functions`, Active v2.0 — the Canonical Authorization Model function registry; SOT v1.2.0 is GENERATED from the prototype repo's data/cvcs/core_functions.yaml by scripts/gen-core-functions.py: 113 functions — the 78 published by 1.0.0/1.1.0 at their codes plus 35 appended at 133-079 … 133-113 — the roles → functions → gates/tiers graph is built over. NOT provisional numbering. Per-entry lifecycle Status (v1 / not v1), Platform Relevance, user/admin relevance and Category are carried in each entry's definition suffix, since the CVC entry schema has no fields for them; bounds are not carried).
3698
3698
  *
3699
- * Domain: `core_functions` · Version: 1.1.0 · Entries: 82
3699
+ * Domain: `core_functions` · Version: 1.2.0 · Entries: 117
3700
3700
  */
3701
3701
  declare const CoreFunctionsKeys: {
3702
3702
  readonly missingness_root: "133-000-000-000-000-000-000";
@@ -3781,6 +3781,41 @@ declare const CoreFunctionsKeys: {
3781
3781
  readonly training_gate_manage: "133-076-000-000-000-000-000";
3782
3782
  readonly usr_manage: "133-077-000-000-000-000-000";
3783
3783
  readonly note_open_departed_author: "133-078-000-000-000-000-000";
3784
+ readonly agency_info_manage: "133-079-000-000-000-000-000";
3785
+ readonly srl_manage: "133-080-000-000-000-000-000";
3786
+ readonly mandatory_report_send: "133-081-000-000-000-000-000";
3787
+ readonly indicator_manual_add: "133-082-000-000-000-000-000";
3788
+ readonly message_send: "133-083-000-000-000-000-000";
3789
+ readonly workgroup_manage: "133-084-000-000-000-000-000";
3790
+ readonly message_moderate: "133-085-000-000-000-000-000";
3791
+ readonly announcement_publish: "133-086-000-000-000-000-000";
3792
+ readonly supervisee_thread_view: "133-087-000-000-000-000-000";
3793
+ readonly case_status_manage: "133-088-000-000-000-000-000";
3794
+ readonly enrollment_manage: "133-089-000-000-000-000-000";
3795
+ readonly exit_discharge_conduct: "133-090-000-000-000-000-000";
3796
+ readonly goals_plan_manage: "133-091-000-000-000-000-000";
3797
+ readonly lead_triage_manage: "133-092-000-000-000-000-000";
3798
+ readonly milestone_log: "133-093-000-000-000-000-000";
3799
+ readonly needs_priorities_conduct: "133-094-000-000-000-000-000";
3800
+ readonly profile_domain_edit: "133-095-000-000-000-000-000";
3801
+ readonly record_activity_view: "133-096-000-000-000-000-000";
3802
+ readonly service_log_manage: "133-097-000-000-000-000-000";
3803
+ readonly case_close: "133-098-000-000-000-000-000";
3804
+ readonly case_visibility_manage: "133-099-000-000-000-000-000";
3805
+ readonly person_merge_manage: "133-100-000-000-000-000-000";
3806
+ readonly investigation_session_run: "133-101-000-000-000-000-000";
3807
+ readonly lead_route_assign: "133-102-000-000-000-000-000";
3808
+ readonly onboarding_config_sign_off: "133-103-000-000-000-000-000";
3809
+ readonly hmis_export_generate: "133-104-000-000-000-000-000";
3810
+ readonly team_share_narrowing: "133-105-000-000-000-000-000";
3811
+ readonly viewing_config_manage: "133-106-000-000-000-000-000";
3812
+ readonly network_corpus_access: "133-107-000-000-000-000-000";
3813
+ readonly viewing_level_1_search: "133-108-000-000-000-000-000";
3814
+ readonly viewing_level_2_autocomplete: "133-109-000-000-000-000-000";
3815
+ readonly viewing_level_3_components: "133-110-000-000-000-000-000";
3816
+ readonly investigative_request_send: "133-111-000-000-000-000-000";
3817
+ readonly deconfliction_unmask: "133-112-000-000-000-000-000";
3818
+ readonly share_revoke: "133-113-000-000-000-000-000";
3784
3819
  };
3785
3820
  type CoreFunctionsKey = keyof typeof CoreFunctionsKeys;
3786
3821
  /**
@@ -3694,9 +3694,9 @@ declare const RiskCategoryKeys: {
3694
3694
  };
3695
3695
  type RiskCategoryKey = keyof typeof RiskCategoryKeys;
3696
3696
  /**
3697
- * 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
+ * Key → positional code map for the `core_functions` CVC domain (CANONICAL Notion CVC-133 `core - functions`, Active v2.0 — the Canonical Authorization Model function registry; SOT v1.2.0 is GENERATED from the prototype repo's data/cvcs/core_functions.yaml by scripts/gen-core-functions.py: 113 functions — the 78 published by 1.0.0/1.1.0 at their codes plus 35 appended at 133-079 … 133-113 — the roles → functions → gates/tiers graph is built over. NOT provisional numbering. Per-entry lifecycle Status (v1 / not v1), Platform Relevance, user/admin relevance and Category are carried in each entry's definition suffix, since the CVC entry schema has no fields for them; bounds are not carried).
3698
3698
  *
3699
- * Domain: `core_functions` · Version: 1.1.0 · Entries: 82
3699
+ * Domain: `core_functions` · Version: 1.2.0 · Entries: 117
3700
3700
  */
3701
3701
  declare const CoreFunctionsKeys: {
3702
3702
  readonly missingness_root: "133-000-000-000-000-000-000";
@@ -3781,6 +3781,41 @@ declare const CoreFunctionsKeys: {
3781
3781
  readonly training_gate_manage: "133-076-000-000-000-000-000";
3782
3782
  readonly usr_manage: "133-077-000-000-000-000-000";
3783
3783
  readonly note_open_departed_author: "133-078-000-000-000-000-000";
3784
+ readonly agency_info_manage: "133-079-000-000-000-000-000";
3785
+ readonly srl_manage: "133-080-000-000-000-000-000";
3786
+ readonly mandatory_report_send: "133-081-000-000-000-000-000";
3787
+ readonly indicator_manual_add: "133-082-000-000-000-000-000";
3788
+ readonly message_send: "133-083-000-000-000-000-000";
3789
+ readonly workgroup_manage: "133-084-000-000-000-000-000";
3790
+ readonly message_moderate: "133-085-000-000-000-000-000";
3791
+ readonly announcement_publish: "133-086-000-000-000-000-000";
3792
+ readonly supervisee_thread_view: "133-087-000-000-000-000-000";
3793
+ readonly case_status_manage: "133-088-000-000-000-000-000";
3794
+ readonly enrollment_manage: "133-089-000-000-000-000-000";
3795
+ readonly exit_discharge_conduct: "133-090-000-000-000-000-000";
3796
+ readonly goals_plan_manage: "133-091-000-000-000-000-000";
3797
+ readonly lead_triage_manage: "133-092-000-000-000-000-000";
3798
+ readonly milestone_log: "133-093-000-000-000-000-000";
3799
+ readonly needs_priorities_conduct: "133-094-000-000-000-000-000";
3800
+ readonly profile_domain_edit: "133-095-000-000-000-000-000";
3801
+ readonly record_activity_view: "133-096-000-000-000-000-000";
3802
+ readonly service_log_manage: "133-097-000-000-000-000-000";
3803
+ readonly case_close: "133-098-000-000-000-000-000";
3804
+ readonly case_visibility_manage: "133-099-000-000-000-000-000";
3805
+ readonly person_merge_manage: "133-100-000-000-000-000-000";
3806
+ readonly investigation_session_run: "133-101-000-000-000-000-000";
3807
+ readonly lead_route_assign: "133-102-000-000-000-000-000";
3808
+ readonly onboarding_config_sign_off: "133-103-000-000-000-000-000";
3809
+ readonly hmis_export_generate: "133-104-000-000-000-000-000";
3810
+ readonly team_share_narrowing: "133-105-000-000-000-000-000";
3811
+ readonly viewing_config_manage: "133-106-000-000-000-000-000";
3812
+ readonly network_corpus_access: "133-107-000-000-000-000-000";
3813
+ readonly viewing_level_1_search: "133-108-000-000-000-000-000";
3814
+ readonly viewing_level_2_autocomplete: "133-109-000-000-000-000-000";
3815
+ readonly viewing_level_3_components: "133-110-000-000-000-000-000";
3816
+ readonly investigative_request_send: "133-111-000-000-000-000-000";
3817
+ readonly deconfliction_unmask: "133-112-000-000-000-000-000";
3818
+ readonly share_revoke: "133-113-000-000-000-000-000";
3784
3819
  };
3785
3820
  type CoreFunctionsKey = keyof typeof CoreFunctionsKeys;
3786
3821
  /**
@@ -2890,7 +2890,42 @@ var CoreFunctionsKeys = {
2890
2890
  training_content_upload: "133-075-000-000-000-000-000",
2891
2891
  training_gate_manage: "133-076-000-000-000-000-000",
2892
2892
  usr_manage: "133-077-000-000-000-000-000",
2893
- note_open_departed_author: "133-078-000-000-000-000-000"
2893
+ note_open_departed_author: "133-078-000-000-000-000-000",
2894
+ agency_info_manage: "133-079-000-000-000-000-000",
2895
+ srl_manage: "133-080-000-000-000-000-000",
2896
+ mandatory_report_send: "133-081-000-000-000-000-000",
2897
+ indicator_manual_add: "133-082-000-000-000-000-000",
2898
+ message_send: "133-083-000-000-000-000-000",
2899
+ workgroup_manage: "133-084-000-000-000-000-000",
2900
+ message_moderate: "133-085-000-000-000-000-000",
2901
+ announcement_publish: "133-086-000-000-000-000-000",
2902
+ supervisee_thread_view: "133-087-000-000-000-000-000",
2903
+ case_status_manage: "133-088-000-000-000-000-000",
2904
+ enrollment_manage: "133-089-000-000-000-000-000",
2905
+ exit_discharge_conduct: "133-090-000-000-000-000-000",
2906
+ goals_plan_manage: "133-091-000-000-000-000-000",
2907
+ lead_triage_manage: "133-092-000-000-000-000-000",
2908
+ milestone_log: "133-093-000-000-000-000-000",
2909
+ needs_priorities_conduct: "133-094-000-000-000-000-000",
2910
+ profile_domain_edit: "133-095-000-000-000-000-000",
2911
+ record_activity_view: "133-096-000-000-000-000-000",
2912
+ service_log_manage: "133-097-000-000-000-000-000",
2913
+ case_close: "133-098-000-000-000-000-000",
2914
+ case_visibility_manage: "133-099-000-000-000-000-000",
2915
+ person_merge_manage: "133-100-000-000-000-000-000",
2916
+ investigation_session_run: "133-101-000-000-000-000-000",
2917
+ lead_route_assign: "133-102-000-000-000-000-000",
2918
+ onboarding_config_sign_off: "133-103-000-000-000-000-000",
2919
+ hmis_export_generate: "133-104-000-000-000-000-000",
2920
+ team_share_narrowing: "133-105-000-000-000-000-000",
2921
+ viewing_config_manage: "133-106-000-000-000-000-000",
2922
+ network_corpus_access: "133-107-000-000-000-000-000",
2923
+ viewing_level_1_search: "133-108-000-000-000-000-000",
2924
+ viewing_level_2_autocomplete: "133-109-000-000-000-000-000",
2925
+ viewing_level_3_components: "133-110-000-000-000-000-000",
2926
+ investigative_request_send: "133-111-000-000-000-000-000",
2927
+ deconfliction_unmask: "133-112-000-000-000-000-000",
2928
+ share_revoke: "133-113-000-000-000-000-000"
2894
2929
  };
2895
2930
  var NeedsAssessmentChangeTypeKeys = {
2896
2931
  missingness_root: "982-000-000-000-000-000-000",