@htilabs/platform-common-models 0.8.13 → 0.8.15

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 (75) hide show
  1. package/README.md +44 -0
  2. package/dist/config/index.cjs +4 -0
  3. package/dist/config/index.cjs.map +1 -1
  4. package/dist/config/index.d.cts +16 -1
  5. package/dist/config/index.d.ts +16 -1
  6. package/dist/config/index.js +2 -0
  7. package/dist/config/index.js.map +1 -1
  8. package/dist/constants/index.cjs +10 -0
  9. package/dist/constants/index.cjs.map +1 -1
  10. package/dist/constants/index.d.cts +1 -1
  11. package/dist/constants/index.d.ts +1 -1
  12. package/dist/constants/index.js +10 -0
  13. package/dist/constants/index.js.map +1 -1
  14. package/dist/cvcs/index.cjs +601 -2
  15. package/dist/cvcs/index.cjs.map +1 -1
  16. package/dist/cvcs/index.d.cts +2754 -2084
  17. package/dist/cvcs/index.d.ts +2754 -2084
  18. package/dist/cvcs/index.js +594 -2
  19. package/dist/cvcs/index.js.map +1 -1
  20. package/dist/{index-I-DiX9eQ.d.ts → index-CDoqrfc1.d.ts} +1 -1
  21. package/dist/{index-CoVr1jIV.d.cts → index-Zu_mOJRn.d.cts} +1 -1
  22. package/dist/index.cjs +709 -4
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.cts +154 -7
  25. package/dist/index.d.ts +154 -7
  26. package/dist/index.js +693 -4
  27. package/dist/index.js.map +1 -1
  28. package/dist/models/index.d.cts +2 -2
  29. package/dist/models/index.d.ts +2 -2
  30. package/dist/mongo/index.cjs +383 -0
  31. package/dist/mongo/index.cjs.map +1 -0
  32. package/dist/mongo/index.d.cts +221 -0
  33. package/dist/mongo/index.d.ts +221 -0
  34. package/dist/mongo/index.js +351 -0
  35. package/dist/mongo/index.js.map +1 -0
  36. package/dist/{platform-auth-BfCMuAlC.d.cts → platform-auth-AsfnIXfK.d.cts} +2 -2
  37. package/dist/{platform-auth-BfCMuAlC.d.ts → platform-auth-AsfnIXfK.d.ts} +2 -2
  38. package/dist/schemas/index.cjs +5 -1
  39. package/dist/schemas/index.cjs.map +1 -1
  40. package/dist/schemas/index.d.cts +29 -25
  41. package/dist/schemas/index.d.ts +29 -25
  42. package/dist/schemas/index.js +5 -1
  43. package/dist/schemas/index.js.map +1 -1
  44. package/dist/types/index.d.cts +2 -2
  45. package/dist/types/index.d.ts +2 -2
  46. package/package.json +10 -1
  47. package/src/__sot__/coreIndicators.pin.json +6 -1
  48. package/src/__tests__/__snapshots__/cvc-sot.snap +18 -2
  49. package/src/__tests__/cvc-136-scoring-invariant.test.ts +6 -3
  50. package/src/__tests__/cvc-drift-gate.test.ts +14 -3
  51. package/src/__tests__/cvc-sot-snapshot.test.ts +13 -1
  52. package/src/__tests__/cvc-structural.test.ts +6 -0
  53. package/src/__tests__/mongo-verifier.test.ts +502 -0
  54. package/src/config/index.ts +8 -2
  55. package/src/constants/ic.ts +31 -2
  56. package/src/cvcs/assertionStatus.v1.0.0.json +80 -0
  57. package/src/cvcs/caseShareState.v1.0.0.json +62 -0
  58. package/src/cvcs/coreIndicators.v1.0.0.json +67 -2
  59. package/src/cvcs/createdBySystem.v1.0.0.json +89 -0
  60. package/src/cvcs/criminalOrgCategory.v1.0.0.json +116 -0
  61. package/src/cvcs/hmisSex.v1.0.0.json +89 -0
  62. package/src/cvcs/index.ts +22 -0
  63. package/src/cvcs/minorAdultStatus.v1.0.0.json +80 -0
  64. package/src/cvcs/referralOrigin.v1.0.0.json +26 -0
  65. package/src/cvcs/subjectType.v1.0.0.json +80 -0
  66. package/src/generated/cvc-enums.ts +125 -2
  67. package/src/index.ts +20 -0
  68. package/src/mongo/catalog.ts +65 -0
  69. package/src/mongo/contract.ts +157 -0
  70. package/src/mongo/index.ts +343 -0
  71. package/src/mongo/similarity.ts +133 -0
  72. package/src/mongo/uri.ts +53 -0
  73. package/src/schemas/common.ts +4 -0
  74. package/dist/{cvcEntry-BCj1OWqL.d.cts → cvcEntry-0BIB9sen.d.cts} +8 -8
  75. package/dist/{cvcEntry-BCj1OWqL.d.ts → cvcEntry-0BIB9sen.d.ts} +8 -8
package/dist/index.cjs CHANGED
@@ -38,6 +38,7 @@ __export(src_exports, {
38
38
  AnnouncementAudienceScopeKeys: () => AnnouncementAudienceScopeKeys,
39
39
  AnnouncementResponseTypeKeys: () => AnnouncementResponseTypeKeys,
40
40
  AssertionDomainKeys: () => AssertionDomainKeys,
41
+ AssertionStatusKeys: () => AssertionStatusKeys,
41
42
  BIRTH_LOCATION: () => BIRTH_LOCATION,
42
43
  BIRTH_LOCATION_LABELS: () => BIRTH_LOCATION_LABELS,
43
44
  BIRTH_LOCATION_VALUES: () => BIRTH_LOCATION_VALUES,
@@ -75,6 +76,7 @@ __export(src_exports, {
75
76
  CVC_136_OPTIONS: () => CVC_136_OPTIONS,
76
77
  CVC_136_TYPE_TO_CATEGORY: () => CVC_136_TYPE_TO_CATEGORY,
77
78
  CVC_136_VALUES: () => CVC_136_VALUES,
79
+ CVC_137_VALUES: () => CVC_137_VALUES,
78
80
  CVC_145_CATEGORY: () => CVC_145_CATEGORY,
79
81
  CVC_145_CATEGORY_LABELS: () => CVC_145_CATEGORY_LABELS,
80
82
  CVC_145_CATEGORY_ORDER: () => CVC_145_CATEGORY_ORDER,
@@ -152,6 +154,7 @@ __export(src_exports, {
152
154
  CVC_196_CHILD_WELFARE_EPISODE_TYPE: () => CVC_196_CHILD_WELFARE_EPISODE_TYPE,
153
155
  CVC_196_LABELS: () => CVC_196_LABELS,
154
156
  CVC_196_VALUES: () => CVC_196_VALUES,
157
+ CVC_197_VALUES: () => CVC_197_VALUES,
155
158
  CVC_1_LABELS: () => CVC_1_LABELS,
156
159
  CVC_1_NAME_TYPE: () => CVC_1_NAME_TYPE,
157
160
  CVC_1_STRUCTURED_NAME_TYPES: () => CVC_1_STRUCTURED_NAME_TYPES,
@@ -185,6 +188,7 @@ __export(src_exports, {
185
188
  CVC_99_ENGLISH_PROFICIENCY: () => CVC_99_ENGLISH_PROFICIENCY,
186
189
  CVC_99_LABELS: () => CVC_99_LABELS,
187
190
  CVC_99_VALUES: () => CVC_99_VALUES,
191
+ CaseShareStateKeys: () => CaseShareStateKeys,
188
192
  CheckInActivityKeys: () => CheckInActivityKeys,
189
193
  CheckInPhaseKeys: () => CheckInPhaseKeys,
190
194
  ChildBehavioralConcernsKeys: () => ChildBehavioralConcernsKeys,
@@ -199,6 +203,8 @@ __export(src_exports, {
199
203
  CoreFunctionsKeys: () => CoreFunctionsKeys,
200
204
  CoreIndicatorKeys: () => CoreIndicatorKeys,
201
205
  CoreReferralOutcomeKeys: () => CoreReferralOutcomeKeys,
206
+ CreatedBySystemKeys: () => CreatedBySystemKeys,
207
+ CriminalOrgCategoryKeys: () => CriminalOrgCategoryKeys,
202
208
  CvcCodeSchema: () => CvcCodeSchema,
203
209
  CvcEntrySchema: () => CvcEntrySchema,
204
210
  CvcEnvelopeSchema: () => CvcEnvelopeSchema,
@@ -338,6 +344,7 @@ __export(src_exports, {
338
344
  MilestoneTypeKeys: () => MilestoneTypeKeys,
339
345
  MilitaryBranchKeys: () => MilitaryBranchKeys,
340
346
  MilitaryStatusKeys: () => MilitaryStatusKeys,
347
+ MinorAdultStatusKeys: () => MinorAdultStatusKeys,
341
348
  NameTypeKeys: () => NameTypeKeys,
342
349
  NeedsAssessmentChangeTypeKeys: () => NeedsAssessmentChangeTypeKeys,
343
350
  NeedsResidentialAgainKeys: () => NeedsResidentialAgainKeys,
@@ -392,6 +399,7 @@ __export(src_exports, {
392
399
  RecencyBandKeys: () => RecencyBandKeys,
393
400
  ReferenceLinkTypeKeys: () => ReferenceLinkTypeKeys,
394
401
  ReferralEntityCategoryKeys: () => ReferralEntityCategoryKeys,
402
+ ReferralOriginKeys: () => ReferralOriginKeys,
395
403
  RelationshipConcernKeys: () => RelationshipConcernKeys,
396
404
  RelationshipDynamicsKeys: () => RelationshipDynamicsKeys,
397
405
  RelationshipStatusCurrentKeys: () => RelationshipStatusCurrentKeys,
@@ -438,6 +446,7 @@ __export(src_exports, {
438
446
  SourceSubtypeKeys: () => SourceSubtypeKeys,
439
447
  SourceSystemKeys: () => SourceSystemKeys,
440
448
  SpecialNeedsDisabilitiesKeys: () => SpecialNeedsDisabilitiesKeys,
449
+ SubjectTypeKeys: () => SubjectTypeKeys,
441
450
  SubstanceUseStatusKeys: () => SubstanceUseStatusKeys,
442
451
  SuggestionSourceKeys: () => SuggestionSourceKeys,
443
452
  SupportStrengthKeys: () => SupportStrengthKeys,
@@ -471,6 +480,7 @@ __export(src_exports, {
471
480
  announcementResponseTypeSot: () => announcementResponseType_v1_0_0_default,
472
481
  applyEntryOverrides: () => applyEntryOverrides,
473
482
  assertionDomainSot: () => assertionDomain_v1_1_0_default,
483
+ assertionStatusSot: () => assertionStatus_v1_0_0_default,
474
484
  basisQuickPicksSot: () => basisQuickPicks_v1_0_0_default,
475
485
  buildCvcEntrySchema: () => buildCvcEntrySchema,
476
486
  buildCvcRegistrySchema: () => buildCvcRegistrySchema,
@@ -481,6 +491,7 @@ __export(src_exports, {
481
491
  buildScoringRuleSchema: () => buildScoringRuleSchema,
482
492
  buildSectionSchema: () => buildSectionSchema,
483
493
  cascadeExclusions: () => cascadeExclusions,
494
+ caseShareStateSot: () => caseShareState_v1_0_0_default,
484
495
  checkInActivitySot: () => checkInActivity_v1_0_0_default,
485
496
  checkInPhaseSot: () => checkInPhase_v1_1_0_default,
486
497
  childBehavioralConcernsSot: () => childBehavioralConcerns_v1_0_0_default,
@@ -500,6 +511,7 @@ __export(src_exports, {
500
511
  coreIndicatorsSot: () => coreIndicators_v1_0_0_default,
501
512
  coreReferralOutcomeSot: () => coreReferralOutcome_v1_0_0_default,
502
513
  createPlatformModels: () => createPlatformModels,
514
+ createdBySystemSot: () => createdBySystem_v1_0_0_default,
503
515
  cvcEntryModel: () => cvcEntryModel_exports,
504
516
  cvcEntrySchemaDefinition: () => cvcEntrySchemaDefinition,
505
517
  cvcEntrySchemaOptions: () => cvcEntrySchemaOptions,
@@ -561,6 +573,7 @@ __export(src_exports, {
561
573
  hmisCurrentLivingSituationSot: () => hmisCurrentLivingSituation_v1_0_0_default,
562
574
  hmisProjectTypeSot: () => hmisProjectType_v1_0_0_default,
563
575
  hmisRelationshipToHohSot: () => hmisRelationshipToHoh_v1_0_0_default,
576
+ hmisSexSot: () => hmisSex_v1_0_0_default,
564
577
  homelessStatusSot: () => homelessStatus_v1_0_0_default,
565
578
  hopeScaleCaptureContextSot: () => hopeScaleCaptureContext_v1_0_0_default,
566
579
  hopeScaleResponseOptionsSot: () => hopeScaleResponseOptions_v1_0_0_default,
@@ -596,6 +609,7 @@ __export(src_exports, {
596
609
  milestoneTypeSot: () => milestoneType_v1_0_0_default,
597
610
  militaryBranchSot: () => militaryBranch_v1_0_0_default,
598
611
  militaryStatusSot: () => militaryStatus_v1_0_0_default,
612
+ minorAdultStatusSot: () => minorAdultStatus_v1_0_0_default,
599
613
  nameTypeSot: () => nameType_v1_0_0_default,
600
614
  needsAssessmentChangeTypeSot: () => needsAssessmentChangeType_v1_0_0_default,
601
615
  needsResidentialAgainSot: () => needsResidentialAgain_v1_0_0_default,
@@ -632,6 +646,7 @@ __export(src_exports, {
632
646
  recencyBandSot: () => recencyBand_v1_0_0_default,
633
647
  referenceLinkTypeSot: () => referenceLinkType_v1_0_0_default,
634
648
  referralEntityCategorySot: () => referralEntityCategory_v1_0_0_default,
649
+ referralOriginSot: () => referralOrigin_v1_0_0_default,
635
650
  relationshipConcernSot: () => relationshipConcern_v1_0_0_default,
636
651
  relationshipDynamicsSot: () => relationshipDynamics_v1_0_0_default,
637
652
  relationshipStatusCurrentSot: () => relationshipStatusCurrent_v1_0_0_default,
@@ -682,6 +697,7 @@ __export(src_exports, {
682
697
  sourceSubtypeSot: () => sourceSubtype_v1_1_0_default,
683
698
  sourceSystemSot: () => sourceSystem_v1_0_0_default,
684
699
  specialNeedsDisabilitiesSot: () => specialNeedsDisabilities_v1_0_0_default,
700
+ subjectTypeSot: () => subjectType_v1_0_0_default,
685
701
  substanceUseStatusSot: () => substanceUseStatus_v1_0_0_default,
686
702
  suggestionSourceSot: () => suggestionSource_v1_0_0_default,
687
703
  supportStrengthSot: () => supportStrength_v1_0_0_default,
@@ -4613,6 +4629,7 @@ var CVC_136_CORE_INDICATOR_VALUES = [
4613
4629
  "cannot_stop_working_or_freely_leave",
4614
4630
  "child_not_abusers_in_household",
4615
4631
  "child_welfare_system_involvement",
4632
+ "clients_unaware_of_third_party_coordination",
4616
4633
  "coerced_to_misrepresent_identity_or_activity",
4617
4634
  "coercive_debt_pressure",
4618
4635
  "coercive_debt_pressure_youth",
@@ -4635,6 +4652,7 @@ var CVC_136_CORE_INDICATOR_VALUES = [
4635
4652
  "debt_terms_deceptive_youth",
4636
4653
  "denied_basic_needs",
4637
4654
  "depends_on_employer_for_immigration_status",
4655
+ "depends_on_spouse_or_family_for_immigration_status",
4638
4656
  "does_not_control_finances_or_earnings",
4639
4657
  "does_not_control_identity_documents",
4640
4658
  "elevated_lethality_risk_signal",
@@ -4728,6 +4746,8 @@ var CVC_136_CORE_INDICATOR_VALUES = [
4728
4746
  "several_cell_phones_or_frequent_number_changes",
4729
4747
  "sex_acts_in_own_residence",
4730
4748
  "sexual_exploitation",
4749
+ "sexualized_content_in_person_performance_activity",
4750
+ "sexualized_content_online_performance_activity",
4731
4751
  "sexualized_content_performance_activity",
4732
4752
  "shared_contact_network",
4733
4753
  "signs_of_physical_abuse_confinement_or_neglect",
@@ -4773,6 +4793,7 @@ var CVC_136_CORE_INDICATOR_VALUES = [
4773
4793
  "trafficking_experience_past_10plusy",
4774
4794
  "trafficking_experience_past_3to10y",
4775
4795
  "trafficking_experience_past_lt3y",
4796
+ "trauma_perpetrator_is_current_manager",
4776
4797
  "travel_organized_by_third_party",
4777
4798
  "tricked_or_pressured_into_unwanted_acts",
4778
4799
  "under_18_advertised_age",
@@ -4825,6 +4846,7 @@ var CVC_136_CORE_INDICATOR_LABELS = {
4825
4846
  "cannot_stop_working_or_freely_leave": "Cannot stop working or freely leave home/work",
4826
4847
  "child_not_abusers_in_household": "Child in household who is not the abuser's biological child",
4827
4848
  "child_welfare_system_involvement": "Child welfare system involvement (history)",
4849
+ "clients_unaware_of_third_party_coordination": "Clients unaware they are coordinating with a third party (concealed dispatch)",
4828
4850
  "coerced_to_misrepresent_identity_or_activity": "Coerced to misrepresent age, identity, or work activity to outsiders",
4829
4851
  "coercive_debt_pressure": "Pressured to do things to pay off debt (coercive debt repayment)",
4830
4852
  "coercive_debt_pressure_youth": "Pressured to do things to pay off debt (youth missing-from-care)",
@@ -4847,6 +4869,7 @@ var CVC_136_CORE_INDICATOR_LABELS = {
4847
4869
  "debt_terms_deceptive_youth": "Debt repayment terms differed from what was expected (youth missing-from-care)",
4848
4870
  "denied_basic_needs": "Denied basic needs (food, water, sleep, medical care)",
4849
4871
  "depends_on_employer_for_immigration_status": "Depends on employer for immigration status (tied visa / living with employer)",
4872
+ "depends_on_spouse_or_family_for_immigration_status": "Depends on spouse / family member for immigration status (tied family visa)",
4850
4873
  "does_not_control_finances_or_earnings": "Limited independence: does not control finances or earnings",
4851
4874
  "does_not_control_identity_documents": "Limited independence: does not control identity documents",
4852
4875
  "elevated_lethality_risk_signal": "Elevated lethality risk",
@@ -4940,6 +4963,8 @@ var CVC_136_CORE_INDICATOR_LABELS = {
4940
4963
  "several_cell_phones_or_frequent_number_changes": "Several cell phones or frequently changing phone number",
4941
4964
  "sex_acts_in_own_residence": "Sex acts take place in person's own residence",
4942
4965
  "sexual_exploitation": "Sexual exploitation (general)",
4966
+ "sexualized_content_in_person_performance_activity": "In-person sexualized performance / appearance-based activity",
4967
+ "sexualized_content_online_performance_activity": "Online sexual performance / interactive sexual content activity",
4943
4968
  "sexualized_content_performance_activity": "Sexualized content, performance, or communications activity",
4944
4969
  "shared_contact_network": "Shares a contact network (phones/handles)",
4945
4970
  "signs_of_physical_abuse_confinement_or_neglect": "Signs of physical abuse, confinement, or neglect (observed)",
@@ -4985,6 +5010,7 @@ var CVC_136_CORE_INDICATOR_LABELS = {
4985
5010
  "trafficking_experience_past_10plusy": "Trafficking experience recency: 10+ years since last experience",
4986
5011
  "trafficking_experience_past_3to10y": "Trafficking experience recency: 3\u201310 years since last experience",
4987
5012
  "trafficking_experience_past_lt3y": "Trafficking experience recency: less than 3 years since last experience",
5013
+ "trauma_perpetrator_is_current_manager": "Trauma perpetrator is a current manager / facilitator (trauma-bonded control)",
4988
5014
  "travel_organized_by_third_party": "Travel organized by a third party (sex provider does not control own movement)",
4989
5015
  "tricked_or_pressured_into_unwanted_acts": "Tricked or pressured into unwanted acts or activities (generic coercion)",
4990
5016
  "under_18_advertised_age": "Under 18 (ad-derived / advertised age)",
@@ -6639,7 +6665,11 @@ var personNameSchema = new import_mongoose.Schema(
6639
6665
  isPrimary: Boolean,
6640
6666
  alias: Boolean,
6641
6667
  isUnknown: Boolean,
6642
- isAnonymous: Boolean
6668
+ isAnonymous: Boolean,
6669
+ // Shape flag: this person has only one name (e.g., Madonna). A mononym
6670
+ // can itself be legal, a nickname, a trade name, etc. — it's orthogonal
6671
+ // to nameType, not a value of it.
6672
+ isMononym: Boolean
6643
6673
  },
6644
6674
  { _id: false }
6645
6675
  );
@@ -8350,6 +8380,18 @@ var SharePurposeKeys = {
8350
8380
  discretionary_share: "084-007-000-000-000-000-000",
8351
8381
  records_request: "084-008-000-000-000-000-000"
8352
8382
  };
8383
+ var ReferralOriginKeys = {
8384
+ internal: "909-001-000-000-000-000-000",
8385
+ external: "909-002-000-000-000-000-000"
8386
+ };
8387
+ var CaseShareStateKeys = {
8388
+ pending: "925-001-000-000-000-000-000",
8389
+ claimed: "925-002-000-000-000-000-000",
8390
+ accepted_awaiting_review: "925-003-000-000-000-000-000",
8391
+ accepted: "925-004-000-000-000-000-000",
8392
+ declined: "925-005-000-000-000-000-000",
8393
+ rejected: "925-006-000-000-000-000-000"
8394
+ };
8353
8395
  var FacilitatorEntityTypeKeys = {
8354
8396
  missingness_root: "165-000-000-000-000-000-000",
8355
8397
  unknown: "165-000-000-000-000-000-001",
@@ -10800,7 +10842,12 @@ var CoreIndicatorKeys = {
10800
10842
  workplace_emotional_climate_of_fear: "136-207-000-000-000-000-000",
10801
10843
  works_across_multiple_cities_or_locations: "136-208-000-000-000-000-000",
10802
10844
  works_for_little_or_no_pay: "136-209-000-000-000-000-000",
10803
- youth_watched_filmed_or_photographed_sexually_explicit: "136-210-000-000-000-000-000"
10845
+ youth_watched_filmed_or_photographed_sexually_explicit: "136-210-000-000-000-000-000",
10846
+ clients_unaware_of_third_party_coordination: "136-211-000-000-000-000-000",
10847
+ depends_on_spouse_or_family_for_immigration_status: "136-212-000-000-000-000-000",
10848
+ sexualized_content_in_person_performance_activity: "136-213-000-000-000-000-000",
10849
+ sexualized_content_online_performance_activity: "136-214-000-000-000-000-000",
10850
+ trauma_perpetrator_is_current_manager: "136-215-000-000-000-000-000"
10804
10851
  };
10805
10852
  var RiskSeverityBandKeys = {
10806
10853
  missingness_root: "238-000-000-000-000-000-000",
@@ -11351,6 +11398,56 @@ var WhyNotKeys = {
11351
11398
  other: "219-007-007-000-000-000-000",
11352
11399
  unknc: "219-007-008-000-000-000-000"
11353
11400
  };
11401
+ var AssertionStatusKeys = {
11402
+ missingness_root: "985-000-000-000-000-000-000",
11403
+ unknown: "985-000-000-000-000-000-001",
11404
+ anonymous: "985-000-000-000-000-000-002",
11405
+ data_not_collected: "985-000-000-000-000-000-003",
11406
+ active: "985-001-000-000-000-000-000",
11407
+ superseded: "985-002-000-000-000-000-000",
11408
+ retracted: "985-003-000-000-000-000-000"
11409
+ };
11410
+ var CreatedBySystemKeys = {
11411
+ missingness_root: "986-000-000-000-000-000-000",
11412
+ unknown: "986-000-000-000-000-000-001",
11413
+ anonymous: "986-000-000-000-000-000-002",
11414
+ data_not_collected: "986-000-000-000-000-000-003",
11415
+ human: "986-001-000-000-000-000-000",
11416
+ integration: "986-002-000-000-000-000-000",
11417
+ rules_engine: "986-003-000-000-000-000-000",
11418
+ model: "986-004-000-000-000-000-000"
11419
+ };
11420
+ var SubjectTypeKeys = {
11421
+ missingness_root: "987-000-000-000-000-000-000",
11422
+ unknown: "987-000-000-000-000-000-001",
11423
+ anonymous: "987-000-000-000-000-000-002",
11424
+ data_not_collected: "987-000-000-000-000-000-003",
11425
+ person: "987-001-000-000-000-000-000",
11426
+ relationship: "987-002-000-000-000-000-000",
11427
+ case: "987-003-000-000-000-000-000"
11428
+ };
11429
+ var MinorAdultStatusKeys = {
11430
+ missingness_root: "988-000-000-000-000-000-000",
11431
+ unknown: "988-000-000-000-000-000-001",
11432
+ anonymous: "988-000-000-000-000-000-002",
11433
+ data_not_collected: "988-000-000-000-000-000-003",
11434
+ minor: "988-001-000-000-000-000-000",
11435
+ adult: "988-002-000-000-000-000-000",
11436
+ indeterminate: "988-003-000-000-000-000-000"
11437
+ };
11438
+ var CriminalOrgCategoryKeys = {
11439
+ missingness_root: "990-000-000-000-000-000-000",
11440
+ unknown: "990-000-000-000-000-000-001",
11441
+ anonymous: "990-000-000-000-000-000-002",
11442
+ data_not_collected: "990-000-000-000-000-000-003",
11443
+ street_gang: "990-001-000-000-000-000-000",
11444
+ prison_gang: "990-002-000-000-000-000-000",
11445
+ outlaw_motorcycle_gang: "990-003-000-000-000-000-000",
11446
+ tco_cartel: "990-004-000-000-000-000-000",
11447
+ white_supremacist_extremist: "990-005-000-000-000-000-000",
11448
+ organized_crime_family: "990-006-000-000-000-000-000",
11449
+ familial_or_independent_trafficking_network: "990-007-000-000-000-000-000"
11450
+ };
11354
11451
 
11355
11452
  // src/services/cvcRegistryService.ts
11356
11453
  function cvcVersionsToRecord(versions) {
@@ -18953,6 +19050,98 @@ var sharePurpose_v1_0_0_default = {
18953
19050
  ]
18954
19051
  };
18955
19052
 
19053
+ // src/cvcs/referralOrigin.v1.0.0.json
19054
+ var referralOrigin_v1_0_0_default = {
19055
+ domain: "referral_origin",
19056
+ name: "Core Referral Origin",
19057
+ version: "1.0.0",
19058
+ levels: { "1": "Origin" },
19059
+ entries: [
19060
+ {
19061
+ code: "909-001-000-000-000-000-000",
19062
+ key: "internal",
19063
+ title: "Internal",
19064
+ selectable: true,
19065
+ parentCode: null,
19066
+ childCodes: [],
19067
+ definition: "A referral whose sending and receiving parties sit within the same agency or account boundary, so completing it involves no disclosure of client information across an organizational boundary."
19068
+ },
19069
+ {
19070
+ code: "909-002-000-000-000-000-000",
19071
+ key: "external",
19072
+ title: "External",
19073
+ selectable: true,
19074
+ parentCode: null,
19075
+ childCodes: [],
19076
+ definition: "A referral whose receiving party is a different agency, making acceptance a cross-agency disclosure of client information. Where an implementation cannot positively determine the origin, it must treat the referral as external, so that the stronger disclosure controls apply by default rather than the weaker ones."
19077
+ }
19078
+ ]
19079
+ };
19080
+
19081
+ // src/cvcs/caseShareState.v1.0.0.json
19082
+ var caseShareState_v1_0_0_default = {
19083
+ domain: "case_share_state",
19084
+ name: "Core Case Share State",
19085
+ version: "1.0.0",
19086
+ levels: { "1": "State" },
19087
+ entries: [
19088
+ {
19089
+ code: "925-001-000-000-000-000-000",
19090
+ key: "pending",
19091
+ title: "Pending",
19092
+ selectable: true,
19093
+ parentCode: null,
19094
+ childCodes: [],
19095
+ definition: "The share has been delivered to the receiving party and is awaiting a claim. No one on the receiving side has taken responsibility for it yet, and no client content has been disclosed."
19096
+ },
19097
+ {
19098
+ code: "925-002-000-000-000-000-000",
19099
+ key: "claimed",
19100
+ title: "Claimed",
19101
+ selectable: true,
19102
+ parentCode: null,
19103
+ childCodes: [],
19104
+ definition: "A team on the receiving side has taken custody of the share but has not yet accepted it. Claiming assigns responsibility only; it discloses no client content, so a claimed share is still outstanding work rather than a completed exchange."
19105
+ },
19106
+ {
19107
+ code: "925-003-000-000-000-000-000",
19108
+ key: "accepted_awaiting_review",
19109
+ title: "Accepted \u2014 awaiting review",
19110
+ selectable: true,
19111
+ parentCode: null,
19112
+ childCodes: [],
19113
+ definition: "The share has been accepted and its content disclosed, but one or more delivered persons matched an existing record ambiguously and are held for a human decision before the receiving record is linked."
19114
+ },
19115
+ {
19116
+ code: "925-004-000-000-000-000-000",
19117
+ key: "accepted",
19118
+ title: "Accepted",
19119
+ selectable: true,
19120
+ parentCode: null,
19121
+ childCodes: [],
19122
+ definition: "The share has been accepted, its content disclosed, and the link to the receiving party's record written. Terminal."
19123
+ },
19124
+ {
19125
+ code: "925-005-000-000-000-000-000",
19126
+ key: "declined",
19127
+ title: "Declined",
19128
+ selectable: true,
19129
+ parentCode: null,
19130
+ childCodes: [],
19131
+ definition: "The receiving party refused the share at the claim decision point, BEFORE its content was disclosed. Distinct from rejected: no client information was released, so the refusal carries no disclosure to account for. Terminal."
19132
+ },
19133
+ {
19134
+ code: "925-006-000-000-000-000-000",
19135
+ key: "rejected",
19136
+ title: "Rejected",
19137
+ selectable: true,
19138
+ parentCode: null,
19139
+ childCodes: [],
19140
+ definition: "The receiving party refused the share AFTER accepting it and reviewing its content. Distinct from declined: the disclosure already occurred and remains subject to the receiving party's retention and audit obligations. Terminal."
19141
+ }
19142
+ ]
19143
+ };
19144
+
18956
19145
  // src/cvcs/facilitatorEntityType.v1.0.0.json
18957
19146
  var facilitatorEntityType_v1_0_0_default = {
18958
19147
  domain: "facilitator_entity_type",
@@ -38085,8 +38274,8 @@ var coreIndicators_v1_0_0_default = {
38085
38274
  domain: "core_indicators",
38086
38275
  name: "Core Indicators (CVC-136)",
38087
38276
  version: "1.0.0",
38088
- _status: "CANONICAL \u2014 re-sourced 0.8.13 from the live canonical catalog `data/core_indicators.yaml` @ prototype HEAD a596eb9 (208 codes), plus 2 codes that @hti/scoring (`weights/risk.weights.json` @ 9b5d654, `emits_by_code`) emits but the codebook has not yet adopted (`coercive_debt_pressure_youth`, `debt_terms_deceptive_youth`) = 210 substantive codes. 0.8.12 shipped 199 hand-coded codes in `src/constants/ic.ts` (`CVC_136_CORE_INDICATOR_VALUES`); 54 of those were invented rollup prefixes (`vc_*`, `csi_*`, `csctx_*`, `dv_*`, `net_*`, `auto_*`) with zero occurrences upstream and zero consumers in @hti/scoring, and 1 (`unusual_work_circumstances_general`) was coined from a label's parenthetical; all 55 are WITHDRAWN. 66 canonical codes that were missing are ADDED. Math: 199 - 1 - 54 + 66 = 210. HARD INVARIANT (enforced by `src/__tests__/cvc-136-scoring-invariant.test.ts`): every one of the 169 codes in @hti/scoring's `emits_by_code` is present in this domain. Entry attributes `family` / `polarity` / `severity` / `isAlert` / `alertWhen` are carried verbatim from the canonical catalog. `isAlert` is the ALERT AXIS: the alert list is a DERIVED VIEW over this domain (isAlert in {thread_pave, platform, pave}), not a separate taxonomy.",
38089
- _source: "htilabstech/prototype@a596eb9 data/core_indicators.yaml + htilabstech/hti-scoring@9b5d654 weights/risk.weights.json (emits_by_code)",
38277
+ _status: "CANONICAL \u2014 re-sourced 0.11.1 from the live canonical catalog `data/core_indicators.yaml` @ prototype HEAD 84a1b677 (213 codes; +5 vs the 0.8.13 pin a596eb9, 0 withdrawn), plus 2 codes that @hti/scoring (`weights/risk.weights.json` @ 9b5d654, `emits_by_code`) emits but the codebook has not yet adopted (`coercive_debt_pressure_youth`, `debt_terms_deceptive_youth`), each flagged `pendingUpstreamAdoption: true`. 215 substantive + the missingness quadruplet = 219 entries. New codes are APPENDED at 211-215 so every previously issued positional code stays stable.",
38278
+ _source: "htilabstech/prototype@84a1b677 data/core_indicators.yaml + htilabstech/hti-scoring@9b5d654 weights/risk.weights.json (emits_by_code)",
38090
38279
  levels: {
38091
38280
  "0": "Unknown or Missing",
38092
38281
  "1": "Indicator"
@@ -40922,6 +41111,71 @@ TRA Phase 3 Batch B apply per recs doc \xA7 4.2 + Crysta Q-3 sign-off.`,
40922
41111
  polarity: "increases_risk",
40923
41112
  severity: "elevated",
40924
41113
  isAlert: "none"
41114
+ },
41115
+ {
41116
+ code: "136-211-000-000-000-000-000",
41117
+ key: "clients_unaware_of_third_party_coordination",
41118
+ title: "Clients unaware they are coordinating with a third party (concealed dispatch)",
41119
+ selectable: true,
41120
+ parentCode: null,
41121
+ childCodes: [],
41122
+ definition: `LEADS TRA-7-aware captured that sex buyers reaching out to "the person" are in fact coordinating with a third party (dispatcher / manager / call service) WITHOUT knowing it \u2014 a concealed-intermediary booking pattern. Concealment of the coordinating third party from buyers is a control + facilitation marker over and above third-party coordination itself (which TRA-7 sometimes/never + TRA-7-who already capture): the operation is actively passing as the provider. Authored 2026-07-17 (TRA-VETTING, Crysta: "let's author one") for the restored production follow-up question.`,
41123
+ family: "mechanism_control",
41124
+ polarity: "increases_risk",
41125
+ severity: "elevated",
41126
+ isAlert: "none"
41127
+ },
41128
+ {
41129
+ code: "136-212-000-000-000-000-000",
41130
+ key: "depends_on_spouse_or_family_for_immigration_status",
41131
+ title: "Depends on spouse / family member for immigration status (tied family visa)",
41132
+ selectable: true,
41133
+ parentCode: null,
41134
+ childCodes: [],
41135
+ definition: `Indication the person's legal ability to remain in the U.S. depends on a spouse, fianc\xE9(e), or family member (family/fianc\xE9-based immigrant visa or derivative status) while their current status is a valid or overstayed visa. The family twin of depends_on_employer_for_immigration_status: a visa tied to a potentially abusive relationship is a major dependence vulnerability and a coercion lever ("stay / comply or lose your status"). Authored 2026-07-17 (TRA-VETTING open-items round, Crysta: dependence "whether it is via your husband or your employer is a MAJOR vulnerability").`,
41136
+ family: "mechanism_control",
41137
+ polarity: "depends",
41138
+ severity: "elevated",
41139
+ isAlert: "none"
41140
+ },
41141
+ {
41142
+ code: "136-213-000-000-000-000-000",
41143
+ key: "sexualized_content_in_person_performance_activity",
41144
+ title: "In-person sexualized performance / appearance-based activity",
41145
+ selectable: true,
41146
+ parentCode: null,
41147
+ childCodes: [],
41148
+ definition: "Canonical activity evidence (DH \xA7 II Activity 2.2.3) that the person engages in in-person sexualized, erotic, appearance-based, or entertainment activity with sexualized expectations \u2014 stripping, dancing, posing, hostess or venue work, escort/companionship without an established sex act \u2014 sex-market-adjacent, recorded descriptively; not necessarily a sex act for value.",
41149
+ family: "cs_industry_context",
41150
+ polarity: "increases_risk",
41151
+ severity: "elevated",
41152
+ isAlert: "none"
41153
+ },
41154
+ {
41155
+ code: "136-214-000-000-000-000-000",
41156
+ key: "sexualized_content_online_performance_activity",
41157
+ title: "Online sexual performance / interactive sexual content activity",
41158
+ selectable: true,
41159
+ parentCode: null,
41160
+ childCodes: [],
41161
+ definition: "Canonical activity evidence (DH \xA7 II Activity 2.2.2) that the person engages in sexualized or sexually explicit activity performed, streamed, recorded, messaged, or displayed through online or digital platforms \u2014 webcamming, livestreams, paid chats, content-platform work \u2014 recorded descriptively whether or not a commercial sex act is established.",
41162
+ family: "cs_industry_context",
41163
+ polarity: "increases_risk",
41164
+ severity: "elevated",
41165
+ isAlert: "none"
41166
+ },
41167
+ {
41168
+ code: "136-215-000-000-000-000-000",
41169
+ key: "trauma_perpetrator_is_current_manager",
41170
+ title: "Trauma perpetrator is a current manager / facilitator (trauma-bonded control)",
41171
+ selectable: true,
41172
+ parentCode: null,
41173
+ childCodes: [],
41174
+ definition: 'ENGINE-DERIVED conjunction: the same person the subject named as a trauma perpetrator (TRA-35 sexual violence / physical abuse / emotional-verbal-stalking capture) ALSO holds an operational-control edge over the subject (a TRA facilitation who-answer \u2014 posts ads / arranges dates / controls or keeps earnings / receives payments / organizes travel / holds documentation / above in the operation \u2014 or a relationship pair with a facilitator/offender role signal of their own). Two independently-captured facts joined on person identity \u2014 never an assumption (Crysta 2026-07-17: "these are two different questions"). The conjunction is the classic trauma-bonded, difficult-to-leave control situation.',
41175
+ family: "mechanism_control",
41176
+ polarity: "increases_risk",
41177
+ severity: "severe",
41178
+ isAlert: "none"
40925
41179
  }
40926
41180
  ]
40927
41181
  };
@@ -48611,6 +48865,441 @@ var suggestionSource_v1_0_0_default = {
48611
48865
  }
48612
48866
  ]
48613
48867
  };
48868
+
48869
+ // src/cvcs/assertionStatus.v1.0.0.json
48870
+ var assertionStatus_v1_0_0_default = {
48871
+ domain: "assertion_status",
48872
+ name: "Assertion Status",
48873
+ version: "1.0.0",
48874
+ _status: "PROVISIONAL \u2014 GDR \xA710.1 confirmed-CVC name is `core - status`, but Final CVCs/CVC_INDEX.md @ a596eb9 carries no number for it, so it parks in the provisional 900-block pending canonical Notion authoring + steward ratification. Substantive values sourced verbatim from the PAVE @pave/domain `ASSERTION_STATUSES` enum (D10 GDR \xA710.1 bulk publish, bead pv-pgdr-cvc-source-gdr-10-1-bulk-publish). The PAVE enum enumerates only the substantive lifecycle states, so the missingness quadruplet is added per SOT convention.",
48875
+ _source: "pave-2.0/packages/domain/src/enums.ts ASSERTION_STATUSES",
48876
+ levels: {
48877
+ "0": "Unknown or Missing",
48878
+ "1": "Assertion lifecycle status"
48879
+ },
48880
+ entries: [
48881
+ {
48882
+ code: "985-000-000-000-000-000-000",
48883
+ key: "missingness_root",
48884
+ title: "Unknown, Redacted, or Missing",
48885
+ selectable: false,
48886
+ parentCode: null,
48887
+ childCodes: [
48888
+ "985-000-000-000-000-000-001",
48889
+ "985-000-000-000-000-000-002",
48890
+ "985-000-000-000-000-000-003"
48891
+ ],
48892
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
48893
+ },
48894
+ {
48895
+ code: "985-000-000-000-000-000-001",
48896
+ key: "unknown",
48897
+ title: "Unknown",
48898
+ selectable: true,
48899
+ parentCode: "985-000-000-000-000-000-000",
48900
+ childCodes: [],
48901
+ definition: "The assertion status is unknown at time of entry (missingness sentinel)."
48902
+ },
48903
+ {
48904
+ code: "985-000-000-000-000-000-002",
48905
+ key: "anonymous",
48906
+ title: "Anonymous / declined to answer",
48907
+ selectable: true,
48908
+ parentCode: "985-000-000-000-000-000-000",
48909
+ childCodes: [],
48910
+ definition: "Value is intentionally withheld, declined, or redacted."
48911
+ },
48912
+ {
48913
+ code: "985-000-000-000-000-000-003",
48914
+ key: "data_not_collected",
48915
+ title: "Data not collected",
48916
+ selectable: true,
48917
+ parentCode: "985-000-000-000-000-000-000",
48918
+ childCodes: [],
48919
+ definition: "No attempt was made to collect the value."
48920
+ },
48921
+ {
48922
+ code: "985-001-000-000-000-000-000",
48923
+ key: "active",
48924
+ title: "Active",
48925
+ selectable: true,
48926
+ parentCode: null,
48927
+ childCodes: [],
48928
+ definition: 'In force \u2014 the current, non-superseded row for its spine partition. Emitting systems typically default new assertions to this status (e.g. PAVE\'s assertion factory defaults `status: "active"`).'
48929
+ },
48930
+ {
48931
+ code: "985-002-000-000-000-000-000",
48932
+ key: "superseded",
48933
+ title: "Superseded",
48934
+ selectable: true,
48935
+ parentCode: null,
48936
+ childCodes: [],
48937
+ definition: 'Replaced by a later assertion row in the same spine partition. When status === "superseded", `supersedes_assertion_id` is required per GLOBAL_DESIGN_RULES \xA75.5.'
48938
+ },
48939
+ {
48940
+ code: "985-003-000-000-000-000-000",
48941
+ key: "retracted",
48942
+ title: "Retracted",
48943
+ selectable: true,
48944
+ parentCode: null,
48945
+ childCodes: [],
48946
+ definition: "Withdrawn or invalidated without a replacement row \u2014 the claim is no longer asserted. Distinct from superseded (which points at a successor)."
48947
+ }
48948
+ ]
48949
+ };
48950
+
48951
+ // src/cvcs/createdBySystem.v1.0.0.json
48952
+ var createdBySystem_v1_0_0_default = {
48953
+ domain: "created_by_system",
48954
+ name: "Created By System",
48955
+ version: "1.0.0",
48956
+ _status: "PROVISIONAL \u2014 GDR \xA710.1 confirmed-CVC name is `core - created_by_system`, but Final CVCs/CVC_INDEX.md @ a596eb9 carries no number for it, so it parks in the provisional 900-block pending canonical Notion authoring + steward ratification. Substantive values sourced verbatim from the PAVE @pave/domain `CREATED_BY_SYSTEMS` enum (D10 GDR \xA710.1 bulk publish, bead pv-pgdr-cvc-source-gdr-10-1-bulk-publish). The PAVE enum enumerates only the substantive actor classes, so the missingness quadruplet is added per SOT convention.",
48957
+ _source: "pave-2.0/packages/domain/src/enums.ts CREATED_BY_SYSTEMS",
48958
+ levels: {
48959
+ "0": "Unknown or Missing",
48960
+ "1": "Creating actor class"
48961
+ },
48962
+ entries: [
48963
+ {
48964
+ code: "986-000-000-000-000-000-000",
48965
+ key: "missingness_root",
48966
+ title: "Unknown, Redacted, or Missing",
48967
+ selectable: false,
48968
+ parentCode: null,
48969
+ childCodes: [
48970
+ "986-000-000-000-000-000-001",
48971
+ "986-000-000-000-000-000-002",
48972
+ "986-000-000-000-000-000-003"
48973
+ ],
48974
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
48975
+ },
48976
+ {
48977
+ code: "986-000-000-000-000-000-001",
48978
+ key: "unknown",
48979
+ title: "Unknown",
48980
+ selectable: true,
48981
+ parentCode: "986-000-000-000-000-000-000",
48982
+ childCodes: [],
48983
+ definition: "The creating actor class is unknown at time of entry (missingness sentinel)."
48984
+ },
48985
+ {
48986
+ code: "986-000-000-000-000-000-002",
48987
+ key: "anonymous",
48988
+ title: "Anonymous / declined to answer",
48989
+ selectable: true,
48990
+ parentCode: "986-000-000-000-000-000-000",
48991
+ childCodes: [],
48992
+ definition: "Value is intentionally withheld, declined, or redacted."
48993
+ },
48994
+ {
48995
+ code: "986-000-000-000-000-000-003",
48996
+ key: "data_not_collected",
48997
+ title: "Data not collected",
48998
+ selectable: true,
48999
+ parentCode: "986-000-000-000-000-000-000",
49000
+ childCodes: [],
49001
+ definition: "No attempt was made to collect the value."
49002
+ },
49003
+ {
49004
+ code: "986-001-000-000-000-000-000",
49005
+ key: "human",
49006
+ title: "Human",
49007
+ selectable: true,
49008
+ parentCode: null,
49009
+ childCodes: [],
49010
+ definition: 'A person created the assertion row directly. Emitting systems typically default to this value (e.g. PAVE\'s assertion factory defaults `createdBySystem: "human"`).'
49011
+ },
49012
+ {
49013
+ code: "986-002-000-000-000-000-000",
49014
+ key: "integration",
49015
+ title: "Integration",
49016
+ selectable: true,
49017
+ parentCode: null,
49018
+ childCodes: [],
49019
+ definition: "An external-system integration created the row (cross-app ingest, imports, connected systems). Pair with source/provenance fields for the originating system."
49020
+ },
49021
+ {
49022
+ code: "986-003-000-000-000-000-000",
49023
+ key: "rules_engine",
49024
+ title: "Rules engine",
49025
+ selectable: true,
49026
+ parentCode: null,
49027
+ childCodes: [],
49028
+ definition: "Deterministic business logic or a rules engine created the row. `inference_type` is required when created_by_system \u2208 {rules_engine, model} per GLOBAL_DESIGN_RULES \xA75.5."
49029
+ },
49030
+ {
49031
+ code: "986-004-000-000-000-000-000",
49032
+ key: "model",
49033
+ title: "Model",
49034
+ selectable: true,
49035
+ parentCode: null,
49036
+ childCodes: [],
49037
+ definition: "An ML model or statistical scoring process created the row. `inference_type` is required when created_by_system \u2208 {rules_engine, model} per GLOBAL_DESIGN_RULES \xA75.5."
49038
+ }
49039
+ ]
49040
+ };
49041
+
49042
+ // src/cvcs/subjectType.v1.0.0.json
49043
+ var subjectType_v1_0_0_default = {
49044
+ domain: "subject_type",
49045
+ name: "Subject Type",
49046
+ version: "1.0.0",
49047
+ _status: "PROVISIONAL \u2014 GDR \xA710.1 confirmed-CVC name is `core - subject_type`, but Final CVCs/CVC_INDEX.md @ a596eb9 carries no number for it, so it parks in the provisional 900-block pending canonical Notion authoring + steward ratification. Substantive values sourced verbatim from the PAVE @pave/domain `SUBJECT_TYPES` enum (D10 GDR \xA710.1 bulk publish, bead pv-pgdr-cvc-source-gdr-10-1-bulk-publish). The PAVE enum enumerates only the substantive entity kinds, so the missingness quadruplet is added per SOT convention.",
49048
+ _source: "pave-2.0/packages/domain/src/enums.ts SUBJECT_TYPES",
49049
+ levels: {
49050
+ "0": "Unknown or Missing",
49051
+ "1": "Assertion subject type"
49052
+ },
49053
+ entries: [
49054
+ {
49055
+ code: "987-000-000-000-000-000-000",
49056
+ key: "missingness_root",
49057
+ title: "Unknown, Redacted, or Missing",
49058
+ selectable: false,
49059
+ parentCode: null,
49060
+ childCodes: [
49061
+ "987-000-000-000-000-000-001",
49062
+ "987-000-000-000-000-000-002",
49063
+ "987-000-000-000-000-000-003"
49064
+ ],
49065
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
49066
+ },
49067
+ {
49068
+ code: "987-000-000-000-000-000-001",
49069
+ key: "unknown",
49070
+ title: "Unknown",
49071
+ selectable: true,
49072
+ parentCode: "987-000-000-000-000-000-000",
49073
+ childCodes: [],
49074
+ definition: "The subject type is unknown at time of entry (missingness sentinel)."
49075
+ },
49076
+ {
49077
+ code: "987-000-000-000-000-000-002",
49078
+ key: "anonymous",
49079
+ title: "Anonymous / declined to answer",
49080
+ selectable: true,
49081
+ parentCode: "987-000-000-000-000-000-000",
49082
+ childCodes: [],
49083
+ definition: "Value is intentionally withheld, declined, or redacted."
49084
+ },
49085
+ {
49086
+ code: "987-000-000-000-000-000-003",
49087
+ key: "data_not_collected",
49088
+ title: "Data not collected",
49089
+ selectable: true,
49090
+ parentCode: "987-000-000-000-000-000-000",
49091
+ childCodes: [],
49092
+ definition: "No attempt was made to collect the value."
49093
+ },
49094
+ {
49095
+ code: "987-001-000-000-000-000-000",
49096
+ key: "person",
49097
+ title: "Person",
49098
+ selectable: true,
49099
+ parentCode: null,
49100
+ childCodes: [],
49101
+ definition: 'The assertion is about a person; `subject_id` resolves to a person record. Emitting systems typically default to this value (e.g. PAVE\'s assertion factory defaults `subjectType: "person"`).'
49102
+ },
49103
+ {
49104
+ code: "987-002-000-000-000-000-000",
49105
+ key: "relationship",
49106
+ title: "Relationship",
49107
+ selectable: true,
49108
+ parentCode: null,
49109
+ childCodes: [],
49110
+ definition: "The assertion is about a relationship between people; `subject_id` resolves to a relationship record."
49111
+ },
49112
+ {
49113
+ code: "987-003-000-000-000-000-000",
49114
+ key: "case",
49115
+ title: "Case",
49116
+ selectable: true,
49117
+ parentCode: null,
49118
+ childCodes: [],
49119
+ definition: "The assertion is about a case; `subject_id` resolves to a case record."
49120
+ }
49121
+ ]
49122
+ };
49123
+
49124
+ // src/cvcs/minorAdultStatus.v1.0.0.json
49125
+ var minorAdultStatus_v1_0_0_default = {
49126
+ domain: "minor_adult_status",
49127
+ name: "Minor / Adult Status (age band at event)",
49128
+ version: "1.0.0",
49129
+ _status: "PROVISIONAL \u2014 GDR \xA710.1 confirmed-CVC name is `core - minor_adult_status`, and the canonical index DOES number this concept (Final CVCs/CVC_INDEX.md @ a596eb9: CVC-61 `minor_adult_status`) \u2014 but the CVC-61 Notion codebook has 0 entries anywhere, and ADR-CVC-0.8.13-canonical-alignment \xA7Deliberately-NOT-authored (NARRATIVE_ONLY) deliberately declined to author at 61 to avoid manufacturing canonical drift. This vocabulary therefore parks in the provisional 900-block; RENUMBER 988 \u2192 61 when the CVC-61 Notion codebook gains substantive entries (and reconcile membership at that point). Substantive values sourced verbatim from the PAVE @pave/domain `AGE_BANDS_AT_EVENT` enum (D10 GDR \xA710.1 bulk publish, bead pv-pgdr-cvc-source-gdr-10-1-bulk-publish): PAVE's `minor` / `adult` / `indeterminate` stay substantive; PAVE's fourth member `unknown` maps to the canonical missingness `unknown` sentinel (same realignment shape as the ROLE_CONTEXTS 0.7.0 bind), so every PAVE member remains expressible. Distinct from the numeric IC constant MINOR_ADULT_STATUS in constants/ic.ts (IC layer, 1/2/99) \u2014 that is a different encoding layer, not a parallel CVC.",
49130
+ _source: "pave-2.0/packages/domain/src/enums.ts AGE_BANDS_AT_EVENT",
49131
+ levels: {
49132
+ "0": "Unknown or Missing",
49133
+ "1": "Minor / adult status at event"
49134
+ },
49135
+ entries: [
49136
+ {
49137
+ code: "988-000-000-000-000-000-000",
49138
+ key: "missingness_root",
49139
+ title: "Unknown, Redacted, or Missing",
49140
+ selectable: false,
49141
+ parentCode: null,
49142
+ childCodes: [
49143
+ "988-000-000-000-000-000-001",
49144
+ "988-000-000-000-000-000-002",
49145
+ "988-000-000-000-000-000-003"
49146
+ ],
49147
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
49148
+ },
49149
+ {
49150
+ code: "988-000-000-000-000-000-001",
49151
+ key: "unknown",
49152
+ title: "Unknown",
49153
+ selectable: true,
49154
+ parentCode: "988-000-000-000-000-000-000",
49155
+ childCodes: [],
49156
+ definition: "The age band is unknown \u2014 not assessed or not recorded (missingness sentinel). Carries PAVE's `unknown` member of AGE_BANDS_AT_EVENT."
49157
+ },
49158
+ {
49159
+ code: "988-000-000-000-000-000-002",
49160
+ key: "anonymous",
49161
+ title: "Anonymous / declined to answer",
49162
+ selectable: true,
49163
+ parentCode: "988-000-000-000-000-000-000",
49164
+ childCodes: [],
49165
+ definition: "Value is intentionally withheld, declined, or redacted."
49166
+ },
49167
+ {
49168
+ code: "988-000-000-000-000-000-003",
49169
+ key: "data_not_collected",
49170
+ title: "Data not collected",
49171
+ selectable: true,
49172
+ parentCode: "988-000-000-000-000-000-000",
49173
+ childCodes: [],
49174
+ definition: "No attempt was made to collect the value."
49175
+ },
49176
+ {
49177
+ code: "988-001-000-000-000-000-000",
49178
+ key: "minor",
49179
+ title: "Minor (under 18)",
49180
+ selectable: true,
49181
+ parentCode: null,
49182
+ childCodes: [],
49183
+ definition: "The subject was under 18 when the asserted event occurred."
49184
+ },
49185
+ {
49186
+ code: "988-002-000-000-000-000-000",
49187
+ key: "adult",
49188
+ title: "Adult (18+)",
49189
+ selectable: true,
49190
+ parentCode: null,
49191
+ childCodes: [],
49192
+ definition: "The subject was 18 or older when the asserted event occurred."
49193
+ },
49194
+ {
49195
+ code: "988-003-000-000-000-000-000",
49196
+ key: "indeterminate",
49197
+ title: "Indeterminate",
49198
+ selectable: true,
49199
+ parentCode: null,
49200
+ childCodes: [],
49201
+ definition: "The age band cannot be determined from the available evidence \u2014 a positive determination of indeterminacy (e.g. conflicting or insufficient evidence), distinct from the `unknown` missingness sentinel (not assessed / not recorded)."
49202
+ }
49203
+ ]
49204
+ };
49205
+
49206
+ // src/cvcs/hmisSex.v1.0.0.json
49207
+ var hmisSex_v1_0_0_default = {
49208
+ domain: "hmis_sex",
49209
+ name: "Core HMIS Sex",
49210
+ version: "1.0.0",
49211
+ levels: {
49212
+ "0": "Unknown or Missing",
49213
+ "1": "Sex"
49214
+ },
49215
+ entries: [
49216
+ {
49217
+ code: "067-000-000-000-000-000-000",
49218
+ key: "missingness_root",
49219
+ title: "Unknown, Redacted, or Missing",
49220
+ selectable: false,
49221
+ parentCode: null,
49222
+ childCodes: [
49223
+ "067-000-000-000-000-000-001",
49224
+ "067-000-000-000-000-000-002",
49225
+ "067-000-000-000-000-000-003",
49226
+ "067-000-000-000-000-000-004",
49227
+ "067-000-000-000-000-000-005"
49228
+ ],
49229
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
49230
+ },
49231
+ {
49232
+ code: "067-000-000-000-000-000-001",
49233
+ key: "unknown",
49234
+ title: "Unknown",
49235
+ selectable: true,
49236
+ parentCode: "067-000-000-000-000-000-000",
49237
+ childCodes: [],
49238
+ definition: "Value is unknown at time of entry."
49239
+ },
49240
+ {
49241
+ code: "067-000-000-000-000-000-002",
49242
+ key: "anonymous",
49243
+ title: "Anonymous",
49244
+ selectable: true,
49245
+ parentCode: "067-000-000-000-000-000-000",
49246
+ childCodes: [],
49247
+ definition: "Value is intentionally withheld or redacted."
49248
+ },
49249
+ {
49250
+ code: "067-000-000-000-000-000-003",
49251
+ key: "data_not_collected",
49252
+ title: "Data not collected",
49253
+ selectable: true,
49254
+ parentCode: "067-000-000-000-000-000-000",
49255
+ childCodes: [],
49256
+ definition: "Use this response if the staff does not ask the person to provide their sex."
49257
+ },
49258
+ {
49259
+ code: "067-000-000-000-000-000-004",
49260
+ key: "client_doesn_t_know",
49261
+ title: "Client doesn't know",
49262
+ selectable: true,
49263
+ parentCode: "067-000-000-000-000-000-000",
49264
+ childCodes: [],
49265
+ definition: `"Client doesn't know" should only be selected when a person does not know their sex from among the responses.`
49266
+ },
49267
+ {
49268
+ code: "067-000-000-000-000-000-005",
49269
+ key: "client_prefers_not_to_answer",
49270
+ title: "Client prefers not to answer",
49271
+ selectable: true,
49272
+ parentCode: "067-000-000-000-000-000-000",
49273
+ childCodes: [],
49274
+ definition: '"Client prefers not to answer" should only be selected when a person chooses not to identify their sex from among the responses.'
49275
+ },
49276
+ {
49277
+ code: "067-001-000-000-000-000-000",
49278
+ key: "female",
49279
+ title: "Female",
49280
+ selectable: true,
49281
+ parentCode: null,
49282
+ childCodes: [],
49283
+ definition: "A person of the sex characterized by a reproductive system with the biological function of producing eggs (ova)."
49284
+ },
49285
+ {
49286
+ code: "067-002-000-000-000-000-000",
49287
+ key: "male",
49288
+ title: "Male",
49289
+ selectable: true,
49290
+ parentCode: null,
49291
+ childCodes: [],
49292
+ definition: "A person of the sex characterized by a reproductive system with the biological function of producing sperm."
49293
+ }
49294
+ ]
49295
+ };
49296
+
49297
+ // src/index.ts
49298
+ var selectableCodes = (envelope) => envelope.entries.filter((e) => e.selectable).map((e) => e.code);
49299
+ var CVC_137_VALUES = selectableCodes(recencyBand_v1_0_0_default);
49300
+ var CVC_197_VALUES = selectableCodes(
49301
+ juvenileJusticeEpisodeType_v1_0_0_default
49302
+ );
48614
49303
  // Annotate the CommonJS export names for ESM import in node:
48615
49304
  0 && (module.exports = {
48616
49305
  ACCOMMODATION_LABELS,
@@ -48631,6 +49320,7 @@ var suggestionSource_v1_0_0_default = {
48631
49320
  AnnouncementAudienceScopeKeys,
48632
49321
  AnnouncementResponseTypeKeys,
48633
49322
  AssertionDomainKeys,
49323
+ AssertionStatusKeys,
48634
49324
  BIRTH_LOCATION,
48635
49325
  BIRTH_LOCATION_LABELS,
48636
49326
  BIRTH_LOCATION_VALUES,
@@ -48668,6 +49358,7 @@ var suggestionSource_v1_0_0_default = {
48668
49358
  CVC_136_OPTIONS,
48669
49359
  CVC_136_TYPE_TO_CATEGORY,
48670
49360
  CVC_136_VALUES,
49361
+ CVC_137_VALUES,
48671
49362
  CVC_145_CATEGORY,
48672
49363
  CVC_145_CATEGORY_LABELS,
48673
49364
  CVC_145_CATEGORY_ORDER,
@@ -48745,6 +49436,7 @@ var suggestionSource_v1_0_0_default = {
48745
49436
  CVC_196_CHILD_WELFARE_EPISODE_TYPE,
48746
49437
  CVC_196_LABELS,
48747
49438
  CVC_196_VALUES,
49439
+ CVC_197_VALUES,
48748
49440
  CVC_1_LABELS,
48749
49441
  CVC_1_NAME_TYPE,
48750
49442
  CVC_1_STRUCTURED_NAME_TYPES,
@@ -48778,6 +49470,7 @@ var suggestionSource_v1_0_0_default = {
48778
49470
  CVC_99_ENGLISH_PROFICIENCY,
48779
49471
  CVC_99_LABELS,
48780
49472
  CVC_99_VALUES,
49473
+ CaseShareStateKeys,
48781
49474
  CheckInActivityKeys,
48782
49475
  CheckInPhaseKeys,
48783
49476
  ChildBehavioralConcernsKeys,
@@ -48792,6 +49485,8 @@ var suggestionSource_v1_0_0_default = {
48792
49485
  CoreFunctionsKeys,
48793
49486
  CoreIndicatorKeys,
48794
49487
  CoreReferralOutcomeKeys,
49488
+ CreatedBySystemKeys,
49489
+ CriminalOrgCategoryKeys,
48795
49490
  CvcCodeSchema,
48796
49491
  CvcEntrySchema,
48797
49492
  CvcEnvelopeSchema,
@@ -48931,6 +49626,7 @@ var suggestionSource_v1_0_0_default = {
48931
49626
  MilestoneTypeKeys,
48932
49627
  MilitaryBranchKeys,
48933
49628
  MilitaryStatusKeys,
49629
+ MinorAdultStatusKeys,
48934
49630
  NameTypeKeys,
48935
49631
  NeedsAssessmentChangeTypeKeys,
48936
49632
  NeedsResidentialAgainKeys,
@@ -48985,6 +49681,7 @@ var suggestionSource_v1_0_0_default = {
48985
49681
  RecencyBandKeys,
48986
49682
  ReferenceLinkTypeKeys,
48987
49683
  ReferralEntityCategoryKeys,
49684
+ ReferralOriginKeys,
48988
49685
  RelationshipConcernKeys,
48989
49686
  RelationshipDynamicsKeys,
48990
49687
  RelationshipStatusCurrentKeys,
@@ -49031,6 +49728,7 @@ var suggestionSource_v1_0_0_default = {
49031
49728
  SourceSubtypeKeys,
49032
49729
  SourceSystemKeys,
49033
49730
  SpecialNeedsDisabilitiesKeys,
49731
+ SubjectTypeKeys,
49034
49732
  SubstanceUseStatusKeys,
49035
49733
  SuggestionSourceKeys,
49036
49734
  SupportStrengthKeys,
@@ -49064,6 +49762,7 @@ var suggestionSource_v1_0_0_default = {
49064
49762
  announcementResponseTypeSot,
49065
49763
  applyEntryOverrides,
49066
49764
  assertionDomainSot,
49765
+ assertionStatusSot,
49067
49766
  basisQuickPicksSot,
49068
49767
  buildCvcEntrySchema,
49069
49768
  buildCvcRegistrySchema,
@@ -49074,6 +49773,7 @@ var suggestionSource_v1_0_0_default = {
49074
49773
  buildScoringRuleSchema,
49075
49774
  buildSectionSchema,
49076
49775
  cascadeExclusions,
49776
+ caseShareStateSot,
49077
49777
  checkInActivitySot,
49078
49778
  checkInPhaseSot,
49079
49779
  childBehavioralConcernsSot,
@@ -49093,6 +49793,7 @@ var suggestionSource_v1_0_0_default = {
49093
49793
  coreIndicatorsSot,
49094
49794
  coreReferralOutcomeSot,
49095
49795
  createPlatformModels,
49796
+ createdBySystemSot,
49096
49797
  cvcEntryModel,
49097
49798
  cvcEntrySchemaDefinition,
49098
49799
  cvcEntrySchemaOptions,
@@ -49154,6 +49855,7 @@ var suggestionSource_v1_0_0_default = {
49154
49855
  hmisCurrentLivingSituationSot,
49155
49856
  hmisProjectTypeSot,
49156
49857
  hmisRelationshipToHohSot,
49858
+ hmisSexSot,
49157
49859
  homelessStatusSot,
49158
49860
  hopeScaleCaptureContextSot,
49159
49861
  hopeScaleResponseOptionsSot,
@@ -49189,6 +49891,7 @@ var suggestionSource_v1_0_0_default = {
49189
49891
  milestoneTypeSot,
49190
49892
  militaryBranchSot,
49191
49893
  militaryStatusSot,
49894
+ minorAdultStatusSot,
49192
49895
  nameTypeSot,
49193
49896
  needsAssessmentChangeTypeSot,
49194
49897
  needsResidentialAgainSot,
@@ -49225,6 +49928,7 @@ var suggestionSource_v1_0_0_default = {
49225
49928
  recencyBandSot,
49226
49929
  referenceLinkTypeSot,
49227
49930
  referralEntityCategorySot,
49931
+ referralOriginSot,
49228
49932
  relationshipConcernSot,
49229
49933
  relationshipDynamicsSot,
49230
49934
  relationshipStatusCurrentSot,
@@ -49275,6 +49979,7 @@ var suggestionSource_v1_0_0_default = {
49275
49979
  sourceSubtypeSot,
49276
49980
  sourceSystemSot,
49277
49981
  specialNeedsDisabilitiesSot,
49982
+ subjectTypeSot,
49278
49983
  substanceUseStatusSot,
49279
49984
  suggestionSourceSot,
49280
49985
  supportStrengthSot,