@htilabs/platform-common-models 0.8.4 → 0.8.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htilabs/platform-common-models",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "description": "Shared constants, types, and models for HTI Labs applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -351,8 +351,8 @@
351
351
  "hash": "5d32f251b24af795609cf5a354de58f2a67fa0884e94c864a3b2425052542d3b"
352
352
  },
353
353
  "identification_status": {
354
- "count": 7,
355
- "hash": "a247e3de63a950557afe4a072ff56bae82a92e51a0f92bd2d37f7187bb91218c"
354
+ "count": 9,
355
+ "hash": "123525b1e4f981f8fe18cdfb1e34abc93c280c3295296db1512e7ee1f8c341ea"
356
356
  },
357
357
  "investigative_request_type": {
358
358
  "count": 8,
@@ -495,8 +495,8 @@
495
495
  "hash": "03ce0a04e8a2ea49b39aaa45a7b11a2a9feb457637c6c6620a46fcb83e041442"
496
496
  },
497
497
  "ht_type": {
498
- "count": 7,
499
- "hash": "06791c74cc85afdf167e4222b0d0b87a765d449ab936efe1412429d4e2765370"
498
+ "count": 8,
499
+ "hash": "689c23880771fae764d0927f5872e250e0f6173eef0c162a192c477b6f638458"
500
500
  },
501
501
  "relationship_concern": {
502
502
  "count": 11,
@@ -517,7 +517,7 @@ const SOT_SPECS: readonly SotSpec[] = [
517
517
  { file: "hopeScaleCaptureContext.v1.0.0.json", domain: "hope_scale_capture_context", expectedCount: 11 },
518
518
  { file: "hopeScaleResponseOptions.v1.0.0.json", domain: "hope_scale_response_options", expectedCount: 12 },
519
519
  { file: "hopeScaleTier.v1.0.0.json", domain: "hope_scale_tier", expectedCount: 8 },
520
- { file: "identificationStatus.v1.0.0.json", domain: "identification_status", expectedCount: 7 },
520
+ { file: "identificationStatus.v1.0.0.json", domain: "identification_status", expectedCount: 9 },
521
521
  { file: "investigativeRequestType.v1.0.0.json", domain: "investigative_request_type", expectedCount: 8 },
522
522
  { file: "languages.v1.0.0.json", domain: "languages", expectedCount: 212 },
523
523
  { file: "leReportStatus.v1.0.0.json", domain: "le_report_status", expectedCount: 8 },
@@ -564,10 +564,10 @@ const SOT_SPECS: readonly SotSpec[] = [
564
564
  // CVC-73 victim_abuse_types — 25 non-HT VOCA abuse types + 1 missingness
565
565
  // root + 3 canonical missingness children = 29.
566
566
  { file: "victimAbuseTypes.v1.0.0.json", domain: "victim_abuse_types", expectedCount: 29 },
567
- // CVC-72 ht_type — 3 substantive trafficking types (sex, labor,
568
- // sex_and_labor; `none` dropped per Notion 4-code set) + 1 missingness
569
- // root + 3 canonical missingness children = 7.
570
- { file: "htType.v1.0.0.json", domain: "ht_type", expectedCount: 7 },
567
+ // CVC-72 ht_type — 4 substantive types (sex, labor, sex_and_labor, none;
568
+ // `none` = negative determination, canonical per Crysta directive 2026-05-27)
569
+ // + 1 missingness root + 3 canonical missingness children = 8.
570
+ { file: "htType.v1.0.0.json", domain: "ht_type", expectedCount: 8 },
571
571
  // PROVISIONAL CVC-231 relationship_concern — 7 TRA relationship-concern
572
572
  // codes + 1 missingness root + 3 canonical missingness children = 11.
573
573
  // CVC number is PROVISIONAL pending codebook-session ratification.
@@ -73,6 +73,15 @@
73
73
  "parentCode": null,
74
74
  "childCodes": [],
75
75
  "definition": "Both sex trafficking and labor trafficking are asserted to apply, either concurrently or across the relevant time window. Use when credible assertions exist for both sex and labor trafficking for the same subject / time context."
76
+ },
77
+ {
78
+ "code": "072-004-000-000-000-000-000",
79
+ "key": "none",
80
+ "title": "None",
81
+ "selectable": true,
82
+ "parentCode": null,
83
+ "childCodes": [],
84
+ "definition": "No trafficking type asserted — an explicit NEGATIVE determination rather than a trafficking type. The picker surfaces `none` alongside the substantive codes (sex / labor / sex_and_labor) so an advocate can assert 'this person is not a trafficking victim of any specific type.' Pair with victim_status_family = no_indication when the negative determination spans the victim assertion. Canonical per Crysta directive 2026-05-27 (core_ht_type.yaml), which overrides the 2026-04-26 bundle's prior 'remove None from canonical' recommendation."
76
85
  }
77
86
  ]
78
87
  }
@@ -75,6 +75,24 @@
75
75
  "parentCode": null,
76
76
  "childCodes": [],
77
77
  "definition": "Advocate's deliberate choice to keep the person's name off the subject's record even when known (privacy / safety / legal-strategy reasons), or when documenting the name would risk the survivor or third party. Pairs with Name kind 'Anonymous'. This is a capture-intent posture, distinct from the missingness 'anonymous' sentinel."
78
+ },
79
+ {
80
+ "code": "929-004-000-000-000-000-000",
81
+ "key": "estimated_persona",
82
+ "title": "Estimated persona",
83
+ "selectable": true,
84
+ "parentCode": null,
85
+ "childCodes": [],
86
+ "definition": "A persona that exists in data/systems (resolved _id with linked source records) but has NOT been confirmed to represent a real person. Typically inferred (entity resolution / algorithm-clustered ads); maps 1:1 to the LEADS IDB 'not verified' icon. An estimated_persona record must never render as an identified person. Added 2026-06-12 per ruling M3 (Terry) so the platform-milestone IDENTIFICATION value maps exactly; RENAMED that day from the prototype's working code SYSTEM_ENTITY to avoid collision with facilitator_entity_type. Previously approximated as unidentified."
87
+ },
88
+ {
89
+ "code": "929-005-000-000-000-000-000",
90
+ "key": "confirmed",
91
+ "title": "Confirmed (identity unknown)",
92
+ "selectable": true,
93
+ "parentCode": null,
94
+ "childCodes": [],
95
+ "definition": "Confirmed to be a real person, but the specific identity is unknown — the 'real person, identity unknown' degree that sat between unidentified and identified with no code before 2026-06-12 (ruling M3). Distinct from unidentified (capture intent: known-of via relationship, no name) in that confirmation is an explicit analyst/advocate determination that the entity is real."
78
96
  }
79
97
  ]
80
98
  }
@@ -2778,7 +2778,7 @@ export type HopeScaleTierKey = keyof typeof HopeScaleTierKeys;
2778
2778
  /**
2779
2779
  * Key → positional code map for the `identification_status` CVC domain.
2780
2780
  *
2781
- * Domain: `identification_status` · Version: 1.0.0 · Entries: 7
2781
+ * Domain: `identification_status` · Version: 1.0.0 · Entries: 9
2782
2782
  */
2783
2783
  export const IdentificationStatusKeys = {
2784
2784
  missingness_root: "929-000-000-000-000-000-000",
@@ -2788,6 +2788,8 @@ export const IdentificationStatusKeys = {
2788
2788
  identified: "929-001-000-000-000-000-000",
2789
2789
  unidentified: "929-002-000-000-000-000-000",
2790
2790
  anonymous_posture: "929-003-000-000-000-000-000",
2791
+ estimated_persona: "929-004-000-000-000-000-000",
2792
+ confirmed: "929-005-000-000-000-000-000",
2791
2793
  } as const;
2792
2794
 
2793
2795
  export type IdentificationStatusKey = keyof typeof IdentificationStatusKeys;
@@ -3422,7 +3424,7 @@ export type VictimAbuseTypesKey = keyof typeof VictimAbuseTypesKeys;
3422
3424
  /**
3423
3425
  * Key → positional code map for the `ht_type` CVC domain.
3424
3426
  *
3425
- * Domain: `ht_type` · Version: 1.0.0 · Entries: 7
3427
+ * Domain: `ht_type` · Version: 1.0.0 · Entries: 8
3426
3428
  */
3427
3429
  export const HtTypeKeys = {
3428
3430
  missingness_root: "072-000-000-000-000-000-000",
@@ -3432,6 +3434,7 @@ export const HtTypeKeys = {
3432
3434
  sex: "072-001-000-000-000-000-000",
3433
3435
  labor: "072-002-000-000-000-000-000",
3434
3436
  sex_and_labor: "072-003-000-000-000-000-000",
3437
+ none: "072-004-000-000-000-000-000",
3435
3438
  } as const;
3436
3439
 
3437
3440
  export type HtTypeKey = keyof typeof HtTypeKeys;