@htilabs/platform-common-models 0.85.0 → 0.87.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/README.md +30 -0
  2. package/dist/{index-XWSYon40.d.cts → index-1pWiqEBC.d.cts} +1 -1
  3. package/dist/{index-Bh1zO_Vu.d.ts → index-uz57Fic9.d.ts} +1 -1
  4. package/dist/index.cjs +12 -1
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +3 -3
  7. package/dist/index.d.ts +3 -3
  8. package/dist/index.js +12 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/models/index.d.cts +2 -2
  11. package/dist/models/index.d.ts +2 -2
  12. package/dist/org-directory/index.cjs +8 -2
  13. package/dist/org-directory/index.cjs.map +1 -1
  14. package/dist/org-directory/index.d.cts +11 -2
  15. package/dist/org-directory/index.d.ts +11 -2
  16. package/dist/org-directory/index.js +8 -2
  17. package/dist/org-directory/index.js.map +1 -1
  18. package/dist/org-merge/index.cjs +8 -2
  19. package/dist/org-merge/index.cjs.map +1 -1
  20. package/dist/org-merge/index.js +8 -2
  21. package/dist/org-merge/index.js.map +1 -1
  22. package/dist/points-of-contact/index.cjs +229 -24
  23. package/dist/points-of-contact/index.cjs.map +1 -1
  24. package/dist/points-of-contact/index.d.cts +50 -5
  25. package/dist/points-of-contact/index.d.ts +50 -5
  26. package/dist/points-of-contact/index.js +226 -23
  27. package/dist/points-of-contact/index.js.map +1 -1
  28. package/dist/reader-BmhzOis-.d.ts +273 -0
  29. package/dist/reader-DfQtdw6n.d.cts +273 -0
  30. package/dist/schemas/index.cjs +12 -1
  31. package/dist/schemas/index.cjs.map +1 -1
  32. package/dist/schemas/index.d.cts +57 -27
  33. package/dist/schemas/index.d.ts +57 -27
  34. package/dist/schemas/index.js +12 -1
  35. package/dist/schemas/index.js.map +1 -1
  36. package/dist/seat-logs/index.cjs +815 -0
  37. package/dist/seat-logs/index.cjs.map +1 -0
  38. package/dist/seat-logs/index.d.cts +274 -0
  39. package/dist/seat-logs/index.d.ts +274 -0
  40. package/dist/seat-logs/index.js +742 -0
  41. package/dist/seat-logs/index.js.map +1 -0
  42. package/dist/validation/index.d.cts +1 -1
  43. package/dist/validation/index.d.ts +1 -1
  44. package/package.json +6 -1
  45. package/src/orgDirectory/__tests__/programDetails.test.ts +2 -1
  46. package/src/orgDirectory/__tests__/programTeamLink.test.ts +107 -0
  47. package/src/orgDirectory/schemas.ts +8 -1
  48. package/src/pointsOfContact/__tests__/seatContactLog.test.ts +170 -0
  49. package/src/pointsOfContact/readRules.ts +22 -4
  50. package/src/pointsOfContact/reader.ts +95 -1
  51. package/src/pointsOfContact/schemas.ts +4 -3
  52. package/src/schemas/organization-program.ts +25 -2
  53. package/src/seatLogs/__tests__/seatLogs.review.test.ts +222 -0
  54. package/src/seatLogs/__tests__/seatLogs.test.ts +335 -0
  55. package/src/seatLogs/index.ts +15 -0
  56. package/src/seatLogs/log.ts +700 -0
  57. package/src/seatLogs/personId.ts +100 -0
  58. package/src/seatLogs/personSlugWordlists.ts +40 -0
  59. package/src/seatLogs/reader.ts +143 -0
  60. package/src/seatLogs/schemas.ts +118 -0
  61. package/dist/{agency-CnVTwLeV.d.ts → agency-BHv54o79.d.ts} +4 -4
  62. package/dist/{agency-8ufZJJDH.d.cts → agency-Djp57S71.d.cts} +4 -4
  63. package/dist/{cvcEntry-D787utvP.d.cts → cvcEntry-DAuhe0cd.d.cts} +8 -8
  64. package/dist/{cvcEntry-D787utvP.d.ts → cvcEntry-DAuhe0cd.d.ts} +8 -8
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/seatLogs/index.ts","../../src/seatLogs/schemas.ts","../../src/generated/cvc-enums.ts","../../src/seatLogs/log.ts","../../src/seatLogs/personSlugWordlists.ts","../../src/seatLogs/personId.ts","../../src/seatLogs/reader.ts"],"sourcesContent":["/**\n * @htilabs/platform-common-models/seat-logs\n *\n * A seat's NAME log and CONTACT log (the member profile's \"Names\" and \"Ways to\n * reach them\"), and the Person id minter. Entry shapes, the display /\n * preferred invariants, insert-and-archive correction, phone normalization and\n * the digits key, the guards, the flat-field projections, and raw-driver reads.\n * Pure TypeScript, no mongoose, no driver import. Subpath only.\n */\n\nexport * from \"./schemas.js\";\nexport * from \"./log.js\";\nexport * from \"./personId.js\";\nexport * from \"./personSlugWordlists.js\";\nexport * from \"./reader.js\";\n","/**\n * A seat's NAME log and CONTACT log: the stored entry shapes.\n *\n * Canon: platform-prototype `src/screens.jsx` @ 398fb24 `SeatNamesLedger`\n * (L25149-L25288) and `SeatMethodsLedger` (L24981-L25137), over the object\n * store `src/objectStore.js` (`addEntry` / `act`, L660-L740) and the spine\n * cascade `src/objectStructuresEngine.generated.js` (`HTI_OBJECT_SPINE`,\n * L942-L1049).\n *\n * The record (Person Data Object, step 6c, Crysta 2026-10-11): \"a seat's name\n * and contact rails stay keyed by the seat\". So an entry's subject is the seat\n * (`subject_type: \"user\"`, `subject_id` = the platform-db `users._id`, string\n * form). A registry person's name rides the same log with\n * `subject_type: \"person\"` (Person decision B).\n *\n * Names, contact details and addresses are not fields of a Person; each is\n * its own log that points at the subject, so every entry carries its own\n * source and dates (Person § 3). An entry is never edited in place: a\n * correction inserts a new entry and archives the old one (`period_end`), and\n * a retired entry stays in the log with its dates.\n *\n * Field shapes are the prototype's as stored: open dates are the empty string\n * `\"\"` (not null), a closed entry carries `period_end` `YYYY-MM-DD`; the store\n * stamps an `events[]` audit trail (`{ act, at, actor }`) and a phone's\n * `digits` key.\n */\n\nimport { z } from \"zod\";\n\nimport { NameTypeKeys } from \"../generated/cvc-enums.js\";\n\n/** Platform-db collection holding name entries (all subjects). */\nexport const SEAT_NAMES_COLLECTION = \"seat_names\";\n/** Platform-db collection holding contact entries (all subjects). */\nexport const SEAT_CONTACTS_COLLECTION = \"seat_contacts\";\n\n/** Whose log: a seat (`users._id`) or a registry person (`per-…` id). */\nexport const SEAT_LOG_SUBJECT_TYPES = [\"user\", \"person\"] as const;\nexport type SeatLogSubjectType = (typeof SEAT_LOG_SUBJECT_TYPES)[number];\n\n/** The two contact types the seat ledger carries (prototype Email / Phone chips). */\nexport const SEAT_CONTACT_TYPES = [\"email\", \"phone\"] as const;\nexport type SeatContactType = (typeof SEAT_CONTACT_TYPES)[number];\n\n/** CVC-1 `name_type` keys (the prototype stores `alias` / `legal`). */\nexport const SEAT_NAME_TYPES = Object.keys(NameTypeKeys) as [\n keyof typeof NameTypeKeys,\n ...(keyof typeof NameTypeKeys)[],\n];\nexport type SeatNameType = keyof typeof NameTypeKeys;\n\n/** The name types the profile's add row offers, in its chip order. */\nexport const SEAT_NAME_ADD_TYPES = [\n { name_type: \"alias\", label: \"Also known as\" },\n { name_type: \"legal\", label: \"Legal name\" },\n] as const satisfies readonly { name_type: SeatNameType; label: string }[];\n\n/** One audit event the store stamps on an entry. */\nexport const SeatLogEventSchema = z.object({\n /** `add`, `set_display`, `set_preferred`, `archive`, or `cascade` (a sibling's flag moved). */\n act: z.string().min(1),\n /** ISO instant. */\n at: z.string().min(1),\n /** The acting seat's id. */\n actor: z.string(),\n});\nexport type SeatLogEvent = z.infer<typeof SeatLogEventSchema>;\n\n/** `\"\"` (open) or a `YYYY-MM-DD` day. */\nconst DayOrEmpty = z.union([z.literal(\"\"), z.string().regex(/^\\d{4}-\\d{2}-\\d{2}$/)]);\n\nconst subjectShape = {\n entry_id: z.string().min(1),\n subject_id: z.string().min(1),\n subject_type: z.enum(SEAT_LOG_SUBJECT_TYPES),\n period_start: DayOrEmpty,\n period_end: DayOrEmpty,\n /** Where the entry came from (`admin_hub` on the profile). */\n source: z.string(),\n /** How it was captured (`direct_entry` on the profile). */\n method: z.string(),\n notes: z.string(),\n events: z.array(SeatLogEventSchema).optional(),\n};\n\n/** One name in a seat's (or registry person's) name log. */\nexport const SeatNameEntrySchema = z.object({\n ...subjectShape,\n name_type: z.enum(SEAT_NAME_TYPES),\n /** The name as written. */\n raw: z.string().min(1),\n /** The display name: one live entry per subject carries it. */\n is_display: z.boolean(),\n /** Set with the display mark on the profile (prototype acts both together). */\n is_preferred: z.boolean(),\n});\nexport type SeatNameEntry = z.infer<typeof SeatNameEntrySchema>;\n\n/** One email or phone in a seat's contact log. */\nexport const SeatContactEntrySchema = z.object({\n ...subjectShape,\n contact_type: z.enum(SEAT_CONTACT_TYPES),\n /** Email trimmed; phone in the store's canonical display form ({@link canonSeatContactValue}). */\n value: z.string().min(1),\n use: z.string(),\n /** The preferred entry of its type: one live entry per subject and type carries it. */\n is_preferred: z.boolean(),\n safety_status: z.string(),\n /** Phone only: the identity key ({@link seatContactKey}), stamped by the store. */\n digits: z.string().optional(),\n});\nexport type SeatContactEntry = z.infer<typeof SeatContactEntrySchema>;\n\n/** The subject an operation acts on. */\nexport interface SeatLogSubject {\n subject_type: SeatLogSubjectType;\n subject_id: string;\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 (CVC-22, canonical; SOT v2.1.0 GENERATED from prototype canon `data/cvcs/core_service_categories.yaml` by scripts/gen-service-categories.py). Keys are stable across v1.2.0 → v2.0.0 → v2.1.0 (2.1.0 adds the LAP · INS · TRA rows, nothing moved); POSITIONAL CODES MOVED in v2.0.0 (a v1.2.0 code may name a different category — translate through the key, see `serviceCategoriesSot._supersedes.codeMoves`). Store the key. Every SOT entry also carries canon's rename/move-stable `vscatId` (a static-SOT field — the cvc_entities seeder does not persist it). Reseeding the shared registry to 2.0.0 is a coordinated cutover — see README § service_categories 2.0.0.\n *\n * Domain: `service_categories` · Version: 2.1.0 · Entries: 158\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 immediate_safety_planning: \"022-001-001-000-000-000-000\",\n emergency_crisis_safety_support: \"022-001-001-001-000-000-000\",\n on_scene_crisis_response: \"022-001-001-001-001-000-000\",\n hotline_crisis_line: \"022-001-001-001-002-000-000\",\n crisis_intervention_in_person: \"022-001-001-001-003-000-000\",\n food: \"022-001-002-000-000-000-000\",\n clothing_shoes_accessories: \"022-001-003-000-000-000-000\",\n over_the_counter_medications: \"022-001-004-000-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 elder_assistance: \"022-001-008-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 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 household_setup_goods: \"022-002-007-000-000-000-000\",\n social_support_community_engagement: \"022-003-000-000-000-000-000\",\n gift_holiday_resources: \"022-003-001-000-000-000-000\",\n peer_facilitated_supportive_group: \"022-003-002-000-000-000-000\",\n community_service_learning: \"022-003-003-000-000-000-000\",\n cultural_needs_support: \"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 emergency_safety_assistance: \"022-005-004-000-000-000-000\",\n civil_support: \"022-005-005-000-000-000-000\",\n protection_restraining_orders: \"022-005-005-001-000-000-000\",\n public_benefits_law: \"022-005-005-002-000-000-000\",\n healthcare: \"022-006-000-000-000-000-000\",\n medical: \"022-006-001-000-000-000-000\",\n forensic_exam_interview: \"022-006-001-001-000-000-000\",\n specialized_assessments: \"022-006-001-001-001-000-000\",\n counseling_evaluation_assessment: \"022-006-001-001-001-001-000\",\n stalking_assessment: \"022-006-001-001-001-002-000\",\n danger_assessment: \"022-006-001-001-001-003-000\",\n indepth_assessment: \"022-006-001-001-001-004-000\",\n dv_exam: \"022-006-001-001-002-000-000\",\n sane_exam: \"022-006-001-001-003-000-000\",\n std_testing: \"022-006-001-001-004-000-000\",\n outpatient_medical: \"022-006-001-002-000-000-000\",\n vision: \"022-006-001-002-001-000-000\",\n dental: \"022-006-001-002-002-000-000\",\n pet_medical: \"022-006-001-002-003-000-000\",\n tattoo_removal: \"022-006-001-002-004-000-000\",\n emergency_medical_care: \"022-006-001-003-000-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 behavioral_occupational_support: \"022-006-002-001-000-000-000\",\n substance_abuse_treatment: \"022-006-002-001-001-000-000\",\n coping_strategy_support: \"022-006-002-001-002-000-000\",\n individual_counseling: \"022-006-002-002-000-000-000\",\n group_counseling: \"022-006-002-003-000-000-000\",\n other_therapy: \"022-006-002-004-000-000-000\",\n family_counseling: \"022-006-002-005-000-000-000\",\n counseling_treatment_planning: \"022-006-002-006-000-000-000\",\n counseling_treatment_plan_review: \"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 budgeting_financial_capability: \"022-007-001-002-000-000-000\",\n employment_support: \"022-007-002-000-000-000-000\",\n employment_assistance_job_search: \"022-007-002-001-000-000-000\",\n job_vocation_training: \"022-007-002-002-000-000-000\",\n supported_employment: \"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 formal_education_academic_support: \"022-008-005-000-000-000-000\",\n adult_school_ged: \"022-008-005-001-000-000-000\",\n child_school_enrollment: \"022-008-005-002-000-000-000\",\n dependents: \"022-009-000-000-000-000-000\",\n child_care: \"022-009-001-000-000-000-000\",\n childrens_activities: \"022-009-001-001-000-000-000\",\n children_youth_baby_supplies: \"022-009-001-002-000-000-000\",\n pet_care: \"022-009-002-000-000-000-000\",\n case_coordination: \"022-010-000-000-000-000-000\",\n intake: \"022-010-001-000-000-000-000\",\n screening: \"022-010-001-001-000-000-000\",\n needs_assessment: \"022-010-001-001-001-000-000\",\n initial_screen: \"022-010-001-001-002-000-000\",\n housing_eligibility_determination: \"022-010-001-001-003-000-000\",\n coordinated_entry: \"022-010-001-001-003-001-000\",\n behavioral_issues_screen: \"022-010-001-001-004-000-000\",\n tvap: \"022-010-001-001-005-000-000\",\n lethality_assessment: \"022-010-001-001-006-000-000\",\n injury_strangulation_screen: \"022-010-001-001-007-000-000\",\n trafficking_risk_assessment: \"022-010-001-001-008-000-000\",\n advocacy: \"022-010-002-000-000-000-000\",\n medical_advocacy: \"022-010-002-001-000-000-000\",\n advocacy_emergency_medical: \"022-010-002-001-001-000-000\",\n advocacy_forensic_exam: \"022-010-002-001-002-000-000\",\n court_advocacy: \"022-010-002-002-000-000-000\",\n family_reunification: \"022-010-002-002-001-000-000\",\n crime_scene_clean_up: \"022-010-002-002-002-000-000\",\n law_enforcement_interview_support: \"022-010-002-002-003-000-000\",\n prosecution_interview_advocacy: \"022-010-002-002-004-000-000\",\n immigration_advocacy_support: \"022-010-002-002-005-000-000\",\n documentation_records_retrieval: \"022-010-002-003-000-000-000\",\n obtaining_drivers_license: \"022-010-002-003-001-000-000\",\n obtaining_insurance: \"022-010-002-003-002-000-000\",\n drivers_car_insurance: \"022-010-002-003-002-001-000\",\n medical_insurance: \"022-010-002-003-002-002-000\",\n faith_resource: \"022-010-002-004-000-000-000\",\n income_benefits_navigation: \"022-010-002-005-000-000-000\",\n government_services_special_programs: \"022-010-002-005-001-000-000\",\n banking_notary: \"022-010-002-006-000-000-000\",\n intervention_employer_creditor_academic: \"022-010-002-007-000-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 (CVC-49, canonical; SOT v1.2.0 GENERATED from prototype canon `data/cvcs/core_service_state.yaml` by scripts/gen-service-states.py). The stored lifecycle state of ONE service instance — the CVC-49 CODE at rest (Crysta ruling E, 2026-10-07); the app's stamp words are display. Eight keys are DEPRECATED read-only rows (`selectable: false`, `deprecated: true`): the four 'Unable due to …' sub-rows canon archived onto CVC-219 why-nots, the two provisional sub-rows, and `anonymous` / `data_not_collected` (level 0 is UNK alone). The stamp → code crosswalk is `serviceStatesSot.stampCrosswalk` and `SERVICE_STATE_STAMP_CROSSWALK`.\n *\n * Domain: `service_states` · Version: 1.2.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 (CVC-25, canonical; SOT v1.1.0 GENERATED from prototype canon `data/cvcs/core_service_mechanisms.yaml` by scripts/gen-service-mechanisms.py). HOW a service was delivered — ONE OR MORE per service instance (a list, CVC25-AUDIT R1); a `referred` stamp requires `support_via_referral` among them. Every substantive entry carries canon's minted token on `canonicalCode` (REFERRAL · INFORMATIONAL · DIRECT_STAFF · FINANCIAL_MATERIAL; UNK · ANON · DNC) — `SERVICE_MECHANISM_CANONICAL_CODE` is the key → token map, `serviceMechanismKeyForCanonicalCode` the inverse.\n *\n * Domain: `service_mechanisms` · Version: 1.1.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.1.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.1.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.1.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 (canon CVC-304 `core-case_share_review_state`, re-mirrored from prototype origin/main canon by scripts/gen-case-share-state.py). The recipient-side review lifecycle of an inbound case share. `accepted_awaiting_review` = field-by-field review in flight (NOT a duplicate-person hold); it releases to `accepted` only when a case is linked and every blocking conflict is decided. Keys and 925-NNN codes are frozen since v1.0.0.\n *\n * Domain: `case_share_state` · Version: 1.2.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 `record_removal_reason` CVC domain (CVC-282 `core-record_removal_reason`, ratified by Crysta 2026-07-04, Active / v1.1 after the 2026-09-28 CVC-BATCH-K audit; generated from prototype origin/main canon by scripts/gen-record-removal-reason.py). WHY a record was removed; each code routes to a ratified verb. Ordinals follow the mirror's ratified order and are frozen. The single L0 sentinel (`unknown`, canonical UNK) is ingestion-only and never a picker option; the codebook's retired ANON and archived DNC rows are omitted. @htilabs/platform-common-car maps each code to the CVC-337 correction reason a removed record's claims are retracted with.\n *\n * Domain: `record_removal_reason` · Version: 1.0.0 · Entries: 10\n */\nexport const RecordRemovalReasonKeys = {\n missingness_root: \"282-000-000-000-000-000-000\",\n unknown: \"282-000-000-000-000-000-001\",\n created_in_error: \"282-001-000-000-000-000-000\",\n wrong_subject: \"282-002-000-000-000-000-000\",\n no_longer_relevant: \"282-003-000-000-000-000-000\",\n legal_mandate_expungement: \"282-004-000-000-000-000-000\",\n legal_mandate_confidentiality: \"282-005-000-000-000-000-000\",\n legal_mandate_court_order: \"282-006-000-000-000-000-000\",\n duplicate: \"282-007-000-000-000-000-000\",\n spam_bad_data: \"282-008-000-000-000-000-000\",\n} as const;\n\nexport type RecordRemovalReasonKey = keyof typeof RecordRemovalReasonKeys;\n\n/**\n * Key → positional code map for the `vehicle_color` CVC domain (CVC-257 `core-vehicle_color`, Active / v2 after the 2026-09-04 vehicle-family audit, Crysta rulings R1-R4; generated from prototype origin/main canon by scripts/gen-vehicle-vocabulary.py). One coded list for PAVE and LEADS (R1). Canon's three-letter code (BLK, SIL, … — R2, matching hair and eye colour) rides on each entry as `canonicalCode`; the key is the label slug. `other` (OTH) keeps the original wording in the companion field `color_other`. Values stored before 2026-09-04 resolve through the SOT's `legacyValueMap` on read. UNK is pickable; ANON comes only from the decline affordances; DNC is system-stamped only.\n *\n * Domain: `vehicle_color` · Version: 1.0.0 · Entries: 15\n */\nexport const VehicleColorKeys = {\n missingness_root: \"257-000-000-000-000-000-000\",\n unknown: \"257-000-000-000-000-000-001\",\n anonymous: \"257-000-000-000-000-000-002\",\n data_not_collected: \"257-000-000-000-000-000-003\",\n black: \"257-001-000-000-000-000-000\",\n white: \"257-002-000-000-000-000-000\",\n silver: \"257-003-000-000-000-000-000\",\n gray: \"257-004-000-000-000-000-000\",\n red: \"257-005-000-000-000-000-000\",\n blue: \"257-006-000-000-000-000-000\",\n green: \"257-007-000-000-000-000-000\",\n yellow: \"257-008-000-000-000-000-000\",\n brown: \"257-009-000-000-000-000-000\",\n tan: \"257-010-000-000-000-000-000\",\n other: \"257-011-000-000-000-000-000\",\n} as const;\n\nexport type VehicleColorKey = keyof typeof VehicleColorKeys;\n\n/**\n * Key → positional code map for the `vehicle_body_type` CVC domain (CVC-258 `core-vehicle_body_type`, Active / v2 after the 2026-09-04 vehicle-family audit; generated from prototype origin/main canon by scripts/gen-vehicle-vocabulary.py). Lowercase level-1 codes are the keys. Optional and never required: an absent value is the ordinary state, and a deliberate `unknown` (UNK) persists and reads differently from absent (R3). `glyph` is a rendering detail only. LEADS only — PAVE has no body-type field.\n *\n * Domain: `vehicle_body_type` · Version: 1.0.0 · Entries: 12\n */\nexport const VehicleBodyTypeKeys = {\n missingness_root: \"258-000-000-000-000-000-000\",\n unknown: \"258-000-000-000-000-000-001\",\n anonymous: \"258-000-000-000-000-000-002\",\n data_not_collected: \"258-000-000-000-000-000-003\",\n sedan: \"258-001-000-000-000-000-000\",\n suv: \"258-002-000-000-000-000-000\",\n pickup: \"258-003-000-000-000-000-000\",\n van: \"258-004-000-000-000-000-000\",\n coupe: \"258-005-000-000-000-000-000\",\n motorcycle: \"258-006-000-000-000-000-000\",\n commercial: \"258-007-000-000-000-000-000\",\n other: \"258-008-000-000-000-000-000\",\n} as const;\n\nexport type VehicleBodyTypeKey = keyof typeof VehicleBodyTypeKeys;\n\n/**\n * Key → positional code map for the `share_release_basis` CVC domain (CVC-331 `core-share_release_basis`, Active / v1.0, minted 2026-10-07 on Crysta's ruling E and amended 2026-10-08 to three values; generated from prototype origin/main canon by scripts/gen-share-edge-vocabulary.py). WHY a case share was allowed to leave the sender's record — the share edge's stored `roi_basis`: `signed_release` · `not_required` · `legal_override`. The code is the stored value (identical to the key). Derived at send, never a picker (`pickable: false`). No level-0 rows (declared). The legacy sender-row value `signed` reads as `signed_release` (`legacyCodes`, via `resolveCodebookCode`); the retired `waived` has no code and resolves to nothing.\n *\n * Domain: `share_release_basis` · Version: 1.0.0 · Entries: 3\n */\nexport const ShareReleaseBasisKeys = {\n signed_release: \"331-001-000-000-000-000-000\",\n not_required: \"331-002-000-000-000-000-000\",\n legal_override: \"331-003-000-000-000-000-000\",\n} as const;\n\nexport type ShareReleaseBasisKey = keyof typeof ShareReleaseBasisKeys;\n\n/**\n * Key → positional code map for the `case_share_channel_state` CVC domain (CVC-305 `core-case_share_channel_state`, Active / v1.1 after the 2026-09-14 SHARING-FAMILY-AUDIT; generated from prototype origin/main canon by scripts/gen-share-edge-vocabulary.py). The SENDER-SIDE channel axis of a case share — the share edge's stored `channel_state`: `active` · `withdrawn` · `expired` — beside CVC-304's review axis (`case_share_state`). withdrawn / expired render as derived overlays, never chips. The single L0 sentinel (`unknown`, canonical UNK) is ingestion-only; the codebook's archived DNC row is omitted.\n *\n * Domain: `case_share_channel_state` · Version: 1.0.0 · Entries: 5\n */\nexport const CaseShareChannelStateKeys = {\n missingness_root: \"305-000-000-000-000-000-000\",\n unknown: \"305-000-000-000-000-000-001\",\n active: \"305-001-000-000-000-000-000\",\n withdrawn: \"305-002-000-000-000-000-000\",\n expired: \"305-003-000-000-000-000-000\",\n} as const;\n\nexport type CaseShareChannelStateKey = keyof typeof CaseShareChannelStateKeys;\n\n/**\n * Key → positional code map for the `site_purpose` CVC domain (CVC-330 `core-site_purpose`, IC-4 Location; minted 2026-10-01 on Crysta ruling Q3, list confirmed final by the steward 2026-11-11; generated from prototype origin/main canon by scripts/gen-site-purpose.py). What kind of site an organization location is, for the organization — never a person location type (CVC-191) and never what happened at a place (CVC-316). The STORED value is canon code (HQ, SHELTER, …), carried on each entry as `canonicalCode`; the key is that code lower-cased. No level-0 rows by declaration: a blank purpose means not set. Read it through `src/constants/site-purpose.ts` (SITE_PURPOSE_CODES, SITE_PURPOSE_LABELS, isSitePurposeCode, normalizeSitePurpose).\n *\n * Domain: `site_purpose` · Version: 1.0.0 · Entries: 7\n */\nexport const SitePurposeKeys = {\n hq: \"330-001-000-000-000-000-000\",\n shelter: \"330-002-000-000-000-000-000\",\n outreach_site: \"330-003-000-000-000-000-000\",\n admin_office: \"330-004-000-000-000-000-000\",\n medical_office: \"330-005-000-000-000-000-000\",\n regional_office: \"330-006-000-000-000-000-000\",\n other: \"330-007-000-000-000-000-000\",\n} as const;\n\nexport type SitePurposeKey = keyof typeof SitePurposeKeys;\n\n/**\n * Key → positional code map for the `handling_flags` CVC domain (CVC-202 `core-handling_flags`, IC-6 / IC-65 / IC-66; generated from prototype origin/main canon by scripts/gen-handling-flags.py). How a record must be TREATED — access clamp, export gating, redaction, retention, discovery exposure. The STORED value is canon code (CI_28CFR23, …), carried on each entry as `canonicalCode`; the key is that code lower-cased. The level-0 rows are never offered (no handling constraint is an empty list). Read it through `src/constants/handling-flags.ts` (HANDLING_FLAG_CODES, HANDLING_FLAG_WORDS, handlingFlagsOffered).\n *\n * Domain: `handling_flags` · Version: 1.0.0 · Entries: 14\n */\nexport const HandlingFlagsKeys = {\n missingness_root: \"202-000-000-000-000-000-000\",\n unknown: \"202-000-000-000-000-000-001\",\n anonymous: \"202-000-000-000-000-000-002\",\n data_not_collected: \"202-000-000-000-000-000-003\",\n ci_28cfr23: \"202-001-000-000-000-000-000\",\n cji_cjis: \"202-002-000-000-000-000-000\",\n chri: \"202-003-000-000-000-000-000\",\n work_product: \"202-004-000-000-000-000-000\",\n vawa_survivor_pii: \"202-005-000-000-000-000-000\",\n victim_pii: \"202-006-000-000-000-000-000\",\n evidence_discovery: \"202-007-000-000-000-000-000\",\n juvenile_protected: \"202-008-000-000-000-000-000\",\n hti_internal: \"202-009-000-000-000-000-000\",\n restricted_confidential: \"202-010-000-000-000-000-000\",\n} as const;\n\nexport type HandlingFlagsKey = keyof typeof HandlingFlagsKeys;\n\n/**\n * Key → positional code map for the `share_cadence` CVC domain (CVC-85 `core-share_cadence`, approved 2026-08-12, Active after the 2026-09-14 SHARING-FAMILY-AUDIT; generated from prototype canon by scripts/gen-share-cadence.py). The temporal shape of sharing: `point_in_time` (one-shot), `ongoing` (time-bounded channel), `automatic` (settings-determined). Cadence authorizes nothing. Configured on the partner relationship, DERIVED on the share record (never an end-user picker). No level-0 wing: an underivable cadence is absent, not a code.\n *\n * Domain: `share_cadence` · Version: 1.0.0 · Entries: 3\n */\nexport const ShareCadenceKeys = {\n point_in_time: \"085-001-000-000-000-000-000\",\n ongoing: \"085-002-000-000-000-000-000\",\n automatic: \"085-003-000-000-000-000-000\",\n} as const;\n\nexport type ShareCadenceKey = keyof typeof ShareCadenceKeys;\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.1 · 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 (CVC-176 `core-frequency_cadence`, IC-71; generated from prototype origin/main canon by scripts/gen-funding-vocabulary.py). How often something occurs: a reporting interval or an income interval. Keys and positional codes 176-001..007 are FROZEN at first publication; semiannual, biennial and triennial append at 176-008..010. The codebook code (DAILY, SEMIANNUAL, …) rides on each entry as `canonicalCode`. Read it through `src/constants/frequency-cadence.ts`.\n *\n * Domain: `frequency_cadence` · Version: 1.1.0 · Entries: 14\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 semiannual: \"176-008-000-000-000-000-000\",\n biennial: \"176-009-000-000-000-000-000\",\n triennial: \"176-010-000-000-000-000-000\",\n} as const;\n\nexport type FrequencyCadenceKey = keyof typeof FrequencyCadenceKeys;\n\n/**\n * Key → positional code map for the `reporting_regime` CVC domain (CVC-307 `core-reporting_regime`, IC-79 Grants & Funding; generated from prototype origin/main canon by scripts/gen-funding-vocabulary.py). The kind of reporting / compliance obligation that binds an agency. No level-0 rows by ruling: an obligation is asserted, never observed. The codebook code (HMIS, VAWA_CONFIDENTIALITY, …) rides on each entry as `canonicalCode`. Read it through `src/constants/reporting-regime.ts`.\n *\n * Domain: `reporting_regime` · Version: 1.0.0 · Entries: 6\n */\nexport const ReportingRegimeKeys = {\n hmis: \"307-001-000-000-000-000-000\",\n vawa_confidentiality: \"307-002-000-000-000-000-000\",\n voca_aggregate_only: \"307-003-000-000-000-000-000\",\n rhy_r19_r20: \"307-004-000-000-000-000-000\",\n state_certification: \"307-005-000-000-000-000-000\",\n other: \"307-006-000-000-000-000-000\",\n} as const;\n\nexport type ReportingRegimeKey = keyof typeof ReportingRegimeKeys;\n\n/**\n * Key → positional code map for the `reporting_audience` CVC domain (CVC-308 `core-reporting_audience`, IC-79 Grants & Funding; generated from prototype origin/main canon by scripts/gen-funding-vocabulary.py). Who reads a report; multi-select on a grant or a declared reporting obligation. The codebook code (FUNDER, BOARD, …) rides on each entry as `canonicalCode`. Read it through `src/constants/reporting-audience.ts`.\n *\n * Domain: `reporting_audience` · Version: 1.0.0 · Entries: 9\n */\nexport const ReportingAudienceKeys = {\n missingness_root: \"308-000-000-000-000-000-000\",\n unknown: \"308-000-000-000-000-000-001\",\n anonymous: \"308-000-000-000-000-000-002\",\n data_not_collected: \"308-000-000-000-000-000-003\",\n funder: \"308-001-000-000-000-000-000\",\n internal_leadership: \"308-002-000-000-000-000-000\",\n board: \"308-003-000-000-000-000-000\",\n government_agency: \"308-004-000-000-000-000-000\",\n other: \"308-005-000-000-000-000-000\",\n} as const;\n\nexport type ReportingAudienceKey = keyof typeof ReportingAudienceKeys;\n\n/**\n * Key → positional code map for the `recipient_role` CVC domain (CVC-309 `core-recipient_role`, IC-79 Grants & Funding; generated from prototype origin/main canon by scripts/gen-funding-vocabulary.py). Whether an agency holds an award directly (PRIME) or through a pass-through entity (SUBRECIPIENT). The codebook code rides on each entry as `canonicalCode`. Read it through `src/constants/recipient-role.ts`.\n *\n * Domain: `recipient_role` · Version: 1.0.0 · Entries: 6\n */\nexport const RecipientRoleKeys = {\n missingness_root: \"309-000-000-000-000-000-000\",\n unknown: \"309-000-000-000-000-000-001\",\n anonymous: \"309-000-000-000-000-000-002\",\n data_not_collected: \"309-000-000-000-000-000-003\",\n prime: \"309-001-000-000-000-000-000\",\n subrecipient: \"309-002-000-000-000-000-000\",\n} as const;\n\nexport type RecipientRoleKey = keyof typeof RecipientRoleKeys;\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.2.0 · Entries: 13\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 doc_signed: \"143-008-000-000-000-000-000\",\n findings_seal: \"143-009-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 (CVC-226 `core-funder`, IC-79 Grants & Funding; generated from prototype origin/main canon by scripts/gen-funding-vocabulary.py). Who pays: the funding source behind a grant or a program enrollment. Keys and positional codes 226-001..008 are FROZEN at first publication (PAVE stores the key); `ovw_sasp` appends at 226-009. The codebook code (HUD-CoC, OVW-SASP, …) rides on each entry as `canonicalCode`. Read it — and its gates — through `src/constants/funder.ts`; decide by the gates, never by the code string.\n *\n * Domain: `funder` · Version: 1.1.0 · Entries: 13\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 ovw_sasp: \"226-009-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.1.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.1.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 (CVC-194 `core - housing subsidy types`, IC-73; SOT v2.0.0 re-synced to the live Notion codebook, CVC194-AUDIT). HUD's dependent subsidy-type field (asked only when living situation / destination = 435): the eleven HUD FY2026 list 3.12.A responses + the HTI `other_housing_subsidy` (OTHER) extension + the UNK / ANON / DNC triplet. Each codebook row carries its Notion Code on `canonicalCode` and its 3.12.A value on `hmisCode`; `data_not_collected` is system-stamped only (`neverPickable`). `no_subsidy` is NOT a codebook row: kept live for the needs-assessment subsidy question pending Crysta's ruling (no `canonicalCode`, no HUD value). 2.0.0 REMOVED `project_based_rental_assistance` (194-003 retired, no successor; see `housingSubsidyTypesSot._supersedes`).\n *\n * Domain: `housing_subsidy_types` · Version: 2.0.0 · Entries: 17\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 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 other_rental_subsidy: \"194-013-000-000-000-000-000\",\n other_formerly_homeless: \"194-014-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: 1.3.0 · Entries: 79\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 age_reporting: \"159-068-000-000-000-000-000\",\n race_ethnicity_reporting: \"159-069-000-000-000-000-000\",\n gender_reporting: \"159-070-000-000-000-000-000\",\n disability_reporting: \"159-071-000-000-000-000-000\",\n veteran_status: \"159-072-000-000-000-000-000\",\n english_proficiency: \"159-073-000-000-000-000-000\",\n birth_country_reporting: \"159-074-000-000-000-000-000\",\n assessment: \"159-075-000-000-000-000-000\",\n ida_determination: \"159-076-000-000-000-000-000\",\n} as const;\n\nexport type AssertionDomainKey = keyof typeof AssertionDomainKeys;\n\n/**\n * Key → positional code map for the `race_ethnicity_reporting` CVC domain (CVC-37 VOCA/OVC race/ethnicity list and its CVC-76 crosswalk; since 2026-11-10 no longer the `race_ethnicity_reporting` claim’s vocabulary — the claim stores the CVC-76 Level-1 codes).\n *\n * Domain: `race_ethnicity_reporting` · Version: 1.0.1 · Entries: 10\n */\nexport const RaceEthnicityReportingKeys = {\n missingness_root: \"037-000-000-000-000-000-000\",\n not_reported: \"037-000-000-000-000-000-001\",\n american_indian_alaska_native: \"037-001-000-000-000-000-000\",\n asian: \"037-002-000-000-000-000-000\",\n black_african_american: \"037-003-000-000-000-000-000\",\n hispanic_latino: \"037-004-000-000-000-000-000\",\n native_hawaiian_pacific_islander: \"037-005-000-000-000-000-000\",\n white: \"037-006-000-000-000-000-000\",\n some_other_race: \"037-007-000-000-000-000-000\",\n multiple_races: \"037-008-000-000-000-000-000\",\n} as const;\n\nexport type RaceEthnicityReportingKey = keyof typeof RaceEthnicityReportingKeys;\n\n/**\n * Key → positional code map for the `veteran_status` CVC domain (CVC-98; demographic reporting rung, 2026-10-30).\n *\n * Domain: `veteran_status` · Version: 1.0.0 · Entries: 6\n */\nexport const VeteranStatusKeys = {\n missingness_root: \"098-000-000-000-000-000-000\",\n unknown: \"098-000-000-000-000-000-001\",\n anonymous: \"098-000-000-000-000-000-002\",\n data_not_collected: \"098-000-000-000-000-000-003\",\n yes: \"098-001-000-000-000-000-000\",\n no: \"098-002-000-000-000-000-000\",\n} as const;\n\nexport type VeteranStatusKey = keyof typeof VeteranStatusKeys;\n\n/**\n * Key → positional code map for the `english_proficiency` CVC domain (CVC-99; demographic reporting rung, 2026-10-30).\n *\n * Domain: `english_proficiency` · Version: 1.0.0 · Entries: 9\n */\nexport const EnglishProficiencyKeys = {\n missingness_root: \"099-000-000-000-000-000-000\",\n unknown: \"099-000-000-000-000-000-001\",\n anon: \"099-000-000-000-000-000-002\",\n dnc: \"099-000-000-000-000-000-003\",\n none: \"099-001-000-000-000-000-000\",\n elementary: \"099-002-000-000-000-000-000\",\n limited_working: \"099-003-000-000-000-000-000\",\n professional: \"099-004-000-000-000-000-000\",\n native_fluent: \"099-005-000-000-000-000-000\",\n} as const;\n\nexport type EnglishProficiencyKey = keyof typeof EnglishProficiencyKeys;\n\n/**\n * Key → positional code map for the `general_disability` CVC domain (CVC-107; demographic reporting rung, 2026-10-30).\n *\n * Domain: `general_disability` · Version: 1.0.1 · Entries: 6\n */\nexport const GeneralDisabilityKeys = {\n missingness_root: \"107-000-000-000-000-000-000\",\n unknown: \"107-000-000-000-000-000-001\",\n anonymous: \"107-000-000-000-000-000-002\",\n data_not_collected: \"107-000-000-000-000-000-003\",\n yes: \"107-001-000-000-000-000-000\",\n no: \"107-002-000-000-000-000-000\",\n} as const;\n\nexport type GeneralDisabilityKey = keyof typeof GeneralDisabilityKeys;\n\n/**\n * Key → positional code map for the `gender_reporting` CVC domain (PROVISIONAL 994 — CVC-159 gender_reporting value rows (roll-up of CVC-17; 1.1.0 adds transgender_woman / transgender_man, 2026-11-10); since 1.2.0 (2026-11-10) no longer the `gender_reporting` claim’s vocabulary — the claim stores the CVC-17 codes; this is the alias map for older claim values).\n *\n * Domain: `gender_reporting` · Version: 1.2.0 · Entries: 9\n */\nexport const GenderReportingKeys = {\n missingness_root: \"994-000-000-000-000-000-000\",\n not_reported: \"994-000-000-000-000-000-001\",\n female: \"994-001-000-000-000-000-000\",\n male: \"994-002-000-000-000-000-000\",\n transgender: \"994-003-000-000-000-000-000\",\n non_binary: \"994-004-000-000-000-000-000\",\n other: \"994-005-000-000-000-000-000\",\n transgender_woman: \"994-006-000-000-000-000-000\",\n transgender_man: \"994-007-000-000-000-000-000\",\n} as const;\n\nexport type GenderReportingKey = keyof typeof GenderReportingKeys;\n\n/**\n * Key → positional code map for the `birth_country_reporting` CVC domain (PROVISIONAL 995 — CVC-159 birth_country_reporting value rows; demographic reporting rung, 2026-10-30).\n *\n * Domain: `birth_country_reporting` · Version: 1.0.0 · Entries: 6\n */\nexport const BirthCountryReportingKeys = {\n missingness_root: \"995-000-000-000-000-000-000\",\n unknown: \"995-000-000-000-000-000-001\",\n anonymous: \"995-000-000-000-000-000-002\",\n data_not_collected: \"995-000-000-000-000-000-003\",\n born_in_us: \"995-001-000-000-000-000-000\",\n born_outside_us: \"995-002-000-000-000-000-000\",\n} as const;\n\nexport type BirthCountryReportingKey = keyof typeof BirthCountryReportingKeys;\n\n/**\n * Key → positional code map for the `disability_reporting` CVC domain (PROVISIONAL 996 — CVC-159 disability_reporting value rows (the CVC-302 category roll-up); re-bound from CVC-107 by Crysta's ruling 2026-11-02; since 1.1.0 (2026-11-10) no longer the `disability_reporting` claim’s vocabulary — the claim stores the CVC-302 codes; this is the alias map for older claim values).\n *\n * Domain: `disability_reporting` · Version: 1.1.0 · Entries: 11\n */\nexport const DisabilityReportingKeys = {\n missingness_root: \"996-000-000-000-000-000-000\",\n not_reported: \"996-000-000-000-000-000-001\",\n hearing: \"996-001-000-000-000-000-000\",\n vision: \"996-002-000-000-000-000-000\",\n speech: \"996-003-000-000-000-000-000\",\n cognitive_developmental: \"996-004-000-000-000-000-000\",\n physical: \"996-005-000-000-000-000-000\",\n mental: \"996-006-000-000-000-000-000\",\n other: \"996-007-000-000-000-000-000\",\n type_unknown: \"996-008-000-000-000-000-000\",\n no_disability: \"996-009-000-000-000-000-000\",\n} as const;\n\nexport type DisabilityReportingKey = keyof typeof DisabilityReportingKeys;\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.8.0 · Entries: 118\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 agency_reports_view: \"133-114-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 `service_delivery_change_type` CVC domain (DRAFT-TEMPORARY, PROVISIONAL 997; codebook home owed — no Notion CVC page, no CVC number minted). The 37 kinds of change to a service record, one CAR verb each on the `service_delivery` casework domain: the prototype's `emitServiceInstanceCAR` codes (22 mapped + 15 stored as `svc_<verb>`, prefix removed). Each entry carries `title` (the shared label), `slot`, `allowedDetailKeys` (codes and ids only), `staging` (`session` | `at_act`), `selectable: true` (every entry is a valid value) and `pickable: false` (never offered in a picker). Not the four track-judgment codes that share the domain).\n *\n * Domain: `service_delivery_change_type` · Version: 1.1.0 · Entries: 37\n */\nexport const ServiceDeliveryChangeTypeKeys = {\n instance_added: \"997-001-000-000-000-000-000\",\n service_instance_auto_derived_from_template: \"997-002-000-000-000-000-000\",\n advocacy_auto_instance_created: \"997-003-000-000-000-000-000\",\n specialized_assessments_auto_instance_created: \"997-004-000-000-000-000-000\",\n lifecycle_stamped: \"997-005-000-000-000-000-000\",\n lifecycle_date_changed: \"997-006-000-000-000-000-000\",\n lifecycle_cleared: \"997-007-000-000-000-000-000\",\n instance_reopened: \"997-008-000-000-000-000-000\",\n instance_closed: \"997-009-000-000-000-000-000\",\n instance_removed: \"997-010-000-000-000-000-000\",\n instance_archived: \"997-011-000-000-000-000-000\",\n instance_restored: \"997-012-000-000-000-000-000\",\n instance_tracking_transferred: \"997-013-000-000-000-000-000\",\n instance_tracking_released: \"997-014-000-000-000-000-000\",\n mechanism_set: \"997-015-000-000-000-000-000\",\n mechanism_cleared: \"997-016-000-000-000-000-000\",\n channel_set: \"997-017-000-000-000-000-000\",\n channel_cleared: \"997-018-000-000-000-000-000\",\n source_set: \"997-019-000-000-000-000-000\",\n source_cleared: \"997-020-000-000-000-000-000\",\n source_provider_org_set: \"997-021-000-000-000-000-000\",\n source_provider_org_cleared: \"997-022-000-000-000-000-000\",\n location_override_set: \"997-023-000-000-000-000-000\",\n location_override_cleared: \"997-024-000-000-000-000-000\",\n attempt_reason_set: \"997-025-000-000-000-000-000\",\n attempt_reason_cleared: \"997-026-000-000-000-000-000\",\n referral_target_set: \"997-027-000-000-000-000-000\",\n referral_target_cleared: \"997-028-000-000-000-000-000\",\n referral_outcome_set: \"997-029-000-000-000-000-000\",\n referral_outcome_cleared: \"997-030-000-000-000-000-000\",\n referral_entity_category_set: \"997-031-000-000-000-000-000\",\n referral_entity_category_cleared: \"997-032-000-000-000-000-000\",\n recipients_changed: \"997-033-000-000-000-000-000\",\n audiences_changed: \"997-034-000-000-000-000-000\",\n lineage_drilled_down: \"997-035-000-000-000-000-000\",\n derived_from_question: \"997-036-000-000-000-000-000\",\n metadata_changed: \"997-037-000-000-000-000-000\",\n} as const;\n\nexport type ServiceDeliveryChangeTypeKey = keyof typeof ServiceDeliveryChangeTypeKeys;\n\n/**\n * Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236 v4 tree, SOT v2.1.1: 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.1 · 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.1 · 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; 221 canonical indicator codes re-sourced from prototype `data/core_indicators.yaml` @ 40f57ad, reconciled against @hti/scoring `emits_by_code` @ 386f5f1; 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 = 223 substantive; SOT v1.2.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.2.0 · Entries: 227\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 potential_trafficking_victim_recorded: \"136-223-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.1.0 · Entries: 115\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 hti_hope_scale: \"209-038-000-000-000-000-000\",\n hti_core_profile: \"209-039-000-000-000-000-000\",\n hti_pave_persons_network: \"209-040-000-000-000-000-000\",\n hti_pave_victimizations: \"209-041-000-000-000-000-000\",\n hti_pave_intake_workflow: \"209-042-000-000-000-000-000\",\n hti_pave_case_view: \"209-043-000-000-000-000-000\",\n hti_directory_entry: \"209-044-000-000-000-000-000\",\n hti_pave_milestone_derivation: \"209-045-000-000-000-000-000\",\n hti_track1_identification_derivation: \"209-046-000-000-000-000-000\",\n hti_investigative_outcomes_vetting: \"209-047-000-000-000-000-000\",\n hti_risk_band_crossing: \"209-048-000-000-000-000-000\",\n hti_leads_actionability: \"209-049-000-000-000-000-000\",\n hti_leads_ad_extraction: \"209-050-000-000-000-000-000\",\n hti_leads_ad_address: \"209-051-000-000-000-000-000\",\n hti_leads_ad_age: \"209-052-000-000-000-000-000\",\n hti_leads_ad_age_indicator: \"209-053-000-000-000-000-000\",\n hti_leads_ad_available_anytime: \"209-054-000-000-000-000-000\",\n hti_leads_available_anytime_indicator: \"209-055-000-000-000-000-000\",\n hti_leads_ad_client_pref: \"209-056-000-000-000-000-000\",\n hti_leads_ad_common_domain: \"209-057-000-000-000-000-000\",\n hti_leads_ad_content_classifier: \"209-058-000-000-000-000-000\",\n hti_leads_ad_spam_detection: \"209-059-000-000-000-000-000\",\n hti_leads_person_aggregation: \"209-060-000-000-000-000-000\",\n hti_leads_ad_cs_profile: \"209-061-000-000-000-000-000\",\n hti_leads_ad_email: \"209-062-000-000-000-000-000\",\n hti_leads_facilitation_likelihood: \"209-063-000-000-000-000-000\",\n hti_leads_ad_foreign_classifier: \"209-064-000-000-000-000-000\",\n hti_leads_ad_foreign_indicator: \"209-065-000-000-000-000-000\",\n hti_leads_ad_foreign_phone: \"209-066-000-000-000-000-000\",\n hti_leads_ad_gender: \"209-067-000-000-000-000-000\",\n hti_leads_ad_hispanic_latino: \"209-068-000-000-000-000-000\",\n hti_leads_ad_improbable_age: \"209-069-000-000-000-000-000\",\n hti_leads_ad_improbable_handle: \"209-070-000-000-000-000-000\",\n hti_leads_ad_location: \"209-071-000-000-000-000-000\",\n hti_leads_ad_main_race: \"209-072-000-000-000-000-000\",\n hti_leads_ad_min_age: \"209-073-000-000-000-000-000\",\n hti_leads_multi_city_indicator: \"209-074-000-000-000-000-000\",\n hti_leads_ad_multiple_persons: \"209-075-000-000-000-000-000\",\n hti_leads_multiple_workers_indicator: \"209-076-000-000-000-000-000\",\n hti_leads_ad_name: \"209-077-000-000-000-000-000\",\n hti_leads_ad_nation_region: \"209-078-000-000-000-000-000\",\n hti_leads_network_aggregation: \"209-079-000-000-000-000-000\",\n hti_leads_ad_new_phone: \"209-080-000-000-000-000-000\",\n hti_leads_ad_new_pics: \"209-081-000-000-000-000-000\",\n hti_leads_ad_new_to_area: \"209-082-000-000-000-000-000\",\n hti_leads_ad_new_to_industry: \"209-083-000-000-000-000-000\",\n hti_leads_no_protection_indicator: \"209-084-000-000-000-000-000\",\n hti_leads_ad_org_name: \"209-085-000-000-000-000-000\",\n hti_leads_ad_org_related: \"209-086-000-000-000-000-000\",\n hti_leads_ad_origin_country: \"209-087-000-000-000-000-000\",\n hti_leads_ad_payment_method: \"209-088-000-000-000-000-000\",\n hti_leads_ad_phone: \"209-089-000-000-000-000-000\",\n hti_leads_phone_rotation_indicator: \"209-090-000-000-000-000-000\",\n hti_leads_ad_pregnant: \"209-091-000-000-000-000-000\",\n hti_leads_ad_price: \"209-092-000-000-000-000-000\",\n hti_leads_ad_price_per_hr: \"209-093-000-000-000-000-000\",\n hti_leads_price_tier_pooled: \"209-094-000-000-000-000-000\",\n hti_leads_recommended_acts: \"209-095-000-000-000-000-000\",\n hti_leads_ad_remote_only: \"209-096-000-000-000-000-000\",\n hti_leads_trafficking_likelihood: \"209-097-000-000-000-000-000\",\n hti_leads_ad_screening: \"209-098-000-000-000-000-000\",\n hti_leads_ad_services: \"209-099-000-000-000-000-000\",\n hti_leads_severity: \"209-100-000-000-000-000-000\",\n hti_leads_ad_sm_profile: \"209-101-000-000-000-000-000\",\n hti_leads_evidence_strength: \"209-102-000-000-000-000-000\",\n hti_leads_ad_substance_use: \"209-103-000-000-000-000-000\",\n hti_leads_ad_survival_indicator: \"209-104-000-000-000-000-000\",\n hti_leads_threats_classifier: \"209-105-000-000-000-000-000\",\n hti_leads_ad_aggregation: \"209-106-000-000-000-000-000\",\n hti_leads_ad_url_type: \"209-107-000-000-000-000-000\",\n hti_leads_ad_valid_email: \"209-108-000-000-000-000-000\",\n hti_leads_ad_valid_phone: \"209-109-000-000-000-000-000\",\n hti_leads_ad_venue: \"209-110-000-000-000-000-000\",\n hti_leads_ad_website: \"209-111-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; SOT v1.1.0 GENERATED from prototype canon `data/cvcs/core_why_nots.yaml` by scripts/gen-why-nots.py). WHY a needed referral/service was not arranged. Two levels: 7 selectable buckets (the stored `closed_why_not_code`, canon token on `canonicalCode`) + 20 selectable subtype leaves (the optional `closed_why_not_subcode`) + the Level-0 UNK / ANON / DNC triplet. Every entry carries `reportingAxis` (system_barrier · respected_choice · workflow · unknown) and the LEAF'S AXIS WINS OVER ITS BUCKET'S — classify with `whyNotReportingAxis()`. `unknc` (UNKNC) is deprecated: it reads as `unknown` (UNK).\n *\n * Domain: `why_nots` · Version: 1.1.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 (CVC-336 `core-assertion_status`, canonical). WHERE a claim (CAR) stands: draft · active · superseded · retracted · discarded. System-stamped, never picked; level-0 absent by ruling. isCommitted = status ∉ {draft, discarded}.\n *\n * Domain: `assertion_status` · Version: 2.0.0 · Entries: 5\n */\nexport const AssertionStatusKeys = {\n draft: \"336-001-000-000-000-000-000\",\n active: \"336-002-000-000-000-000-000\",\n superseded: \"336-003-000-000-000-000-000\",\n retracted: \"336-004-000-000-000-000-000\",\n discarded: \"336-005-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 (CVC-337 `core-car_correction_reason`, canonical). WHY a CAR was retracted or superseded — entered_in_error · duplicate · superseded_externally · removed_by_recipient_curation · answer_withdrawn (2.1.0, 2026-10-17: the answer itself moved) — stamped on the retired row; required at the act, so level-0 is absent by ruling.\n *\n * Domain: `car_correction_reason` · Version: 2.1.0 · Entries: 5\n */\nexport const CarCorrectionReasonKeys = {\n entered_in_error: \"337-001-000-000-000-000-000\",\n duplicate: \"337-002-000-000-000-000-000\",\n superseded_externally: \"337-003-000-000-000-000-000\",\n removed_by_recipient_curation: \"337-004-000-000-000-000-000\",\n answer_withdrawn: \"337-005-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 * The seat name log and contact log: the rules every writer applies. Pure, no\n * I/O. Each operation takes the subject's current entries, returns the next\n * entries plus which entries were inserted and which changed, so the caller\n * writes exactly those rows (insert the new, update the changed) and never\n * rewrites the whole log.\n *\n * Canon: platform-prototype `src/screens.jsx` @ 398fb24 (`SeatNamesLedger`\n * L25149-L25288, `SeatMethodsLedger` L24981-L25137, `umSeatPhoneGuard`\n * L24972-L24978, the email / name guards L25335-L25340), the store's\n * `addEntry` / `act` (`src/objectStore.js` L660-L740: phone normalized at the\n * boundary, the `digits` key stamped, `events[]` appended) and the spine\n * cascade (`src/objectStructuresEngine.generated.js` L942-L1049: one display\n * name per subject, one preferred contact per subject and type, an archived\n * entry loses both flags).\n *\n * Rules carried here:\n * - Display / preferred invariants: one live `is_display` (and with it\n * `is_preferred`, which the profile always moves together) per subject on\n * the name log; one live `is_preferred` per subject AND contact type on the\n * contact log. The first live entry takes the mark.\n * - Correction = insert the new entry, carry the mark onto it, archive the\n * old one (`period_end` = today). Never edit in place. Correcting INTO a\n * value already live hands that entry the mark and archives the wrong one.\n * - A name log with no entries reads its seat's flat name as a synthetic\n * `__flat__` row; the log is seeded from it (a `legal` display entry) only\n * on the first real act.\n * - The display name can't be retired (the ✕ is absent on its row); a\n * preferred contact can't be retired while another live entry of its type\n * exists.\n * - Every act targets a LIVE entry; a retired entry id is refused\n * (`entry_not_live`) with nothing changed — a stale tab or a double submit\n * never moves a mark onto, re-dates or corrects a retired entry.\n * - `events[]` is stamped as the store stamps it: per store call, `cascade`\n * on every row whose display / preferred / period_end changed (the target\n * included), then the call's own event (`add`, `set_display`,\n * `set_preferred`, `archive`) on its target.\n * - Entry ids: the default minter never collides within one act; the store\n * needs a unique index on `entry_id` for collisions across requests.\n */\n\nimport {\n SeatContactEntrySchema,\n SeatNameEntrySchema,\n type SeatContactEntry,\n type SeatContactType,\n type SeatLogSubject,\n type SeatNameEntry,\n type SeatNameType,\n} from \"./schemas.js\";\n\n/** The synthetic row id a seat with no name log shows its flat name under. */\nexport const FLAT_NAME_ENTRY_ID = \"__flat__\";\n\n/** Who acts and when. `mintId` overrides the default id shape (tests). */\nexport interface SeatLogContext {\n /** The acting seat's id (stamped on `events[]`). */\n actor: string;\n /** ISO instant; `period_end` on an archive is its day. Defaults to now. */\n at?: string;\n /**\n * Mints an entry id. Default {@link mintSeatLogEntryId}. An id that clashes\n * with a row already in the log is re-minted (up to 20 tries).\n */\n mintId?: (kind: \"name\" | \"contact\", subject: SeatLogSubject) => string;\n}\n\n/** What an operation did. `entries` is the subject's whole next log. */\nexport interface SeatLogChange<E> {\n entries: E[];\n /** New rows to insert. */\n inserted: E[];\n /** Existing rows whose flags, dates, notes or events changed. */\n updated: E[];\n}\n\n/** A refused act: the reason, in the profile's words. */\nexport class SeatLogRefusal extends Error {\n constructor(\n readonly code:\n | \"name_blank\"\n | \"display_name_not_retirable\"\n | \"preferred_contact_not_retirable\"\n | \"entry_not_found\"\n | \"entry_not_live\"\n | \"email_shape\"\n | \"email_taken\"\n | \"phone_no_digits\"\n | \"phone_too_short\"\n | \"phone_too_long\",\n message: string,\n ) {\n super(message);\n this.name = \"SeatLogRefusal\";\n }\n}\n\nconst B36 = \"0123456789abcdefghijklmnopqrstuvwxyz\";\n\n/** `n` random base-36 characters (Web Crypto when the runtime has it). */\nfunction randomB36(n: number): string {\n const c = (globalThis as { crypto?: { getRandomValues?(a: Uint8Array): Uint8Array } }).crypto;\n const bytes = new Uint8Array(n);\n if (c?.getRandomValues) c.getRandomValues(bytes);\n else for (let i = 0; i < n; i++) bytes[i] = Math.floor(Math.random() * 256);\n let out = \"\";\n for (let i = 0; i < n; i++) out += B36[bytes[i] % 36];\n return out;\n}\n\n/**\n * The entry id: the prototype's shape, `nm-<subject>-rt<time><rand>` /\n * `ci-<subject>-rt<time><rand>`, with 8 random base-36 characters where the\n * prototype has 1, so two ids minted in the same millisecond do not collide\n * (36^8 ≈ 2.8 × 10^12). Within one act a clash with a row already in the log\n * is re-minted (see {@link SeatLogContext.mintId}); across subjects and\n * requests the store's unique index on `entry_id` is the backstop.\n */\nexport function mintSeatLogEntryId(kind: \"name\" | \"contact\", subject: SeatLogSubject): string {\n return (kind === \"name\" ? \"nm-\" : \"ci-\") + subject.subject_id + \"-rt\" +\n Date.now().toString(36).slice(-5) + randomB36(8);\n}\n\n// ─── shared engine ──────────────────────────────────────────────────────────\n\ntype AnyEntry = SeatNameEntry | SeatContactEntry;\n\nconst isLive = (e: Pick<AnyEntry, \"period_end\">) => !e.period_end;\n\n/**\n * What the store compares to decide a row \"changed\" (canon `withSpineView`,\n * objectStore.js L166-L191: display · preferred · primary · period_end; these\n * logs carry no primary).\n */\nconst sigOf = (e: AnyEntry) =>\n [(\"is_display\" in e ? !!e.is_display : false), !!e.is_preferred, false, e.period_end || \"\"].join(\"|\");\n\nconst flagOf = (r: AnyEntry, flag: \"is_display\" | \"is_preferred\"): boolean =>\n !!(r as unknown as Record<string, unknown>)[flag];\nconst setFlagValue = (r: AnyEntry, flag: \"is_display\" | \"is_preferred\", v: boolean) => {\n (r as unknown as Record<string, unknown>)[flag] = v;\n};\n\n/**\n * Working copy: deep-copies the subject's rows and records events exactly as\n * the prototype store does. Each store call is one UNIT: the rows' state is\n * snapshotted, the cascade runs, `cascade` is stamped on every row whose\n * display / preferred / period_end changed (the target included), then the\n * unit's own event (`add`, or the act's name) is appended to its target.\n */\nclass Draft<E extends AnyEntry> {\n rows: E[];\n private readonly added = new Set<string>();\n private readonly touched = new Set<string>();\n readonly at: string;\n readonly day: string;\n\n constructor(\n entries: readonly E[],\n readonly subject: SeatLogSubject,\n readonly ctx: SeatLogContext,\n ) {\n this.rows = entries\n .filter((e) => e.subject_id === subject.subject_id && e.subject_type === subject.subject_type)\n .map((e) => JSON.parse(JSON.stringify(e)) as E);\n this.at = ctx.at ?? new Date().toISOString();\n this.day = this.at.slice(0, 10);\n }\n\n live(): E[] {\n return this.rows.filter(isLive);\n }\n\n /** The LIVE entry an act targets. A retired entry is refused, never acted on. */\n findLive(id: string): E {\n const r = this.rows.find((x) => x.entry_id === id);\n if (!r) throw new SeatLogRefusal(\"entry_not_found\", `No entry ${id} in this log.`);\n if (!isLive(r)) throw new SeatLogRefusal(\"entry_not_live\", `Entry ${id} is retired.`);\n return r;\n }\n\n private stamp(r: E, act: string): void {\n r.events = [...(r.events ?? []), { act, at: this.at, actor: this.ctx.actor }];\n this.touched.add(r.entry_id);\n }\n\n private unit(mutate: () => void, target: E, act: string, skip?: E): void {\n const before = new Map(this.rows.map((r) => [r, sigOf(r)] as const));\n mutate();\n for (const r of this.rows) {\n const was = before.get(r);\n if (r !== skip && was !== undefined && was !== sigOf(r)) this.stamp(r, \"cascade\");\n }\n this.stamp(target, act);\n }\n\n /**\n * Insert a new row (canon `addEntry`): a flag it carries clears that flag\n * on the subject's other live rows (contacts: same type only).\n */\n insert(r: E): void {\n if (this.rows.some((x) => x.entry_id === r.entry_id)) {\n throw new Error(`seat-logs: entry_id_exists: ${r.entry_id}`);\n }\n this.unit(() => {\n this.rows.push(r);\n const scope = (x: E) => !(\"contact_type\" in r) ||\n (x as SeatContactEntry).contact_type === (r as SeatContactEntry).contact_type;\n for (const flag of [\"is_display\", \"is_preferred\"] as const) {\n if (flagOf(r, flag)) this.clearOthers(r, flag, scope);\n }\n }, r, \"add\", r);\n this.added.add(r.entry_id);\n }\n\n private clearOthers(target: E, flag: \"is_display\" | \"is_preferred\", scope: (r: E) => boolean) {\n for (const x of this.rows) {\n if (x !== target && isLive(x) && scope(x) && flagOf(x, flag)) setFlagValue(x, flag, false);\n }\n }\n\n /** Act `set_display` / `set_preferred`: the mark moves to `target` within `scope`. */\n mark(target: E, flag: \"is_display\" | \"is_preferred\", scope: (r: E) => boolean): void {\n this.unit(() => {\n this.clearOthers(target, flag, scope);\n setFlagValue(target, flag, true);\n }, target, flag === \"is_display\" ? \"set_display\" : \"set_preferred\");\n }\n\n /** Act `archive`: stamp `period_end`, clear both marks (spine `archiveEntry`). */\n archive(r: E): void {\n this.unit(() => {\n r.period_end = this.day;\n if (\"is_display\" in r) setFlagValue(r, \"is_display\", false);\n r.is_preferred = false;\n }, r, \"archive\");\n }\n\n /** A fresh id, re-minted on a clash with any row in this log. */\n newId(kind: \"name\" | \"contact\"): string {\n const mint = this.ctx.mintId ?? mintSeatLogEntryId;\n for (let i = 0; i < 20; i++) {\n const id = mint(kind, this.subject);\n if (!this.rows.some((x) => x.entry_id === id)) return id;\n }\n throw new Error(\"seat-logs: entry_id_exists: could not mint an unused entry id in 20 tries\");\n }\n\n done(): SeatLogChange<E> {\n return {\n entries: this.rows,\n inserted: this.rows.filter((r) => this.added.has(r.entry_id)),\n updated: this.rows.filter((r) => this.touched.has(r.entry_id) && !this.added.has(r.entry_id)),\n };\n }\n}\n\nconst base = (subject: SeatLogSubject) => ({\n subject_id: subject.subject_id,\n subject_type: subject.subject_type,\n source: \"admin_hub\",\n method: \"direct_entry\",\n});\n\nconst correctsNote = (prior: string, old: string) =>\n [prior, \"Corrects “\" + old + \"”\"].filter(Boolean).join(\" · \");\n\n// ─── names ──────────────────────────────────────────────────────────────────\n\n/** The profile's refusal for a blank name. */\nexport const SEAT_NAME_BLANK_REFUSAL = \"A member keeps a name — the directory row can't go blank.\";\n\n/** Live entries, in log order. */\nexport function liveSeatNames(entries: readonly SeatNameEntry[]): SeatNameEntry[] {\n return entries.filter(isLive);\n}\n\n/** Retired entries (\"Past names\"). */\nexport function pastSeatNames(entries: readonly SeatNameEntry[]): SeatNameEntry[] {\n return entries.filter((e) => !isLive(e));\n}\n\n/** The display entry: the live one marked display, else the first live one, else null. */\nexport function seatDisplayNameEntry(entries: readonly SeatNameEntry[]): SeatNameEntry | null {\n const live = liveSeatNames(entries);\n return live.find((e) => e.is_display) ?? live[0] ?? null;\n}\n\n/**\n * The seat's flat `name` projection: the display entry's `raw`, or `null`\n * when the log has no live entry (the caller keeps the flat name as it is —\n * the prototype only writes a non-empty projection).\n */\nexport function seatNameProjection(entries: readonly SeatNameEntry[]): string | null {\n return seatDisplayNameEntry(entries)?.raw || null;\n}\n\n/** A synthetic display row standing for the flat name when the log is empty. */\nexport type FlatNameRow = Pick<SeatNameEntry, \"entry_id\" | \"raw\" | \"name_type\" | \"is_display\">;\n\n/**\n * The rows the Names list draws: the live log, or the flat name as one\n * `__flat__` display row when the log has none (nothing is written for it).\n */\nexport function seatNameRows(\n entries: readonly SeatNameEntry[],\n flatName: string | null | undefined,\n): (SeatNameEntry | FlatNameRow)[] {\n const live = liveSeatNames(entries);\n if (live.length) return live;\n const flat = (flatName ?? \"\").trim();\n return flat ? [{ entry_id: FLAT_NAME_ENTRY_ID, raw: flat, name_type: \"legal\", is_display: true }] : [];\n}\n\nfunction seedFromFlat(d: Draft<SeatNameEntry>, flatName: string | null | undefined): void {\n const flat = (flatName ?? \"\").trim();\n if (d.live().length || !flat) return;\n d.insert(SeatNameEntrySchema.parse({\n entry_id: d.newId(\"name\"), ...base(d.subject),\n name_type: \"legal\", raw: flat, is_display: true, is_preferred: true,\n period_start: \"\", period_end: \"\", notes: \"\",\n }));\n}\n\n/**\n * Seed the log from the seat's flat name (a `legal` display entry). A no-op\n * when the log already has a live entry or the flat name is blank. Every act\n * below does this first; exposed for a caller that needs the log minted.\n */\nexport function seedSeatNameLog(\n entries: readonly SeatNameEntry[],\n subject: SeatLogSubject,\n flatName: string | null | undefined,\n ctx: SeatLogContext,\n): SeatLogChange<SeatNameEntry> {\n const d = new Draft(entries, subject, ctx);\n seedFromFlat(d, flatName);\n return d.done();\n}\n\n/**\n * Add a name. Seeds from the flat name first; a name already live (exact\n * text) is a no-op; the first live name becomes the display name.\n */\nexport function addSeatName(\n entries: readonly SeatNameEntry[],\n subject: SeatLogSubject,\n input: { raw: string; name_type: SeatNameType },\n ctx: SeatLogContext & { flatName?: string | null },\n): SeatLogChange<SeatNameEntry> {\n const v = input.raw.trim();\n if (!v) throw new SeatLogRefusal(\"name_blank\", SEAT_NAME_BLANK_REFUSAL);\n const d = new Draft(entries, subject, ctx);\n seedFromFlat(d, ctx.flatName);\n if (d.live().some((r) => r.raw === v)) return d.done();\n const first = d.live().length === 0;\n d.insert(SeatNameEntrySchema.parse({\n entry_id: d.newId(\"name\"), ...base(subject),\n name_type: input.name_type, raw: v, is_display: first, is_preferred: first,\n period_start: \"\", period_end: \"\", notes: \"\",\n }));\n return d.done();\n}\n\nfunction markDisplay(d: Draft<SeatNameEntry>, target: SeatNameEntry): void {\n d.mark(target, \"is_display\", () => true);\n d.mark(target, \"is_preferred\", () => true);\n}\n\n/** Make an entry the display name (★); moves the preferred mark with it. */\nexport function setSeatDisplayName(\n entries: readonly SeatNameEntry[],\n subject: SeatLogSubject,\n entryId: string,\n ctx: SeatLogContext & { flatName?: string | null },\n): SeatLogChange<SeatNameEntry> {\n const d = new Draft(entries, subject, ctx);\n seedFromFlat(d, ctx.flatName);\n markDisplay(d, d.findLive(entryId));\n return d.done();\n}\n\n/**\n * Correct a name: insert the corrected entry (\"Corrects “old”\" in its notes),\n * carry the display mark onto it, archive the old one. `entryId` may be\n * `__flat__` (the log is seeded from the flat name, then corrected). The same\n * text (after trimming) is a no-op.\n */\nexport function correctSeatName(\n entries: readonly SeatNameEntry[],\n subject: SeatLogSubject,\n entryId: string,\n next: string,\n ctx: SeatLogContext & { flatName?: string | null },\n): SeatLogChange<SeatNameEntry> {\n const v = next.trim();\n if (!v) throw new SeatLogRefusal(\"name_blank\", SEAT_NAME_BLANK_REFUSAL);\n const d = new Draft(entries, subject, ctx);\n let target: SeatNameEntry;\n if (entryId === FLAT_NAME_ENTRY_ID) {\n const flat = (ctx.flatName ?? \"\").trim();\n if (flat && v === flat && !d.live().length) return d.done(); // unchanged: nothing is seeded\n seedFromFlat(d, ctx.flatName);\n const hit = d.live().find((x) => x.raw === flat);\n if (!hit) throw new SeatLogRefusal(\"entry_not_found\", \"No flat name to correct.\");\n target = hit;\n } else {\n target = d.findLive(entryId);\n }\n // Correcting to the same text changes nothing (the prototype's editor only\n // commits a changed value; the contact path has the same no-op).\n if (v === target.raw) return d.done();\n const dupe = d.live().find((x) => x.raw === v && x.entry_id !== target.entry_id);\n if (dupe) {\n if (target.is_display) markDisplay(d, dupe);\n d.archive(target);\n return d.done();\n }\n const added = SeatNameEntrySchema.parse({\n entry_id: d.newId(\"name\"), ...base(subject),\n name_type: target.name_type || \"legal\", raw: v, is_display: false, is_preferred: false,\n period_start: target.period_start || \"\", period_end: \"\",\n notes: correctsNote(target.notes, target.raw),\n });\n d.insert(added);\n if (target.is_display) markDisplay(d, added);\n d.archive(target);\n return d.done();\n}\n\n/** Retire a name (stays in the log, dated). The display name is refused. */\nexport function retireSeatName(\n entries: readonly SeatNameEntry[],\n subject: SeatLogSubject,\n entryId: string,\n ctx: SeatLogContext,\n): SeatLogChange<SeatNameEntry> {\n const d = new Draft(entries, subject, ctx);\n const target = d.findLive(entryId);\n if (target.is_display) {\n throw new SeatLogRefusal(\n \"display_name_not_retirable\",\n \"The display name can't be retired — star another name first.\",\n );\n }\n d.archive(target);\n return d.done();\n}\n\n// ─── contacts ───────────────────────────────────────────────────────────────\n\n/**\n * How a phone is DRAWN and stored on the seat log: every non-digit dropped, a\n * redundant US `1` dropped, `(AAA) BBB-CCCC`, `+cc (AAA) BBB-CCCC` past ten\n * digits. Canon `formatPhone` (objectStructuresEngine L232-L244), verbatim in\n * behaviour. Empty when there is no digit.\n */\nexport function formatSeatPhone(s: string): string {\n let d = String(s ?? \"\").replace(/\\D/g, \"\");\n if (!d) return \"\";\n if (d.length === 11 && d.charAt(0) === \"1\") d = d.slice(1);\n if (d.length <= 3) return `(${d}`;\n if (d.length <= 6) return `(${d.slice(0, 3)}) ${d.slice(3)}`;\n if (d.length <= 10) return `(${d.slice(0, 3)}) ${d.slice(3, 6)}-${d.slice(6)}`;\n const cc = d.slice(0, d.length - 10);\n const r = d.slice(d.length - 10);\n return `+${cc} (${r.slice(0, 3)}) ${r.slice(3, 6)}-${r.slice(6)}`;\n}\n\n/**\n * How a value is WRITTEN (PHONE-NORMALIZE 2026-08-28): trimmed; a phone in\n * {@link formatSeatPhone}'s form, or as typed when it has no digit. Canon\n * `canonContactValue` (objectStore L618-L623).\n */\nexport function canonSeatContactValue(type: SeatContactType, value: string): string {\n const v = String(value ?? \"\").trim();\n if (type !== \"phone\" || !v) return v;\n return formatSeatPhone(v) || v;\n}\n\n/**\n * WHICH contact this is (PHONE-DIGITS-KEY 2026-08-28): a phone's digits with a\n * leading US `1` dropped; an email's lowercased text. Canon `contactKey`\n * (objectStore L648-L657) over `phoneDigits` (engine L268-L272).\n */\nexport function seatContactKey(type: SeatContactType, value: string): string {\n const v = String(value ?? \"\").trim();\n if (!v) return \"\";\n if (type === \"phone\") {\n const d = v.replace(/\\D/g, \"\");\n return d.length === 11 && d.charAt(0) === \"1\" ? d.slice(1) : d;\n }\n return v.toLowerCase();\n}\n\n/**\n * The phone guard (`umSeatPhoneGuard`): `\"\"` when acceptable (blank included —\n * a seat may have no number on file), else the refusal in the profile's words.\n * 7-15 digits (the object spine's `detectFromInput` bounds).\n */\nexport function seatPhoneRefusal(value: string): string {\n const t = String(value ?? \"\").trim();\n if (!t) return \"\";\n const d = t.replace(/\\D/g, \"\");\n if (!d) return \"That doesn't have any numbers in it — a phone entry needs digits.\";\n if (d.length < 7) return \"That's too short for a phone number — it needs at least 7 digits.\";\n if (d.length > 15) return \"That's too long for a phone number — 15 digits is the international maximum.\";\n return \"\";\n}\n\n/**\n * The email guard: `\"\"` when acceptable (blank included), else the refusal.\n * `otherSeatEmails` are the addresses on OTHER seats (the directory-uniqueness\n * check); the caller supplies them.\n */\nexport function seatEmailRefusal(value: string, otherSeatEmails: Iterable<string> = []): string {\n const t = String(value ?? \"\").trim();\n if (!t) return \"\";\n if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(t)) {\n return \"That isn't a working address yet — it needs an @ and a domain.\";\n }\n const key = t.toLowerCase();\n for (const e of otherSeatEmails) {\n if ((e ?? \"\").toLowerCase() === key) return \"Already in the directory — two seats can't share an address.\";\n }\n return \"\";\n}\n\nfunction guardContact(\n type: SeatContactType,\n value: string,\n otherSeatEmails?: Iterable<string>,\n): void {\n if (type === \"email\") {\n const m = seatEmailRefusal(value, otherSeatEmails);\n if (m) {\n throw new SeatLogRefusal(m.startsWith(\"Already\") ? \"email_taken\" : \"email_shape\", m);\n }\n return;\n }\n const m = seatPhoneRefusal(value);\n if (!m) return;\n const code = m.includes(\"numbers in it\") ? \"phone_no_digits\"\n : m.includes(\"too short\") ? \"phone_too_short\" : \"phone_too_long\";\n throw new SeatLogRefusal(code, m);\n}\n\n/** Live email and phone entries, in log order. */\nexport function liveSeatContacts(entries: readonly SeatContactEntry[]): SeatContactEntry[] {\n return entries.filter(isLive);\n}\n\n/** Retired entries (\"Past contact details\"). */\nexport function pastSeatContacts(entries: readonly SeatContactEntry[]): SeatContactEntry[] {\n return entries.filter((e) => !isLive(e));\n}\n\n/** The preferred live entry of a type, else the first live one, else null. */\nexport function preferredSeatContact(\n entries: readonly SeatContactEntry[],\n type: SeatContactType,\n): SeatContactEntry | null {\n const live = liveSeatContacts(entries).filter((e) => e.contact_type === type);\n return live.find((e) => e.is_preferred) ?? live[0] ?? null;\n}\n\n/**\n * The seat's flat `email` projection (the login projection): the preferred\n * email's value, or `\"\"` when the log has no live email. Canon\n * `syncEmailProjection` (screens.jsx L24987-L24993).\n */\nexport function seatEmailProjection(entries: readonly SeatContactEntry[]): string {\n return preferredSeatContact(entries, \"email\")?.value ?? \"\";\n}\n\n/** Whether the ✕ is offered: not on the preferred entry while another of its type is live. */\nexport function canRetireSeatContact(\n entries: readonly SeatContactEntry[],\n entry: SeatContactEntry,\n): boolean {\n if (!entry.is_preferred) return true;\n return liveSeatContacts(entries).filter((x) => x.contact_type === entry.contact_type).length <= 1;\n}\n\nfunction contactRow(\n d: Draft<SeatContactEntry>,\n fields: Omit<\n SeatContactEntry,\n \"entry_id\" | \"subject_id\" | \"subject_type\" | \"source\" | \"method\" | \"digits\" | \"events\"\n >,\n): SeatContactEntry {\n const row: SeatContactEntry = {\n entry_id: d.newId(\"contact\"), ...base(d.subject), ...fields,\n } as SeatContactEntry;\n if (row.contact_type === \"phone\") row.digits = seatContactKey(\"phone\", row.value);\n return SeatContactEntrySchema.parse(row);\n}\n\n/**\n * Add an email or phone. Refused by the type's guard; normalized; a value\n * already live of the same type (by {@link seatContactKey}) is a no-op; the\n * first live entry of its type becomes preferred.\n */\nexport function addSeatContact(\n entries: readonly SeatContactEntry[],\n subject: SeatLogSubject,\n input: { contact_type: SeatContactType; value: string },\n ctx: SeatLogContext & { otherSeatEmails?: Iterable<string> },\n): SeatLogChange<SeatContactEntry> {\n const v0 = String(input.value ?? \"\").trim();\n const d = new Draft(entries, subject, ctx);\n if (!v0) return d.done();\n guardContact(input.contact_type, v0, ctx.otherSeatEmails);\n const type = input.contact_type;\n const v = canonSeatContactValue(type, v0);\n const key = seatContactKey(type, v);\n const sameType = d.live().filter((r) => r.contact_type === type);\n if (sameType.some((r) => seatContactKey(type, r.value) === key)) return d.done();\n d.insert(contactRow(d, {\n contact_type: type, value: v, use: \"\", is_preferred: sameType.length === 0,\n safety_status: \"\", period_start: \"\", period_end: \"\", notes: \"\",\n }));\n return d.done();\n}\n\nfunction markPreferred(d: Draft<SeatContactEntry>, target: SeatContactEntry): void {\n d.mark(target, \"is_preferred\", (r) => r.contact_type === target.contact_type);\n}\n\n/** Make an entry the preferred of its type (☆ prefer). */\nexport function setPreferredSeatContact(\n entries: readonly SeatContactEntry[],\n subject: SeatLogSubject,\n entryId: string,\n ctx: SeatLogContext,\n): SeatLogChange<SeatContactEntry> {\n const d = new Draft(entries, subject, ctx);\n markPreferred(d, d.findLive(entryId));\n return d.done();\n}\n\n/**\n * Correct an email or phone. Guarded and normalized like an add. Re-typing the\n * same value in another shape is a no-op. Correcting INTO a live value of the\n * same type hands it the preferred mark and archives the wrong one; otherwise\n * the corrected entry is inserted (\"Corrects “old”\"), takes the mark, and the\n * old one is archived.\n */\nexport function correctSeatContact(\n entries: readonly SeatContactEntry[],\n subject: SeatLogSubject,\n entryId: string,\n next: string,\n ctx: SeatLogContext & { otherSeatEmails?: Iterable<string> },\n): SeatLogChange<SeatContactEntry> {\n const d = new Draft(entries, subject, ctx);\n const target = d.findLive(entryId);\n const type = target.contact_type;\n guardContact(type, String(next ?? \"\").trim(), ctx.otherSeatEmails);\n const v = canonSeatContactValue(type, next);\n if (!v || v === target.value) return d.done();\n const key = seatContactKey(type, v);\n const dupe = d.live().find((x) =>\n x.contact_type === type &&\n seatContactKey(type, x.value) === key &&\n x.entry_id !== target.entry_id);\n if (dupe) {\n if (target.is_preferred) markPreferred(d, dupe);\n d.archive(target);\n return d.done();\n }\n const added = contactRow(d, {\n contact_type: type, value: v, use: target.use || \"\", is_preferred: false,\n safety_status: target.safety_status || \"\", period_start: target.period_start || \"\",\n period_end: \"\", notes: correctsNote(target.notes, target.value),\n });\n d.insert(added);\n if (target.is_preferred) markPreferred(d, added);\n d.archive(target);\n return d.done();\n}\n\n/** Retire an email or phone (stays in the log, dated). See {@link canRetireSeatContact}. */\nexport function retireSeatContact(\n entries: readonly SeatContactEntry[],\n subject: SeatLogSubject,\n entryId: string,\n ctx: SeatLogContext,\n): SeatLogChange<SeatContactEntry> {\n const d = new Draft(entries, subject, ctx);\n const target = d.findLive(entryId);\n if (!canRetireSeatContact(d.rows, target)) {\n throw new SeatLogRefusal(\n \"preferred_contact_not_retirable\",\n `Prefer another ${target.contact_type} before retiring this one.`,\n );\n }\n d.archive(target);\n return d.done();\n}\n","/**\n * The Person id wordlists, vendored.\n *\n * Source: the records repo (htilabstech/prototype) @ 1be43ed5, the monolith\n * `HTI-LEADS-PAVE-Thread-prototype.html` consts `PERSON_FIRST` and\n * `PERSON_SECOND`, copied unchanged. The same lists reach the Platform\n * prototype as the directory build's `person_slug_wordlists`\n * (records `tools/build_platform_directory.py` → platform-prototype\n * `src/data.js` `HTI_DIRECTORY.person_slug_wordlists`; equal at 398fb24).\n *\n * Do not hand-edit. A word added or removed in the records monolith is\n * re-copied here; an id already minted keeps its words either way (ids are\n * never re-derived from these lists).\n */\n\nimport type { PersonSlugWordlists } from \"./personId.js\";\n\n/** `PERSON_FIRST` (45 words). */\nexport const PERSON_SLUG_FIRST: readonly string[] = Object.freeze([\n \"agate\", \"alabaster\", \"amber\", \"amethyst\", \"azure\", \"basalt\", \"beryl\", \"bronze\", \"carnelian\",\n \"cedar\", \"chrome\", \"cinnabar\", \"citrine\", \"copper\", \"coral\", \"crystal\", \"ember\", \"feldspar\",\n \"flint\", \"garnet\", \"granite\", \"graphite\", \"hematite\", \"indigo\", \"iron\", \"ivory\", \"jade\",\n \"jasper\", \"lapis\", \"malachite\", \"marble\", \"obsidian\", \"onyx\", \"opal\", \"pearl\", \"pewter\",\n \"pyrite\", \"quartz\", \"sable\", \"silver\", \"slate\", \"sterling\", \"tin\", \"topaz\", \"tungsten\",\n]);\n\n/** `PERSON_SECOND` (45 words). */\nexport const PERSON_SLUG_SECOND: readonly string[] = Object.freeze([\n \"augur\", \"beacon\", \"cairn\", \"cipher\", \"compass\", \"crest\", \"crown\", \"ember\", \"envoy\", \"flame\",\n \"glyph\", \"harbor\", \"herald\", \"keep\", \"ledger\", \"lighthouse\", \"lyre\", \"mantle\", \"monolith\",\n \"oracle\", \"pillar\", \"plume\", \"quill\", \"relic\", \"rune\", \"scribe\", \"scroll\", \"seal\", \"sentinel\",\n \"sigil\", \"sojourner\", \"spire\", \"standard\", \"tablet\", \"talisman\", \"thread\", \"torch\", \"totem\",\n \"tower\", \"verse\", \"vessel\", \"warden\", \"watch\", \"witness\", \"wreath\",\n]);\n\n/** The vendored wordlists, the default for `mintPersonId`. */\nexport const PERSON_SLUG_WORDLISTS: PersonSlugWordlists = Object.freeze({\n first: PERSON_SLUG_FIRST,\n second: PERSON_SLUG_SECOND,\n});\n","/**\n * The Person id: `per-<first>-<second>`, name-free (Person § \"The id carries no\n * name\": \"Display names carry identity; ids are stable and name-free\").\n *\n * Canon: platform-prototype `src/screens.jsx` @ 398fb24 `mintPersonId`\n * (L24354-L24363), drawing from the directory's `person_slug_wordlists`\n * (`first`, `second`), which the records repo's directory generator\n * (`tools/build_platform_directory.py`) emits.\n *\n * The wordlists default to the vendored copy of the records monolith's\n * `PERSON_FIRST` / `PERSON_SECOND` (`./personSlugWordlists.ts`); a caller may\n * still pass a directory build's `person_slug_wordlists` instead.\n */\n\nimport { PERSON_SLUG_WORDLISTS } from \"./personSlugWordlists.js\";\n\n/** The directory build's slug wordlists. */\nexport interface PersonSlugWordlists {\n first: readonly string[];\n second: readonly string[];\n}\n\n/** `per-` then two lowercase words, optionally a numeric suffix (`-<n>`) when the pair pool was full. */\nexport const PERSON_ID_PATTERN = /^per-[a-z0-9]+-[a-z0-9]+(?:-\\d+)?$/;\n\n/** True for a string shaped like a Person id. */\nexport function isPersonId(v: unknown): v is string {\n return typeof v === \"string\" && PERSON_ID_PATTERN.test(v);\n}\n\n/** A draw from `random` as an index into a list of `n`, clamped to `[0, n)`. */\nfunction indexOf(r: number, n: number): number {\n if (!Number.isFinite(r)) return 0;\n return Math.min(n - 1, Math.max(0, Math.floor(r * n)));\n}\n\n/**\n * Mint a Person id not in `taken`. `null` only when there are no wordlists\n * (empty or `null`) — refuse rather than invent a shape.\n *\n * As the prototype (`mintPersonId`, screens.jsx L24352-L24363): up to 200\n * random draws of `per-<first>-<second>`. If all 200 are taken, the whole\n * two-word space is scanned in list order for a free pair. When every pair is\n * taken (45 × 45 = 2,025 with the vendored lists), the records generator's\n * full-pool rule applies (`generatePersonSlug`, records monolith: after its\n * random tries fail it returns `<first>-<second>-<number 0-999>`): up to 200\n * random `per-<first>-<second>-<0-999>`, then a deterministic scan over the\n * pairs and suffixes 0, 1, 2, … until one is free, so a mint always ends.\n *\n * `taken` is a snapshot (every person id already held by a seat or a registry\n * person; the caller supplies it), so two concurrent mints can return the\n * same id: the store needs a UNIQUE index on the person id, and a caller\n * retries the mint on a duplicate-key error. `random` must return `[0, 1)`;\n * an out-of-range value is clamped. `wordlists` left `undefined` uses the\n * vendored lists ({@link PERSON_SLUG_WORDLISTS}).\n */\nexport function mintPersonId(\n wordlists: PersonSlugWordlists | null | undefined = PERSON_SLUG_WORDLISTS,\n taken: Iterable<string | null | undefined> = [],\n random: () => number = Math.random,\n): string | null {\n const F = wordlists?.first ?? [];\n const S = wordlists?.second ?? [];\n if (!F.length || !S.length) return null;\n const used = new Set<string>();\n for (const t of taken) if (t) used.add(t);\n const pick = (list: readonly string[]) => list[indexOf(random(), list.length)];\n for (let i = 0; i < 200; i++) {\n const slug = \"per-\" + pick(F) + \"-\" + pick(S);\n if (!used.has(slug)) return slug;\n }\n for (const f of F) {\n for (const t of S) {\n const slug = \"per-\" + f + \"-\" + t;\n if (!used.has(slug)) return slug;\n }\n }\n // Every pair is taken: the records generator's numeric suffix.\n for (let i = 0; i < 200; i++) {\n const slug = \"per-\" + pick(F) + \"-\" + pick(S) + \"-\" + indexOf(random(), 1000);\n if (!used.has(slug)) return slug;\n }\n // `used` is finite, so this ends.\n for (let num = 0; ; num++) {\n for (const f of F) {\n for (const t of S) {\n const slug = \"per-\" + f + \"-\" + t + \"-\" + num;\n if (!used.has(slug)) return slug;\n }\n }\n }\n}\n\n/** Mint a Person id from the vendored wordlists, not in `taken` (or `null`). */\nexport function mintNewPersonId(\n taken: Iterable<string | null | undefined> = [],\n random: () => number = Math.random,\n): string | null {\n return mintPersonId(PERSON_SLUG_WORDLISTS, taken, random);\n}\n","/**\n * Raw-driver reads of the seat logs (no mongoose, no driver import), typed\n * structurally like the points-of-contact reads: a `mongodb` `Db` or a\n * mongoose connection's `.db` both fit. Ids are the string form, so no\n * ObjectId is needed. A stored row that does not match the entry shape\n * throws by default (an unreadable log never reads as empty); a read that\n * must go on past one bad row passes `{ invalid: \"skip\" }`.\n */\n\nimport {\n SEAT_CONTACTS_COLLECTION,\n SEAT_NAMES_COLLECTION,\n SeatContactEntrySchema,\n SeatNameEntrySchema,\n type SeatContactEntry,\n type SeatLogSubjectType,\n type SeatNameEntry,\n} from \"./schemas.js\";\n\n/** The slice of a driver `Db` the reads use. */\nexport interface SeatLogDbLike {\n collection(name: string): {\n find(filter: Record<string, unknown>): { toArray(): Promise<unknown[]> };\n };\n}\n\n/** A stored entry that does not match the contract. */\nexport class SeatLogShapeError extends Error {\n constructor(readonly entryId: string | null, readonly issues: string[]) {\n super(`seat-logs: stored entry ${entryId ?? \"(no id)\"} does not match the contract: ${issues.join(\"; \")}`);\n this.name = \"SeatLogShapeError\";\n }\n}\n\nfunction strip(r: unknown): Record<string, unknown> {\n if (r === null || typeof r !== \"object\") return {};\n const { _id: _ignored, ...rest } = r as Record<string, unknown>;\n return rest;\n}\n\ntype ParseResult<T> =\n | { success: true; data: T }\n | { success: false; error: { issues: { path: (string | number)[]; message: string }[] } };\n\nfunction parseWith<T>(schema: { safeParse(v: unknown): ParseResult<T> }, raw: unknown): T {\n const row = strip(raw);\n const p = schema.safeParse(row);\n if (p.success) return p.data;\n throw new SeatLogShapeError(\n typeof row.entry_id === \"string\" ? row.entry_id : null,\n p.error.issues.map((i) => `${i.path.join(\".\") || \"(row)\"}: ${i.message}`),\n );\n}\n\n/** How a read treats a stored row that does not match the entry shape. */\nexport interface SeatLogReadOptions {\n /**\n * `throw` (default): the read fails with {@link SeatLogShapeError} — for a\n * write path, which must not act on a log it cannot fully read.\n * `skip`: the row is left out of its subject's log and reported to\n * `onInvalidRow`; the rest of the read goes on.\n */\n invalid?: \"throw\" | \"skip\";\n onInvalidRow?: (error: SeatLogShapeError) => void;\n}\n\n/**\n * The id forms a subject id is matched in: as asked and lower-cased. A seat's\n * log is stored under `String(users._id)` (24 lower-case hex); the base seat\n * resolvers match `users._id` case-insensitively, so this does too.\n */\nconst idForms = (id: string) => [...new Set([id, id.toLowerCase()])];\n\nconst byEntryId = (a: { entry_id: string }, b: { entry_id: string }) =>\n a.entry_id < b.entry_id ? -1 : a.entry_id > b.entry_id ? 1 : 0;\n\nasync function readLogs<T extends { subject_id: string; entry_id: string }>(\n db: SeatLogDbLike,\n collection: string,\n subjectType: SeatLogSubjectType,\n subjectIds: readonly string[],\n parse: (raw: unknown) => T,\n opts: SeatLogReadOptions,\n): Promise<Map<string, T[]>> {\n const ids = [...new Set(subjectIds.filter((s) => typeof s === \"string\" && s))];\n const out = new Map<string, T[]>();\n if (!ids.length) return out;\n const askedByKey = new Map<string, string[]>();\n for (const id of ids) {\n const k = id.toLowerCase();\n askedByKey.set(k, [...(askedByKey.get(k) ?? []), id]);\n }\n const raw = await db.collection(collection)\n .find({ subject_type: subjectType, subject_id: { $in: ids.flatMap(idForms) } }).toArray();\n for (const r of raw) {\n let e: T;\n try {\n e = parse(r);\n } catch (err) {\n if (opts.invalid !== \"skip\" || !(err instanceof SeatLogShapeError)) throw err;\n opts.onInvalidRow?.(err);\n continue;\n }\n for (const asked of askedByKey.get(e.subject_id.toLowerCase()) ?? []) {\n const list = out.get(asked) ?? [];\n list.push(e);\n out.set(asked, list);\n }\n }\n // The prototype store lists a subject's entries in entry_id order\n // (objectStore.js `entries`: Object.keys(...).sort()); \"the first live\n // entry\" fallbacks depend on it.\n for (const list of out.values()) list.sort(byEntryId);\n return out;\n}\n\n/**\n * Each subject's name entries (live and retired), in entry_id order, keyed by\n * the subject id as asked (matched case-insensitively). Absent ids have no log.\n */\nexport function readSeatNameLogs(\n db: SeatLogDbLike,\n subjectIds: readonly string[],\n subjectType: SeatLogSubjectType = \"user\",\n opts: SeatLogReadOptions = {},\n): Promise<Map<string, SeatNameEntry[]>> {\n return readLogs(db, SEAT_NAMES_COLLECTION, subjectType, subjectIds,\n (r) => parseWith<SeatNameEntry>(SeatNameEntrySchema, r), opts);\n}\n\n/**\n * Each subject's contact entries (live and retired), in entry_id order, keyed\n * by the subject id as asked (matched case-insensitively). Absent ids have no log.\n */\nexport function readSeatContactLogs(\n db: SeatLogDbLike,\n subjectIds: readonly string[],\n subjectType: SeatLogSubjectType = \"user\",\n opts: SeatLogReadOptions = {},\n): Promise<Map<string, SeatContactEntry[]>> {\n return readLogs(db, SEAT_CONTACTS_COLLECTION, subjectType, subjectIds,\n (r) => parseWith<SeatContactEntry>(SeatContactEntrySchema, r), opts);\n}\n"],"mappings":"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","names":["m"]}