@htilabs/platform-common-models 0.13.1 → 0.15.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 (56) hide show
  1. package/dist/constants/index.cjs +33 -0
  2. package/dist/constants/index.cjs.map +1 -1
  3. package/dist/constants/index.d.cts +1 -1
  4. package/dist/constants/index.d.ts +1 -1
  5. package/dist/constants/index.js +29 -0
  6. package/dist/constants/index.js.map +1 -1
  7. package/dist/{cvcEntry-0BIB9sen.d.cts → cvcEntry-DaDrEuTa.d.cts} +44 -44
  8. package/dist/{cvcEntry-0BIB9sen.d.ts → cvcEntry-DaDrEuTa.d.ts} +44 -44
  9. package/dist/cvcs/index.cjs +212 -38
  10. package/dist/cvcs/index.cjs.map +1 -1
  11. package/dist/cvcs/index.d.cts +224 -41
  12. package/dist/cvcs/index.d.ts +224 -41
  13. package/dist/cvcs/index.js +212 -38
  14. package/dist/cvcs/index.js.map +1 -1
  15. package/dist/enums/index.cjs +8 -1
  16. package/dist/enums/index.cjs.map +1 -1
  17. package/dist/enums/index.d.cts +11 -4
  18. package/dist/enums/index.d.ts +11 -4
  19. package/dist/enums/index.js +8 -1
  20. package/dist/enums/index.js.map +1 -1
  21. package/dist/{index-CDoqrfc1.d.ts → index-C0J3f169.d.ts} +1 -1
  22. package/dist/{index-Zu_mOJRn.d.cts → index-EPjPjR0z.d.cts} +1 -1
  23. package/dist/index.cjs +253 -39
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +3 -3
  26. package/dist/index.d.ts +3 -3
  27. package/dist/index.js +249 -39
  28. package/dist/index.js.map +1 -1
  29. package/dist/models/index.d.cts +2 -2
  30. package/dist/models/index.d.ts +2 -2
  31. package/dist/{platform-auth-64U8jjuw.d.cts → platform-auth-CrF5U_JH.d.cts} +43 -2
  32. package/dist/{platform-auth-64U8jjuw.d.ts → platform-auth-CrF5U_JH.d.ts} +43 -2
  33. package/dist/schemas/index.cjs +234 -0
  34. package/dist/schemas/index.cjs.map +1 -1
  35. package/dist/schemas/index.d.cts +35 -35
  36. package/dist/schemas/index.d.ts +35 -35
  37. package/dist/schemas/index.js +234 -0
  38. package/dist/schemas/index.js.map +1 -1
  39. package/dist/types/index.d.cts +2 -2
  40. package/dist/types/index.d.ts +2 -2
  41. package/package.json +27 -26
  42. package/src/__sot__/coreIndicatorFields.ts +4 -4
  43. package/src/__sot__/coreIndicators.pin.json +62 -2
  44. package/src/__sot__/scoringEmits.pin.json +9 -4
  45. package/src/__tests__/__snapshots__/cvc-sot.snap +4 -4
  46. package/src/__tests__/core-information-scope-invariant.test.ts +204 -15
  47. package/src/__tests__/cvc-136-scoring-invariant.test.ts +89 -28
  48. package/src/__tests__/cvc-drift-gate.test.ts +149 -27
  49. package/src/__tests__/cvc-sot-snapshot.test.ts +14 -8
  50. package/src/__tests__/cvc-structural.test.ts +2 -2
  51. package/src/__tests__/location-type-routing-invariant.test.ts +1 -1
  52. package/src/constants/ic.ts +163 -3
  53. package/src/cvcs/{coreIndicators.v1.0.0.json → coreIndicators.v1.1.0.json} +93 -10
  54. package/src/cvcs/{coreInformationScope.v1.0.0.json → coreInformationScope.v1.1.0.json} +113 -22
  55. package/src/cvcs/index.ts +2 -2
  56. package/src/generated/cvc-enums.ts +11 -4
@@ -3803,9 +3803,9 @@ declare const NeedsAssessmentChangeTypeKeys: {
3803
3803
  };
3804
3804
  type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;
3805
3805
  /**
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).
3806
+ * 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
3807
  *
3808
- * Domain: `core_information_scope` · Version: 1.0.0 · Entries: 72
3808
+ * Domain: `core_information_scope` · Version: 1.1.0 · Entries: 73
3809
3809
  */
3810
3810
  declare const CoreInformationScopeKeys: {
3811
3811
  readonly missingness_root: "236-000-000-000-000-000-000";
@@ -3849,6 +3849,7 @@ declare const CoreInformationScopeKeys: {
3849
3849
  readonly screen_notes: "236-005-001-000-000-000-000";
3850
3850
  readonly case_notes: "236-005-002-000-000-000-000";
3851
3851
  readonly background: "236-005-003-000-000-000-000";
3852
+ readonly session_summary: "236-005-004-000-000-000-000";
3852
3853
  readonly health_accommodation: "236-006-000-000-000-000-000";
3853
3854
  readonly accommodation_needs: "236-006-001-000-000-000-000";
3854
3855
  readonly disability_subtypes: "236-006-002-000-000-000-000";
@@ -3970,9 +3971,9 @@ declare const DhStateKeys: {
3970
3971
  };
3971
3972
  type DhStateKey = keyof typeof DhStateKeys;
3972
3973
  /**
3973
- * Key → positional code map for the `core_indicators` CVC domain (CVC-136; 214 canonical indicator codes re-sourced from prototype `data/core_indicators.yaml` @ 622410b + 2 scoring-ahead codes @hti/scoring emits before the codebook adopted them = 216 substantive). Entries carry `family` / `polarity` / `severity` / `isAlert` / `alertWhen`; the alert list is a DERIVED VIEW over `isAlert`, not a rival taxonomy.
3974
+ * Key → positional code map for the `core_indicators` CVC domain (CVC-136; 220 canonical indicator codes re-sourced from prototype `data/core_indicators.yaml` @ c53378f, reconciled against @hti/scoring `emits_by_code` @ 9c209cf; the 2 former scoring-ahead `_youth` codes are DEPRECATED read-only rows — `selectable: false`, `supersededBy` their canonical siblings — kept because PAVE 2.0 still writes them = 222 substantive; SOT v1.1.0). Entries carry `family` / `polarity` / `severity` / `isAlert` / `alertWhen`; the alert list is a DERIVED VIEW over `isAlert`, not a rival taxonomy.
3974
3975
  *
3975
- * Domain: `core_indicators` · Version: 1.0.0 · Entries: 220
3976
+ * Domain: `core_indicators` · Version: 1.1.0 · Entries: 226
3976
3977
  */
3977
3978
  declare const CoreIndicatorKeys: {
3978
3979
  readonly missingness_root: "136-000-000-000-000-000-000";
@@ -4195,6 +4196,12 @@ declare const CoreIndicatorKeys: {
4195
4196
  readonly sexualized_content_online_performance_activity: "136-214-000-000-000-000-000";
4196
4197
  readonly trauma_perpetrator_is_current_manager: "136-215-000-000-000-000-000";
4197
4198
  readonly active_protective_order: "136-216-000-000-000-000-000";
4199
+ readonly disclosed_fear_at_intake: "136-217-000-000-000-000-000";
4200
+ readonly does_not_control_housing: "136-218-000-000-000-000-000";
4201
+ readonly oppressive_home_life: "136-219-000-000-000-000-000";
4202
+ readonly recent_separation: "136-220-000-000-000-000-000";
4203
+ readonly survival_sex: "136-221-000-000-000-000-000";
4204
+ readonly unable_to_speak_freely: "136-222-000-000-000-000-000";
4198
4205
  };
4199
4206
  type CoreIndicatorKey = keyof typeof CoreIndicatorKeys;
4200
4207
  /**
@@ -3803,9 +3803,9 @@ declare const NeedsAssessmentChangeTypeKeys: {
3803
3803
  };
3804
3804
  type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;
3805
3805
  /**
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).
3806
+ * 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
3807
  *
3808
- * Domain: `core_information_scope` · Version: 1.0.0 · Entries: 72
3808
+ * Domain: `core_information_scope` · Version: 1.1.0 · Entries: 73
3809
3809
  */
3810
3810
  declare const CoreInformationScopeKeys: {
3811
3811
  readonly missingness_root: "236-000-000-000-000-000-000";
@@ -3849,6 +3849,7 @@ declare const CoreInformationScopeKeys: {
3849
3849
  readonly screen_notes: "236-005-001-000-000-000-000";
3850
3850
  readonly case_notes: "236-005-002-000-000-000-000";
3851
3851
  readonly background: "236-005-003-000-000-000-000";
3852
+ readonly session_summary: "236-005-004-000-000-000-000";
3852
3853
  readonly health_accommodation: "236-006-000-000-000-000-000";
3853
3854
  readonly accommodation_needs: "236-006-001-000-000-000-000";
3854
3855
  readonly disability_subtypes: "236-006-002-000-000-000-000";
@@ -3970,9 +3971,9 @@ declare const DhStateKeys: {
3970
3971
  };
3971
3972
  type DhStateKey = keyof typeof DhStateKeys;
3972
3973
  /**
3973
- * Key → positional code map for the `core_indicators` CVC domain (CVC-136; 214 canonical indicator codes re-sourced from prototype `data/core_indicators.yaml` @ 622410b + 2 scoring-ahead codes @hti/scoring emits before the codebook adopted them = 216 substantive). Entries carry `family` / `polarity` / `severity` / `isAlert` / `alertWhen`; the alert list is a DERIVED VIEW over `isAlert`, not a rival taxonomy.
3974
+ * Key → positional code map for the `core_indicators` CVC domain (CVC-136; 220 canonical indicator codes re-sourced from prototype `data/core_indicators.yaml` @ c53378f, reconciled against @hti/scoring `emits_by_code` @ 9c209cf; the 2 former scoring-ahead `_youth` codes are DEPRECATED read-only rows — `selectable: false`, `supersededBy` their canonical siblings — kept because PAVE 2.0 still writes them = 222 substantive; SOT v1.1.0). Entries carry `family` / `polarity` / `severity` / `isAlert` / `alertWhen`; the alert list is a DERIVED VIEW over `isAlert`, not a rival taxonomy.
3974
3975
  *
3975
- * Domain: `core_indicators` · Version: 1.0.0 · Entries: 220
3976
+ * Domain: `core_indicators` · Version: 1.1.0 · Entries: 226
3976
3977
  */
3977
3978
  declare const CoreIndicatorKeys: {
3978
3979
  readonly missingness_root: "136-000-000-000-000-000-000";
@@ -4195,6 +4196,12 @@ declare const CoreIndicatorKeys: {
4195
4196
  readonly sexualized_content_online_performance_activity: "136-214-000-000-000-000-000";
4196
4197
  readonly trauma_perpetrator_is_current_manager: "136-215-000-000-000-000-000";
4197
4198
  readonly active_protective_order: "136-216-000-000-000-000-000";
4199
+ readonly disclosed_fear_at_intake: "136-217-000-000-000-000-000";
4200
+ readonly does_not_control_housing: "136-218-000-000-000-000-000";
4201
+ readonly oppressive_home_life: "136-219-000-000-000-000-000";
4202
+ readonly recent_separation: "136-220-000-000-000-000-000";
4203
+ readonly survival_sex: "136-221-000-000-000-000-000";
4204
+ readonly unable_to_speak_freely: "136-222-000-000-000-000-000";
4198
4205
  };
4199
4206
  type CoreIndicatorKey = keyof typeof CoreIndicatorKeys;
4200
4207
  /**
@@ -2947,6 +2947,7 @@ var CoreInformationScopeKeys = {
2947
2947
  screen_notes: "236-005-001-000-000-000-000",
2948
2948
  case_notes: "236-005-002-000-000-000-000",
2949
2949
  background: "236-005-003-000-000-000-000",
2950
+ session_summary: "236-005-004-000-000-000-000",
2950
2951
  health_accommodation: "236-006-000-000-000-000-000",
2951
2952
  accommodation_needs: "236-006-001-000-000-000-000",
2952
2953
  disability_subtypes: "236-006-002-000-000-000-000",
@@ -3262,7 +3263,13 @@ var CoreIndicatorKeys = {
3262
3263
  sexualized_content_in_person_performance_activity: "136-213-000-000-000-000-000",
3263
3264
  sexualized_content_online_performance_activity: "136-214-000-000-000-000-000",
3264
3265
  trauma_perpetrator_is_current_manager: "136-215-000-000-000-000-000",
3265
- active_protective_order: "136-216-000-000-000-000-000"
3266
+ active_protective_order: "136-216-000-000-000-000-000",
3267
+ disclosed_fear_at_intake: "136-217-000-000-000-000-000",
3268
+ does_not_control_housing: "136-218-000-000-000-000-000",
3269
+ oppressive_home_life: "136-219-000-000-000-000-000",
3270
+ recent_separation: "136-220-000-000-000-000-000",
3271
+ survival_sex: "136-221-000-000-000-000-000",
3272
+ unable_to_speak_freely: "136-222-000-000-000-000-000"
3266
3273
  };
3267
3274
  var RiskIdentificationMilestoneKeys = {
3268
3275
  missingness_root: "267-000-000-000-000-000-000",