@htilabs/platform-common-models 0.8.16 → 0.8.18

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 (51) hide show
  1. package/dist/constants/index.cjs +3 -1
  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 +3 -1
  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 +4348 -17
  10. package/dist/cvcs/index.cjs.map +1 -1
  11. package/dist/cvcs/index.d.cts +10835 -6179
  12. package/dist/cvcs/index.d.ts +10835 -6179
  13. package/dist/cvcs/index.js +8776 -4447
  14. package/dist/cvcs/index.js.map +1 -1
  15. package/dist/{index-CDoqrfc1.d.ts → index-C0J3f169.d.ts} +1 -1
  16. package/dist/{index-Zu_mOJRn.d.cts → index-EPjPjR0z.d.cts} +1 -1
  17. package/dist/index.cjs +4690 -20
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +353 -8
  20. package/dist/index.d.ts +353 -8
  21. package/dist/index.js +4686 -20
  22. package/dist/index.js.map +1 -1
  23. package/dist/models/index.d.cts +2 -2
  24. package/dist/models/index.d.ts +2 -2
  25. package/dist/{platform-auth-AsfnIXfK.d.cts → platform-auth-CvQkzOy1.d.cts} +1 -1
  26. package/dist/{platform-auth-AsfnIXfK.d.ts → platform-auth-CvQkzOy1.d.ts} +1 -1
  27. package/dist/schemas/index.cjs.map +1 -1
  28. package/dist/schemas/index.d.cts +35 -35
  29. package/dist/schemas/index.d.ts +35 -35
  30. package/dist/schemas/index.js.map +1 -1
  31. package/dist/types/index.d.cts +2 -2
  32. package/dist/types/index.d.ts +2 -2
  33. package/package.json +26 -25
  34. package/src/__sot__/README.md +36 -1
  35. package/src/__sot__/coreIndicatorFields.ts +331 -0
  36. package/src/__sot__/coreIndicators.pin.json +1931 -2
  37. package/src/__sot__/cvcIndex.pin.json +8 -4
  38. package/src/__tests__/__snapshots__/cvc-sot.snap +8 -4
  39. package/src/__tests__/core-information-scope-invariant.test.ts +134 -0
  40. package/src/__tests__/cvc-136-scoring-invariant.test.ts +7 -5
  41. package/src/__tests__/cvc-181-182-country-parity.test.ts +163 -0
  42. package/src/__tests__/cvc-drift-gate.test.ts +392 -9
  43. package/src/__tests__/cvc-sot-snapshot.test.ts +17 -4
  44. package/src/__tests__/cvc-structural.test.ts +2 -0
  45. package/src/constants/ic.ts +88 -4
  46. package/src/cvcs/coreIndicators.v1.0.0.json +18 -5
  47. package/src/cvcs/coreInformationScope.v1.0.0.json +1165 -0
  48. package/src/cvcs/countries.v1.0.0.json +3077 -0
  49. package/src/cvcs/index.ts +4 -0
  50. package/src/cvcs/sharePurpose.v1.0.0.json +80 -12
  51. package/src/generated/cvc-enums.ts +352 -3
package/src/cvcs/index.ts CHANGED
@@ -158,6 +158,7 @@ import romanticRelationshipChangeTypeSot from "./romanticRelationshipChangeType.
158
158
  import riskCategorySot from "./riskCategory.v1.0.0.json" with { type: "json" };
159
159
  import coreFunctionsSot from "./coreFunctions.v1.0.0.json" with { type: "json" };
160
160
  import needsAssessmentChangeTypeSot from "./needsAssessmentChangeType.v1.0.0.json" with { type: "json" };
161
+ import coreInformationScopeSot from "./coreInformationScope.v1.0.0.json" with { type: "json" };
161
162
  import roiScopeSot from "./roiScope.v1.0.0.json" with { type: "json" };
162
163
  import roiStatusSot from "./roiStatus.v1.0.0.json" with { type: "json" };
163
164
  import coreReferralOutcomeSot from "./coreReferralOutcome.v1.0.0.json" with { type: "json" };
@@ -179,6 +180,7 @@ import sessionTemplateSot from "./sessionTemplate.v1.0.0.json" with { type: "jso
179
180
  import serviceDeliveryChannelSot from "./serviceDeliveryChannel.v1.0.0.json" with { type: "json" };
180
181
  import whyNotsSot from "./whyNots.v1.0.0.json" with { type: "json" };
181
182
  import citizenshipSot from "./citizenship.v1.0.0.json" with { type: "json" };
183
+ import countriesSot from "./countries.v1.0.0.json" with { type: "json" };
182
184
  import traffickingRelevantRoleSot from "./traffickingRelevantRole.v1.0.0.json" with { type: "json" };
183
185
  // Domains that were never exported from this barrel (found by the CVC drift gate).
184
186
  import activityTypeSot from "./activityType.v1.0.0.json" with { type: "json" };
@@ -350,6 +352,7 @@ export {
350
352
  riskCategorySot,
351
353
  coreFunctionsSot,
352
354
  needsAssessmentChangeTypeSot,
355
+ coreInformationScopeSot,
353
356
  roiScopeSot,
354
357
  roiStatusSot,
355
358
  coreReferralOutcomeSot,
@@ -371,6 +374,7 @@ export {
371
374
  serviceDeliveryChannelSot,
372
375
  whyNotsSot,
373
376
  citizenshipSot,
377
+ countriesSot,
374
378
  traffickingRelevantRoleSot,
375
379
  activityTypeSot,
376
380
  assertionDomainSot,
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "domain": "share_purpose",
3
3
  "name": "Core Share Purpose",
4
- "version": "1.0.0",
4
+ "version": "1.1.0",
5
+ "_status": "Synced verbatim from canonical CVC-84 (renamed `core-sharing_purpose` 2026-08-19). 8 core rows from `core_share_purpose.yaml` + 4 LEADS-wing rows from `core_share_purpose_extensions_leads.yaml`, which the prototype's `build_sharing_purpose_catalog.py` joins into the 12-row catalog. The wing rows were RATIFIED 2026-07-03 and live-synced 2026-08-19 (no longer proposal-only). 0.8.16 shipped the core 8 only, and shipped them WITHOUT the decision attributes — which is how a consumer came to map `deconfliction` and `automatic_account_share` onto each other's legacy policy rows. `setBy`, `wing`, `appScope` and `needToKnowArm` are now carried as data so that mapping is derivable rather than inferred from titles. Codes 084-001..008 are FROZEN at their published key assignment; the wing rows take 084-009..012, so nothing already stored changes meaning.",
6
+ "_source": "htilabstech/prototype data/cvcs/core_share_purpose.yaml + core_share_purpose_extensions_leads.yaml",
5
7
  "levels": {
6
8
  "1": "Purpose"
7
9
  },
@@ -13,7 +15,9 @@
13
15
  "selectable": true,
14
16
  "parentCode": null,
15
17
  "childCodes": [],
16
- "definition": "Sharing client information to connect the client to a service, program, or provider outside the originating agency so that the receiving party can engage or enroll them."
18
+ "definition": "A one time point in time share used to refer limited, specific segments of information to another party for a narrow purpose.",
19
+ "setBy": "manual",
20
+ "wing": "core"
17
21
  },
18
22
  {
19
23
  "code": "084-002-000-000-000-000-000",
@@ -22,7 +26,9 @@
22
26
  "selectable": true,
23
27
  "parentCode": null,
24
28
  "childCodes": [],
25
- "definition": "Sharing information among agencies or providers actively co-working a client's case so each collaborator can coordinate services, avoid duplication, and advance shared case goals."
29
+ "definition": "An ongoing but time limited sharing purpose to support repeated communication needed to complete a specific service or action approved by the victim or mandated by law.",
30
+ "setBy": "manual",
31
+ "wing": "core"
26
32
  },
27
33
  {
28
34
  "code": "084-003-000-000-000-000-000",
@@ -31,25 +37,32 @@
31
37
  "selectable": true,
32
38
  "parentCode": null,
33
39
  "childCodes": [],
34
- "definition": "Sharing the minimum information required to determine whether multiple parties are engaged with the same client or incident, in order to prevent conflicting actions or duplicate outreach."
40
+ "definition": "A sharing purpose for detecting overlap between two parties' case records (deconfliction) so agencies, teams, or investigators can identify parallel work and coordinate safely when appropriate.",
41
+ "setBy": "automatic",
42
+ "wing": "core",
43
+ "appScope": "leads_only"
35
44
  },
36
45
  {
37
46
  "code": "084-004-000-000-000-000-000",
38
47
  "key": "mandatory_reporting",
39
- "title": "Mandatory reporting",
48
+ "title": "Mandatory report",
40
49
  "selectable": true,
41
50
  "parentCode": null,
42
51
  "childCodes": [],
43
- "definition": "Sharing information to satisfy a legal duty to report suspected abuse, neglect, or similar statutorily defined harms to an authorized receiving body (e.g., child or adult protective services)."
52
+ "definition": "A sharing purpose indicating information must be shared to meet a legal or regulatory mandated reporting duty.",
53
+ "setBy": "manual",
54
+ "wing": "core"
44
55
  },
45
56
  {
46
57
  "code": "084-005-000-000-000-000-000",
47
58
  "key": "authority_reporting",
48
- "title": "Authority reporting",
59
+ "title": "Authority report",
49
60
  "selectable": true,
50
61
  "parentCode": null,
51
62
  "childCodes": [],
52
- "definition": "Sharing information with a governing authority, regulator, or funder to satisfy a non-mandatory-reporter disclosure obligation such as grant reporting, oversight notifications, or jurisdictional alerts."
63
+ "definition": "A sharing purpose used to notify a designated authority for accountability, compliance, intelligence, or administrative purposes when the sender is not acting under a mandated reporter duty.",
64
+ "setBy": "manual",
65
+ "wing": "core"
53
66
  },
54
67
  {
55
68
  "code": "084-006-000-000-000-000-000",
@@ -58,16 +71,20 @@
58
71
  "selectable": true,
59
72
  "parentCode": null,
60
73
  "childCodes": [],
61
- "definition": "Sharing that occurs automatically because the receiving party is configured as a standing member of the client's account, team, or care circle and receives information without a case-by-case release decision."
74
+ "definition": "An agency-admin configured, default sharing mode that automatically makes a limited, standardized subset of case information viewable across the agency account without requiring case-by-case sharing decisions by end users.",
75
+ "setBy": "automatic",
76
+ "wing": "core"
62
77
  },
63
78
  {
64
79
  "code": "084-007-000-000-000-000-000",
65
80
  "key": "discretionary_share",
66
- "title": "Discretionary share",
81
+ "title": "Discretionary share (FYI)",
67
82
  "selectable": true,
68
83
  "parentCode": null,
69
84
  "childCodes": [],
70
- "definition": "Ad-hoc sharing initiated at the sharer's discretion for a specific purpose that does not fit another defined category; the sharer is responsible for recording the reason and scope on the share."
85
+ "definition": "A sharing purpose for situational awareness or FYI sharing when there is no explicit requested action, no legal duty, and no structured collaboration.",
86
+ "setBy": "manual",
87
+ "wing": "core"
71
88
  },
72
89
  {
73
90
  "code": "084-008-000-000-000-000-000",
@@ -76,7 +93,58 @@
76
93
  "selectable": true,
77
94
  "parentCode": null,
78
95
  "childCodes": [],
79
- "definition": "Sharing information in response to a formal request for records (for example a subpoena, court order, ROI-backed request, or FOIA-style inquiry) where the request itself establishes the sharing purpose."
96
+ "definition": null,
97
+ "setBy": "automatic",
98
+ "wing": "core",
99
+ "incompleteInSource": true
100
+ },
101
+ {
102
+ "code": "084-009-000-000-000-000-000",
103
+ "key": "investigation_support",
104
+ "title": "Investigation support",
105
+ "selectable": true,
106
+ "parentCode": null,
107
+ "childCodes": [],
108
+ "definition": "Case or investigative intelligence (identifies people or organizations) disseminated to a LEADS recipient working on some aspect of the inquiry.",
109
+ "setBy": "manual",
110
+ "wing": "leads",
111
+ "needToKnowArm": "assist_support_investigation"
112
+ },
113
+ {
114
+ "code": "084-010-000-000-000-000-000",
115
+ "key": "threat_prevention",
116
+ "title": "Threat prevention",
117
+ "selectable": true,
118
+ "parentCode": null,
119
+ "childCodes": [],
120
+ "definition": "A sharing purpose for dissemination that is pertinent and necessary to prevent or mitigate a threat.",
121
+ "setBy": "manual",
122
+ "wing": "leads",
123
+ "needToKnowArm": "prevent_mitigate_threat"
124
+ },
125
+ {
126
+ "code": "084-011-000-000-000-000-000",
127
+ "key": "awareness_product",
128
+ "title": "Situational awareness (intelligence product)",
129
+ "selectable": true,
130
+ "parentCode": null,
131
+ "childCodes": [],
132
+ "definition": "A sharing purpose for a de-identified intelligence product — indicators, methodologies, or pattern trends with no identified individuals or organizations.",
133
+ "setBy": "manual",
134
+ "wing": "leads",
135
+ "needToKnowArm": "assumed_for_le"
136
+ },
137
+ {
138
+ "code": "084-012-000-000-000-000-000",
139
+ "key": "prosecution_support",
140
+ "title": "Prosecution support",
141
+ "selectable": true,
142
+ "parentCode": null,
143
+ "childCodes": [],
144
+ "definition": "A sharing purpose for material headed toward charging, court filing, or discovery; routes the act to the evidence/discovery export register rather than the dissemination share path.",
145
+ "setBy": "manual",
146
+ "wing": "leads",
147
+ "needToKnowArm": "assist_support_investigation"
80
148
  }
81
149
  ]
82
150
  }
@@ -874,7 +874,7 @@ export type PreferredContactMethodKey = keyof typeof PreferredContactMethodKeys;
874
874
  /**
875
875
  * Key → positional code map for the `share_purpose` CVC domain.
876
876
  *
877
- * Domain: `share_purpose` · Version: 1.0.0 · Entries: 8
877
+ * Domain: `share_purpose` · Version: 1.1.0 · Entries: 12
878
878
  */
879
879
  export const SharePurposeKeys = {
880
880
  referral: "084-001-000-000-000-000-000",
@@ -885,6 +885,10 @@ export const SharePurposeKeys = {
885
885
  automatic_account_share: "084-006-000-000-000-000-000",
886
886
  discretionary_share: "084-007-000-000-000-000-000",
887
887
  records_request: "084-008-000-000-000-000-000",
888
+ investigation_support: "084-009-000-000-000-000-000",
889
+ threat_prevention: "084-010-000-000-000-000-000",
890
+ awareness_product: "084-011-000-000-000-000-000",
891
+ prosecution_support: "084-012-000-000-000-000-000",
888
892
  } as const;
889
893
 
890
894
  export type SharePurposeKey = keyof typeof SharePurposeKeys;
@@ -4050,6 +4054,86 @@ export const NeedsAssessmentChangeTypeKeys = {
4050
4054
 
4051
4055
  export type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;
4052
4056
 
4057
+ /**
4058
+ * Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES + 54 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 54 units, with no renames, so adoption is additive and no stored ROI changes meaning).
4059
+ *
4060
+ * Domain: `core_information_scope` · Version: 1.0.0 · Entries: 70
4061
+ */
4062
+ export const CoreInformationScopeKeys = {
4063
+ missingness_root: "236-000-000-000-000-000-000",
4064
+ unknown: "236-000-000-000-000-000-001",
4065
+ anonymous: "236-000-000-000-000-000-002",
4066
+ data_not_collected: "236-000-000-000-000-000-003",
4067
+ identifying: "236-001-000-000-000-000-000",
4068
+ names: "236-001-001-000-000-000-000",
4069
+ dob: "236-001-002-000-000-000-000",
4070
+ addresses: "236-001-003-000-000-000-000",
4071
+ additional_ids: "236-001-004-000-000-000-000",
4072
+ demographics: "236-001-005-000-000-000-000",
4073
+ risk: "236-002-000-000-000-000-000",
4074
+ screen_indicators: "236-002-001-000-000-000-000",
4075
+ victimization: "236-002-002-000-000-000-000",
4076
+ ida_full: "236-002-003-000-000-000-000",
4077
+ ida_consid: "236-002-004-000-000-000-000",
4078
+ initial_screen: "236-002-005-000-000-000-000",
4079
+ tra: "236-002-006-000-000-000-000",
4080
+ lap: "236-002-007-000-000-000-000",
4081
+ danger_assessment: "236-002-008-000-000-000-000",
4082
+ injury_and_strangulation: "236-002-009-000-000-000-000",
4083
+ stalking_assessment: "236-002-010-000-000-000-000",
4084
+ ae_intake: "236-002-011-000-000-000-000",
4085
+ hope_scale: "236-002-012-000-000-000-000",
4086
+ assessment_records: "236-002-013-000-000-000-000",
4087
+ determinations: "236-002-014-000-000-000-000",
4088
+ offender_facilitator: "236-002-015-000-000-000-000",
4089
+ system_involvement: "236-002-016-000-000-000-000",
4090
+ derived_risk_signals: "236-002-017-000-000-000-000",
4091
+ contact: "236-003-000-000-000-000-000",
4092
+ contact_info: "236-003-001-000-000-000-000",
4093
+ safe_locations: "236-003-002-000-000-000-000",
4094
+ services: "236-004-000-000-000-000-000",
4095
+ contact_history: "236-004-001-000-000-000-000",
4096
+ service_history: "236-004-002-000-000-000-000",
4097
+ plans_goals: "236-004-003-000-000-000-000",
4098
+ notes: "236-005-000-000-000-000-000",
4099
+ screen_notes: "236-005-001-000-000-000-000",
4100
+ case_notes: "236-005-002-000-000-000-000",
4101
+ background: "236-005-003-000-000-000-000",
4102
+ health_accommodation: "236-006-000-000-000-000-000",
4103
+ accommodation_needs: "236-006-001-000-000-000-000",
4104
+ disability_subtypes: "236-006-002-000-000-000-000",
4105
+ mental_health_status: "236-006-003-000-000-000-000",
4106
+ substance_use_status: "236-006-004-000-000-000-000",
4107
+ chronic_health_status: "236-006-005-000-000-000-000",
4108
+ hiv_status: "236-006-006-000-000-000-000",
4109
+ mental_health_screen: "236-006-007-000-000-000-000",
4110
+ trauma_and_coping_screen: "236-006-008-000-000-000-000",
4111
+ behavioral_health_intake: "236-006-009-000-000-000-000",
4112
+ immigration_legal_status: "236-007-000-000-000-000-000",
4113
+ immigration_status: "236-007-001-000-000-000-000",
4114
+ uscis_alien_number: "236-007-002-000-000-000-000",
4115
+ federal_protection_applications: "236-007-003-000-000-000-000",
4116
+ tvap_enrollment: "236-007-004-000-000-000-000",
4117
+ le_report_status: "236-007-005-000-000-000-000",
4118
+ system: "236-008-000-000-000-000-000",
4119
+ system_info: "236-008-001-000-000-000-000",
4120
+ network_associations: "236-009-000-000-000-000-000",
4121
+ network_membership: "236-009-001-000-000-000-000",
4122
+ persona_links: "236-009-002-000-000-000-000",
4123
+ commercial_activity: "236-010-000-000-000-000-000",
4124
+ ad_content: "236-010-001-000-000-000-000",
4125
+ commercial_patterns: "236-010-002-000-000-000-000",
4126
+ investigative_work_product: "236-011-000-000-000-000-000",
4127
+ case_determinations: "236-011-001-000-000-000-000",
4128
+ case_lifecycle: "236-011-002-000-000-000-000",
4129
+ case_attachments: "236-011-003-000-000-000-000",
4130
+ object_identifiers: "236-012-000-000-000-000-000",
4131
+ phone_identifiers: "236-012-001-000-000-000-000",
4132
+ object_identity_attributes: "236-012-002-000-000-000-000",
4133
+ } as const;
4134
+
4135
+ export type CoreInformationScopeKey = keyof typeof CoreInformationScopeKeys;
4136
+
4053
4137
  /**
4054
4138
  * Key → positional code map for the `roi_scope` CVC domain (DRAFT-TEMPORARY; the 15 ROI scope ITEMS an ROI authorizes for sharing, sourced from PAVE `@pave/domain` ROI_SCOPE_KEYS. The item axis only — named bundles over these items are ROI_SCOPE_PRESET_NAMES. The prototype's 27-item HTI_SHARE_SCOPE_GROUPS superset holds +12 health-accommodation / immigration-legal items that are the documented extension set).
4055
4139
  *
@@ -4146,9 +4230,9 @@ export const DhStateKeys = {
4146
4230
  export type DhStateKey = keyof typeof DhStateKeys;
4147
4231
 
4148
4232
  /**
4149
- * Key → positional code map for the `core_indicators` CVC domain (CVC-136; 215 canonical indicator codes re-sourced from prototype `data/core_indicators.yaml` @ 84a1b677 plus the 2 codes @hti/scoring emits ahead of the codebook). Entries carry `family` / `polarity` / `severity` / `isAlert` / `alertWhen`; the alert list is a DERIVED VIEW over `isAlert`, not a rival taxonomy.
4233
+ * 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.
4150
4234
  *
4151
- * Domain: `core_indicators` · Version: 1.0.0 · Entries: 219
4235
+ * Domain: `core_indicators` · Version: 1.0.0 · Entries: 220
4152
4236
  */
4153
4237
  export const CoreIndicatorKeys = {
4154
4238
  missingness_root: "136-000-000-000-000-000-000",
@@ -4370,6 +4454,7 @@ export const CoreIndicatorKeys = {
4370
4454
  sexualized_content_in_person_performance_activity: "136-213-000-000-000-000-000",
4371
4455
  sexualized_content_online_performance_activity: "136-214-000-000-000-000-000",
4372
4456
  trauma_perpetrator_is_current_manager: "136-215-000-000-000-000-000",
4457
+ active_protective_order: "136-216-000-000-000-000-000",
4373
4458
  } as const;
4374
4459
 
4375
4460
  export type CoreIndicatorKey = keyof typeof CoreIndicatorKeys;
@@ -4999,6 +5084,270 @@ export const CitizenshipKeys = {
4999
5084
 
5000
5085
  export type CitizenshipKey = keyof typeof CitizenshipKeys;
5001
5086
 
5087
+ /**
5088
+ * Key → positional code map for the `countries` CVC domain (CVC-181, provisional-pending-notion-ratification). The neutral ISO 3166-1 country/territory list: 249 countries + the workspace-standard 3-value missingness set + `non_us_unspecified` (a flagged local extension). Positional codes are MINTED platform-common-side: the upstream Notion codebook's Code column is blank on all 249 rows. The authoritative ISO 3166-1 alpha-2 code rides on each entry as `iso31661Alpha2`. The 249 country KEYS are identical to CVC-182 `citizenship`; the positional ORDINALS are NOT (the two codebooks sort differently) — reconcile by key, never by rewriting segment 1.
5089
+ *
5090
+ * Domain: `countries` · Version: 1.0.0 · Entries: 254
5091
+ */
5092
+ export const CountryKeys = {
5093
+ missingness_root: "181-000-000-000-000-000-000",
5094
+ unknown: "181-000-000-000-000-000-001",
5095
+ anonymous: "181-000-000-000-000-000-002",
5096
+ data_not_collected: "181-000-000-000-000-000-003",
5097
+ afghanistan: "181-001-000-000-000-000-000",
5098
+ aland_islands: "181-002-000-000-000-000-000",
5099
+ albania: "181-003-000-000-000-000-000",
5100
+ algeria: "181-004-000-000-000-000-000",
5101
+ american_samoa: "181-005-000-000-000-000-000",
5102
+ andorra: "181-006-000-000-000-000-000",
5103
+ angola: "181-007-000-000-000-000-000",
5104
+ anguilla: "181-008-000-000-000-000-000",
5105
+ antarctica: "181-009-000-000-000-000-000",
5106
+ antigua_and_barbuda: "181-010-000-000-000-000-000",
5107
+ argentina: "181-011-000-000-000-000-000",
5108
+ armenia: "181-012-000-000-000-000-000",
5109
+ aruba: "181-013-000-000-000-000-000",
5110
+ australia: "181-014-000-000-000-000-000",
5111
+ austria: "181-015-000-000-000-000-000",
5112
+ azerbaijan: "181-016-000-000-000-000-000",
5113
+ bahamas: "181-017-000-000-000-000-000",
5114
+ bahrain: "181-018-000-000-000-000-000",
5115
+ bangladesh: "181-019-000-000-000-000-000",
5116
+ barbados: "181-020-000-000-000-000-000",
5117
+ belarus: "181-021-000-000-000-000-000",
5118
+ belgium: "181-022-000-000-000-000-000",
5119
+ belize: "181-023-000-000-000-000-000",
5120
+ benin: "181-024-000-000-000-000-000",
5121
+ bermuda: "181-025-000-000-000-000-000",
5122
+ bhutan: "181-026-000-000-000-000-000",
5123
+ bolivia_plurinational_state_of: "181-027-000-000-000-000-000",
5124
+ bonaire_sint_eustatius_and_saba: "181-028-000-000-000-000-000",
5125
+ bosnia_and_herzegovina: "181-029-000-000-000-000-000",
5126
+ botswana: "181-030-000-000-000-000-000",
5127
+ bouvet_island: "181-031-000-000-000-000-000",
5128
+ brazil: "181-032-000-000-000-000-000",
5129
+ british_indian_ocean_territory: "181-033-000-000-000-000-000",
5130
+ brunei_darussalam: "181-034-000-000-000-000-000",
5131
+ bulgaria: "181-035-000-000-000-000-000",
5132
+ burkina_faso: "181-036-000-000-000-000-000",
5133
+ burundi: "181-037-000-000-000-000-000",
5134
+ cambodia: "181-038-000-000-000-000-000",
5135
+ cameroon: "181-039-000-000-000-000-000",
5136
+ canada: "181-040-000-000-000-000-000",
5137
+ cape_verde: "181-041-000-000-000-000-000",
5138
+ cayman_islands: "181-042-000-000-000-000-000",
5139
+ central_african_republic: "181-043-000-000-000-000-000",
5140
+ chad: "181-044-000-000-000-000-000",
5141
+ chile: "181-045-000-000-000-000-000",
5142
+ china: "181-046-000-000-000-000-000",
5143
+ christmas_island: "181-047-000-000-000-000-000",
5144
+ cocos_keeling_islands: "181-048-000-000-000-000-000",
5145
+ colombia: "181-049-000-000-000-000-000",
5146
+ comoros: "181-050-000-000-000-000-000",
5147
+ congo: "181-051-000-000-000-000-000",
5148
+ congo_the_democratic_republic_of_the: "181-052-000-000-000-000-000",
5149
+ cook_islands: "181-053-000-000-000-000-000",
5150
+ costa_rica: "181-054-000-000-000-000-000",
5151
+ cote_d_ivoire: "181-055-000-000-000-000-000",
5152
+ croatia: "181-056-000-000-000-000-000",
5153
+ cuba: "181-057-000-000-000-000-000",
5154
+ curacao: "181-058-000-000-000-000-000",
5155
+ cyprus: "181-059-000-000-000-000-000",
5156
+ czech_republic: "181-060-000-000-000-000-000",
5157
+ denmark: "181-061-000-000-000-000-000",
5158
+ djibouti: "181-062-000-000-000-000-000",
5159
+ dominica: "181-063-000-000-000-000-000",
5160
+ dominican_republic: "181-064-000-000-000-000-000",
5161
+ ecuador: "181-065-000-000-000-000-000",
5162
+ egypt: "181-066-000-000-000-000-000",
5163
+ el_salvador: "181-067-000-000-000-000-000",
5164
+ equatorial_guinea: "181-068-000-000-000-000-000",
5165
+ eritrea: "181-069-000-000-000-000-000",
5166
+ estonia: "181-070-000-000-000-000-000",
5167
+ ethiopia: "181-071-000-000-000-000-000",
5168
+ falkland_islands_malvinas: "181-072-000-000-000-000-000",
5169
+ faroe_islands: "181-073-000-000-000-000-000",
5170
+ fiji: "181-074-000-000-000-000-000",
5171
+ finland: "181-075-000-000-000-000-000",
5172
+ france: "181-076-000-000-000-000-000",
5173
+ french_guiana: "181-077-000-000-000-000-000",
5174
+ french_polynesia: "181-078-000-000-000-000-000",
5175
+ french_southern_territories: "181-079-000-000-000-000-000",
5176
+ gabon: "181-080-000-000-000-000-000",
5177
+ gambia: "181-081-000-000-000-000-000",
5178
+ georgia: "181-082-000-000-000-000-000",
5179
+ germany: "181-083-000-000-000-000-000",
5180
+ ghana: "181-084-000-000-000-000-000",
5181
+ gibraltar: "181-085-000-000-000-000-000",
5182
+ greece: "181-086-000-000-000-000-000",
5183
+ greenland: "181-087-000-000-000-000-000",
5184
+ grenada: "181-088-000-000-000-000-000",
5185
+ guadeloupe: "181-089-000-000-000-000-000",
5186
+ guam: "181-090-000-000-000-000-000",
5187
+ guatemala: "181-091-000-000-000-000-000",
5188
+ guernsey: "181-092-000-000-000-000-000",
5189
+ guinea: "181-093-000-000-000-000-000",
5190
+ guinea_bissau: "181-094-000-000-000-000-000",
5191
+ guyana: "181-095-000-000-000-000-000",
5192
+ haiti: "181-096-000-000-000-000-000",
5193
+ heard_island_and_mcdonald_islands: "181-097-000-000-000-000-000",
5194
+ holy_see_vatican_city_state: "181-098-000-000-000-000-000",
5195
+ honduras: "181-099-000-000-000-000-000",
5196
+ hong_kong: "181-100-000-000-000-000-000",
5197
+ hungary: "181-101-000-000-000-000-000",
5198
+ iceland: "181-102-000-000-000-000-000",
5199
+ india: "181-103-000-000-000-000-000",
5200
+ indonesia: "181-104-000-000-000-000-000",
5201
+ iran_islamic_republic_of: "181-105-000-000-000-000-000",
5202
+ iraq: "181-106-000-000-000-000-000",
5203
+ ireland: "181-107-000-000-000-000-000",
5204
+ israel: "181-108-000-000-000-000-000",
5205
+ isle_of_man: "181-109-000-000-000-000-000",
5206
+ italy: "181-110-000-000-000-000-000",
5207
+ jamaica: "181-111-000-000-000-000-000",
5208
+ japan: "181-112-000-000-000-000-000",
5209
+ jersey: "181-113-000-000-000-000-000",
5210
+ jordan: "181-114-000-000-000-000-000",
5211
+ kazakhstan: "181-115-000-000-000-000-000",
5212
+ kenya: "181-116-000-000-000-000-000",
5213
+ kiribati: "181-117-000-000-000-000-000",
5214
+ korea_democratic_people_s_republic_of: "181-118-000-000-000-000-000",
5215
+ korea_republic_of: "181-119-000-000-000-000-000",
5216
+ kuwait: "181-120-000-000-000-000-000",
5217
+ kyrgyzstan: "181-121-000-000-000-000-000",
5218
+ latvia: "181-122-000-000-000-000-000",
5219
+ lao_people_s_democratic_republic: "181-123-000-000-000-000-000",
5220
+ lebanon: "181-124-000-000-000-000-000",
5221
+ lesotho: "181-125-000-000-000-000-000",
5222
+ liberia: "181-126-000-000-000-000-000",
5223
+ libya: "181-127-000-000-000-000-000",
5224
+ liechtenstein: "181-128-000-000-000-000-000",
5225
+ lithuania: "181-129-000-000-000-000-000",
5226
+ luxembourg: "181-130-000-000-000-000-000",
5227
+ macao: "181-131-000-000-000-000-000",
5228
+ macedonia_the_former_yugoslav_republic_of: "181-132-000-000-000-000-000",
5229
+ madagascar: "181-133-000-000-000-000-000",
5230
+ malawi: "181-134-000-000-000-000-000",
5231
+ malaysia: "181-135-000-000-000-000-000",
5232
+ maldives: "181-136-000-000-000-000-000",
5233
+ mali: "181-137-000-000-000-000-000",
5234
+ malta: "181-138-000-000-000-000-000",
5235
+ marshall_islands: "181-139-000-000-000-000-000",
5236
+ martinique: "181-140-000-000-000-000-000",
5237
+ mauritania: "181-141-000-000-000-000-000",
5238
+ mauritius: "181-142-000-000-000-000-000",
5239
+ mayotte: "181-143-000-000-000-000-000",
5240
+ mexico: "181-144-000-000-000-000-000",
5241
+ micronesia_federated_states_of: "181-145-000-000-000-000-000",
5242
+ moldova_republic_of: "181-146-000-000-000-000-000",
5243
+ monaco: "181-147-000-000-000-000-000",
5244
+ mongolia: "181-148-000-000-000-000-000",
5245
+ montenegro: "181-149-000-000-000-000-000",
5246
+ montserrat: "181-150-000-000-000-000-000",
5247
+ morocco: "181-151-000-000-000-000-000",
5248
+ mozambique: "181-152-000-000-000-000-000",
5249
+ myanmar: "181-153-000-000-000-000-000",
5250
+ namibia: "181-154-000-000-000-000-000",
5251
+ nauru: "181-155-000-000-000-000-000",
5252
+ nepal: "181-156-000-000-000-000-000",
5253
+ netherlands: "181-157-000-000-000-000-000",
5254
+ new_caledonia: "181-158-000-000-000-000-000",
5255
+ new_zealand: "181-159-000-000-000-000-000",
5256
+ nicaragua: "181-160-000-000-000-000-000",
5257
+ niger: "181-161-000-000-000-000-000",
5258
+ nigeria: "181-162-000-000-000-000-000",
5259
+ niue: "181-163-000-000-000-000-000",
5260
+ norfolk_island: "181-164-000-000-000-000-000",
5261
+ northern_mariana_islands: "181-165-000-000-000-000-000",
5262
+ norway: "181-166-000-000-000-000-000",
5263
+ oman: "181-167-000-000-000-000-000",
5264
+ pakistan: "181-168-000-000-000-000-000",
5265
+ palau: "181-169-000-000-000-000-000",
5266
+ palestine_state_of: "181-170-000-000-000-000-000",
5267
+ panama: "181-171-000-000-000-000-000",
5268
+ papua_new_guinea: "181-172-000-000-000-000-000",
5269
+ paraguay: "181-173-000-000-000-000-000",
5270
+ peru: "181-174-000-000-000-000-000",
5271
+ philippines: "181-175-000-000-000-000-000",
5272
+ pitcairn: "181-176-000-000-000-000-000",
5273
+ poland: "181-177-000-000-000-000-000",
5274
+ portugal: "181-178-000-000-000-000-000",
5275
+ puerto_rico: "181-179-000-000-000-000-000",
5276
+ qatar: "181-180-000-000-000-000-000",
5277
+ reunion: "181-181-000-000-000-000-000",
5278
+ romania: "181-182-000-000-000-000-000",
5279
+ russian_federation: "181-183-000-000-000-000-000",
5280
+ saint_barthelemy: "181-184-000-000-000-000-000",
5281
+ rwanda: "181-185-000-000-000-000-000",
5282
+ saint_helena_ascension_and_tristan_da_cunha: "181-186-000-000-000-000-000",
5283
+ saint_kitts_and_nevis: "181-187-000-000-000-000-000",
5284
+ saint_lucia: "181-188-000-000-000-000-000",
5285
+ saint_martin_french_part: "181-189-000-000-000-000-000",
5286
+ saint_pierre_and_miquelon: "181-190-000-000-000-000-000",
5287
+ saint_vincent_and_the_grenadines: "181-191-000-000-000-000-000",
5288
+ samoa: "181-192-000-000-000-000-000",
5289
+ san_marino: "181-193-000-000-000-000-000",
5290
+ sao_tome_and_principe: "181-194-000-000-000-000-000",
5291
+ saudi_arabia: "181-195-000-000-000-000-000",
5292
+ senegal: "181-196-000-000-000-000-000",
5293
+ serbia: "181-197-000-000-000-000-000",
5294
+ seychelles: "181-198-000-000-000-000-000",
5295
+ sierra_leone: "181-199-000-000-000-000-000",
5296
+ singapore: "181-200-000-000-000-000-000",
5297
+ sint_maarten_dutch_part: "181-201-000-000-000-000-000",
5298
+ slovakia: "181-202-000-000-000-000-000",
5299
+ slovenia: "181-203-000-000-000-000-000",
5300
+ solomon_islands: "181-204-000-000-000-000-000",
5301
+ somalia: "181-205-000-000-000-000-000",
5302
+ south_africa: "181-206-000-000-000-000-000",
5303
+ south_georgia_and_the_south_sandwich_islands: "181-207-000-000-000-000-000",
5304
+ south_sudan: "181-208-000-000-000-000-000",
5305
+ spain: "181-209-000-000-000-000-000",
5306
+ sri_lanka: "181-210-000-000-000-000-000",
5307
+ sudan: "181-211-000-000-000-000-000",
5308
+ suriname: "181-212-000-000-000-000-000",
5309
+ svalbard_and_jan_mayen: "181-213-000-000-000-000-000",
5310
+ eswatini: "181-214-000-000-000-000-000",
5311
+ switzerland: "181-215-000-000-000-000-000",
5312
+ sweden: "181-216-000-000-000-000-000",
5313
+ syrian_arab_republic: "181-217-000-000-000-000-000",
5314
+ taiwan_province_of_china: "181-218-000-000-000-000-000",
5315
+ tajikistan: "181-219-000-000-000-000-000",
5316
+ tanzania_united_republic_of: "181-220-000-000-000-000-000",
5317
+ thailand: "181-221-000-000-000-000-000",
5318
+ timor_leste: "181-222-000-000-000-000-000",
5319
+ togo: "181-223-000-000-000-000-000",
5320
+ tokelau: "181-224-000-000-000-000-000",
5321
+ tonga: "181-225-000-000-000-000-000",
5322
+ trinidad_and_tobago: "181-226-000-000-000-000-000",
5323
+ tunisia: "181-227-000-000-000-000-000",
5324
+ turkey: "181-228-000-000-000-000-000",
5325
+ turkmenistan: "181-229-000-000-000-000-000",
5326
+ turks_and_caicos_islands: "181-230-000-000-000-000-000",
5327
+ uganda: "181-231-000-000-000-000-000",
5328
+ tuvalu: "181-232-000-000-000-000-000",
5329
+ ukraine: "181-233-000-000-000-000-000",
5330
+ united_arab_emirates: "181-234-000-000-000-000-000",
5331
+ united_kingdom: "181-235-000-000-000-000-000",
5332
+ united_states: "181-236-000-000-000-000-000",
5333
+ united_states_minor_outlying_islands: "181-237-000-000-000-000-000",
5334
+ uruguay: "181-238-000-000-000-000-000",
5335
+ uzbekistan: "181-239-000-000-000-000-000",
5336
+ vanuatu: "181-240-000-000-000-000-000",
5337
+ venezuela_bolivarian_republic_of: "181-241-000-000-000-000-000",
5338
+ viet_nam: "181-242-000-000-000-000-000",
5339
+ virgin_islands_british: "181-243-000-000-000-000-000",
5340
+ virgin_islands_u_s: "181-244-000-000-000-000-000",
5341
+ wallis_and_futuna: "181-245-000-000-000-000-000",
5342
+ western_sahara: "181-246-000-000-000-000-000",
5343
+ yemen: "181-247-000-000-000-000-000",
5344
+ zambia: "181-248-000-000-000-000-000",
5345
+ zimbabwe: "181-249-000-000-000-000-000",
5346
+ non_us_unspecified: "181-250-000-000-000-000-000",
5347
+ } as const;
5348
+
5349
+ export type CountryKey = keyof typeof CountryKeys;
5350
+
5002
5351
  /**
5003
5352
  * Key → positional code map for the `trafficking_relevant_role` CVC domain (CVC-235, canonical). The 4 top-level supply/demand/enabling/adjacent roles: worker_provider, facilitator_controller, buyer_client_direct_beneficiary, other_associate. Asserting a role does NOT assert victim or offender status.
5004
5353
  *