@htilabs/platform-common-models 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authz/index.cjs +539 -0
- package/dist/authz/index.cjs.map +1 -0
- package/dist/authz/index.d.cts +210 -0
- package/dist/authz/index.d.ts +210 -0
- package/dist/authz/index.js +507 -0
- package/dist/authz/index.js.map +1 -0
- package/dist/constants/index.d.cts +2 -1
- package/dist/constants/index.d.ts +2 -1
- package/dist/cvcs/index.cjs +647 -353
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +658 -362
- package/dist/cvcs/index.d.ts +658 -362
- package/dist/cvcs/index.js +647 -353
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +1 -9
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +7 -15
- package/dist/enums/index.d.ts +7 -15
- package/dist/enums/index.js +1 -9
- package/dist/enums/index.js.map +1 -1
- package/dist/{platform-auth-CvAYFVhK.d.cts → ic-DpKrdgQP.d.cts} +1 -78
- package/dist/{platform-auth-CvAYFVhK.d.ts → ic-DpKrdgQP.d.ts} +1 -78
- package/dist/index.cjs +899 -362
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +893 -362
- package/dist/index.js.map +1 -1
- package/dist/platform-auth-B49Ly57B.d.cts +78 -0
- package/dist/platform-auth-B49Ly57B.d.ts +78 -0
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +6 -1
- package/src/__sot__/README.md +3 -1
- package/src/__sot__/adminRoles.pin.json +122 -0
- package/src/__sot__/adminRoles.published.json +77 -0
- package/src/__sot__/coreFunctionFields.ts +16 -0
- package/src/__sot__/coreFunctions.pin.json +114 -1
- package/src/__sot__/roleFields.ts +137 -0
- package/src/__sot__/userRoles.pin.json +174 -0
- package/src/__sot__/userRoles.published.json +103 -0
- package/src/__tests__/__snapshots__/cvc-sot.snap +5 -5
- package/src/__tests__/admin-roles-canon.test.ts +80 -0
- package/src/__tests__/authz-resolve.test.ts +712 -0
- package/src/__tests__/core-functions-canon.test.ts +62 -12
- package/src/__tests__/cvc-sot-snapshot.test.ts +12 -4
- package/src/__tests__/cvc-status-parser.test.ts +1 -1
- package/src/__tests__/cvc-structural.test.ts +3 -3
- package/src/__tests__/role-vocab-gate.ts +279 -0
- package/src/__tests__/user-roles-canon.test.ts +104 -0
- package/src/authz/index.ts +9 -0
- package/src/authz/resolveEffectiveFunctions.ts +454 -0
- package/src/cvcs/adminRoles.v2.0.0.json +197 -0
- package/src/cvcs/{coreFunctions.v1.2.0.json → coreFunctions.v1.3.0.json} +357 -200
- package/src/cvcs/index.ts +3 -3
- package/src/cvcs/userRoles.v2.0.0.json +296 -0
- package/src/generated/coreFunctionsEvaluable.ts +101 -0
- package/src/generated/cvc-enums.ts +7 -15
- package/src/index.ts +4 -0
- package/src/cvcs/adminRoles.v1.0.0.json +0 -153
- package/src/cvcs/userRoles.v1.0.0.json +0 -203
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/constants/platform-auth.ts","../../src/generated/cvc-enums.ts","../../src/generated/coreFunctionsEvaluable.ts","../../src/authz/resolveEffectiveFunctions.ts"],"sourcesContent":["/**\n * @htilabs/platform-common-models — Platform Authorization Constants\n *\n * Enums and labels for the platform role/function permission model.\n * Includes permission states, share view levels, tool codes, role levels,\n * and function implementation statuses.\n *\n * Source: PLATFORM_AUTH_SPEC.md Sections 5 + 6\n */\n\n// ─── Permission State (4-state role→function mapping) ──────────────\n\nexport const PERMISSION_STATE = {\n /** Role can always perform this function (mandatory, cannot disable). */\n ALWAYS: \"ALWAYS\",\n /** Default On — user can opt off. */\n PREF_YES: \"PREF_YES\",\n /** Default Off — user can opt in. */\n PREF_NO: \"PREF_NO\",\n /** Role is explicitly barred from this function. */\n NEVER: \"NEVER\",\n} as const;\n\nexport type PermissionStateValue =\n (typeof PERMISSION_STATE)[keyof typeof PERMISSION_STATE];\n\nexport const PERMISSION_STATE_VALUES = [\n PERMISSION_STATE.ALWAYS,\n PERMISSION_STATE.PREF_YES,\n PERMISSION_STATE.PREF_NO,\n PERMISSION_STATE.NEVER,\n] as const;\n\nexport const PERMISSION_STATE_LABELS: Record<PermissionStateValue, string> = {\n [PERMISSION_STATE.ALWAYS]: \"Always\",\n [PERMISSION_STATE.PREF_YES]: \"Default On\",\n [PERMISSION_STATE.PREF_NO]: \"Default Off\",\n [PERMISSION_STATE.NEVER]: \"Never\",\n};\n\n/** UI display metadata for permission states (colors, icons). */\nexport const PERMISSION_STATE_DISPLAY: Record<\n PermissionStateValue,\n { label: string; color: string; bgColor: string; icon: string }\n> = {\n [PERMISSION_STATE.ALWAYS]: {\n label: \"Always\",\n color: \"#2e7d32\",\n bgColor: \"#e8f5e9\",\n icon: \"\\u{1F512}\",\n },\n [PERMISSION_STATE.PREF_YES]: {\n label: \"Default On\",\n color: \"#1565c0\",\n bgColor: \"#e3f2fd\",\n icon: \"\\u{1F513}\",\n },\n [PERMISSION_STATE.PREF_NO]: {\n label: \"Default Off\",\n color: \"#e65100\",\n bgColor: \"#fff3e0\",\n icon: \"\\u{1F513}\",\n },\n [PERMISSION_STATE.NEVER]: {\n label: \"Never\",\n color: \"#c62828\",\n bgColor: \"#ffebee\",\n icon: \"\\u{1F512}\",\n },\n};\n\n// ─── Share View (data visibility for shared records) ───────────────\n\nexport const SHARE_VIEW = {\n /** System metadata only (partial access). */\n SYS_INFO: \"sys_info\",\n /** Full case/record content. */\n ALL: \"all\",\n /** No data access. */\n NONE: \"none\",\n} as const;\n\nexport type ShareViewValue = (typeof SHARE_VIEW)[keyof typeof SHARE_VIEW];\n\nexport const SHARE_VIEW_VALUES = [\n SHARE_VIEW.SYS_INFO,\n SHARE_VIEW.ALL,\n SHARE_VIEW.NONE,\n] as const;\n\nexport const SHARE_VIEW_LABELS: Record<ShareViewValue, string> = {\n [SHARE_VIEW.SYS_INFO]: \"System Info Only\",\n [SHARE_VIEW.ALL]: \"Full Content\",\n [SHARE_VIEW.NONE]: \"No Data Access\",\n};\n\n// ─── Platform Tool Codes ───────────────────────────────────────────\n\nexport const PLATFORM_TOOL = {\n PAVE: \"PAVE\",\n ECHO: \"ECHO\",\n LEADS: \"LEADS\",\n THREAD: \"THREAD\",\n TRAIL: \"TRAIL\",\n PLATFORM: \"PLATFORM\",\n} as const;\n\nexport type PlatformToolValue =\n (typeof PLATFORM_TOOL)[keyof typeof PLATFORM_TOOL];\n\nexport const PLATFORM_TOOL_VALUES = [\n PLATFORM_TOOL.PAVE,\n PLATFORM_TOOL.ECHO,\n PLATFORM_TOOL.LEADS,\n PLATFORM_TOOL.THREAD,\n PLATFORM_TOOL.TRAIL,\n PLATFORM_TOOL.PLATFORM,\n] as const;\n\nexport const PLATFORM_TOOL_LABELS: Record<PlatformToolValue, string> = {\n [PLATFORM_TOOL.PAVE]: \"PAVE\",\n [PLATFORM_TOOL.ECHO]: \"Echo\",\n [PLATFORM_TOOL.LEADS]: \"LEADS\",\n [PLATFORM_TOOL.THREAD]: \"Thread\",\n [PLATFORM_TOOL.TRAIL]: \"Trail\",\n [PLATFORM_TOOL.PLATFORM]: \"Platform\",\n};\n\n// ─── Role Level (hierarchy tiers) ──────────────────────────────────\n\nexport const ROLE_LEVEL = {\n /** User-facing roles (staff, volunteers, practitioners). */\n OPERATIONAL: \"operational\",\n /** Agency-level admin roles. */\n AGENCY: \"agency\",\n /** Team-level admin roles. */\n TEAM: \"team\",\n /** HTI-wide platform admin. */\n PLATFORM: \"platform\",\n /** External governance/oversight roles. */\n OVERSIGHT: \"oversight\",\n} as const;\n\nexport type RoleLevelValue = (typeof ROLE_LEVEL)[keyof typeof ROLE_LEVEL];\n\nexport const ROLE_LEVEL_VALUES = [\n ROLE_LEVEL.OPERATIONAL,\n ROLE_LEVEL.AGENCY,\n ROLE_LEVEL.TEAM,\n ROLE_LEVEL.PLATFORM,\n ROLE_LEVEL.OVERSIGHT,\n] as const;\n\nexport const ROLE_LEVEL_LABELS: Record<RoleLevelValue, string> = {\n [ROLE_LEVEL.OPERATIONAL]: \"Operational\",\n [ROLE_LEVEL.AGENCY]: \"Agency\",\n [ROLE_LEVEL.TEAM]: \"Team\",\n [ROLE_LEVEL.PLATFORM]: \"Platform\",\n [ROLE_LEVEL.OVERSIGHT]: \"Oversight\",\n};\n\n// ─── Function Implementation Status ────────────────────────────────\n\nexport const FUNCTION_STATUS = {\n NOT_STARTED: \"Not started\",\n DEFINED_NEW: \"Defined; new function\",\n DEFINED_EXISTING: \"Defined; existing PAVE function\",\n FUNCTIONAL: \"Functional on all apps\",\n FUTURE: \"Future function (not v1)\",\n} as const;\n\nexport type FunctionStatusValue =\n (typeof FUNCTION_STATUS)[keyof typeof FUNCTION_STATUS];\n\nexport const FUNCTION_STATUS_VALUES = [\n FUNCTION_STATUS.NOT_STARTED,\n FUNCTION_STATUS.DEFINED_NEW,\n FUNCTION_STATUS.DEFINED_EXISTING,\n FUNCTION_STATUS.FUNCTIONAL,\n FUNCTION_STATUS.FUTURE,\n] as const;\n\nexport const FUNCTION_STATUS_LABELS: Record<FunctionStatusValue, string> = {\n [FUNCTION_STATUS.NOT_STARTED]: \"Not Started\",\n [FUNCTION_STATUS.DEFINED_NEW]: \"Defined (New)\",\n [FUNCTION_STATUS.DEFINED_EXISTING]: \"Defined (Existing PAVE)\",\n [FUNCTION_STATUS.FUNCTIONAL]: \"Functional\",\n [FUNCTION_STATUS.FUTURE]: \"Future (Not v1)\",\n};\n","/**\n * @htilabs/platform-common-models — Generated CVC Key Enums\n *\n * AUTO-GENERATED FILE — DO NOT EDIT BY HAND.\n * Regenerate with: `npm run codegen:cvc` (see scripts/codegen-cvc-enums.ts).\n *\n * Provides compile-time `key → code` maps for each CVC domain so TypeScript\n * consumers get autocompletion and type safety on CVC keys. The runtime\n * equivalent is `CvcRegistryService.getEntryByKey()`. Locked spec §9.4.\n */\n\n/**\n * Key → positional code map for the `service_categories` CVC domain.\n *\n * Domain: `service_categories` · Version: 1.2.0 · Entries: 151\n */\nexport const ServiceCategoryKeys = {\n missingness_root: \"022-000-000-000-000-000-000\",\n unknown: \"022-000-000-000-000-000-001\",\n anonymous: \"022-000-000-000-000-000-002\",\n data_not_collected: \"022-000-000-000-000-000-003\",\n basic_needs: \"022-001-000-000-000-000-000\",\n clothing_shoes_accessories: \"022-001-001-000-000-000-000\",\n elder_assistance: \"022-001-001-001-000-000-000\",\n food: \"022-001-002-000-000-000-000\",\n over_the_counter_medications: \"022-001-003-000-000-000-000\",\n immediate_safety_planning: \"022-001-004-000-000-000-000\",\n emergency_crisis_safety_support: \"022-001-004-001-000-000-000\",\n hygiene_items_personal_care: \"022-001-005-000-000-000-000\",\n communications_connectivity: \"022-001-006-000-000-000-000\",\n interpreter_services: \"022-001-007-000-000-000-000\",\n housing_services: \"022-002-000-000-000-000-000\",\n emergency_shelter: \"022-002-001-000-000-000-000\",\n day_shelter_dropin: \"022-002-001-001-000-000-000\",\n host_homes_safe_homes: \"022-002-001-002-000-000-000\",\n congregate_shelter_bednight: \"022-002-001-003-000-000-000\",\n emergency_hotel_motel: \"022-002-001-004-000-000-000\",\n night_by_night_shelter: \"022-002-001-005-000-000-000\",\n transitional_housing: \"022-002-002-000-000-000-000\",\n housing_renovation_modification: \"022-002-003-000-000-000-000\",\n household_setup_goods: \"022-002-003-001-000-000-000\",\n housing_navigation_placement: \"022-002-004-000-000-000-000\",\n housing_financial_assistance: \"022-002-004-001-000-000-000\",\n rental_payment_assistance: \"022-002-004-001-001-000-000\",\n security_deposit_allowance: \"022-002-004-001-001-001-000\",\n utility_assistance: \"022-002-004-001-001-002-000\",\n relocation_moving_assistance: \"022-002-004-002-000-000-000\",\n housing_stabilization_eviction_prevention: \"022-002-005-000-000-000-000\",\n tenant_based_scattered_site: \"022-002-006-000-000-000-000\",\n social_support_community_engagement: \"022-003-000-000-000-000-000\",\n cultural_needs_support: \"022-003-001-000-000-000-000\",\n gift_holiday_resources: \"022-003-002-000-000-000-000\",\n peer_facilitated_supportive_group: \"022-003-003-000-000-000-000\",\n community_service_learning: \"022-003-004-000-000-000-000\",\n survivor_support_psychoeducation: \"022-003-005-000-000-000-000\",\n transportation: \"022-004-000-000-000-000-000\",\n transportation_assistance_direct: \"022-004-001-000-000-000-000\",\n transportation_direct_emergency: \"022-004-001-001-000-000-000\",\n taxi_rideshare_voucher: \"022-004-002-000-000-000-000\",\n taxi_rideshare_emergency: \"022-004-002-001-000-000-000\",\n bus_fare_pass: \"022-004-003-000-000-000-000\",\n bus_fare_pass_emergency: \"022-004-003-001-000-000-000\",\n gift_card_gas_card: \"022-004-004-000-000-000-000\",\n gift_card_gas_card_emergency: \"022-004-004-001-000-000-000\",\n airline_tickets: \"022-004-005-000-000-000-000\",\n airline_tickets_emergency: \"022-004-005-001-000-000-000\",\n legal_services: \"022-005-000-000-000-000-000\",\n immigration_relief: \"022-005-001-000-000-000-000\",\n repatriation: \"022-005-001-001-000-000-000\",\n family_law: \"022-005-002-000-000-000-000\",\n criminal_support: \"022-005-003-000-000-000-000\",\n victim_impact_statement: \"022-005-003-001-000-000-000\",\n perpetrator_accountability: \"022-005-003-002-000-000-000\",\n victim_compensation: \"022-005-003-003-000-000-000\",\n victims_rights_representation: \"022-005-003-004-000-000-000\",\n criminal_record_relief: \"022-005-003-005-000-000-000\",\n civil_support: \"022-005-004-000-000-000-000\",\n protection_restraining_orders: \"022-005-004-001-000-000-000\",\n public_benefits_law: \"022-005-004-002-000-000-000\",\n emergency_safety_assistance: \"022-005-005-000-000-000-000\",\n healthcare: \"022-006-000-000-000-000-000\",\n medical: \"022-006-001-000-000-000-000\",\n emergency_medical_care: \"022-006-001-001-000-000-000\",\n forensic_exam_interview: \"022-006-001-002-000-000-000\",\n dv_exam: \"022-006-001-002-001-000-000\",\n sane_exam: \"022-006-001-002-002-000-000\",\n std_testing: \"022-006-001-002-003-000-000\",\n specialized_assessments: \"022-006-001-002-004-000-000\",\n counseling_evaluation_assessment: \"022-006-001-002-004-001-000\",\n stalking_assessment: \"022-006-001-002-004-002-000\",\n danger_assessment: \"022-006-001-002-004-003-000\",\n indepth_assessment: \"022-006-001-002-004-004-000\",\n outpatient_medical: \"022-006-001-003-000-000-000\",\n dental: \"022-006-001-003-001-000-000\",\n vision: \"022-006-001-003-002-000-000\",\n tattoo_removal: \"022-006-001-003-003-000-000\",\n pet_medical: \"022-006-001-003-004-000-000\",\n pregnancy_care: \"022-006-001-004-000-000-000\",\n prenatal_care: \"022-006-001-004-001-000-000\",\n postnatal_care_client: \"022-006-001-004-002-000-000\",\n postnatal_care_newborn: \"022-006-001-004-003-000-000\",\n emotional_support_mental_health: \"022-006-002-000-000-000-000\",\n individual_counseling: \"022-006-002-001-000-000-000\",\n group_counseling: \"022-006-002-002-000-000-000\",\n family_counseling: \"022-006-002-003-000-000-000\",\n counseling_treatment_planning: \"022-006-002-004-000-000-000\",\n counseling_treatment_plan_review: \"022-006-002-005-000-000-000\",\n behavioral_occupational_support: \"022-006-002-006-000-000-000\",\n substance_abuse_treatment: \"022-006-002-006-001-000-000\",\n coping_strategy_support: \"022-006-002-006-002-000-000\",\n other_therapy: \"022-006-002-007-000-000-000\",\n financial_and_employment: \"022-007-000-000-000-000-000\",\n financial_support: \"022-007-001-000-000-000-000\",\n emergency_financial_assistance: \"022-007-001-001-000-000-000\",\n employment_support: \"022-007-002-000-000-000-000\",\n supported_employment: \"022-007-002-001-000-000-000\",\n employment_assistance_job_search: \"022-007-002-002-000-000-000\",\n job_vocation_training: \"022-007-002-003-000-000-000\",\n informal_education_life_skills: \"022-008-000-000-000-000-000\",\n basic_life_skills_self_care: \"022-008-001-000-000-000-000\",\n accessibility_disability_support: \"022-008-002-000-000-000-000\",\n parenting_education: \"022-008-003-000-000-000-000\",\n learning_language_classes: \"022-008-004-000-000-000-000\",\n dependents: \"022-009-000-000-000-000-000\",\n pet_care: \"022-009-001-000-000-000-000\",\n child_care: \"022-009-002-000-000-000-000\",\n childrens_activities: \"022-009-002-001-000-000-000\",\n children_youth_baby_supplies: \"022-009-002-001-001-000-000\",\n case_coordination: \"022-010-000-000-000-000-000\",\n advocacy: \"022-010-001-000-000-000-000\",\n medical_advocacy: \"022-010-001-001-000-000-000\",\n advocacy_emergency_medical: \"022-010-001-001-001-000-000\",\n advocacy_forensic_exam: \"022-010-001-001-002-000-000\",\n court_advocacy: \"022-010-001-002-000-000-000\",\n crime_scene_clean_up: \"022-010-001-002-001-000-000\",\n family_reunification: \"022-010-001-002-002-000-000\",\n law_enforcement_interview_support: \"022-010-001-002-003-000-000\",\n prosecution_interview_advocacy: \"022-010-001-002-004-000-000\",\n immigration_advocacy_support: \"022-010-001-002-005-000-000\",\n documentation_records_retrieval: \"022-010-001-003-000-000-000\",\n obtaining_insurance: \"022-010-001-003-001-000-000\",\n drivers_car_insurance: \"022-010-001-003-001-001-000\",\n medical_insurance: \"022-010-001-003-001-002-000\",\n obtaining_drivers_license: \"022-010-001-003-002-000-000\",\n faith_resource: \"022-010-001-004-000-000-000\",\n banking_notary: \"022-010-001-005-000-000-000\",\n income_benefits_navigation: \"022-010-001-006-000-000-000\",\n government_services_special_programs: \"022-010-001-006-001-000-000\",\n intervention_employer_creditor_academic: \"022-010-001-007-000-000-000\",\n formal_education_academic_support: \"022-010-001-007-001-000-000\",\n adult_school_ged: \"022-010-001-007-001-001-000\",\n child_school_enrollment: \"022-010-001-007-001-002-000\",\n intake: \"022-010-002-000-000-000-000\",\n screening: \"022-010-002-001-000-000-000\",\n housing_eligibility_determination: \"022-010-002-001-001-000-000\",\n coordinated_entry: \"022-010-002-001-001-001-000\",\n behavioral_issues_screen: \"022-010-002-001-002-000-000\",\n initial_screen: \"022-010-002-001-003-000-000\",\n needs_assessment: \"022-010-002-001-004-000-000\",\n tvap: \"022-010-002-001-005-000-000\",\n case_management_supportive_services: \"022-010-003-000-000-000-000\",\n intra_agency_provider_coordination: \"022-010-003-001-000-000-000\",\n inter_agency_consultation: \"022-010-003-002-000-000-000\",\n service_plan: \"022-010-003-003-000-000-000\",\n hope_scale_and_plan: \"022-010-003-003-001-000-000\",\n post_exit_plan: \"022-010-003-004-000-000-000\",\n advanced_directives: \"022-010-003-005-000-000-000\",\n other_services: \"022-011-000-000-000-000-000\",\n} as const;\n\nexport type ServiceCategoryKey = keyof typeof ServiceCategoryKeys;\n\n/**\n * Key → positional code map for the `service_states` CVC domain.\n *\n * Domain: `service_states` · Version: 1.1.0 · Entries: 17\n */\nexport const ServiceStateKeys = {\n missingness_root: \"049-000-000-000-000-000-000\",\n unknown: \"049-000-000-000-000-000-001\",\n anonymous: \"049-000-000-000-000-000-002\",\n data_not_collected: \"049-000-000-000-000-000-003\",\n need_identified: \"049-001-000-000-000-000-000\",\n offered: \"049-002-000-000-000-000-000\",\n scheduled_in_progress: \"049-003-000-000-000-000-000\",\n delivered: \"049-004-000-000-000-000-000\",\n completed: \"049-005-000-000-000-000-000\",\n declined_by_client: \"049-006-000-000-000-000-000\",\n unable_to_provide: \"049-007-000-000-000-000-000\",\n unable_to_provide_eligibility: \"049-007-001-000-000-000-000\",\n unable_to_provide_capacity: \"049-007-002-000-000-000-000\",\n unable_to_provide_resource: \"049-007-003-000-000-000-000\",\n unable_other_reason: \"049-007-004-000-000-000-000\",\n unable_to_provide_service_fit: \"049-007-005-000-000-000-000\",\n unable_to_provide_access_barrier: \"049-007-006-000-000-000-000\",\n} as const;\n\nexport type ServiceStateKey = keyof typeof ServiceStateKeys;\n\n/**\n * Key → positional code map for the `service_mechanisms` CVC domain.\n *\n * Domain: `service_mechanisms` · Version: 1.0.0 · Entries: 8\n */\nexport const ServiceMechanismKeys = {\n missingness_root: \"025-000-000-000-000-000-000\",\n unknown: \"025-000-000-000-000-000-001\",\n anonymous: \"025-000-000-000-000-000-002\",\n data_not_collected: \"025-000-000-000-000-000-003\",\n support_via_referral: \"025-001-000-000-000-000-000\",\n informational_support: \"025-002-000-000-000-000-000\",\n direct_staff_contractor: \"025-003-000-000-000-000-000\",\n financial_material_assistance: \"025-004-000-000-000-000-000\",\n} as const;\n\nexport type ServiceMechanismKey = keyof typeof ServiceMechanismKeys;\n\n/**\n * Key → positional code map for the `incident_participation_roles` CVC domain.\n *\n * Domain: `incident_participation_roles` · Version: 1.1.0 · Entries: 31\n */\nexport const IncidentParticipationRoleKeys = {\n missingness_root: \"069-000-000-000-000-000-000\",\n unknown: \"069-000-000-000-000-000-001\",\n anonymous: \"069-000-000-000-000-000-002\",\n data_not_collected: \"069-000-000-000-000-000-003\",\n client_group: \"069-001-000-000-000-000-000\",\n client_subject: \"069-001-001-000-000-000-000\",\n caller_reporter_group: \"069-002-000-000-000-000-000\",\n caller_self: \"069-002-001-000-000-000-000\",\n caller_third_party: \"069-002-002-000-000-000-000\",\n reporter: \"069-002-003-000-000-000-000\",\n support_network_group: \"069-003-000-000-000-000-000\",\n family_member_or_guardian: \"069-003-001-000-000-000-000\",\n friend_or_peer: \"069-003-002-000-000-000-000\",\n system_professional_group: \"069-004-000-000-000-000-000\",\n service_provider_staff: \"069-004-001-000-000-000-000\",\n medical_provider_staff: \"069-004-002-000-000-000-000\",\n data_entry: \"069-004-003-000-000-000-000\",\n other_incident_responder: \"069-004-004-000-000-000-000\",\n responding_officer: \"069-004-005-000-000-000-000\",\n legal_professional: \"069-004-006-000-000-000-000\",\n prosecutor: \"069-004-006-001-000-000-000\",\n vsp_staff: \"069-004-007-000-000-000-000\",\n healthcare_provider_staff: \"069-004-008-000-000-000-000\",\n law_enforcement_personnel: \"069-004-009-000-000-000-000\",\n lead_investigator: \"069-004-009-001-000-000-000\",\n investigator: \"069-004-009-002-000-000-000\",\n analyst: \"069-004-009-003-000-000-000\",\n le_officer: \"069-004-009-004-000-000-000\",\n other_response_personnel: \"069-004-010-000-000-000-000\",\n data_entry_staff: \"069-004-011-000-000-000-000\",\n task_force: \"069-004-012-000-000-000-000\",\n} as const;\n\nexport type IncidentParticipationRoleKey = keyof typeof IncidentParticipationRoleKeys;\n\n/**\n * Key → positional code map for the `incident_involvement_roles` CVC domain.\n *\n * Domain: `incident_involvement_roles` · Version: 1.0.0 · Entries: 10\n */\nexport const IncidentInvolvementRoleKeys = {\n missingness_root: \"130-000-000-000-000-000-000\",\n unknown: \"130-000-000-000-000-000-001\",\n anonymous: \"130-000-000-000-000-000-002\",\n data_not_collected: \"130-000-000-000-000-000-003\",\n victim_primary: \"130-001-000-000-000-000-000\",\n victim_secondary: \"130-002-000-000-000-000-000\",\n victim_other: \"130-003-000-000-000-000-000\",\n offender: \"130-004-000-000-000-000-000\",\n witness: \"130-005-000-000-000-000-000\",\n dependent: \"130-006-000-000-000-000-000\",\n} as const;\n\nexport type IncidentInvolvementRoleKey = keyof typeof IncidentInvolvementRoleKeys;\n\n/**\n * Key → positional code map for the `race_ethnicity` CVC domain.\n *\n * Domain: `race_ethnicity` · Version: 1.0.0 · Entries: 14\n */\nexport const RaceEthnicityKeys = {\n missingness_root: \"076-000-000-000-000-000-000\",\n unknown: \"076-000-000-000-000-000-001\",\n anonymous: \"076-000-000-000-000-000-002\",\n data_not_collected: \"076-000-000-000-000-000-003\",\n prefer_not_to_answer: \"076-000-000-000-000-000-004\",\n american_indian_or_alaska_native: \"076-001-000-000-000-000-000\",\n asian: \"076-002-000-000-000-000-000\",\n black_or_african_american: \"076-003-000-000-000-000-000\",\n hispanic_or_latino: \"076-004-000-000-000-000-000\",\n middle_eastern_or_north_african: \"076-005-000-000-000-000-000\",\n multiple_races: \"076-006-000-000-000-000-000\",\n native_hawaiian_or_pacific_islander: \"076-007-000-000-000-000-000\",\n other_self_described: \"076-008-000-000-000-000-000\",\n white: \"076-009-000-000-000-000-000\",\n} as const;\n\nexport type RaceEthnicityKey = keyof typeof RaceEthnicityKeys;\n\n/**\n * Key → positional code map for the `primary_language` CVC domain.\n *\n * Domain: `primary_language` · Version: 1.0.0 · Entries: 191\n */\nexport const PrimaryLanguageKeys = {\n missingness_root: \"122-000-000-000-000-000-000\",\n unknown: \"122-000-000-000-000-000-001\",\n anonymous: \"122-000-000-000-000-000-002\",\n data_not_collected: \"122-000-000-000-000-000-003\",\n abkhazian: \"122-001-000-000-000-000-000\",\n afar: \"122-002-000-000-000-000-000\",\n afrikaans: \"122-003-000-000-000-000-000\",\n akan: \"122-004-000-000-000-000-000\",\n albanian: \"122-005-000-000-000-000-000\",\n american_sign_language: \"122-006-000-000-000-000-000\",\n amharic: \"122-007-000-000-000-000-000\",\n arabic: \"122-008-000-000-000-000-000\",\n aragonese: \"122-009-000-000-000-000-000\",\n armenian: \"122-010-000-000-000-000-000\",\n assamese: \"122-011-000-000-000-000-000\",\n avaric: \"122-012-000-000-000-000-000\",\n avestan: \"122-013-000-000-000-000-000\",\n aymara: \"122-014-000-000-000-000-000\",\n azerbaijani: \"122-015-000-000-000-000-000\",\n bambara: \"122-016-000-000-000-000-000\",\n bashkir: \"122-017-000-000-000-000-000\",\n basque: \"122-018-000-000-000-000-000\",\n belarusian: \"122-019-000-000-000-000-000\",\n bengali: \"122-020-000-000-000-000-000\",\n bislama: \"122-021-000-000-000-000-000\",\n bosnian: \"122-022-000-000-000-000-000\",\n breton: \"122-023-000-000-000-000-000\",\n bulgarian: \"122-024-000-000-000-000-000\",\n burmese: \"122-025-000-000-000-000-000\",\n catalan_valencian: \"122-026-000-000-000-000-000\",\n central_khmer: \"122-027-000-000-000-000-000\",\n chamorro: \"122-028-000-000-000-000-000\",\n chechen: \"122-029-000-000-000-000-000\",\n chichewa_chewa_nyanja: \"122-030-000-000-000-000-000\",\n chinese: \"122-031-000-000-000-000-000\",\n chinese_cantonese: \"122-032-000-000-000-000-000\",\n chinese_mandarin: \"122-033-000-000-000-000-000\",\n church_slavic_old_slavonic_church_slavonic_old_bulgarian_old_church_slavonic: \"122-034-000-000-000-000-000\",\n chuvash: \"122-035-000-000-000-000-000\",\n cornish: \"122-036-000-000-000-000-000\",\n corsican: \"122-037-000-000-000-000-000\",\n cree: \"122-038-000-000-000-000-000\",\n croatian: \"122-039-000-000-000-000-000\",\n czech: \"122-040-000-000-000-000-000\",\n danish: \"122-041-000-000-000-000-000\",\n divehi_dhivehi_maldivian: \"122-042-000-000-000-000-000\",\n dutch_flemish: \"122-043-000-000-000-000-000\",\n dzongkha: \"122-044-000-000-000-000-000\",\n english: \"122-045-000-000-000-000-000\",\n esperanto: \"122-046-000-000-000-000-000\",\n estonian: \"122-047-000-000-000-000-000\",\n ewe: \"122-048-000-000-000-000-000\",\n faroese: \"122-049-000-000-000-000-000\",\n fijian: \"122-050-000-000-000-000-000\",\n finnish: \"122-051-000-000-000-000-000\",\n french: \"122-052-000-000-000-000-000\",\n fulah: \"122-053-000-000-000-000-000\",\n gaelic_scottish_gaelic: \"122-054-000-000-000-000-000\",\n galician: \"122-055-000-000-000-000-000\",\n ganda: \"122-056-000-000-000-000-000\",\n georgian: \"122-057-000-000-000-000-000\",\n german: \"122-058-000-000-000-000-000\",\n guarani: \"122-059-000-000-000-000-000\",\n gujarati: \"122-060-000-000-000-000-000\",\n haitian_haitian_creole: \"122-061-000-000-000-000-000\",\n hausa: \"122-062-000-000-000-000-000\",\n hebrew: \"122-063-000-000-000-000-000\",\n herero: \"122-064-000-000-000-000-000\",\n hindi: \"122-065-000-000-000-000-000\",\n hiri_motu: \"122-066-000-000-000-000-000\",\n hungarian: \"122-067-000-000-000-000-000\",\n icelandic: \"122-068-000-000-000-000-000\",\n ido: \"122-069-000-000-000-000-000\",\n igbo: \"122-070-000-000-000-000-000\",\n indonesian: \"122-071-000-000-000-000-000\",\n interlingua: \"122-072-000-000-000-000-000\",\n interlingue_occidental: \"122-073-000-000-000-000-000\",\n inuktitut: \"122-074-000-000-000-000-000\",\n inupiaq: \"122-075-000-000-000-000-000\",\n irish: \"122-076-000-000-000-000-000\",\n italian: \"122-077-000-000-000-000-000\",\n japanese: \"122-078-000-000-000-000-000\",\n javanese: \"122-079-000-000-000-000-000\",\n kalaallisut_greenlandic: \"122-080-000-000-000-000-000\",\n kannada: \"122-081-000-000-000-000-000\",\n kanuri: \"122-082-000-000-000-000-000\",\n kashmiri: \"122-083-000-000-000-000-000\",\n kazakh: \"122-084-000-000-000-000-000\",\n kikuyu_gikuyu: \"122-085-000-000-000-000-000\",\n kinyarwanda: \"122-086-000-000-000-000-000\",\n kirghiz_kyrgyz: \"122-087-000-000-000-000-000\",\n komi: \"122-088-000-000-000-000-000\",\n kongo: \"122-089-000-000-000-000-000\",\n korean: \"122-090-000-000-000-000-000\",\n kuanyama_kwanyama: \"122-091-000-000-000-000-000\",\n kurdish: \"122-092-000-000-000-000-000\",\n lao: \"122-093-000-000-000-000-000\",\n latin: \"122-094-000-000-000-000-000\",\n latvian: \"122-095-000-000-000-000-000\",\n limburgan_limburger_limburgish: \"122-096-000-000-000-000-000\",\n lingala: \"122-097-000-000-000-000-000\",\n lithuanian: \"122-098-000-000-000-000-000\",\n luba_katanga: \"122-099-000-000-000-000-000\",\n luxembourgish_letzeburgesch: \"122-100-000-000-000-000-000\",\n macedonian: \"122-101-000-000-000-000-000\",\n malagasy: \"122-102-000-000-000-000-000\",\n malay: \"122-103-000-000-000-000-000\",\n malayalam: \"122-104-000-000-000-000-000\",\n maltese: \"122-105-000-000-000-000-000\",\n manx: \"122-106-000-000-000-000-000\",\n maori: \"122-107-000-000-000-000-000\",\n marathi: \"122-108-000-000-000-000-000\",\n marshallese: \"122-109-000-000-000-000-000\",\n modern_greek: \"122-110-000-000-000-000-000\",\n mongolian: \"122-111-000-000-000-000-000\",\n nauru: \"122-112-000-000-000-000-000\",\n navajo_navaho: \"122-113-000-000-000-000-000\",\n ndonga: \"122-114-000-000-000-000-000\",\n nepali: \"122-115-000-000-000-000-000\",\n north_ndebele: \"122-116-000-000-000-000-000\",\n northern_sami: \"122-117-000-000-000-000-000\",\n norwegian: \"122-118-000-000-000-000-000\",\n norwegian_bokmal: \"122-119-000-000-000-000-000\",\n norwegian_nynorsk: \"122-120-000-000-000-000-000\",\n occitan: \"122-121-000-000-000-000-000\",\n ojibwa: \"122-122-000-000-000-000-000\",\n oriya: \"122-123-000-000-000-000-000\",\n oromo: \"122-124-000-000-000-000-000\",\n ossetian_ossetic: \"122-125-000-000-000-000-000\",\n other_language: \"122-126-000-000-000-000-000\",\n pali: \"122-127-000-000-000-000-000\",\n panjabi_punjabi: \"122-128-000-000-000-000-000\",\n persian: \"122-129-000-000-000-000-000\",\n polish: \"122-130-000-000-000-000-000\",\n portuguese: \"122-131-000-000-000-000-000\",\n pushto_pashto: \"122-132-000-000-000-000-000\",\n quechua: \"122-133-000-000-000-000-000\",\n romanian_moldavian_moldovan: \"122-134-000-000-000-000-000\",\n romansh: \"122-135-000-000-000-000-000\",\n rundi: \"122-136-000-000-000-000-000\",\n russian: \"122-137-000-000-000-000-000\",\n samoan: \"122-138-000-000-000-000-000\",\n sango: \"122-139-000-000-000-000-000\",\n sanskrit: \"122-140-000-000-000-000-000\",\n sardinian: \"122-141-000-000-000-000-000\",\n serbian: \"122-142-000-000-000-000-000\",\n shona: \"122-143-000-000-000-000-000\",\n sichuan_yi_nuosu: \"122-144-000-000-000-000-000\",\n sindhi: \"122-145-000-000-000-000-000\",\n sinhala_sinhalese: \"122-146-000-000-000-000-000\",\n slovak: \"122-147-000-000-000-000-000\",\n slovenian: \"122-148-000-000-000-000-000\",\n somali: \"122-149-000-000-000-000-000\",\n sotho_southern: \"122-150-000-000-000-000-000\",\n south_ndebele: \"122-151-000-000-000-000-000\",\n spanish: \"122-152-000-000-000-000-000\",\n sundanese: \"122-153-000-000-000-000-000\",\n swahili: \"122-154-000-000-000-000-000\",\n swati: \"122-155-000-000-000-000-000\",\n swedish: \"122-156-000-000-000-000-000\",\n tagalog: \"122-157-000-000-000-000-000\",\n tahitian: \"122-158-000-000-000-000-000\",\n tajik: \"122-159-000-000-000-000-000\",\n tamil: \"122-160-000-000-000-000-000\",\n tatar: \"122-161-000-000-000-000-000\",\n telugu: \"122-162-000-000-000-000-000\",\n thai: \"122-163-000-000-000-000-000\",\n tibetan: \"122-164-000-000-000-000-000\",\n tigrinya: \"122-165-000-000-000-000-000\",\n tonga: \"122-166-000-000-000-000-000\",\n tsonga: \"122-167-000-000-000-000-000\",\n tswana: \"122-168-000-000-000-000-000\",\n turkish: \"122-169-000-000-000-000-000\",\n turkmen: \"122-170-000-000-000-000-000\",\n twi: \"122-171-000-000-000-000-000\",\n uighur_uyghur: \"122-172-000-000-000-000-000\",\n ukrainian: \"122-173-000-000-000-000-000\",\n urdu: \"122-174-000-000-000-000-000\",\n uzbek: \"122-175-000-000-000-000-000\",\n venda: \"122-176-000-000-000-000-000\",\n vietnamese: \"122-177-000-000-000-000-000\",\n volapuk: \"122-178-000-000-000-000-000\",\n walloon: \"122-179-000-000-000-000-000\",\n welsh: \"122-180-000-000-000-000-000\",\n western_frisian: \"122-181-000-000-000-000-000\",\n wolof: \"122-182-000-000-000-000-000\",\n xhosa: \"122-183-000-000-000-000-000\",\n yiddish: \"122-184-000-000-000-000-000\",\n yoruba: \"122-185-000-000-000-000-000\",\n zhuang_chuang: \"122-186-000-000-000-000-000\",\n zulu: \"122-187-000-000-000-000-000\",\n} as const;\n\nexport type PrimaryLanguageKey = keyof typeof PrimaryLanguageKeys;\n\n/**\n * Key → positional code map for the `orientation_identity` CVC domain.\n *\n * Domain: `orientation_identity` · Version: 1.0.0 · Entries: 9\n */\nexport const OrientationIdentityKeys = {\n missingness_root: \"016-000-000-000-000-000-000\",\n unknown: \"016-000-000-000-000-000-001\",\n anonymous: \"016-000-000-000-000-000-002\",\n data_not_collected: \"016-000-000-000-000-000-003\",\n prefer_not_to_answer: \"016-000-000-000-000-000-004\",\n bisexual: \"016-001-000-000-000-000-000\",\n gay_or_lesbian: \"016-002-000-000-000-000-000\",\n other_self_described: \"016-003-000-000-000-000-000\",\n straight: \"016-004-000-000-000-000-000\",\n} as const;\n\nexport type OrientationIdentityKey = keyof typeof OrientationIdentityKeys;\n\n/**\n * Key → positional code map for the `pronouns` CVC domain.\n *\n * Domain: `pronouns` · Version: 1.0.0 · Entries: 8\n */\nexport const PronounsKeys = {\n missingness_root: \"147-000-000-000-000-000-000\",\n unknown: \"147-000-000-000-000-000-001\",\n anonymous: \"147-000-000-000-000-000-002\",\n data_not_collected: \"147-000-000-000-000-000-003\",\n he_him: \"147-001-000-000-000-000-000\",\n she_her: \"147-002-000-000-000-000-000\",\n they_them: \"147-003-000-000-000-000-000\",\n other_self_described: \"147-004-000-000-000-000-000\",\n} as const;\n\nexport type PronounsKey = keyof typeof PronounsKeys;\n\n/**\n * Key → positional code map for the `gender_identity` CVC domain.\n *\n * Domain: `gender_identity` · Version: 1.0.0 · Entries: 12\n */\nexport const GenderIdentityKeys = {\n missingness_root: \"017-000-000-000-000-000-000\",\n unknown: \"017-000-000-000-000-000-001\",\n anonymous: \"017-000-000-000-000-000-002\",\n data_not_collected: \"017-000-000-000-000-000-003\",\n prefer_not_to_answer: \"017-000-000-000-000-000-004\",\n female: \"017-001-000-000-000-000-000\",\n male: \"017-002-000-000-000-000-000\",\n non_binary: \"017-003-000-000-000-000-000\",\n other: \"017-004-000-000-000-000-000\",\n transgender: \"017-005-000-000-000-000-000\",\n transgender_ftm: \"017-005-001-000-000-000-000\",\n transgender_mtf: \"017-005-002-000-000-000-000\",\n} as const;\n\nexport type GenderIdentityKey = keyof typeof GenderIdentityKeys;\n\n/**\n * Key → positional code map for the `tribes` CVC domain.\n *\n * Domain: `tribes` · Version: 1.0.0 · Entries: 53\n */\nexport const TribesKeys = {\n missingness_root: \"148-000-000-000-000-000-000\",\n unknown: \"148-000-000-000-000-000-001\",\n anonymous: \"148-000-000-000-000-000-002\",\n data_not_collected: \"148-000-000-000-000-000-003\",\n cherokee_nation: \"148-001-000-000-000-000-000\",\n muscogee_creek: \"148-002-000-000-000-000-000\",\n choctaw_nation: \"148-003-000-000-000-000-000\",\n chickasaw_nation: \"148-004-000-000-000-000-000\",\n seminole_nation: \"148-005-000-000-000-000-000\",\n osage_nation: \"148-006-000-000-000-000-000\",\n cheyenne_arapaho: \"148-007-000-000-000-000-000\",\n comanche_nation: \"148-008-000-000-000-000-000\",\n kiowa_tribe: \"148-009-000-000-000-000-000\",\n apache_tribe_ok: \"148-010-000-000-000-000-000\",\n caddo_nation: \"148-011-000-000-000-000-000\",\n wichita_affiliated: \"148-012-000-000-000-000-000\",\n delaware_nation: \"148-013-000-000-000-000-000\",\n delaware_tribe_indians: \"148-014-000-000-000-000-000\",\n pawnee_nation: \"148-015-000-000-000-000-000\",\n ponca_tribe_ok: \"148-016-000-000-000-000-000\",\n otoe_missouria: \"148-017-000-000-000-000-000\",\n kaw_nation: \"148-018-000-000-000-000-000\",\n tonkawa_tribe: \"148-019-000-000-000-000-000\",\n iowa_tribe_ok: \"148-020-000-000-000-000-000\",\n sac_fox_ok: \"148-021-000-000-000-000-000\",\n kickapoo_tribe_ok: \"148-022-000-000-000-000-000\",\n potawatomi_citizen: \"148-023-000-000-000-000-000\",\n absentee_shawnee: \"148-024-000-000-000-000-000\",\n eastern_shawnee: \"148-025-000-000-000-000-000\",\n shawnee_tribe: \"148-026-000-000-000-000-000\",\n quapaw_nation: \"148-027-000-000-000-000-000\",\n peoria_tribe: \"148-028-000-000-000-000-000\",\n miami_tribe: \"148-029-000-000-000-000-000\",\n modoc_nation: \"148-030-000-000-000-000-000\",\n ottawa_tribe: \"148-031-000-000-000-000-000\",\n seneca_cayuga: \"148-032-000-000-000-000-000\",\n wyandotte_nation: \"148-033-000-000-000-000-000\",\n united_keetoowah: \"148-034-000-000-000-000-000\",\n thlopthlocco: \"148-035-000-000-000-000-000\",\n alabama_quassarte: \"148-036-000-000-000-000-000\",\n kialegee: \"148-037-000-000-000-000-000\",\n fort_sill_apache: \"148-038-000-000-000-000-000\",\n ponca_ne: \"148-039-000-000-000-000-000\",\n omaha_tribe: \"148-040-000-000-000-000-000\",\n winnebago_ne: \"148-041-000-000-000-000-000\",\n santee_sioux: \"148-042-000-000-000-000-000\",\n sioux_specify: \"148-043-000-000-000-000-000\",\n apache_specify: \"148-044-000-000-000-000-000\",\n pueblo_specify: \"148-045-000-000-000-000-000\",\n navajo_specify: \"148-046-000-000-000-000-000\",\n ojibwe_chippewa_specify: \"148-047-000-000-000-000-000\",\n ute_specify: \"148-048-000-000-000-000-000\",\n other_self_described: \"148-049-000-000-000-000-000\",\n} as const;\n\nexport type TribesKey = keyof typeof TribesKeys;\n\n/**\n * Key → positional code map for the `name_type` CVC domain.\n *\n * Domain: `name_type` · Version: 1.0.0 · Entries: 12\n */\nexport const NameTypeKeys = {\n missingness_root: \"001-000-000-000-000-000-000\",\n unknown: \"001-000-000-000-000-000-001\",\n anonymous: \"001-000-000-000-000-000-002\",\n data_not_collected: \"001-000-000-000-000-000-003\",\n alias: \"001-001-000-000-000-000-000\",\n code_name: \"001-002-000-000-000-000-000\",\n handle_screenname: \"001-003-000-000-000-000-000\",\n legal: \"001-004-000-000-000-000-000\",\n maiden_former: \"001-005-000-000-000-000-000\",\n nickname: \"001-006-000-000-000-000-000\",\n street_name: \"001-007-000-000-000-000-000\",\n trade_name_stage_name: \"001-008-000-000-000-000-000\",\n} as const;\n\nexport type NameTypeKey = keyof typeof NameTypeKeys;\n\n/**\n * Key → positional code map for the `age_bin_reporting` CVC domain.\n *\n * Domain: `age_bin_reporting` · Version: 1.0.0 · Entries: 11\n */\nexport const AgeBinReportingKeys = {\n missingness_root: \"051-000-000-000-000-000-000\",\n unknown: \"051-000-000-000-000-000-001\",\n anonymous: \"051-000-000-000-000-000-002\",\n data_not_collected: \"051-000-000-000-000-000-003\",\n age_0_12: \"051-001-000-000-000-000-000\",\n age_13_17: \"051-002-000-000-000-000-000\",\n age_18_24: \"051-003-000-000-000-000-000\",\n age_25_59: \"051-004-000-000-000-000-000\",\n age_60_plus: \"051-005-000-000-000-000-000\",\n not_reported: \"051-006-000-000-000-000-000\",\n not_tracked: \"051-007-000-000-000-000-000\",\n} as const;\n\nexport type AgeBinReportingKey = keyof typeof AgeBinReportingKeys;\n\n/**\n * Key → positional code map for the `juvenile_justice_involvement_status` CVC domain.\n *\n * Domain: `juvenile_justice_involvement_status` · Version: 1.0.0 · Entries: 7\n */\nexport const JuvenileJusticeInvolvementStatusKeys = {\n missingness_root: \"095-000-000-000-000-000-000\",\n unknown: \"095-000-000-000-000-000-001\",\n prefer_not_to_answer: \"095-000-000-000-000-000-002\",\n data_not_collected: \"095-000-000-000-000-000-003\",\n current: \"095-001-000-000-000-000-000\",\n never: \"095-002-000-000-000-000-000\",\n previous: \"095-003-000-000-000-000-000\",\n} as const;\n\nexport type JuvenileJusticeInvolvementStatusKey = keyof typeof JuvenileJusticeInvolvementStatusKeys;\n\n/**\n * Key → positional code map for the `eye_color` CVC domain.\n *\n * Domain: `eye_color` · Version: 1.0.0 · Entries: 11\n */\nexport const EyeColorKeys = {\n missingness_root: \"150-000-000-000-000-000-000\",\n unknown: \"150-000-000-000-000-000-001\",\n anonymous: \"150-000-000-000-000-000-002\",\n data_not_collected: \"150-000-000-000-000-000-003\",\n black: \"150-001-000-000-000-000-000\",\n blue: \"150-002-000-000-000-000-000\",\n brown: \"150-003-000-000-000-000-000\",\n gray: \"150-004-000-000-000-000-000\",\n green: \"150-005-000-000-000-000-000\",\n hazel: \"150-006-000-000-000-000-000\",\n other: \"150-007-000-000-000-000-000\",\n} as const;\n\nexport type EyeColorKey = keyof typeof EyeColorKeys;\n\n/**\n * Key → positional code map for the `smt_type` CVC domain.\n *\n * Domain: `smt_type` · Version: 1.0.0 · Entries: 11\n */\nexport const SmtTypeKeys = {\n missingness_root: \"153-000-000-000-000-000-000\",\n unknown: \"153-000-000-000-000-000-001\",\n anonymous: \"153-000-000-000-000-000-002\",\n data_not_collected: \"153-000-000-000-000-000-003\",\n birthmark: \"153-001-000-000-000-000-000\",\n brand: \"153-002-000-000-000-000-000\",\n mark: \"153-003-000-000-000-000-000\",\n piercing: \"153-004-000-000-000-000-000\",\n scar: \"153-005-000-000-000-000-000\",\n tattoo: \"153-006-000-000-000-000-000\",\n other: \"153-007-000-000-000-000-000\",\n} as const;\n\nexport type SmtTypeKey = keyof typeof SmtTypeKeys;\n\n/**\n * Key → positional code map for the `offender_status` CVC domain.\n *\n * Domain: `offender_status` · Version: 1.0.0 · Entries: 9\n */\nexport const OffenderStatusKeys = {\n missingness_root: \"164-000-000-000-000-000-000\",\n unknown: \"164-000-000-000-000-000-001\",\n anonymous: \"164-000-000-000-000-000-002\",\n data_not_collected: \"164-000-000-000-000-000-003\",\n suspected_offender: \"164-001-000-000-000-000-000\",\n person_of_interest: \"164-002-000-000-000-000-000\",\n cleared_excluded: \"164-003-000-000-000-000-000\",\n charged: \"164-004-000-000-000-000-000\",\n convicted: \"164-005-000-000-000-000-000\",\n} as const;\n\nexport type OffenderStatusKey = keyof typeof OffenderStatusKeys;\n\n/**\n * Key → positional code map for the `offender_status_family` CVC domain.\n *\n * Domain: `offender_status_family` · Version: 1.0.0 · Entries: 8\n */\nexport const OffenderStatusFamilyKeys = {\n missingness_root: \"167-000-000-000-000-000-000\",\n unknown: \"167-000-000-000-000-000-001\",\n anonymous: \"167-000-000-000-000-000-002\",\n data_not_collected: \"167-000-000-000-000-000-003\",\n no_indication: \"167-001-000-000-000-000-000\",\n non_trafficking_exploitation_offender: \"167-002-000-000-000-000-000\",\n potential_trafficking_offender: \"167-003-000-000-000-000-000\",\n trafficking_offender: \"167-004-000-000-000-000-000\",\n} as const;\n\nexport type OffenderStatusFamilyKey = keyof typeof OffenderStatusFamilyKeys;\n\n/**\n * Key → positional code map for the `military_status` CVC domain.\n *\n * Domain: `military_status` · Version: 1.0.0 · Entries: 6\n */\nexport const MilitaryStatusKeys = {\n missingness_root: \"121-000-000-000-000-000-000\",\n unknown: \"121-000-000-000-000-000-001\",\n active_duty: \"121-001-000-000-000-000-000\",\n retired: \"121-002-000-000-000-000-000\",\n discharged: \"121-003-000-000-000-000-000\",\n reserve: \"121-004-000-000-000-000-000\",\n} as const;\n\nexport type MilitaryStatusKey = keyof typeof MilitaryStatusKeys;\n\n/**\n * Key → positional code map for the `military_branch` CVC domain.\n *\n * Domain: `military_branch` · Version: 1.0.0 · Entries: 8\n */\nexport const MilitaryBranchKeys = {\n missingness_root: \"120-000-000-000-000-000-000\",\n unknown: \"120-000-000-000-000-000-001\",\n army: \"120-001-000-000-000-000-000\",\n navy: \"120-002-000-000-000-000-000\",\n air_force: \"120-003-000-000-000-000-000\",\n marines: \"120-004-000-000-000-000-000\",\n coast_guard: \"120-005-000-000-000-000-000\",\n space_force: \"120-006-000-000-000-000-000\",\n} as const;\n\nexport type MilitaryBranchKey = keyof typeof MilitaryBranchKeys;\n\n/**\n * Key → positional code map for the `contact_info_types` CVC domain.\n *\n * Domain: `contact_info_types` · Version: 1.0.0 · Entries: 24\n */\nexport const ContactInfoTypeKeys = {\n missingness_root: \"149-000-000-000-000-000-000\",\n unknown: \"149-000-000-000-000-000-001\",\n anonymous: \"149-000-000-000-000-000-002\",\n data_not_collected: \"149-000-000-000-000-000-003\",\n phone: \"149-001-000-000-000-000-000\",\n email: \"149-002-000-000-000-000-000\",\n app: \"149-003-000-000-000-000-000\",\n app_whatsapp: \"149-003-001-000-000-000-000\",\n app_wechat: \"149-003-002-000-000-000-000\",\n app_kik: \"149-003-003-000-000-000-000\",\n app_paypal: \"149-003-004-000-000-000-000\",\n app_cash_app: \"149-003-005-000-000-000-000\",\n app_venmo: \"149-003-006-000-000-000-000\",\n app_other: \"149-003-007-000-000-000-000\",\n social_media: \"149-004-000-000-000-000-000\",\n social_media_facebook: \"149-004-001-000-000-000-000\",\n social_media_instagram: \"149-004-002-000-000-000-000\",\n social_media_x: \"149-004-003-000-000-000-000\",\n social_media_tiktok: \"149-004-004-000-000-000-000\",\n social_media_reddit: \"149-004-005-000-000-000-000\",\n social_media_youtube: \"149-004-006-000-000-000-000\",\n social_media_snapchat: \"149-004-007-000-000-000-000\",\n social_media_onlyfans: \"149-004-008-000-000-000-000\",\n social_media_other: \"149-004-009-000-000-000-000\",\n} as const;\n\nexport type ContactInfoTypeKey = keyof typeof ContactInfoTypeKeys;\n\n/**\n * Key → positional code map for the `contact_safety_status` CVC domain.\n *\n * Domain: `contact_safety_status` · Version: 1.0.0 · Entries: 6\n */\nexport const ContactSafetyStatusKeys = {\n missingness_root: \"155-000-000-000-000-000-000\",\n unknown: \"155-000-000-000-000-000-001\",\n anonymous: \"155-000-000-000-000-000-002\",\n data_not_collected: \"155-000-000-000-000-000-003\",\n safe: \"155-001-000-000-000-000-000\",\n not_safe: \"155-002-000-000-000-000-000\",\n} as const;\n\nexport type ContactSafetyStatusKey = keyof typeof ContactSafetyStatusKeys;\n\n/**\n * Key → positional code map for the `highest_education_level_completed` CVC domain.\n *\n * Domain: `highest_education_level_completed` · Version: 1.1.0 · Entries: 13\n */\nexport const HighestEducationLevelCompletedKeys = {\n missingness_root: \"180-000-000-000-000-000-000\",\n unknown: \"180-000-000-000-000-000-001\",\n anonymous: \"180-000-000-000-000-000-002\",\n data_not_collected: \"180-000-000-000-000-000-003\",\n prefer_not_to_answer: \"180-000-000-000-000-000-004\",\n less_than_high_school: \"180-001-000-000-000-000-000\",\n high_school_diploma: \"180-002-000-000-000-000-000\",\n ged: \"180-003-000-000-000-000-000\",\n some_college: \"180-004-000-000-000-000-000\",\n associates: \"180-005-000-000-000-000-000\",\n bachelors: \"180-006-000-000-000-000-000\",\n graduate_professional: \"180-007-000-000-000-000-000\",\n trade_vocational: \"180-008-000-000-000-000-000\",\n} as const;\n\nexport type HighestEducationLevelCompletedKey = keyof typeof HighestEducationLevelCompletedKeys;\n\n/**\n * Key → positional code map for the `preferred_contact_method` CVC domain.\n *\n * Domain: `preferred_contact_method` · Version: 1.0.0 · Entries: 4\n */\nexport const PreferredContactMethodKeys = {\n call: \"185-001-000-000-000-000-000\",\n text: \"185-002-000-000-000-000-000\",\n email: \"185-003-000-000-000-000-000\",\n messaging_app_dm: \"185-004-000-000-000-000-000\",\n} as const;\n\nexport type PreferredContactMethodKey = keyof typeof PreferredContactMethodKeys;\n\n/**\n * Key → positional code map for the `share_purpose` CVC domain.\n *\n * Domain: `share_purpose` · Version: 1.1.0 · Entries: 12\n */\nexport const SharePurposeKeys = {\n referral: \"084-001-000-000-000-000-000\",\n case_collaboration: \"084-002-000-000-000-000-000\",\n deconfliction: \"084-003-000-000-000-000-000\",\n mandatory_reporting: \"084-004-000-000-000-000-000\",\n authority_reporting: \"084-005-000-000-000-000-000\",\n automatic_account_share: \"084-006-000-000-000-000-000\",\n discretionary_share: \"084-007-000-000-000-000-000\",\n records_request: \"084-008-000-000-000-000-000\",\n investigation_support: \"084-009-000-000-000-000-000\",\n threat_prevention: \"084-010-000-000-000-000-000\",\n awareness_product: \"084-011-000-000-000-000-000\",\n prosecution_support: \"084-012-000-000-000-000-000\",\n} as const;\n\nexport type SharePurposeKey = keyof typeof SharePurposeKeys;\n\n/**\n * Key → positional code map for the `referral_origin` CVC domain.\n *\n * Domain: `referral_origin` · Version: 1.0.0 · Entries: 2\n */\nexport const ReferralOriginKeys = {\n internal: \"909-001-000-000-000-000-000\",\n external: \"909-002-000-000-000-000-000\",\n} as const;\n\nexport type ReferralOriginKey = keyof typeof ReferralOriginKeys;\n\n/**\n * Key → positional code map for the `case_share_state` CVC domain.\n *\n * Domain: `case_share_state` · Version: 1.0.0 · Entries: 6\n */\nexport const CaseShareStateKeys = {\n pending: \"925-001-000-000-000-000-000\",\n claimed: \"925-002-000-000-000-000-000\",\n accepted_awaiting_review: \"925-003-000-000-000-000-000\",\n accepted: \"925-004-000-000-000-000-000\",\n declined: \"925-005-000-000-000-000-000\",\n rejected: \"925-006-000-000-000-000-000\",\n} as const;\n\nexport type CaseShareStateKey = keyof typeof CaseShareStateKeys;\n\n/**\n * Key → positional code map for the `share_response_reason` CVC domain (CVC-306, canonical v1.1 `Active` after the 2026-09-14 SHARING-FAMILY-AUDIT; generated from prototype origin/main canon by scripts/gen-share-response-reason.py). The structured reasons a recipient gives when responding to an inbound case share. ONE codebook with per-CONTEXT selectability carried per entry as `contexts` (`field_review` · `decline_share` · `reject_share`) — build a context's picker by filtering on `contexts`, not on this key map. The single L0 sentinel (`unknown`, canonical UNK) is ingestion-only and never a picker chip; the codebook's archived DNC row is omitted.\n *\n * Domain: `share_response_reason` · Version: 1.0.0 · Entries: 12\n */\nexport const ShareResponseReasonKeys = {\n missingness_root: \"306-000-000-000-000-000-000\",\n unknown: \"306-000-000-000-000-000-001\",\n information_incorrect: \"306-001-000-000-000-000-000\",\n not_relevant_for_client: \"306-002-000-000-000-000-000\",\n duplicate_already_have: \"306-003-000-000-000-000-000\",\n client_declined_recording: \"306-004-000-000-000-000-000\",\n wrong_agency_service_area: \"306-005-000-000-000-000-000\",\n not_our_client: \"306-006-000-000-000-000-000\",\n sent_in_error: \"306-007-000-000-000-000-000\",\n no_capacity: \"306-008-000-000-000-000-000\",\n cannot_verify_conflicts: \"306-009-000-000-000-000-000\",\n wrong_person: \"306-010-000-000-000-000-000\",\n} as const;\n\nexport type ShareResponseReasonKey = keyof typeof ShareResponseReasonKeys;\n\n/**\n * Key → positional code map for the `facilitator_entity_type` CVC domain.\n *\n * Domain: `facilitator_entity_type` · Version: 1.0.0 · Entries: 14\n */\nexport const FacilitatorEntityTypeKeys = {\n missingness_root: \"165-000-000-000-000-000-000\",\n unknown: \"165-000-000-000-000-000-001\",\n anonymous: \"165-000-000-000-000-000-002\",\n data_not_collected: \"165-000-000-000-000-000-003\",\n individual_person: \"165-001-000-000-000-000-000\",\n call_service: \"165-002-000-000-000-000-000\",\n escort_agency: \"165-003-000-000-000-000-000\",\n illicit_massage_business: \"165-004-000-000-000-000-000\",\n brothel_or_residence_operation: \"165-005-000-000-000-000-000\",\n strip_club_bar_casino_facilitator: \"165-006-000-000-000-000-000\",\n staffing_intermediary_or_labor_broker: \"165-007-000-000-000-000-000\",\n employer_or_worksite_operator: \"165-008-000-000-000-000-000\",\n multi_level_enterprise_or_organization: \"165-009-000-000-000-000-000\",\n other_business_or_establishment: \"165-010-000-000-000-000-000\",\n} as const;\n\nexport type FacilitatorEntityTypeKey = keyof typeof FacilitatorEntityTypeKeys;\n\n/**\n * Key → positional code map for the `facilitator_subrole` CVC domain.\n *\n * Domain: `facilitator_subrole` · Version: 1.0.0 · Entries: 37\n */\nexport const FacilitatorSubroleKeys = {\n missingness_root: \"162-000-000-000-000-000-000\",\n unknown: \"162-000-000-000-000-000-001\",\n anonymous: \"162-000-000-000-000-000-002\",\n data_not_collected: \"162-000-000-000-000-000-003\",\n recruiter: \"162-001-000-000-000-000-000\",\n operational_management: \"162-002-000-000-000-000-000\",\n mgr: \"162-002-001-000-000-000-000\",\n worksite_supervisor_foreman: \"162-002-002-000-000-000-000\",\n comms_advertising: \"162-003-000-000-000-000-000\",\n advertiser_webmaster: \"162-003-001-000-000-000-000\",\n content_creator: \"162-003-002-000-000-000-000\",\n comms_account_control: \"162-003-003-000-000-000-000\",\n dispatch_booking: \"162-004-000-000-000-000-000\",\n dispatcher_call_center: \"162-004-001-000-000-000-000\",\n enforcement_security: \"162-005-000-000-000-000-000\",\n enforcer_security: \"162-005-001-000-000-000-000\",\n lookout_spotter: \"162-005-002-000-000-000-000\",\n financial_control: \"162-006-000-000-000-000-000\",\n financial_facilitator: \"162-006-001-000-000-000-000\",\n debt_fee_collector: \"162-006-002-000-000-000-000\",\n money_launderer: \"162-006-003-000-000-000-000\",\n account_wallet_holder: \"162-006-004-000-000-000-000\",\n transportation_movement: \"162-007-000-000-000-000-000\",\n driver_transporter: \"162-007-001-000-000-000-000\",\n handling_supervision: \"162-008-000-000-000-000-000\",\n handler_minder: \"162-008-001-000-000-000-000\",\n document_identity_control: \"162-009-000-000-000-000-000\",\n document_identity_facilitator: \"162-009-001-000-000-000-000\",\n immigration_visa_controller: \"162-009-002-000-000-000-000\",\n labor_intermediation_worksite_control: \"162-010-000-000-000-000-000\",\n labor_broker_contractor: \"162-010-001-000-000-000-000\",\n housing_venue_harboring: \"162-011-000-000-000-000-000\",\n housing_room_provider: \"162-011-001-000-000-000-000\",\n ownership_enterprise: \"162-012-000-000-000-000-000\",\n owner_operator: \"162-012-001-000-000-000-000\",\n other: \"162-013-000-000-000-000-000\",\n other_unspec: \"162-013-001-000-000-000-000\",\n} as const;\n\nexport type FacilitatorSubroleKey = keyof typeof FacilitatorSubroleKeys;\n\n/**\n * Key → positional code map for the `marital_status_legal` CVC domain.\n *\n * Domain: `marital_status_legal` · Version: 1.0.0 · Entries: 9\n */\nexport const MaritalStatusLegalKeys = {\n missingness_root: \"156-000-000-000-000-000-000\",\n unknown: \"156-000-000-000-000-000-001\",\n anonymous: \"156-000-000-000-000-000-002\",\n data_not_collected: \"156-000-000-000-000-000-003\",\n married: \"156-001-000-000-000-000-000\",\n never_married: \"156-002-000-000-000-000-000\",\n divorced: \"156-003-000-000-000-000-000\",\n separated: \"156-004-000-000-000-000-000\",\n widowed: \"156-005-000-000-000-000-000\",\n} as const;\n\nexport type MaritalStatusLegalKey = keyof typeof MaritalStatusLegalKeys;\n\n/**\n * Key → positional code map for the `relationship_status_current` CVC domain.\n *\n * Domain: `relationship_status_current` · Version: 1.0.0 · Entries: 6\n */\nexport const RelationshipStatusCurrentKeys = {\n missingness_root: \"157-000-000-000-000-000-000\",\n unknown: \"157-000-000-000-000-000-001\",\n anonymous: \"157-000-000-000-000-000-002\",\n data_not_collected: \"157-000-000-000-000-000-003\",\n partnered: \"157-001-000-000-000-000-000\",\n not_partnered: \"157-002-000-000-000-000-000\",\n} as const;\n\nexport type RelationshipStatusCurrentKey = keyof typeof RelationshipStatusCurrentKeys;\n\n/**\n * Key → positional code map for the `has_tattoos` CVC domain.\n *\n * Domain: `has_tattoos` · Version: 1.0.0 · Entries: 6\n */\nexport const HasTattoosKeys = {\n missingness_root: \"152-000-000-000-000-000-000\",\n unknown: \"152-000-000-000-000-000-001\",\n anonymous: \"152-000-000-000-000-000-002\",\n data_not_collected: \"152-000-000-000-000-000-003\",\n yes: \"152-001-000-000-000-000-000\",\n no: \"152-002-000-000-000-000-000\",\n} as const;\n\nexport type HasTattoosKey = keyof typeof HasTattoosKeys;\n\n/**\n * Key → positional code map for the `facilitator_label_used_in_source` CVC domain.\n *\n * Domain: `facilitator_label_used_in_source` · Version: 1.0.0 · Entries: 16\n */\nexport const FacilitatorLabelUsedInSourceKeys = {\n missingness_root: \"166-000-000-000-000-000-000\",\n unknown: \"166-000-000-000-000-000-001\",\n anonymous: \"166-000-000-000-000-000-002\",\n data_not_collected: \"166-000-000-000-000-000-003\",\n boss: \"166-001-000-000-000-000-000\",\n bottom: \"166-002-000-000-000-000-000\",\n boyfriend_or_intimate_partner: \"166-003-000-000-000-000-000\",\n coyote: \"166-004-000-000-000-000-000\",\n fraudulent_job_recruiter: \"166-005-000-000-000-000-000\",\n madame: \"166-006-000-000-000-000-000\",\n neighbor: \"166-007-000-000-000-000-000\",\n parent_or_guardian: \"166-008-000-000-000-000-000\",\n peer_recruiter: \"166-009-000-000-000-000-000\",\n pimp: \"166-010-000-000-000-000-000\",\n romeo_recruiter: \"166-011-000-000-000-000-000\",\n other_source_term: \"166-012-000-000-000-000-000\",\n} as const;\n\nexport type FacilitatorLabelUsedInSourceKey = keyof typeof FacilitatorLabelUsedInSourceKeys;\n\n/**\n * Key → positional code map for the `homeless_status` CVC domain.\n *\n * Domain: `homeless_status` · Version: 1.0.0 · Entries: 9\n */\nexport const HomelessStatusKeys = {\n missingness_root: \"096-000-000-000-000-000-000\",\n unknown: \"096-000-000-000-000-000-001\",\n anonymous: \"096-000-000-000-000-000-002\",\n data_not_collected: \"096-000-000-000-000-000-003\",\n client_doesnt_know: \"096-000-000-000-000-000-004\",\n client_refused: \"096-000-000-000-000-000-005\",\n current: \"096-001-000-000-000-000-000\",\n former: \"096-002-000-000-000-000-000\",\n never: \"096-003-000-000-000-000-000\",\n} as const;\n\nexport type HomelessStatusKey = keyof typeof HomelessStatusKeys;\n\n/**\n * Key → positional code map for the `victim_status_family` CVC domain.\n *\n * Domain: `victim_status_family` · Version: 1.0.0 · Entries: 9\n */\nexport const VictimStatusFamilyKeys = {\n missingness_root: \"020-000-000-000-000-000-000\",\n unknown: \"020-000-000-000-000-000-001\",\n anonymous: \"020-000-000-000-000-000-002\",\n data_not_collected: \"020-000-000-000-000-000-003\",\n no_indication: \"020-001-000-000-000-000-000\",\n voluntary_industry_engagement: \"020-002-000-000-000-000-000\",\n non_trafficking_exploitation: \"020-003-000-000-000-000-000\",\n potential_trafficking_victim: \"020-004-000-000-000-000-000\",\n trafficking_victim: \"020-005-000-000-000-000-000\",\n} as const;\n\nexport type VictimStatusFamilyKey = keyof typeof VictimStatusFamilyKeys;\n\n/**\n * Key → positional code map for the `hair_color` CVC domain.\n *\n * Domain: `hair_color` · Version: 1.0.0 · Entries: 10\n */\nexport const HairColorKeys = {\n missingness_root: \"151-000-000-000-000-000-000\",\n unknown: \"151-000-000-000-000-000-001\",\n anonymous: \"151-000-000-000-000-000-002\",\n data_not_collected: \"151-000-000-000-000-000-003\",\n black: \"151-001-000-000-000-000-000\",\n blonde: \"151-002-000-000-000-000-000\",\n brown: \"151-003-000-000-000-000-000\",\n gray_white: \"151-004-000-000-000-000-000\",\n red: \"151-005-000-000-000-000-000\",\n other: \"151-006-000-000-000-000-000\",\n} as const;\n\nexport type HairColorKey = keyof typeof HairColorKeys;\n\n/**\n * Key → positional code map for the `sex_provider_subrole` CVC domain.\n *\n * Domain: `sex_provider_subrole` · Version: 1.0.0 · Entries: 7\n */\nexport const SexProviderSubroleKeys = {\n missingness_root: \"161-000-000-000-000-000-000\",\n unknown: \"161-000-000-000-000-000-001\",\n anonymous: \"161-000-000-000-000-000-002\",\n data_not_collected: \"161-000-000-000-000-000-003\",\n bottom: \"161-001-000-000-000-000-000\",\n escort: \"161-002-000-000-000-000-000\",\n stripper_exotic_dancer: \"161-003-000-000-000-000-000\",\n} as const;\n\nexport type SexProviderSubroleKey = keyof typeof SexProviderSubroleKeys;\n\n/**\n * Key → positional code map for the `relationship_ties` CVC domain.\n *\n * Domain: `relationship_ties` · Version: 1.0.0 · Entries: 28\n */\nexport const RelationshipTiesKeys = {\n missingness_root: \"158-000-000-000-000-000-000\",\n unknown: \"158-000-000-000-000-000-001\",\n anonymous: \"158-000-000-000-000-000-002\",\n data_not_collected: \"158-000-000-000-000-000-003\",\n household_living: \"158-001-000-000-000-000-000\",\n cohabitating: \"158-001-001-000-000-000-000\",\n shared_care_environment: \"158-001-002-000-000-000-000\",\n child_family: \"158-002-000-000-000-000-000\",\n has_children_together: \"158-002-001-000-000-000-000\",\n co_parenting: \"158-002-002-000-000-000-000\",\n family_care_obligation: \"158-002-003-000-000-000-000\",\n legal_formal: \"158-003-000-000-000-000-000\",\n legally_married: \"158-003-001-000-000-000-000\",\n legal_guardianship: \"158-003-002-000-000-000-000\",\n custody_or_visitation_link: \"158-003-003-000-000-000-000\",\n protective_order_link: \"158-003-004-000-000-000-000\",\n shared_legal_case_or_order: \"158-003-005-000-000-000-000\",\n financial_resource: \"158-004-000-000-000-000-000\",\n financial_dependence: \"158-004-001-000-000-000-000\",\n shared_finances: \"158-004-002-000-000-000-000\",\n shared_property_or_lease: \"158-004-003-000-000-000-000\",\n shared_employment_or_income_link: \"158-004-004-000-000-000-000\",\n access_logistics: \"158-005-000-000-000-000-000\",\n transportation_dependence: \"158-005-001-000-000-000-000\",\n communication_access_link: \"158-005-002-000-000-000-000\",\n document_or_id_link: \"158-005-003-000-000-000-000\",\n regular_unavoidable_contact: \"158-005-004-000-000-000-000\",\n other_fallback: \"158-006-000-000-000-000-000\",\n} as const;\n\nexport type RelationshipTiesKey = keyof typeof RelationshipTiesKeys;\n\n/**\n * Key → positional code map for the `person_relationships` CVC domain.\n *\n * Domain: `person_relationships` · Version: 1.0.0 · Entries: 94\n */\nexport const PersonRelationshipsKeys = {\n missingness_root: \"126-000-000-000-000-000-000\",\n anonymous: \"126-000-000-000-000-000-002\",\n data_not_collected: \"126-000-000-000-000-000-003\",\n familial: \"126-001-000-000-000-000-000\",\n grandparent_grandchild: \"126-001-001-000-000-000-000\",\n grandchild_of: \"126-001-001-001-000-000-000\",\n grandparent_of: \"126-001-001-002-000-000-000\",\n guardian_dependent: \"126-001-002-000-000-000-000\",\n dependent_of: \"126-001-002-001-000-000-000\",\n guardian_of: \"126-001-002-002-000-000-000\",\n in_law: \"126-001-003-000-000-000-000\",\n other_relative: \"126-001-004-000-000-000-000\",\n parent_child: \"126-001-005-000-000-000-000\",\n child_of: \"126-001-005-001-000-000-000\",\n parent_of: \"126-001-005-002-000-000-000\",\n sibling: \"126-001-006-000-000-000-000\",\n parental_figure_dependent: \"126-001-007-000-000-000-000\",\n dependent_of_parental_figure: \"126-001-007-001-000-000-000\",\n parental_figure_of: \"126-001-007-002-000-000-000\",\n romantic_partner: \"126-002-000-000-000-000-000\",\n dating_relationship: \"126-002-001-000-000-000-000\",\n spouse_partner: \"126-002-002-000-000-000-000\",\n intimate_romantic_partner: \"126-002-003-000-000-000-000\",\n intimate_partner_prior: \"126-002-004-000-000-000-000\",\n care_household: \"126-003-000-000-000-000-000\",\n caregiver_care_recipient: \"126-003-001-000-000-000-000\",\n care_recipient_of: \"126-003-001-001-000-000-000\",\n caregiver_of: \"126-003-001-002-000-000-000\",\n support_person: \"126-003-002-000-000-000-000\",\n support_person_of: \"126-003-002-001-000-000-000\",\n has_support_person: \"126-003-002-002-000-000-000\",\n household_member: \"126-003-003-000-000-000-000\",\n social: \"126-004-000-000-000-000-000\",\n acquaintance: \"126-004-001-000-000-000-000\",\n friend_peer: \"126-004-002-000-000-000-000\",\n known_associate: \"126-004-003-000-000-000-000\",\n social_media_connection: \"126-004-004-000-000-000-000\",\n work_economic: \"126-005-000-000-000-000-000\",\n coworker_colleague: \"126-005-001-000-000-000-000\",\n creditor_debtor: \"126-005-002-000-000-000-000\",\n creditor_of: \"126-005-002-001-000-000-000\",\n debtor_of: \"126-005-002-002-000-000-000\",\n employer_employee: \"126-005-003-000-000-000-000\",\n employee_of: \"126-005-003-001-000-000-000\",\n employer_of: \"126-005-003-002-000-000-000\",\n landlord_tenant: \"126-005-004-000-000-000-000\",\n landlord_of: \"126-005-004-001-000-000-000\",\n tenant_of: \"126-005-004-002-000-000-000\",\n supervisor_subordinate: \"126-005-005-000-000-000-000\",\n subordinate_of: \"126-005-005-001-000-000-000\",\n supervisor_of: \"126-005-005-002-000-000-000\",\n service_system: \"126-006-000-000-000-000-000\",\n advocate_client: \"126-006-001-000-000-000-000\",\n advocate_of: \"126-006-001-001-000-000-000\",\n client_of_advocate: \"126-006-001-002-000-000-000\",\n attorney_client: \"126-006-002-000-000-000-000\",\n attorney_of: \"126-006-002-001-000-000-000\",\n client_of_attorney: \"126-006-002-002-000-000-000\",\n caseworker_client: \"126-006-003-000-000-000-000\",\n caseworker_of: \"126-006-003-001-000-000-000\",\n client_of_caseworker: \"126-006-003-002-000-000-000\",\n officer_subject: \"126-006-004-000-000-000-000\",\n officer_of: \"126-006-004-001-000-000-000\",\n subject_of_officer: \"126-006-004-002-000-000-000\",\n provider_client: \"126-006-005-000-000-000-000\",\n client_of_provider: \"126-006-005-001-000-000-000\",\n provider_of: \"126-006-005-002-000-000-000\",\n teacher_student: \"126-006-006-000-000-000-000\",\n student_of: \"126-006-006-001-000-000-000\",\n teacher_of: \"126-006-006-002-000-000-000\",\n exploitation_trafficking: \"126-007-000-000-000-000-000\",\n buyer_target_person: \"126-007-001-000-000-000-000\",\n buyer_of: \"126-007-001-001-000-000-000\",\n target_of_buyer: \"126-007-001-002-000-000-000\",\n controller_target_person: \"126-007-002-000-000-000-000\",\n controller_of: \"126-007-002-001-000-000-000\",\n target_of_controller: \"126-007-002-002-000-000-000\",\n facilitator_target_person: \"126-007-003-000-000-000-000\",\n facilitator_of: \"126-007-003-001-000-000-000\",\n target_of_facilitator: \"126-007-003-002-000-000-000\",\n recruiter_recruited_person: \"126-007-004-000-000-000-000\",\n recruited_by: \"126-007-004-001-000-000-000\",\n recruiter_of: \"126-007-004-002-000-000-000\",\n trafficker_victim: \"126-007-005-000-000-000-000\",\n trafficker_of: \"126-007-005-001-000-000-000\",\n victim_of_trafficker: \"126-007-005-002-000-000-000\",\n other_unspecified: \"126-008-000-000-000-000-000\",\n other_person_relationship: \"126-008-001-000-000-000-000\",\n person_pet: \"126-008-002-000-000-000-000\",\n pet_caregiver_of: \"126-008-002-001-000-000-000\",\n pet_of: \"126-008-002-002-000-000-000\",\n pet_owner_of: \"126-008-002-003-000-000-000\",\n relationship_unknown: \"126-008-003-000-000-000-000\",\n stranger: \"126-008-004-000-000-000-000\",\n} as const;\n\nexport type PersonRelationshipsKey = keyof typeof PersonRelationshipsKeys;\n\n/**\n * Key → positional code map for the `employment_status` CVC domain.\n *\n * Domain: `employment_status` · Version: 1.0.0 · Entries: 29\n */\nexport const EmploymentStatusKeys = {\n missingness_root: \"179-000-000-000-000-000-000\",\n unknown: \"179-000-000-000-000-000-001\",\n anonymous: \"179-000-000-000-000-000-002\",\n data_not_collected: \"179-000-000-000-000-000-003\",\n client_doesnt_know: \"179-000-000-000-000-000-004\",\n client_refused: \"179-000-000-000-000-000-005\",\n employed: \"179-001-000-000-000-000-000\",\n full_time: \"179-001-001-000-000-000-000\",\n part_time: \"179-001-002-000-000-000-000\",\n seasonal_sporadic: \"179-001-003-000-000-000-000\",\n self_employed: \"179-001-004-000-000-000-000\",\n informal_cash_gig: \"179-001-005-000-000-000-000\",\n multiple_jobs: \"179-001-006-000-000-000-000\",\n unpaid_family_worker: \"179-001-007-000-000-000-000\",\n unemployed: \"179-002-000-000-000-000-000\",\n looking_for_work: \"179-002-001-000-000-000-000\",\n actively_seeking: \"179-002-002-000-000-000-000\",\n first_time_job_seeker: \"179-002-003-000-000-000-000\",\n recently_laid_off: \"179-002-004-000-000-000-000\",\n long_term_unemployed: \"179-002-005-000-000-000-000\",\n not_in_labor_force: \"179-003-000-000-000-000-000\",\n not_looking_for_work: \"179-003-001-000-000-000-000\",\n unable_to_work: \"179-003-002-000-000-000-000\",\n student: \"179-003-003-000-000-000-000\",\n caregiver: \"179-003-004-000-000-000-000\",\n disabled: \"179-003-005-000-000-000-000\",\n retired: \"179-003-006-000-000-000-000\",\n discouraged_worker: \"179-003-007-000-000-000-000\",\n other_reason: \"179-003-008-000-000-000-000\",\n} as const;\n\nexport type EmploymentStatusKey = keyof typeof EmploymentStatusKeys;\n\n/**\n * Key → positional code map for the `location_type` CVC domain (CVC-191). Each entry also carries canon's 2026-10-01 share-routing columns (`tier` · `anchors` · `anchorDefault` · `shareUnit` · `safetyDefault`, overlaid by scripts/gen-location-type.py): route a stored location by its reason's `shareUnit` (a `core_information_scope` key; null = never delivered), not by a hand-kept map.\n *\n * Domain: `location_type` · Version: 1.0.0 · Entries: 17\n */\nexport const LocationTypeKeys = {\n missingness_root: \"191-000-000-000-000-000-000\",\n unknown: \"191-000-000-000-000-000-001\",\n anonymous: \"191-000-000-000-000-000-002\",\n data_not_collected: \"191-000-000-000-000-000-003\",\n current_residence: \"191-001-000-000-000-000-000\",\n service_delivery_location: \"191-002-000-000-000-000-000\",\n current_client_location: \"191-003-000-000-000-000-000\",\n meet_contact_location: \"191-004-000-000-000-000-000\",\n prior_residence: \"191-005-000-000-000-000-000\",\n jurisdiction_routing_location: \"191-006-000-000-000-000-000\",\n ad_location_derived: \"191-007-000-000-000-000-000\",\n travel_stop_visit: \"191-008-000-000-000-000-000\",\n work_school_business: \"191-009-000-000-000-000-000\",\n ip_derived_location: \"191-010-000-000-000-000-000\",\n program_project_location: \"191-011-000-000-000-000-000\",\n other: \"191-012-000-000-000-000-000\",\n incident: \"191-013-000-000-000-000-000\",\n} as const;\n\nexport type LocationTypeKey = keyof typeof LocationTypeKeys;\n\n/**\n * Key → positional code map for the `referral_entity_category` CVC domain.\n *\n * Domain: `referral_entity_category` · Version: 1.2.0 · Entries: 47\n */\nexport const ReferralEntityCategoryKeys = {\n missingness_root: \"048-000-000-000-000-000-000\",\n unknown: \"048-000-000-000-000-000-001\",\n anonymous: \"048-000-000-000-000-000-002\",\n data_not_collected: \"048-000-000-000-000-000-003\",\n self_referred: \"048-001-000-000-000-000-000\",\n family_guardian_friend: \"048-002-000-000-000-000-000\",\n peer: \"048-003-000-000-000-000-000\",\n other_individual: \"048-004-000-000-000-000-000\",\n housing_shelter_continuum: \"048-005-000-000-000-000-000\",\n outreach_project: \"048-005-001-000-000-000-000\",\n temporary_shelter: \"048-005-002-000-000-000-000\",\n residential_project: \"048-005-003-000-000-000-000\",\n hotlines: \"048-006-000-000-000-000-000\",\n national_hotline: \"048-006-001-000-000-000-000\",\n local_other_hotline: \"048-006-002-000-000-000-000\",\n hotline: \"048-006-003-000-000-000-000\",\n justice_protective_systems: \"048-007-000-000-000-000-000\",\n child_welfare_cps: \"048-007-001-000-000-000-000\",\n juvenile_justice: \"048-007-002-000-000-000-000\",\n law_enforcement: \"048-007-003-000-000-000-000\",\n local_law_enforcement: \"048-007-003-001-000-000-000\",\n state_law_enforcement: \"048-007-003-002-000-000-000\",\n federal_law_enforcement: \"048-007-003-003-000-000-000\",\n tribal_law_enforcement: \"048-007-003-004-000-000-000\",\n other_law_enforcement: \"048-007-003-005-000-000-000\",\n courts_prosecution: \"048-007-004-000-000-000-000\",\n correction_probation: \"048-007-005-000-000-000-000\",\n adult_protective_services: \"048-007-006-000-000-000-000\",\n health_behavioral_health: \"048-008-000-000-000-000-000\",\n inpatient_psychiatric_facility: \"048-008-001-000-000-000-000\",\n healthcare_provider: \"048-008-002-000-000-000-000\",\n education: \"048-009-000-000-000-000-000\",\n school_academic_institution: \"048-009-001-000-000-000-000\",\n victim_community_service_providers: \"048-010-000-000-000-000-000\",\n child_advocacy_center: \"048-010-001-000-000-000-000\",\n victim_service_provider: \"048-010-002-000-000-000-000\",\n community_based_service_provider: \"048-010-003-000-000-000-000\",\n legal_services_provider: \"048-010-004-000-000-000-000\",\n coordination_governance: \"048-011-000-000-000-000-000\",\n mdt: \"048-011-001-000-000-000-000\",\n coalition: \"048-011-002-000-000-000-000\",\n internal: \"048-012-000-000-000-000-000\",\n own_agency_internal: \"048-012-001-000-000-000-000\",\n other_entity: \"048-013-000-000-000-000-000\",\n employer: \"048-013-001-000-000-000-000\",\n benefits_public_assistance_office: \"048-013-002-000-000-000-000\",\n other_organization: \"048-013-003-000-000-000-000\",\n} as const;\n\nexport type ReferralEntityCategoryKey = keyof typeof ReferralEntityCategoryKeys;\n\n/**\n * Key → positional code map for the `income_benefits_sources` CVC domain.\n *\n * Domain: `income_benefits_sources` · Version: 1.1.0 · Entries: 41\n */\nexport const IncomeBenefitsSourcesKeys = {\n missingness_root: \"171-000-000-000-000-000-000\",\n unknown: \"171-000-000-000-000-000-001\",\n anonymous: \"171-000-000-000-000-000-002\",\n data_not_collected: \"171-000-000-000-000-000-003\",\n prefer_not_to_answer: \"171-000-000-000-000-000-004\",\n earned_income: \"171-001-000-000-000-000-000\",\n employment: \"171-001-001-000-000-000-000\",\n informal_income: \"171-001-002-000-000-000-000\",\n cash_benefit: \"171-002-000-000-000-000-000\",\n unemployment_insurance: \"171-002-001-000-000-000-000\",\n supplemental_security_income: \"171-002-002-000-000-000-000\",\n social_security_disability_insurance: \"171-002-003-000-000-000-000\",\n va_service_connected_disability: \"171-002-004-000-000-000-000\",\n va_non_service_connected_pension: \"171-002-005-000-000-000-000\",\n private_disability_insurance: \"171-002-006-000-000-000-000\",\n workers_compensation: \"171-002-007-000-000-000-000\",\n tanf: \"171-002-008-000-000-000-000\",\n general_assistance: \"171-002-009-000-000-000-000\",\n social_security_retirement: \"171-002-010-000-000-000-000\",\n pension_or_retirement_from_former_job: \"171-002-011-000-000-000-000\",\n social_security_generic: \"171-002-012-000-000-000-000\",\n va_benefits_generic: \"171-002-013-000-000-000-000\",\n in_kind_benefit: \"171-003-000-000-000-000-000\",\n snap: \"171-003-001-000-000-000-000\",\n wic: \"171-003-002-000-000-000-000\",\n tanf_child_care: \"171-003-003-000-000-000-000\",\n tanf_transportation: \"171-003-004-000-000-000-000\",\n tanf_other_funded_services: \"171-003-005-000-000-000-000\",\n medicaid: \"171-003-006-000-000-000-000\",\n medicare: \"171-003-007-000-000-000-000\",\n housing_assistance: \"171-003-008-000-000-000-000\",\n childcare_subsidy: \"171-003-009-000-000-000-000\",\n transfer_support: \"171-004-000-000-000-000-000\",\n child_support: \"171-004-001-000-000-000-000\",\n alimony_spousal_support: \"171-004-002-000-000-000-000\",\n family_friend_support: \"171-004-003-000-000-000-000\",\n other_unspecified: \"171-005-000-000-000-000-000\",\n other_income: \"171-005-001-000-000-000-000\",\n other_benefit: \"171-005-002-000-000-000-000\",\n education_stipend: \"171-005-003-000-000-000-000\",\n victim_compensation: \"171-006-000-000-000-000-000\",\n} as const;\n\nexport type IncomeBenefitsSourcesKey = keyof typeof IncomeBenefitsSourcesKeys;\n\n/**\n * Key → positional code map for the `enrollment_application_status` CVC domain.\n *\n * Domain: `enrollment_application_status` · Version: 1.0.0 · Entries: 12\n */\nexport const EnrollmentApplicationStatusKeys = {\n missingness_root: \"175-000-000-000-000-000-000\",\n unknown: \"175-000-000-000-000-000-001\",\n anonymous: \"175-000-000-000-000-000-002\",\n data_not_collected: \"175-000-000-000-000-000-003\",\n approved: \"175-001-000-000-000-000-000\",\n applied: \"175-002-000-000-000-000-000\",\n not_applied: \"175-003-000-000-000-000-000\",\n pending: \"175-004-000-000-000-000-000\",\n active: \"175-005-000-000-000-000-000\",\n denied: \"175-006-000-000-000-000-000\",\n closed: \"175-007-000-000-000-000-000\",\n expired: \"175-008-000-000-000-000-000\",\n} as const;\n\nexport type EnrollmentApplicationStatusKey = keyof typeof EnrollmentApplicationStatusKeys;\n\n/**\n * Key → positional code map for the `administering_jurisdiction` CVC domain.\n *\n * Domain: `administering_jurisdiction` · Version: 1.0.0 · Entries: 10\n */\nexport const AdministeringJurisdictionKeys = {\n missingness_root: \"177-000-000-000-000-000-000\",\n unknown: \"177-000-000-000-000-000-001\",\n anonymous: \"177-000-000-000-000-000-002\",\n data_not_collected: \"177-000-000-000-000-000-003\",\n federal: \"177-001-000-000-000-000-000\",\n state: \"177-002-000-000-000-000-000\",\n county: \"177-003-000-000-000-000-000\",\n city: \"177-004-000-000-000-000-000\",\n tribal: \"177-005-000-000-000-000-000\",\n territory: \"177-006-000-000-000-000-000\",\n} as const;\n\nexport type AdministeringJurisdictionKey = keyof typeof AdministeringJurisdictionKeys;\n\n/**\n * Key → positional code map for the `frequency_cadence` CVC domain.\n *\n * Domain: `frequency_cadence` · Version: 1.0.0 · Entries: 11\n */\nexport const FrequencyCadenceKeys = {\n missingness_root: \"176-000-000-000-000-000-000\",\n unknown: \"176-000-000-000-000-000-001\",\n anonymous: \"176-000-000-000-000-000-002\",\n data_not_collected: \"176-000-000-000-000-000-003\",\n daily: \"176-001-000-000-000-000-000\",\n weekly: \"176-002-000-000-000-000-000\",\n biweekly: \"176-003-000-000-000-000-000\",\n monthly: \"176-004-000-000-000-000-000\",\n quarterly: \"176-005-000-000-000-000-000\",\n annual: \"176-006-000-000-000-000-000\",\n one_time: \"176-007-000-000-000-000-000\",\n} as const;\n\nexport type FrequencyCadenceKey = keyof typeof FrequencyCadenceKeys;\n\n/**\n * Key → positional code map for the `inference_type` CVC domain.\n *\n * Domain: `inference_type` · Version: 1.0.0 · Entries: 7\n */\nexport const InferenceTypeKeys = {\n missingness_root: \"142-000-000-000-000-000-000\",\n unknown: \"142-000-000-000-000-000-001\",\n anonymous: \"142-000-000-000-000-000-002\",\n data_not_collected: \"142-000-000-000-000-000-003\",\n manual: \"142-001-000-000-000-000-000\",\n rules: \"142-002-000-000-000-000-000\",\n model: \"142-003-000-000-000-000-000\",\n} as const;\n\nexport type InferenceTypeKey = keyof typeof InferenceTypeKeys;\n\n/**\n * Key → positional code map for the `source_category` CVC domain.\n *\n * Domain: `source_category` · Version: 1.1.0 · Entries: 9\n */\nexport const SourceCategoryKeys = {\n missingness_root: \"140-000-000-000-000-000-000\",\n unknown: \"140-000-000-000-000-000-001\",\n anonymous: \"140-000-000-000-000-000-002\",\n data_not_collected: \"140-000-000-000-000-000-003\",\n human: \"140-001-000-000-000-000-000\",\n institutional_record: \"140-002-000-000-000-000-000\",\n legal_evidentiary: \"140-003-000-000-000-000-000\",\n machine: \"140-004-000-000-000-000-000\",\n open_source: \"140-005-000-000-000-000-000\",\n} as const;\n\nexport type SourceCategoryKey = keyof typeof SourceCategoryKeys;\n\n/**\n * Key → positional code map for the `source_subtype` CVC domain.\n *\n * Domain: `source_subtype` · Version: 1.2.0 · Entries: 39\n */\nexport const SourceSubtypeKeys = {\n missingness_root: \"141-000-000-000-000-000-000\",\n unknown: \"141-000-000-000-000-000-001\",\n anonymous: \"141-000-000-000-000-000-002\",\n data_not_collected: \"141-000-000-000-000-000-003\",\n ads_profile_website: \"141-001-000-000-000-000-000\",\n aggregation_output: \"141-002-000-000-000-000-000\",\n benefits_record: \"141-003-000-000-000-000-000\",\n charge_document: \"141-004-000-000-000-000-000\",\n child_welfare_record: \"141-005-000-000-000-000-000\",\n conviction_record: \"141-006-000-000-000-000-000\",\n corrections_record: \"141-007-000-000-000-000-000\",\n court_record: \"141-008-000-000-000-000-000\",\n employment_hr_record: \"141-009-000-000-000-000-000\",\n forensic_medical_exam: \"141-010-000-000-000-000-000\",\n immigration_record: \"141-011-000-000-000-000-000\",\n law_enforcement_assessment: \"141-012-000-000-000-000-000\",\n medical_record: \"141-013-000-000-000-000-000\",\n model_output: \"141-014-000-000-000-000-000\",\n news_media: \"141-015-000-000-000-000-000\",\n official_id_document: \"141-016-000-000-000-000-000\",\n parser_extraction: \"141-017-000-000-000-000-000\",\n partner_agency_case_note: \"141-018-000-000-000-000-000\",\n public_registry: \"141-019-000-000-000-000-000\",\n reviews_forums_comments: \"141-020-000-000-000-000-000\",\n rules_engine: \"141-021-000-000-000-000-000\",\n school_record: \"141-022-000-000-000-000-000\",\n search_warrant_return: \"141-023-000-000-000-000-000\",\n service_provider_assessment: \"141-024-000-000-000-000-000\",\n service_provider_case_note: \"141-025-000-000-000-000-000\",\n shelter_program_record: \"141-026-000-000-000-000-000\",\n social_media: \"141-027-000-000-000-000-000\",\n staff_observation: \"141-028-000-000-000-000-000\",\n system_import: \"141-029-000-000-000-000-000\",\n third_party_report: \"141-030-000-000-000-000-000\",\n victim_disclosure: \"141-031-000-000-000-000-000\",\n advocate_capture: \"141-032-000-000-000-000-000\",\n advocate_assessment: \"141-033-000-000-000-000-000\",\n child_welfare_episode_edit: \"141-034-000-000-000-000-000\",\n juvenile_justice_episode_edit: \"141-035-000-000-000-000-000\",\n} as const;\n\nexport type SourceSubtypeKey = keyof typeof SourceSubtypeKeys;\n\n/**\n * Key → positional code map for the `support_strength` CVC domain.\n *\n * Domain: `support_strength` · Version: 1.0.0 · Entries: 11\n */\nexport const SupportStrengthKeys = {\n missingness_root: \"139-000-000-000-000-000-000\",\n unknown: \"139-000-000-000-000-000-001\",\n anonymous: \"139-000-000-000-000-000-002\",\n data_not_collected: \"139-000-000-000-000-000-003\",\n adjudicated: \"139-001-000-000-000-000-000\",\n allegation: \"139-002-000-000-000-000-000\",\n corroborated: \"139-003-000-000-000-000-000\",\n minimally_supported: \"139-004-000-000-000-000-000\",\n multi_source_corroborated: \"139-005-000-000-000-000-000\",\n official_record_supported: \"139-006-000-000-000-000-000\",\n strongly_supported: \"139-007-000-000-000-000-000\",\n} as const;\n\nexport type SupportStrengthKey = keyof typeof SupportStrengthKeys;\n\n/**\n * Key → positional code map for the `determination_level` CVC domain.\n *\n * Domain: `determination_level` · Version: 1.0.0 · Entries: 9\n */\nexport const DeterminationLevelKeys = {\n missingness_root: \"138-000-000-000-000-000-000\",\n unknown: \"138-000-000-000-000-000-001\",\n anonymous: \"138-000-000-000-000-000-002\",\n data_not_collected: \"138-000-000-000-000-000-003\",\n disclosed: \"138-001-000-000-000-000-000\",\n estimated: \"138-002-000-000-000-000-000\",\n reported: \"138-003-000-000-000-000-000\",\n suspected: \"138-004-000-000-000-000-000\",\n verified: \"138-005-000-000-000-000-000\",\n} as const;\n\nexport type DeterminationLevelKey = keyof typeof DeterminationLevelKeys;\n\n/**\n * Key → positional code map for the `role_context` CVC domain.\n *\n * Domain: `role_context` · Version: 1.0.0 · Entries: 7\n */\nexport const RoleContextKeys = {\n missingness_root: \"160-000-000-000-000-000-000\",\n unknown: \"160-000-000-000-000-000-001\",\n anonymous: \"160-000-000-000-000-000-002\",\n data_not_collected: \"160-000-000-000-000-000-003\",\n both: \"160-001-000-000-000-000-000\",\n offender: \"160-002-000-000-000-000-000\",\n victim: \"160-003-000-000-000-000-000\",\n} as const;\n\nexport type RoleContextKey = keyof typeof RoleContextKeys;\n\n/**\n * Key → positional code map for the `time_scope` CVC domain.\n *\n * Domain: `time_scope` · Version: 1.0.0 · Entries: 6\n */\nexport const TimeScopeKeys = {\n missingness_root: \"174-000-000-000-000-000-000\",\n unknown: \"174-000-000-000-000-000-001\",\n anonymous: \"174-000-000-000-000-000-002\",\n data_not_collected: \"174-000-000-000-000-000-003\",\n current: \"174-001-000-000-000-000-000\",\n prior: \"174-002-000-000-000-000-000\",\n} as const;\n\nexport type TimeScopeKey = keyof typeof TimeScopeKeys;\n\n/**\n * Key → positional code map for the `verification_method` CVC domain.\n *\n * Domain: `verification_method` · Version: 1.1.0 · Entries: 11\n */\nexport const VerificationMethodKeys = {\n missingness_root: \"143-000-000-000-000-000-000\",\n unknown: \"143-000-000-000-000-000-001\",\n anonymous: \"143-000-000-000-000-000-002\",\n data_not_collected: \"143-000-000-000-000-000-003\",\n court_record_confirmed: \"143-001-000-000-000-000-000\",\n evidence_threshold_met: \"143-002-000-000-000-000-000\",\n multi_source_corroboration: \"143-003-000-000-000-000-000\",\n qa_audit_passed: \"143-004-000-000-000-000-000\",\n supervisor_review: \"143-005-000-000-000-000-000\",\n rules: \"143-006-000-000-000-000-000\",\n still_reaches: \"143-007-000-000-000-000-000\",\n} as const;\n\nexport type VerificationMethodKey = keyof typeof VerificationMethodKeys;\n\n/**\n * Key → positional code map for the `verification_status` CVC domain.\n *\n * Domain: `verification_status` · Version: 1.0.0 · Entries: 7\n */\nexport const VerificationStatusKeys = {\n missingness_root: \"962-000-000-000-000-000-000\",\n unknown: \"962-000-000-000-000-000-001\",\n anonymous: \"962-000-000-000-000-000-002\",\n data_not_collected: \"962-000-000-000-000-000-003\",\n yes: \"962-001-000-000-000-000-000\",\n no: \"962-002-000-000-000-000-000\",\n i_can_get_it: \"962-003-000-000-000-000-000\",\n} as const;\n\nexport type VerificationStatusKey = keyof typeof VerificationStatusKeys;\n\n/**\n * Key → positional code map for the `visa_type` CVC domain.\n *\n * Domain: `visa_type` · Version: 1.0.0 · Entries: 40\n */\nexport const VisaTypeKeys = {\n missingness_root: \"963-000-000-000-000-000-000\",\n unknown: \"963-000-000-000-000-000-001\",\n anonymous: \"963-000-000-000-000-000-002\",\n data_not_collected: \"963-000-000-000-000-000-003\",\n us_citizen: \"963-001-000-000-000-000-000\",\n none_undocumented: \"963-002-000-000-000-000-000\",\n lpr: \"963-003-000-000-000-000-000\",\n b_1: \"963-004-000-000-000-000-000\",\n b_2: \"963-005-000-000-000-000-000\",\n f_1: \"963-006-000-000-000-000-000\",\n m_1: \"963-007-000-000-000-000-000\",\n j_1: \"963-008-000-000-000-000-000\",\n h_1b: \"963-009-000-000-000-000-000\",\n h_2a: \"963-010-000-000-000-000-000\",\n h_2b: \"963-011-000-000-000-000-000\",\n l_1: \"963-012-000-000-000-000-000\",\n o_1: \"963-013-000-000-000-000-000\",\n tn: \"963-014-000-000-000-000-000\",\n k_1: \"963-015-000-000-000-000-000\",\n k_3: \"963-016-000-000-000-000-000\",\n t_1: \"963-017-000-000-000-000-000\",\n t_2: \"963-018-000-000-000-000-000\",\n t_3: \"963-019-000-000-000-000-000\",\n t_4: \"963-020-000-000-000-000-000\",\n t_5: \"963-021-000-000-000-000-000\",\n t_6: \"963-022-000-000-000-000-000\",\n u_1: \"963-023-000-000-000-000-000\",\n u_2: \"963-024-000-000-000-000-000\",\n u_3: \"963-025-000-000-000-000-000\",\n u_4: \"963-026-000-000-000-000-000\",\n u_5: \"963-027-000-000-000-000-000\",\n vawa_self_petitioner: \"963-028-000-000-000-000-000\",\n asylum_pending: \"963-029-000-000-000-000-000\",\n asylum_granted: \"963-030-000-000-000-000-000\",\n refugee: \"963-031-000-000-000-000-000\",\n sij: \"963-032-000-000-000-000-000\",\n parole_humanitarian: \"963-033-000-000-000-000-000\",\n esta: \"963-034-000-000-000-000-000\",\n diplomatic: \"963-035-000-000-000-000-000\",\n other: \"963-036-000-000-000-000-000\",\n} as const;\n\nexport type VisaTypeKey = keyof typeof VisaTypeKeys;\n\n/**\n * Key → positional code map for the `quality_flags` CVC domain.\n *\n * Domain: `quality_flags` · Version: 1.0.0 · Entries: 9\n */\nexport const QualityFlagsKeys = {\n missingness_root: \"144-000-000-000-000-000-000\",\n unknown: \"144-000-000-000-000-000-001\",\n anonymous: \"144-000-000-000-000-000-002\",\n data_not_collected: \"144-000-000-000-000-000-003\",\n circular_model_label_risk: \"144-001-000-000-000-000-000\",\n data_redacted: \"144-002-000-000-000-000-000\",\n inconsistent: \"144-003-000-000-000-000-000\",\n self_report_only: \"144-004-000-000-000-000-000\",\n single_source: \"144-005-000-000-000-000-000\",\n} as const;\n\nexport type QualityFlagsKey = keyof typeof QualityFlagsKeys;\n\n/**\n * Key → positional code map for the `contact_info_use_type` CVC domain.\n *\n * Domain: `contact_info_use_type` · Version: 1.0.0 · Entries: 8\n */\nexport const ContactInfoUseTypeKeys = {\n missingness_root: \"154-000-000-000-000-000-000\",\n unknown: \"154-000-000-000-000-000-001\",\n anonymous: \"154-000-000-000-000-000-002\",\n data_not_collected: \"154-000-000-000-000-000-003\",\n business_commercial_sex: \"154-001-000-000-000-000-000\",\n business_non_cs: \"154-002-000-000-000-000-000\",\n mixed_use: \"154-003-000-000-000-000-000\",\n personal: \"154-004-000-000-000-000-000\",\n} as const;\n\nexport type ContactInfoUseTypeKey = keyof typeof ContactInfoUseTypeKeys;\n\n/**\n * Key → positional code map for the `session_state` CVC domain.\n *\n * Domain: `session_state` · Version: 1.0.0 · Entries: 9\n */\nexport const SessionStateKeys = {\n missingness_root: \"216-000-000-000-000-000-000\",\n unknown: \"216-000-000-000-000-000-001\",\n anonymous: \"216-000-000-000-000-000-002\",\n data_not_collected: \"216-000-000-000-000-000-003\",\n session_action_needed: \"216-001-000-000-000-000-000\",\n session_closed: \"216-002-000-000-000-000-000\",\n session_discarded: \"216-003-000-000-000-000-000\",\n session_in_progress: \"216-004-000-000-000-000-000\",\n session_initialized: \"216-005-000-000-000-000-000\",\n} as const;\n\nexport type SessionStateKey = keyof typeof SessionStateKeys;\n\n/**\n * Key → positional code map for the `relationship_dynamics` CVC domain.\n *\n * Domain: `relationship_dynamics` · Version: 1.0.0 · Entries: 42\n */\nexport const RelationshipDynamicsKeys = {\n missingness_root: \"145-000-000-000-000-000-000\",\n unknown: \"145-000-000-000-000-000-001\",\n anonymous: \"145-000-000-000-000-000-002\",\n data_not_collected: \"145-000-000-000-000-000-003\",\n coercion_threats: \"145-001-000-000-000-000-000\",\n threats_of_harm: \"145-001-001-000-000-000-000\",\n threatens_physical_harm_to_subject: \"145-001-001-001-000-000-000\",\n physically_harm_threatened_by_subject: \"145-001-001-002-000-000-000\",\n threats_to_family_friends: \"145-001-002-000-000-000-000\",\n threatens_family_friends_of_subject: \"145-001-002-001-000-000-000\",\n family_friends_threatened_by_subject: \"145-001-002-002-000-000-000\",\n threats_of_legal_trouble: \"145-001-003-000-000-000-000\",\n other_threats_to_subject: \"145-001-003-001-000-000-000\",\n other_threats_by_subject: \"145-001-003-002-000-000-000\",\n control_monitoring: \"145-002-000-000-000-000-000\",\n controlling_behavior: \"145-002-001-000-000-000-000\",\n appears_controlling_of_subject: \"145-002-001-001-000-000-000\",\n appears_controlled_by_subject: \"145-002-001-002-000-000-000\",\n abuse_dynamics: \"145-003-000-000-000-000-000\",\n emotional_verbal_abuse: \"145-003-001-000-000-000-000\",\n emotionally_verbally_abuses_subject: \"145-003-001-001-000-000-000\",\n emotionally_verbally_abused_by_subject: \"145-003-001-002-000-000-000\",\n physical_abuse: \"145-003-002-000-000-000-000\",\n physically_abuses_subject: \"145-003-002-001-000-000-000\",\n physically_abused_by_subject: \"145-003-002-002-000-000-000\",\n sexual_abuse: \"145-003-003-000-000-000-000\",\n sexually_abuses_subject: \"145-003-003-001-000-000-000\",\n sexually_abused_by_subject: \"145-003-003-002-000-000-000\",\n family_friends_physically_abused: \"145-003-004-000-000-000-000\",\n physically_abuses_family_friends_of_subject: \"145-003-004-001-000-000-000\",\n family_friends_physically_abused_by_subject: \"145-003-004-002-000-000-000\",\n resource_control: \"145-004-000-000-000-000-000\",\n controls_documentation: \"145-004-001-000-000-000-000\",\n controls_documentation_of_subject: \"145-004-001-001-000-000-000\",\n documentation_controlled_by_subject: \"145-004-001-002-000-000-000\",\n controls_finances: \"145-004-002-000-000-000-000\",\n controls_finances_of_subject: \"145-004-002-001-000-000-000\",\n finances_controlled_by_subject: \"145-004-002-002-000-000-000\",\n power_imbalance: \"145-005-000-000-000-000-000\",\n age_disparity: \"145-005-001-000-000-000-000\",\n is_much_older_than_subject: \"145-005-001-001-000-000-000\",\n is_much_younger_than_subject: \"145-005-001-002-000-000-000\",\n} as const;\n\nexport type RelationshipDynamicsKey = keyof typeof RelationshipDynamicsKeys;\n\n/**\n * Key → positional code map for the `collection_context` CVC domain.\n *\n * Domain: `collection_context` · Version: 1.0.0 · Entries: 8\n */\nexport const CollectionContextKeys = {\n missingness_root: \"195-000-000-000-000-000-000\",\n unknown: \"195-000-000-000-000-000-001\",\n anonymous: \"195-000-000-000-000-000-002\",\n data_not_collected: \"195-000-000-000-000-000-003\",\n contact: \"195-001-000-000-000-000-000\",\n enrollment_entry: \"195-002-000-000-000-000-000\",\n enrollment_exit: \"195-003-000-000-000-000-000\",\n post_exit: \"195-004-000-000-000-000-000\",\n} as const;\n\nexport type CollectionContextKey = keyof typeof CollectionContextKeys;\n\n/**\n * Key → positional code map for the `languages` CVC domain.\n *\n * Domain: `languages` · Version: 1.0.0 · Entries: 212\n */\nexport const LanguagesKeys = {\n missingness_root: \"223-000-000-000-000-000-000\",\n unknown: \"223-000-000-000-000-000-001\",\n anonymous: \"223-000-000-000-000-000-002\",\n data_not_collected: \"223-000-000-000-000-000-003\",\n english: \"223-001-000-000-000-000-000\",\n spanish: \"223-002-000-000-000-000-000\",\n vietnamese: \"223-003-000-000-000-000-000\",\n arabic_modern_standard: \"223-004-000-000-000-000-000\",\n chinese_mandarin: \"223-005-000-000-000-000-000\",\n cantonese: \"223-006-000-000-000-000-000\",\n korean: \"223-007-000-000-000-000-000\",\n hindi: \"223-008-000-000-000-000-000\",\n tagalog_filipino: \"223-009-000-000-000-000-000\",\n french: \"223-010-000-000-000-000-000\",\n portuguese: \"223-011-000-000-000-000-000\",\n american_sign_language_asl: \"223-012-000-000-000-000-000\",\n russian: \"223-013-000-000-000-000-000\",\n polish: \"223-014-000-000-000-000-000\",\n haitian_creole: \"223-015-000-000-000-000-000\",\n italian: \"223-016-000-000-000-000-000\",\n german: \"223-017-000-000-000-000-000\",\n punjabi: \"223-018-000-000-000-000-000\",\n urdu: \"223-019-000-000-000-000-000\",\n persian_farsi: \"223-020-000-000-000-000-000\",\n abkhazian: \"223-021-000-000-000-000-000\",\n afar: \"223-022-000-000-000-000-000\",\n afrikaans: \"223-023-000-000-000-000-000\",\n akan: \"223-024-000-000-000-000-000\",\n albanian: \"223-025-000-000-000-000-000\",\n amharic: \"223-026-000-000-000-000-000\",\n aragonese: \"223-027-000-000-000-000-000\",\n armenian: \"223-028-000-000-000-000-000\",\n assamese: \"223-029-000-000-000-000-000\",\n avaric: \"223-030-000-000-000-000-000\",\n avestan: \"223-031-000-000-000-000-000\",\n aymara: \"223-032-000-000-000-000-000\",\n azerbaijani: \"223-033-000-000-000-000-000\",\n bambara: \"223-034-000-000-000-000-000\",\n bashkir: \"223-035-000-000-000-000-000\",\n basque: \"223-036-000-000-000-000-000\",\n belarusian: \"223-037-000-000-000-000-000\",\n bengali_bangla: \"223-038-000-000-000-000-000\",\n bihari: \"223-039-000-000-000-000-000\",\n bislama: \"223-040-000-000-000-000-000\",\n bosnian: \"223-041-000-000-000-000-000\",\n breton: \"223-042-000-000-000-000-000\",\n bulgarian: \"223-043-000-000-000-000-000\",\n burmese: \"223-044-000-000-000-000-000\",\n catalan: \"223-045-000-000-000-000-000\",\n chamorro: \"223-046-000-000-000-000-000\",\n chechen: \"223-047-000-000-000-000-000\",\n chichewa: \"223-048-000-000-000-000-000\",\n chuvash: \"223-049-000-000-000-000-000\",\n cornish: \"223-050-000-000-000-000-000\",\n corsican: \"223-051-000-000-000-000-000\",\n cree: \"223-052-000-000-000-000-000\",\n croatian: \"223-053-000-000-000-000-000\",\n czech: \"223-054-000-000-000-000-000\",\n danish: \"223-055-000-000-000-000-000\",\n divehi_maldivian: \"223-056-000-000-000-000-000\",\n dutch: \"223-057-000-000-000-000-000\",\n dzongkha: \"223-058-000-000-000-000-000\",\n esperanto: \"223-059-000-000-000-000-000\",\n estonian: \"223-060-000-000-000-000-000\",\n ewe: \"223-061-000-000-000-000-000\",\n faroese: \"223-062-000-000-000-000-000\",\n fijian: \"223-063-000-000-000-000-000\",\n finnish: \"223-064-000-000-000-000-000\",\n fulah: \"223-065-000-000-000-000-000\",\n galician: \"223-066-000-000-000-000-000\",\n georgian: \"223-067-000-000-000-000-000\",\n greek: \"223-068-000-000-000-000-000\",\n guarani: \"223-069-000-000-000-000-000\",\n gujarati: \"223-070-000-000-000-000-000\",\n hausa: \"223-071-000-000-000-000-000\",\n hebrew: \"223-072-000-000-000-000-000\",\n herero: \"223-073-000-000-000-000-000\",\n hiri_motu: \"223-074-000-000-000-000-000\",\n hungarian: \"223-075-000-000-000-000-000\",\n interlingua: \"223-076-000-000-000-000-000\",\n indonesian: \"223-077-000-000-000-000-000\",\n interlingue: \"223-078-000-000-000-000-000\",\n irish: \"223-079-000-000-000-000-000\",\n igbo: \"223-080-000-000-000-000-000\",\n inupiaq: \"223-081-000-000-000-000-000\",\n ido: \"223-082-000-000-000-000-000\",\n icelandic: \"223-083-000-000-000-000-000\",\n inuktitut: \"223-084-000-000-000-000-000\",\n japanese: \"223-085-000-000-000-000-000\",\n javanese: \"223-086-000-000-000-000-000\",\n kalaallisut_greenlandic: \"223-087-000-000-000-000-000\",\n kannada: \"223-088-000-000-000-000-000\",\n kanuri: \"223-089-000-000-000-000-000\",\n kashmiri: \"223-090-000-000-000-000-000\",\n kazakh: \"223-091-000-000-000-000-000\",\n khmer: \"223-092-000-000-000-000-000\",\n kikuyu: \"223-093-000-000-000-000-000\",\n kinyarwanda: \"223-094-000-000-000-000-000\",\n kyrgyz: \"223-095-000-000-000-000-000\",\n komi: \"223-096-000-000-000-000-000\",\n kongo: \"223-097-000-000-000-000-000\",\n kurdish_general: \"223-098-000-000-000-000-000\",\n kuanyama: \"223-099-000-000-000-000-000\",\n latin: \"223-100-000-000-000-000-000\",\n luxembourgish: \"223-101-000-000-000-000-000\",\n luganda: \"223-102-000-000-000-000-000\",\n limburgish: \"223-103-000-000-000-000-000\",\n lingala: \"223-104-000-000-000-000-000\",\n lao: \"223-105-000-000-000-000-000\",\n lithuanian: \"223-106-000-000-000-000-000\",\n luba_katanga: \"223-107-000-000-000-000-000\",\n latvian: \"223-108-000-000-000-000-000\",\n manx: \"223-109-000-000-000-000-000\",\n macedonian: \"223-110-000-000-000-000-000\",\n malagasy: \"223-111-000-000-000-000-000\",\n malay: \"223-112-000-000-000-000-000\",\n malayalam: \"223-113-000-000-000-000-000\",\n maltese: \"223-114-000-000-000-000-000\",\n maori: \"223-115-000-000-000-000-000\",\n marathi: \"223-116-000-000-000-000-000\",\n marshallese: \"223-117-000-000-000-000-000\",\n mongolian: \"223-118-000-000-000-000-000\",\n nauru: \"223-119-000-000-000-000-000\",\n navajo: \"223-120-000-000-000-000-000\",\n norwegian_bokmal: \"223-121-000-000-000-000-000\",\n north_ndebele: \"223-122-000-000-000-000-000\",\n nepali: \"223-123-000-000-000-000-000\",\n ndonga: \"223-124-000-000-000-000-000\",\n norwegian_nynorsk: \"223-125-000-000-000-000-000\",\n norwegian: \"223-126-000-000-000-000-000\",\n sichuan_yi: \"223-127-000-000-000-000-000\",\n south_ndebele: \"223-128-000-000-000-000-000\",\n occitan: \"223-129-000-000-000-000-000\",\n ojibwe: \"223-130-000-000-000-000-000\",\n old_church_slavonic: \"223-131-000-000-000-000-000\",\n oromo: \"223-132-000-000-000-000-000\",\n odia_oriya: \"223-133-000-000-000-000-000\",\n ossetian: \"223-134-000-000-000-000-000\",\n pali: \"223-135-000-000-000-000-000\",\n pashto: \"223-136-000-000-000-000-000\",\n quechua: \"223-137-000-000-000-000-000\",\n romansh: \"223-138-000-000-000-000-000\",\n rundi: \"223-139-000-000-000-000-000\",\n romanian: \"223-140-000-000-000-000-000\",\n sanskrit: \"223-141-000-000-000-000-000\",\n sardinian: \"223-142-000-000-000-000-000\",\n sindhi: \"223-143-000-000-000-000-000\",\n northern_sami: \"223-144-000-000-000-000-000\",\n samoan: \"223-145-000-000-000-000-000\",\n sango: \"223-146-000-000-000-000-000\",\n serbian: \"223-147-000-000-000-000-000\",\n scottish_gaelic: \"223-148-000-000-000-000-000\",\n shona: \"223-149-000-000-000-000-000\",\n sinhala: \"223-150-000-000-000-000-000\",\n slovak: \"223-151-000-000-000-000-000\",\n slovenian: \"223-152-000-000-000-000-000\",\n somali: \"223-153-000-000-000-000-000\",\n southern_sotho: \"223-154-000-000-000-000-000\",\n sundanese: \"223-155-000-000-000-000-000\",\n swahili: \"223-156-000-000-000-000-000\",\n swati: \"223-157-000-000-000-000-000\",\n swedish: \"223-158-000-000-000-000-000\",\n tamil: \"223-159-000-000-000-000-000\",\n telugu: \"223-160-000-000-000-000-000\",\n tajik: \"223-161-000-000-000-000-000\",\n thai: \"223-162-000-000-000-000-000\",\n tigrinya: \"223-163-000-000-000-000-000\",\n tibetan: \"223-164-000-000-000-000-000\",\n turkmen: \"223-165-000-000-000-000-000\",\n tswana: \"223-166-000-000-000-000-000\",\n tongan: \"223-167-000-000-000-000-000\",\n turkish: \"223-168-000-000-000-000-000\",\n tsonga: \"223-169-000-000-000-000-000\",\n tatar: \"223-170-000-000-000-000-000\",\n twi: \"223-171-000-000-000-000-000\",\n tahitian: \"223-172-000-000-000-000-000\",\n uyghur: \"223-173-000-000-000-000-000\",\n ukrainian: \"223-174-000-000-000-000-000\",\n uzbek: \"223-175-000-000-000-000-000\",\n venda: \"223-176-000-000-000-000-000\",\n volapuk: \"223-177-000-000-000-000-000\",\n walloon: \"223-178-000-000-000-000-000\",\n welsh: \"223-179-000-000-000-000-000\",\n wolof: \"223-180-000-000-000-000-000\",\n western_frisian: \"223-181-000-000-000-000-000\",\n xhosa: \"223-182-000-000-000-000-000\",\n yiddish: \"223-183-000-000-000-000-000\",\n yoruba: \"223-184-000-000-000-000-000\",\n zhuang: \"223-185-000-000-000-000-000\",\n zulu: \"223-186-000-000-000-000-000\",\n hakka_chinese: \"223-187-000-000-000-000-000\",\n min_nan_chinese_hokkien_taiwanese: \"223-188-000-000-000-000-000\",\n wu_chinese_shanghainese: \"223-189-000-000-000-000-000\",\n egyptian_arabic: \"223-190-000-000-000-000-000\",\n iraqi_arabic_mesopotamian: \"223-191-000-000-000-000-000\",\n levantine_arabic: \"223-192-000-000-000-000-000\",\n dari_afghan_persian: \"223-193-000-000-000-000-000\",\n central_kurdish_sorani: \"223-194-000-000-000-000-000\",\n northern_kurdish_kurmanji: \"223-195-000-000-000-000-000\",\n filipino_national_variety: \"223-196-000-000-000-000-000\",\n hmong: \"223-197-000-000-000-000-000\",\n iu_mien: \"223-198-000-000-000-000-000\",\n karen: \"223-199-000-000-000-000-000\",\n chuukese: \"223-200-000-000-000-000-000\",\n pohnpeian: \"223-201-000-000-000-000-000\",\n yapese: \"223-202-000-000-000-000-000\",\n papiamento: \"223-203-000-000-000-000-000\",\n nigerian_pidgin: \"223-204-000-000-000-000-000\",\n british_sign_language_bsl: \"223-205-000-000-000-000-000\",\n french_sign_language_lsf: \"223-206-000-000-000-000-000\",\n mexican_sign_language_lsm: \"223-207-000-000-000-000-000\",\n brazilian_sign_language_libras: \"223-208-000-000-000-000-000\",\n} as const;\n\nexport type LanguagesKey = keyof typeof LanguagesKeys;\n\n/**\n * Key → positional code map for the `hmis_project_type` CVC domain.\n *\n * Domain: `hmis_project_type` · Version: 1.0.0 · Entries: 18\n */\nexport const HmisProjectTypeKeys = {\n missingness_root: \"225-000-000-000-000-000-000\",\n unknown: \"225-000-000-000-000-000-001\",\n anonymous: \"225-000-000-000-000-000-002\",\n data_not_collected: \"225-000-000-000-000-000-003\",\n street_outreach: \"225-001-000-000-000-000-000\",\n emergency_shelter_entry_exit: \"225-002-000-000-000-000-000\",\n emergency_shelter_night_by_night: \"225-003-000-000-000-000-000\",\n transitional_housing: \"225-004-000-000-000-000-000\",\n ph_permanent_supportive_housing: \"225-005-000-000-000-000-000\",\n services_only: \"225-006-000-000-000-000-000\",\n other: \"225-007-000-000-000-000-000\",\n safe_haven: \"225-008-000-000-000-000-000\",\n ph_housing_only: \"225-009-000-000-000-000-000\",\n ph_housing_with_services: \"225-010-000-000-000-000-000\",\n day_shelter: \"225-011-000-000-000-000-000\",\n homelessness_prevention: \"225-012-000-000-000-000-000\",\n ph_rapid_re_housing: \"225-013-000-000-000-000-000\",\n coordinated_entry: \"225-014-000-000-000-000-000\",\n} as const;\n\nexport type HmisProjectTypeKey = keyof typeof HmisProjectTypeKeys;\n\n/**\n * Key → positional code map for the `da_incident_severity` CVC domain.\n *\n * Domain: `da_incident_severity` · Version: 1.0.0 · Entries: 9\n */\nexport const DaIncidentSeverityKeys = {\n missingness_root: \"228-000-000-000-000-000-000\",\n unknown: \"228-000-000-000-000-000-001\",\n anonymous: \"228-000-000-000-000-000-002\",\n data_not_collected: \"228-000-000-000-000-000-003\",\n severity_1: \"228-001-000-000-000-000-000\",\n severity_2: \"228-002-000-000-000-000-000\",\n severity_3: \"228-003-000-000-000-000-000\",\n severity_4: \"228-004-000-000-000-000-000\",\n severity_5: \"228-005-000-000-000-000-000\",\n} as const;\n\nexport type DaIncidentSeverityKey = keyof typeof DaIncidentSeverityKeys;\n\n/**\n * Key → positional code map for the `exit_reasons` CVC domain.\n *\n * Domain: `exit_reasons` · Version: 1.0.0 · Entries: 23\n */\nexport const ExitReasonsKeys = {\n missingness_root: \"220-000-000-000-000-000-000\",\n unknown: \"220-000-000-000-000-000-001\",\n anonymous: \"220-000-000-000-000-000-002\",\n data_not_collected: \"220-000-000-000-000-000-003\",\n completed_program: \"220-001-000-000-000-000-000\",\n reached_maximum_allowed_stay: \"220-002-000-000-000-000-000\",\n transferred_to_another_program_internal: \"220-003-000-000-000-000-000\",\n transferred_to_another_program_external: \"220-004-000-000-000-000-000\",\n left_early_voluntarily: \"220-005-000-000-000-000-000\",\n exited_for_safety_survivor_initiated: \"220-006-000-000-000-000-000\",\n relocated_geographically: \"220-007-000-000-000-000-000\",\n exited_by_program_behavioral_violation: \"220-008-000-000-000-000-000\",\n exited_by_program_safety_to_others: \"220-009-000-000-000-000-000\",\n needs_beyond_program_scope: \"220-010-000-000-000-000-000\",\n health_related_exit: \"220-011-000-000-000-000-000\",\n placement_changed_by_authority: \"220-012-000-000-000-000-000\",\n deported: \"220-013-000-000-000-000-000\",\n recertification_lapsed: \"220-014-000-000-000-000-000\",\n program_ended: \"220-015-000-000-000-000-000\",\n lost_to_followup: \"220-016-000-000-000-000-000\",\n auto_exit_no_exit_interview: \"220-017-000-000-000-000-000\",\n deceased: \"220-018-000-000-000-000-000\",\n other: \"220-019-000-000-000-000-000\",\n} as const;\n\nexport type ExitReasonsKey = keyof typeof ExitReasonsKeys;\n\n/**\n * Key → positional code map for the `mid_stay_event_type` CVC domain.\n *\n * Domain: `mid_stay_event_type` · Version: 1.0.0 · Entries: 11\n */\nexport const MidStayEventTypeKeys = {\n missingness_root: \"221-000-000-000-000-000-000\",\n unknown: \"221-000-000-000-000-000-001\",\n anonymous: \"221-000-000-000-000-000-002\",\n data_not_collected: \"221-000-000-000-000-000-003\",\n room_transfer: \"221-001-000-000-000-000-000\",\n overnight_pass_approved: \"221-002-000-000-000-000-000\",\n bed_vacated_no_contact: \"221-003-000-000-000-000-000\",\n care_plan_review: \"221-004-000-000-000-000-000\",\n internal_referral: \"221-005-000-000-000-000-000\",\n safety_check_in: \"221-006-000-000-000-000-000\",\n other: \"221-007-000-000-000-000-000\",\n} as const;\n\nexport type MidStayEventTypeKey = keyof typeof MidStayEventTypeKeys;\n\n/**\n * Key → positional code map for the `pet_exit_reason` CVC domain.\n *\n * Domain: `pet_exit_reason` · Version: 1.0.0 · Entries: 10\n */\nexport const PetExitReasonKeys = {\n missingness_root: \"222-000-000-000-000-000-000\",\n unknown: \"222-000-000-000-000-000-001\",\n anonymous: \"222-000-000-000-000-000-002\",\n data_not_collected: \"222-000-000-000-000-000-003\",\n permanent_placement: \"222-001-000-000-000-000-000\",\n survivor_exit: \"222-002-000-000-000-000-000\",\n alternative_care: \"222-003-000-000-000-000-000\",\n behavioral_incident: \"222-004-000-000-000-000-000\",\n health_issue: \"222-005-000-000-000-000-000\",\n other: \"222-006-000-000-000-000-000\",\n} as const;\n\nexport type PetExitReasonKey = keyof typeof PetExitReasonKeys;\n\n/**\n * Key → positional code map for the `funder` CVC domain.\n *\n * Domain: `funder` · Version: 1.0.0 · Entries: 12\n */\nexport const FunderKeys = {\n missingness_root: \"226-000-000-000-000-000-000\",\n unknown: \"226-000-000-000-000-000-001\",\n anonymous: \"226-000-000-000-000-000-002\",\n data_not_collected: \"226-000-000-000-000-000-003\",\n hud_coc: \"226-001-000-000-000-000-000\",\n hud_esg: \"226-002-000-000-000-000-000\",\n hhs_rhy: \"226-003-000-000-000-000-000\",\n hhs_path: \"226-004-000-000-000-000-000\",\n ovc_ecm: \"226-005-000-000-000-000-000\",\n voca: \"226-006-000-000-000-000-000\",\n fvpsa: \"226-007-000-000-000-000-000\",\n other: \"226-008-000-000-000-000-000\",\n} as const;\n\nexport type FunderKey = keyof typeof FunderKeys;\n\n/**\n * Key → positional code map for the `accommodation_type` CVC domain.\n *\n * Domain: `accommodation_type` · Version: 1.0.0 · Entries: 10\n */\nexport const AccommodationTypeKeys = {\n missingness_root: \"900-000-000-000-000-000-000\",\n unknown: \"900-000-000-000-000-000-001\",\n anonymous: \"900-000-000-000-000-000-002\",\n data_not_collected: \"900-000-000-000-000-000-003\",\n sensory: \"900-001-000-000-000-000-000\",\n mobility: \"900-002-000-000-000-000-000\",\n communication_cognitive: \"900-003-000-000-000-000-000\",\n medical_dietary: \"900-004-000-000-000-000-000\",\n service_animal: \"900-005-000-000-000-000-000\",\n other: \"900-006-000-000-000-000-000\",\n} as const;\n\nexport type AccommodationTypeKey = keyof typeof AccommodationTypeKeys;\n\n/**\n * Key → positional code map for the `action_step_completion_status` CVC domain.\n *\n * Domain: `action_step_completion_status` · Version: 1.0.0 · Entries: 8\n */\nexport const ActionStepCompletionStatusKeys = {\n missingness_root: \"901-000-000-000-000-000-000\",\n unknown: \"901-000-000-000-000-000-001\",\n anonymous: \"901-000-000-000-000-000-002\",\n data_not_collected: \"901-000-000-000-000-000-003\",\n yes: \"901-001-000-000-000-000-000\",\n no: \"901-002-000-000-000-000-000\",\n unknown_na: \"901-003-000-000-000-000-000\",\n unanswered: \"901-004-000-000-000-000-000\",\n} as const;\n\nexport type ActionStepCompletionStatusKey = keyof typeof ActionStepCompletionStatusKeys;\n\n/**\n * Key → positional code map for the `action_step_type` CVC domain.\n *\n * Domain: `action_step_type` · Version: 1.0.0 · Entries: 6\n */\nexport const ActionStepTypeKeys = {\n missingness_root: \"902-000-000-000-000-000-000\",\n unknown: \"902-000-000-000-000-000-001\",\n anonymous: \"902-000-000-000-000-000-002\",\n data_not_collected: \"902-000-000-000-000-000-003\",\n client_action: \"902-001-000-000-000-000-000\",\n advocate_action: \"902-002-000-000-000-000-000\",\n} as const;\n\nexport type ActionStepTypeKey = keyof typeof ActionStepTypeKeys;\n\n/**\n * Key → positional code map for the `announcement_audience_scope` CVC domain.\n *\n * Domain: `announcement_audience_scope` · Version: 1.0.0 · Entries: 7\n */\nexport const AnnouncementAudienceScopeKeys = {\n missingness_root: \"903-000-000-000-000-000-000\",\n unknown: \"903-000-000-000-000-000-001\",\n anonymous: \"903-000-000-000-000-000-002\",\n data_not_collected: \"903-000-000-000-000-000-003\",\n all: \"903-001-000-000-000-000-000\",\n role: \"903-002-000-000-000-000-000\",\n working_group: \"903-003-000-000-000-000-000\",\n} as const;\n\nexport type AnnouncementAudienceScopeKey = keyof typeof AnnouncementAudienceScopeKeys;\n\n/**\n * Key → positional code map for the `announcement_response_type` CVC domain.\n *\n * Domain: `announcement_response_type` · Version: 1.0.0 · Entries: 8\n */\nexport const AnnouncementResponseTypeKeys = {\n missingness_root: \"904-000-000-000-000-000-000\",\n unknown: \"904-000-000-000-000-000-001\",\n anonymous: \"904-000-000-000-000-000-002\",\n data_not_collected: \"904-000-000-000-000-000-003\",\n none: \"904-001-000-000-000-000-000\",\n acknowledge: \"904-002-000-000-000-000-000\",\n rsvp: \"904-003-000-000-000-000-000\",\n register: \"904-004-000-000-000-000-000\",\n} as const;\n\nexport type AnnouncementResponseTypeKey = keyof typeof AnnouncementResponseTypeKeys;\n\n/**\n * Key → positional code map for the `basis_quick_picks` CVC domain.\n *\n * Domain: `basis_quick_picks` · Version: 1.0.0 · Entries: 11\n */\nexport const BasisQuickPicksKeys = {\n missingness_root: \"905-000-000-000-000-000-000\",\n unknown: \"905-000-000-000-000-000-001\",\n anonymous: \"905-000-000-000-000-000-002\",\n data_not_collected: \"905-000-000-000-000-000-003\",\n client_disclosed_directly: \"905-001-000-000-000-000-000\",\n third_party_reported: \"905-002-000-000-000-000-000\",\n staff_observed: \"905-003-000-000-000-000-000\",\n provider_assessed: \"905-004-000-000-000-000-000\",\n record_document_reviewed: \"905-005-000-000-000-000-000\",\n public_source_online: \"905-006-000-000-000-000-000\",\n system_imported_machine_derived: \"905-007-000-000-000-000-000\",\n} as const;\n\nexport type BasisQuickPicksKey = keyof typeof BasisQuickPicksKeys;\n\n/**\n * Key → positional code map for the `check_in_activity` CVC domain.\n *\n * Domain: `check_in_activity` · Version: 1.0.0 · Entries: 24\n */\nexport const CheckInActivityKeys = {\n missingness_root: \"906-000-000-000-000-000-000\",\n unknown: \"906-000-000-000-000-000-001\",\n anonymous: \"906-000-000-000-000-000-002\",\n data_not_collected: \"906-000-000-000-000-000-003\",\n update_hope_plan: \"906-001-000-000-000-000-000\",\n review_update_safety_plan: \"906-002-000-000-000-000-000\",\n update_needs_assessment: \"906-003-000-000-000-000-000\",\n counseling_check_in: \"906-004-000-000-000-000-000\",\n prss_wellness_check_in: \"906-005-000-000-000-000-000\",\n medical_check_in: \"906-006-000-000-000-000-000\",\n housing_exit_plan_check_in: \"906-007-000-000-000-000-000\",\n offer_education_dv_sa_ht_stk: \"906-008-000-000-000-000-000\",\n schedule_next_meeting: \"906-009-000-000-000-000-000\",\n room_check: \"906-010-000-000-000-000-000\",\n pet_kennel_check: \"906-011-000-000-000-000-000\",\n boutique_essential_closet_visit: \"906-012-000-000-000-000-000\",\n transportation_request: \"906-013-000-000-000-000-000\",\n needs_financial_request: \"906-014-000-000-000-000-000\",\n review_confidentiality: \"906-015-000-000-000-000-000\",\n review_do_no_harm_agreement: \"906-016-000-000-000-000-000\",\n educate_guest_staff_rights: \"906-017-000-000-000-000-000\",\n complete_hope_scale: \"906-018-000-000-000-000-000\",\n set_soft_target_date: \"906-019-000-000-000-000-000\",\n other_activity: \"906-020-000-000-000-000-000\",\n} as const;\n\nexport type CheckInActivityKey = keyof typeof CheckInActivityKeys;\n\n/**\n * Key → positional code map for the `check_in_phase` CVC domain.\n *\n * Domain: `check_in_phase` · Version: 1.1.0 · Entries: 17\n */\nexport const CheckInPhaseKeys = {\n missingness_root: \"907-000-000-000-000-000-000\",\n unknown: \"907-000-000-000-000-000-001\",\n anonymous: \"907-000-000-000-000-000-002\",\n data_not_collected: \"907-000-000-000-000-000-003\",\n welcome_week: \"907-001-000-000-000-000-000\",\n phase_1_30d: \"907-002-000-000-000-000-000\",\n phase_2_60d: \"907-003-000-000-000-000-000\",\n phase_3_90d: \"907-004-000-000-000-000-000\",\n phase_4_120d_plus: \"907-005-000-000-000-000-000\",\n initial_intake: \"907-006-000-000-000-000-000\",\n routine_interval: \"907-007-000-000-000-000-000\",\n milestone_review: \"907-008-000-000-000-000-000\",\n crisis_response_followup: \"907-009-000-000-000-000-000\",\n pre_exit_review: \"907-010-000-000-000-000-000\",\n post_exit_followup: \"907-011-000-000-000-000-000\",\n phase_2_followup: \"907-012-000-000-000-000-000\",\n phase_3_followup: \"907-013-000-000-000-000-000\",\n} as const;\n\nexport type CheckInPhaseKey = keyof typeof CheckInPhaseKeys;\n\n/**\n * Key → positional code map for the `child_behavioral_concerns` CVC domain.\n *\n * Domain: `child_behavioral_concerns` · Version: 1.0.0 · Entries: 16\n */\nexport const ChildBehavioralConcernsKeys = {\n missingness_root: \"908-000-000-000-000-000-000\",\n unknown: \"908-000-000-000-000-000-001\",\n anonymous: \"908-000-000-000-000-000-002\",\n data_not_collected: \"908-000-000-000-000-000-003\",\n theft: \"908-001-000-000-000-000-000\",\n difficulty_making_friends: \"908-002-000-000-000-000-000\",\n withdrawn: \"908-003-000-000-000-000-000\",\n bed_wetting: \"908-004-000-000-000-000-000\",\n harming_animals: \"908-005-000-000-000-000-000\",\n fighting: \"908-006-000-000-000-000-000\",\n bullying_others: \"908-007-000-000-000-000-000\",\n being_bullied: \"908-008-000-000-000-000-000\",\n sexual_acting_out: \"908-009-000-000-000-000-000\",\n substance_use: \"908-010-000-000-000-000-000\",\n frequent_moves: \"908-011-000-000-000-000-000\",\n other: \"908-012-000-000-000-000-000\",\n} as const;\n\nexport type ChildBehavioralConcernsKey = keyof typeof ChildBehavioralConcernsKeys;\n\n/**\n * Key → positional code map for the `child_custody_arrangement` CVC domain.\n *\n * Domain: `child_custody_arrangement` · Version: 1.0.0 · Entries: 19\n */\nexport const ChildCustodyArrangementKeys = {\n missingness_root: \"910-000-000-000-000-000-000\",\n unknown: \"910-000-000-000-000-000-001\",\n anonymous: \"910-000-000-000-000-000-002\",\n data_not_collected: \"910-000-000-000-000-000-003\",\n court_ordered_sole_client: \"910-001-000-000-000-000-000\",\n court_ordered_sole_other: \"910-002-000-000-000-000-000\",\n court_ordered_shared: \"910-003-000-000-000-000-000\",\n voluntary_informal_client: \"910-004-000-000-000-000-000\",\n voluntary_informal_other: \"910-005-000-000-000-000-000\",\n shared_informal: \"910-006-000-000-000-000-000\",\n rights_surrendered_voluntary: \"910-007-000-000-000-000-000\",\n rights_terminated_court: \"910-008-000-000-000-000-000\",\n kinship_care: \"910-009-000-000-000-000-000\",\n foster_care: \"910-010-000-000-000-000-000\",\n adopted_out: \"910-011-000-000-000-000-000\",\n pending_legal_process: \"910-012-000-000-000-000-000\",\n unknown_status: \"910-013-000-000-000-000-000\",\n not_applicable: \"910-014-000-000-000-000-000\",\n other: \"910-015-000-000-000-000-000\",\n} as const;\n\nexport type ChildCustodyArrangementKey = keyof typeof ChildCustodyArrangementKeys;\n\n/**\n * Key → positional code map for the `da_incident_archive_reason` CVC domain.\n *\n * Domain: `da_incident_archive_reason` · Version: 1.0.0 · Entries: 8\n */\nexport const DaIncidentArchiveReasonKeys = {\n missingness_root: \"911-000-000-000-000-000-000\",\n unknown: \"911-000-000-000-000-000-001\",\n anonymous: \"911-000-000-000-000-000-002\",\n data_not_collected: \"911-000-000-000-000-000-003\",\n inaccurate: \"911-001-000-000-000-000-000\",\n duplicate: \"911-002-000-000-000-000-000\",\n captured_in_error: \"911-003-000-000-000-000-000\",\n survivor_retracted: \"911-004-000-000-000-000-000\",\n} as const;\n\nexport type DaIncidentArchiveReasonKey = keyof typeof DaIncidentArchiveReasonKeys;\n\n/**\n * Key → positional code map for the `da_incident_confidence` CVC domain.\n *\n * Domain: `da_incident_confidence` · Version: 1.0.0 · Entries: 7\n */\nexport const DaIncidentConfidenceKeys = {\n missingness_root: \"912-000-000-000-000-000-000\",\n unknown: \"912-000-000-000-000-000-001\",\n anonymous: \"912-000-000-000-000-000-002\",\n data_not_collected: \"912-000-000-000-000-000-003\",\n exact: \"912-001-000-000-000-000-000\",\n approximate: \"912-002-000-000-000-000-000\",\n uncertain: \"912-003-000-000-000-000-000\",\n} as const;\n\nexport type DaIncidentConfidenceKey = keyof typeof DaIncidentConfidenceKeys;\n\n/**\n * Key → positional code map for the `da_incident_day_approx` CVC domain.\n *\n * Domain: `da_incident_day_approx` · Version: 1.0.0 · Entries: 8\n */\nexport const DaIncidentDayApproxKeys = {\n missingness_root: \"913-000-000-000-000-000-000\",\n unknown: \"913-000-000-000-000-000-001\",\n anonymous: \"913-000-000-000-000-000-002\",\n data_not_collected: \"913-000-000-000-000-000-003\",\n early: \"913-001-000-000-000-000-000\",\n mid: \"913-002-000-000-000-000-000\",\n late: \"913-003-000-000-000-000-000\",\n unspecified: \"913-004-000-000-000-000-000\",\n} as const;\n\nexport type DaIncidentDayApproxKey = keyof typeof DaIncidentDayApproxKeys;\n\n/**\n * Key → positional code map for the `disability_subtype` CVC domain.\n *\n * Domain: `disability_subtype` · Version: 1.0.0 · Entries: 12\n */\nexport const DisabilitySubtypeKeys = {\n missingness_root: \"914-000-000-000-000-000-000\",\n unknown: \"914-000-000-000-000-000-001\",\n anonymous: \"914-000-000-000-000-000-002\",\n data_not_collected: \"914-000-000-000-000-000-003\",\n vision: \"914-001-000-000-000-000-000\",\n hearing: \"914-002-000-000-000-000-000\",\n speech: \"914-003-000-000-000-000-000\",\n cognitive_developmental: \"914-004-000-000-000-000-000\",\n physical: \"914-005-000-000-000-000-000\",\n mental: \"914-006-000-000-000-000-000\",\n other: \"914-007-000-000-000-000-000\",\n exists_but_type_unknown: \"914-008-000-000-000-000-000\",\n} as const;\n\nexport type DisabilitySubtypeKey = keyof typeof DisabilitySubtypeKeys;\n\n/**\n * Key → positional code map for the `discretion_level` CVC domain.\n *\n * Domain: `discretion_level` · Version: 1.0.0 · Entries: 8\n */\nexport const DiscretionLevelKeys = {\n missingness_root: \"915-000-000-000-000-000-000\",\n unknown: \"915-000-000-000-000-000-001\",\n anonymous: \"915-000-000-000-000-000-002\",\n data_not_collected: \"915-000-000-000-000-000-003\",\n full_disclosure: \"915-001-000-000-000-000-000\",\n discrete_message: \"915-002-000-000-000-000-000\",\n vsp_only_no_agency_name: \"915-003-000-000-000-000-000\",\n code_word_verification_required: \"915-004-000-000-000-000-000\",\n} as const;\n\nexport type DiscretionLevelKey = keyof typeof DiscretionLevelKeys;\n\n/**\n * Key → positional code map for the `emergency_contact_call_reason` CVC domain.\n *\n * Domain: `emergency_contact_call_reason` · Version: 1.0.0 · Entries: 10\n */\nexport const EmergencyContactCallReasonKeys = {\n missingness_root: \"916-000-000-000-000-000-000\",\n unknown: \"916-000-000-000-000-000-001\",\n anonymous: \"916-000-000-000-000-000-002\",\n data_not_collected: \"916-000-000-000-000-000-003\",\n medical_incapacity: \"916-001-000-000-000-000-000\",\n safety_concern_survivor_missing: \"916-002-000-000-000-000-000\",\n child_emergency_client_unreachable: \"916-003-000-000-000-000-000\",\n logistics_children_pet_care_needed: \"916-004-000-000-000-000-000\",\n logistics_belongings_or_mail_pickup: \"916-005-000-000-000-000-000\",\n other: \"916-006-000-000-000-000-000\",\n} as const;\n\nexport type EmergencyContactCallReasonKey = keyof typeof EmergencyContactCallReasonKeys;\n\n/**\n * Key → positional code map for the `emergency_contact_permissions` CVC domain.\n *\n * Domain: `emergency_contact_permissions` · Version: 1.0.0 · Entries: 12\n */\nexport const EmergencyContactPermissionsKeys = {\n missingness_root: \"917-000-000-000-000-000-000\",\n unknown: \"917-000-000-000-000-000-001\",\n anonymous: \"917-000-000-000-000-000-002\",\n data_not_collected: \"917-000-000-000-000-000-003\",\n may_be_told_of_status: \"917-001-000-000-000-000-000\",\n may_receive_location: \"917-002-000-000-000-000-000\",\n may_pickup_children: \"917-003-000-000-000-000-000\",\n may_pickup_pets: \"917-004-000-000-000-000-000\",\n may_pickup_mail: \"917-005-000-000-000-000-000\",\n may_pickup_belongings: \"917-006-000-000-000-000-000\",\n may_act_on_clients_behalf_general: \"917-007-000-000-000-000-000\",\n may_make_medical_decisions: \"917-008-000-000-000-000-000\",\n} as const;\n\nexport type EmergencyContactPermissionsKey = keyof typeof EmergencyContactPermissionsKeys;\n\n/**\n * Key → positional code map for the `emergency_exit_cascade` CVC domain.\n *\n * Domain: `emergency_exit_cascade` · Version: 1.0.0 · Entries: 8\n */\nexport const EmergencyExitCascadeKeys = {\n missingness_root: \"918-000-000-000-000-000-000\",\n unknown: \"918-000-000-000-000-000-001\",\n anonymous: \"918-000-000-000-000-000-002\",\n data_not_collected: \"918-000-000-000-000-000-003\",\n safety_plan_updated: \"918-001-000-000-000-000-000\",\n emergency_contacts_notified: \"918-002-000-000-000-000-000\",\n destination_confidential: \"918-003-000-000-000-000-000\",\n risk_algo_reevaluated: \"918-004-000-000-000-000-000\",\n} as const;\n\nexport type EmergencyExitCascadeKey = keyof typeof EmergencyExitCascadeKeys;\n\n/**\n * Key → positional code map for the `exit_process_checklist_item` CVC domain.\n *\n * Domain: `exit_process_checklist_item` · Version: 1.0.0 · Entries: 15\n */\nexport const ExitProcessChecklistItemKeys = {\n missingness_root: \"919-000-000-000-000-000-000\",\n unknown: \"919-000-000-000-000-000-001\",\n anonymous: \"919-000-000-000-000-000-002\",\n data_not_collected: \"919-000-000-000-000-000-003\",\n discuss_exit_reasons: \"919-001-000-000-000-000-000\",\n locks_returned: \"919-002-000-000-000-000-000\",\n evaluation_form_sent: \"919-003-000-000-000-000-000\",\n forwarding_address_requested: \"919-004-000-000-000-000-000\",\n spiritual_care_offered: \"919-005-000-000-000-000-000\",\n schools_notified: \"919-006-000-000-000-000-000\",\n counselor_notified: \"919-007-000-000-000-000-000\",\n whiteboard_locker_erased: \"919-008-000-000-000-000-000\",\n team_discharge_informed: \"919-009-000-000-000-000-000\",\n room_turnover_form_completed: \"919-010-000-000-000-000-000\",\n other: \"919-011-000-000-000-000-000\",\n} as const;\n\nexport type ExitProcessChecklistItemKey = keyof typeof ExitProcessChecklistItemKeys;\n\n/**\n * Key → positional code map for the `facial_hair` CVC domain.\n *\n * Domain: `facial_hair` · Version: 1.0.0 · Entries: 6\n */\nexport const FacialHairKeys = {\n missingness_root: \"920-000-000-000-000-000-000\",\n unknown: \"920-000-000-000-000-000-001\",\n anonymous: \"920-000-000-000-000-000-002\",\n data_not_collected: \"920-000-000-000-000-000-003\",\n yes: \"920-001-000-000-000-000-000\",\n no: \"920-002-000-000-000-000-000\",\n} as const;\n\nexport type FacialHairKey = keyof typeof FacialHairKeys;\n\n/**\n * Key → positional code map for the `goal_category` CVC domain.\n *\n * Domain: `goal_category` · Version: 1.0.0 · Entries: 16\n */\nexport const GoalCategoryKeys = {\n missingness_root: \"921-000-000-000-000-000-000\",\n unknown: \"921-000-000-000-000-000-001\",\n anonymous: \"921-000-000-000-000-000-002\",\n data_not_collected: \"921-000-000-000-000-000-003\",\n basic_needs: \"921-001-000-000-000-000-000\",\n housing: \"921-002-000-000-000-000-000\",\n social_support_community_engagement: \"921-003-000-000-000-000-000\",\n transportation: \"921-004-000-000-000-000-000\",\n legal: \"921-005-000-000-000-000-000\",\n healthcare: \"921-006-000-000-000-000-000\",\n financial_and_employment: \"921-007-000-000-000-000-000\",\n informal_education_life_skills: \"921-008-000-000-000-000-000\",\n dependents: \"921-009-000-000-000-000-000\",\n case_coordination: \"921-010-000-000-000-000-000\",\n other_services: \"921-011-000-000-000-000-000\",\n safety: \"921-012-000-000-000-000-000\",\n} as const;\n\nexport type GoalCategoryKey = keyof typeof GoalCategoryKeys;\n\n/**\n * Key → positional code map for the `goal_priority` CVC domain.\n *\n * Domain: `goal_priority` · Version: 1.0.0 · Entries: 7\n */\nexport const GoalPriorityKeys = {\n missingness_root: \"922-000-000-000-000-000-000\",\n unknown: \"922-000-000-000-000-000-001\",\n anonymous: \"922-000-000-000-000-000-002\",\n data_not_collected: \"922-000-000-000-000-000-003\",\n high: \"922-001-000-000-000-000-000\",\n medium: \"922-002-000-000-000-000-000\",\n low: \"922-003-000-000-000-000-000\",\n} as const;\n\nexport type GoalPriorityKey = keyof typeof GoalPriorityKeys;\n\n/**\n * Key → positional code map for the `goal_status` CVC domain.\n *\n * Domain: `goal_status` · Version: 1.0.0 · Entries: 9\n */\nexport const GoalStatusKeys = {\n missingness_root: \"923-000-000-000-000-000-000\",\n unknown: \"923-000-000-000-000-000-001\",\n anonymous: \"923-000-000-000-000-000-002\",\n data_not_collected: \"923-000-000-000-000-000-003\",\n drafted: \"923-001-000-000-000-000-000\",\n in_progress: \"923-002-000-000-000-000-000\",\n on_hold: \"923-003-000-000-000-000-000\",\n completed: \"923-004-000-000-000-000-000\",\n withdrawn: \"923-005-000-000-000-000-000\",\n} as const;\n\nexport type GoalStatusKey = keyof typeof GoalStatusKeys;\n\n/**\n * Key → positional code map for the `goal_withdrawal_reason` CVC domain.\n *\n * Domain: `goal_withdrawal_reason` · Version: 1.0.0 · Entries: 11\n */\nexport const GoalWithdrawalReasonKeys = {\n missingness_root: \"924-000-000-000-000-000-000\",\n unknown: \"924-000-000-000-000-000-001\",\n anonymous: \"924-000-000-000-000-000-002\",\n data_not_collected: \"924-000-000-000-000-000-003\",\n client_changed_priorities: \"924-001-000-000-000-000-000\",\n no_longer_relevant: \"924-002-000-000-000-000-000\",\n external_barrier_insurmountable: \"924-003-000-000-000-000-000\",\n alternative_path_chosen: \"924-004-000-000-000-000-000\",\n insufficient_resources: \"924-005-000-000-000-000-000\",\n client_declined_to_specify: \"924-006-000-000-000-000-000\",\n other: \"924-007-000-000-000-000-000\",\n} as const;\n\nexport type GoalWithdrawalReasonKey = keyof typeof GoalWithdrawalReasonKeys;\n\n/**\n * Key → positional code map for the `hope_scale_capture_context` CVC domain.\n *\n * Domain: `hope_scale_capture_context` · Version: 1.0.0 · Entries: 11\n */\nexport const HopeScaleCaptureContextKeys = {\n missingness_root: \"926-000-000-000-000-000-000\",\n unknown: \"926-000-000-000-000-000-001\",\n anonymous: \"926-000-000-000-000-000-002\",\n data_not_collected: \"926-000-000-000-000-000-003\",\n welcome_week: \"926-001-000-000-000-000-000\",\n phase_1_checkin: \"926-002-000-000-000-000-000\",\n phase_2_checkin: \"926-003-000-000-000-000-000\",\n phase_3_checkin: \"926-004-000-000-000-000-000\",\n phase_4_checkin: \"926-005-000-000-000-000-000\",\n ad_hoc: \"926-006-000-000-000-000-000\",\n amendment: \"926-007-000-000-000-000-000\",\n} as const;\n\nexport type HopeScaleCaptureContextKey = keyof typeof HopeScaleCaptureContextKeys;\n\n/**\n * Key → positional code map for the `hope_scale_response_options` CVC domain.\n *\n * Domain: `hope_scale_response_options` · Version: 1.0.0 · Entries: 12\n */\nexport const HopeScaleResponseOptionsKeys = {\n missingness_root: \"927-000-000-000-000-000-000\",\n unknown: \"927-000-000-000-000-000-001\",\n anonymous: \"927-000-000-000-000-000-002\",\n data_not_collected: \"927-000-000-000-000-000-003\",\n definitely_false: \"927-001-000-000-000-000-000\",\n mostly_false: \"927-002-000-000-000-000-000\",\n somewhat_false: \"927-003-000-000-000-000-000\",\n slightly_false: \"927-004-000-000-000-000-000\",\n slightly_true: \"927-005-000-000-000-000-000\",\n somewhat_true: \"927-006-000-000-000-000-000\",\n mostly_true: \"927-007-000-000-000-000-000\",\n definitely_true: \"927-008-000-000-000-000-000\",\n} as const;\n\nexport type HopeScaleResponseOptionsKey = keyof typeof HopeScaleResponseOptionsKeys;\n\n/**\n * Key → positional code map for the `hope_scale_tier` CVC domain.\n *\n * Domain: `hope_scale_tier` · Version: 1.0.0 · Entries: 8\n */\nexport const HopeScaleTierKeys = {\n missingness_root: \"928-000-000-000-000-000-000\",\n unknown: \"928-000-000-000-000-000-001\",\n anonymous: \"928-000-000-000-000-000-002\",\n data_not_collected: \"928-000-000-000-000-000-003\",\n building: \"928-001-000-000-000-000-000\",\n hopeful: \"928-002-000-000-000-000-000\",\n moderately_hopeful: \"928-003-000-000-000-000-000\",\n high_hope: \"928-004-000-000-000-000-000\",\n} as const;\n\nexport type HopeScaleTierKey = keyof typeof HopeScaleTierKeys;\n\n/**\n * Key → positional code map for the `identification_status` CVC domain.\n *\n * Domain: `identification_status` · Version: 1.0.0 · Entries: 9\n */\nexport const IdentificationStatusKeys = {\n missingness_root: \"929-000-000-000-000-000-000\",\n unknown: \"929-000-000-000-000-000-001\",\n anonymous: \"929-000-000-000-000-000-002\",\n data_not_collected: \"929-000-000-000-000-000-003\",\n identified: \"929-001-000-000-000-000-000\",\n unidentified: \"929-002-000-000-000-000-000\",\n anonymous_posture: \"929-003-000-000-000-000-000\",\n estimated_persona: \"929-004-000-000-000-000-000\",\n confirmed: \"929-005-000-000-000-000-000\",\n} as const;\n\nexport type IdentificationStatusKey = keyof typeof IdentificationStatusKeys;\n\n/**\n * Key → positional code map for the `investigative_request_type` CVC domain.\n *\n * Domain: `investigative_request_type` · Version: 1.0.0 · Entries: 8\n */\nexport const InvestigativeRequestTypeKeys = {\n missingness_root: \"931-000-000-000-000-000-000\",\n unknown: \"931-000-000-000-000-000-001\",\n anonymous: \"931-000-000-000-000-000-002\",\n data_not_collected: \"931-000-000-000-000-000-003\",\n request_a_lead: \"931-001-000-000-000-000-000\",\n ask_about_a_network: \"931-002-000-000-000-000-000\",\n submit_case_info_for_buildout: \"931-003-000-000-000-000-000\",\n other: \"931-004-000-000-000-000-000\",\n} as const;\n\nexport type InvestigativeRequestTypeKey = keyof typeof InvestigativeRequestTypeKeys;\n\n/**\n * Key → positional code map for the `le_report_status` CVC domain.\n *\n * Domain: `le_report_status` · Version: 1.0.0 · Entries: 8\n */\nexport const LeReportStatusKeys = {\n missingness_root: \"932-000-000-000-000-000-000\",\n unknown: \"932-000-000-000-000-000-001\",\n anonymous: \"932-000-000-000-000-000-002\",\n data_not_collected: \"932-000-000-000-000-000-003\",\n yes_reported: \"932-001-000-000-000-000-000\",\n no_not_reported: \"932-002-000-000-000-000-000\",\n scheduled: \"932-003-000-000-000-000-000\",\n declined_to_report: \"932-004-000-000-000-000-000\",\n} as const;\n\nexport type LeReportStatusKey = keyof typeof LeReportStatusKeys;\n\n/**\n * Key → positional code map for the `legal_action_type` CVC domain.\n *\n * Domain: `legal_action_type` · Version: 1.0.0 · Entries: 11\n */\nexport const LegalActionTypeKeys = {\n missingness_root: \"933-000-000-000-000-000-000\",\n unknown: \"933-000-000-000-000-000-001\",\n anonymous: \"933-000-000-000-000-000-002\",\n data_not_collected: \"933-000-000-000-000-000-003\",\n continued_presence: \"933-001-000-000-000-000-000\",\n t_visa: \"933-002-000-000-000-000-000\",\n u_visa: \"933-003-000-000-000-000-000\",\n vawa_self_petition: \"933-004-000-000-000-000-000\",\n asylum: \"933-005-000-000-000-000-000\",\n sij: \"933-006-000-000-000-000-000\",\n other: \"933-007-000-000-000-000-000\",\n} as const;\n\nexport type LegalActionTypeKey = keyof typeof LegalActionTypeKeys;\n\n/**\n * Key → positional code map for the `message_report_reason` CVC domain.\n *\n * Domain: `message_report_reason` · Version: 1.0.0 · Entries: 10\n */\nexport const MessageReportReasonKeys = {\n missingness_root: \"935-000-000-000-000-000-000\",\n unknown: \"935-000-000-000-000-000-001\",\n anonymous: \"935-000-000-000-000-000-002\",\n data_not_collected: \"935-000-000-000-000-000-003\",\n inappropriate: \"935-001-000-000-000-000-000\",\n harassment: \"935-002-000-000-000-000-000\",\n safety_concern: \"935-003-000-000-000-000-000\",\n spam: \"935-004-000-000-000-000-000\",\n off_topic: \"935-005-000-000-000-000-000\",\n other: \"935-006-000-000-000-000-000\",\n} as const;\n\nexport type MessageReportReasonKey = keyof typeof MessageReportReasonKeys;\n\n/**\n * Key → positional code map for the `milestone_type` CVC domain.\n *\n * Domain: `milestone_type` · Version: 1.0.0 · Entries: 17\n */\nexport const MilestoneTypeKeys = {\n missingness_root: \"936-000-000-000-000-000-000\",\n unknown: \"936-000-000-000-000-000-001\",\n anonymous: \"936-000-000-000-000-000-002\",\n data_not_collected: \"936-000-000-000-000-000-003\",\n edu_grade_complete: \"936-001-000-000-000-000-000\",\n edu_ged_hs_diploma: \"936-002-000-000-000-000-000\",\n edu_higher_ed_degree: \"936-003-000-000-000-000-000\",\n edu_trade_school_degree: \"936-004-000-000-000-000-000\",\n obtained_employment: \"936-005-000-000-000-000-000\",\n received_housing_offer: \"936-006-000-000-000-000-000\",\n recovery_anniversary: \"936-007-000-000-000-000-000\",\n parenting_class_completed: \"936-008-000-000-000-000-000\",\n opened_bank_account: \"936-009-000-000-000-000-000\",\n baptism: \"936-010-000-000-000-000-000\",\n spiritual_decision: \"936-011-000-000-000-000-000\",\n baby_child_youth_dedication: \"936-012-000-000-000-000-000\",\n other: \"936-013-000-000-000-000-000\",\n} as const;\n\nexport type MilestoneTypeKey = keyof typeof MilestoneTypeKeys;\n\n/**\n * Key → positional code map for the `needs_residential_again` CVC domain.\n *\n * Domain: `needs_residential_again` · Version: 1.0.0 · Entries: 7\n */\nexport const NeedsResidentialAgainKeys = {\n missingness_root: \"937-000-000-000-000-000-000\",\n unknown: \"937-000-000-000-000-000-001\",\n anonymous: \"937-000-000-000-000-000-002\",\n data_not_collected: \"937-000-000-000-000-000-003\",\n yes: \"937-001-000-000-000-000-000\",\n no: \"937-002-000-000-000-000-000\",\n maybe: \"937-003-000-000-000-000-000\",\n} as const;\n\nexport type NeedsResidentialAgainKey = keyof typeof NeedsResidentialAgainKeys;\n\n/**\n * Key → positional code map for the `pet_relationship_basis` CVC domain.\n *\n * Domain: `pet_relationship_basis` · Version: 1.0.0 · Entries: 7\n */\nexport const PetRelationshipBasisKeys = {\n missingness_root: \"938-000-000-000-000-000-000\",\n unknown: \"938-000-000-000-000-000-001\",\n anonymous: \"938-000-000-000-000-000-002\",\n data_not_collected: \"938-000-000-000-000-000-003\",\n household_pet: \"938-001-000-000-000-000-000\",\n service_animal: \"938-002-000-000-000-000-000\",\n fostered: \"938-003-000-000-000-000-000\",\n} as const;\n\nexport type PetRelationshipBasisKey = keyof typeof PetRelationshipBasisKeys;\n\n/**\n * Key → positional code map for the `program_specific_code` CVC domain.\n *\n * Domain: `program_specific_code` · Version: 1.0.0 · Entries: 12\n */\nexport const ProgramSpecificCodeKeys = {\n missingness_root: \"940-000-000-000-000-000-000\",\n unknown: \"940-000-000-000-000-000-001\",\n anonymous: \"940-000-000-000-000-000-002\",\n data_not_collected: \"940-000-000-000-000-000-003\",\n tvap: \"940-001-000-000-000-000-000\",\n t_visa_legal_aid_program: \"940-002-000-000-000-000-000\",\n u_visa_legal_aid_program: \"940-003-000-000-000-000-000\",\n vawa_legal_aid_program: \"940-004-000-000-000-000-000\",\n asylum_legal_aid_program: \"940-005-000-000-000-000-000\",\n sij_legal_aid_program: \"940-006-000-000-000-000-000\",\n immigration_relief_program_other: \"940-007-000-000-000-000-000\",\n other: \"940-008-000-000-000-000-000\",\n} as const;\n\nexport type ProgramSpecificCodeKey = keyof typeof ProgramSpecificCodeKeys;\n\n/**\n * Key → positional code map for the `proof_of_id_type` CVC domain.\n *\n * Domain: `proof_of_id_type` · Version: 1.0.0 · Entries: 19\n */\nexport const ProofOfIdTypeKeys = {\n missingness_root: \"941-000-000-000-000-000-000\",\n unknown: \"941-000-000-000-000-000-001\",\n anonymous: \"941-000-000-000-000-000-002\",\n data_not_collected: \"941-000-000-000-000-000-003\",\n none: \"941-001-000-000-000-000-000\",\n passport_us: \"941-002-000-000-000-000-000\",\n drivers_license: \"941-003-000-000-000-000-000\",\n state_id: \"941-004-000-000-000-000-000\",\n military_id: \"941-005-000-000-000-000-000\",\n tribal_id: \"941-006-000-000-000-000-000\",\n uscis_document: \"941-007-000-000-000-000-000\",\n green_card: \"941-008-000-000-000-000-000\",\n foreign_passport: \"941-009-000-000-000-000-000\",\n foreign_national_id: \"941-010-000-000-000-000-000\",\n consular_id: \"941-011-000-000-000-000-000\",\n birth_certificate: \"941-012-000-000-000-000-000\",\n social_security_card: \"941-013-000-000-000-000-000\",\n school_id: \"941-014-000-000-000-000-000\",\n other: \"941-015-000-000-000-000-000\",\n} as const;\n\nexport type ProofOfIdTypeKey = keyof typeof ProofOfIdTypeKeys;\n\n/**\n * Key → positional code map for the `reference_link_type` CVC domain.\n *\n * Domain: `reference_link_type` · Version: 1.0.0 · Entries: 12\n */\nexport const ReferenceLinkTypeKeys = {\n missingness_root: \"942-000-000-000-000-000-000\",\n unknown: \"942-000-000-000-000-000-001\",\n anonymous: \"942-000-000-000-000-000-002\",\n data_not_collected: \"942-000-000-000-000-000-003\",\n case: \"942-001-000-000-000-000-000\",\n service: \"942-002-000-000-000-000-000\",\n working_group: \"942-003-000-000-000-000-000\",\n training: \"942-004-000-000-000-000-000\",\n agency: \"942-005-000-000-000-000-000\",\n share: \"942-006-000-000-000-000-000\",\n user: \"942-007-000-000-000-000-000\",\n thread: \"942-008-000-000-000-000-000\",\n} as const;\n\nexport type ReferenceLinkTypeKey = keyof typeof ReferenceLinkTypeKeys;\n\n/**\n * Key → positional code map for the `returned_to_abuser_status` CVC domain.\n *\n * Domain: `returned_to_abuser_status` · Version: 1.0.0 · Entries: 7\n */\nexport const ReturnedToAbuserStatusKeys = {\n missingness_root: \"944-000-000-000-000-000-000\",\n unknown: \"944-000-000-000-000-000-001\",\n anonymous: \"944-000-000-000-000-000-002\",\n data_not_collected: \"944-000-000-000-000-000-003\",\n yes: \"944-001-000-000-000-000-000\",\n no: \"944-002-000-000-000-000-000\",\n unanswered: \"944-003-000-000-000-000-000\",\n} as const;\n\nexport type ReturnedToAbuserStatusKey = keyof typeof ReturnedToAbuserStatusKeys;\n\n/**\n * Key → positional code map for the `rsvp_response` CVC domain.\n *\n * Domain: `rsvp_response` · Version: 1.0.0 · Entries: 7\n */\nexport const RsvpResponseKeys = {\n missingness_root: \"946-000-000-000-000-000-000\",\n unknown: \"946-000-000-000-000-000-001\",\n anonymous: \"946-000-000-000-000-000-002\",\n data_not_collected: \"946-000-000-000-000-000-003\",\n rsvp_yes: \"946-001-000-000-000-000-000\",\n rsvp_maybe: \"946-002-000-000-000-000-000\",\n rsvp_no: \"946-003-000-000-000-000-000\",\n} as const;\n\nexport type RsvpResponseKey = keyof typeof RsvpResponseKeys;\n\n/**\n * Key → positional code map for the `service_plan_closure_reason` CVC domain.\n *\n * Domain: `service_plan_closure_reason` · Version: 1.0.0 · Entries: 12\n */\nexport const ServicePlanClosureReasonKeys = {\n missingness_root: \"947-000-000-000-000-000-000\",\n unknown: \"947-000-000-000-000-000-001\",\n anonymous: \"947-000-000-000-000-000-002\",\n data_not_collected: \"947-000-000-000-000-000-003\",\n program_exit_goals_reached: \"947-001-000-000-000-000-000\",\n program_exit_incomplete: \"947-002-000-000-000-000-000\",\n transferred: \"947-003-000-000-000-000-000\",\n aged_out: \"947-004-000-000-000-000-000\",\n lost_contact: \"947-005-000-000-000-000-000\",\n survivor_withdrew: \"947-006-000-000-000-000-000\",\n agency_terminated: \"947-007-000-000-000-000-000\",\n other: \"947-008-000-000-000-000-000\",\n} as const;\n\nexport type ServicePlanClosureReasonKey = keyof typeof ServicePlanClosureReasonKeys;\n\n/**\n * Key → positional code map for the `service_plan_review_snooze_reason` CVC domain.\n *\n * Domain: `service_plan_review_snooze_reason` · Version: 1.0.0 · Entries: 11\n */\nexport const ServicePlanReviewSnoozeReasonKeys = {\n missingness_root: \"948-000-000-000-000-000-000\",\n unknown: \"948-000-000-000-000-000-001\",\n anonymous: \"948-000-000-000-000-000-002\",\n data_not_collected: \"948-000-000-000-000-000-003\",\n survivor_unreachable: \"948-001-000-000-000-000-000\",\n schedule_conflict: \"948-002-000-000-000-000-000\",\n survivor_traveling_or_out_of_contact: \"948-003-000-000-000-000-000\",\n advocate_caseload_spike: \"948-004-000-000-000-000-000\",\n safety_circumstance: \"948-005-000-000-000-000-000\",\n awaiting_information_from_external_party: \"948-006-000-000-000-000-000\",\n other: \"948-007-000-000-000-000-000\",\n} as const;\n\nexport type ServicePlanReviewSnoozeReasonKey = keyof typeof ServicePlanReviewSnoozeReasonKeys;\n\n/**\n * Key → positional code map for the `service_source` CVC domain.\n *\n * Domain: `service_source` · Version: 1.0.0 · Entries: 6\n */\nexport const ServiceSourceKeys = {\n missingness_root: \"949-000-000-000-000-000-000\",\n unknown: \"949-000-000-000-000-000-001\",\n anonymous: \"949-000-000-000-000-000-002\",\n data_not_collected: \"949-000-000-000-000-000-003\",\n your_program: \"949-001-000-000-000-000-000\",\n other_agency: \"949-002-000-000-000-000-000\",\n} as const;\n\nexport type ServiceSourceKey = keyof typeof ServiceSourceKeys;\n\n/**\n * Key → positional code map for the `severity_follow_up` CVC domain.\n *\n * Domain: `severity_follow_up` · Version: 1.0.0 · Entries: 8\n */\nexport const SeverityFollowUpKeys = {\n missingness_root: \"951-000-000-000-000-000-000\",\n unknown: \"951-000-000-000-000-000-001\",\n anonymous: \"951-000-000-000-000-000-002\",\n data_not_collected: \"951-000-000-000-000-000-003\",\n yes: \"951-001-000-000-000-000-000\",\n no: \"951-002-000-000-000-000-000\",\n client_doesnt_know: \"951-003-000-000-000-000-000\",\n prefer_not_to_answer: \"951-004-000-000-000-000-000\",\n} as const;\n\nexport type SeverityFollowUpKey = keyof typeof SeverityFollowUpKeys;\n\n/**\n * Key → positional code map for the `signature_method` CVC domain.\n *\n * Domain: `signature_method` · Version: 1.0.0 · Entries: 8\n */\nexport const SignatureMethodKeys = {\n missingness_root: \"952-000-000-000-000-000-000\",\n unknown: \"952-000-000-000-000-000-001\",\n anonymous: \"952-000-000-000-000-000-002\",\n data_not_collected: \"952-000-000-000-000-000-003\",\n digital_typed: \"952-001-000-000-000-000-000\",\n digital_drawn: \"952-002-000-000-000-000-000\",\n verbal_recorded: \"952-003-000-000-000-000-000\",\n written_scanned: \"952-004-000-000-000-000-000\",\n} as const;\n\nexport type SignatureMethodKey = keyof typeof SignatureMethodKeys;\n\n/**\n * Key → positional code map for the `signature_type` CVC domain.\n *\n * Domain: `signature_type` · Version: 1.0.0 · Entries: 8\n */\nexport const SignatureTypeKeys = {\n missingness_root: \"953-000-000-000-000-000-000\",\n unknown: \"953-000-000-000-000-000-001\",\n anonymous: \"953-000-000-000-000-000-002\",\n data_not_collected: \"953-000-000-000-000-000-003\",\n client_at_creation: \"953-001-000-000-000-000-000\",\n advocate_at_creation: \"953-002-000-000-000-000-000\",\n client_at_completion: \"953-003-000-000-000-000-000\",\n advocate_at_completion: \"953-004-000-000-000-000-000\",\n} as const;\n\nexport type SignatureTypeKey = keyof typeof SignatureTypeKeys;\n\n/**\n * Key → positional code map for the `smt_body_location` CVC domain.\n *\n * Domain: `smt_body_location` · Version: 1.0.0 · Entries: 33\n */\nexport const SmtBodyLocationKeys = {\n missingness_root: \"954-000-000-000-000-000-000\",\n unknown: \"954-000-000-000-000-000-001\",\n anonymous: \"954-000-000-000-000-000-002\",\n data_not_collected: \"954-000-000-000-000-000-003\",\n head: \"954-001-000-000-000-000-000\",\n face: \"954-002-000-000-000-000-000\",\n scalp: \"954-003-000-000-000-000-000\",\n neck: \"954-004-000-000-000-000-000\",\n ear_l: \"954-005-000-000-000-000-000\",\n ear_r: \"954-006-000-000-000-000-000\",\n chest: \"954-007-000-000-000-000-000\",\n back: \"954-008-000-000-000-000-000\",\n abdomen: \"954-009-000-000-000-000-000\",\n shoulder_l: \"954-010-000-000-000-000-000\",\n shoulder_r: \"954-011-000-000-000-000-000\",\n arm_l: \"954-012-000-000-000-000-000\",\n arm_r: \"954-013-000-000-000-000-000\",\n wrist_l: \"954-014-000-000-000-000-000\",\n wrist_r: \"954-015-000-000-000-000-000\",\n hand_l: \"954-016-000-000-000-000-000\",\n hand_r: \"954-017-000-000-000-000-000\",\n finger_l: \"954-018-000-000-000-000-000\",\n finger_r: \"954-019-000-000-000-000-000\",\n leg_l: \"954-020-000-000-000-000-000\",\n leg_r: \"954-021-000-000-000-000-000\",\n ankle_l: \"954-022-000-000-000-000-000\",\n ankle_r: \"954-023-000-000-000-000-000\",\n foot_l: \"954-024-000-000-000-000-000\",\n foot_r: \"954-025-000-000-000-000-000\",\n hip_l: \"954-026-000-000-000-000-000\",\n hip_r: \"954-027-000-000-000-000-000\",\n buttocks: \"954-028-000-000-000-000-000\",\n other: \"954-029-000-000-000-000-000\",\n} as const;\n\nexport type SmtBodyLocationKey = keyof typeof SmtBodyLocationKeys;\n\n/**\n * Key → positional code map for the `smt_name_relation` CVC domain.\n *\n * Domain: `smt_name_relation` · Version: 1.0.0 · Entries: 11\n */\nexport const SmtNameRelationKeys = {\n missingness_root: \"955-000-000-000-000-000-000\",\n unknown: \"955-000-000-000-000-000-001\",\n anonymous: \"955-000-000-000-000-000-002\",\n data_not_collected: \"955-000-000-000-000-000-003\",\n self: \"955-001-000-000-000-000-000\",\n child: \"955-002-000-000-000-000-000\",\n partner: \"955-003-000-000-000-000-000\",\n other_family: \"955-004-000-000-000-000-000\",\n trafficker: \"955-005-000-000-000-000-000\",\n deceased: \"955-006-000-000-000-000-000\",\n other_relation: \"955-007-000-000-000-000-000\",\n} as const;\n\nexport type SmtNameRelationKey = keyof typeof SmtNameRelationKeys;\n\n/**\n * Key → positional code map for the `smt_significance_flags` CVC domain.\n *\n * Domain: `smt_significance_flags` · Version: 1.0.0 · Entries: 11\n */\nexport const SmtSignificanceFlagsKeys = {\n missingness_root: \"956-000-000-000-000-000-000\",\n unknown: \"956-000-000-000-000-000-001\",\n anonymous: \"956-000-000-000-000-000-002\",\n data_not_collected: \"956-000-000-000-000-000-003\",\n gang: \"956-001-000-000-000-000-000\",\n trafficking: \"956-002-000-000-000-000-000\",\n name: \"956-003-000-000-000-000-000\",\n memorial: \"956-004-000-000-000-000-000\",\n religious_cultural: \"956-005-000-000-000-000-000\",\n other: \"956-006-000-000-000-000-000\",\n none_non_specific: \"956-007-000-000-000-000-000\",\n} as const;\n\nexport type SmtSignificanceFlagsKey = keyof typeof SmtSignificanceFlagsKeys;\n\n/**\n * Key → positional code map for the `substance_use_status` CVC domain.\n *\n * Domain: `substance_use_status` · Version: 1.0.0 · Entries: 8\n */\nexport const SubstanceUseStatusKeys = {\n missingness_root: \"958-000-000-000-000-000-000\",\n unknown: \"958-000-000-000-000-000-001\",\n anonymous: \"958-000-000-000-000-000-002\",\n data_not_collected: \"958-000-000-000-000-000-003\",\n no: \"958-001-000-000-000-000-000\",\n alcohol: \"958-002-000-000-000-000-000\",\n drug: \"958-003-000-000-000-000-000\",\n both: \"958-004-000-000-000-000-000\",\n} as const;\n\nexport type SubstanceUseStatusKey = keyof typeof SubstanceUseStatusKeys;\n\n/**\n * Key → positional code map for the `support_topic` CVC domain.\n *\n * Domain: `support_topic` · Version: 1.0.0 · Entries: 11\n */\nexport const SupportTopicKeys = {\n missingness_root: \"959-000-000-000-000-000-000\",\n unknown: \"959-000-000-000-000-000-001\",\n anonymous: \"959-000-000-000-000-000-002\",\n data_not_collected: \"959-000-000-000-000-000-003\",\n how_to_use_platform: \"959-001-000-000-000-000-000\",\n something_broken: \"959-002-000-000-000-000-000\",\n data_record_issue: \"959-003-000-000-000-000-000\",\n account_access: \"959-004-000-000-000-000-000\",\n request_training: \"959-005-000-000-000-000-000\",\n feature_request: \"959-006-000-000-000-000-000\",\n other: \"959-007-000-000-000-000-000\",\n} as const;\n\nexport type SupportTopicKey = keyof typeof SupportTopicKeys;\n\n/**\n * Key → positional code map for the `thread_status` CVC domain.\n *\n * Domain: `thread_status` · Version: 1.0.0 · Entries: 7\n */\nexport const ThreadStatusKeys = {\n missingness_root: \"960-000-000-000-000-000-000\",\n unknown: \"960-000-000-000-000-000-001\",\n anonymous: \"960-000-000-000-000-000-002\",\n data_not_collected: \"960-000-000-000-000-000-003\",\n open: \"960-001-000-000-000-000-000\",\n resolved: \"960-002-000-000-000-000-000\",\n archived: \"960-003-000-000-000-000-000\",\n} as const;\n\nexport type ThreadStatusKey = keyof typeof ThreadStatusKeys;\n\n/**\n * Key → positional code map for the `thread_type` CVC domain.\n *\n * Domain: `thread_type` · Version: 1.0.0 · Entries: 9\n */\nexport const ThreadTypeKeys = {\n missingness_root: \"961-000-000-000-000-000-000\",\n unknown: \"961-000-000-000-000-000-001\",\n anonymous: \"961-000-000-000-000-000-002\",\n data_not_collected: \"961-000-000-000-000-000-003\",\n support: \"961-001-000-000-000-000-000\",\n community_partner: \"961-002-000-000-000-000-000\",\n working_group: \"961-003-000-000-000-000-000\",\n announcement: \"961-004-000-000-000-000-000\",\n investigative_request: \"961-005-000-000-000-000-000\",\n} as const;\n\nexport type ThreadTypeKey = keyof typeof ThreadTypeKeys;\n\n/**\n * Key → positional code map for the `living_situation` CVC domain.\n *\n * Domain: `living_situation` · Version: 1.0.0 · Entries: 22\n */\nexport const LivingSituationKeys = {\n missingness_root: \"192-000-000-000-000-000-000\",\n unknown: \"192-000-000-000-000-000-001\",\n anonymous: \"192-000-000-000-000-000-002\",\n data_not_collected: \"192-000-000-000-000-000-003\",\n unsheltered: \"192-001-000-000-000-000-000\",\n emergency_shelter: \"192-002-000-000-000-000-000\",\n safe_haven: \"192-003-000-000-000-000-000\",\n dv_shelter_safe_house: \"192-004-000-000-000-000-000\",\n homeless_unspecified: \"192-005-000-000-000-000-000\",\n hospital_medical: \"192-006-000-000-000-000-000\",\n psychiatric_residential_facility: \"192-007-000-000-000-000-000\",\n substance_use_treatment_residential: \"192-008-000-000-000-000-000\",\n incarcerated: \"192-009-000-000-000-000-000\",\n cw_foster_care: \"192-010-000-000-000-000-000\",\n cw_kinship: \"192-011-000-000-000-000-000\",\n long_term_care: \"192-012-000-000-000-000-000\",\n transitional_housing_program: \"192-013-000-000-000-000-000\",\n temp_housing_program: \"192-014-000-000-000-000-000\",\n hotel_motel_non_shelter: \"192-015-000-000-000-000-000\",\n own_rent: \"192-016-000-000-000-000-000\",\n with_family_friends: \"192-017-000-000-000-000-000\",\n other: \"192-018-000-000-000-000-000\",\n} as const;\n\nexport type LivingSituationKey = keyof typeof LivingSituationKeys;\n\n/**\n * Key → positional code map for the `service_audience` CVC domain.\n *\n * Domain: `service_audience` · Version: 1.0.0 · Entries: 9\n */\nexport const ServiceAudienceKeys = {\n missingness_root: \"045-000-000-000-000-000-000\",\n unknown: \"045-000-000-000-000-000-001\",\n anonymous: \"045-000-000-000-000-000-002\",\n data_not_collected: \"045-000-000-000-000-000-003\",\n primary_victim: \"045-001-000-000-000-000-000\",\n eligible_family_member: \"045-002-000-000-000-000-000\",\n third_party: \"045-003-000-000-000-000-000\",\n offender: \"045-004-000-000-000-000-000\",\n personnel: \"045-005-000-000-000-000-000\",\n} as const;\n\nexport type ServiceAudienceKey = keyof typeof ServiceAudienceKeys;\n\n/**\n * Key → positional code map for the `hmis_relationship_to_hoh` CVC domain.\n *\n * Domain: `hmis_relationship_to_hoh` · Version: 1.0.0 · Entries: 9\n */\nexport const HmisRelationshipToHohKeys = {\n missingness_root: \"129-000-000-000-000-000-000\",\n unknown: \"129-000-000-000-000-000-001\",\n anonymous: \"129-000-000-000-000-000-002\",\n data_not_collected: \"129-000-000-000-000-000-003\",\n self_hoh: \"129-001-000-000-000-000-000\",\n child_of_hoh: \"129-002-000-000-000-000-000\",\n spouse_or_partner_of_hoh: \"129-003-000-000-000-000-000\",\n other_relative_of_hoh: \"129-004-000-000-000-000-000\",\n non_relation_member: \"129-005-000-000-000-000-000\",\n} as const;\n\nexport type HmisRelationshipToHohKey = keyof typeof HmisRelationshipToHohKeys;\n\n/**\n * Key → positional code map for the `victim_abuse_types` CVC domain.\n *\n * Domain: `victim_abuse_types` · Version: 1.1.0 · Entries: 30\n */\nexport const VictimAbuseTypesKeys = {\n arson: \"073-003-000-000-000-000-000\",\n bullying: \"073-004-000-000-000-000-000\",\n burglary: \"073-005-000-000-000-000-000\",\n child_pornography: \"073-007-000-000-000-000-000\",\n domestic_family_violence: \"073-009-000-000-000-000-000\",\n dui_dwi_incident: \"073-010-000-000-000-000-000\",\n elder_abuse_or_neglect: \"073-011-000-000-000-000-000\",\n gang_violence: \"073-012-000-000-000-000-000\",\n hate_crime: \"073-013-000-000-000-000-000\",\n homicide: \"073-014-000-000-000-000-000\",\n identity_theft_fraud_financial_crime: \"073-015-000-000-000-000-000\",\n kidnapping_custodial: \"073-016-000-000-000-000-000\",\n kidnapping_noncustodial: \"073-017-000-000-000-000-000\",\n mass_violence: \"073-018-000-000-000-000-000\",\n other_voca_ovc: \"073-019-000-000-000-000-000\",\n other_vehicular_victimization: \"073-020-000-000-000-000-000\",\n robbery: \"073-021-000-000-000-000-000\",\n stalking_harassment: \"073-022-000-000-000-000-000\",\n survivor_of_homicide_victim: \"073-023-000-000-000-000-000\",\n teen_dating_victimization: \"073-024-000-000-000-000-000\",\n terrorism: \"073-025-000-000-000-000-000\",\n sexual_abuse_assault: \"073-026-000-000-000-000-000\",\n physical_abuse_or_neglect: \"073-027-000-000-000-000-000\",\n physical_assault: \"073-028-000-000-000-000-000\",\n commercial_sexual_exploitation_minor: \"073-029-000-000-000-000-000\",\n sexual_exploitation: \"073-030-000-000-000-000-000\",\n labor_exploitation: \"073-031-000-000-000-000-000\",\n female_genital_mutilation_cutting: \"073-032-000-000-000-000-000\",\n forced_marriage: \"073-033-000-000-000-000-000\",\n cyber_crimes: \"073-034-000-000-000-000-000\",\n} as const;\n\nexport type VictimAbuseTypesKey = keyof typeof VictimAbuseTypesKeys;\n\n/**\n * Key → positional code map for the `ht_type` CVC domain.\n *\n * Domain: `ht_type` · Version: 1.0.0 · Entries: 8\n */\nexport const HtTypeKeys = {\n missingness_root: \"072-000-000-000-000-000-000\",\n unknown: \"072-000-000-000-000-000-001\",\n anonymous: \"072-000-000-000-000-000-002\",\n data_not_collected: \"072-000-000-000-000-000-003\",\n sex: \"072-001-000-000-000-000-000\",\n labor: \"072-002-000-000-000-000-000\",\n sex_and_labor: \"072-003-000-000-000-000-000\",\n none: \"072-004-000-000-000-000-000\",\n} as const;\n\nexport type HtTypeKey = keyof typeof HtTypeKeys;\n\n/**\n * Key → positional code map for the `relationship_concern` CVC domain (PROVISIONAL CVC-991 — pending codebook ratification; renumbered from provisional 231 on CVC-231's ratification to the Determination Helper categories, 2026-08-28).\n *\n * Domain: `relationship_concern` · Version: 1.1.0 · Entries: 11\n */\nexport const RelationshipConcernKeys = {\n missingness_root: \"991-000-000-000-000-000-000\",\n unknown: \"991-000-000-000-000-000-001\",\n anonymous: \"991-000-000-000-000-000-002\",\n data_not_collected: \"991-000-000-000-000-000-003\",\n appears_controlling: \"991-001-000-000-000-000-000\",\n is_much_older: \"991-002-000-000-000-000-000\",\n physically_abusive: \"991-003-000-000-000-000-000\",\n emotionally_abusive: \"991-004-000-000-000-000-000\",\n has_legal_involvement: \"991-005-000-000-000-000-000\",\n is_known_trafficker_or_suspect: \"991-006-000-000-000-000-000\",\n other_concern: \"991-007-000-000-000-000-000\",\n} as const;\n\nexport type RelationshipConcernKey = keyof typeof RelationshipConcernKeys;\n\n/**\n * Key → positional code map for the `recency_band` CVC domain (PROVISIONAL CVC-232 — pending codebook ratification).\n *\n * Domain: `recency_band` · Version: 1.0.0 · Entries: 12\n */\nexport const RecencyBandKeys = {\n missingness_root: \"137-000-000-000-000-000-000\",\n unknown: \"137-000-000-000-000-000-001\",\n anonymous: \"137-000-000-000-000-000-002\",\n data_not_collected: \"137-000-000-000-000-000-003\",\n w3m: \"137-001-000-000-000-000-000\",\n m3_6: \"137-002-000-000-000-000-000\",\n m6_12: \"137-003-000-000-000-000-000\",\n y1p: \"137-004-000-000-000-000-000\",\n y1_3: \"137-005-000-000-000-000-000\",\n y3_10: \"137-006-000-000-000-000-000\",\n y10p: \"137-007-000-000-000-000-000\",\n ylt3: \"137-008-000-000-000-000-000\",\n} as const;\n\nexport type RecencyBandKey = keyof typeof RecencyBandKeys;\n\n/**\n * Key → positional code map for the `housing_subsidy_types` CVC domain (PROVISIONAL CVC-233 — pending codebook ratification).\n *\n * Domain: `housing_subsidy_types` · Version: 1.1.0 · Entries: 16\n */\nexport const HousingSubsidyTypesKeys = {\n missingness_root: \"194-000-000-000-000-000-000\",\n unknown: \"194-000-000-000-000-000-001\",\n anonymous: \"194-000-000-000-000-000-002\",\n data_not_collected: \"194-000-000-000-000-000-003\",\n housing_choice_voucher: \"194-001-000-000-000-000-000\",\n public_housing: \"194-002-000-000-000-000-000\",\n project_based_rental_assistance: \"194-003-000-000-000-000-000\",\n permanent_supportive_housing: \"194-004-000-000-000-000-000\",\n rapid_rehousing_assistance: \"194-005-000-000-000-000-000\",\n other_housing_subsidy: \"194-006-000-000-000-000-000\",\n no_subsidy: \"194-007-000-000-000-000-000\",\n va_supportive_housing: \"194-008-000-000-000-000-000\",\n grant_per_diem_transition_in_place: \"194-009-000-000-000-000-000\",\n housing_stability_voucher: \"194-010-000-000-000-000-000\",\n family_unification_program: \"194-011-000-000-000-000-000\",\n foster_youth_to_independence: \"194-012-000-000-000-000-000\",\n} as const;\n\nexport type HousingSubsidyTypesKey = keyof typeof HousingSubsidyTypesKeys;\n\n/**\n * Key → positional code map for the `assertion_domain` CVC domain (CAR assertion domain; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `assertion_domain` · Version: 2.0.0 · Entries: 70\n */\nexport const AssertionDomainKeys = {\n missingness_root: \"159-000-000-000-000-000-000\",\n unknown: \"159-000-000-000-000-000-001\",\n anonymous: \"159-000-000-000-000-000-002\",\n data_not_collected: \"159-000-000-000-000-000-003\",\n indicator: \"159-001-000-000-000-000-000\",\n risk_signal: \"159-002-000-000-000-000-000\",\n victim_status: \"159-003-000-000-000-000-000\",\n offender_status: \"159-004-000-000-000-000-000\",\n domain_determination: \"159-005-000-000-000-000-000\",\n victimization_or_abuse_type: \"159-006-000-000-000-000-000\",\n assessment_scale: \"159-007-000-000-000-000-000\",\n recommended_followup: \"159-008-000-000-000-000-000\",\n relationship: \"159-009-000-000-000-000-000\",\n household_relationships: \"159-010-000-000-000-000-000\",\n relationship_tie: \"159-011-000-000-000-000-000\",\n relationship_dynamics: \"159-012-000-000-000-000-000\",\n relationship_status_current: \"159-013-000-000-000-000-000\",\n marital_status_legal: \"159-014-000-000-000-000-000\",\n core_profile: \"159-015-000-000-000-000-000\",\n person_tile: \"159-016-000-000-000-000-000\",\n person_relationship: \"159-017-000-000-000-000-000\",\n relevant_people: \"159-018-000-000-000-000-000\",\n name: \"159-019-000-000-000-000-000\",\n contact_info: \"159-020-000-000-000-000-000\",\n address: \"159-021-000-000-000-000-000\",\n vehicle: \"159-022-000-000-000-000-000\",\n income_history: \"159-023-000-000-000-000-000\",\n physical_description: \"159-024-000-000-000-000-000\",\n living_situation: \"159-025-000-000-000-000-000\",\n pet: \"159-026-000-000-000-000-000\",\n protection_order: \"159-027-000-000-000-000-000\",\n log_entry: \"159-028-000-000-000-000-000\",\n session_note: \"159-029-000-000-000-000-000\",\n referral_source: \"159-030-000-000-000-000-000\",\n org_directory: \"159-031-000-000-000-000-000\",\n person_directory: \"159-032-000-000-000-000-000\",\n service_delivery: \"159-033-000-000-000-000-000\",\n needs_assessment: \"159-034-000-000-000-000-000\",\n priorities_and_safety: \"159-035-000-000-000-000-000\",\n share: \"159-036-000-000-000-000-000\",\n roi: \"159-037-000-000-000-000-000\",\n external_recipient: \"159-038-000-000-000-000-000\",\n access_accommodations: \"159-039-000-000-000-000-000\",\n danger_assessment: \"159-040-000-000-000-000-000\",\n hope_scale: \"159-041-000-000-000-000-000\",\n injury_and_strangulation: \"159-042-000-000-000-000-000\",\n lethality_assessment_program: \"159-043-000-000-000-000-000\",\n occupational_background: \"159-044-000-000-000-000-000\",\n program_enrollment: \"159-046-000-000-000-000-000\",\n program_enrollment_exit_wizard: \"159-047-000-000-000-000-000\",\n goal: \"159-048-000-000-000-000-000\",\n action_step: \"159-049-000-000-000-000-000\",\n milestone: \"159-050-000-000-000-000-000\",\n check_in: \"159-051-000-000-000-000-000\",\n goal_signature: \"159-052-000-000-000-000-000\",\n subject_functional_role: \"159-053-000-000-000-000-000\",\n worker_subrole: \"159-054-000-000-000-000-000\",\n offender_status_family: \"159-055-000-000-000-000-000\",\n assessment_rating: \"159-056-000-000-000-000-000\",\n immigration_legal_status: \"159-057-000-000-000-000-000\",\n persons_network: \"159-058-000-000-000-000-000\",\n lifecycle_services: \"159-059-000-000-000-000-000\",\n juvenile_justice_involvement: \"159-060-000-000-000-000-000\",\n child_welfare_involvement: \"159-061-000-000-000-000-000\",\n facilitator_role: \"159-062-000-000-000-000-000\",\n facilitator_subrole: \"159-063-000-000-000-000-000\",\n facilitator_entity_type: \"159-064-000-000-000-000-000\",\n child_profile: \"159-065-000-000-000-000-000\",\n signal_identification: \"159-066-000-000-000-000-000\",\n investigative_legal: \"159-067-000-000-000-000-000\",\n} as const;\n\nexport type AssertionDomainKey = keyof typeof AssertionDomainKeys;\n\n/**\n * Key → positional code map for the `activity_type` CVC domain (activity type; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `activity_type` · Version: 1.0.0 · Entries: 14\n */\nexport const ActivityTypeKeys = {\n missingness_root: \"965-000-000-000-000-000-000\",\n unknown: \"965-000-000-000-000-000-001\",\n anonymous: \"965-000-000-000-000-000-002\",\n data_not_collected: \"965-000-000-000-000-000-003\",\n resided: \"965-001-000-000-000-000-000\",\n sheltered: \"965-002-000-000-000-000-000\",\n service_delivered: \"965-003-000-000-000-000-000\",\n met: \"965-004-000-000-000-000-000\",\n advertised: \"965-005-000-000-000-000-000\",\n arrested: \"965-006-000-000-000-000-000\",\n visited: \"965-007-000-000-000-000-000\",\n child_welfare_visit: \"965-008-000-000-000-000-000\",\n incident: \"965-009-000-000-000-000-000\",\n other: \"965-010-000-000-000-000-000\",\n} as const;\n\nexport type ActivityTypeKey = keyof typeof ActivityTypeKeys;\n\n/**\n * Key → positional code map for the `provenance_source_id` CVC domain (provenance source id; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `provenance_source_id` · Version: 1.0.0 · Entries: 13\n */\nexport const ProvenanceSourceIdKeys = {\n missingness_root: \"966-000-000-000-000-000-000\",\n unknown: \"966-000-000-000-000-000-001\",\n anonymous: \"966-000-000-000-000-000-002\",\n data_not_collected: \"966-000-000-000-000-000-003\",\n client_self_report: \"966-001-000-000-000-000-000\",\n system_derived_ads: \"966-002-000-000-000-000-000\",\n system_derived_geocoder: \"966-003-000-000-000-000-000\",\n staff_observation: \"966-004-000-000-000-000-000\",\n intake_form: \"966-005-000-000-000-000-000\",\n referral_partner: \"966-006-000-000-000-000-000\",\n law_enforcement: \"966-007-000-000-000-000-000\",\n id_document: \"966-008-000-000-000-000-000\",\n social_profile: \"966-009-000-000-000-000-000\",\n} as const;\n\nexport type ProvenanceSourceIdKey = keyof typeof ProvenanceSourceIdKeys;\n\n/**\n * Key → positional code map for the `radius_bucket` CVC domain (search radius bucket; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `radius_bucket` · Version: 1.0.0 · Entries: 9\n */\nexport const RadiusBucketKeys = {\n missingness_root: \"967-000-000-000-000-000-000\",\n unknown: \"967-000-000-000-000-000-001\",\n anonymous: \"967-000-000-000-000-000-002\",\n data_not_collected: \"967-000-000-000-000-000-003\",\n mi_10: \"967-001-000-000-000-000-000\",\n mi_50: \"967-002-000-000-000-000-000\",\n mi_100: \"967-003-000-000-000-000-000\",\n mi_250: \"967-004-000-000-000-000-000\",\n mi_500: \"967-005-000-000-000-000-000\",\n} as const;\n\nexport type RadiusBucketKey = keyof typeof RadiusBucketKeys;\n\n/**\n * Key → positional code map for the `contact_link_type` CVC domain (contact link type; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `contact_link_type` · Version: 1.0.0 · Entries: 8\n */\nexport const ContactLinkTypeKeys = {\n missingness_root: \"968-000-000-000-000-000-000\",\n unknown: \"968-000-000-000-000-000-001\",\n anonymous: \"968-000-000-000-000-000-002\",\n data_not_collected: \"968-000-000-000-000-000-003\",\n belongs: \"968-001-000-000-000-000-000\",\n associated: \"968-002-000-000-000-000-000\",\n advertises: \"968-003-000-000-000-000-000\",\n contacted: \"968-004-000-000-000-000-000\",\n} as const;\n\nexport type ContactLinkTypeKey = keyof typeof ContactLinkTypeKeys;\n\n/**\n * Key → positional code map for the `suggestion_source` CVC domain (goal suggestion source; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `suggestion_source` · Version: 1.0.0 · Entries: 6\n */\nexport const SuggestionSourceKeys = {\n missingness_root: \"969-000-000-000-000-000-000\",\n unknown: \"969-000-000-000-000-000-001\",\n anonymous: \"969-000-000-000-000-000-002\",\n data_not_collected: \"969-000-000-000-000-000-003\",\n lap: \"969-001-000-000-000-000-000\",\n ps_step_4: \"969-002-000-000-000-000-000\",\n} as const;\n\nexport type SuggestionSourceKey = keyof typeof SuggestionSourceKeys;\n\n/**\n * Key → positional code map for the `roi_method` CVC domain (ROI delivery method; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `roi_method` · Version: 1.0.0 · Entries: 10\n */\nexport const RoiMethodKeys = {\n missingness_root: \"970-000-000-000-000-000-000\",\n unknown: \"970-000-000-000-000-000-001\",\n anonymous: \"970-000-000-000-000-000-002\",\n data_not_collected: \"970-000-000-000-000-000-003\",\n thread_caseshare: \"970-001-000-000-000-000-000\",\n thread_magic_link: \"970-002-000-000-000-000-000\",\n email: \"970-003-000-000-000-000-000\",\n fax: \"970-004-000-000-000-000-000\",\n secure_portal: \"970-005-000-000-000-000-000\",\n in_person: \"970-006-000-000-000-000-000\",\n} as const;\n\nexport type RoiMethodKey = keyof typeof RoiMethodKeys;\n\n/**\n * Key → positional code map for the `session_note_visibility` CVC domain (session-note visibility; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `session_note_visibility` · Version: 1.0.0 · Entries: 7\n */\nexport const SessionNoteVisibilityKeys = {\n missingness_root: \"971-000-000-000-000-000-000\",\n unknown: \"971-000-000-000-000-000-001\",\n anonymous: \"971-000-000-000-000-000-002\",\n data_not_collected: \"971-000-000-000-000-000-003\",\n default: \"971-001-000-000-000-000-000\",\n account: \"971-002-000-000-000-000-000\",\n private: \"971-003-000-000-000-000-000\",\n} as const;\n\nexport type SessionNoteVisibilityKey = keyof typeof SessionNoteVisibilityKeys;\n\n/**\n * Key → positional code map for the `special_needs_disabilities` CVC domain (DRAFT-TEMPORARY direct import from prototype, pending Notion ratification).\n *\n * Domain: `special_needs_disabilities` · Version: 1.0.0 · Entries: 14\n */\nexport const SpecialNeedsDisabilitiesKeys = {\n missingness_root: \"972-000-000-000-000-000-000\",\n unknown: \"972-000-000-000-000-000-001\",\n anonymous: \"972-000-000-000-000-000-002\",\n data_not_collected: \"972-000-000-000-000-000-003\",\n mental_illness: \"972-001-000-000-000-000-000\",\n cognitive_developmental: \"972-002-000-000-000-000-000\",\n physical_disability: \"972-003-000-000-000-000-000\",\n deaf_hard_of_hearing: \"972-004-000-000-000-000-000\",\n chronic_health_condition: \"972-005-000-000-000-000-000\",\n hiv_aids: \"972-006-000-000-000-000-000\",\n alcohol_abuse: \"972-007-000-000-000-000-000\",\n drug_use_abuse: \"972-008-000-000-000-000-000\",\n unknown_but_exists: \"972-009-000-000-000-000-000\",\n other: \"972-010-000-000-000-000-000\",\n} as const;\n\nexport type SpecialNeedsDisabilitiesKey = keyof typeof SpecialNeedsDisabilitiesKeys;\n\n/**\n * Key → positional code map for the `hiv_status` CVC domain (DRAFT-TEMPORARY direct import from prototype, pending Notion ratification).\n *\n * Domain: `hiv_status` · Version: 1.0.0 · Entries: 6\n */\nexport const HivStatusKeys = {\n missingness_root: \"973-000-000-000-000-000-000\",\n unknown: \"973-000-000-000-000-000-001\",\n anonymous: \"973-000-000-000-000-000-002\",\n data_not_collected: \"973-000-000-000-000-000-003\",\n yes: \"973-001-000-000-000-000-000\",\n no: \"973-002-000-000-000-000-000\",\n} as const;\n\nexport type HivStatusKey = keyof typeof HivStatusKeys;\n\n/**\n * Key → positional code map for the `mental_health_status` CVC domain (DRAFT-TEMPORARY direct import from prototype, pending Notion ratification).\n *\n * Domain: `mental_health_status` · Version: 1.0.0 · Entries: 6\n */\nexport const MentalHealthStatusKeys = {\n missingness_root: \"974-000-000-000-000-000-000\",\n unknown: \"974-000-000-000-000-000-001\",\n anonymous: \"974-000-000-000-000-000-002\",\n data_not_collected: \"974-000-000-000-000-000-003\",\n yes: \"974-001-000-000-000-000-000\",\n no: \"974-002-000-000-000-000-000\",\n} as const;\n\nexport type MentalHealthStatusKey = keyof typeof MentalHealthStatusKeys;\n\n/**\n * Key → positional code map for the `child_change_type` CVC domain (DRAFT-TEMPORARY direct import from prototype, pending Notion ratification).\n *\n * Domain: `child_change_type` · Version: 1.0.0 · Entries: 15\n */\nexport const ChildChangeTypeKeys = {\n missingness_root: \"976-000-000-000-000-000-000\",\n unknown: \"976-000-000-000-000-000-001\",\n anonymous: \"976-000-000-000-000-000-002\",\n data_not_collected: \"976-000-000-000-000-000-003\",\n child_added: \"976-001-000-000-000-000-000\",\n child_updated: \"976-002-000-000-000-000-000\",\n child_archived: \"976-003-000-000-000-000-000\",\n child_restored: \"976-004-000-000-000-000-000\",\n child_education_updated: \"976-005-000-000-000-000-000\",\n child_health_updated: \"976-006-000-000-000-000-000\",\n child_custody_updated: \"976-007-000-000-000-000-000\",\n child_parental_rights_updated: \"976-008-000-000-000-000-000\",\n child_behavioral_concerns_updated: \"976-009-000-000-000-000-000\",\n child_household_linked: \"976-010-000-000-000-000-000\",\n child_household_unlinked: \"976-011-000-000-000-000-000\",\n} as const;\n\nexport type ChildChangeTypeKey = keyof typeof ChildChangeTypeKeys;\n\n/**\n * Key → positional code map for the `immigration_legal_status_change_type` CVC domain (DRAFT-TEMPORARY direct import from prototype, pending Notion ratification).\n *\n * Domain: `immigration_legal_status_change_type` · Version: 1.0.0 · Entries: 14\n */\nexport const ImmigrationLegalStatusChangeTypeKeys = {\n missingness_root: \"977-000-000-000-000-000-000\",\n unknown: \"977-000-000-000-000-000-001\",\n anonymous: \"977-000-000-000-000-000-002\",\n data_not_collected: \"977-000-000-000-000-000-003\",\n immigration_legal_status_section_declined: \"977-001-000-000-000-000-000\",\n immigration_legal_status_section_recaptured: \"977-002-000-000-000-000-000\",\n immigration_visa_captured: \"977-003-000-000-000-000-000\",\n immigration_visa_updated: \"977-004-000-000-000-000-000\",\n identification_status_captured: \"977-005-000-000-000-000-000\",\n identification_status_updated: \"977-006-000-000-000-000-000\",\n le_report_status_captured: \"977-007-000-000-000-000-000\",\n le_report_status_updated: \"977-008-000-000-000-000-000\",\n trafficking_screening_captured: \"977-009-000-000-000-000-000\",\n trafficking_screening_updated: \"977-010-000-000-000-000-000\",\n} as const;\n\nexport type ImmigrationLegalStatusChangeTypeKey = keyof typeof ImmigrationLegalStatusChangeTypeKeys;\n\n/**\n * Key → positional code map for the `program_enrollment_change_type` CVC domain (DRAFT-TEMPORARY direct import from prototype, pending Notion ratification).\n *\n * Domain: `program_enrollment_change_type` · Version: 1.0.0 · Entries: 13\n */\nexport const ProgramEnrollmentChangeTypeKeys = {\n missingness_root: \"978-000-000-000-000-000-000\",\n unknown: \"978-000-000-000-000-000-001\",\n anonymous: \"978-000-000-000-000-000-002\",\n data_not_collected: \"978-000-000-000-000-000-003\",\n program_enrollment_drafted: \"978-001-000-000-000-000-000\",\n program_enrollment_submitted: \"978-002-000-000-000-000-000\",\n program_enrollment_approved: \"978-003-000-000-000-000-000\",\n program_enrollment_activated: \"978-004-000-000-000-000-000\",\n program_enrollment_denied: \"978-005-000-000-000-000-000\",\n program_enrollment_closed: \"978-006-000-000-000-000-000\",\n program_enrollment_expired: \"978-007-000-000-000-000-000\",\n program_enrollment_restored: \"978-008-000-000-000-000-000\",\n program_prior_history_captured: \"978-009-000-000-000-000-000\",\n} as const;\n\nexport type ProgramEnrollmentChangeTypeKey = keyof typeof ProgramEnrollmentChangeTypeKeys;\n\n/**\n * Key → positional code map for the `romantic_relationship_change_type` CVC domain (DRAFT-TEMPORARY direct import from prototype, pending Notion ratification).\n *\n * Domain: `romantic_relationship_change_type` · Version: 1.0.0 · Entries: 16\n */\nexport const RomanticRelationshipChangeTypeKeys = {\n missingness_root: \"979-000-000-000-000-000-000\",\n unknown: \"979-000-000-000-000-000-001\",\n anonymous: \"979-000-000-000-000-000-002\",\n data_not_collected: \"979-000-000-000-000-000-003\",\n romantic_partner_added: \"979-001-000-000-000-000-000\",\n romantic_partner_updated: \"979-002-000-000-000-000-000\",\n romantic_partner_archived: \"979-003-000-000-000-000-000\",\n romantic_partner_restored: \"979-004-000-000-000-000-000\",\n romantic_partner_ties_changed: \"979-005-000-000-000-000-000\",\n romantic_partner_dynamics_changed: \"979-006-000-000-000-000-000\",\n marital_status_set: \"979-007-000-000-000-000-000\",\n marital_status_changed: \"979-008-000-000-000-000-000\",\n marital_status_declined: \"979-009-000-000-000-000-000\",\n relationship_status_set: \"979-010-000-000-000-000-000\",\n relationship_status_changed: \"979-011-000-000-000-000-000\",\n relationship_status_declined: \"979-012-000-000-000-000-000\",\n} as const;\n\nexport type RomanticRelationshipChangeTypeKey = keyof typeof RomanticRelationshipChangeTypeKeys;\n\n/**\n * Key → positional code map for the `risk_category` CVC domain (DRAFT-TEMPORARY; names sourced from @hti/scoring weights/risk.weights.json, the declared risk-taxonomy SOT. Keys `cat_i`..`cat_ix` mirror PAVE's live `TraCategoryId` union, so this doubles as the canonical crosswalk. Weights/aggregation stay in @hti/scoring).\n *\n * Domain: `risk_category` · Version: 1.0.0 · Entries: 13\n */\nexport const RiskCategoryKeys = {\n missingness_root: \"980-000-000-000-000-000-000\",\n unknown: \"980-000-000-000-000-000-001\",\n anonymous: \"980-000-000-000-000-000-002\",\n data_not_collected: \"980-000-000-000-000-000-003\",\n cat_i: \"980-001-000-000-000-000-000\",\n cat_ii: \"980-002-000-000-000-000-000\",\n cat_iii: \"980-003-000-000-000-000-000\",\n cat_iv: \"980-004-000-000-000-000-000\",\n cat_v: \"980-005-000-000-000-000-000\",\n cat_vi: \"980-006-000-000-000-000-000\",\n cat_vii: \"980-007-000-000-000-000-000\",\n cat_viii: \"980-008-000-000-000-000-000\",\n cat_ix: \"980-009-000-000-000-000-000\",\n} as const;\n\nexport type RiskCategoryKey = keyof typeof RiskCategoryKeys;\n\n/**\n * Key → positional code map for the `core_functions` CVC domain (CANONICAL Notion CVC-133 `core - functions`, Active v2.0 — the Canonical Authorization Model function registry; SOT v1.3.0 is GENERATED from the prototype repo's data/cvcs/core_functions.yaml by scripts/gen-core-functions.py: 113 functions — the 78 published by 1.0.0/1.1.0 at their codes plus 35 appended at 133-079 … 133-113 — the roles → functions → gates/tiers graph is built over. NOT provisional numbering. Each entry carries canon's `v1` / `retired` flags as structured booleans (since 1.3.0, read by the shared authorization resolver); Platform Relevance, user/admin relevance and Category ride the definition suffix; bounds are not carried).\n *\n * Domain: `core_functions` · Version: 1.3.0 · Entries: 117\n */\nexport const CoreFunctionsKeys = {\n missingness_root: \"133-000-000-000-000-000-000\",\n unknown: \"133-000-000-000-000-000-001\",\n anonymous: \"133-000-000-000-000-000-002\",\n data_not_collected: \"133-000-000-000-000-000-003\",\n account_suspend: \"133-001-000-000-000-000-000\",\n aggregate_data_query_generate: \"133-002-000-000-000-000-000\",\n api_key_manage: \"133-003-000-000-000-000-000\",\n assessments_conduct: \"133-004-000-000-000-000-000\",\n audit_anomaly_review: \"133-005-000-000-000-000-000\",\n audit_log_view_member: \"133-006-000-000-000-000-000\",\n audit_log_view_team: \"133-007-000-000-000-000-000\",\n auth_model_manage_platform: \"133-008-000-000-000-000-000\",\n break_glass: \"133-009-000-000-000-000-000\",\n case_assign_reassign: \"133-010-000-000-000-000-000\",\n case_claim: \"133-011-000-000-000-000-000\",\n case_collaborator_add: \"133-012-000-000-000-000-000\",\n case_edit: \"133-013-000-000-000-000-000\",\n case_needs_action_flag_manage: \"133-014-000-000-000-000-000\",\n case_outcomes_edit: \"133-015-000-000-000-000-000\",\n case_purge: \"133-016-000-000-000-000-000\",\n case_reopen: \"133-017-000-000-000-000-000\",\n case_side_panel_use: \"133-018-000-000-000-000-000\",\n case_transfer_bulk: \"133-019-000-000-000-000-000\",\n case_view: \"133-020-000-000-000-000-000\",\n ci_periodic_review: \"133-021-000-000-000-000-000\",\n ci_record_purge_or_retire: \"133-022-000-000-000-000-000\",\n ci_record_validate: \"133-023-000-000-000-000-000\",\n ci_to_evidence_export_authorize: \"133-024-000-000-000-000-000\",\n dashboard_approve_shared: \"133-025-000-000-000-000-000\",\n data_qa_workflow_run: \"133-026-000-000-000-000-000\",\n deconfliction_alert_acknowledge: \"133-027-000-000-000-000-000\",\n determination_perform: \"133-028-000-000-000-000-000\",\n disclose_external: \"133-029-000-000-000-000-000\",\n disclose_external_request: \"133-030-000-000-000-000-000\",\n export_deidentified: \"133-031-000-000-000-000-000\",\n export_disclosure_log_review: \"133-032-000-000-000-000-000\",\n export_template_config_manage: \"133-033-000-000-000-000-000\",\n gov_data_quality_review: \"133-034-000-000-000-000-000\",\n idb_record_create: \"133-035-000-000-000-000-000\",\n incident_response_remediate: \"133-036-000-000-000-000-000\",\n investigation_create_claim: \"133-037-000-000-000-000-000\",\n investigative_database_search: \"133-038-000-000-000-000-000\",\n lead_create: \"133-039-000-000-000-000-000\",\n lead_publish: \"133-040-000-000-000-000-000\",\n magic_link_share_send: \"133-041-000-000-000-000-000\",\n member_account_report_generate: \"133-042-000-000-000-000-000\",\n member_onboarding_support: \"133-043-000-000-000-000-000\",\n open_source_search: \"133-044-000-000-000-000-000\",\n outbound_share_followup_review: \"133-045-000-000-000-000-000\",\n person_association_update: \"133-046-000-000-000-000-000\",\n platform_perm_modify: \"133-047-000-000-000-000-000\",\n platform_policy_enforcement_manage: \"133-048-000-000-000-000-000\",\n record_print: \"133-049-000-000-000-000-000\",\n referral_receive_external: \"133-050-000-000-000-000-000\",\n referral_receive_internal: \"133-051-000-000-000-000-000\",\n referral_send_external: \"133-052-000-000-000-000-000\",\n referral_send_internal: \"133-053-000-000-000-000-000\",\n reporting_dashboard_config_manage: \"133-054-000-000-000-000-000\",\n retention_compliance_review: \"133-055-000-000-000-000-000\",\n roi_submit_manage: \"133-056-000-000-000-000-000\",\n role_assign: \"133-057-000-000-000-000-000\",\n roles_accounts_toggle: \"133-058-000-000-000-000-000\",\n sandbox_environment_manage: \"133-059-000-000-000-000-000\",\n screening_conduct: \"133-060-000-000-000-000-000\",\n screening_view: \"133-061-000-000-000-000-000\",\n security_restrict_apply: \"133-062-000-000-000-000-000\",\n session_create: \"133-063-000-000-000-000-000\",\n share_approve: \"133-064-000-000-000-000-000\",\n share_config: \"133-065-000-000-000-000-000\",\n share_rule_approve_cross_agency: \"133-066-000-000-000-000-000\",\n share_vsp_to_le: \"133-067-000-000-000-000-000\",\n support_ticket_triage: \"133-068-000-000-000-000-000\",\n system_diagnostics_view: \"133-069-000-000-000-000-000\",\n team_config_manage: \"133-070-000-000-000-000-000\",\n team_membership_manage: \"133-071-000-000-000-000-000\",\n team_workflow_config_manage: \"133-072-000-000-000-000-000\",\n thread_share_accept: \"133-073-000-000-000-000-000\",\n thread_share_send: \"133-074-000-000-000-000-000\",\n training_content_upload: \"133-075-000-000-000-000-000\",\n training_gate_manage: \"133-076-000-000-000-000-000\",\n usr_manage: \"133-077-000-000-000-000-000\",\n note_open_departed_author: \"133-078-000-000-000-000-000\",\n agency_info_manage: \"133-079-000-000-000-000-000\",\n srl_manage: \"133-080-000-000-000-000-000\",\n mandatory_report_send: \"133-081-000-000-000-000-000\",\n indicator_manual_add: \"133-082-000-000-000-000-000\",\n message_send: \"133-083-000-000-000-000-000\",\n workgroup_manage: \"133-084-000-000-000-000-000\",\n message_moderate: \"133-085-000-000-000-000-000\",\n announcement_publish: \"133-086-000-000-000-000-000\",\n supervisee_thread_view: \"133-087-000-000-000-000-000\",\n case_status_manage: \"133-088-000-000-000-000-000\",\n enrollment_manage: \"133-089-000-000-000-000-000\",\n exit_discharge_conduct: \"133-090-000-000-000-000-000\",\n goals_plan_manage: \"133-091-000-000-000-000-000\",\n lead_triage_manage: \"133-092-000-000-000-000-000\",\n milestone_log: \"133-093-000-000-000-000-000\",\n needs_priorities_conduct: \"133-094-000-000-000-000-000\",\n profile_domain_edit: \"133-095-000-000-000-000-000\",\n record_activity_view: \"133-096-000-000-000-000-000\",\n service_log_manage: \"133-097-000-000-000-000-000\",\n case_close: \"133-098-000-000-000-000-000\",\n case_visibility_manage: \"133-099-000-000-000-000-000\",\n person_merge_manage: \"133-100-000-000-000-000-000\",\n investigation_session_run: \"133-101-000-000-000-000-000\",\n lead_route_assign: \"133-102-000-000-000-000-000\",\n onboarding_config_sign_off: \"133-103-000-000-000-000-000\",\n hmis_export_generate: \"133-104-000-000-000-000-000\",\n team_share_narrowing: \"133-105-000-000-000-000-000\",\n viewing_config_manage: \"133-106-000-000-000-000-000\",\n network_corpus_access: \"133-107-000-000-000-000-000\",\n viewing_level_1_search: \"133-108-000-000-000-000-000\",\n viewing_level_2_autocomplete: \"133-109-000-000-000-000-000\",\n viewing_level_3_components: \"133-110-000-000-000-000-000\",\n investigative_request_send: \"133-111-000-000-000-000-000\",\n deconfliction_unmask: \"133-112-000-000-000-000-000\",\n share_revoke: \"133-113-000-000-000-000-000\",\n} as const;\n\nexport type CoreFunctionsKey = keyof typeof CoreFunctionsKeys;\n\n/**\n * Key → positional code map for the `needs_assessment_change_type` CVC domain (DRAFT-TEMPORARY; the 9 fine-grained per-mutation Needs-Assessment CAR change types, sourced from PAVE `@pave/domain` NEEDS_ASSESSMENT_CHANGE_TYPES. CASING NORMALIZED: PAVE stores SCREAMING_SNAKE, CVC keys are lower_snake. DISTINCT from the coarse 3-verb section-boundary registry NEEDS_ASSESSMENT_VERB_REGISTRY).\n *\n * Domain: `needs_assessment_change_type` · Version: 1.0.0 · Entries: 13\n */\nexport const NeedsAssessmentChangeTypeKeys = {\n missingness_root: \"982-000-000-000-000-000-000\",\n unknown: \"982-000-000-000-000-000-001\",\n anonymous: \"982-000-000-000-000-000-002\",\n data_not_collected: \"982-000-000-000-000-000-003\",\n answer_recorded: \"982-001-000-000-000-000-000\",\n answer_changed: \"982-002-000-000-000-000-000\",\n answer_cleared: \"982-003-000-000-000-000-000\",\n section_declined: \"982-004-000-000-000-000-000\",\n section_undeclined: \"982-005-000-000-000-000-000\",\n section_submitted: \"982-006-000-000-000-000-000\",\n assessment_submitted: \"982-007-000-000-000-000-000\",\n service_instance_generated: \"982-008-000-000-000-000-000\",\n service_instance_linked: \"982-009-000-000-000-000-000\",\n} as const;\n\nexport type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;\n\n/**\n * Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236 v4 tree, SOT v2.1.0: 115 live rows + 27 RETIRED tombstones. Canon depth 0–3 — top layer (System metadata · Narrative notes · Primary client · Other named persons), then client category / person type, then sub-category / a person type's category, then instrument row / a person type's sub-category — read off parentCode / parentKey, NOT the code: every v1.1.0 code is unchanged and new rows append. A canon `.` is `__` in the key (`offenders__identifying`; canon spelling on `canonicalCode`). Every LIVE row but the 28 instrument rows and `identifying__other` is selectable (select-all at any level); detect a category by `rowType`, not `selectable`. Tombstones keep their codes so a stored value resolves, are `selectable: false` + `retired: true`, and name their SELECTION reading in `successors` (a restriction resolves via the `subtract` lines: `restrictionSuccessors`); the envelope `migrations` block is the v3 → v4 from-to table, applied at READ time (a v2-era or unstamped list goes through canon's v2 → v3 table first; `widens: true` marks readings wider than v3; on those lines `releaseReading` says whether a signed release or share keeps the code's v3 grain (`retain`: the tombstone's `v3Fields`, read-only) or reads its successor, and `policyReading: successor` that a policy or preset takes the successor with a dated version row). Distinct from the sibling `roi_scope` domain, the LEGACY flat item vocabulary: every one of its 27 substantive keys is an entry here, spelled identically)\n *\n * Domain: `core_information_scope` · Version: 2.1.0 · Entries: 146\n */\nexport const CoreInformationScopeKeys = {\n missingness_root: \"236-000-000-000-000-000-000\",\n unknown: \"236-000-000-000-000-000-001\",\n anonymous: \"236-000-000-000-000-000-002\",\n data_not_collected: \"236-000-000-000-000-000-003\",\n identifying: \"236-001-000-000-000-000-000\",\n names: \"236-001-001-000-000-000-000\",\n dob: \"236-001-002-000-000-000-000\",\n addresses: \"236-001-003-000-000-000-000\",\n additional_ids: \"236-001-004-000-000-000-000\",\n demographics: \"236-001-005-000-000-000-000\",\n identifying__other: \"236-001-006-000-000-000-000\",\n risk: \"236-002-000-000-000-000-000\",\n screen_indicators: \"236-002-001-000-000-000-000\",\n victimization: \"236-002-002-000-000-000-000\",\n ida_full: \"236-002-003-000-000-000-000\",\n ida_consid: \"236-002-004-000-000-000-000\",\n initial_screen: \"236-002-005-000-000-000-000\",\n tra: \"236-002-006-000-000-000-000\",\n lap: \"236-002-007-000-000-000-000\",\n danger_assessment: \"236-002-008-000-000-000-000\",\n injury_and_strangulation: \"236-002-009-000-000-000-000\",\n stalking_assessment: \"236-002-010-000-000-000-000\",\n ae_intake: \"236-002-011-000-000-000-000\",\n hope_scale: \"236-002-012-000-000-000-000\",\n assessment_records: \"236-002-013-000-000-000-000\",\n determinations: \"236-002-014-000-000-000-000\",\n offender_facilitator: \"236-002-015-000-000-000-000\",\n system_involvement: \"236-002-016-000-000-000-000\",\n derived_risk_signals: \"236-002-017-000-000-000-000\",\n contact: \"236-003-000-000-000-000-000\",\n contact_info: \"236-003-001-000-000-000-000\",\n safe_locations: \"236-003-002-000-000-000-000\",\n priorities_safety: \"236-003-003-000-000-000-000\",\n encounter_location: \"236-003-004-000-000-000-000\",\n services: \"236-004-000-000-000-000-000\",\n contact_history: \"236-004-001-000-000-000-000\",\n service_history: \"236-004-002-000-000-000-000\",\n plans_goals: \"236-004-003-000-000-000-000\",\n notes: \"236-005-000-000-000-000-000\",\n screen_notes: \"236-005-001-000-000-000-000\",\n case_notes: \"236-005-002-000-000-000-000\",\n background: \"236-005-003-000-000-000-000\",\n session_summary: \"236-005-004-000-000-000-000\",\n health_accommodation: \"236-006-000-000-000-000-000\",\n accommodation_needs: \"236-006-001-000-000-000-000\",\n disability_subtypes: \"236-006-002-000-000-000-000\",\n mental_health_status: \"236-006-003-000-000-000-000\",\n substance_use_status: \"236-006-004-000-000-000-000\",\n chronic_health_status: \"236-006-005-000-000-000-000\",\n hiv_status: \"236-006-006-000-000-000-000\",\n mental_health_screen: \"236-006-007-000-000-000-000\",\n trauma_and_coping_screen: \"236-006-008-000-000-000-000\",\n behavioral_health_intake: \"236-006-009-000-000-000-000\",\n health_status: \"236-006-010-000-000-000-000\",\n immigration_legal_status: \"236-007-000-000-000-000-000\",\n immigration_status: \"236-007-001-000-000-000-000\",\n uscis_alien_number: \"236-007-002-000-000-000-000\",\n federal_protection_applications: \"236-007-003-000-000-000-000\",\n tvap_enrollment: \"236-007-004-000-000-000-000\",\n le_report_status: \"236-007-005-000-000-000-000\",\n immigration_applications: \"236-007-006-000-000-000-000\",\n system: \"236-008-000-000-000-000-000\",\n system_info: \"236-008-001-000-000-000-000\",\n network_associations: \"236-009-000-000-000-000-000\",\n network_membership: \"236-009-001-000-000-000-000\",\n persona_links: \"236-009-002-000-000-000-000\",\n commercial_activity: \"236-010-000-000-000-000-000\",\n ad_content: \"236-010-001-000-000-000-000\",\n commercial_patterns: \"236-010-002-000-000-000-000\",\n investigative_work_product: \"236-011-000-000-000-000-000\",\n case_determinations: \"236-011-001-000-000-000-000\",\n case_lifecycle: \"236-011-002-000-000-000-000\",\n case_attachments: \"236-011-003-000-000-000-000\",\n object_identifiers: \"236-012-000-000-000-000-000\",\n phone_identifiers: \"236-012-001-000-000-000-000\",\n object_identity_attributes: \"236-012-002-000-000-000-000\",\n instruments: \"236-013-000-000-000-000-000\",\n instrument_summary: \"236-013-001-000-000-000-000\",\n summary_initial_screen: \"236-013-001-001-000-000-000\",\n summary_mental_health_screen: \"236-013-001-002-000-000-000\",\n summary_behavioral_health_intake: \"236-013-001-003-000-000-000\",\n summary_trauma_and_coping_screen: \"236-013-001-004-000-000-000\",\n summary_ae_intake: \"236-013-001-005-000-000-000\",\n summary_ida: \"236-013-001-006-000-000-000\",\n summary_lap: \"236-013-001-007-000-000-000\",\n summary_danger_assessment: \"236-013-001-008-000-000-000\",\n summary_stalking_assessment: \"236-013-001-009-000-000-000\",\n summary_injury_and_strangulation: \"236-013-001-010-000-000-000\",\n summary_hope_scale: \"236-013-001-011-000-000-000\",\n summary_needs_assessment: \"236-013-001-012-000-000-000\",\n summary_tra: \"236-013-001-013-000-000-000\",\n summary_findings: \"236-013-001-014-000-000-000\",\n instrument_full: \"236-013-002-000-000-000-000\",\n full_initial_screen: \"236-013-002-001-000-000-000\",\n full_mental_health_screen: \"236-013-002-002-000-000-000\",\n full_behavioral_health_intake: \"236-013-002-003-000-000-000\",\n full_trauma_and_coping_screen: \"236-013-002-004-000-000-000\",\n full_ae_intake: \"236-013-002-005-000-000-000\",\n full_ida: \"236-013-002-006-000-000-000\",\n full_lap: \"236-013-002-007-000-000-000\",\n full_danger_assessment: \"236-013-002-008-000-000-000\",\n full_stalking_assessment: \"236-013-002-009-000-000-000\",\n full_injury_and_strangulation: \"236-013-002-010-000-000-000\",\n full_hope_scale: \"236-013-002-011-000-000-000\",\n full_needs_assessment: \"236-013-002-012-000-000-000\",\n full_tra: \"236-013-002-013-000-000-000\",\n full_findings: \"236-013-002-014-000-000-000\",\n relationships_household: \"236-014-000-000-000-000-000\",\n primary_client: \"236-015-000-000-000-000-000\",\n other_named_persons: \"236-016-000-000-000-000-000\",\n offenders: \"236-016-001-000-000-000-000\",\n offenders__identifying: \"236-016-001-001-000-000-000\",\n offenders__risk: \"236-016-001-002-000-000-000\",\n offenders__contact: \"236-016-001-003-000-000-000\",\n offenders__safe_locations: \"236-016-001-003-002-000-000\",\n offenders__services: \"236-016-001-004-000-000-000\",\n offenders__health_accommodation: \"236-016-001-006-000-000-000\",\n offenders__immigration_legal_status: \"236-016-001-007-000-000-000\",\n offenders__instruments: \"236-016-001-013-000-000-000\",\n offenders__instrument_summary: \"236-016-001-013-001-000-000\",\n offenders__instrument_full: \"236-016-001-013-002-000-000\",\n offenders__relationships_household: \"236-016-001-014-000-000-000\",\n family: \"236-016-002-000-000-000-000\",\n family__identifying: \"236-016-002-001-000-000-000\",\n family__risk: \"236-016-002-002-000-000-000\",\n family__contact: \"236-016-002-003-000-000-000\",\n family__safe_locations: \"236-016-002-003-002-000-000\",\n family__services: \"236-016-002-004-000-000-000\",\n family__health_accommodation: \"236-016-002-006-000-000-000\",\n family__immigration_legal_status: \"236-016-002-007-000-000-000\",\n family__instruments: \"236-016-002-013-000-000-000\",\n family__instrument_summary: \"236-016-002-013-001-000-000\",\n family__instrument_full: \"236-016-002-013-002-000-000\",\n family__relationships_household: \"236-016-002-014-000-000-000\",\n others: \"236-016-003-000-000-000-000\",\n others__identifying: \"236-016-003-001-000-000-000\",\n others__risk: \"236-016-003-002-000-000-000\",\n others__contact: \"236-016-003-003-000-000-000\",\n others__safe_locations: \"236-016-003-003-002-000-000\",\n others__services: \"236-016-003-004-000-000-000\",\n others__health_accommodation: \"236-016-003-006-000-000-000\",\n others__immigration_legal_status: \"236-016-003-007-000-000-000\",\n others__instruments: \"236-016-003-013-000-000-000\",\n others__instrument_summary: \"236-016-003-013-001-000-000\",\n others__instrument_full: \"236-016-003-013-002-000-000\",\n others__relationships_household: \"236-016-003-014-000-000-000\",\n} as const;\n\nexport type CoreInformationScopeKey = keyof typeof CoreInformationScopeKeys;\n\n/**\n * Key → positional code map for the `roi_scope` CVC domain (DRAFT-TEMPORARY; LEGACY flat item vocabulary, superseded for new work by `core_information_scope` (CVC-236). 27 ROI scope ITEMS: 14 live + 13 RETIRED tombstones, each matching its CVC-236 twin (`screen_notes`, `background` retired 2026-10-05 and include nothing; 11 more retired by the CVC-236 v4 tree, each read through its twin's CVC-236 SOT v2.1.0 `migrations` line: a stored ROI is a signed release, so the 9 health / immigration twins keep the twin's v3 grain (`v3Fields`, read-only) while a policy or preset takes the successor; `ida_full` / `ida_consid` read as their twin's informational line). Tombstones keep their codes so a stored value resolves, but are `selectable: false` + `retired: true` — never offer them. The item axis only — named bundles over these items are ROI_SCOPE_PRESET_NAMES).\n *\n * Domain: `roi_scope` · Version: 1.4.0 · Entries: 31\n */\nexport const RoiScopeKeys = {\n missingness_root: \"983-000-000-000-000-000-000\",\n unknown: \"983-000-000-000-000-000-001\",\n anonymous: \"983-000-000-000-000-000-002\",\n data_not_collected: \"983-000-000-000-000-000-003\",\n names: \"983-001-000-000-000-000-000\",\n dob: \"983-002-000-000-000-000-000\",\n addresses: \"983-003-000-000-000-000-000\",\n additional_ids: \"983-004-000-000-000-000-000\",\n demographics: \"983-005-000-000-000-000-000\",\n screen_indicators: \"983-006-000-000-000-000-000\",\n victimization: \"983-007-000-000-000-000-000\",\n ida_full: \"983-008-000-000-000-000-000\",\n ida_consid: \"983-009-000-000-000-000-000\",\n contact_info: \"983-010-000-000-000-000-000\",\n service_history: \"983-011-000-000-000-000-000\",\n screen_notes: \"983-012-000-000-000-000-000\",\n case_notes: \"983-013-000-000-000-000-000\",\n background: \"983-014-000-000-000-000-000\",\n system_info: \"983-015-000-000-000-000-000\",\n contact_history: \"983-016-000-000-000-000-000\",\n accommodation_needs: \"983-017-000-000-000-000-000\",\n disability_subtypes: \"983-018-000-000-000-000-000\",\n mental_health_status: \"983-019-000-000-000-000-000\",\n substance_use_status: \"983-020-000-000-000-000-000\",\n chronic_health_status: \"983-021-000-000-000-000-000\",\n hiv_status: \"983-022-000-000-000-000-000\",\n immigration_status: \"983-023-000-000-000-000-000\",\n uscis_alien_number: \"983-024-000-000-000-000-000\",\n federal_protection_applications: \"983-025-000-000-000-000-000\",\n tvap_enrollment: \"983-026-000-000-000-000-000\",\n le_report_status: \"983-027-000-000-000-000-000\",\n} as const;\n\nexport type RoiScopeKey = keyof typeof RoiScopeKeys;\n\n/**\n * Key → positional code map for the `roi_status` CVC domain (DRAFT-TEMPORARY; the 5-state lifecycle of a STORED Release of Information, sourced from PAVE `@pave/domain` ROI_STATUSES. DISTINCT from ROI_SEED_STATUSES, the recipient-card badge triad valid/expired/none).\n *\n * Domain: `roi_status` · Version: 1.1.0 · Entries: 9\n */\nexport const RoiStatusKeys = {\n missingness_root: \"984-000-000-000-000-000-000\",\n unknown: \"984-000-000-000-000-000-001\",\n anonymous: \"984-000-000-000-000-000-002\",\n data_not_collected: \"984-000-000-000-000-000-003\",\n draft: \"984-001-000-000-000-000-000\",\n active: \"984-002-000-000-000-000-000\",\n expired: \"984-003-000-000-000-000-000\",\n revoked: \"984-005-000-000-000-000-000\",\n superseded: \"984-006-000-000-000-000-000\",\n} as const;\n\nexport type RoiStatusKey = keyof typeof RoiStatusKeys;\n\n/**\n * Key → positional code map for the `core_referral_outcome` CVC domain (DRAFT-TEMPORARY; the binary referral-outcome axis attained / not_attained, grounded in the HMIS FY2026 Data Standards “P2 Referrals Provided” element + IC-59. The REASON a referral was not attained is a separate axis and is deliberately not folded in).\n *\n * Domain: `core_referral_outcome` · Version: 1.0.0 · Entries: 6\n */\nexport const CoreReferralOutcomeKeys = {\n missingness_root: \"975-000-000-000-000-000-000\",\n unknown: \"975-000-000-000-000-000-001\",\n anonymous: \"975-000-000-000-000-000-002\",\n data_not_collected: \"975-000-000-000-000-000-003\",\n attained: \"975-001-000-000-000-000-000\",\n not_attained: \"975-002-000-000-000-000-000\",\n} as const;\n\nexport type CoreReferralOutcomeKey = keyof typeof CoreReferralOutcomeKeys;\n\n/**\n * Key → positional code map for the `dh_state` CVC domain (CVC-233, `core-DH_state`, ready_for_dev). Lifecycle state of a determination / Findings artifact: draft → prov → pend_iss → issued → super. INDEPENDENT axis from CVC-138 `determination_level` (suspected/reported/disclosed/verified), which lives on the assertion at every state. Per-determination, not per-subject. Authored in 0.8.13 once CVC-233 was freed by renumbering `housing_subsidy_types` 233 → 194 — the squat had MASKED this gap.\n *\n * Domain: `dh_state` · Version: 1.0.0 · Entries: 9\n */\nexport const DhStateKeys = {\n missingness_root: \"233-000-000-000-000-000-000\",\n unknown: \"233-000-000-000-000-000-001\",\n anonymous: \"233-000-000-000-000-000-002\",\n data_not_collected: \"233-000-000-000-000-000-003\",\n draft: \"233-001-000-000-000-000-000\",\n prov: \"233-002-000-000-000-000-000\",\n pend_iss: \"233-003-000-000-000-000-000\",\n issued: \"233-004-000-000-000-000-000\",\n super: \"233-005-000-000-000-000-000\",\n} as const;\n\nexport type DhStateKey = keyof typeof DhStateKeys;\n\n/**\n * Key → positional code map for the `core_indicators` CVC domain (CVC-136; 220 canonical indicator codes re-sourced from prototype `data/core_indicators.yaml` @ c53378f, reconciled against @hti/scoring `emits_by_code` @ 9c209cf; the 2 former scoring-ahead `_youth` codes are DEPRECATED read-only rows — `selectable: false`, `supersededBy` their canonical siblings — kept because PAVE 2.0 still writes them = 222 substantive; SOT v1.1.0). Entries carry `family` / `polarity` / `severity` / `isAlert` / `alertWhen`; the alert list is a DERIVED VIEW over `isAlert`, not a rival taxonomy.\n *\n * Domain: `core_indicators` · Version: 1.1.0 · Entries: 226\n */\nexport const CoreIndicatorKeys = {\n missingness_root: \"136-000-000-000-000-000-000\",\n unknown: \"136-000-000-000-000-000-001\",\n anonymous: \"136-000-000-000-000-000-002\",\n data_not_collected: \"136-000-000-000-000-000-003\",\n abuser_evading_legal_consequences: \"136-001-000-000-000-000-000\",\n abuser_has_weapon: \"136-002-000-000-000-000-000\",\n abuser_substance_use: \"136-003-000-000-000-000-000\",\n abuser_threatened_suicide: \"136-004-000-000-000-000-000\",\n abuser_unemployed: \"136-005-000-000-000-000-000\",\n access_to_vulnerable_individuals: \"136-006-000-000-000-000-000\",\n acknowledgement_or_report_of_human_trafficking: \"136-007-000-000-000-000-000\",\n ads_available_247: \"136-008-000-000-000-000-000\",\n ads_imply_multiple_workers: \"136-009-000-000-000-000-000\",\n ads_prost_slang: \"136-010-000-000-000-000-000\",\n adverse_childhood_household_challenges: \"136-011-000-000-000-000-000\",\n advertised_new_to_area: \"136-012-000-000-000-000-000\",\n appears_controlling_relationship: \"136-013-000-000-000-000-000\",\n appears_turned_out_or_trained_ad_patterns: \"136-014-000-000-000-000-000\",\n association_commercial_sex: \"136-015-000-000-000-000-000\",\n atypical_or_high_risk_payment_method: \"136-016-000-000-000-000-000\",\n autonomy_access_healthcare_without_fear: \"136-017-000-000-000-000-000\",\n autonomy_choice_in_clients: \"136-018-000-000-000-000-000\",\n autonomy_choice_in_services: \"136-019-000-000-000-000-000\",\n autonomy_controls_own_docs: \"136-020-000-000-000-000-000\",\n autonomy_controls_own_finances: \"136-021-000-000-000-000-000\",\n autonomy_organizes_own_travel: \"136-022-000-000-000-000-000\",\n autonomy_posts_own_ads: \"136-023-000-000-000-000-000\",\n autonomy_sets_own_schedule: \"136-024-000-000-000-000-000\",\n autonomy_sets_up_own_dates: \"136-025-000-000-000-000-000\",\n battered_while_pregnant_history: \"136-026-000-000-000-000-000\",\n branding_or_unusual_tattoos_tied_to_control: \"136-027-000-000-000-000-000\",\n cannot_stop_working_or_freely_leave: \"136-028-000-000-000-000-000\",\n child_not_abusers_in_household: \"136-029-000-000-000-000-000\",\n child_welfare_system_involvement: \"136-030-000-000-000-000-000\",\n coerced_to_misrepresent_identity_or_activity: \"136-031-000-000-000-000-000\",\n coercive_debt_pressure: \"136-032-000-000-000-000-000\",\n coercive_debt_pressure_youth: \"136-033-000-000-000-000-000\",\n coercive_migration_or_forced_travel: \"136-034-000-000-000-000-000\",\n cognitive_or_functional_impairment_affecting_consent: \"136-035-000-000-000-000-000\",\n commercial_sex_association_words_or_places: \"136-036-000-000-000-000-000\",\n concerning_mannerisms_anxious_fearful_depressed: \"136-037-000-000-000-000-000\",\n concerning_sexual_behavior_pattern: \"136-038-000-000-000-000-000\",\n constraints_due_to_legal_status: \"136-039-000-000-000-000-000\",\n control_quota_required: \"136-040-000-000-000-000-000\",\n cs_activity_criminal_org_connection: \"136-041-000-000-000-000-000\",\n cs_industry_related_criminal_history: \"136-042-000-000-000-000-000\",\n current_injuries_from_abuser: \"136-043-000-000-000-000-000\",\n current_mental_health_services: \"136-044-000-000-000-000-000\",\n currently_minor_in_commercial_sex: \"136-045-000-000-000-000-000\",\n dangerous_services_no_protection: \"136-046-000-000-000-000-000\",\n dangerous_services_requires_protection: \"136-047-000-000-000-000-000\",\n dangerous_services_willing_anything: \"136-048-000-000-000-000-000\",\n debt_terms_deceptive: \"136-049-000-000-000-000-000\",\n debt_terms_deceptive_youth: \"136-050-000-000-000-000-000\",\n denied_basic_needs: \"136-051-000-000-000-000-000\",\n depends_on_employer_for_immigration_status: \"136-052-000-000-000-000-000\",\n does_not_control_finances_or_earnings: \"136-053-000-000-000-000-000\",\n does_not_control_identity_documents: \"136-054-000-000-000-000-000\",\n elevated_lethality_risk_signal: \"136-055-000-000-000-000-000\",\n employer_keeps_pay_or_pays_less_than_expected: \"136-056-000-000-000-000-000\",\n engages_in_commercial_sex_act: \"136-057-000-000-000-000-000\",\n entered_commercial_sex_industry_as_minor: \"136-058-000-000-000-000-000\",\n entered_cs_due_to_survival_needs: \"136-059-000-000-000-000-000\",\n entered_into_network_of_sex_providers_early: \"136-060-000-000-000-000-000\",\n exploitative_pricing_tier_low: \"136-061-000-000-000-000-000\",\n exploitative_working_conditions: \"136-062-000-000-000-000-000\",\n fled_conflict_violence_or_persecution: \"136-063-000-000-000-000-000\",\n forced_to_commit_crimes: \"136-064-000-000-000-000-000\",\n forced_to_use_false_documents: \"136-065-000-000-000-000-000\",\n foreign_born_or_recently_arrived: \"136-066-000-000-000-000-000\",\n foreign_born_risk_factors: \"136-067-000-000-000-000-000\",\n frequent_changes_in_residence: \"136-068-000-000-000-000-000\",\n frequent_travel_or_location_changes: \"136-069-000-000-000-000-000\",\n frequently_at_hotels_or_many_hotel_keys: \"136-070-000-000-000-000-000\",\n harmful_coping_behaviors: \"136-071-000-000-000-000-000\",\n has_ads_on_commercial_sex_site: \"136-072-000-000-000-000-000\",\n has_facilitators_involved: \"136-073-000-000-000-000-000\",\n has_management_or_representation: \"136-074-000-000-000-000-000\",\n has_no_personal_items_or_possessions: \"136-075-000-000-000-000-000\",\n head_injury_history: \"136-076-000-000-000-000-000\",\n head_injury_loss_of_consciousness: \"136-077-000-000-000-000-000\",\n health_related_vulnerability: \"136-078-000-000-000-000-000\",\n hierarchical_management_structure_identified: \"136-079-000-000-000-000-000\",\n high_risk_sexual_behavior: \"136-080-000-000-000-000-000\",\n high_security_measures_at_work_or_living_location: \"136-081-000-000-000-000-000\",\n highly_irregular_school_attendance: \"136-082-000-000-000-000-000\",\n history_emotional_abuse: \"136-083-000-000-000-000-000\",\n history_of_head_injury: \"136-084-000-000-000-000-000\",\n history_of_mental_health_issues: \"136-085-000-000-000-000-000\",\n history_of_running_away_or_missing_from_care: \"136-086-000-000-000-000-000\",\n history_of_strangulation: \"136-087-000-000-000-000-000\",\n history_physical_or_sexual_abuse_or_dv: \"136-088-000-000-000-000-000\",\n homeless_or_unstably_housed: \"136-089-000-000-000-000-000\",\n immigration_related_exploitation_risk: \"136-090-000-000-000-000-000\",\n in_commercial_sex_industry_recorded: \"136-091-000-000-000-000-000\",\n inability_to_account_for_self: \"136-092-000-000-000-000-000\",\n intimate_partner_violence_reported_to_law_enforcement: \"136-093-000-000-000-000-000\",\n juvenile_justice_or_child_welfare_involvement: \"136-094-000-000-000-000-000\",\n juvenile_justice_system_involvement: \"136-095-000-000-000-000-000\",\n labor_services_activity_recorded: \"136-096-000-000-000-000-000\",\n lgbtq_individual: \"136-097-000-000-000-000-000\",\n limited_english_proficiency: \"136-098-000-000-000-000-000\",\n limited_independence: \"136-099-000-000-000-000-000\",\n lives_or_sleeps_at_place_of_work: \"136-100-000-000-000-000-000\",\n living_with_abuser: \"136-101-000-000-000-000-000\",\n macro_level_economic_duress_entry_exit: \"136-102-000-000-000-000-000\",\n meets_or_has_sex_with_internet_contacts: \"136-103-000-000-000-000-000\",\n monitored_or_isolated_by_controlling_party: \"136-104-000-000-000-000-000\",\n much_older_intimate_partner: \"136-105-000-000-000-000-000\",\n nervous_about_immigration_documentation: \"136-106-000-000-000-000-000\",\n network_aggregate_risk_score_high: \"136-107-000-000-000-000-000\",\n network_multiple_sex_providers_named: \"136-108-000-000-000-000-000\",\n network_stable_size_large: \"136-109-000-000-000-000-000\",\n network_trafficker_present: \"136-110-000-000-000-000-000\",\n network_violent_person_present: \"136-111-000-000-000-000-000\",\n new_to_commercial_sex_industry: \"136-112-000-000-000-000-000\",\n non_consensual_photography_or_recording: \"136-113-000-000-000-000-000\",\n not_in_control_of_immigration_documentation: \"136-114-000-000-000-000-000\",\n other_instability_or_vulnerability_factors: \"136-115-000-000-000-000-000\",\n owes_money_and_cannot_pay_off: \"136-116-000-000-000-000-000\",\n paid_or_owes_fee_to_arrange_travel_to_us: \"136-117-000-000-000-000-000\",\n paid_or_owes_recruitment_fee_to_employer: \"136-118-000-000-000-000-000\",\n parent_or_guardian_of_minor_subject_named: \"136-119-000-000-000-000-000\",\n past_phases_prior_trafficking_or_risk: \"136-120-000-000-000-000-000\",\n payment_routed_through_third_party: \"136-121-000-000-000-000-000\",\n pending_federal_protection: \"136-122-000-000-000-000-000\",\n performing_different_work_than_promised: \"136-123-000-000-000-000-000\",\n physical_violence_increasing: \"136-124-000-000-000-000-000\",\n poverty_or_severe_financial_strain: \"136-125-000-000-000-000-000\",\n precarious_immigration_status: \"136-126-000-000-000-000-000\",\n pressured_or_forced_sex_act: \"136-127-000-000-000-000-000\",\n prior_medical_attention_from_abuse: \"136-128-000-000-000-000-000\",\n prior_tvap_disconnection: \"136-129-000-000-000-000-000\",\n prior_victimization_or_abuse_history: \"136-130-000-000-000-000-000\",\n promise_of_work_different_than_current_work: \"136-131-000-000-000-000-000\",\n received_things_of_value_while_missing_from_care: \"136-132-000-000-000-000-000\",\n recent_le_engagement: \"136-133-000-000-000-000-000\",\n recruited_by_third_party_into_cs_industry: \"136-134-000-000-000-000-000\",\n regular_alcohol_use: \"136-135-000-000-000-000-000\",\n relies_on_temporary_resources_for_basic_needs: \"136-136-000-000-000-000-000\",\n reports_physical_harm_by_employer_or_partner: \"136-137-000-000-000-000-000\",\n reports_physical_harm_to_others_by_employer_or_partner: \"136-138-000-000-000-000-000\",\n restrictive_living_or_working_conditions: \"136-139-000-000-000-000-000\",\n restrictive_or_not_understood_contract: \"136-140-000-000-000-000-000\",\n risk_factors_commercial_sex: \"136-141-000-000-000-000-000\",\n serious_substance_use_or_introduced_to_drugs: \"136-142-000-000-000-000-000\",\n several_cell_phones_or_frequent_number_changes: \"136-143-000-000-000-000-000\",\n sex_acts_in_own_residence: \"136-144-000-000-000-000-000\",\n sexual_exploitation: \"136-145-000-000-000-000-000\",\n sexualized_content_performance_activity: \"136-146-000-000-000-000-000\",\n shared_contact_network: \"136-147-000-000-000-000-000\",\n signs_of_physical_abuse_confinement_or_neglect: \"136-148-000-000-000-000-000\",\n signs_of_physical_harm_or_abuse: \"136-149-000-000-000-000-000\",\n sleep_disturbance: \"136-150-000-000-000-000-000\",\n social_isolation_or_no_supportive_relationships: \"136-151-000-000-000-000-000\",\n stalking_property_intrusion: \"136-152-000-000-000-000-000\",\n stalking_surveillance: \"136-153-000-000-000-000-000\",\n stalking_unwanted_contact: \"136-154-000-000-000-000-000\",\n strangulation_acute_symptoms: \"136-155-000-000-000-000-000\",\n strangulation_choking_assault_detail: \"136-156-000-000-000-000-000\",\n strangulation_loss_of_consciousness: \"136-157-000-000-000-000-000\",\n strangulation_repeated: \"136-158-000-000-000-000-000\",\n subject_affiliated_org_trafficking_activity: \"136-159-000-000-000-000-000\",\n subject_arrested_dv_sv_cs: \"136-160-000-000-000-000-000\",\n subject_gang_org_affiliation: \"136-161-000-000-000-000-000\",\n subject_has_illegal_weapons: \"136-162-000-000-000-000-000\",\n subject_is_sex_offender: \"136-163-000-000-000-000-000\",\n subject_legally_barred_weapons: \"136-164-000-000-000-000-000\",\n subject_perpetrated_abuse_history: \"136-165-000-000-000-000-000\",\n subject_perpetrated_emotional_stalking_current: \"136-166-000-000-000-000-000\",\n subject_perpetrated_emotional_stalking_past: \"136-167-000-000-000-000-000\",\n subject_perpetrated_ipv_current: \"136-168-000-000-000-000-000\",\n subject_perpetrated_ipv_past: \"136-169-000-000-000-000-000\",\n subject_perpetrated_physical_abuse_current: \"136-170-000-000-000-000-000\",\n subject_perpetrated_physical_abuse_past: \"136-171-000-000-000-000-000\",\n subject_perpetrated_sexual_abuse_current: \"136-172-000-000-000-000-000\",\n subject_perpetrated_sexual_abuse_past: \"136-173-000-000-000-000-000\",\n subject_violent_felony: \"136-174-000-000-000-000-000\",\n substance_use_while_working: \"136-175-000-000-000-000-000\",\n suicidal_ideation_history: \"136-176-000-000-000-000-000\",\n suicidal_ideation_recent: \"136-177-000-000-000-000-000\",\n suicide_attempt_history: \"136-178-000-000-000-000-000\",\n third_party_advertises_or_posts_for_person: \"136-179-000-000-000-000-000\",\n third_party_arranged_commercial_sex_acts: \"136-180-000-000-000-000-000\",\n threats_by_employer_or_partner: \"136-181-000-000-000-000-000\",\n threats_of_harm: \"136-182-000-000-000-000-000\",\n threats_of_legal_trouble_or_deportation: \"136-183-000-000-000-000-000\",\n threats_related_to_migration_debt: \"136-184-000-000-000-000-000\",\n threats_to_family_friends_or_close_associates: \"136-185-000-000-000-000-000\",\n threats_to_kill_victim_or_children: \"136-186-000-000-000-000-000\",\n trafficking_experience_current: \"136-187-000-000-000-000-000\",\n trafficking_experience_past_10plusy: \"136-188-000-000-000-000-000\",\n trafficking_experience_past_3to10y: \"136-189-000-000-000-000-000\",\n trafficking_experience_past_lt3y: \"136-190-000-000-000-000-000\",\n travel_organized_by_third_party: \"136-191-000-000-000-000-000\",\n tricked_or_pressured_into_unwanted_acts: \"136-192-000-000-000-000-000\",\n under_18_advertised_age: \"136-193-000-000-000-000-000\",\n under_18_appears_underage: \"136-194-000-000-000-000-000\",\n under_18_known_age: \"136-195-000-000-000-000-000\",\n unexplained_frequent_travel_or_migration: \"136-196-000-000-000-000-000\",\n unsafe_working_conditions_long_hours_inadequate_breaks: \"136-197-000-000-000-000-000\",\n unusual_cash_or_unexplained_gifts: \"136-198-000-000-000-000-000\",\n unusual_work_circumstances: \"136-199-000-000-000-000-000\",\n urgent_medical_referral_needed: \"136-200-000-000-000-000-000\",\n victim_believes_abuser_capable_of_killing: \"136-201-000-000-000-000-000\",\n victimization_history_composite: \"136-202-000-000-000-000-000\",\n violence_or_threats_at_work_site: \"136-203-000-000-000-000-000\",\n weapon_used_or_threatened_against_victim: \"136-204-000-000-000-000-000\",\n work_frequency_high_volume: \"136-205-000-000-000-000-000\",\n working_while_pregnant: \"136-206-000-000-000-000-000\",\n workplace_emotional_climate_of_fear: \"136-207-000-000-000-000-000\",\n works_across_multiple_cities_or_locations: \"136-208-000-000-000-000-000\",\n works_for_little_or_no_pay: \"136-209-000-000-000-000-000\",\n youth_watched_filmed_or_photographed_sexually_explicit: \"136-210-000-000-000-000-000\",\n clients_unaware_of_third_party_coordination: \"136-211-000-000-000-000-000\",\n depends_on_spouse_or_family_for_immigration_status: \"136-212-000-000-000-000-000\",\n sexualized_content_in_person_performance_activity: \"136-213-000-000-000-000-000\",\n sexualized_content_online_performance_activity: \"136-214-000-000-000-000-000\",\n trauma_perpetrator_is_current_manager: \"136-215-000-000-000-000-000\",\n active_protective_order: \"136-216-000-000-000-000-000\",\n disclosed_fear_at_intake: \"136-217-000-000-000-000-000\",\n does_not_control_housing: \"136-218-000-000-000-000-000\",\n oppressive_home_life: \"136-219-000-000-000-000-000\",\n recent_separation: \"136-220-000-000-000-000-000\",\n survival_sex: \"136-221-000-000-000-000-000\",\n unable_to_speak_freely: \"136-222-000-000-000-000-000\",\n} as const;\n\nexport type CoreIndicatorKey = keyof typeof CoreIndicatorKeys;\n\n/**\n * Key → positional code map for the `risk_identification_milestone` CVC domain (CVC-267, ratified 2026-08-29). The identification-FUNNEL rung value set — the vocabulary `assertion_value_code` resolves against for the `identification_rung_reached` CAR. Four rungs store `assertion_domain` `signal_identification` (CVC-159 159-066); `determined` stores `investigative_legal` (159-067) and is documented under both (filed-under-both ruling 2026-08-29). Each entry carries its stored `assertionDomain` so a consumer can route a rung without a second table. Deliberately its OWN vocabulary, not Level-2 rows inside CVC-159: `AssertionDomainKeys` is the set of DOMAINS, and folding values in would make `on_radar` demand a domain classification downstream. The milestone-symmetry no-state row is absent: reaching no rung is the ABSENCE of rows.\n *\n * Domain: `risk_identification_milestone` · Version: 1.0.0 · Entries: 9\n */\nexport const RiskIdentificationMilestoneKeys = {\n missingness_root: \"267-000-000-000-000-000-000\",\n unknown: \"267-000-000-000-000-000-001\",\n anonymous: \"267-000-000-000-000-000-002\",\n data_not_collected: \"267-000-000-000-000-000-003\",\n on_radar: \"267-001-000-000-000-000-000\",\n screened: \"267-002-000-000-000-000-000\",\n at_risk: \"267-003-000-000-000-000-000\",\n assessed: \"267-004-000-000-000-000-000\",\n determined: \"267-005-000-000-000-000-000\",\n} as const;\n\nexport type RiskIdentificationMilestoneKey = keyof typeof RiskIdentificationMilestoneKeys;\n\n/**\n * Key → positional code map for the `risk_severity_band` CVC domain (CVC-238, VERIFIED). Replaces the withdrawn provisional `risk_band` (981). Carries the load-bearing `lowerBand` thresholds 0/20/40/60/80 that the milestone band-crossing trigger reads.\n *\n * Domain: `risk_severity_band` · Version: 1.0.0 · Entries: 9\n */\nexport const RiskSeverityBandKeys = {\n missingness_root: \"238-000-000-000-000-000-000\",\n unknown: \"238-000-000-000-000-000-001\",\n anonymous: \"238-000-000-000-000-000-002\",\n data_not_collected: \"238-000-000-000-000-000-003\",\n risk_1: \"238-001-000-000-000-000-000\",\n risk_2: \"238-002-000-000-000-000-000\",\n risk_3: \"238-003-000-000-000-000-000\",\n risk_4: \"238-004-000-000-000-000-000\",\n risk_5: \"238-005-000-000-000-000-000\",\n} as const;\n\nexport type RiskSeverityBandKey = keyof typeof RiskSeverityBandKeys;\n\n/**\n * Key → positional code map for the `admin_roles` CVC domain (CVC-134). Administrative / control-plane role axis of the canonical authorization model (IC-66; admin ≠ content visibility); distinct from CVC-135 `user_roles`. SOT v2.0.0 is GENERATED from the prototype repo's data/cvcs/core_admin_role.yaml by scripts/gen-admin-roles.py. Keys transliterate canon's hyphenated codes (`PLT-ADM` → `plt_adm`; canon spelling on `canonicalCode`). No missingness keys (the 1.0.0 quadruplet is withdrawn). Canon's legacy `ACCT-ADM` resolves to `mem_adm` through `adminRolesSot._supersedes.keyMap`, which is key-space (look up `acct_adm`: lowercase, `-` → `_`).\n *\n * Domain: `admin_roles` · Version: 2.0.0 · Entries: 10\n */\nexport const AdminRoleKeys = {\n plt_adm: \"134-001-000-000-000-000-000\",\n plt_sup: \"134-002-000-000-000-000-000\",\n mem_adm: \"134-003-000-000-000-000-000\",\n team_adm: \"134-004-000-000-000-000-000\",\n aud: \"134-005-000-000-000-000-000\",\n data_adm: \"134-006-000-000-000-000-000\",\n gov_aud: \"134-007-000-000-000-000-000\",\n ciro: \"134-008-000-000-000-000-000\",\n sup: \"134-009-000-000-000-000-000\",\n train_adm: \"134-010-000-000-000-000-000\",\n} as const;\n\nexport type AdminRoleKey = keyof typeof AdminRoleKeys;\n\n/**\n * Key → positional code map for the `user_roles` CVC domain (CVC-135). Operational / practitioner role axis of the canonical authorization model (IC-66); distinct from CVC-134 `admin_roles`. SOT v2.0.0 is GENERATED from the prototype repo's data/cvcs/core_user_role.yaml by scripts/gen-user-roles.py; canon re-keyed `hotline_op` to `crisis_response` at the same code (135-004). No missingness keys (the 1.0.0 quadruplet is withdrawn; a role is assigned, never observed). A stored `hotline_op`, or canon's legacy `case_advocate` / `leads_investigator`, resolves through `userRolesSot._supersedes.keyMap`.\n *\n * Domain: `user_roles` · Version: 2.0.0 · Entries: 15\n */\nexport const UserRoleKeys = {\n case_nav: \"135-001-000-000-000-000-000\",\n healthcare_provider_medical: \"135-002-000-000-000-000-000\",\n behavioral_health_provider: \"135-003-000-000-000-000-000\",\n crisis_response: \"135-004-000-000-000-000-000\",\n intel_analyst: \"135-005-000-000-000-000-000\",\n investigator: \"135-006-000-000-000-000-000\",\n le_liaison_vsp: \"135-007-000-000-000-000-000\",\n legal_advocate: \"135-008-000-000-000-000-000\",\n mandatory_reporter: \"135-009-000-000-000-000-000\",\n mdt_participant: \"135-010-000-000-000-000-000\",\n prosecutor_review: \"135-011-000-000-000-000-000\",\n public_reporter: \"135-012-000-000-000-000-000\",\n research_analytics: \"135-013-000-000-000-000-000\",\n screener: \"135-014-000-000-000-000-000\",\n volunteer: \"135-015-000-000-000-000-000\",\n} as const;\n\nexport type UserRoleKey = keyof typeof UserRoleKeys;\n\n/**\n * Key → positional code map for the `hmis_current_living_situation` CVC domain (CVC-193). The HUD-reporting crosswalk vocabulary (HMIS FY2026 4.12 numeric codes); a DISTINCT CVC from CVC-192 `living_situation` (the internal semantic vocabulary). Keys are `hmis_<code>`; the numeric code is in `hmisCode`.\n *\n * Domain: `hmis_current_living_situation` · Version: 1.0.0 · Entries: 33\n */\nexport const HmisCurrentLivingSituationKeys = {\n missingness_root: \"193-000-000-000-000-000-000\",\n unknown: \"193-000-000-000-000-000-001\",\n anonymous: \"193-000-000-000-000-000-002\",\n data_not_collected: \"193-000-000-000-000-000-003\",\n hmis_17: \"193-001-000-000-000-000-000\",\n hmis_24: \"193-002-000-000-000-000-000\",\n hmis_30: \"193-003-000-000-000-000-000\",\n hmis_37: \"193-004-000-000-000-000-000\",\n hmis_101: \"193-005-000-000-000-000-000\",\n hmis_116: \"193-006-000-000-000-000-000\",\n hmis_118: \"193-007-000-000-000-000-000\",\n hmis_204: \"193-008-000-000-000-000-000\",\n hmis_205: \"193-009-000-000-000-000-000\",\n hmis_206: \"193-010-000-000-000-000-000\",\n hmis_207: \"193-011-000-000-000-000-000\",\n hmis_215: \"193-012-000-000-000-000-000\",\n hmis_225: \"193-013-000-000-000-000-000\",\n hmis_302: \"193-014-000-000-000-000-000\",\n hmis_312: \"193-015-000-000-000-000-000\",\n hmis_313: \"193-016-000-000-000-000-000\",\n hmis_314: \"193-017-000-000-000-000-000\",\n hmis_327: \"193-018-000-000-000-000-000\",\n hmis_329: \"193-019-000-000-000-000-000\",\n hmis_332: \"193-020-000-000-000-000-000\",\n hmis_335: \"193-021-000-000-000-000-000\",\n hmis_336: \"193-022-000-000-000-000-000\",\n hmis_410: \"193-023-000-000-000-000-000\",\n hmis_411: \"193-024-000-000-000-000-000\",\n hmis_421: \"193-025-000-000-000-000-000\",\n hmis_422: \"193-026-000-000-000-000-000\",\n hmis_423: \"193-027-000-000-000-000-000\",\n hmis_426: \"193-028-000-000-000-000-000\",\n hmis_435: \"193-029-000-000-000-000-000\",\n} as const;\n\nexport type HmisCurrentLivingSituationKey = keyof typeof HmisCurrentLivingSituationKeys;\n\n/**\n * Key → positional code map for the `juvenile_justice_episode_type` CVC domain (CVC-197). Types the EPISODE; distinct from CVC-95 `juvenile_justice_involvement_status` (the point-in-time status).\n *\n * Domain: `juvenile_justice_episode_type` · Version: 1.0.0 · Entries: 9\n */\nexport const JuvenileJusticeEpisodeTypeKeys = {\n missingness_root: \"197-000-000-000-000-000-000\",\n unknown: \"197-000-000-000-000-000-001\",\n anonymous: \"197-000-000-000-000-000-002\",\n data_not_collected: \"197-000-000-000-000-000-003\",\n pending_adjudication: \"197-001-000-000-000-000-000\",\n diversion_program: \"197-002-000-000-000-000-000\",\n residential_jj_placement: \"197-003-000-000-000-000-000\",\n probation_supervision: \"197-004-000-000-000-000-000\",\n detention_stay: \"197-005-000-000-000-000-000\",\n} as const;\n\nexport type JuvenileJusticeEpisodeTypeKey = keyof typeof JuvenileJusticeEpisodeTypeKeys;\n\n/**\n * Key → positional code map for the `incarceration_episode_type` CVC domain (CVC-198).\n *\n * Domain: `incarceration_episode_type` · Version: 1.0.0 · Entries: 9\n */\nexport const IncarcerationEpisodeTypeKeys = {\n missingness_root: \"198-000-000-000-000-000-000\",\n unknown: \"198-000-000-000-000-000-001\",\n anonymous: \"198-000-000-000-000-000-002\",\n data_not_collected: \"198-000-000-000-000-000-003\",\n jail: \"198-001-000-000-000-000-000\",\n detention: \"198-002-000-000-000-000-000\",\n prison: \"198-003-000-000-000-000-000\",\n immigration_detention: \"198-004-000-000-000-000-000\",\n work_release_or_halfway_house_custody: \"198-005-000-000-000-000-000\",\n} as const;\n\nexport type IncarcerationEpisodeTypeKey = keyof typeof IncarcerationEpisodeTypeKeys;\n\n/**\n * Key → positional code map for the `exploitation_type` CVC domain (CVC-203). Domain-level determination codes for exploitation outcomes that are NOT trafficking determinations; distinct from CVC-72 `ht_type`.\n *\n * Domain: `exploitation_type` · Version: 1.0.0 · Entries: 9\n */\nexport const ExploitationTypeKeys = {\n missingness_root: \"203-000-000-000-000-000-000\",\n unknown: \"203-000-000-000-000-000-001\",\n anonymous: \"203-000-000-000-000-000-002\",\n data_not_collected: \"203-000-000-000-000-000-003\",\n no_exploitation_determined: \"203-001-000-000-000-000-000\",\n commercial_sexual_exploitation_of_minor_domain_determination: \"203-002-000-000-000-000-000\",\n labor_exploitation_non_trafficking: \"203-003-000-000-000-000-000\",\n sexual_exploitation_non_trafficking: \"203-004-000-000-000-000-000\",\n commercial_sexual_exploitation_domain_determination: \"203-005-000-000-000-000-000\",\n} as const;\n\nexport type ExploitationTypeKey = keyof typeof ExploitationTypeKeys;\n\n/**\n * Key → positional code map for the `source_system` CVC domain (CVC-201). Part of the assertion provenance contract with CVC-140 `source_category`, CVC-141 `source_subtype` and CVC-209 `source_instrument`.\n *\n * Domain: `source_system` · Version: 1.0.0 · Entries: 19\n */\nexport const SourceSystemKeys = {\n missingness_root: \"201-000-000-000-000-000-000\",\n unknown: \"201-000-000-000-000-000-001\",\n anonymous: \"201-000-000-000-000-000-002\",\n data_not_collected: \"201-000-000-000-000-000-003\",\n cityxguide: \"201-001-000-000-000-000-000\",\n sipsap: \"201-002-000-000-000-000-000\",\n adultsearch: \"201-003-000-000-000-000-000\",\n backpage: \"201-004-000-000-000-000-000\",\n listcrawler: \"201-005-000-000-000-000-000\",\n rubmaps: \"201-006-000-000-000-000-000\",\n skipthegames: \"201-007-000-000-000-000-000\",\n twilio: \"201-008-000-000-000-000-000\",\n facebook: \"201-009-000-000-000-000-000\",\n hti_platform_internal: \"201-010-000-000-000-000-000\",\n clear: \"201-011-000-000-000-000-000\",\n axon: \"201-012-000-000-000-000-000\",\n accurint: \"201-013-000-000-000-000-000\",\n the_erotic_review: \"201-014-000-000-000-000-000\",\n ncic: \"201-015-000-000-000-000-000\",\n} as const;\n\nexport type SourceSystemKey = keyof typeof SourceSystemKeys;\n\n/**\n * Key → positional code map for the `source_instrument` CVC domain (CVC-209). The instrument through which an assertion's value was captured; part of the assertion provenance contract.\n *\n * Domain: `source_instrument` · Version: 1.0.0 · Entries: 41\n */\nexport const SourceInstrumentKeys = {\n missingness_root: \"209-000-000-000-000-000-000\",\n unknown: \"209-000-000-000-000-000-001\",\n anonymous: \"209-000-000-000-000-000-002\",\n data_not_collected: \"209-000-000-000-000-000-003\",\n hti_leads_manual_entry: \"209-001-000-000-000-000-000\",\n hti_pave_ida: \"209-002-000-000-000-000-000\",\n hti_thread_intake_workflow: \"209-003-000-000-000-000-000\",\n hti_file_upload_csv_import: \"209-004-000-000-000-000-000\",\n hti_leads_edit_correction: \"209-005-000-000-000-000-000\",\n hti_rules_engine_derivation: \"209-006-000-000-000-000-000\",\n hti_screening_tool_other: \"209-007-000-000-000-000-000\",\n vendor_twilio_lookup: \"209-008-000-000-000-000-000\",\n hti_model_inference_output: \"209-009-000-000-000-000-000\",\n hti_api_import: \"209-010-000-000-000-000-000\",\n hti_osint_scraper_run: \"209-011-000-000-000-000-000\",\n hti_pave_is: \"209-012-000-000-000-000-000\",\n hti_danger_assessment: \"209-013-000-000-000-000-000\",\n hti_lethality_assessment: \"209-014-000-000-000-000-000\",\n hti_leads_tra: \"209-015-000-000-000-000-000\",\n hti_stalking_assessment: \"209-016-000-000-000-000-000\",\n hti_needs_assessment: \"209-017-000-000-000-000-000\",\n hti_bh_intake: \"209-018-000-000-000-000-000\",\n hti_mh_intake: \"209-019-000-000-000-000-000\",\n hti_strangulation_injury: \"209-020-000-000-000-000-000\",\n hti_sud_screen: \"209-021-000-000-000-000-000\",\n hti_ocat_hts: \"209-022-000-000-000-000-000\",\n hti_ae_intake: \"209-023-000-000-000-000-000\",\n hti_tcs_intake: \"209-024-000-000-000-000-000\",\n hti_pave_service_log: \"209-025-000-000-000-000-000\",\n thread_pave_service_log: \"209-026-000-000-000-000-000\",\n hti_leads_milestone_log: \"209-027-000-000-000-000-000\",\n hti_leads_triage_workflow: \"209-028-000-000-000-000-000\",\n hti_leads_findings: \"209-029-000-000-000-000-000\",\n hti_leads_deconfliction: \"209-030-000-000-000-000-000\",\n hti_leads_case_lifecycle: \"209-031-000-000-000-000-000\",\n hti_leads_entity_resolution: \"209-032-000-000-000-000-000\",\n hti_leads_network_mapping: \"209-033-000-000-000-000-000\",\n hti_leads_pattern_match: \"209-034-000-000-000-000-000\",\n hti_leads_search_hit: \"209-035-000-000-000-000-000\",\n hti_leads_intake_processing: \"209-036-000-000-000-000-000\",\n hti_leads_incarceration_episode: \"209-037-000-000-000-000-000\",\n} as const;\n\nexport type SourceInstrumentKey = keyof typeof SourceInstrumentKeys;\n\n/**\n * Key → positional code map for the `po_petition_basis` CVC domain (CVC-213). Protection Orders (IC-62).\n *\n * Domain: `po_petition_basis` · Version: 1.0.0 · Entries: 8\n */\nexport const PoPetitionBasisKeys = {\n missingness_root: \"213-000-000-000-000-000-000\",\n unknown: \"213-000-000-000-000-000-001\",\n anonymous: \"213-000-000-000-000-000-002\",\n data_not_collected: \"213-000-000-000-000-000-003\",\n dv: \"213-001-000-000-000-000-000\",\n har: \"213-002-000-000-000-000-000\",\n sa: \"213-003-000-000-000-000-000\",\n other: \"213-004-000-000-000-000-000\",\n} as const;\n\nexport type PoPetitionBasisKey = keyof typeof PoPetitionBasisKeys;\n\n/**\n * Key → positional code map for the `po_status` CVC domain (CVC-214). Protection Orders (IC-62). The canonical lifecycle stage is carried per-entry in `lifecycleStage`; the vocabulary itself is flat.\n *\n * Domain: `po_status` · Version: 1.0.0 · Entries: 12\n */\nexport const PoStatusKeys = {\n missingness_root: \"214-000-000-000-000-000-000\",\n unknown: \"214-000-000-000-000-000-001\",\n anonymous: \"214-000-000-000-000-000-002\",\n data_not_collected: \"214-000-000-000-000-000-003\",\n filed: \"214-001-000-000-000-000-000\",\n ex_parte_granted: \"214-002-000-000-000-000-000\",\n hearing_pending: \"214-003-000-000-000-000-000\",\n denied_outright: \"214-004-000-000-000-000-000\",\n final_granted: \"214-005-000-000-000-000-000\",\n final_denied_or_dismissed: \"214-006-000-000-000-000-000\",\n expired: \"214-007-000-000-000-000-000\",\n emergency: \"214-008-000-000-000-000-000\",\n} as const;\n\nexport type PoStatusKey = keyof typeof PoStatusKeys;\n\n/**\n * Key → positional code map for the `po_violation_status` CVC domain (CVC-215). Protection Orders (IC-62).\n *\n * Domain: `po_violation_status` · Version: 1.0.0 · Entries: 6\n */\nexport const PoViolationStatusKeys = {\n missingness_root: \"215-000-000-000-000-000-000\",\n unknown: \"215-000-000-000-000-000-001\",\n anonymous: \"215-000-000-000-000-000-002\",\n data_not_collected: \"215-000-000-000-000-000-003\",\n violated: \"215-001-000-000-000-000-000\",\n notviolated: \"215-002-000-000-000-000-000\",\n} as const;\n\nexport type PoViolationStatusKey = keyof typeof PoViolationStatusKeys;\n\n/**\n * Key → positional code map for the `session_template` CVC domain (CVC-217). Canonical session templates across PAVE / Thread / LEADS; distinct from CVC-216 `session_state`.\n *\n * Domain: `session_template` · Version: 1.0.0 · Entries: 25\n */\nexport const SessionTemplateKeys = {\n missingness_root: \"217-000-000-000-000-000-000\",\n unknown: \"217-000-000-000-000-000-001\",\n anonymous: \"217-000-000-000-000-000-002\",\n data_not_collected: \"217-000-000-000-000-000-003\",\n cst_pave_other: \"217-001-000-000-000-000-000\",\n cst_pave_program_exit: \"217-002-000-000-000-000-000\",\n cst_pave_client_update: \"217-003-000-000-000-000-000\",\n cst_pave_program_intake_existing: \"217-004-000-000-000-000-000\",\n cst_pave_new_client: \"217-005-000-000-000-000-000\",\n cst_thread_other: \"217-006-000-000-000-000-000\",\n cst_thread_in_person_not_field: \"217-007-000-000-000-000-000\",\n cst_thread_misc_call: \"217-008-000-000-000-000-000\",\n cst_thread_text_email: \"217-009-000-000-000-000-000\",\n cst_thread_field_response: \"217-010-000-000-000-000-000\",\n cst_thread_lap_incident: \"217-011-000-000-000-000-000\",\n cst_thread_hotline_call: \"217-012-000-000-000-000-000\",\n cst_leads_other: \"217-013-000-000-000-000-000\",\n cst_leads_database_query: \"217-014-000-000-000-000-000\",\n cst_leads_case_update: \"217-015-000-000-000-000-000\",\n cst_leads_new_report: \"217-016-000-000-000-000-000\",\n cst_leads_new_case: \"217-017-000-000-000-000-000\",\n cst_leads_new_lead_tip: \"217-018-000-000-000-000-000\",\n cst_unk_other_virtual: \"217-019-000-000-000-000-000\",\n cst_pave_inbound_share: \"217-020-000-000-000-000-000\",\n cst_thread_inbound_share: \"217-021-000-000-000-000-000\",\n} as const;\n\nexport type SessionTemplateKey = keyof typeof SessionTemplateKeys;\n\n/**\n * Key → positional code map for the `service_delivery_channel` CVC domain (CVC-47, canonical). HOW a service was delivered; sibling axis to CVC-25 `service_mechanisms` and CVC-49 `service_states`. `GROUP_INPERSON` / `GROUP_REMOTE` are flagged local extensions.\n *\n * Domain: `service_delivery_channel` · Version: 1.0.0 · Entries: 11\n */\nexport const ServiceDeliveryChannelKeys = {\n missingness_root: \"047-000-000-000-000-000-000\",\n unknown: \"047-000-000-000-000-000-001\",\n anonymous: \"047-000-000-000-000-000-002\",\n data_not_collected: \"047-000-000-000-000-000-003\",\n phone: \"047-001-000-000-000-000-000\",\n in_person: \"047-002-000-000-000-000-000\",\n on_scene: \"047-003-000-000-000-000-000\",\n virtual: \"047-004-000-000-000-000-000\",\n email_text_chat: \"047-005-000-000-000-000-000\",\n group_inperson: \"047-006-000-000-000-000-000\",\n group_remote: \"047-007-000-000-000-000-000\",\n} as const;\n\nexport type ServiceDeliveryChannelKey = keyof typeof ServiceDeliveryChannelKeys;\n\n/**\n * Key → positional code map for the `citizenship` CVC domain (CVC-182, provisional-pending-notion-ratification). 249 countries + the canonical 3-value missingness set. Positional codes are MINTED platform-common-side: the upstream Notion codebook's Code column is blank on all 252 rows. The authoritative ISO 3166-1 alpha-2 code rides on each entry as `iso31661Alpha2`.\n *\n * Domain: `citizenship` · Version: 1.0.0 · Entries: 253\n */\nexport const CitizenshipKeys = {\n missingness_root: \"182-000-000-000-000-000-000\",\n unknown: \"182-000-000-000-000-000-001\",\n anonymous: \"182-000-000-000-000-000-002\",\n data_not_collected: \"182-000-000-000-000-000-003\",\n afghanistan: \"182-001-000-000-000-000-000\",\n aland_islands: \"182-002-000-000-000-000-000\",\n albania: \"182-003-000-000-000-000-000\",\n algeria: \"182-004-000-000-000-000-000\",\n american_samoa: \"182-005-000-000-000-000-000\",\n andorra: \"182-006-000-000-000-000-000\",\n angola: \"182-007-000-000-000-000-000\",\n anguilla: \"182-008-000-000-000-000-000\",\n antarctica: \"182-009-000-000-000-000-000\",\n antigua_and_barbuda: \"182-010-000-000-000-000-000\",\n argentina: \"182-011-000-000-000-000-000\",\n armenia: \"182-012-000-000-000-000-000\",\n aruba: \"182-013-000-000-000-000-000\",\n australia: \"182-014-000-000-000-000-000\",\n austria: \"182-015-000-000-000-000-000\",\n azerbaijan: \"182-016-000-000-000-000-000\",\n bahamas: \"182-017-000-000-000-000-000\",\n bahrain: \"182-018-000-000-000-000-000\",\n bangladesh: \"182-019-000-000-000-000-000\",\n barbados: \"182-020-000-000-000-000-000\",\n belarus: \"182-021-000-000-000-000-000\",\n belgium: \"182-022-000-000-000-000-000\",\n belize: \"182-023-000-000-000-000-000\",\n benin: \"182-024-000-000-000-000-000\",\n bermuda: \"182-025-000-000-000-000-000\",\n bhutan: \"182-026-000-000-000-000-000\",\n bolivia_plurinational_state_of: \"182-027-000-000-000-000-000\",\n bonaire_sint_eustatius_and_saba: \"182-028-000-000-000-000-000\",\n bosnia_and_herzegovina: \"182-029-000-000-000-000-000\",\n botswana: \"182-030-000-000-000-000-000\",\n bouvet_island: \"182-031-000-000-000-000-000\",\n brazil: \"182-032-000-000-000-000-000\",\n british_indian_ocean_territory: \"182-033-000-000-000-000-000\",\n brunei_darussalam: \"182-034-000-000-000-000-000\",\n bulgaria: \"182-035-000-000-000-000-000\",\n burkina_faso: \"182-036-000-000-000-000-000\",\n burundi: \"182-037-000-000-000-000-000\",\n cambodia: \"182-038-000-000-000-000-000\",\n cameroon: \"182-039-000-000-000-000-000\",\n canada: \"182-040-000-000-000-000-000\",\n cape_verde: \"182-041-000-000-000-000-000\",\n cayman_islands: \"182-042-000-000-000-000-000\",\n central_african_republic: \"182-043-000-000-000-000-000\",\n chad: \"182-044-000-000-000-000-000\",\n chile: \"182-045-000-000-000-000-000\",\n china: \"182-046-000-000-000-000-000\",\n christmas_island: \"182-047-000-000-000-000-000\",\n cocos_keeling_islands: \"182-048-000-000-000-000-000\",\n colombia: \"182-049-000-000-000-000-000\",\n comoros: \"182-050-000-000-000-000-000\",\n congo: \"182-051-000-000-000-000-000\",\n congo_the_democratic_republic_of_the: \"182-052-000-000-000-000-000\",\n cook_islands: \"182-053-000-000-000-000-000\",\n costa_rica: \"182-054-000-000-000-000-000\",\n cote_d_ivoire: \"182-055-000-000-000-000-000\",\n croatia: \"182-056-000-000-000-000-000\",\n cuba: \"182-057-000-000-000-000-000\",\n curacao: \"182-058-000-000-000-000-000\",\n cyprus: \"182-059-000-000-000-000-000\",\n czech_republic: \"182-060-000-000-000-000-000\",\n denmark: \"182-061-000-000-000-000-000\",\n djibouti: \"182-062-000-000-000-000-000\",\n dominica: \"182-063-000-000-000-000-000\",\n dominican_republic: \"182-064-000-000-000-000-000\",\n ecuador: \"182-065-000-000-000-000-000\",\n egypt: \"182-066-000-000-000-000-000\",\n el_salvador: \"182-067-000-000-000-000-000\",\n equatorial_guinea: \"182-068-000-000-000-000-000\",\n eritrea: \"182-069-000-000-000-000-000\",\n estonia: \"182-070-000-000-000-000-000\",\n ethiopia: \"182-071-000-000-000-000-000\",\n falkland_islands_malvinas: \"182-072-000-000-000-000-000\",\n faroe_islands: \"182-073-000-000-000-000-000\",\n fiji: \"182-074-000-000-000-000-000\",\n finland: \"182-075-000-000-000-000-000\",\n france: \"182-076-000-000-000-000-000\",\n french_guiana: \"182-077-000-000-000-000-000\",\n french_polynesia: \"182-078-000-000-000-000-000\",\n french_southern_territories: \"182-079-000-000-000-000-000\",\n gabon: \"182-080-000-000-000-000-000\",\n gambia: \"182-081-000-000-000-000-000\",\n georgia: \"182-082-000-000-000-000-000\",\n ghana: \"182-083-000-000-000-000-000\",\n germany: \"182-084-000-000-000-000-000\",\n gibraltar: \"182-085-000-000-000-000-000\",\n greece: \"182-086-000-000-000-000-000\",\n greenland: \"182-087-000-000-000-000-000\",\n grenada: \"182-088-000-000-000-000-000\",\n guadeloupe: \"182-089-000-000-000-000-000\",\n guam: \"182-090-000-000-000-000-000\",\n guatemala: \"182-091-000-000-000-000-000\",\n guernsey: \"182-092-000-000-000-000-000\",\n guinea: \"182-093-000-000-000-000-000\",\n guinea_bissau: \"182-094-000-000-000-000-000\",\n guyana: \"182-095-000-000-000-000-000\",\n haiti: \"182-096-000-000-000-000-000\",\n heard_island_and_mcdonald_islands: \"182-097-000-000-000-000-000\",\n holy_see_vatican_city_state: \"182-098-000-000-000-000-000\",\n honduras: \"182-099-000-000-000-000-000\",\n hong_kong: \"182-100-000-000-000-000-000\",\n hungary: \"182-101-000-000-000-000-000\",\n iceland: \"182-102-000-000-000-000-000\",\n india: \"182-103-000-000-000-000-000\",\n indonesia: \"182-104-000-000-000-000-000\",\n iran_islamic_republic_of: \"182-105-000-000-000-000-000\",\n iraq: \"182-106-000-000-000-000-000\",\n ireland: \"182-107-000-000-000-000-000\",\n isle_of_man: \"182-108-000-000-000-000-000\",\n israel: \"182-109-000-000-000-000-000\",\n italy: \"182-110-000-000-000-000-000\",\n jamaica: \"182-111-000-000-000-000-000\",\n jersey: \"182-112-000-000-000-000-000\",\n japan: \"182-113-000-000-000-000-000\",\n jordan: \"182-114-000-000-000-000-000\",\n kazakhstan: \"182-115-000-000-000-000-000\",\n kenya: \"182-116-000-000-000-000-000\",\n kiribati: \"182-117-000-000-000-000-000\",\n korea_democratic_people_s_republic_of: \"182-118-000-000-000-000-000\",\n korea_republic_of: \"182-119-000-000-000-000-000\",\n kuwait: \"182-120-000-000-000-000-000\",\n kyrgyzstan: \"182-121-000-000-000-000-000\",\n lao_people_s_democratic_republic: \"182-122-000-000-000-000-000\",\n latvia: \"182-123-000-000-000-000-000\",\n lebanon: \"182-124-000-000-000-000-000\",\n lesotho: \"182-125-000-000-000-000-000\",\n liberia: \"182-126-000-000-000-000-000\",\n libya: \"182-127-000-000-000-000-000\",\n liechtenstein: \"182-128-000-000-000-000-000\",\n lithuania: \"182-129-000-000-000-000-000\",\n luxembourg: \"182-130-000-000-000-000-000\",\n macao: \"182-131-000-000-000-000-000\",\n macedonia_the_former_yugoslav_republic_of: \"182-132-000-000-000-000-000\",\n madagascar: \"182-133-000-000-000-000-000\",\n malawi: \"182-134-000-000-000-000-000\",\n malaysia: \"182-135-000-000-000-000-000\",\n maldives: \"182-136-000-000-000-000-000\",\n mali: \"182-137-000-000-000-000-000\",\n malta: \"182-138-000-000-000-000-000\",\n marshall_islands: \"182-139-000-000-000-000-000\",\n martinique: \"182-140-000-000-000-000-000\",\n mauritania: \"182-141-000-000-000-000-000\",\n mauritius: \"182-142-000-000-000-000-000\",\n mayotte: \"182-143-000-000-000-000-000\",\n mexico: \"182-144-000-000-000-000-000\",\n micronesia_federated_states_of: \"182-145-000-000-000-000-000\",\n moldova_republic_of: \"182-146-000-000-000-000-000\",\n monaco: \"182-147-000-000-000-000-000\",\n mongolia: \"182-148-000-000-000-000-000\",\n montenegro: \"182-149-000-000-000-000-000\",\n montserrat: \"182-150-000-000-000-000-000\",\n morocco: \"182-151-000-000-000-000-000\",\n mozambique: \"182-152-000-000-000-000-000\",\n myanmar: \"182-153-000-000-000-000-000\",\n namibia: \"182-154-000-000-000-000-000\",\n nauru: \"182-155-000-000-000-000-000\",\n nepal: \"182-156-000-000-000-000-000\",\n netherlands: \"182-157-000-000-000-000-000\",\n new_caledonia: \"182-158-000-000-000-000-000\",\n new_zealand: \"182-159-000-000-000-000-000\",\n nicaragua: \"182-160-000-000-000-000-000\",\n niger: \"182-161-000-000-000-000-000\",\n nigeria: \"182-162-000-000-000-000-000\",\n niue: \"182-163-000-000-000-000-000\",\n norfolk_island: \"182-164-000-000-000-000-000\",\n northern_mariana_islands: \"182-165-000-000-000-000-000\",\n norway: \"182-166-000-000-000-000-000\",\n oman: \"182-167-000-000-000-000-000\",\n pakistan: \"182-168-000-000-000-000-000\",\n palau: \"182-169-000-000-000-000-000\",\n palestine_state_of: \"182-170-000-000-000-000-000\",\n panama: \"182-171-000-000-000-000-000\",\n papua_new_guinea: \"182-172-000-000-000-000-000\",\n paraguay: \"182-173-000-000-000-000-000\",\n peru: \"182-174-000-000-000-000-000\",\n philippines: \"182-175-000-000-000-000-000\",\n pitcairn: \"182-176-000-000-000-000-000\",\n poland: \"182-177-000-000-000-000-000\",\n portugal: \"182-178-000-000-000-000-000\",\n puerto_rico: \"182-179-000-000-000-000-000\",\n qatar: \"182-180-000-000-000-000-000\",\n reunion: \"182-181-000-000-000-000-000\",\n romania: \"182-182-000-000-000-000-000\",\n russian_federation: \"182-183-000-000-000-000-000\",\n rwanda: \"182-184-000-000-000-000-000\",\n saint_barthelemy: \"182-185-000-000-000-000-000\",\n saint_helena_ascension_and_tristan_da_cunha: \"182-186-000-000-000-000-000\",\n saint_kitts_and_nevis: \"182-187-000-000-000-000-000\",\n saint_lucia: \"182-188-000-000-000-000-000\",\n saint_martin_french_part: \"182-189-000-000-000-000-000\",\n saint_pierre_and_miquelon: \"182-190-000-000-000-000-000\",\n saint_vincent_and_the_grenadines: \"182-191-000-000-000-000-000\",\n samoa: \"182-192-000-000-000-000-000\",\n san_marino: \"182-193-000-000-000-000-000\",\n sao_tome_and_principe: \"182-194-000-000-000-000-000\",\n saudi_arabia: \"182-195-000-000-000-000-000\",\n senegal: \"182-196-000-000-000-000-000\",\n serbia: \"182-197-000-000-000-000-000\",\n sierra_leone: \"182-198-000-000-000-000-000\",\n seychelles: \"182-199-000-000-000-000-000\",\n singapore: \"182-200-000-000-000-000-000\",\n sint_maarten_dutch_part: \"182-201-000-000-000-000-000\",\n slovakia: \"182-202-000-000-000-000-000\",\n slovenia: \"182-203-000-000-000-000-000\",\n solomon_islands: \"182-204-000-000-000-000-000\",\n somalia: \"182-205-000-000-000-000-000\",\n south_africa: \"182-206-000-000-000-000-000\",\n south_georgia_and_the_south_sandwich_islands: \"182-207-000-000-000-000-000\",\n spain: \"182-208-000-000-000-000-000\",\n south_sudan: \"182-209-000-000-000-000-000\",\n sri_lanka: \"182-210-000-000-000-000-000\",\n sudan: \"182-211-000-000-000-000-000\",\n suriname: \"182-212-000-000-000-000-000\",\n svalbard_and_jan_mayen: \"182-213-000-000-000-000-000\",\n eswatini: \"182-214-000-000-000-000-000\",\n sweden: \"182-215-000-000-000-000-000\",\n switzerland: \"182-216-000-000-000-000-000\",\n syrian_arab_republic: \"182-217-000-000-000-000-000\",\n taiwan_province_of_china: \"182-218-000-000-000-000-000\",\n tajikistan: \"182-219-000-000-000-000-000\",\n thailand: \"182-220-000-000-000-000-000\",\n tanzania_united_republic_of: \"182-221-000-000-000-000-000\",\n timor_leste: \"182-222-000-000-000-000-000\",\n togo: \"182-223-000-000-000-000-000\",\n tokelau: \"182-224-000-000-000-000-000\",\n tonga: \"182-225-000-000-000-000-000\",\n trinidad_and_tobago: \"182-226-000-000-000-000-000\",\n tunisia: \"182-227-000-000-000-000-000\",\n turkey: \"182-228-000-000-000-000-000\",\n turkmenistan: \"182-229-000-000-000-000-000\",\n turks_and_caicos_islands: \"182-230-000-000-000-000-000\",\n tuvalu: \"182-231-000-000-000-000-000\",\n uganda: \"182-232-000-000-000-000-000\",\n ukraine: \"182-233-000-000-000-000-000\",\n united_arab_emirates: \"182-234-000-000-000-000-000\",\n united_kingdom: \"182-235-000-000-000-000-000\",\n united_states: \"182-236-000-000-000-000-000\",\n united_states_minor_outlying_islands: \"182-237-000-000-000-000-000\",\n uruguay: \"182-238-000-000-000-000-000\",\n uzbekistan: \"182-239-000-000-000-000-000\",\n vanuatu: \"182-240-000-000-000-000-000\",\n venezuela_bolivarian_republic_of: \"182-241-000-000-000-000-000\",\n viet_nam: \"182-242-000-000-000-000-000\",\n virgin_islands_british: \"182-243-000-000-000-000-000\",\n virgin_islands_u_s: \"182-244-000-000-000-000-000\",\n wallis_and_futuna: \"182-245-000-000-000-000-000\",\n western_sahara: \"182-246-000-000-000-000-000\",\n yemen: \"182-247-000-000-000-000-000\",\n zambia: \"182-248-000-000-000-000-000\",\n zimbabwe: \"182-249-000-000-000-000-000\",\n} as const;\n\nexport type CitizenshipKey = keyof typeof CitizenshipKeys;\n\n/**\n * 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.\n *\n * Domain: `countries` · Version: 1.0.0 · Entries: 254\n */\nexport const CountryKeys = {\n missingness_root: \"181-000-000-000-000-000-000\",\n unknown: \"181-000-000-000-000-000-001\",\n anonymous: \"181-000-000-000-000-000-002\",\n data_not_collected: \"181-000-000-000-000-000-003\",\n afghanistan: \"181-001-000-000-000-000-000\",\n aland_islands: \"181-002-000-000-000-000-000\",\n albania: \"181-003-000-000-000-000-000\",\n algeria: \"181-004-000-000-000-000-000\",\n american_samoa: \"181-005-000-000-000-000-000\",\n andorra: \"181-006-000-000-000-000-000\",\n angola: \"181-007-000-000-000-000-000\",\n anguilla: \"181-008-000-000-000-000-000\",\n antarctica: \"181-009-000-000-000-000-000\",\n antigua_and_barbuda: \"181-010-000-000-000-000-000\",\n argentina: \"181-011-000-000-000-000-000\",\n armenia: \"181-012-000-000-000-000-000\",\n aruba: \"181-013-000-000-000-000-000\",\n australia: \"181-014-000-000-000-000-000\",\n austria: \"181-015-000-000-000-000-000\",\n azerbaijan: \"181-016-000-000-000-000-000\",\n bahamas: \"181-017-000-000-000-000-000\",\n bahrain: \"181-018-000-000-000-000-000\",\n bangladesh: \"181-019-000-000-000-000-000\",\n barbados: \"181-020-000-000-000-000-000\",\n belarus: \"181-021-000-000-000-000-000\",\n belgium: \"181-022-000-000-000-000-000\",\n belize: \"181-023-000-000-000-000-000\",\n benin: \"181-024-000-000-000-000-000\",\n bermuda: \"181-025-000-000-000-000-000\",\n bhutan: \"181-026-000-000-000-000-000\",\n bolivia_plurinational_state_of: \"181-027-000-000-000-000-000\",\n bonaire_sint_eustatius_and_saba: \"181-028-000-000-000-000-000\",\n bosnia_and_herzegovina: \"181-029-000-000-000-000-000\",\n botswana: \"181-030-000-000-000-000-000\",\n bouvet_island: \"181-031-000-000-000-000-000\",\n brazil: \"181-032-000-000-000-000-000\",\n british_indian_ocean_territory: \"181-033-000-000-000-000-000\",\n brunei_darussalam: \"181-034-000-000-000-000-000\",\n bulgaria: \"181-035-000-000-000-000-000\",\n burkina_faso: \"181-036-000-000-000-000-000\",\n burundi: \"181-037-000-000-000-000-000\",\n cambodia: \"181-038-000-000-000-000-000\",\n cameroon: \"181-039-000-000-000-000-000\",\n canada: \"181-040-000-000-000-000-000\",\n cape_verde: \"181-041-000-000-000-000-000\",\n cayman_islands: \"181-042-000-000-000-000-000\",\n central_african_republic: \"181-043-000-000-000-000-000\",\n chad: \"181-044-000-000-000-000-000\",\n chile: \"181-045-000-000-000-000-000\",\n china: \"181-046-000-000-000-000-000\",\n christmas_island: \"181-047-000-000-000-000-000\",\n cocos_keeling_islands: \"181-048-000-000-000-000-000\",\n colombia: \"181-049-000-000-000-000-000\",\n comoros: \"181-050-000-000-000-000-000\",\n congo: \"181-051-000-000-000-000-000\",\n congo_the_democratic_republic_of_the: \"181-052-000-000-000-000-000\",\n cook_islands: \"181-053-000-000-000-000-000\",\n costa_rica: \"181-054-000-000-000-000-000\",\n cote_d_ivoire: \"181-055-000-000-000-000-000\",\n croatia: \"181-056-000-000-000-000-000\",\n cuba: \"181-057-000-000-000-000-000\",\n curacao: \"181-058-000-000-000-000-000\",\n cyprus: \"181-059-000-000-000-000-000\",\n czech_republic: \"181-060-000-000-000-000-000\",\n denmark: \"181-061-000-000-000-000-000\",\n djibouti: \"181-062-000-000-000-000-000\",\n dominica: \"181-063-000-000-000-000-000\",\n dominican_republic: \"181-064-000-000-000-000-000\",\n ecuador: \"181-065-000-000-000-000-000\",\n egypt: \"181-066-000-000-000-000-000\",\n el_salvador: \"181-067-000-000-000-000-000\",\n equatorial_guinea: \"181-068-000-000-000-000-000\",\n eritrea: \"181-069-000-000-000-000-000\",\n estonia: \"181-070-000-000-000-000-000\",\n ethiopia: \"181-071-000-000-000-000-000\",\n falkland_islands_malvinas: \"181-072-000-000-000-000-000\",\n faroe_islands: \"181-073-000-000-000-000-000\",\n fiji: \"181-074-000-000-000-000-000\",\n finland: \"181-075-000-000-000-000-000\",\n france: \"181-076-000-000-000-000-000\",\n french_guiana: \"181-077-000-000-000-000-000\",\n french_polynesia: \"181-078-000-000-000-000-000\",\n french_southern_territories: \"181-079-000-000-000-000-000\",\n gabon: \"181-080-000-000-000-000-000\",\n gambia: \"181-081-000-000-000-000-000\",\n georgia: \"181-082-000-000-000-000-000\",\n germany: \"181-083-000-000-000-000-000\",\n ghana: \"181-084-000-000-000-000-000\",\n gibraltar: \"181-085-000-000-000-000-000\",\n greece: \"181-086-000-000-000-000-000\",\n greenland: \"181-087-000-000-000-000-000\",\n grenada: \"181-088-000-000-000-000-000\",\n guadeloupe: \"181-089-000-000-000-000-000\",\n guam: \"181-090-000-000-000-000-000\",\n guatemala: \"181-091-000-000-000-000-000\",\n guernsey: \"181-092-000-000-000-000-000\",\n guinea: \"181-093-000-000-000-000-000\",\n guinea_bissau: \"181-094-000-000-000-000-000\",\n guyana: \"181-095-000-000-000-000-000\",\n haiti: \"181-096-000-000-000-000-000\",\n heard_island_and_mcdonald_islands: \"181-097-000-000-000-000-000\",\n holy_see_vatican_city_state: \"181-098-000-000-000-000-000\",\n honduras: \"181-099-000-000-000-000-000\",\n hong_kong: \"181-100-000-000-000-000-000\",\n hungary: \"181-101-000-000-000-000-000\",\n iceland: \"181-102-000-000-000-000-000\",\n india: \"181-103-000-000-000-000-000\",\n indonesia: \"181-104-000-000-000-000-000\",\n iran_islamic_republic_of: \"181-105-000-000-000-000-000\",\n iraq: \"181-106-000-000-000-000-000\",\n ireland: \"181-107-000-000-000-000-000\",\n israel: \"181-108-000-000-000-000-000\",\n isle_of_man: \"181-109-000-000-000-000-000\",\n italy: \"181-110-000-000-000-000-000\",\n jamaica: \"181-111-000-000-000-000-000\",\n japan: \"181-112-000-000-000-000-000\",\n jersey: \"181-113-000-000-000-000-000\",\n jordan: \"181-114-000-000-000-000-000\",\n kazakhstan: \"181-115-000-000-000-000-000\",\n kenya: \"181-116-000-000-000-000-000\",\n kiribati: \"181-117-000-000-000-000-000\",\n korea_democratic_people_s_republic_of: \"181-118-000-000-000-000-000\",\n korea_republic_of: \"181-119-000-000-000-000-000\",\n kuwait: \"181-120-000-000-000-000-000\",\n kyrgyzstan: \"181-121-000-000-000-000-000\",\n latvia: \"181-122-000-000-000-000-000\",\n lao_people_s_democratic_republic: \"181-123-000-000-000-000-000\",\n lebanon: \"181-124-000-000-000-000-000\",\n lesotho: \"181-125-000-000-000-000-000\",\n liberia: \"181-126-000-000-000-000-000\",\n libya: \"181-127-000-000-000-000-000\",\n liechtenstein: \"181-128-000-000-000-000-000\",\n lithuania: \"181-129-000-000-000-000-000\",\n luxembourg: \"181-130-000-000-000-000-000\",\n macao: \"181-131-000-000-000-000-000\",\n macedonia_the_former_yugoslav_republic_of: \"181-132-000-000-000-000-000\",\n madagascar: \"181-133-000-000-000-000-000\",\n malawi: \"181-134-000-000-000-000-000\",\n malaysia: \"181-135-000-000-000-000-000\",\n maldives: \"181-136-000-000-000-000-000\",\n mali: \"181-137-000-000-000-000-000\",\n malta: \"181-138-000-000-000-000-000\",\n marshall_islands: \"181-139-000-000-000-000-000\",\n martinique: \"181-140-000-000-000-000-000\",\n mauritania: \"181-141-000-000-000-000-000\",\n mauritius: \"181-142-000-000-000-000-000\",\n mayotte: \"181-143-000-000-000-000-000\",\n mexico: \"181-144-000-000-000-000-000\",\n micronesia_federated_states_of: \"181-145-000-000-000-000-000\",\n moldova_republic_of: \"181-146-000-000-000-000-000\",\n monaco: \"181-147-000-000-000-000-000\",\n mongolia: \"181-148-000-000-000-000-000\",\n montenegro: \"181-149-000-000-000-000-000\",\n montserrat: \"181-150-000-000-000-000-000\",\n morocco: \"181-151-000-000-000-000-000\",\n mozambique: \"181-152-000-000-000-000-000\",\n myanmar: \"181-153-000-000-000-000-000\",\n namibia: \"181-154-000-000-000-000-000\",\n nauru: \"181-155-000-000-000-000-000\",\n nepal: \"181-156-000-000-000-000-000\",\n netherlands: \"181-157-000-000-000-000-000\",\n new_caledonia: \"181-158-000-000-000-000-000\",\n new_zealand: \"181-159-000-000-000-000-000\",\n nicaragua: \"181-160-000-000-000-000-000\",\n niger: \"181-161-000-000-000-000-000\",\n nigeria: \"181-162-000-000-000-000-000\",\n niue: \"181-163-000-000-000-000-000\",\n norfolk_island: \"181-164-000-000-000-000-000\",\n northern_mariana_islands: \"181-165-000-000-000-000-000\",\n norway: \"181-166-000-000-000-000-000\",\n oman: \"181-167-000-000-000-000-000\",\n pakistan: \"181-168-000-000-000-000-000\",\n palau: \"181-169-000-000-000-000-000\",\n palestine_state_of: \"181-170-000-000-000-000-000\",\n panama: \"181-171-000-000-000-000-000\",\n papua_new_guinea: \"181-172-000-000-000-000-000\",\n paraguay: \"181-173-000-000-000-000-000\",\n peru: \"181-174-000-000-000-000-000\",\n philippines: \"181-175-000-000-000-000-000\",\n pitcairn: \"181-176-000-000-000-000-000\",\n poland: \"181-177-000-000-000-000-000\",\n portugal: \"181-178-000-000-000-000-000\",\n puerto_rico: \"181-179-000-000-000-000-000\",\n qatar: \"181-180-000-000-000-000-000\",\n reunion: \"181-181-000-000-000-000-000\",\n romania: \"181-182-000-000-000-000-000\",\n russian_federation: \"181-183-000-000-000-000-000\",\n saint_barthelemy: \"181-184-000-000-000-000-000\",\n rwanda: \"181-185-000-000-000-000-000\",\n saint_helena_ascension_and_tristan_da_cunha: \"181-186-000-000-000-000-000\",\n saint_kitts_and_nevis: \"181-187-000-000-000-000-000\",\n saint_lucia: \"181-188-000-000-000-000-000\",\n saint_martin_french_part: \"181-189-000-000-000-000-000\",\n saint_pierre_and_miquelon: \"181-190-000-000-000-000-000\",\n saint_vincent_and_the_grenadines: \"181-191-000-000-000-000-000\",\n samoa: \"181-192-000-000-000-000-000\",\n san_marino: \"181-193-000-000-000-000-000\",\n sao_tome_and_principe: \"181-194-000-000-000-000-000\",\n saudi_arabia: \"181-195-000-000-000-000-000\",\n senegal: \"181-196-000-000-000-000-000\",\n serbia: \"181-197-000-000-000-000-000\",\n seychelles: \"181-198-000-000-000-000-000\",\n sierra_leone: \"181-199-000-000-000-000-000\",\n singapore: \"181-200-000-000-000-000-000\",\n sint_maarten_dutch_part: \"181-201-000-000-000-000-000\",\n slovakia: \"181-202-000-000-000-000-000\",\n slovenia: \"181-203-000-000-000-000-000\",\n solomon_islands: \"181-204-000-000-000-000-000\",\n somalia: \"181-205-000-000-000-000-000\",\n south_africa: \"181-206-000-000-000-000-000\",\n south_georgia_and_the_south_sandwich_islands: \"181-207-000-000-000-000-000\",\n south_sudan: \"181-208-000-000-000-000-000\",\n spain: \"181-209-000-000-000-000-000\",\n sri_lanka: \"181-210-000-000-000-000-000\",\n sudan: \"181-211-000-000-000-000-000\",\n suriname: \"181-212-000-000-000-000-000\",\n svalbard_and_jan_mayen: \"181-213-000-000-000-000-000\",\n eswatini: \"181-214-000-000-000-000-000\",\n switzerland: \"181-215-000-000-000-000-000\",\n sweden: \"181-216-000-000-000-000-000\",\n syrian_arab_republic: \"181-217-000-000-000-000-000\",\n taiwan_province_of_china: \"181-218-000-000-000-000-000\",\n tajikistan: \"181-219-000-000-000-000-000\",\n tanzania_united_republic_of: \"181-220-000-000-000-000-000\",\n thailand: \"181-221-000-000-000-000-000\",\n timor_leste: \"181-222-000-000-000-000-000\",\n togo: \"181-223-000-000-000-000-000\",\n tokelau: \"181-224-000-000-000-000-000\",\n tonga: \"181-225-000-000-000-000-000\",\n trinidad_and_tobago: \"181-226-000-000-000-000-000\",\n tunisia: \"181-227-000-000-000-000-000\",\n turkey: \"181-228-000-000-000-000-000\",\n turkmenistan: \"181-229-000-000-000-000-000\",\n turks_and_caicos_islands: \"181-230-000-000-000-000-000\",\n uganda: \"181-231-000-000-000-000-000\",\n tuvalu: \"181-232-000-000-000-000-000\",\n ukraine: \"181-233-000-000-000-000-000\",\n united_arab_emirates: \"181-234-000-000-000-000-000\",\n united_kingdom: \"181-235-000-000-000-000-000\",\n united_states: \"181-236-000-000-000-000-000\",\n united_states_minor_outlying_islands: \"181-237-000-000-000-000-000\",\n uruguay: \"181-238-000-000-000-000-000\",\n uzbekistan: \"181-239-000-000-000-000-000\",\n vanuatu: \"181-240-000-000-000-000-000\",\n venezuela_bolivarian_republic_of: \"181-241-000-000-000-000-000\",\n viet_nam: \"181-242-000-000-000-000-000\",\n virgin_islands_british: \"181-243-000-000-000-000-000\",\n virgin_islands_u_s: \"181-244-000-000-000-000-000\",\n wallis_and_futuna: \"181-245-000-000-000-000-000\",\n western_sahara: \"181-246-000-000-000-000-000\",\n yemen: \"181-247-000-000-000-000-000\",\n zambia: \"181-248-000-000-000-000-000\",\n zimbabwe: \"181-249-000-000-000-000-000\",\n non_us_unspecified: \"181-250-000-000-000-000-000\",\n} as const;\n\nexport type CountryKey = keyof typeof CountryKeys;\n\n/**\n * Key → positional code map for the `determination_helper_categories` CVC domain (CVC-231, provisional-pending-notion-ratification). The four-section frame an advocate reasons through when assessing a trafficking determination — § I Subject and Scope (5) · § II Activity (20) · § III Means (24) · § IV Status (4) = 53 rows, all selectable, plus the authored 3-value missingness set. `coding_mode: multi_label` — one event may carry several category codes at once (canonical example: nude photos in an escort ad = `2.2.1` + `2.1.3`), so consumers MUST model this as a multi-select. Positional codes are DERIVED from the canonical DOTTED codes rather than minted: each dotted component becomes one 3-digit segment, left to right (`2.1.1` → `231-002-001-001-000-000-000`), and the dotted code also rides on every entry verbatim as `canonicalCode` — reconcile the canonical `feeds_dh_subdomain_crossref` on that field, not on the key.\n *\n * Domain: `determination_helper_categories` · Version: 1.0.0 · Entries: 57\n */\nexport const DeterminationHelperCategoryKeys = {\n missingness_root: \"231-000-000-000-000-000-000\",\n unknown: \"231-000-000-000-000-000-001\",\n anonymous: \"231-000-000-000-000-000-002\",\n data_not_collected: \"231-000-000-000-000-000-003\",\n subject_and_scope: \"231-001-000-000-000-000-000\",\n subjects: \"231-001-001-000-000-000-000\",\n roles: \"231-001-002-000-000-000-000\",\n time_scope: \"231-001-003-000-000-000-000\",\n age: \"231-001-004-000-000-000-000\",\n activity_action: \"231-002-000-000-000-000-000\",\n commercial_sex_activity: \"231-002-001-000-000-000-000\",\n commercial_sex_act_csa_linked_sex_act: \"231-002-001-001-000-000-000\",\n commercial_sex_solicitation_booking_or_arrangement: \"231-002-001-002-000-000-000\",\n commercial_sex_advertising_promotion: \"231-002-001-003-000-000-000\",\n other_commercial_sex_activity: \"231-002-001-004-000-000-000\",\n sexualized_content_sexual_performance_sexual_communications: \"231-002-002-000-000-000-000\",\n sexually_explicit_photo_video_image_activity: \"231-002-002-001-000-000-000\",\n online_sexual_performance_interactive_sexual_content: \"231-002-002-002-000-000-000\",\n in_person_sexualized_performance_appearance_based_activity: \"231-002-002-003-000-000-000\",\n sexual_or_romantic_communications_with_exploitation_relevance: \"231-002-002-004-000-000-000\",\n other_sexualized_content_performance_or_communication: \"231-002-002-005-000-000-000\",\n sexual_victimization_abuse: \"231-002-003-000-000-000-000\",\n labor_or_services: \"231-002-004-000-000-000-000\",\n debt_related_work_pledged_services_debt_repayment_arrangement: \"231-002-004-001-000-000-000\",\n adverse_work_labor_conditions: \"231-002-004-002-000-000-000\",\n criminalized_or_illicit_tasks: \"231-002-004-003-000-000-000\",\n recruitment_monitoring_or_control_of_others_as_assigned_activity: \"231-002-004-004-000-000-000\",\n other_labor_or_services_activity: \"231-002-004-005-000-000-000\",\n facilitation_operational_activities: \"231-002-005-000-000-000-000\",\n victim_vulnerabilities: \"231-003-000-000-000-000-000\",\n industry_novelty: \"231-003-001-000-000-000-000\",\n childhood_household_challenges: \"231-003-002-000-000-000-000\",\n experienced_traumas: \"231-003-003-000-000-000-000\",\n socioeconomic_circumstances: \"231-003-004-000-000-000-000\",\n behavioral_health_risks: \"231-003-005-000-000-000-000\",\n aggregated_prior_risk: \"231-003-006-000-000-000-000\",\n scheme_plan_pattern: \"231-004-000-000-000-000-000\",\n control: \"231-004-001-000-000-000-000\",\n deprivation: \"231-004-002-000-000-000-000\",\n resistance_reduction: \"231-004-003-000-000-000-000\",\n climate_of_fear: \"231-004-004-000-000-000-000\",\n threats: \"231-004-005-000-000-000-000\",\n harm_consequence_to_fear: \"231-005-000-000-000-000-000\",\n economic_housing: \"231-005-001-000-000-000-000\",\n family: \"231-005-002-000-000-000-000\",\n physical_sexual_emotional: \"231-005-003-000-000-000-000\",\n threat_of_harm: \"231-005-004-000-000-000-000\",\n legal_immigration: \"231-005-005-000-000-000-000\",\n fraud_financial_exploitation: \"231-006-000-000-000-000-000\",\n unusual_work_circumstances: \"231-006-001-000-000-000-000\",\n exploitative_working_conditions: \"231-006-002-000-000-000-000\",\n wage_earnings_exploitation: \"231-006-003-000-000-000-000\",\n deception_about_work: \"231-006-004-000-000-000-000\",\n victim_offender_status: \"231-007-000-000-000-000-000\",\n ht_determination_exploitation_type: \"231-007-001-000-000-000-000\",\n victim_status: \"231-007-002-000-000-000-000\",\n offender_status: \"231-007-003-000-000-000-000\",\n} as const;\n\nexport type DeterminationHelperCategoryKey = keyof typeof DeterminationHelperCategoryKeys;\n\n/**\n * 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.\n *\n * Domain: `trafficking_relevant_role` · Version: 1.0.0 · Entries: 8\n */\nexport const TraffickingRelevantRoleKeys = {\n missingness_root: \"235-000-000-000-000-000-000\",\n unknown: \"235-000-000-000-000-000-001\",\n anonymous: \"235-000-000-000-000-000-002\",\n data_not_collected: \"235-000-000-000-000-000-003\",\n worker_provider: \"235-001-000-000-000-000-000\",\n facilitator_controller: \"235-002-000-000-000-000-000\",\n buyer_client_direct_beneficiary: \"235-003-000-000-000-000-000\",\n other_associate: \"235-004-000-000-000-000-000\",\n} as const;\n\nexport type TraffickingRelevantRoleKey = keyof typeof TraffickingRelevantRoleKeys;\n\n/**\n * Key → positional code map for the `why_nots` CVC domain (CVC-219, canonical). WHY a needed referral/service was not arranged. Two levels: 7 selectable buckets (the stored `closed_why_not_code`) + 21 selectable subtype leaves (the optional `closed_why_not_subcode`).\n *\n * Domain: `why_nots` · Version: 1.0.0 · Entries: 32\n */\nexport const WhyNotKeys = {\n missingness_root: \"219-000-000-000-000-000-000\",\n unknown: \"219-000-000-000-000-000-001\",\n anonymous: \"219-000-000-000-000-000-002\",\n data_not_collected: \"219-000-000-000-000-000-003\",\n bkt_fit: \"219-001-000-000-000-000-000\",\n fit_mh: \"219-001-001-000-000-000-000\",\n fit_sud: \"219-001-002-000-000-000-000\",\n fit_other: \"219-001-003-000-000-000-000\",\n bkt_access: \"219-002-000-000-000-000-000\",\n access_lang: \"219-002-001-000-000-000-000\",\n access_cult: \"219-002-002-000-000-000-000\",\n access_dis: \"219-002-003-000-000-000-000\",\n access_deaf: \"219-002-004-000-000-000-000\",\n access_cc: \"219-002-005-000-000-000-000\",\n access_trans: \"219-002-006-000-000-000-000\",\n access_hours: \"219-002-007-000-000-000-000\",\n bkt_cap: \"219-003-000-000-000-000-000\",\n bkt_res: \"219-004-000-000-000-000-000\",\n bkt_elig: \"219-005-000-000-000-000-000\",\n bkt_choice: \"219-006-000-000-000-000-000\",\n decl: \"219-006-001-000-000-000-000\",\n rules: \"219-006-002-000-000-000-000\",\n selfres: \"219-006-003-000-000-000-000\",\n bkt_other: \"219-007-000-000-000-000-000\",\n int: \"219-007-001-000-000-000-000\",\n xfer: \"219-007-002-000-000-000-000\",\n def: \"219-007-003-000-000-000-000\",\n noresp: \"219-007-004-000-000-000-000\",\n safe: \"219-007-005-000-000-000-000\",\n coi: \"219-007-006-000-000-000-000\",\n other: \"219-007-007-000-000-000-000\",\n unknc: \"219-007-008-000-000-000-000\",\n} as const;\n\nexport type WhyNotKey = keyof typeof WhyNotKeys;\n\n/**\n * Key → positional code map for the `assertion_status` CVC domain (GDR §10.1 `core - status`; assertion lifecycle status; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `assertion_status` · Version: 1.0.0 · Entries: 7\n */\nexport const AssertionStatusKeys = {\n missingness_root: \"985-000-000-000-000-000-000\",\n unknown: \"985-000-000-000-000-000-001\",\n anonymous: \"985-000-000-000-000-000-002\",\n data_not_collected: \"985-000-000-000-000-000-003\",\n active: \"985-001-000-000-000-000-000\",\n superseded: \"985-002-000-000-000-000-000\",\n retracted: \"985-003-000-000-000-000-000\",\n} as const;\n\nexport type AssertionStatusKey = keyof typeof AssertionStatusKeys;\n\n/**\n * Key → positional code map for the `car_correction_reason` CVC domain (provisional CVC-992; the coded KIND of a CAR correction/retraction — entered_in_error / duplicate / superseded_externally, sourced verbatim from PAVE @pave/domain CAR_CORRECTION_REASONS, plus removed_by_recipient_curation for the CaseShare received-content curation lane, bead pv-p6share-curation-retract-reason-vocab; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `car_correction_reason` · Version: 1.0.0 · Entries: 8\n */\nexport const CarCorrectionReasonKeys = {\n missingness_root: \"992-000-000-000-000-000-000\",\n unknown: \"992-000-000-000-000-000-001\",\n anonymous: \"992-000-000-000-000-000-002\",\n data_not_collected: \"992-000-000-000-000-000-003\",\n entered_in_error: \"992-001-000-000-000-000-000\",\n duplicate: \"992-002-000-000-000-000-000\",\n superseded_externally: \"992-003-000-000-000-000-000\",\n removed_by_recipient_curation: \"992-004-000-000-000-000-000\",\n} as const;\n\nexport type CarCorrectionReasonKey = keyof typeof CarCorrectionReasonKeys;\n\n/**\n * Key → positional code map for the `created_by_system` CVC domain (GDR §10.1 `core - created_by_system`; creating actor class; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `created_by_system` · Version: 1.0.0 · Entries: 8\n */\nexport const CreatedBySystemKeys = {\n missingness_root: \"986-000-000-000-000-000-000\",\n unknown: \"986-000-000-000-000-000-001\",\n anonymous: \"986-000-000-000-000-000-002\",\n data_not_collected: \"986-000-000-000-000-000-003\",\n human: \"986-001-000-000-000-000-000\",\n integration: \"986-002-000-000-000-000-000\",\n rules_engine: \"986-003-000-000-000-000-000\",\n model: \"986-004-000-000-000-000-000\",\n} as const;\n\nexport type CreatedBySystemKey = keyof typeof CreatedBySystemKeys;\n\n/**\n * Key → positional code map for the `subject_type` CVC domain (GDR §10.1 `core - subject_type`; assertion subject type; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `subject_type` · Version: 1.0.0 · Entries: 7\n */\nexport const SubjectTypeKeys = {\n missingness_root: \"987-000-000-000-000-000-000\",\n unknown: \"987-000-000-000-000-000-001\",\n anonymous: \"987-000-000-000-000-000-002\",\n data_not_collected: \"987-000-000-000-000-000-003\",\n person: \"987-001-000-000-000-000-000\",\n relationship: \"987-002-000-000-000-000-000\",\n case: \"987-003-000-000-000-000-000\",\n} as const;\n\nexport type SubjectTypeKey = keyof typeof SubjectTypeKeys;\n\n/**\n * Key → positional code map for the `minor_adult_status` CVC domain (GDR §10.1 `core - minor_adult_status`; age band at event; PROVISIONAL at 988 — canonical CVC-61 exists in the index but its Notion codebook is empty, see ADR-CVC-0.8.13 NARRATIVE_ONLY; renumber 988→61 on Notion authoring).\n *\n * Domain: `minor_adult_status` · Version: 1.0.0 · Entries: 7\n */\nexport const MinorAdultStatusKeys = {\n missingness_root: \"988-000-000-000-000-000-000\",\n unknown: \"988-000-000-000-000-000-001\",\n anonymous: \"988-000-000-000-000-000-002\",\n data_not_collected: \"988-000-000-000-000-000-003\",\n minor: \"988-001-000-000-000-000-000\",\n adult: \"988-002-000-000-000-000-000\",\n indeterminate: \"988-003-000-000-000-000-000\",\n} as const;\n\nexport type MinorAdultStatusKey = keyof typeof MinorAdultStatusKeys;\n\n/**\n * Key → positional code map for the `criminal_org_category` CVC domain (WIKI 7-type taxonomy for the criminal-org registry; ported from prototype/data/cvcs/core_criminal_org_category.yaml; PROVISIONAL at 990 — net-new, PENDING canonical Notion authoring).\n *\n * Domain: `criminal_org_category` · Version: 1.0.0 · Entries: 11\n */\nexport const CriminalOrgCategoryKeys = {\n missingness_root: \"990-000-000-000-000-000-000\",\n unknown: \"990-000-000-000-000-000-001\",\n anonymous: \"990-000-000-000-000-000-002\",\n data_not_collected: \"990-000-000-000-000-000-003\",\n street_gang: \"990-001-000-000-000-000-000\",\n prison_gang: \"990-002-000-000-000-000-000\",\n outlaw_motorcycle_gang: \"990-003-000-000-000-000-000\",\n tco_cartel: \"990-004-000-000-000-000-000\",\n white_supremacist_extremist: \"990-005-000-000-000-000-000\",\n organized_crime_family: \"990-006-000-000-000-000-000\",\n familial_or_independent_trafficking_network: \"990-007-000-000-000-000-000\",\n} as const;\n\nexport type CriminalOrgCategoryKey = keyof typeof CriminalOrgCategoryKeys;\n","/**\n * @htilabs/platform-common-models — CVC-133 evaluable function keys\n *\n * AUTO-GENERATED FILE — DO NOT EDIT BY HAND.\n * Regenerate with: `python3 scripts/gen-core-functions.py <prototype root>`.\n *\n * The keys of coreFunctions.v1.3.0.json whose canon flags are v1 && !retired\n * (canon @ f4356aa4): the only functions the shared authorization resolver\n * evaluates (rule 8). GATE I asserts this equals the SOT.\n */\n\nexport const CORE_FUNCTIONS_EVALUABLE_SOT_VERSION = \"1.3.0\";\n\nexport const CORE_FUNCTIONS_EVALUABLE_KEYS: readonly string[] = [\n \"agency_info_manage\",\n \"announcement_publish\",\n \"api_key_manage\",\n \"assessments_conduct\",\n \"auth_model_manage_platform\",\n \"case_assign_reassign\",\n \"case_claim\",\n \"case_close\",\n \"case_collaborator_add\",\n \"case_edit\",\n \"case_reopen\",\n \"case_side_panel_use\",\n \"case_status_manage\",\n \"case_transfer_bulk\",\n \"case_view\",\n \"case_visibility_manage\",\n \"ci_periodic_review\",\n \"ci_record_purge_or_retire\",\n \"ci_record_validate\",\n \"ci_to_evidence_export_authorize\",\n \"deconfliction_alert_acknowledge\",\n \"deconfliction_unmask\",\n \"determination_perform\",\n \"disclose_external_request\",\n \"enrollment_manage\",\n \"exit_discharge_conduct\",\n \"export_deidentified\",\n \"goals_plan_manage\",\n \"idb_record_create\",\n \"indicator_manual_add\",\n \"investigation_create_claim\",\n \"investigation_session_run\",\n \"investigative_database_search\",\n \"investigative_request_send\",\n \"lead_create\",\n \"lead_publish\",\n \"lead_route_assign\",\n \"lead_triage_manage\",\n \"magic_link_share_send\",\n \"mandatory_report_send\",\n \"member_account_report_generate\",\n \"member_onboarding_support\",\n \"message_moderate\",\n \"message_send\",\n \"milestone_log\",\n \"needs_priorities_conduct\",\n \"network_corpus_access\",\n \"note_open_departed_author\",\n \"onboarding_config_sign_off\",\n \"open_source_search\",\n \"person_association_update\",\n \"person_merge_manage\",\n \"platform_perm_modify\",\n \"profile_domain_edit\",\n \"record_activity_view\",\n \"record_print\",\n \"referral_receive_external\",\n \"referral_receive_internal\",\n \"referral_send_external\",\n \"referral_send_internal\",\n \"roi_submit_manage\",\n \"role_assign\",\n \"roles_accounts_toggle\",\n \"sandbox_environment_manage\",\n \"screening_conduct\",\n \"screening_view\",\n \"service_log_manage\",\n \"session_create\",\n \"share_config\",\n \"share_revoke\",\n \"share_rule_approve_cross_agency\",\n \"share_vsp_to_le\",\n \"srl_manage\",\n \"supervisee_thread_view\",\n \"support_ticket_triage\",\n \"system_diagnostics_view\",\n \"team_config_manage\",\n \"team_membership_manage\",\n \"team_share_narrowing\",\n \"team_workflow_config_manage\",\n \"training_gate_manage\",\n \"usr_manage\",\n \"viewing_config_manage\",\n \"viewing_level_1_search\",\n \"viewing_level_2_autocomplete\",\n \"viewing_level_3_components\",\n];\n","/**\n * @htilabs/platform-common-models — the shared CVC-133 authorization resolver\n *\n * ONE pure function that every app (Thread · PAVE 2.0 · platform) calls to turn\n * a seat's roles and the stored platform / agency / team policies into the set\n * of CVC-133 function codes the seat may perform. No I/O and no mongoose: each\n * app keeps only a loader that reads the platform-written collections and hands\n * the rows in. Browser-safe entry: `@htilabs/platform-common-models/authz`.\n *\n * Spec: records repo (`htilabstech/prototype`) `KICKOFF_SHARED_AUTHZ_RESOLVER_2026-10-12.md`\n * § 3 (the ruled model) and § 4.1 (this file). Line cites below are to the\n * platform prototype (`htilabstech/platform-prototype` @ af10119)\n * `src/agencyhub.jsx` `authzResolve` unless they name another file;\n * `policyResolver.js` / `proxy/route.ts` cites are to `htilabstech/platform`\n * develop @ ccf8da3.\n *\n * THE RULES (kickoff § 3 numbering)\n *\n * 1. Layers intersect and clamp downward: effective = platform ∩ agency ∩\n * team (CAM, Notion 27f1ef14abcd8016accaca50780b2906; the devs' \"3-Tier HTI\n * Platform Permission Model\", Notion 32c1ef14abcd80f0933ec66638bcc300:\n * \"The most restrictive applicable setting wins. Access is always clamped\n * downward, never expanded upward\"). Per role: the platform state (Tier 1)\n * is the base; the agency may move an unlocked state (Tier 2,\n * `agencyhub.jsx:601-624` — an account may switch a Default-Off function on\n * or require it, or switch a Default-On one off); the team may only take a\n * grant away (rule 4). The user-restriction, training, clearance, legal-basis\n * and purpose layers (`:629-693`) are not inputs here (CAM layers the dev\n * model has no data for yet, inventory resolvers.md D6).\n * 2. Roles union at the user level; NEVER is local to its role. A function is\n * granted when ANY assigned role's own cascade grants it; a role whose\n * cascade ends at NEVER / Default-Off simply contributes nothing — it never\n * vetoes another role's grant (`:566-589`, Crysta 2026-08-09 \"grants are\n * computed first\"; restated 2026-10-12 \"roles stack\").\n * 3. Required is immune to the team gate: a state that is ALWAYS after\n * Tier 1 + Tier 2 (platform ALWAYS, or an agency that escalated the role to\n * ALWAYS) is not team-gated (dev model: \"locked\" states skip Tier 3,\n * `platform/lib/utils/policyResolver.js:58-72`; prototype `:625` \"agency\n * cannot disable\"). NEVER at Tier 1 / Tier 2 is immune to a team lift —\n * a Tier-1 ALWAYS / NEVER also ignores the agency layer\n * (`policyResolver.js:46-48`). NOTE (kickoff § 5 trap): today's prototype\n * still runs the team check for `required` (`:626-628`); \"Required immune\n * to the team gate\" is the queued prototype ship. This resolver encodes the\n * ruling, not the current prototype behaviour.\n * 4. The team layer is RESTRICT-ONLY (`:626-628` \"teams are workflow\n * containers, never authority\"; editor log lines `:1236` / `:4490` \"it never\n * grants\"; UDD Team object, Notion 3ec1ef14abcd814385e4c4e84e071178: \"If a\n * team enables a function, but a user's role does not permit that function,\n * the user does not gain access to it through team membership\"). A team\n * PREF_NO (or a NEVER, which the platform's own write path refuses from a\n * team, `app/api/admin/proxy/route.ts:900`, but which is honoured\n * fail-closed) takes the grant away; a team PREF_YES or ALWAYS is\n * ignored — it never lifts a Default-Off or an agency switch-off. The\n * policy's role-grain `roles[]` and flat `functions` maps are both team\n * restrictions: either one switching a function off is enough.\n * 5. One acting team per resolution: the seat's primary team (`team_id` =\n * `team_ids[0]`, `setUserTeams` `:3228`; `authzForCurrentUser` passes the\n * single `u.team_id`, `:734`), or a verified acting team the request\n * carries (pave-2.0 team-scope precedence ADR, Notion\n * 3921ef14abcd814ca839c1e7c3a57485). The caller resolves that ONE team's\n * policy and passes it as `teamPolicy` — see `selectActingTeamId`. No team,\n * or a team with no policy, is an explicit pass-through (ruling 3c, `:626`).\n * 8. Unknown / retired / not-v1 functions are denied (`:556` \"unknown function\n * — deny by default\", `:557` retired, `:558` not-v1) — decided by the canon\n * this package ships, not by the caller's rows. The prototype checks its\n * injected canon registry (`HTI_CORE_FUNCTIONS`, `:552-558`); here that is\n * the CVC-133 SOT (`coreFunctions.v1.3.0.json`, whose `v1` / `retired`\n * booleans are canon's own row flags), read through the slim generated key\n * set `CORE_FUNCTIONS_EVALUABLE_KEYS` (v1 && !retired; GATE I asserts it\n * equals the SOT) and intersected with `CoreFunctionsKeys`. No assigned\n * roles, or none that resolve to a role row, yields the empty set.\n *\n * FAIL-CLOSED ON MALFORMED STORED DATA (ruled 2026-10-13, co-zo3 review and\n * verification rounds). Every input is read defensively, so malformed data\n * makes `resolveEffectiveFunctions` deny, never throw:\n * - an `input` that is not an object, or a `roles` / `functions` /\n * `assignedRoleCodes` that is not an array (null, a number, a string —\n * never split into characters), resolves to `[]`;\n * - a present state that is not one of the four PERMISSION_STATE values is\n * NEVER at Tier 1, NEVER at Tier 2 (for that role), and a restriction at\n * Tier 3; `undefined` and `null` mean \"not set\";\n * - a state CONTAINER that is present but not a plain object (an array, a\n * string, a Map, …) fails closed for everything it could govern: a role's\n * `functions` → the role grants nothing; the agency's map, or one role's\n * entry in it → NEVER for every unlocked state it covers; the team policy,\n * its `functions`, or its `roles` list → every team-gated grant restricted;\n * one role's `overrides` → that role's team-gated grants restricted;\n * - a `teamPolicy.roles` entry that is not an object with a string `roleCode`\n * cannot be attributed to a role, so it restricts every role's team-gated\n * grants; duplicate entries for one role are unioned (any off wins);\n * - a catalog row's `retired` keeps the function only when it is absent or\n * exactly `false`;\n * - Required (rule 3) stays immune to every team-side restriction.\n *\n * Rules 6 (app access is not a function) and 7 (vocabulary vs policy state)\n * are about what the inputs are, not about this computation.\n */\n\nimport {\n PERMISSION_STATE,\n type PermissionStateValue,\n} from \"../constants/platform-auth.js\";\nimport { CoreFunctionsKeys } from \"../generated/cvc-enums.js\";\nimport { CORE_FUNCTIONS_EVALUABLE_KEYS } from \"../generated/coreFunctionsEvaluable.js\";\n\n// ─── Canon (rule 8) ─────────────────────────────────────────────────────────\n\nconst CANON_EVALUABLE: ReadonlySet<string> = new Set(\n CORE_FUNCTIONS_EVALUABLE_KEYS.filter((k) => Object.hasOwn(CoreFunctionsKeys, k)),\n);\n\n/** True when canon lets the resolver evaluate `code` at all (rule 8). */\nexport function isCanonEvaluableFunction(code: string): boolean {\n return CANON_EVALUABLE.has(code);\n}\n\n// ─── Input contract (kickoff § 4.1) ─────────────────────────────────────────\n\n/** A map of function code → permission state, as the platform stores it. */\nexport type AuthzStateMap = Readonly<Record<string, PermissionStateValue>>;\n\n/**\n * One `platformRoles` row (Tier 1): the role's platform state per function.\n * A function the role does not list resolves to PREF_NO when it shares one of\n * the role's tools, else NEVER (not applicable) — the rule all three dev\n * resolvers use (`policyResolver.js:33-40`).\n */\nexport interface AuthzRoleRow {\n readonly code: string;\n readonly tools?: readonly string[];\n readonly functions?: AuthzStateMap;\n}\n\n/**\n * One `platformFunctions` row: the deployment's function catalog, which\n * supplies each function's `tools` (the Tier-1 default above). It can only\n * narrow canon, never widen it:\n * - a code canon does not carry, or carries as not-v1 / retired, is denied\n * even when it is listed here;\n * - `retired` other than absent / exactly `false` denies a function canon\n * still has (a deployment may stop offering one early);\n * - a canon function missing from this list is denied (it has no catalog row).\n * Any other stored field (e.g. `platformFunctions.status`) is not read: a stale\n * \"Future function (not v1)\" status never denies a function canon says is v1.\n */\nexport interface AuthzFunctionRow {\n readonly code: string;\n readonly tools?: readonly string[];\n readonly retired?: boolean;\n}\n\n/** One role-grain override entry, as stored in `teamAccessPolicies.roles[]`. */\nexport interface AuthzRoleOverrides {\n readonly roleCode: string;\n readonly overrides?: AuthzStateMap;\n}\n\n/**\n * The ONE acting team's `teamAccessPolicies` document (rule 5). `roles[]`\n * narrows one role; `functions` narrows every role. Both only restrict, so a\n * function is off for a role when any of them says so.\n */\nexport interface AuthzTeamPolicy {\n readonly roles?: readonly AuthzRoleOverrides[];\n readonly functions?: AuthzStateMap;\n}\n\nexport interface ResolveEffectiveFunctionsInput {\n /** Every `platformRoles` row the seat might hold (extra rows are ignored). */\n readonly roles: readonly AuthzRoleRow[];\n /** The deployment's function catalog (`platformFunctions`), narrowed by canon. */\n readonly functions: readonly AuthzFunctionRow[];\n /** The seat's assigned role codes. */\n readonly assignedRoleCodes: readonly string[];\n /** Tier 2 — the agency's overrides, `{ roleCode → { functionCode → state } }`. */\n readonly agencyOverrides?: Readonly<Record<string, AuthzStateMap>>;\n /** Tier 3 — the acting team's policy; absent / null = pass-through. */\n readonly teamPolicy?: AuthzTeamPolicy | null;\n /** Declared, not configurable: an unknown function is always denied (rule 8). */\n readonly unknownFunctionPolicy: \"deny\";\n}\n\n// ─── Defensive reads ────────────────────────────────────────────────────────\n\ntype StoredMap = Readonly<Record<string, unknown>>;\n\n/** A container read: not set, a usable plain object, or malformed. */\ntype Container = { readonly kind: \"absent\" } | { readonly kind: \"malformed\" } | {\n readonly kind: \"map\";\n readonly map: StoredMap;\n};\n\nconst ABSENT: Container = { kind: \"absent\" };\nconst MALFORMED: Container = { kind: \"malformed\" };\n\nfunction isPlainObject(v: unknown): v is StoredMap {\n if (v === null || typeof v !== \"object\") return false;\n const proto: unknown = Object.getPrototypeOf(v);\n return proto === Object.prototype || proto === null;\n}\n\nfunction readContainer(v: unknown): Container {\n if (v === undefined || v === null) return ABSENT;\n return isPlainObject(v) ? { kind: \"map\", map: v } : MALFORMED;\n}\n\n/** An own property of a plain-object map (never an inherited key). */\nfunction own(map: StoredMap, key: string): unknown {\n return Object.hasOwn(map, key) ? map[key] : undefined;\n}\n\nconst STATES: ReadonlySet<string> = new Set<string>(Object.values(PERMISSION_STATE));\n\n/** One stored state: not set, a recognised state, or `\"malformed\"`. */\nfunction readState(map: StoredMap, code: string): PermissionStateValue | \"malformed\" | undefined {\n const v = own(map, code);\n if (v === undefined || v === null) return undefined;\n return typeof v === \"string\" && STATES.has(v) ? (v as PermissionStateValue) : \"malformed\";\n}\n\nfunction stringList(v: unknown): readonly string[] {\n return Array.isArray(v) ? v.filter((x): x is string => typeof x === \"string\") : [];\n}\n\n/** Rule 4: anything but \"not set\", PREF_YES or ALWAYS restricts. */\nfunction teamValueRestricts(map: StoredMap, code: string): boolean {\n const gate = readState(map, code);\n return (\n gate !== undefined &&\n gate !== PERMISSION_STATE.PREF_YES &&\n gate !== PERMISSION_STATE.ALWAYS\n );\n}\n\n/** The acting team's policy, compiled once into restrict-only predicates. */\ninterface TeamGate {\n /** Every team-gated grant is restricted (malformed or unattributable data). */\n readonly restrictsAll: boolean;\n readonly flat: StoredMap | undefined;\n /** Every overrides map stored for a role (duplicates kept, then unioned). */\n readonly byRole: ReadonlyMap<string, readonly StoredMap[]>;\n /** Roles whose stored overrides container is malformed. */\n readonly malformedRoles: ReadonlySet<string>;\n}\n\nfunction compileTeamGate(teamPolicy: unknown): TeamGate {\n const byRole = new Map<string, StoredMap[]>();\n const malformedRoles = new Set<string>();\n const policy = readContainer(teamPolicy);\n if (policy.kind === \"absent\") {\n return { restrictsAll: false, flat: undefined, byRole, malformedRoles };\n }\n if (policy.kind === \"malformed\") {\n return { restrictsAll: true, flat: undefined, byRole, malformedRoles };\n }\n let restrictsAll = false;\n const functions = readContainer(own(policy.map, \"functions\"));\n if (functions.kind === \"malformed\") restrictsAll = true;\n const roles = own(policy.map, \"roles\");\n if (roles !== undefined && roles !== null) {\n if (!Array.isArray(roles)) restrictsAll = true;\n else {\n for (const entry of roles as unknown[]) {\n const roleCode = isPlainObject(entry) ? own(entry, \"roleCode\") : undefined;\n if (!isPlainObject(entry) || typeof roleCode !== \"string\") {\n restrictsAll = true; // cannot tell which role it narrows\n continue;\n }\n const overrides = readContainer(own(entry, \"overrides\"));\n if (overrides.kind === \"malformed\") malformedRoles.add(roleCode);\n else if (overrides.kind === \"map\") {\n const list = byRole.get(roleCode) ?? [];\n list.push(overrides.map);\n byRole.set(roleCode, list);\n }\n }\n }\n }\n return {\n restrictsAll,\n flat: functions.kind === \"map\" ? functions.map : undefined,\n byRole,\n malformedRoles,\n };\n}\n\nfunction teamRestricts(gate: TeamGate, roleCode: string, code: string): boolean {\n if (gate.restrictsAll || gate.malformedRoles.has(roleCode)) return true;\n if (gate.flat !== undefined && teamValueRestricts(gate.flat, code)) return true;\n return (gate.byRole.get(roleCode) ?? []).some((m) => teamValueRestricts(m, code));\n}\n\n// ─── Resolver ───────────────────────────────────────────────────────────────\n\n/**\n * Resolve the CVC-133 function codes a seat may perform.\n *\n * @returns sorted, de-duplicated function codes; `[]` when nothing resolves,\n * including when `input` is not an object or `roles`, `functions` or\n * `assignedRoleCodes` is not an array (never a throw; a string is\n * never iterated as characters).\n */\nexport function resolveEffectiveFunctions(\n input: ResolveEffectiveFunctionsInput,\n): string[] {\n const raw: unknown = input;\n if (!isPlainObject(raw)) return [];\n const roleRows = own(raw, \"roles\");\n const catalog = own(raw, \"functions\");\n const assigned = own(raw, \"assignedRoleCodes\");\n if (!Array.isArray(roleRows) || !Array.isArray(catalog) || !Array.isArray(assigned)) return [];\n\n const rolesByCode = new Map<string, StoredMap>();\n for (const r of roleRows as readonly unknown[]) {\n const code = isPlainObject(r) ? own(r, \"code\") : undefined;\n if (isPlainObject(r) && typeof code === \"string\") rolesByCode.set(code, r);\n }\n const heldCodes = [...new Set(assigned as readonly unknown[])].filter(\n (c): c is string => typeof c === \"string\" && rolesByCode.has(c),\n );\n if (heldCodes.length === 0) return [];\n\n // Rule 8: the catalog narrowed by canon, and by its own `retired` (only an\n // absent or exactly-false flag keeps a row).\n const vocabulary: { readonly code: string; readonly tools: readonly string[] }[] = [];\n for (const fn of catalog as readonly unknown[]) {\n if (!isPlainObject(fn)) continue;\n const code = own(fn, \"code\");\n const retired = own(fn, \"retired\");\n if (typeof code !== \"string\" || !isCanonEvaluableFunction(code)) continue;\n if (retired !== undefined && retired !== false) continue;\n vocabulary.push({ code, tools: stringList(own(fn, \"tools\")) });\n }\n\n const agencyAll = readContainer(input.agencyOverrides);\n const team = compileTeamGate(input.teamPolicy);\n\n const granted = new Set<string>();\n for (const roleCode of heldCodes) {\n const role = rolesByCode.get(roleCode)!;\n const roleTools = new Set(stringList(own(role, \"tools\")));\n const roleFunctions = readContainer(own(role, \"functions\"));\n if (roleFunctions.kind === \"malformed\") continue; // Tier 1 unreadable: grants nothing\n const agency =\n agencyAll.kind === \"map\" ? readContainer(own(agencyAll.map, roleCode)) : agencyAll;\n\n for (const fn of vocabulary) {\n if (granted.has(fn.code)) continue; // rule 2: another role already grants it\n\n // Tier 1 — platform. A malformed stored state is NEVER.\n const listed = roleFunctions.kind === \"map\" ? readState(roleFunctions.map, fn.code) : undefined;\n const applies = fn.tools.some((t) => roleTools.has(t));\n const tier1: PermissionStateValue =\n listed === \"malformed\"\n ? PERMISSION_STATE.NEVER\n : (listed ?? (applies ? PERMISSION_STATE.PREF_NO : PERMISSION_STATE.NEVER));\n\n // Tier 2 — agency. Tier-1 ALWAYS / NEVER are locked (rule 3); a\n // malformed override (or container) is NEVER for this role.\n let state = tier1;\n if (tier1 !== PERMISSION_STATE.ALWAYS && tier1 !== PERMISSION_STATE.NEVER) {\n const override =\n agency.kind === \"malformed\"\n ? \"malformed\"\n : agency.kind === \"map\"\n ? readState(agency.map, fn.code)\n : undefined;\n if (override === \"malformed\") state = PERMISSION_STATE.NEVER;\n else if (override !== undefined) state = override;\n }\n\n if (state !== PERMISSION_STATE.ALWAYS && state !== PERMISSION_STATE.PREF_YES) continue;\n\n // Tier 3 — team, restrict-only (rule 4); Required is immune (rule 3).\n if (state !== PERMISSION_STATE.ALWAYS && teamRestricts(team, roleCode, fn.code)) continue;\n\n granted.add(fn.code);\n }\n }\n\n return [...granted].sort();\n}\n\n// ─── Acting team (rule 5) ───────────────────────────────────────────────────\n\n/**\n * Pick the ONE team whose policy feeds `teamPolicy`.\n *\n * - `verifiedActingTeamId` given → that team, as is. VERIFYING it is the\n * caller's job: each app has its own membership source (pave-2.0 checks\n * `teams.members[]` through its membership checker; `users.teams` is not kept\n * in step with it), so this helper does not second-guess the caller against\n * `seatTeamIds`. Pass only a team the caller has confirmed the seat sits on.\n * - otherwise → the primary team, `seatTeamIds[0]`;\n * - no teams → `null` (pass-through).\n */\nexport function selectActingTeamId(\n seatTeamIds: readonly string[],\n verifiedActingTeamId?: string | null,\n): string | null {\n if (verifiedActingTeamId) return verifiedActingTeamId;\n return seatTeamIds[0] ?? null;\n}\n\n// ─── Internal viewing level (CVC-133 viewing_level_1/2/3) ───────────────────\n\n/** Level 0 is derived (no level function resolves), never a configurable rung. */\nexport type ViewingLevel = 0 | 1 | 2 | 3;\n\n/** The three Type-A viewing functions, highest first. */\nexport const VIEWING_LEVEL_FUNCTIONS = [\n [\"viewing_level_3_components\", 3],\n [\"viewing_level_2_autocomplete\", 2],\n [\"viewing_level_1_search\", 1],\n] as const satisfies ReadonlyArray<readonly [keyof typeof CoreFunctionsKeys, ViewingLevel]>;\n\n/**\n * The effective internal viewing level from an already-resolved function set.\n *\n * Canon (CVC-133 `viewing_level_3_components` logic_notes, records\n * `data/cvcs/core_functions.yaml` @ f4356aa4): \"Effective viewing level = the\n * highest of the three level functions the user's roles resolve to … clamped by\n * the team-set level — most restrictive wins; the team axis clamps down, never\n * up. … Absence of all three functions = Level 0 (not a configurable setting).\"\n *\n * `teamViewingLevel` is the level the account's viewing policy sets for the\n * acting team — the team's own row, else the account-wide rule (prototype\n * `src/screens.jsx:14671` `effLevel`, `:14819` \"a member's own role can only\n * narrow it further\"). Absent / null = no team-set level, so no clamp.\n *\n * Own / claimed cases are always fully visible; that is the caller's\n * record-level check, not this function's.\n */\nexport function viewingLevelFromFunctions(\n effectiveFunctions: Iterable<string>,\n teamViewingLevel?: ViewingLevel | null,\n): ViewingLevel {\n const held = new Set(effectiveFunctions);\n const roleLevel = VIEWING_LEVEL_FUNCTIONS.find(([code]) => held.has(code))?.[1] ?? 0;\n return teamViewingLevel == null\n ? roleLevel\n : (Math.min(roleLevel, teamViewingLevel) as ViewingLevel);\n}\n\n/**\n * Resolve the seat's functions (same input, same rules as\n * `resolveEffectiveFunctions`) and return its effective internal viewing level.\n */\nexport function resolveEffectiveViewingLevel(\n input: ResolveEffectiveFunctionsInput,\n teamViewingLevel?: ViewingLevel | null,\n): ViewingLevel {\n return viewingLevelFromFunctions(resolveEffectiveFunctions(input), teamViewingLevel);\n}\n"],"mappings":";AAYO,IAAM,mBAAmB;AAAA;AAAA,EAE9B,QAAQ;AAAA;AAAA,EAER,UAAU;AAAA;AAAA,EAEV,SAAS;AAAA;AAAA,EAET,OAAO;AACT;AAKO,IAAM,0BAA0B;AAAA,EACrC,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AACnB;AAEO,IAAM,0BAAgE;AAAA,EAC3E,CAAC,iBAAiB,MAAM,GAAG;AAAA,EAC3B,CAAC,iBAAiB,QAAQ,GAAG;AAAA,EAC7B,CAAC,iBAAiB,OAAO,GAAG;AAAA,EAC5B,CAAC,iBAAiB,KAAK,GAAG;AAC5B;AAGO,IAAM,2BAGT;AAAA,EACF,CAAC,iBAAiB,MAAM,GAAG;AAAA,IACzB,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AAAA,EACA,CAAC,iBAAiB,QAAQ,GAAG;AAAA,IAC3B,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AAAA,EACA,CAAC,iBAAiB,OAAO,GAAG;AAAA,IAC1B,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AAAA,EACA,CAAC,iBAAiB,KAAK,GAAG;AAAA,IACxB,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AACF;AAIO,IAAM,aAAa;AAAA;AAAA,EAExB,UAAU;AAAA;AAAA,EAEV,KAAK;AAAA;AAAA,EAEL,MAAM;AACR;AAIO,IAAM,oBAAoB;AAAA,EAC/B,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AACb;AAEO,IAAM,oBAAoD;AAAA,EAC/D,CAAC,WAAW,QAAQ,GAAG;AAAA,EACvB,CAAC,WAAW,GAAG,GAAG;AAAA,EAClB,CAAC,WAAW,IAAI,GAAG;AACrB;AAIO,IAAM,gBAAgB;AAAA,EAC3B,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,UAAU;AACZ;AAKO,IAAM,uBAAuB;AAAA,EAClC,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAChB;AAEO,IAAM,uBAA0D;AAAA,EACrE,CAAC,cAAc,IAAI,GAAG;AAAA,EACtB,CAAC,cAAc,IAAI,GAAG;AAAA,EACtB,CAAC,cAAc,KAAK,GAAG;AAAA,EACvB,CAAC,cAAc,MAAM,GAAG;AAAA,EACxB,CAAC,cAAc,KAAK,GAAG;AAAA,EACvB,CAAC,cAAc,QAAQ,GAAG;AAC5B;AAIO,IAAM,aAAa;AAAA;AAAA,EAExB,aAAa;AAAA;AAAA,EAEb,QAAQ;AAAA;AAAA,EAER,MAAM;AAAA;AAAA,EAEN,UAAU;AAAA;AAAA,EAEV,WAAW;AACb;AAIO,IAAM,oBAAoB;AAAA,EAC/B,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AACb;AAEO,IAAM,oBAAoD;AAAA,EAC/D,CAAC,WAAW,WAAW,GAAG;AAAA,EAC1B,CAAC,WAAW,MAAM,GAAG;AAAA,EACrB,CAAC,WAAW,IAAI,GAAG;AAAA,EACnB,CAAC,WAAW,QAAQ,GAAG;AAAA,EACvB,CAAC,WAAW,SAAS,GAAG;AAC1B;AAIO,IAAM,kBAAkB;AAAA,EAC7B,aAAa;AAAA,EACb,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,QAAQ;AACV;AAKO,IAAM,yBAAyB;AAAA,EACpC,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,gBAAgB;AAClB;AAEO,IAAM,yBAA8D;AAAA,EACzE,CAAC,gBAAgB,WAAW,GAAG;AAAA,EAC/B,CAAC,gBAAgB,WAAW,GAAG;AAAA,EAC/B,CAAC,gBAAgB,gBAAgB,GAAG;AAAA,EACpC,CAAC,gBAAgB,UAAU,GAAG;AAAA,EAC9B,CAAC,gBAAgB,MAAM,GAAG;AAC5B;;;AC6tHO,IAAM,oBAAoB;AAAA,EAC/B,kBAAkB;AAAA,EAClB,SAAS;AAAA,EACT,WAAW;AAAA,EACX,oBAAoB;AAAA,EACpB,iBAAiB;AAAA,EACjB,+BAA+B;AAAA,EAC/B,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,4BAA4B;AAAA,EAC5B,aAAa;AAAA,EACb,sBAAsB;AAAA,EACtB,YAAY;AAAA,EACZ,uBAAuB;AAAA,EACvB,WAAW;AAAA,EACX,+BAA+B;AAAA,EAC/B,oBAAoB;AAAA,EACpB,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,WAAW;AAAA,EACX,oBAAoB;AAAA,EACpB,2BAA2B;AAAA,EAC3B,oBAAoB;AAAA,EACpB,iCAAiC;AAAA,EACjC,0BAA0B;AAAA,EAC1B,sBAAsB;AAAA,EACtB,iCAAiC;AAAA,EACjC,uBAAuB;AAAA,EACvB,mBAAmB;AAAA,EACnB,2BAA2B;AAAA,EAC3B,qBAAqB;AAAA,EACrB,8BAA8B;AAAA,EAC9B,+BAA+B;AAAA,EAC/B,yBAAyB;AAAA,EACzB,mBAAmB;AAAA,EACnB,6BAA6B;AAAA,EAC7B,4BAA4B;AAAA,EAC5B,+BAA+B;AAAA,EAC/B,aAAa;AAAA,EACb,cAAc;AAAA,EACd,uBAAuB;AAAA,EACvB,gCAAgC;AAAA,EAChC,2BAA2B;AAAA,EAC3B,oBAAoB;AAAA,EACpB,gCAAgC;AAAA,EAChC,2BAA2B;AAAA,EAC3B,sBAAsB;AAAA,EACtB,oCAAoC;AAAA,EACpC,cAAc;AAAA,EACd,2BAA2B;AAAA,EAC3B,2BAA2B;AAAA,EAC3B,wBAAwB;AAAA,EACxB,wBAAwB;AAAA,EACxB,mCAAmC;AAAA,EACnC,6BAA6B;AAAA,EAC7B,mBAAmB;AAAA,EACnB,aAAa;AAAA,EACb,uBAAuB;AAAA,EACvB,4BAA4B;AAAA,EAC5B,mBAAmB;AAAA,EACnB,gBAAgB;AAAA,EAChB,yBAAyB;AAAA,EACzB,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,iCAAiC;AAAA,EACjC,iBAAiB;AAAA,EACjB,uBAAuB;AAAA,EACvB,yBAAyB;AAAA,EACzB,oBAAoB;AAAA,EACpB,wBAAwB;AAAA,EACxB,6BAA6B;AAAA,EAC7B,qBAAqB;AAAA,EACrB,mBAAmB;AAAA,EACnB,yBAAyB;AAAA,EACzB,sBAAsB;AAAA,EACtB,YAAY;AAAA,EACZ,2BAA2B;AAAA,EAC3B,oBAAoB;AAAA,EACpB,YAAY;AAAA,EACZ,uBAAuB;AAAA,EACvB,sBAAsB;AAAA,EACtB,cAAc;AAAA,EACd,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,wBAAwB;AAAA,EACxB,oBAAoB;AAAA,EACpB,mBAAmB;AAAA,EACnB,wBAAwB;AAAA,EACxB,mBAAmB;AAAA,EACnB,oBAAoB;AAAA,EACpB,eAAe;AAAA,EACf,0BAA0B;AAAA,EAC1B,qBAAqB;AAAA,EACrB,sBAAsB;AAAA,EACtB,oBAAoB;AAAA,EACpB,YAAY;AAAA,EACZ,wBAAwB;AAAA,EACxB,qBAAqB;AAAA,EACrB,2BAA2B;AAAA,EAC3B,mBAAmB;AAAA,EACnB,4BAA4B;AAAA,EAC5B,sBAAsB;AAAA,EACtB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,uBAAuB;AAAA,EACvB,wBAAwB;AAAA,EACxB,8BAA8B;AAAA,EAC9B,4BAA4B;AAAA,EAC5B,4BAA4B;AAAA,EAC5B,sBAAsB;AAAA,EACtB,cAAc;AAChB;;;AClgIO,IAAM,gCAAmD;AAAA,EAC9D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;;;ACOA,IAAM,kBAAuC,IAAI;AAAA,EAC/C,8BAA8B,OAAO,CAAC,MAAM,OAAO,OAAO,mBAAmB,CAAC,CAAC;AACjF;AAGO,SAAS,yBAAyB,MAAuB;AAC9D,SAAO,gBAAgB,IAAI,IAAI;AACjC;AA8EA,IAAM,SAAoB,EAAE,MAAM,SAAS;AAC3C,IAAM,YAAuB,EAAE,MAAM,YAAY;AAEjD,SAAS,cAAc,GAA4B;AACjD,MAAI,MAAM,QAAQ,OAAO,MAAM,SAAU,QAAO;AAChD,QAAM,QAAiB,OAAO,eAAe,CAAC;AAC9C,SAAO,UAAU,OAAO,aAAa,UAAU;AACjD;AAEA,SAAS,cAAc,GAAuB;AAC5C,MAAI,MAAM,UAAa,MAAM,KAAM,QAAO;AAC1C,SAAO,cAAc,CAAC,IAAI,EAAE,MAAM,OAAO,KAAK,EAAE,IAAI;AACtD;AAGA,SAAS,IAAI,KAAgB,KAAsB;AACjD,SAAO,OAAO,OAAO,KAAK,GAAG,IAAI,IAAI,GAAG,IAAI;AAC9C;AAEA,IAAM,SAA8B,IAAI,IAAY,OAAO,OAAO,gBAAgB,CAAC;AAGnF,SAAS,UAAU,KAAgB,MAA8D;AAC/F,QAAM,IAAI,IAAI,KAAK,IAAI;AACvB,MAAI,MAAM,UAAa,MAAM,KAAM,QAAO;AAC1C,SAAO,OAAO,MAAM,YAAY,OAAO,IAAI,CAAC,IAAK,IAA6B;AAChF;AAEA,SAAS,WAAW,GAA+B;AACjD,SAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,MAAmB,OAAO,MAAM,QAAQ,IAAI,CAAC;AACnF;AAGA,SAAS,mBAAmB,KAAgB,MAAuB;AACjE,QAAM,OAAO,UAAU,KAAK,IAAI;AAChC,SACE,SAAS,UACT,SAAS,iBAAiB,YAC1B,SAAS,iBAAiB;AAE9B;AAaA,SAAS,gBAAgB,YAA+B;AACtD,QAAM,SAAS,oBAAI,IAAyB;AAC5C,QAAM,iBAAiB,oBAAI,IAAY;AACvC,QAAM,SAAS,cAAc,UAAU;AACvC,MAAI,OAAO,SAAS,UAAU;AAC5B,WAAO,EAAE,cAAc,OAAO,MAAM,QAAW,QAAQ,eAAe;AAAA,EACxE;AACA,MAAI,OAAO,SAAS,aAAa;AAC/B,WAAO,EAAE,cAAc,MAAM,MAAM,QAAW,QAAQ,eAAe;AAAA,EACvE;AACA,MAAI,eAAe;AACnB,QAAM,YAAY,cAAc,IAAI,OAAO,KAAK,WAAW,CAAC;AAC5D,MAAI,UAAU,SAAS,YAAa,gBAAe;AACnD,QAAM,QAAQ,IAAI,OAAO,KAAK,OAAO;AACrC,MAAI,UAAU,UAAa,UAAU,MAAM;AACzC,QAAI,CAAC,MAAM,QAAQ,KAAK,EAAG,gBAAe;AAAA,SACrC;AACH,iBAAW,SAAS,OAAoB;AACtC,cAAM,WAAW,cAAc,KAAK,IAAI,IAAI,OAAO,UAAU,IAAI;AACjE,YAAI,CAAC,cAAc,KAAK,KAAK,OAAO,aAAa,UAAU;AACzD,yBAAe;AACf;AAAA,QACF;AACA,cAAM,YAAY,cAAc,IAAI,OAAO,WAAW,CAAC;AACvD,YAAI,UAAU,SAAS,YAAa,gBAAe,IAAI,QAAQ;AAAA,iBACtD,UAAU,SAAS,OAAO;AACjC,gBAAM,OAAO,OAAO,IAAI,QAAQ,KAAK,CAAC;AACtC,eAAK,KAAK,UAAU,GAAG;AACvB,iBAAO,IAAI,UAAU,IAAI;AAAA,QAC3B;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACA,SAAO;AAAA,IACL;AAAA,IACA,MAAM,UAAU,SAAS,QAAQ,UAAU,MAAM;AAAA,IACjD;AAAA,IACA;AAAA,EACF;AACF;AAEA,SAAS,cAAc,MAAgB,UAAkB,MAAuB;AAC9E,MAAI,KAAK,gBAAgB,KAAK,eAAe,IAAI,QAAQ,EAAG,QAAO;AACnE,MAAI,KAAK,SAAS,UAAa,mBAAmB,KAAK,MAAM,IAAI,EAAG,QAAO;AAC3E,UAAQ,KAAK,OAAO,IAAI,QAAQ,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAClF;AAYO,SAAS,0BACd,OACU;AACV,QAAM,MAAe;AACrB,MAAI,CAAC,cAAc,GAAG,EAAG,QAAO,CAAC;AACjC,QAAM,WAAW,IAAI,KAAK,OAAO;AACjC,QAAM,UAAU,IAAI,KAAK,WAAW;AACpC,QAAM,WAAW,IAAI,KAAK,mBAAmB;AAC7C,MAAI,CAAC,MAAM,QAAQ,QAAQ,KAAK,CAAC,MAAM,QAAQ,OAAO,KAAK,CAAC,MAAM,QAAQ,QAAQ,EAAG,QAAO,CAAC;AAE7F,QAAM,cAAc,oBAAI,IAAuB;AAC/C,aAAW,KAAK,UAAgC;AAC9C,UAAM,OAAO,cAAc,CAAC,IAAI,IAAI,GAAG,MAAM,IAAI;AACjD,QAAI,cAAc,CAAC,KAAK,OAAO,SAAS,SAAU,aAAY,IAAI,MAAM,CAAC;AAAA,EAC3E;AACA,QAAM,YAAY,CAAC,GAAG,IAAI,IAAI,QAA8B,CAAC,EAAE;AAAA,IAC7D,CAAC,MAAmB,OAAO,MAAM,YAAY,YAAY,IAAI,CAAC;AAAA,EAChE;AACA,MAAI,UAAU,WAAW,EAAG,QAAO,CAAC;AAIpC,QAAM,aAA6E,CAAC;AACpF,aAAW,MAAM,SAA+B;AAC9C,QAAI,CAAC,cAAc,EAAE,EAAG;AACxB,UAAM,OAAO,IAAI,IAAI,MAAM;AAC3B,UAAM,UAAU,IAAI,IAAI,SAAS;AACjC,QAAI,OAAO,SAAS,YAAY,CAAC,yBAAyB,IAAI,EAAG;AACjE,QAAI,YAAY,UAAa,YAAY,MAAO;AAChD,eAAW,KAAK,EAAE,MAAM,OAAO,WAAW,IAAI,IAAI,OAAO,CAAC,EAAE,CAAC;AAAA,EAC/D;AAEA,QAAM,YAAY,cAAc,MAAM,eAAe;AACrD,QAAM,OAAO,gBAAgB,MAAM,UAAU;AAE7C,QAAM,UAAU,oBAAI,IAAY;AAChC,aAAW,YAAY,WAAW;AAChC,UAAM,OAAO,YAAY,IAAI,QAAQ;AACrC,UAAM,YAAY,IAAI,IAAI,WAAW,IAAI,MAAM,OAAO,CAAC,CAAC;AACxD,UAAM,gBAAgB,cAAc,IAAI,MAAM,WAAW,CAAC;AAC1D,QAAI,cAAc,SAAS,YAAa;AACxC,UAAM,SACJ,UAAU,SAAS,QAAQ,cAAc,IAAI,UAAU,KAAK,QAAQ,CAAC,IAAI;AAE3E,eAAW,MAAM,YAAY;AAC3B,UAAI,QAAQ,IAAI,GAAG,IAAI,EAAG;AAG1B,YAAM,SAAS,cAAc,SAAS,QAAQ,UAAU,cAAc,KAAK,GAAG,IAAI,IAAI;AACtF,YAAM,UAAU,GAAG,MAAM,KAAK,CAAC,MAAM,UAAU,IAAI,CAAC,CAAC;AACrD,YAAM,QACJ,WAAW,cACP,iBAAiB,QAChB,WAAW,UAAU,iBAAiB,UAAU,iBAAiB;AAIxE,UAAI,QAAQ;AACZ,UAAI,UAAU,iBAAiB,UAAU,UAAU,iBAAiB,OAAO;AACzE,cAAM,WACJ,OAAO,SAAS,cACZ,cACA,OAAO,SAAS,QACd,UAAU,OAAO,KAAK,GAAG,IAAI,IAC7B;AACR,YAAI,aAAa,YAAa,SAAQ,iBAAiB;AAAA,iBAC9C,aAAa,OAAW,SAAQ;AAAA,MAC3C;AAEA,UAAI,UAAU,iBAAiB,UAAU,UAAU,iBAAiB,SAAU;AAG9E,UAAI,UAAU,iBAAiB,UAAU,cAAc,MAAM,UAAU,GAAG,IAAI,EAAG;AAEjF,cAAQ,IAAI,GAAG,IAAI;AAAA,IACrB;AAAA,EACF;AAEA,SAAO,CAAC,GAAG,OAAO,EAAE,KAAK;AAC3B;AAeO,SAAS,mBACd,aACA,sBACe;AACf,MAAI,qBAAsB,QAAO;AACjC,SAAO,YAAY,CAAC,KAAK;AAC3B;AAQO,IAAM,0BAA0B;AAAA,EACrC,CAAC,8BAA8B,CAAC;AAAA,EAChC,CAAC,gCAAgC,CAAC;AAAA,EAClC,CAAC,0BAA0B,CAAC;AAC9B;AAmBO,SAAS,0BACd,oBACA,kBACc;AACd,QAAM,OAAO,IAAI,IAAI,kBAAkB;AACvC,QAAM,YAAY,wBAAwB,KAAK,CAAC,CAAC,IAAI,MAAM,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK;AACnF,SAAO,oBAAoB,OACvB,YACC,KAAK,IAAI,WAAW,gBAAgB;AAC3C;AAMO,SAAS,6BACd,OACA,kBACc;AACd,SAAO,0BAA0B,0BAA0B,KAAK,GAAG,gBAAgB;AACrF;","names":[]}
|