@htilabs/platform-common-models 0.39.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -0
- package/dist/age/index.cjs +136 -0
- package/dist/age/index.cjs.map +1 -0
- package/dist/age/index.d.cts +136 -0
- package/dist/age/index.d.ts +136 -0
- package/dist/age/index.js +105 -0
- package/dist/age/index.js.map +1 -0
- package/dist/index.cjs +159 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +150 -0
- package/dist/index.js.map +1 -1
- package/dist/share-rules/index.cjs +822 -0
- package/dist/share-rules/index.cjs.map +1 -0
- package/dist/share-rules/index.d.cts +804 -0
- package/dist/share-rules/index.d.ts +804 -0
- package/dist/share-rules/index.js +736 -0
- package/dist/share-rules/index.js.map +1 -0
- package/dist/sharing-ceiling/index.cjs +51 -0
- package/dist/sharing-ceiling/index.cjs.map +1 -1
- package/dist/sharing-ceiling/index.d.cts +87 -1
- package/dist/sharing-ceiling/index.d.ts +87 -1
- package/dist/sharing-ceiling/index.js +47 -0
- package/dist/sharing-ceiling/index.js.map +1 -1
- package/package.json +12 -1
- package/src/age/__tests__/ageFromDob.test.ts +192 -0
- package/src/age/ageFromDob.ts +269 -0
- package/src/age/index.ts +8 -0
- package/src/index.ts +4 -0
- package/src/shareRules/__tests__/caseShareLane.test.ts +259 -0
- package/src/shareRules/__tests__/magicLinkAddresses.test.ts +107 -0
- package/src/shareRules/__tests__/platformApps.test.ts +133 -0
- package/src/shareRules/__tests__/releaseTerms.test.ts +358 -0
- package/src/shareRules/__tests__/senderRoiPosture.test.ts +284 -0
- package/src/shareRules/__tests__/sharingMethods.test.ts +105 -0
- package/src/shareRules/caseShareLane.ts +289 -0
- package/src/shareRules/index.ts +31 -0
- package/src/shareRules/magicLinkAddresses.ts +185 -0
- package/src/shareRules/platformApps.ts +168 -0
- package/src/shareRules/releaseTerms.ts +359 -0
- package/src/shareRules/reportPurposes.ts +50 -0
- package/src/shareRules/senderRoiPosture.ts +296 -0
- package/src/shareRules/sharingMethods.ts +204 -0
- package/src/sharingCeiling/__tests__/threadLift.test.ts +353 -0
- package/src/sharingCeiling/coverage.ts +63 -0
- package/src/sharingCeiling/defaults.ts +106 -0
- package/src/sharingCeiling/index.ts +7 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/constants/platform-auth.ts","../../src/shareRules/platformApps.ts","../../src/generated/cvc-enums.ts","../../src/shareRules/sharingMethods.ts","../../src/shareRules/reportPurposes.ts","../../src/shareRules/magicLinkAddresses.ts","../../src/shareRules/releaseTerms.ts","../../src/shareRules/caseShareLane.ts","../../src/shareRules/senderRoiPosture.ts"],"sourcesContent":["/**\n * @htilabs/platform-common-models — Platform Authorization Constants\n *\n * Enums and labels for the platform role/function permission model.\n * Includes permission states, share view levels, tool codes, role levels,\n * and function implementation statuses.\n *\n * Source: PLATFORM_AUTH_SPEC.md Sections 5 + 6\n */\n\n// ─── Permission State (4-state role→function mapping) ──────────────\n\nexport const PERMISSION_STATE = {\n /** Role can always perform this function (mandatory, cannot disable). */\n ALWAYS: \"ALWAYS\",\n /** Default On — user can opt off. */\n PREF_YES: \"PREF_YES\",\n /** Default Off — user can opt in. */\n PREF_NO: \"PREF_NO\",\n /** Role is explicitly barred from this function. */\n NEVER: \"NEVER\",\n} as const;\n\nexport type PermissionStateValue =\n (typeof PERMISSION_STATE)[keyof typeof PERMISSION_STATE];\n\nexport const PERMISSION_STATE_VALUES = [\n PERMISSION_STATE.ALWAYS,\n PERMISSION_STATE.PREF_YES,\n PERMISSION_STATE.PREF_NO,\n PERMISSION_STATE.NEVER,\n] as const;\n\nexport const PERMISSION_STATE_LABELS: Record<PermissionStateValue, string> = {\n [PERMISSION_STATE.ALWAYS]: \"Always\",\n [PERMISSION_STATE.PREF_YES]: \"Default On\",\n [PERMISSION_STATE.PREF_NO]: \"Default Off\",\n [PERMISSION_STATE.NEVER]: \"Never\",\n};\n\n/** UI display metadata for permission states (colors, icons). */\nexport const PERMISSION_STATE_DISPLAY: Record<\n PermissionStateValue,\n { label: string; color: string; bgColor: string; icon: string }\n> = {\n [PERMISSION_STATE.ALWAYS]: {\n label: \"Always\",\n color: \"#2e7d32\",\n bgColor: \"#e8f5e9\",\n icon: \"\\u{1F512}\",\n },\n [PERMISSION_STATE.PREF_YES]: {\n label: \"Default On\",\n color: \"#1565c0\",\n bgColor: \"#e3f2fd\",\n icon: \"\\u{1F513}\",\n },\n [PERMISSION_STATE.PREF_NO]: {\n label: \"Default Off\",\n color: \"#e65100\",\n bgColor: \"#fff3e0\",\n icon: \"\\u{1F513}\",\n },\n [PERMISSION_STATE.NEVER]: {\n label: \"Never\",\n color: \"#c62828\",\n bgColor: \"#ffebee\",\n icon: \"\\u{1F512}\",\n },\n};\n\n// ─── Codebook default bound (CVC-133 `bounds:`, per role × function) ──\n\n/**\n * The state the CVC-133 codebook gives one role for one function: the four\n * PERMISSION_STATE values plus `NA` (\"Not relevant\": canon's\n * `not_applicable_roles`). Canon's `always` / `default_on` / `default_off` /\n * `never` read ALWAYS / PREF_YES / PREF_NO / NEVER. A role the codebook does\n * not name for a function has NO default bound (\"unbound\"), which is an absent\n * key, never a sixth value.\n *\n * `NA` is deliberately NOT a PERMISSION_STATE: it is codebook vocabulary, not\n * a grantable policy state. The shared resolver reads a stored `NA` as NEVER\n * at every tier (and any other value outside PERMISSION_STATE as malformed,\n * which also denies).\n */\nexport const DEFAULT_BOUND_STATE = {\n ...PERMISSION_STATE,\n /** Not relevant — canon's `not_applicable_roles` for this function. */\n NA: \"NA\",\n} as const;\n\nexport type DefaultBoundStateValue =\n (typeof DEFAULT_BOUND_STATE)[keyof typeof DEFAULT_BOUND_STATE];\n\nexport const DEFAULT_BOUND_STATE_VALUES = [\n ...PERMISSION_STATE_VALUES,\n DEFAULT_BOUND_STATE.NA,\n] as const;\n\n/**\n * Labels for a Tier-1 (platform role) state, which may be the codebook's `NA`\n * since 0.24.0. `PERMISSION_STATE_LABELS` / `PERMISSION_STATE_DISPLAY` keep\n * their four keys (agency and team states have no NA); index THESE with a\n * `PlatformRoleDef.functions` value, or a stored \"NA\" looks up `undefined`.\n * \"Not relevant\" is the codebook chip label (platform-prototype @ a6f1f3a\n * `src/screens.jsx:19151` `PB_STATE_SHORT.na`).\n */\nexport const DEFAULT_BOUND_STATE_LABELS: Record<DefaultBoundStateValue, string> = {\n ...PERMISSION_STATE_LABELS,\n [DEFAULT_BOUND_STATE.NA]: \"Not relevant\",\n};\n\n/**\n * `PERMISSION_STATE_DISPLAY` plus `NA`. Like the other four entries these are\n * package display defaults, not canon tokens (canon inks NA with\n * `--highlight-sandstone-gold`, `assets/app-styles.css:12318`).\n */\nexport const DEFAULT_BOUND_STATE_DISPLAY: Record<\n DefaultBoundStateValue,\n { label: string; color: string; bgColor: string; icon: string }\n> = {\n ...PERMISSION_STATE_DISPLAY,\n [DEFAULT_BOUND_STATE.NA]: {\n label: \"Not relevant\",\n color: \"#616161\",\n bgColor: \"#f5f5f5\",\n icon: \"\\u25CC\",\n },\n};\n\n// ─── Share View (data visibility for shared records) ───────────────\n\nexport const SHARE_VIEW = {\n /** System metadata only (partial access). */\n SYS_INFO: \"sys_info\",\n /** Full case/record content. */\n ALL: \"all\",\n /** No data access. */\n NONE: \"none\",\n} as const;\n\nexport type ShareViewValue = (typeof SHARE_VIEW)[keyof typeof SHARE_VIEW];\n\nexport const SHARE_VIEW_VALUES = [\n SHARE_VIEW.SYS_INFO,\n SHARE_VIEW.ALL,\n SHARE_VIEW.NONE,\n] as const;\n\nexport const SHARE_VIEW_LABELS: Record<ShareViewValue, string> = {\n [SHARE_VIEW.SYS_INFO]: \"System Info Only\",\n [SHARE_VIEW.ALL]: \"Full Content\",\n [SHARE_VIEW.NONE]: \"No Data Access\",\n};\n\n// ─── Platform Tool Codes ───────────────────────────────────────────\n\nexport const PLATFORM_TOOL = {\n PAVE: \"PAVE\",\n ECHO: \"ECHO\",\n LEADS: \"LEADS\",\n THREAD: \"THREAD\",\n TRAIL: \"TRAIL\",\n PLATFORM: \"PLATFORM\",\n} as const;\n\nexport type PlatformToolValue =\n (typeof PLATFORM_TOOL)[keyof typeof PLATFORM_TOOL];\n\nexport const PLATFORM_TOOL_VALUES = [\n PLATFORM_TOOL.PAVE,\n PLATFORM_TOOL.ECHO,\n PLATFORM_TOOL.LEADS,\n PLATFORM_TOOL.THREAD,\n PLATFORM_TOOL.TRAIL,\n PLATFORM_TOOL.PLATFORM,\n] as const;\n\nexport const PLATFORM_TOOL_LABELS: Record<PlatformToolValue, string> = {\n [PLATFORM_TOOL.PAVE]: \"PAVE\",\n [PLATFORM_TOOL.ECHO]: \"Echo\",\n [PLATFORM_TOOL.LEADS]: \"LEADS\",\n [PLATFORM_TOOL.THREAD]: \"Thread\",\n [PLATFORM_TOOL.TRAIL]: \"Trail\",\n [PLATFORM_TOOL.PLATFORM]: \"Platform\",\n};\n\n// ─── Role Level (hierarchy tiers) ──────────────────────────────────\n\nexport const ROLE_LEVEL = {\n /** User-facing roles (staff, volunteers, practitioners). */\n OPERATIONAL: \"operational\",\n /** Agency-level admin roles. */\n AGENCY: \"agency\",\n /** Team-level admin roles. */\n TEAM: \"team\",\n /** HTI-wide platform admin. */\n PLATFORM: \"platform\",\n /** External governance/oversight roles. */\n OVERSIGHT: \"oversight\",\n} as const;\n\nexport type RoleLevelValue = (typeof ROLE_LEVEL)[keyof typeof ROLE_LEVEL];\n\nexport const ROLE_LEVEL_VALUES = [\n ROLE_LEVEL.OPERATIONAL,\n ROLE_LEVEL.AGENCY,\n ROLE_LEVEL.TEAM,\n ROLE_LEVEL.PLATFORM,\n ROLE_LEVEL.OVERSIGHT,\n] as const;\n\nexport const ROLE_LEVEL_LABELS: Record<RoleLevelValue, string> = {\n [ROLE_LEVEL.OPERATIONAL]: \"Operational\",\n [ROLE_LEVEL.AGENCY]: \"Agency\",\n [ROLE_LEVEL.TEAM]: \"Team\",\n [ROLE_LEVEL.PLATFORM]: \"Platform\",\n [ROLE_LEVEL.OVERSIGHT]: \"Oversight\",\n};\n\n// ─── Function Implementation Status ────────────────────────────────\n\nexport const FUNCTION_STATUS = {\n NOT_STARTED: \"Not started\",\n DEFINED_NEW: \"Defined; new function\",\n DEFINED_EXISTING: \"Defined; existing PAVE function\",\n FUNCTIONAL: \"Functional on all apps\",\n FUTURE: \"Future function (not v1)\",\n} as const;\n\nexport type FunctionStatusValue =\n (typeof FUNCTION_STATUS)[keyof typeof FUNCTION_STATUS];\n\nexport const FUNCTION_STATUS_VALUES = [\n FUNCTION_STATUS.NOT_STARTED,\n FUNCTION_STATUS.DEFINED_NEW,\n FUNCTION_STATUS.DEFINED_EXISTING,\n FUNCTION_STATUS.FUNCTIONAL,\n FUNCTION_STATUS.FUTURE,\n] as const;\n\nexport const FUNCTION_STATUS_LABELS: Record<FunctionStatusValue, string> = {\n [FUNCTION_STATUS.NOT_STARTED]: \"Not Started\",\n [FUNCTION_STATUS.DEFINED_NEW]: \"Defined (New)\",\n [FUNCTION_STATUS.DEFINED_EXISTING]: \"Defined (Existing PAVE)\",\n [FUNCTION_STATUS.FUNCTIONAL]: \"Functional\",\n [FUNCTION_STATUS.FUTURE]: \"Future (Not v1)\",\n};\n","/**\n * Which apps put a share recipient on the platform, and which app a team's\n * shares land in — the two app-membership readings the magic-link and\n * CaseShare-lane rules (./magicLinkAddresses.ts, ./caseShareLane.ts) stand on.\n *\n * Lifted unchanged from Thread `@thread/shared` @ thread develop f021be2:\n * - `shareEdge.ts` L21-L125 — `RecipientPlatformSnapshot`,\n * `recipientPlatformFromApps`, `recipientUsesApp`, `agencyIdKey` and their\n * private helpers (th-a2dfb, Ava A7);\n * - `teamLanding.ts` (whole file) — `teamLandingApp`, `teamLandsInPave`,\n * `teamLandsInThread` (th-ng838.4 MINOR-1).\n * They moved because the lifted rules import them; they are small and pure\n * and read only `PLATFORM_TOOL` (this package). Behaviour and doc comments\n * are Thread's.\n *\n * Pure: no mongoose, no I/O, no SOT import.\n */\n\nimport {\n PLATFORM_TOOL,\n type PlatformToolValue,\n} from \"../constants/platform-auth.js\";\n\n// ─── On-platform by casework apps (shareEdge.ts L21-L125) ───────────────────\n\nexport interface RecipientPlatformSnapshot {\n readonly recipientOnPlatform: boolean;\n /**\n * The recipient org's apps EXACTLY as read (non-empty strings, case kept —\n * e.g. [\"TRAIL\", \"THREAD\"]): the audit basis the edge stores. It is NOT\n * the on-platform test — an org on TRAIL alone has a non-empty basis and\n * is off-platform (th-a2dfb). Read `recipientOnPlatform`.\n */\n readonly recipientOnPlatformBasis: string[];\n}\n\n/**\n * The daily casework apps — the only apps that put a share recipient's\n * inbox on the platform. The platform's network-reach rule (platform-prototype\n * src/agencyhub.jsx L8708-8711 @ 0fa04c1, `networkReachFor`):\n * thread / pave / leads, matched case-insensitively. Codes from\n * `PLATFORM_TOOL`.\n */\nconst CASEWORK_APPS: readonly PlatformToolValue[] = [\n PLATFORM_TOOL.THREAD,\n PLATFORM_TOOL.PAVE,\n PLATFORM_TOOL.LEADS,\n];\n\n/**\n * ASCII whitespace only (space, tab, newline, vertical tab, form feed,\n * carriage return) — the PCRE `\\s` the shareable listing's Mongo query\n * matches, so the JS predicate and the query agree exactly (PAVE trims the\n * same set). A non-breaking space is NOT trimmed.\n */\nfunction trimAsciiWhitespace(s: string): string {\n return s.replace(/^[ \\t\\n\\v\\f\\r]+|[ \\t\\n\\v\\f\\r]+$/g, \"\");\n}\n\n/** Matched trimmed and case-insensitively (\"PAVE \" and \"pave\" are PAVE). */\nfunction isCaseworkApp(app: string): boolean {\n return CASEWORK_APPS.some((c) => recipientUsesApp([app], c));\n}\n\n/**\n * The org's apps as read: a list's non-empty strings, kept as written; a\n * bare-string value (`\"PAVE\"`) counts as a one-item list; anything else is\n * no apps.\n */\nfunction appsAsRead(apps: unknown): string[] {\n const list: readonly unknown[] =\n typeof apps === \"string\" ? [apps] : Array.isArray(apps) ? apps : [];\n return list.filter((a): a is string => typeof a === \"string\" && a.length > 0);\n}\n\n/**\n * Whether an ORGANIZATION's `apps` (read as {@link appsAsRead} reads them)\n * include `app`, trimmed of ASCII whitespace and case-insensitively — the ONE\n * agency app-membership test (the shareable listing, the A7 derivation and\n * the CaseShare rule's LEADS-only agency reading all use it; th-fbb8e\n * review). A TEAM's landing app is read strictly instead\n * ({@link teamLandingApp}: the first entry, an exact uppercase PLATFORM_TOOL\n * code).\n */\nexport function recipientUsesApp(apps: unknown, app: string): boolean {\n const want = app.toLowerCase();\n return appsAsRead(apps).some(\n (a) => trimAsciiWhitespace(a).toLowerCase() === want,\n );\n}\n\n/**\n * The key one agency (or team) id is compared under across its stored forms:\n * a 24-hex id lower-cased (an ObjectId's hex and every hex string written from\n * it agree), anything else exactly as given. The ONE 24-hex normaliser\n * (th-fbb8e review).\n */\nexport function agencyIdKey(id: unknown): string {\n const s = String(id);\n return /^[0-9a-fA-F]{24}$/.test(s) ? s.toLowerCase() : s;\n}\n\n/**\n * Ava A7: \"a magic-link recipient is a share recipient that is not using HTI\n * Platform apps\". th-a2dfb: the ROUTING rule — on-platform ⇔ the org uses at\n * least one daily casework app (THREAD / PAVE / LEADS — trimmed, any case;\n * a bare-string `apps` value is a one-item list), the\n * platform's `networkReachFor` — so the picker's reach chip and the lane\n * agree: an org on TRAIL / ECHO alone has no inbox to receive a CaseShare,\n * reads Magic Link and rides the magic link.\n *\n * KNOWN DIVERGENCE (veto-able, pending a ruling): the monolith's share-edge\n * derivation `_onPlatformFor` (HTI-LEADS-PAVE-Thread-prototype.html\n * L343282-343299 over `_orgAppsMono` L343036 @ prototype 40f57adf) stamps\n * the edge `value: apps.length > 0` over ALL daily apps, echo / trail\n * included. Thread stamps `recipientOnPlatform` by the casework rule so the\n * stamp matches the lane the share actually took; the basis keeps every app\n * as read, so nothing the monolith records is lost.\n *\n * The EDGE records the derivation and its basis; the org is never marked\n * (\"derived from the org's apps_used, never typed on the org\").\n */\nexport function recipientPlatformFromApps(\n apps: unknown,\n): RecipientPlatformSnapshot {\n const basis = appsAsRead(apps);\n return {\n recipientOnPlatform: basis.some(isCaseworkApp),\n recipientOnPlatformBasis: basis,\n };\n}\n\n// ─── A team's landing app (teamLanding.ts) ──────────────────────────────────\n//\n// Canon lands a share in the receiving team's FIRST app:\n// `_landApp = _landTeam.apps_used[0]` (monolith L340168-340207 @ prototype\n// c2900116). Canon's intake resolver, though, picks a team that merely USES\n// PAVE (`apps_used.indexOf(\"pave\") >= 0`) — so a dual-app team listing PAVE\n// second gets the preset in canon yet lands in Thread. Thread reads ONE\n// predicate for both: a team is a PAVE intake-landing team only when its\n// landing app (`apps[0]`) is `PAVE` (a recorded narrowing of canon's\n// resolver, keeping its landing rule exact).\n//\n// Codes are the uppercase PLATFORM_TOOL codes the platform-db writers stamp;\n// a lowercase `pave` is off-vocabulary and lands nowhere (th-ng838.2's strict\n// reading).\n\n/** The team's landing app — its first declared app code, or undefined. */\nexport function teamLandingApp(\n apps: readonly unknown[] | null | undefined,\n): string | undefined {\n const first = Array.isArray(apps) ? apps[0] : undefined;\n return typeof first === \"string\" && first.length > 0 ? first : undefined;\n}\n\n/** True iff the team's landing app is PAVE (the intake-referral target). */\nexport function teamLandsInPave(\n apps: readonly unknown[] | null | undefined,\n): boolean {\n return teamLandingApp(apps) === PLATFORM_TOOL.PAVE;\n}\n\n/** True iff the team's landing app is THREAD (the cross-team inbox lane). */\nexport function teamLandsInThread(\n apps: readonly unknown[] | null | undefined,\n): boolean {\n return teamLandingApp(apps) === PLATFORM_TOOL.THREAD;\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.0.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; 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.0.0 · Entries: 155\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 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.0.0 · Entries: 14\n */\nexport const RaceEthnicityKeys = {\n missingness_root: \"076-000-000-000-000-000-000\",\n unknown: \"076-000-000-000-000-000-001\",\n anonymous: \"076-000-000-000-000-000-002\",\n data_not_collected: \"076-000-000-000-000-000-003\",\n prefer_not_to_answer: \"076-000-000-000-000-000-004\",\n american_indian_or_alaska_native: \"076-001-000-000-000-000-000\",\n asian: \"076-002-000-000-000-000-000\",\n black_or_african_american: \"076-003-000-000-000-000-000\",\n hispanic_or_latino: \"076-004-000-000-000-000-000\",\n middle_eastern_or_north_african: \"076-005-000-000-000-000-000\",\n multiple_races: \"076-006-000-000-000-000-000\",\n native_hawaiian_or_pacific_islander: \"076-007-000-000-000-000-000\",\n other_self_described: \"076-008-000-000-000-000-000\",\n white: \"076-009-000-000-000-000-000\",\n} as const;\n\nexport type RaceEthnicityKey = keyof typeof RaceEthnicityKeys;\n\n/**\n * Key → positional code map for the `primary_language` CVC domain.\n *\n * Domain: `primary_language` · Version: 1.0.0 · Entries: 191\n */\nexport const PrimaryLanguageKeys = {\n missingness_root: \"122-000-000-000-000-000-000\",\n unknown: \"122-000-000-000-000-000-001\",\n anonymous: \"122-000-000-000-000-000-002\",\n data_not_collected: \"122-000-000-000-000-000-003\",\n abkhazian: \"122-001-000-000-000-000-000\",\n afar: \"122-002-000-000-000-000-000\",\n afrikaans: \"122-003-000-000-000-000-000\",\n akan: \"122-004-000-000-000-000-000\",\n albanian: \"122-005-000-000-000-000-000\",\n american_sign_language: \"122-006-000-000-000-000-000\",\n amharic: \"122-007-000-000-000-000-000\",\n arabic: \"122-008-000-000-000-000-000\",\n aragonese: \"122-009-000-000-000-000-000\",\n armenian: \"122-010-000-000-000-000-000\",\n assamese: \"122-011-000-000-000-000-000\",\n avaric: \"122-012-000-000-000-000-000\",\n avestan: \"122-013-000-000-000-000-000\",\n aymara: \"122-014-000-000-000-000-000\",\n azerbaijani: \"122-015-000-000-000-000-000\",\n bambara: \"122-016-000-000-000-000-000\",\n bashkir: \"122-017-000-000-000-000-000\",\n basque: \"122-018-000-000-000-000-000\",\n belarusian: \"122-019-000-000-000-000-000\",\n bengali: \"122-020-000-000-000-000-000\",\n bislama: \"122-021-000-000-000-000-000\",\n bosnian: \"122-022-000-000-000-000-000\",\n breton: \"122-023-000-000-000-000-000\",\n bulgarian: \"122-024-000-000-000-000-000\",\n burmese: \"122-025-000-000-000-000-000\",\n catalan_valencian: \"122-026-000-000-000-000-000\",\n central_khmer: \"122-027-000-000-000-000-000\",\n chamorro: \"122-028-000-000-000-000-000\",\n chechen: \"122-029-000-000-000-000-000\",\n chichewa_chewa_nyanja: \"122-030-000-000-000-000-000\",\n chinese: \"122-031-000-000-000-000-000\",\n chinese_cantonese: \"122-032-000-000-000-000-000\",\n chinese_mandarin: \"122-033-000-000-000-000-000\",\n church_slavic_old_slavonic_church_slavonic_old_bulgarian_old_church_slavonic: \"122-034-000-000-000-000-000\",\n chuvash: \"122-035-000-000-000-000-000\",\n cornish: \"122-036-000-000-000-000-000\",\n corsican: \"122-037-000-000-000-000-000\",\n cree: \"122-038-000-000-000-000-000\",\n croatian: \"122-039-000-000-000-000-000\",\n czech: \"122-040-000-000-000-000-000\",\n danish: \"122-041-000-000-000-000-000\",\n divehi_dhivehi_maldivian: \"122-042-000-000-000-000-000\",\n dutch_flemish: \"122-043-000-000-000-000-000\",\n dzongkha: \"122-044-000-000-000-000-000\",\n english: \"122-045-000-000-000-000-000\",\n esperanto: \"122-046-000-000-000-000-000\",\n estonian: \"122-047-000-000-000-000-000\",\n ewe: \"122-048-000-000-000-000-000\",\n faroese: \"122-049-000-000-000-000-000\",\n fijian: \"122-050-000-000-000-000-000\",\n finnish: \"122-051-000-000-000-000-000\",\n french: \"122-052-000-000-000-000-000\",\n fulah: \"122-053-000-000-000-000-000\",\n gaelic_scottish_gaelic: \"122-054-000-000-000-000-000\",\n galician: \"122-055-000-000-000-000-000\",\n ganda: \"122-056-000-000-000-000-000\",\n georgian: \"122-057-000-000-000-000-000\",\n german: \"122-058-000-000-000-000-000\",\n guarani: \"122-059-000-000-000-000-000\",\n gujarati: \"122-060-000-000-000-000-000\",\n haitian_haitian_creole: \"122-061-000-000-000-000-000\",\n hausa: \"122-062-000-000-000-000-000\",\n hebrew: \"122-063-000-000-000-000-000\",\n herero: \"122-064-000-000-000-000-000\",\n hindi: \"122-065-000-000-000-000-000\",\n hiri_motu: \"122-066-000-000-000-000-000\",\n hungarian: \"122-067-000-000-000-000-000\",\n icelandic: \"122-068-000-000-000-000-000\",\n ido: \"122-069-000-000-000-000-000\",\n igbo: \"122-070-000-000-000-000-000\",\n indonesian: \"122-071-000-000-000-000-000\",\n interlingua: \"122-072-000-000-000-000-000\",\n interlingue_occidental: \"122-073-000-000-000-000-000\",\n inuktitut: \"122-074-000-000-000-000-000\",\n inupiaq: \"122-075-000-000-000-000-000\",\n irish: \"122-076-000-000-000-000-000\",\n italian: \"122-077-000-000-000-000-000\",\n japanese: \"122-078-000-000-000-000-000\",\n javanese: \"122-079-000-000-000-000-000\",\n kalaallisut_greenlandic: \"122-080-000-000-000-000-000\",\n kannada: \"122-081-000-000-000-000-000\",\n kanuri: \"122-082-000-000-000-000-000\",\n kashmiri: \"122-083-000-000-000-000-000\",\n kazakh: \"122-084-000-000-000-000-000\",\n kikuyu_gikuyu: \"122-085-000-000-000-000-000\",\n kinyarwanda: \"122-086-000-000-000-000-000\",\n kirghiz_kyrgyz: \"122-087-000-000-000-000-000\",\n komi: \"122-088-000-000-000-000-000\",\n kongo: \"122-089-000-000-000-000-000\",\n korean: \"122-090-000-000-000-000-000\",\n kuanyama_kwanyama: \"122-091-000-000-000-000-000\",\n kurdish: \"122-092-000-000-000-000-000\",\n lao: \"122-093-000-000-000-000-000\",\n latin: \"122-094-000-000-000-000-000\",\n latvian: \"122-095-000-000-000-000-000\",\n limburgan_limburger_limburgish: \"122-096-000-000-000-000-000\",\n lingala: \"122-097-000-000-000-000-000\",\n lithuanian: \"122-098-000-000-000-000-000\",\n luba_katanga: \"122-099-000-000-000-000-000\",\n luxembourgish_letzeburgesch: \"122-100-000-000-000-000-000\",\n macedonian: \"122-101-000-000-000-000-000\",\n malagasy: \"122-102-000-000-000-000-000\",\n malay: \"122-103-000-000-000-000-000\",\n malayalam: \"122-104-000-000-000-000-000\",\n maltese: \"122-105-000-000-000-000-000\",\n manx: \"122-106-000-000-000-000-000\",\n maori: \"122-107-000-000-000-000-000\",\n marathi: \"122-108-000-000-000-000-000\",\n marshallese: \"122-109-000-000-000-000-000\",\n modern_greek: \"122-110-000-000-000-000-000\",\n mongolian: \"122-111-000-000-000-000-000\",\n nauru: \"122-112-000-000-000-000-000\",\n navajo_navaho: \"122-113-000-000-000-000-000\",\n ndonga: \"122-114-000-000-000-000-000\",\n nepali: \"122-115-000-000-000-000-000\",\n north_ndebele: \"122-116-000-000-000-000-000\",\n northern_sami: \"122-117-000-000-000-000-000\",\n norwegian: \"122-118-000-000-000-000-000\",\n norwegian_bokmal: \"122-119-000-000-000-000-000\",\n norwegian_nynorsk: \"122-120-000-000-000-000-000\",\n occitan: \"122-121-000-000-000-000-000\",\n ojibwa: \"122-122-000-000-000-000-000\",\n oriya: \"122-123-000-000-000-000-000\",\n oromo: \"122-124-000-000-000-000-000\",\n ossetian_ossetic: \"122-125-000-000-000-000-000\",\n other_language: \"122-126-000-000-000-000-000\",\n pali: \"122-127-000-000-000-000-000\",\n panjabi_punjabi: \"122-128-000-000-000-000-000\",\n persian: \"122-129-000-000-000-000-000\",\n polish: \"122-130-000-000-000-000-000\",\n portuguese: \"122-131-000-000-000-000-000\",\n pushto_pashto: \"122-132-000-000-000-000-000\",\n quechua: \"122-133-000-000-000-000-000\",\n romanian_moldavian_moldovan: \"122-134-000-000-000-000-000\",\n romansh: \"122-135-000-000-000-000-000\",\n rundi: \"122-136-000-000-000-000-000\",\n russian: \"122-137-000-000-000-000-000\",\n samoan: \"122-138-000-000-000-000-000\",\n sango: \"122-139-000-000-000-000-000\",\n sanskrit: \"122-140-000-000-000-000-000\",\n sardinian: \"122-141-000-000-000-000-000\",\n serbian: \"122-142-000-000-000-000-000\",\n shona: \"122-143-000-000-000-000-000\",\n sichuan_yi_nuosu: \"122-144-000-000-000-000-000\",\n sindhi: \"122-145-000-000-000-000-000\",\n sinhala_sinhalese: \"122-146-000-000-000-000-000\",\n slovak: \"122-147-000-000-000-000-000\",\n slovenian: \"122-148-000-000-000-000-000\",\n somali: \"122-149-000-000-000-000-000\",\n sotho_southern: \"122-150-000-000-000-000-000\",\n south_ndebele: \"122-151-000-000-000-000-000\",\n spanish: \"122-152-000-000-000-000-000\",\n sundanese: \"122-153-000-000-000-000-000\",\n swahili: \"122-154-000-000-000-000-000\",\n swati: \"122-155-000-000-000-000-000\",\n swedish: \"122-156-000-000-000-000-000\",\n tagalog: \"122-157-000-000-000-000-000\",\n tahitian: \"122-158-000-000-000-000-000\",\n tajik: \"122-159-000-000-000-000-000\",\n tamil: \"122-160-000-000-000-000-000\",\n tatar: \"122-161-000-000-000-000-000\",\n telugu: \"122-162-000-000-000-000-000\",\n thai: \"122-163-000-000-000-000-000\",\n tibetan: \"122-164-000-000-000-000-000\",\n tigrinya: \"122-165-000-000-000-000-000\",\n tonga: \"122-166-000-000-000-000-000\",\n tsonga: \"122-167-000-000-000-000-000\",\n tswana: \"122-168-000-000-000-000-000\",\n turkish: \"122-169-000-000-000-000-000\",\n turkmen: \"122-170-000-000-000-000-000\",\n twi: \"122-171-000-000-000-000-000\",\n uighur_uyghur: \"122-172-000-000-000-000-000\",\n ukrainian: \"122-173-000-000-000-000-000\",\n urdu: \"122-174-000-000-000-000-000\",\n uzbek: \"122-175-000-000-000-000-000\",\n venda: \"122-176-000-000-000-000-000\",\n vietnamese: \"122-177-000-000-000-000-000\",\n volapuk: \"122-178-000-000-000-000-000\",\n walloon: \"122-179-000-000-000-000-000\",\n welsh: \"122-180-000-000-000-000-000\",\n western_frisian: \"122-181-000-000-000-000-000\",\n wolof: \"122-182-000-000-000-000-000\",\n xhosa: \"122-183-000-000-000-000-000\",\n yiddish: \"122-184-000-000-000-000-000\",\n yoruba: \"122-185-000-000-000-000-000\",\n zhuang_chuang: \"122-186-000-000-000-000-000\",\n zulu: \"122-187-000-000-000-000-000\",\n} as const;\n\nexport type PrimaryLanguageKey = keyof typeof PrimaryLanguageKeys;\n\n/**\n * Key → positional code map for the `orientation_identity` CVC domain.\n *\n * Domain: `orientation_identity` · Version: 1.0.0 · Entries: 9\n */\nexport const OrientationIdentityKeys = {\n missingness_root: \"016-000-000-000-000-000-000\",\n unknown: \"016-000-000-000-000-000-001\",\n anonymous: \"016-000-000-000-000-000-002\",\n data_not_collected: \"016-000-000-000-000-000-003\",\n prefer_not_to_answer: \"016-000-000-000-000-000-004\",\n bisexual: \"016-001-000-000-000-000-000\",\n gay_or_lesbian: \"016-002-000-000-000-000-000\",\n other_self_described: \"016-003-000-000-000-000-000\",\n straight: \"016-004-000-000-000-000-000\",\n} as const;\n\nexport type OrientationIdentityKey = keyof typeof OrientationIdentityKeys;\n\n/**\n * Key → positional code map for the `pronouns` CVC domain.\n *\n * Domain: `pronouns` · Version: 1.0.0 · Entries: 8\n */\nexport const PronounsKeys = {\n missingness_root: \"147-000-000-000-000-000-000\",\n unknown: \"147-000-000-000-000-000-001\",\n anonymous: \"147-000-000-000-000-000-002\",\n data_not_collected: \"147-000-000-000-000-000-003\",\n he_him: \"147-001-000-000-000-000-000\",\n she_her: \"147-002-000-000-000-000-000\",\n they_them: \"147-003-000-000-000-000-000\",\n other_self_described: \"147-004-000-000-000-000-000\",\n} as const;\n\nexport type PronounsKey = keyof typeof PronounsKeys;\n\n/**\n * Key → positional code map for the `gender_identity` CVC domain.\n *\n * Domain: `gender_identity` · Version: 1.0.0 · Entries: 12\n */\nexport const GenderIdentityKeys = {\n missingness_root: \"017-000-000-000-000-000-000\",\n unknown: \"017-000-000-000-000-000-001\",\n anonymous: \"017-000-000-000-000-000-002\",\n data_not_collected: \"017-000-000-000-000-000-003\",\n prefer_not_to_answer: \"017-000-000-000-000-000-004\",\n female: \"017-001-000-000-000-000-000\",\n male: \"017-002-000-000-000-000-000\",\n non_binary: \"017-003-000-000-000-000-000\",\n other: \"017-004-000-000-000-000-000\",\n transgender: \"017-005-000-000-000-000-000\",\n transgender_ftm: \"017-005-001-000-000-000-000\",\n transgender_mtf: \"017-005-002-000-000-000-000\",\n} as const;\n\nexport type GenderIdentityKey = keyof typeof GenderIdentityKeys;\n\n/**\n * Key → positional code map for the `tribes` CVC domain.\n *\n * Domain: `tribes` · Version: 1.0.0 · Entries: 53\n */\nexport const TribesKeys = {\n missingness_root: \"148-000-000-000-000-000-000\",\n unknown: \"148-000-000-000-000-000-001\",\n anonymous: \"148-000-000-000-000-000-002\",\n data_not_collected: \"148-000-000-000-000-000-003\",\n cherokee_nation: \"148-001-000-000-000-000-000\",\n muscogee_creek: \"148-002-000-000-000-000-000\",\n choctaw_nation: \"148-003-000-000-000-000-000\",\n chickasaw_nation: \"148-004-000-000-000-000-000\",\n seminole_nation: \"148-005-000-000-000-000-000\",\n osage_nation: \"148-006-000-000-000-000-000\",\n cheyenne_arapaho: \"148-007-000-000-000-000-000\",\n comanche_nation: \"148-008-000-000-000-000-000\",\n kiowa_tribe: \"148-009-000-000-000-000-000\",\n apache_tribe_ok: \"148-010-000-000-000-000-000\",\n caddo_nation: \"148-011-000-000-000-000-000\",\n wichita_affiliated: \"148-012-000-000-000-000-000\",\n delaware_nation: \"148-013-000-000-000-000-000\",\n delaware_tribe_indians: \"148-014-000-000-000-000-000\",\n pawnee_nation: \"148-015-000-000-000-000-000\",\n ponca_tribe_ok: \"148-016-000-000-000-000-000\",\n otoe_missouria: \"148-017-000-000-000-000-000\",\n kaw_nation: \"148-018-000-000-000-000-000\",\n tonkawa_tribe: \"148-019-000-000-000-000-000\",\n iowa_tribe_ok: \"148-020-000-000-000-000-000\",\n sac_fox_ok: \"148-021-000-000-000-000-000\",\n kickapoo_tribe_ok: \"148-022-000-000-000-000-000\",\n potawatomi_citizen: \"148-023-000-000-000-000-000\",\n absentee_shawnee: \"148-024-000-000-000-000-000\",\n eastern_shawnee: \"148-025-000-000-000-000-000\",\n shawnee_tribe: \"148-026-000-000-000-000-000\",\n quapaw_nation: \"148-027-000-000-000-000-000\",\n peoria_tribe: \"148-028-000-000-000-000-000\",\n miami_tribe: \"148-029-000-000-000-000-000\",\n modoc_nation: \"148-030-000-000-000-000-000\",\n ottawa_tribe: \"148-031-000-000-000-000-000\",\n seneca_cayuga: \"148-032-000-000-000-000-000\",\n wyandotte_nation: \"148-033-000-000-000-000-000\",\n united_keetoowah: \"148-034-000-000-000-000-000\",\n thlopthlocco: \"148-035-000-000-000-000-000\",\n alabama_quassarte: \"148-036-000-000-000-000-000\",\n kialegee: \"148-037-000-000-000-000-000\",\n fort_sill_apache: \"148-038-000-000-000-000-000\",\n ponca_ne: \"148-039-000-000-000-000-000\",\n omaha_tribe: \"148-040-000-000-000-000-000\",\n winnebago_ne: \"148-041-000-000-000-000-000\",\n santee_sioux: \"148-042-000-000-000-000-000\",\n sioux_specify: \"148-043-000-000-000-000-000\",\n apache_specify: \"148-044-000-000-000-000-000\",\n pueblo_specify: \"148-045-000-000-000-000-000\",\n navajo_specify: \"148-046-000-000-000-000-000\",\n ojibwe_chippewa_specify: \"148-047-000-000-000-000-000\",\n ute_specify: \"148-048-000-000-000-000-000\",\n other_self_described: \"148-049-000-000-000-000-000\",\n} as const;\n\nexport type TribesKey = keyof typeof TribesKeys;\n\n/**\n * Key → positional code map for the `name_type` CVC domain.\n *\n * Domain: `name_type` · Version: 1.0.0 · Entries: 12\n */\nexport const NameTypeKeys = {\n missingness_root: \"001-000-000-000-000-000-000\",\n unknown: \"001-000-000-000-000-000-001\",\n anonymous: \"001-000-000-000-000-000-002\",\n data_not_collected: \"001-000-000-000-000-000-003\",\n alias: \"001-001-000-000-000-000-000\",\n code_name: \"001-002-000-000-000-000-000\",\n handle_screenname: \"001-003-000-000-000-000-000\",\n legal: \"001-004-000-000-000-000-000\",\n maiden_former: \"001-005-000-000-000-000-000\",\n nickname: \"001-006-000-000-000-000-000\",\n street_name: \"001-007-000-000-000-000-000\",\n trade_name_stage_name: \"001-008-000-000-000-000-000\",\n} as const;\n\nexport type NameTypeKey = keyof typeof NameTypeKeys;\n\n/**\n * Key → positional code map for the `age_bin_reporting` CVC domain.\n *\n * Domain: `age_bin_reporting` · Version: 1.0.0 · Entries: 11\n */\nexport const AgeBinReportingKeys = {\n missingness_root: \"051-000-000-000-000-000-000\",\n unknown: \"051-000-000-000-000-000-001\",\n anonymous: \"051-000-000-000-000-000-002\",\n data_not_collected: \"051-000-000-000-000-000-003\",\n age_0_12: \"051-001-000-000-000-000-000\",\n age_13_17: \"051-002-000-000-000-000-000\",\n age_18_24: \"051-003-000-000-000-000-000\",\n age_25_59: \"051-004-000-000-000-000-000\",\n age_60_plus: \"051-005-000-000-000-000-000\",\n not_reported: \"051-006-000-000-000-000-000\",\n not_tracked: \"051-007-000-000-000-000-000\",\n} as const;\n\nexport type AgeBinReportingKey = keyof typeof AgeBinReportingKeys;\n\n/**\n * Key → positional code map for the `juvenile_justice_involvement_status` CVC domain.\n *\n * Domain: `juvenile_justice_involvement_status` · Version: 1.0.0 · Entries: 7\n */\nexport const JuvenileJusticeInvolvementStatusKeys = {\n missingness_root: \"095-000-000-000-000-000-000\",\n unknown: \"095-000-000-000-000-000-001\",\n prefer_not_to_answer: \"095-000-000-000-000-000-002\",\n data_not_collected: \"095-000-000-000-000-000-003\",\n current: \"095-001-000-000-000-000-000\",\n never: \"095-002-000-000-000-000-000\",\n previous: \"095-003-000-000-000-000-000\",\n} as const;\n\nexport type JuvenileJusticeInvolvementStatusKey = keyof typeof JuvenileJusticeInvolvementStatusKeys;\n\n/**\n * Key → positional code map for the `eye_color` CVC domain.\n *\n * Domain: `eye_color` · Version: 1.0.0 · Entries: 11\n */\nexport const EyeColorKeys = {\n missingness_root: \"150-000-000-000-000-000-000\",\n unknown: \"150-000-000-000-000-000-001\",\n anonymous: \"150-000-000-000-000-000-002\",\n data_not_collected: \"150-000-000-000-000-000-003\",\n black: \"150-001-000-000-000-000-000\",\n blue: \"150-002-000-000-000-000-000\",\n brown: \"150-003-000-000-000-000-000\",\n gray: \"150-004-000-000-000-000-000\",\n green: \"150-005-000-000-000-000-000\",\n hazel: \"150-006-000-000-000-000-000\",\n other: \"150-007-000-000-000-000-000\",\n} as const;\n\nexport type EyeColorKey = keyof typeof EyeColorKeys;\n\n/**\n * Key → positional code map for the `smt_type` CVC domain.\n *\n * Domain: `smt_type` · Version: 1.0.0 · Entries: 11\n */\nexport const SmtTypeKeys = {\n missingness_root: \"153-000-000-000-000-000-000\",\n unknown: \"153-000-000-000-000-000-001\",\n anonymous: \"153-000-000-000-000-000-002\",\n data_not_collected: \"153-000-000-000-000-000-003\",\n birthmark: \"153-001-000-000-000-000-000\",\n brand: \"153-002-000-000-000-000-000\",\n mark: \"153-003-000-000-000-000-000\",\n piercing: \"153-004-000-000-000-000-000\",\n scar: \"153-005-000-000-000-000-000\",\n tattoo: \"153-006-000-000-000-000-000\",\n other: \"153-007-000-000-000-000-000\",\n} as const;\n\nexport type SmtTypeKey = keyof typeof SmtTypeKeys;\n\n/**\n * Key → positional code map for the `offender_status` CVC domain.\n *\n * Domain: `offender_status` · Version: 1.0.0 · Entries: 9\n */\nexport const OffenderStatusKeys = {\n missingness_root: \"164-000-000-000-000-000-000\",\n unknown: \"164-000-000-000-000-000-001\",\n anonymous: \"164-000-000-000-000-000-002\",\n data_not_collected: \"164-000-000-000-000-000-003\",\n suspected_offender: \"164-001-000-000-000-000-000\",\n person_of_interest: \"164-002-000-000-000-000-000\",\n cleared_excluded: \"164-003-000-000-000-000-000\",\n charged: \"164-004-000-000-000-000-000\",\n convicted: \"164-005-000-000-000-000-000\",\n} as const;\n\nexport type OffenderStatusKey = keyof typeof OffenderStatusKeys;\n\n/**\n * Key → positional code map for the `offender_status_family` CVC domain.\n *\n * Domain: `offender_status_family` · Version: 1.0.0 · Entries: 8\n */\nexport const OffenderStatusFamilyKeys = {\n missingness_root: \"167-000-000-000-000-000-000\",\n unknown: \"167-000-000-000-000-000-001\",\n anonymous: \"167-000-000-000-000-000-002\",\n data_not_collected: \"167-000-000-000-000-000-003\",\n no_indication: \"167-001-000-000-000-000-000\",\n non_trafficking_exploitation_offender: \"167-002-000-000-000-000-000\",\n potential_trafficking_offender: \"167-003-000-000-000-000-000\",\n trafficking_offender: \"167-004-000-000-000-000-000\",\n} as const;\n\nexport type OffenderStatusFamilyKey = keyof typeof OffenderStatusFamilyKeys;\n\n/**\n * Key → positional code map for the `military_status` CVC domain.\n *\n * Domain: `military_status` · Version: 1.0.0 · Entries: 6\n */\nexport const MilitaryStatusKeys = {\n missingness_root: \"121-000-000-000-000-000-000\",\n unknown: \"121-000-000-000-000-000-001\",\n active_duty: \"121-001-000-000-000-000-000\",\n retired: \"121-002-000-000-000-000-000\",\n discharged: \"121-003-000-000-000-000-000\",\n reserve: \"121-004-000-000-000-000-000\",\n} as const;\n\nexport type MilitaryStatusKey = keyof typeof MilitaryStatusKeys;\n\n/**\n * Key → positional code map for the `military_branch` CVC domain.\n *\n * Domain: `military_branch` · Version: 1.0.0 · Entries: 8\n */\nexport const MilitaryBranchKeys = {\n missingness_root: \"120-000-000-000-000-000-000\",\n unknown: \"120-000-000-000-000-000-001\",\n army: \"120-001-000-000-000-000-000\",\n navy: \"120-002-000-000-000-000-000\",\n air_force: \"120-003-000-000-000-000-000\",\n marines: \"120-004-000-000-000-000-000\",\n coast_guard: \"120-005-000-000-000-000-000\",\n space_force: \"120-006-000-000-000-000-000\",\n} as const;\n\nexport type MilitaryBranchKey = keyof typeof MilitaryBranchKeys;\n\n/**\n * Key → positional code map for the `contact_info_types` CVC domain.\n *\n * Domain: `contact_info_types` · Version: 1.0.0 · Entries: 24\n */\nexport const ContactInfoTypeKeys = {\n missingness_root: \"149-000-000-000-000-000-000\",\n unknown: \"149-000-000-000-000-000-001\",\n anonymous: \"149-000-000-000-000-000-002\",\n data_not_collected: \"149-000-000-000-000-000-003\",\n phone: \"149-001-000-000-000-000-000\",\n email: \"149-002-000-000-000-000-000\",\n app: \"149-003-000-000-000-000-000\",\n app_whatsapp: \"149-003-001-000-000-000-000\",\n app_wechat: \"149-003-002-000-000-000-000\",\n app_kik: \"149-003-003-000-000-000-000\",\n app_paypal: \"149-003-004-000-000-000-000\",\n app_cash_app: \"149-003-005-000-000-000-000\",\n app_venmo: \"149-003-006-000-000-000-000\",\n app_other: \"149-003-007-000-000-000-000\",\n social_media: \"149-004-000-000-000-000-000\",\n social_media_facebook: \"149-004-001-000-000-000-000\",\n social_media_instagram: \"149-004-002-000-000-000-000\",\n social_media_x: \"149-004-003-000-000-000-000\",\n social_media_tiktok: \"149-004-004-000-000-000-000\",\n social_media_reddit: \"149-004-005-000-000-000-000\",\n social_media_youtube: \"149-004-006-000-000-000-000\",\n social_media_snapchat: \"149-004-007-000-000-000-000\",\n social_media_onlyfans: \"149-004-008-000-000-000-000\",\n social_media_other: \"149-004-009-000-000-000-000\",\n} as const;\n\nexport type ContactInfoTypeKey = keyof typeof ContactInfoTypeKeys;\n\n/**\n * Key → positional code map for the `contact_safety_status` CVC domain.\n *\n * Domain: `contact_safety_status` · Version: 1.0.0 · Entries: 6\n */\nexport const ContactSafetyStatusKeys = {\n missingness_root: \"155-000-000-000-000-000-000\",\n unknown: \"155-000-000-000-000-000-001\",\n anonymous: \"155-000-000-000-000-000-002\",\n data_not_collected: \"155-000-000-000-000-000-003\",\n safe: \"155-001-000-000-000-000-000\",\n not_safe: \"155-002-000-000-000-000-000\",\n} as const;\n\nexport type ContactSafetyStatusKey = keyof typeof ContactSafetyStatusKeys;\n\n/**\n * Key → positional code map for the `highest_education_level_completed` CVC domain.\n *\n * Domain: `highest_education_level_completed` · Version: 1.1.0 · Entries: 13\n */\nexport const HighestEducationLevelCompletedKeys = {\n missingness_root: \"180-000-000-000-000-000-000\",\n unknown: \"180-000-000-000-000-000-001\",\n anonymous: \"180-000-000-000-000-000-002\",\n data_not_collected: \"180-000-000-000-000-000-003\",\n prefer_not_to_answer: \"180-000-000-000-000-000-004\",\n less_than_high_school: \"180-001-000-000-000-000-000\",\n high_school_diploma: \"180-002-000-000-000-000-000\",\n ged: \"180-003-000-000-000-000-000\",\n some_college: \"180-004-000-000-000-000-000\",\n associates: \"180-005-000-000-000-000-000\",\n bachelors: \"180-006-000-000-000-000-000\",\n graduate_professional: \"180-007-000-000-000-000-000\",\n trade_vocational: \"180-008-000-000-000-000-000\",\n} as const;\n\nexport type HighestEducationLevelCompletedKey = keyof typeof HighestEducationLevelCompletedKeys;\n\n/**\n * Key → positional code map for the `preferred_contact_method` CVC domain.\n *\n * Domain: `preferred_contact_method` · Version: 1.0.0 · Entries: 4\n */\nexport const PreferredContactMethodKeys = {\n call: \"185-001-000-000-000-000-000\",\n text: \"185-002-000-000-000-000-000\",\n email: \"185-003-000-000-000-000-000\",\n messaging_app_dm: \"185-004-000-000-000-000-000\",\n} as const;\n\nexport type PreferredContactMethodKey = keyof typeof PreferredContactMethodKeys;\n\n/**\n * Key → positional code map for the `share_purpose` CVC domain.\n *\n * Domain: `share_purpose` · Version: 1.1.0 · Entries: 12\n */\nexport const SharePurposeKeys = {\n referral: \"084-001-000-000-000-000-000\",\n case_collaboration: \"084-002-000-000-000-000-000\",\n deconfliction: \"084-003-000-000-000-000-000\",\n mandatory_reporting: \"084-004-000-000-000-000-000\",\n authority_reporting: \"084-005-000-000-000-000-000\",\n automatic_account_share: \"084-006-000-000-000-000-000\",\n discretionary_share: \"084-007-000-000-000-000-000\",\n records_request: \"084-008-000-000-000-000-000\",\n investigation_support: \"084-009-000-000-000-000-000\",\n threat_prevention: \"084-010-000-000-000-000-000\",\n awareness_product: \"084-011-000-000-000-000-000\",\n prosecution_support: \"084-012-000-000-000-000-000\",\n} as const;\n\nexport type SharePurposeKey = keyof typeof SharePurposeKeys;\n\n/**\n * Key → positional code map for the `referral_origin` CVC domain.\n *\n * Domain: `referral_origin` · Version: 1.0.0 · Entries: 2\n */\nexport const ReferralOriginKeys = {\n internal: \"909-001-000-000-000-000-000\",\n external: \"909-002-000-000-000-000-000\",\n} as const;\n\nexport type ReferralOriginKey = keyof typeof ReferralOriginKeys;\n\n/**\n * Key → positional code map for the `case_share_state` CVC domain (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.1.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 `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.0 · Entries: 47\n */\nexport const ReferralEntityCategoryKeys = {\n missingness_root: \"048-000-000-000-000-000-000\",\n unknown: \"048-000-000-000-000-000-001\",\n anonymous: \"048-000-000-000-000-000-002\",\n data_not_collected: \"048-000-000-000-000-000-003\",\n self_referred: \"048-001-000-000-000-000-000\",\n family_guardian_friend: \"048-002-000-000-000-000-000\",\n peer: \"048-003-000-000-000-000-000\",\n other_individual: \"048-004-000-000-000-000-000\",\n housing_shelter_continuum: \"048-005-000-000-000-000-000\",\n outreach_project: \"048-005-001-000-000-000-000\",\n temporary_shelter: \"048-005-002-000-000-000-000\",\n residential_project: \"048-005-003-000-000-000-000\",\n hotlines: \"048-006-000-000-000-000-000\",\n national_hotline: \"048-006-001-000-000-000-000\",\n local_other_hotline: \"048-006-002-000-000-000-000\",\n hotline: \"048-006-003-000-000-000-000\",\n justice_protective_systems: \"048-007-000-000-000-000-000\",\n child_welfare_cps: \"048-007-001-000-000-000-000\",\n juvenile_justice: \"048-007-002-000-000-000-000\",\n law_enforcement: \"048-007-003-000-000-000-000\",\n local_law_enforcement: \"048-007-003-001-000-000-000\",\n state_law_enforcement: \"048-007-003-002-000-000-000\",\n federal_law_enforcement: \"048-007-003-003-000-000-000\",\n tribal_law_enforcement: \"048-007-003-004-000-000-000\",\n other_law_enforcement: \"048-007-003-005-000-000-000\",\n courts_prosecution: \"048-007-004-000-000-000-000\",\n correction_probation: \"048-007-005-000-000-000-000\",\n adult_protective_services: \"048-007-006-000-000-000-000\",\n health_behavioral_health: \"048-008-000-000-000-000-000\",\n inpatient_psychiatric_facility: \"048-008-001-000-000-000-000\",\n healthcare_provider: \"048-008-002-000-000-000-000\",\n education: \"048-009-000-000-000-000-000\",\n school_academic_institution: \"048-009-001-000-000-000-000\",\n victim_community_service_providers: \"048-010-000-000-000-000-000\",\n child_advocacy_center: \"048-010-001-000-000-000-000\",\n victim_service_provider: \"048-010-002-000-000-000-000\",\n community_based_service_provider: \"048-010-003-000-000-000-000\",\n legal_services_provider: \"048-010-004-000-000-000-000\",\n coordination_governance: \"048-011-000-000-000-000-000\",\n mdt: \"048-011-001-000-000-000-000\",\n coalition: \"048-011-002-000-000-000-000\",\n internal: \"048-012-000-000-000-000-000\",\n own_agency_internal: \"048-012-001-000-000-000-000\",\n other_entity: \"048-013-000-000-000-000-000\",\n employer: \"048-013-001-000-000-000-000\",\n benefits_public_assistance_office: \"048-013-002-000-000-000-000\",\n other_organization: \"048-013-003-000-000-000-000\",\n} as const;\n\nexport type ReferralEntityCategoryKey = keyof typeof ReferralEntityCategoryKeys;\n\n/**\n * Key → positional code map for the `income_benefits_sources` CVC domain.\n *\n * Domain: `income_benefits_sources` · Version: 1.1.0 · Entries: 41\n */\nexport const IncomeBenefitsSourcesKeys = {\n missingness_root: \"171-000-000-000-000-000-000\",\n unknown: \"171-000-000-000-000-000-001\",\n anonymous: \"171-000-000-000-000-000-002\",\n data_not_collected: \"171-000-000-000-000-000-003\",\n prefer_not_to_answer: \"171-000-000-000-000-000-004\",\n earned_income: \"171-001-000-000-000-000-000\",\n employment: \"171-001-001-000-000-000-000\",\n informal_income: \"171-001-002-000-000-000-000\",\n cash_benefit: \"171-002-000-000-000-000-000\",\n unemployment_insurance: \"171-002-001-000-000-000-000\",\n supplemental_security_income: \"171-002-002-000-000-000-000\",\n social_security_disability_insurance: \"171-002-003-000-000-000-000\",\n va_service_connected_disability: \"171-002-004-000-000-000-000\",\n va_non_service_connected_pension: \"171-002-005-000-000-000-000\",\n private_disability_insurance: \"171-002-006-000-000-000-000\",\n workers_compensation: \"171-002-007-000-000-000-000\",\n tanf: \"171-002-008-000-000-000-000\",\n general_assistance: \"171-002-009-000-000-000-000\",\n social_security_retirement: \"171-002-010-000-000-000-000\",\n pension_or_retirement_from_former_job: \"171-002-011-000-000-000-000\",\n social_security_generic: \"171-002-012-000-000-000-000\",\n va_benefits_generic: \"171-002-013-000-000-000-000\",\n in_kind_benefit: \"171-003-000-000-000-000-000\",\n snap: \"171-003-001-000-000-000-000\",\n wic: \"171-003-002-000-000-000-000\",\n tanf_child_care: \"171-003-003-000-000-000-000\",\n tanf_transportation: \"171-003-004-000-000-000-000\",\n tanf_other_funded_services: \"171-003-005-000-000-000-000\",\n medicaid: \"171-003-006-000-000-000-000\",\n medicare: \"171-003-007-000-000-000-000\",\n housing_assistance: \"171-003-008-000-000-000-000\",\n childcare_subsidy: \"171-003-009-000-000-000-000\",\n transfer_support: \"171-004-000-000-000-000-000\",\n child_support: \"171-004-001-000-000-000-000\",\n alimony_spousal_support: \"171-004-002-000-000-000-000\",\n family_friend_support: \"171-004-003-000-000-000-000\",\n other_unspecified: \"171-005-000-000-000-000-000\",\n other_income: \"171-005-001-000-000-000-000\",\n other_benefit: \"171-005-002-000-000-000-000\",\n education_stipend: \"171-005-003-000-000-000-000\",\n victim_compensation: \"171-006-000-000-000-000-000\",\n} as const;\n\nexport type IncomeBenefitsSourcesKey = keyof typeof IncomeBenefitsSourcesKeys;\n\n/**\n * Key → positional code map for the `enrollment_application_status` CVC domain.\n *\n * Domain: `enrollment_application_status` · Version: 1.0.0 · Entries: 12\n */\nexport const EnrollmentApplicationStatusKeys = {\n missingness_root: \"175-000-000-000-000-000-000\",\n unknown: \"175-000-000-000-000-000-001\",\n anonymous: \"175-000-000-000-000-000-002\",\n data_not_collected: \"175-000-000-000-000-000-003\",\n approved: \"175-001-000-000-000-000-000\",\n applied: \"175-002-000-000-000-000-000\",\n not_applied: \"175-003-000-000-000-000-000\",\n pending: \"175-004-000-000-000-000-000\",\n active: \"175-005-000-000-000-000-000\",\n denied: \"175-006-000-000-000-000-000\",\n closed: \"175-007-000-000-000-000-000\",\n expired: \"175-008-000-000-000-000-000\",\n} as const;\n\nexport type EnrollmentApplicationStatusKey = keyof typeof EnrollmentApplicationStatusKeys;\n\n/**\n * Key → positional code map for the `administering_jurisdiction` CVC domain.\n *\n * Domain: `administering_jurisdiction` · Version: 1.0.0 · Entries: 10\n */\nexport const AdministeringJurisdictionKeys = {\n missingness_root: \"177-000-000-000-000-000-000\",\n unknown: \"177-000-000-000-000-000-001\",\n anonymous: \"177-000-000-000-000-000-002\",\n data_not_collected: \"177-000-000-000-000-000-003\",\n federal: \"177-001-000-000-000-000-000\",\n state: \"177-002-000-000-000-000-000\",\n county: \"177-003-000-000-000-000-000\",\n city: \"177-004-000-000-000-000-000\",\n tribal: \"177-005-000-000-000-000-000\",\n territory: \"177-006-000-000-000-000-000\",\n} as const;\n\nexport type AdministeringJurisdictionKey = keyof typeof AdministeringJurisdictionKeys;\n\n/**\n * Key → positional code map for the `frequency_cadence` CVC domain.\n *\n * Domain: `frequency_cadence` · Version: 1.0.0 · Entries: 11\n */\nexport const FrequencyCadenceKeys = {\n missingness_root: \"176-000-000-000-000-000-000\",\n unknown: \"176-000-000-000-000-000-001\",\n anonymous: \"176-000-000-000-000-000-002\",\n data_not_collected: \"176-000-000-000-000-000-003\",\n daily: \"176-001-000-000-000-000-000\",\n weekly: \"176-002-000-000-000-000-000\",\n biweekly: \"176-003-000-000-000-000-000\",\n monthly: \"176-004-000-000-000-000-000\",\n quarterly: \"176-005-000-000-000-000-000\",\n annual: \"176-006-000-000-000-000-000\",\n one_time: \"176-007-000-000-000-000-000\",\n} as const;\n\nexport type FrequencyCadenceKey = keyof typeof FrequencyCadenceKeys;\n\n/**\n * Key → positional code map for the `inference_type` CVC domain.\n *\n * Domain: `inference_type` · Version: 1.0.0 · Entries: 7\n */\nexport const InferenceTypeKeys = {\n missingness_root: \"142-000-000-000-000-000-000\",\n unknown: \"142-000-000-000-000-000-001\",\n anonymous: \"142-000-000-000-000-000-002\",\n data_not_collected: \"142-000-000-000-000-000-003\",\n manual: \"142-001-000-000-000-000-000\",\n rules: \"142-002-000-000-000-000-000\",\n model: \"142-003-000-000-000-000-000\",\n} as const;\n\nexport type InferenceTypeKey = keyof typeof InferenceTypeKeys;\n\n/**\n * Key → positional code map for the `source_category` CVC domain.\n *\n * Domain: `source_category` · Version: 1.1.0 · Entries: 9\n */\nexport const SourceCategoryKeys = {\n missingness_root: \"140-000-000-000-000-000-000\",\n unknown: \"140-000-000-000-000-000-001\",\n anonymous: \"140-000-000-000-000-000-002\",\n data_not_collected: \"140-000-000-000-000-000-003\",\n human: \"140-001-000-000-000-000-000\",\n institutional_record: \"140-002-000-000-000-000-000\",\n legal_evidentiary: \"140-003-000-000-000-000-000\",\n machine: \"140-004-000-000-000-000-000\",\n open_source: \"140-005-000-000-000-000-000\",\n} as const;\n\nexport type SourceCategoryKey = keyof typeof SourceCategoryKeys;\n\n/**\n * Key → positional code map for the `source_subtype` CVC domain.\n *\n * Domain: `source_subtype` · Version: 1.2.0 · Entries: 39\n */\nexport const SourceSubtypeKeys = {\n missingness_root: \"141-000-000-000-000-000-000\",\n unknown: \"141-000-000-000-000-000-001\",\n anonymous: \"141-000-000-000-000-000-002\",\n data_not_collected: \"141-000-000-000-000-000-003\",\n ads_profile_website: \"141-001-000-000-000-000-000\",\n aggregation_output: \"141-002-000-000-000-000-000\",\n benefits_record: \"141-003-000-000-000-000-000\",\n charge_document: \"141-004-000-000-000-000-000\",\n child_welfare_record: \"141-005-000-000-000-000-000\",\n conviction_record: \"141-006-000-000-000-000-000\",\n corrections_record: \"141-007-000-000-000-000-000\",\n court_record: \"141-008-000-000-000-000-000\",\n employment_hr_record: \"141-009-000-000-000-000-000\",\n forensic_medical_exam: \"141-010-000-000-000-000-000\",\n immigration_record: \"141-011-000-000-000-000-000\",\n law_enforcement_assessment: \"141-012-000-000-000-000-000\",\n medical_record: \"141-013-000-000-000-000-000\",\n model_output: \"141-014-000-000-000-000-000\",\n news_media: \"141-015-000-000-000-000-000\",\n official_id_document: \"141-016-000-000-000-000-000\",\n parser_extraction: \"141-017-000-000-000-000-000\",\n partner_agency_case_note: \"141-018-000-000-000-000-000\",\n public_registry: \"141-019-000-000-000-000-000\",\n reviews_forums_comments: \"141-020-000-000-000-000-000\",\n rules_engine: \"141-021-000-000-000-000-000\",\n school_record: \"141-022-000-000-000-000-000\",\n search_warrant_return: \"141-023-000-000-000-000-000\",\n service_provider_assessment: \"141-024-000-000-000-000-000\",\n service_provider_case_note: \"141-025-000-000-000-000-000\",\n shelter_program_record: \"141-026-000-000-000-000-000\",\n social_media: \"141-027-000-000-000-000-000\",\n staff_observation: \"141-028-000-000-000-000-000\",\n system_import: \"141-029-000-000-000-000-000\",\n third_party_report: \"141-030-000-000-000-000-000\",\n victim_disclosure: \"141-031-000-000-000-000-000\",\n advocate_capture: \"141-032-000-000-000-000-000\",\n advocate_assessment: \"141-033-000-000-000-000-000\",\n child_welfare_episode_edit: \"141-034-000-000-000-000-000\",\n juvenile_justice_episode_edit: \"141-035-000-000-000-000-000\",\n} as const;\n\nexport type SourceSubtypeKey = keyof typeof SourceSubtypeKeys;\n\n/**\n * Key → positional code map for the `support_strength` CVC domain.\n *\n * Domain: `support_strength` · Version: 1.0.0 · Entries: 11\n */\nexport const SupportStrengthKeys = {\n missingness_root: \"139-000-000-000-000-000-000\",\n unknown: \"139-000-000-000-000-000-001\",\n anonymous: \"139-000-000-000-000-000-002\",\n data_not_collected: \"139-000-000-000-000-000-003\",\n adjudicated: \"139-001-000-000-000-000-000\",\n allegation: \"139-002-000-000-000-000-000\",\n corroborated: \"139-003-000-000-000-000-000\",\n minimally_supported: \"139-004-000-000-000-000-000\",\n multi_source_corroborated: \"139-005-000-000-000-000-000\",\n official_record_supported: \"139-006-000-000-000-000-000\",\n strongly_supported: \"139-007-000-000-000-000-000\",\n} as const;\n\nexport type SupportStrengthKey = keyof typeof SupportStrengthKeys;\n\n/**\n * Key → positional code map for the `determination_level` CVC domain.\n *\n * Domain: `determination_level` · Version: 1.0.0 · Entries: 9\n */\nexport const DeterminationLevelKeys = {\n missingness_root: \"138-000-000-000-000-000-000\",\n unknown: \"138-000-000-000-000-000-001\",\n anonymous: \"138-000-000-000-000-000-002\",\n data_not_collected: \"138-000-000-000-000-000-003\",\n disclosed: \"138-001-000-000-000-000-000\",\n estimated: \"138-002-000-000-000-000-000\",\n reported: \"138-003-000-000-000-000-000\",\n suspected: \"138-004-000-000-000-000-000\",\n verified: \"138-005-000-000-000-000-000\",\n} as const;\n\nexport type DeterminationLevelKey = keyof typeof DeterminationLevelKeys;\n\n/**\n * Key → positional code map for the `role_context` CVC domain.\n *\n * Domain: `role_context` · Version: 1.0.0 · Entries: 7\n */\nexport const RoleContextKeys = {\n missingness_root: \"160-000-000-000-000-000-000\",\n unknown: \"160-000-000-000-000-000-001\",\n anonymous: \"160-000-000-000-000-000-002\",\n data_not_collected: \"160-000-000-000-000-000-003\",\n both: \"160-001-000-000-000-000-000\",\n offender: \"160-002-000-000-000-000-000\",\n victim: \"160-003-000-000-000-000-000\",\n} as const;\n\nexport type RoleContextKey = keyof typeof RoleContextKeys;\n\n/**\n * Key → positional code map for the `time_scope` CVC domain.\n *\n * Domain: `time_scope` · Version: 1.0.0 · Entries: 6\n */\nexport const TimeScopeKeys = {\n missingness_root: \"174-000-000-000-000-000-000\",\n unknown: \"174-000-000-000-000-000-001\",\n anonymous: \"174-000-000-000-000-000-002\",\n data_not_collected: \"174-000-000-000-000-000-003\",\n current: \"174-001-000-000-000-000-000\",\n prior: \"174-002-000-000-000-000-000\",\n} as const;\n\nexport type TimeScopeKey = keyof typeof TimeScopeKeys;\n\n/**\n * Key → positional code map for the `verification_method` CVC domain.\n *\n * Domain: `verification_method` · Version: 1.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.\n *\n * Domain: `funder` · Version: 1.0.0 · Entries: 12\n */\nexport const FunderKeys = {\n missingness_root: \"226-000-000-000-000-000-000\",\n unknown: \"226-000-000-000-000-000-001\",\n anonymous: \"226-000-000-000-000-000-002\",\n data_not_collected: \"226-000-000-000-000-000-003\",\n hud_coc: \"226-001-000-000-000-000-000\",\n hud_esg: \"226-002-000-000-000-000-000\",\n hhs_rhy: \"226-003-000-000-000-000-000\",\n hhs_path: \"226-004-000-000-000-000-000\",\n ovc_ecm: \"226-005-000-000-000-000-000\",\n voca: \"226-006-000-000-000-000-000\",\n fvpsa: \"226-007-000-000-000-000-000\",\n other: \"226-008-000-000-000-000-000\",\n} as const;\n\nexport type FunderKey = keyof typeof FunderKeys;\n\n/**\n * Key → positional code map for the `accommodation_type` CVC domain.\n *\n * Domain: `accommodation_type` · Version: 1.0.0 · Entries: 10\n */\nexport const AccommodationTypeKeys = {\n missingness_root: \"900-000-000-000-000-000-000\",\n unknown: \"900-000-000-000-000-000-001\",\n anonymous: \"900-000-000-000-000-000-002\",\n data_not_collected: \"900-000-000-000-000-000-003\",\n sensory: \"900-001-000-000-000-000-000\",\n mobility: \"900-002-000-000-000-000-000\",\n communication_cognitive: \"900-003-000-000-000-000-000\",\n medical_dietary: \"900-004-000-000-000-000-000\",\n service_animal: \"900-005-000-000-000-000-000\",\n other: \"900-006-000-000-000-000-000\",\n} as const;\n\nexport type AccommodationTypeKey = keyof typeof AccommodationTypeKeys;\n\n/**\n * Key → positional code map for the `action_step_completion_status` CVC domain.\n *\n * Domain: `action_step_completion_status` · Version: 1.0.0 · Entries: 8\n */\nexport const ActionStepCompletionStatusKeys = {\n missingness_root: \"901-000-000-000-000-000-000\",\n unknown: \"901-000-000-000-000-000-001\",\n anonymous: \"901-000-000-000-000-000-002\",\n data_not_collected: \"901-000-000-000-000-000-003\",\n yes: \"901-001-000-000-000-000-000\",\n no: \"901-002-000-000-000-000-000\",\n unknown_na: \"901-003-000-000-000-000-000\",\n unanswered: \"901-004-000-000-000-000-000\",\n} as const;\n\nexport type ActionStepCompletionStatusKey = keyof typeof ActionStepCompletionStatusKeys;\n\n/**\n * Key → positional code map for the `action_step_type` CVC domain.\n *\n * Domain: `action_step_type` · Version: 1.0.0 · Entries: 6\n */\nexport const ActionStepTypeKeys = {\n missingness_root: \"902-000-000-000-000-000-000\",\n unknown: \"902-000-000-000-000-000-001\",\n anonymous: \"902-000-000-000-000-000-002\",\n data_not_collected: \"902-000-000-000-000-000-003\",\n client_action: \"902-001-000-000-000-000-000\",\n advocate_action: \"902-002-000-000-000-000-000\",\n} as const;\n\nexport type ActionStepTypeKey = keyof typeof ActionStepTypeKeys;\n\n/**\n * Key → positional code map for the `announcement_audience_scope` CVC domain.\n *\n * Domain: `announcement_audience_scope` · Version: 1.0.0 · Entries: 7\n */\nexport const AnnouncementAudienceScopeKeys = {\n missingness_root: \"903-000-000-000-000-000-000\",\n unknown: \"903-000-000-000-000-000-001\",\n anonymous: \"903-000-000-000-000-000-002\",\n data_not_collected: \"903-000-000-000-000-000-003\",\n all: \"903-001-000-000-000-000-000\",\n role: \"903-002-000-000-000-000-000\",\n working_group: \"903-003-000-000-000-000-000\",\n} as const;\n\nexport type AnnouncementAudienceScopeKey = keyof typeof AnnouncementAudienceScopeKeys;\n\n/**\n * Key → positional code map for the `announcement_response_type` CVC domain.\n *\n * Domain: `announcement_response_type` · Version: 1.0.0 · Entries: 8\n */\nexport const AnnouncementResponseTypeKeys = {\n missingness_root: \"904-000-000-000-000-000-000\",\n unknown: \"904-000-000-000-000-000-001\",\n anonymous: \"904-000-000-000-000-000-002\",\n data_not_collected: \"904-000-000-000-000-000-003\",\n none: \"904-001-000-000-000-000-000\",\n acknowledge: \"904-002-000-000-000-000-000\",\n rsvp: \"904-003-000-000-000-000-000\",\n register: \"904-004-000-000-000-000-000\",\n} as const;\n\nexport type AnnouncementResponseTypeKey = keyof typeof AnnouncementResponseTypeKeys;\n\n/**\n * Key → positional code map for the `basis_quick_picks` CVC domain.\n *\n * Domain: `basis_quick_picks` · Version: 1.0.0 · Entries: 11\n */\nexport const BasisQuickPicksKeys = {\n missingness_root: \"905-000-000-000-000-000-000\",\n unknown: \"905-000-000-000-000-000-001\",\n anonymous: \"905-000-000-000-000-000-002\",\n data_not_collected: \"905-000-000-000-000-000-003\",\n client_disclosed_directly: \"905-001-000-000-000-000-000\",\n third_party_reported: \"905-002-000-000-000-000-000\",\n staff_observed: \"905-003-000-000-000-000-000\",\n provider_assessed: \"905-004-000-000-000-000-000\",\n record_document_reviewed: \"905-005-000-000-000-000-000\",\n public_source_online: \"905-006-000-000-000-000-000\",\n system_imported_machine_derived: \"905-007-000-000-000-000-000\",\n} as const;\n\nexport type BasisQuickPicksKey = keyof typeof BasisQuickPicksKeys;\n\n/**\n * Key → positional code map for the `check_in_activity` CVC domain.\n *\n * Domain: `check_in_activity` · Version: 1.0.0 · Entries: 24\n */\nexport const CheckInActivityKeys = {\n missingness_root: \"906-000-000-000-000-000-000\",\n unknown: \"906-000-000-000-000-000-001\",\n anonymous: \"906-000-000-000-000-000-002\",\n data_not_collected: \"906-000-000-000-000-000-003\",\n update_hope_plan: \"906-001-000-000-000-000-000\",\n review_update_safety_plan: \"906-002-000-000-000-000-000\",\n update_needs_assessment: \"906-003-000-000-000-000-000\",\n counseling_check_in: \"906-004-000-000-000-000-000\",\n prss_wellness_check_in: \"906-005-000-000-000-000-000\",\n medical_check_in: \"906-006-000-000-000-000-000\",\n housing_exit_plan_check_in: \"906-007-000-000-000-000-000\",\n offer_education_dv_sa_ht_stk: \"906-008-000-000-000-000-000\",\n schedule_next_meeting: \"906-009-000-000-000-000-000\",\n room_check: \"906-010-000-000-000-000-000\",\n pet_kennel_check: \"906-011-000-000-000-000-000\",\n boutique_essential_closet_visit: \"906-012-000-000-000-000-000\",\n transportation_request: \"906-013-000-000-000-000-000\",\n needs_financial_request: \"906-014-000-000-000-000-000\",\n review_confidentiality: \"906-015-000-000-000-000-000\",\n review_do_no_harm_agreement: \"906-016-000-000-000-000-000\",\n educate_guest_staff_rights: \"906-017-000-000-000-000-000\",\n complete_hope_scale: \"906-018-000-000-000-000-000\",\n set_soft_target_date: \"906-019-000-000-000-000-000\",\n other_activity: \"906-020-000-000-000-000-000\",\n} as const;\n\nexport type CheckInActivityKey = keyof typeof CheckInActivityKeys;\n\n/**\n * Key → positional code map for the `check_in_phase` CVC domain.\n *\n * Domain: `check_in_phase` · Version: 1.1.0 · Entries: 17\n */\nexport const CheckInPhaseKeys = {\n missingness_root: \"907-000-000-000-000-000-000\",\n unknown: \"907-000-000-000-000-000-001\",\n anonymous: \"907-000-000-000-000-000-002\",\n data_not_collected: \"907-000-000-000-000-000-003\",\n welcome_week: \"907-001-000-000-000-000-000\",\n phase_1_30d: \"907-002-000-000-000-000-000\",\n phase_2_60d: \"907-003-000-000-000-000-000\",\n phase_3_90d: \"907-004-000-000-000-000-000\",\n phase_4_120d_plus: \"907-005-000-000-000-000-000\",\n initial_intake: \"907-006-000-000-000-000-000\",\n routine_interval: \"907-007-000-000-000-000-000\",\n milestone_review: \"907-008-000-000-000-000-000\",\n crisis_response_followup: \"907-009-000-000-000-000-000\",\n pre_exit_review: \"907-010-000-000-000-000-000\",\n post_exit_followup: \"907-011-000-000-000-000-000\",\n phase_2_followup: \"907-012-000-000-000-000-000\",\n phase_3_followup: \"907-013-000-000-000-000-000\",\n} as const;\n\nexport type CheckInPhaseKey = keyof typeof CheckInPhaseKeys;\n\n/**\n * Key → positional code map for the `child_behavioral_concerns` CVC domain.\n *\n * Domain: `child_behavioral_concerns` · Version: 1.0.0 · Entries: 16\n */\nexport const ChildBehavioralConcernsKeys = {\n missingness_root: \"908-000-000-000-000-000-000\",\n unknown: \"908-000-000-000-000-000-001\",\n anonymous: \"908-000-000-000-000-000-002\",\n data_not_collected: \"908-000-000-000-000-000-003\",\n theft: \"908-001-000-000-000-000-000\",\n difficulty_making_friends: \"908-002-000-000-000-000-000\",\n withdrawn: \"908-003-000-000-000-000-000\",\n bed_wetting: \"908-004-000-000-000-000-000\",\n harming_animals: \"908-005-000-000-000-000-000\",\n fighting: \"908-006-000-000-000-000-000\",\n bullying_others: \"908-007-000-000-000-000-000\",\n being_bullied: \"908-008-000-000-000-000-000\",\n sexual_acting_out: \"908-009-000-000-000-000-000\",\n substance_use: \"908-010-000-000-000-000-000\",\n frequent_moves: \"908-011-000-000-000-000-000\",\n other: \"908-012-000-000-000-000-000\",\n} as const;\n\nexport type ChildBehavioralConcernsKey = keyof typeof ChildBehavioralConcernsKeys;\n\n/**\n * Key → positional code map for the `child_custody_arrangement` CVC domain.\n *\n * Domain: `child_custody_arrangement` · Version: 1.0.0 · Entries: 19\n */\nexport const ChildCustodyArrangementKeys = {\n missingness_root: \"910-000-000-000-000-000-000\",\n unknown: \"910-000-000-000-000-000-001\",\n anonymous: \"910-000-000-000-000-000-002\",\n data_not_collected: \"910-000-000-000-000-000-003\",\n court_ordered_sole_client: \"910-001-000-000-000-000-000\",\n court_ordered_sole_other: \"910-002-000-000-000-000-000\",\n court_ordered_shared: \"910-003-000-000-000-000-000\",\n voluntary_informal_client: \"910-004-000-000-000-000-000\",\n voluntary_informal_other: \"910-005-000-000-000-000-000\",\n shared_informal: \"910-006-000-000-000-000-000\",\n rights_surrendered_voluntary: \"910-007-000-000-000-000-000\",\n rights_terminated_court: \"910-008-000-000-000-000-000\",\n kinship_care: \"910-009-000-000-000-000-000\",\n foster_care: \"910-010-000-000-000-000-000\",\n adopted_out: \"910-011-000-000-000-000-000\",\n pending_legal_process: \"910-012-000-000-000-000-000\",\n unknown_status: \"910-013-000-000-000-000-000\",\n not_applicable: \"910-014-000-000-000-000-000\",\n other: \"910-015-000-000-000-000-000\",\n} as const;\n\nexport type ChildCustodyArrangementKey = keyof typeof ChildCustodyArrangementKeys;\n\n/**\n * Key → positional code map for the `da_incident_archive_reason` CVC domain.\n *\n * Domain: `da_incident_archive_reason` · Version: 1.0.0 · Entries: 8\n */\nexport const DaIncidentArchiveReasonKeys = {\n missingness_root: \"911-000-000-000-000-000-000\",\n unknown: \"911-000-000-000-000-000-001\",\n anonymous: \"911-000-000-000-000-000-002\",\n data_not_collected: \"911-000-000-000-000-000-003\",\n inaccurate: \"911-001-000-000-000-000-000\",\n duplicate: \"911-002-000-000-000-000-000\",\n captured_in_error: \"911-003-000-000-000-000-000\",\n survivor_retracted: \"911-004-000-000-000-000-000\",\n} as const;\n\nexport type DaIncidentArchiveReasonKey = keyof typeof DaIncidentArchiveReasonKeys;\n\n/**\n * Key → positional code map for the `da_incident_confidence` CVC domain.\n *\n * Domain: `da_incident_confidence` · Version: 1.0.0 · Entries: 7\n */\nexport const DaIncidentConfidenceKeys = {\n missingness_root: \"912-000-000-000-000-000-000\",\n unknown: \"912-000-000-000-000-000-001\",\n anonymous: \"912-000-000-000-000-000-002\",\n data_not_collected: \"912-000-000-000-000-000-003\",\n exact: \"912-001-000-000-000-000-000\",\n approximate: \"912-002-000-000-000-000-000\",\n uncertain: \"912-003-000-000-000-000-000\",\n} as const;\n\nexport type DaIncidentConfidenceKey = keyof typeof DaIncidentConfidenceKeys;\n\n/**\n * Key → positional code map for the `da_incident_day_approx` CVC domain.\n *\n * Domain: `da_incident_day_approx` · Version: 1.0.0 · Entries: 8\n */\nexport const DaIncidentDayApproxKeys = {\n missingness_root: \"913-000-000-000-000-000-000\",\n unknown: \"913-000-000-000-000-000-001\",\n anonymous: \"913-000-000-000-000-000-002\",\n data_not_collected: \"913-000-000-000-000-000-003\",\n early: \"913-001-000-000-000-000-000\",\n mid: \"913-002-000-000-000-000-000\",\n late: \"913-003-000-000-000-000-000\",\n unspecified: \"913-004-000-000-000-000-000\",\n} as const;\n\nexport type DaIncidentDayApproxKey = keyof typeof DaIncidentDayApproxKeys;\n\n/**\n * Key → positional code map for the `disability_subtype` CVC domain.\n *\n * Domain: `disability_subtype` · Version: 1.0.0 · Entries: 12\n */\nexport const DisabilitySubtypeKeys = {\n missingness_root: \"914-000-000-000-000-000-000\",\n unknown: \"914-000-000-000-000-000-001\",\n anonymous: \"914-000-000-000-000-000-002\",\n data_not_collected: \"914-000-000-000-000-000-003\",\n vision: \"914-001-000-000-000-000-000\",\n hearing: \"914-002-000-000-000-000-000\",\n speech: \"914-003-000-000-000-000-000\",\n cognitive_developmental: \"914-004-000-000-000-000-000\",\n physical: \"914-005-000-000-000-000-000\",\n mental: \"914-006-000-000-000-000-000\",\n other: \"914-007-000-000-000-000-000\",\n exists_but_type_unknown: \"914-008-000-000-000-000-000\",\n} as const;\n\nexport type DisabilitySubtypeKey = keyof typeof DisabilitySubtypeKeys;\n\n/**\n * Key → positional code map for the `discretion_level` CVC domain.\n *\n * Domain: `discretion_level` · Version: 1.0.0 · Entries: 8\n */\nexport const DiscretionLevelKeys = {\n missingness_root: \"915-000-000-000-000-000-000\",\n unknown: \"915-000-000-000-000-000-001\",\n anonymous: \"915-000-000-000-000-000-002\",\n data_not_collected: \"915-000-000-000-000-000-003\",\n full_disclosure: \"915-001-000-000-000-000-000\",\n discrete_message: \"915-002-000-000-000-000-000\",\n vsp_only_no_agency_name: \"915-003-000-000-000-000-000\",\n code_word_verification_required: \"915-004-000-000-000-000-000\",\n} as const;\n\nexport type DiscretionLevelKey = keyof typeof DiscretionLevelKeys;\n\n/**\n * Key → positional code map for the `emergency_contact_call_reason` CVC domain.\n *\n * Domain: `emergency_contact_call_reason` · Version: 1.0.0 · Entries: 10\n */\nexport const EmergencyContactCallReasonKeys = {\n missingness_root: \"916-000-000-000-000-000-000\",\n unknown: \"916-000-000-000-000-000-001\",\n anonymous: \"916-000-000-000-000-000-002\",\n data_not_collected: \"916-000-000-000-000-000-003\",\n medical_incapacity: \"916-001-000-000-000-000-000\",\n safety_concern_survivor_missing: \"916-002-000-000-000-000-000\",\n child_emergency_client_unreachable: \"916-003-000-000-000-000-000\",\n logistics_children_pet_care_needed: \"916-004-000-000-000-000-000\",\n logistics_belongings_or_mail_pickup: \"916-005-000-000-000-000-000\",\n other: \"916-006-000-000-000-000-000\",\n} as const;\n\nexport type EmergencyContactCallReasonKey = keyof typeof EmergencyContactCallReasonKeys;\n\n/**\n * Key → positional code map for the `emergency_contact_permissions` CVC domain.\n *\n * Domain: `emergency_contact_permissions` · Version: 1.0.0 · Entries: 12\n */\nexport const EmergencyContactPermissionsKeys = {\n missingness_root: \"917-000-000-000-000-000-000\",\n unknown: \"917-000-000-000-000-000-001\",\n anonymous: \"917-000-000-000-000-000-002\",\n data_not_collected: \"917-000-000-000-000-000-003\",\n may_be_told_of_status: \"917-001-000-000-000-000-000\",\n may_receive_location: \"917-002-000-000-000-000-000\",\n may_pickup_children: \"917-003-000-000-000-000-000\",\n may_pickup_pets: \"917-004-000-000-000-000-000\",\n may_pickup_mail: \"917-005-000-000-000-000-000\",\n may_pickup_belongings: \"917-006-000-000-000-000-000\",\n may_act_on_clients_behalf_general: \"917-007-000-000-000-000-000\",\n may_make_medical_decisions: \"917-008-000-000-000-000-000\",\n} as const;\n\nexport type EmergencyContactPermissionsKey = keyof typeof EmergencyContactPermissionsKeys;\n\n/**\n * Key → positional code map for the `emergency_exit_cascade` CVC domain.\n *\n * Domain: `emergency_exit_cascade` · Version: 1.0.0 · Entries: 8\n */\nexport const EmergencyExitCascadeKeys = {\n missingness_root: \"918-000-000-000-000-000-000\",\n unknown: \"918-000-000-000-000-000-001\",\n anonymous: \"918-000-000-000-000-000-002\",\n data_not_collected: \"918-000-000-000-000-000-003\",\n safety_plan_updated: \"918-001-000-000-000-000-000\",\n emergency_contacts_notified: \"918-002-000-000-000-000-000\",\n destination_confidential: \"918-003-000-000-000-000-000\",\n risk_algo_reevaluated: \"918-004-000-000-000-000-000\",\n} as const;\n\nexport type EmergencyExitCascadeKey = keyof typeof EmergencyExitCascadeKeys;\n\n/**\n * Key → positional code map for the `exit_process_checklist_item` CVC domain.\n *\n * Domain: `exit_process_checklist_item` · Version: 1.0.0 · Entries: 15\n */\nexport const ExitProcessChecklistItemKeys = {\n missingness_root: \"919-000-000-000-000-000-000\",\n unknown: \"919-000-000-000-000-000-001\",\n anonymous: \"919-000-000-000-000-000-002\",\n data_not_collected: \"919-000-000-000-000-000-003\",\n discuss_exit_reasons: \"919-001-000-000-000-000-000\",\n locks_returned: \"919-002-000-000-000-000-000\",\n evaluation_form_sent: \"919-003-000-000-000-000-000\",\n forwarding_address_requested: \"919-004-000-000-000-000-000\",\n spiritual_care_offered: \"919-005-000-000-000-000-000\",\n schools_notified: \"919-006-000-000-000-000-000\",\n counselor_notified: \"919-007-000-000-000-000-000\",\n whiteboard_locker_erased: \"919-008-000-000-000-000-000\",\n team_discharge_informed: \"919-009-000-000-000-000-000\",\n room_turnover_form_completed: \"919-010-000-000-000-000-000\",\n other: \"919-011-000-000-000-000-000\",\n} as const;\n\nexport type ExitProcessChecklistItemKey = keyof typeof ExitProcessChecklistItemKeys;\n\n/**\n * Key → positional code map for the `facial_hair` CVC domain.\n *\n * Domain: `facial_hair` · Version: 1.0.0 · Entries: 6\n */\nexport const FacialHairKeys = {\n missingness_root: \"920-000-000-000-000-000-000\",\n unknown: \"920-000-000-000-000-000-001\",\n anonymous: \"920-000-000-000-000-000-002\",\n data_not_collected: \"920-000-000-000-000-000-003\",\n yes: \"920-001-000-000-000-000-000\",\n no: \"920-002-000-000-000-000-000\",\n} as const;\n\nexport type FacialHairKey = keyof typeof FacialHairKeys;\n\n/**\n * Key → positional code map for the `goal_category` CVC domain.\n *\n * Domain: `goal_category` · Version: 1.0.0 · Entries: 16\n */\nexport const GoalCategoryKeys = {\n missingness_root: \"921-000-000-000-000-000-000\",\n unknown: \"921-000-000-000-000-000-001\",\n anonymous: \"921-000-000-000-000-000-002\",\n data_not_collected: \"921-000-000-000-000-000-003\",\n basic_needs: \"921-001-000-000-000-000-000\",\n housing: \"921-002-000-000-000-000-000\",\n social_support_community_engagement: \"921-003-000-000-000-000-000\",\n transportation: \"921-004-000-000-000-000-000\",\n legal: \"921-005-000-000-000-000-000\",\n healthcare: \"921-006-000-000-000-000-000\",\n financial_and_employment: \"921-007-000-000-000-000-000\",\n informal_education_life_skills: \"921-008-000-000-000-000-000\",\n dependents: \"921-009-000-000-000-000-000\",\n case_coordination: \"921-010-000-000-000-000-000\",\n other_services: \"921-011-000-000-000-000-000\",\n safety: \"921-012-000-000-000-000-000\",\n} as const;\n\nexport type GoalCategoryKey = keyof typeof GoalCategoryKeys;\n\n/**\n * Key → positional code map for the `goal_priority` CVC domain.\n *\n * Domain: `goal_priority` · Version: 1.0.0 · Entries: 7\n */\nexport const GoalPriorityKeys = {\n missingness_root: \"922-000-000-000-000-000-000\",\n unknown: \"922-000-000-000-000-000-001\",\n anonymous: \"922-000-000-000-000-000-002\",\n data_not_collected: \"922-000-000-000-000-000-003\",\n high: \"922-001-000-000-000-000-000\",\n medium: \"922-002-000-000-000-000-000\",\n low: \"922-003-000-000-000-000-000\",\n} as const;\n\nexport type GoalPriorityKey = keyof typeof GoalPriorityKeys;\n\n/**\n * Key → positional code map for the `goal_status` CVC domain.\n *\n * Domain: `goal_status` · Version: 1.0.0 · Entries: 9\n */\nexport const GoalStatusKeys = {\n missingness_root: \"923-000-000-000-000-000-000\",\n unknown: \"923-000-000-000-000-000-001\",\n anonymous: \"923-000-000-000-000-000-002\",\n data_not_collected: \"923-000-000-000-000-000-003\",\n drafted: \"923-001-000-000-000-000-000\",\n in_progress: \"923-002-000-000-000-000-000\",\n on_hold: \"923-003-000-000-000-000-000\",\n completed: \"923-004-000-000-000-000-000\",\n withdrawn: \"923-005-000-000-000-000-000\",\n} as const;\n\nexport type GoalStatusKey = keyof typeof GoalStatusKeys;\n\n/**\n * Key → positional code map for the `goal_withdrawal_reason` CVC domain.\n *\n * Domain: `goal_withdrawal_reason` · Version: 1.0.0 · Entries: 11\n */\nexport const GoalWithdrawalReasonKeys = {\n missingness_root: \"924-000-000-000-000-000-000\",\n unknown: \"924-000-000-000-000-000-001\",\n anonymous: \"924-000-000-000-000-000-002\",\n data_not_collected: \"924-000-000-000-000-000-003\",\n client_changed_priorities: \"924-001-000-000-000-000-000\",\n no_longer_relevant: \"924-002-000-000-000-000-000\",\n external_barrier_insurmountable: \"924-003-000-000-000-000-000\",\n alternative_path_chosen: \"924-004-000-000-000-000-000\",\n insufficient_resources: \"924-005-000-000-000-000-000\",\n client_declined_to_specify: \"924-006-000-000-000-000-000\",\n other: \"924-007-000-000-000-000-000\",\n} as const;\n\nexport type GoalWithdrawalReasonKey = keyof typeof GoalWithdrawalReasonKeys;\n\n/**\n * Key → positional code map for the `hope_scale_capture_context` CVC domain.\n *\n * Domain: `hope_scale_capture_context` · Version: 1.0.0 · Entries: 11\n */\nexport const HopeScaleCaptureContextKeys = {\n missingness_root: \"926-000-000-000-000-000-000\",\n unknown: \"926-000-000-000-000-000-001\",\n anonymous: \"926-000-000-000-000-000-002\",\n data_not_collected: \"926-000-000-000-000-000-003\",\n welcome_week: \"926-001-000-000-000-000-000\",\n phase_1_checkin: \"926-002-000-000-000-000-000\",\n phase_2_checkin: \"926-003-000-000-000-000-000\",\n phase_3_checkin: \"926-004-000-000-000-000-000\",\n phase_4_checkin: \"926-005-000-000-000-000-000\",\n ad_hoc: \"926-006-000-000-000-000-000\",\n amendment: \"926-007-000-000-000-000-000\",\n} as const;\n\nexport type HopeScaleCaptureContextKey = keyof typeof HopeScaleCaptureContextKeys;\n\n/**\n * Key → positional code map for the `hope_scale_response_options` CVC domain.\n *\n * Domain: `hope_scale_response_options` · Version: 1.0.0 · Entries: 12\n */\nexport const HopeScaleResponseOptionsKeys = {\n missingness_root: \"927-000-000-000-000-000-000\",\n unknown: \"927-000-000-000-000-000-001\",\n anonymous: \"927-000-000-000-000-000-002\",\n data_not_collected: \"927-000-000-000-000-000-003\",\n definitely_false: \"927-001-000-000-000-000-000\",\n mostly_false: \"927-002-000-000-000-000-000\",\n somewhat_false: \"927-003-000-000-000-000-000\",\n slightly_false: \"927-004-000-000-000-000-000\",\n slightly_true: \"927-005-000-000-000-000-000\",\n somewhat_true: \"927-006-000-000-000-000-000\",\n mostly_true: \"927-007-000-000-000-000-000\",\n definitely_true: \"927-008-000-000-000-000-000\",\n} as const;\n\nexport type HopeScaleResponseOptionsKey = keyof typeof HopeScaleResponseOptionsKeys;\n\n/**\n * Key → positional code map for the `hope_scale_tier` CVC domain.\n *\n * Domain: `hope_scale_tier` · Version: 1.0.0 · Entries: 8\n */\nexport const HopeScaleTierKeys = {\n missingness_root: \"928-000-000-000-000-000-000\",\n unknown: \"928-000-000-000-000-000-001\",\n anonymous: \"928-000-000-000-000-000-002\",\n data_not_collected: \"928-000-000-000-000-000-003\",\n building: \"928-001-000-000-000-000-000\",\n hopeful: \"928-002-000-000-000-000-000\",\n moderately_hopeful: \"928-003-000-000-000-000-000\",\n high_hope: \"928-004-000-000-000-000-000\",\n} as const;\n\nexport type HopeScaleTierKey = keyof typeof HopeScaleTierKeys;\n\n/**\n * Key → positional code map for the `identification_status` CVC domain.\n *\n * Domain: `identification_status` · Version: 1.0.0 · Entries: 9\n */\nexport const IdentificationStatusKeys = {\n missingness_root: \"929-000-000-000-000-000-000\",\n unknown: \"929-000-000-000-000-000-001\",\n anonymous: \"929-000-000-000-000-000-002\",\n data_not_collected: \"929-000-000-000-000-000-003\",\n identified: \"929-001-000-000-000-000-000\",\n unidentified: \"929-002-000-000-000-000-000\",\n anonymous_posture: \"929-003-000-000-000-000-000\",\n estimated_persona: \"929-004-000-000-000-000-000\",\n confirmed: \"929-005-000-000-000-000-000\",\n} as const;\n\nexport type IdentificationStatusKey = keyof typeof IdentificationStatusKeys;\n\n/**\n * Key → positional code map for the `investigative_request_type` CVC domain.\n *\n * Domain: `investigative_request_type` · Version: 1.0.0 · Entries: 8\n */\nexport const InvestigativeRequestTypeKeys = {\n missingness_root: \"931-000-000-000-000-000-000\",\n unknown: \"931-000-000-000-000-000-001\",\n anonymous: \"931-000-000-000-000-000-002\",\n data_not_collected: \"931-000-000-000-000-000-003\",\n request_a_lead: \"931-001-000-000-000-000-000\",\n ask_about_a_network: \"931-002-000-000-000-000-000\",\n submit_case_info_for_buildout: \"931-003-000-000-000-000-000\",\n other: \"931-004-000-000-000-000-000\",\n} as const;\n\nexport type InvestigativeRequestTypeKey = keyof typeof InvestigativeRequestTypeKeys;\n\n/**\n * Key → positional code map for the `le_report_status` CVC domain.\n *\n * Domain: `le_report_status` · Version: 1.0.0 · Entries: 8\n */\nexport const LeReportStatusKeys = {\n missingness_root: \"932-000-000-000-000-000-000\",\n unknown: \"932-000-000-000-000-000-001\",\n anonymous: \"932-000-000-000-000-000-002\",\n data_not_collected: \"932-000-000-000-000-000-003\",\n yes_reported: \"932-001-000-000-000-000-000\",\n no_not_reported: \"932-002-000-000-000-000-000\",\n scheduled: \"932-003-000-000-000-000-000\",\n declined_to_report: \"932-004-000-000-000-000-000\",\n} as const;\n\nexport type LeReportStatusKey = keyof typeof LeReportStatusKeys;\n\n/**\n * Key → positional code map for the `legal_action_type` CVC domain.\n *\n * Domain: `legal_action_type` · Version: 1.0.0 · Entries: 11\n */\nexport const LegalActionTypeKeys = {\n missingness_root: \"933-000-000-000-000-000-000\",\n unknown: \"933-000-000-000-000-000-001\",\n anonymous: \"933-000-000-000-000-000-002\",\n data_not_collected: \"933-000-000-000-000-000-003\",\n continued_presence: \"933-001-000-000-000-000-000\",\n t_visa: \"933-002-000-000-000-000-000\",\n u_visa: \"933-003-000-000-000-000-000\",\n vawa_self_petition: \"933-004-000-000-000-000-000\",\n asylum: \"933-005-000-000-000-000-000\",\n sij: \"933-006-000-000-000-000-000\",\n other: \"933-007-000-000-000-000-000\",\n} as const;\n\nexport type LegalActionTypeKey = keyof typeof LegalActionTypeKeys;\n\n/**\n * Key → positional code map for the `message_report_reason` CVC domain.\n *\n * Domain: `message_report_reason` · Version: 1.0.0 · Entries: 10\n */\nexport const MessageReportReasonKeys = {\n missingness_root: \"935-000-000-000-000-000-000\",\n unknown: \"935-000-000-000-000-000-001\",\n anonymous: \"935-000-000-000-000-000-002\",\n data_not_collected: \"935-000-000-000-000-000-003\",\n inappropriate: \"935-001-000-000-000-000-000\",\n harassment: \"935-002-000-000-000-000-000\",\n safety_concern: \"935-003-000-000-000-000-000\",\n spam: \"935-004-000-000-000-000-000\",\n off_topic: \"935-005-000-000-000-000-000\",\n other: \"935-006-000-000-000-000-000\",\n} as const;\n\nexport type MessageReportReasonKey = keyof typeof MessageReportReasonKeys;\n\n/**\n * Key → positional code map for the `milestone_type` CVC domain.\n *\n * Domain: `milestone_type` · Version: 1.0.0 · Entries: 17\n */\nexport const MilestoneTypeKeys = {\n missingness_root: \"936-000-000-000-000-000-000\",\n unknown: \"936-000-000-000-000-000-001\",\n anonymous: \"936-000-000-000-000-000-002\",\n data_not_collected: \"936-000-000-000-000-000-003\",\n edu_grade_complete: \"936-001-000-000-000-000-000\",\n edu_ged_hs_diploma: \"936-002-000-000-000-000-000\",\n edu_higher_ed_degree: \"936-003-000-000-000-000-000\",\n edu_trade_school_degree: \"936-004-000-000-000-000-000\",\n obtained_employment: \"936-005-000-000-000-000-000\",\n received_housing_offer: \"936-006-000-000-000-000-000\",\n recovery_anniversary: \"936-007-000-000-000-000-000\",\n parenting_class_completed: \"936-008-000-000-000-000-000\",\n opened_bank_account: \"936-009-000-000-000-000-000\",\n baptism: \"936-010-000-000-000-000-000\",\n spiritual_decision: \"936-011-000-000-000-000-000\",\n baby_child_youth_dedication: \"936-012-000-000-000-000-000\",\n other: \"936-013-000-000-000-000-000\",\n} as const;\n\nexport type MilestoneTypeKey = keyof typeof MilestoneTypeKeys;\n\n/**\n * Key → positional code map for the `needs_residential_again` CVC domain.\n *\n * Domain: `needs_residential_again` · Version: 1.0.0 · Entries: 7\n */\nexport const NeedsResidentialAgainKeys = {\n missingness_root: \"937-000-000-000-000-000-000\",\n unknown: \"937-000-000-000-000-000-001\",\n anonymous: \"937-000-000-000-000-000-002\",\n data_not_collected: \"937-000-000-000-000-000-003\",\n yes: \"937-001-000-000-000-000-000\",\n no: \"937-002-000-000-000-000-000\",\n maybe: \"937-003-000-000-000-000-000\",\n} as const;\n\nexport type NeedsResidentialAgainKey = keyof typeof NeedsResidentialAgainKeys;\n\n/**\n * Key → positional code map for the `pet_relationship_basis` CVC domain.\n *\n * Domain: `pet_relationship_basis` · Version: 1.0.0 · Entries: 7\n */\nexport const PetRelationshipBasisKeys = {\n missingness_root: \"938-000-000-000-000-000-000\",\n unknown: \"938-000-000-000-000-000-001\",\n anonymous: \"938-000-000-000-000-000-002\",\n data_not_collected: \"938-000-000-000-000-000-003\",\n household_pet: \"938-001-000-000-000-000-000\",\n service_animal: \"938-002-000-000-000-000-000\",\n fostered: \"938-003-000-000-000-000-000\",\n} as const;\n\nexport type PetRelationshipBasisKey = keyof typeof PetRelationshipBasisKeys;\n\n/**\n * Key → positional code map for the `program_specific_code` CVC domain.\n *\n * Domain: `program_specific_code` · Version: 1.0.0 · Entries: 12\n */\nexport const ProgramSpecificCodeKeys = {\n missingness_root: \"940-000-000-000-000-000-000\",\n unknown: \"940-000-000-000-000-000-001\",\n anonymous: \"940-000-000-000-000-000-002\",\n data_not_collected: \"940-000-000-000-000-000-003\",\n tvap: \"940-001-000-000-000-000-000\",\n t_visa_legal_aid_program: \"940-002-000-000-000-000-000\",\n u_visa_legal_aid_program: \"940-003-000-000-000-000-000\",\n vawa_legal_aid_program: \"940-004-000-000-000-000-000\",\n asylum_legal_aid_program: \"940-005-000-000-000-000-000\",\n sij_legal_aid_program: \"940-006-000-000-000-000-000\",\n immigration_relief_program_other: \"940-007-000-000-000-000-000\",\n other: \"940-008-000-000-000-000-000\",\n} as const;\n\nexport type ProgramSpecificCodeKey = keyof typeof ProgramSpecificCodeKeys;\n\n/**\n * Key → positional code map for the `proof_of_id_type` CVC domain.\n *\n * Domain: `proof_of_id_type` · Version: 1.0.0 · Entries: 19\n */\nexport const ProofOfIdTypeKeys = {\n missingness_root: \"941-000-000-000-000-000-000\",\n unknown: \"941-000-000-000-000-000-001\",\n anonymous: \"941-000-000-000-000-000-002\",\n data_not_collected: \"941-000-000-000-000-000-003\",\n none: \"941-001-000-000-000-000-000\",\n passport_us: \"941-002-000-000-000-000-000\",\n drivers_license: \"941-003-000-000-000-000-000\",\n state_id: \"941-004-000-000-000-000-000\",\n military_id: \"941-005-000-000-000-000-000\",\n tribal_id: \"941-006-000-000-000-000-000\",\n uscis_document: \"941-007-000-000-000-000-000\",\n green_card: \"941-008-000-000-000-000-000\",\n foreign_passport: \"941-009-000-000-000-000-000\",\n foreign_national_id: \"941-010-000-000-000-000-000\",\n consular_id: \"941-011-000-000-000-000-000\",\n birth_certificate: \"941-012-000-000-000-000-000\",\n social_security_card: \"941-013-000-000-000-000-000\",\n school_id: \"941-014-000-000-000-000-000\",\n other: \"941-015-000-000-000-000-000\",\n} as const;\n\nexport type ProofOfIdTypeKey = keyof typeof ProofOfIdTypeKeys;\n\n/**\n * Key → positional code map for the `reference_link_type` CVC domain.\n *\n * Domain: `reference_link_type` · Version: 1.0.0 · Entries: 12\n */\nexport const ReferenceLinkTypeKeys = {\n missingness_root: \"942-000-000-000-000-000-000\",\n unknown: \"942-000-000-000-000-000-001\",\n anonymous: \"942-000-000-000-000-000-002\",\n data_not_collected: \"942-000-000-000-000-000-003\",\n case: \"942-001-000-000-000-000-000\",\n service: \"942-002-000-000-000-000-000\",\n working_group: \"942-003-000-000-000-000-000\",\n training: \"942-004-000-000-000-000-000\",\n agency: \"942-005-000-000-000-000-000\",\n share: \"942-006-000-000-000-000-000\",\n user: \"942-007-000-000-000-000-000\",\n thread: \"942-008-000-000-000-000-000\",\n} as const;\n\nexport type ReferenceLinkTypeKey = keyof typeof ReferenceLinkTypeKeys;\n\n/**\n * Key → positional code map for the `returned_to_abuser_status` CVC domain.\n *\n * Domain: `returned_to_abuser_status` · Version: 1.0.0 · Entries: 7\n */\nexport const ReturnedToAbuserStatusKeys = {\n missingness_root: \"944-000-000-000-000-000-000\",\n unknown: \"944-000-000-000-000-000-001\",\n anonymous: \"944-000-000-000-000-000-002\",\n data_not_collected: \"944-000-000-000-000-000-003\",\n yes: \"944-001-000-000-000-000-000\",\n no: \"944-002-000-000-000-000-000\",\n unanswered: \"944-003-000-000-000-000-000\",\n} as const;\n\nexport type ReturnedToAbuserStatusKey = keyof typeof ReturnedToAbuserStatusKeys;\n\n/**\n * Key → positional code map for the `rsvp_response` CVC domain.\n *\n * Domain: `rsvp_response` · Version: 1.0.0 · Entries: 7\n */\nexport const RsvpResponseKeys = {\n missingness_root: \"946-000-000-000-000-000-000\",\n unknown: \"946-000-000-000-000-000-001\",\n anonymous: \"946-000-000-000-000-000-002\",\n data_not_collected: \"946-000-000-000-000-000-003\",\n rsvp_yes: \"946-001-000-000-000-000-000\",\n rsvp_maybe: \"946-002-000-000-000-000-000\",\n rsvp_no: \"946-003-000-000-000-000-000\",\n} as const;\n\nexport type RsvpResponseKey = keyof typeof RsvpResponseKeys;\n\n/**\n * Key → positional code map for the `service_plan_closure_reason` CVC domain.\n *\n * Domain: `service_plan_closure_reason` · Version: 1.0.0 · Entries: 12\n */\nexport const ServicePlanClosureReasonKeys = {\n missingness_root: \"947-000-000-000-000-000-000\",\n unknown: \"947-000-000-000-000-000-001\",\n anonymous: \"947-000-000-000-000-000-002\",\n data_not_collected: \"947-000-000-000-000-000-003\",\n program_exit_goals_reached: \"947-001-000-000-000-000-000\",\n program_exit_incomplete: \"947-002-000-000-000-000-000\",\n transferred: \"947-003-000-000-000-000-000\",\n aged_out: \"947-004-000-000-000-000-000\",\n lost_contact: \"947-005-000-000-000-000-000\",\n survivor_withdrew: \"947-006-000-000-000-000-000\",\n agency_terminated: \"947-007-000-000-000-000-000\",\n other: \"947-008-000-000-000-000-000\",\n} as const;\n\nexport type ServicePlanClosureReasonKey = keyof typeof ServicePlanClosureReasonKeys;\n\n/**\n * Key → positional code map for the `service_plan_review_snooze_reason` CVC domain.\n *\n * Domain: `service_plan_review_snooze_reason` · Version: 1.0.0 · Entries: 11\n */\nexport const ServicePlanReviewSnoozeReasonKeys = {\n missingness_root: \"948-000-000-000-000-000-000\",\n unknown: \"948-000-000-000-000-000-001\",\n anonymous: \"948-000-000-000-000-000-002\",\n data_not_collected: \"948-000-000-000-000-000-003\",\n survivor_unreachable: \"948-001-000-000-000-000-000\",\n schedule_conflict: \"948-002-000-000-000-000-000\",\n survivor_traveling_or_out_of_contact: \"948-003-000-000-000-000-000\",\n advocate_caseload_spike: \"948-004-000-000-000-000-000\",\n safety_circumstance: \"948-005-000-000-000-000-000\",\n awaiting_information_from_external_party: \"948-006-000-000-000-000-000\",\n other: \"948-007-000-000-000-000-000\",\n} as const;\n\nexport type ServicePlanReviewSnoozeReasonKey = keyof typeof ServicePlanReviewSnoozeReasonKeys;\n\n/**\n * Key → positional code map for the `service_source` CVC domain.\n *\n * Domain: `service_source` · Version: 1.0.0 · Entries: 6\n */\nexport const ServiceSourceKeys = {\n missingness_root: \"949-000-000-000-000-000-000\",\n unknown: \"949-000-000-000-000-000-001\",\n anonymous: \"949-000-000-000-000-000-002\",\n data_not_collected: \"949-000-000-000-000-000-003\",\n your_program: \"949-001-000-000-000-000-000\",\n other_agency: \"949-002-000-000-000-000-000\",\n} as const;\n\nexport type ServiceSourceKey = keyof typeof ServiceSourceKeys;\n\n/**\n * Key → positional code map for the `severity_follow_up` CVC domain.\n *\n * Domain: `severity_follow_up` · Version: 1.0.0 · Entries: 8\n */\nexport const SeverityFollowUpKeys = {\n missingness_root: \"951-000-000-000-000-000-000\",\n unknown: \"951-000-000-000-000-000-001\",\n anonymous: \"951-000-000-000-000-000-002\",\n data_not_collected: \"951-000-000-000-000-000-003\",\n yes: \"951-001-000-000-000-000-000\",\n no: \"951-002-000-000-000-000-000\",\n client_doesnt_know: \"951-003-000-000-000-000-000\",\n prefer_not_to_answer: \"951-004-000-000-000-000-000\",\n} as const;\n\nexport type SeverityFollowUpKey = keyof typeof SeverityFollowUpKeys;\n\n/**\n * Key → positional code map for the `signature_method` CVC domain.\n *\n * Domain: `signature_method` · Version: 1.0.0 · Entries: 8\n */\nexport const SignatureMethodKeys = {\n missingness_root: \"952-000-000-000-000-000-000\",\n unknown: \"952-000-000-000-000-000-001\",\n anonymous: \"952-000-000-000-000-000-002\",\n data_not_collected: \"952-000-000-000-000-000-003\",\n digital_typed: \"952-001-000-000-000-000-000\",\n digital_drawn: \"952-002-000-000-000-000-000\",\n verbal_recorded: \"952-003-000-000-000-000-000\",\n written_scanned: \"952-004-000-000-000-000-000\",\n} as const;\n\nexport type SignatureMethodKey = keyof typeof SignatureMethodKeys;\n\n/**\n * Key → positional code map for the `signature_type` CVC domain.\n *\n * Domain: `signature_type` · Version: 1.0.0 · Entries: 8\n */\nexport const SignatureTypeKeys = {\n missingness_root: \"953-000-000-000-000-000-000\",\n unknown: \"953-000-000-000-000-000-001\",\n anonymous: \"953-000-000-000-000-000-002\",\n data_not_collected: \"953-000-000-000-000-000-003\",\n client_at_creation: \"953-001-000-000-000-000-000\",\n advocate_at_creation: \"953-002-000-000-000-000-000\",\n client_at_completion: \"953-003-000-000-000-000-000\",\n advocate_at_completion: \"953-004-000-000-000-000-000\",\n} as const;\n\nexport type SignatureTypeKey = keyof typeof SignatureTypeKeys;\n\n/**\n * Key → positional code map for the `smt_body_location` CVC domain.\n *\n * Domain: `smt_body_location` · Version: 1.0.0 · Entries: 33\n */\nexport const SmtBodyLocationKeys = {\n missingness_root: \"954-000-000-000-000-000-000\",\n unknown: \"954-000-000-000-000-000-001\",\n anonymous: \"954-000-000-000-000-000-002\",\n data_not_collected: \"954-000-000-000-000-000-003\",\n head: \"954-001-000-000-000-000-000\",\n face: \"954-002-000-000-000-000-000\",\n scalp: \"954-003-000-000-000-000-000\",\n neck: \"954-004-000-000-000-000-000\",\n ear_l: \"954-005-000-000-000-000-000\",\n ear_r: \"954-006-000-000-000-000-000\",\n chest: \"954-007-000-000-000-000-000\",\n back: \"954-008-000-000-000-000-000\",\n abdomen: \"954-009-000-000-000-000-000\",\n shoulder_l: \"954-010-000-000-000-000-000\",\n shoulder_r: \"954-011-000-000-000-000-000\",\n arm_l: \"954-012-000-000-000-000-000\",\n arm_r: \"954-013-000-000-000-000-000\",\n wrist_l: \"954-014-000-000-000-000-000\",\n wrist_r: \"954-015-000-000-000-000-000\",\n hand_l: \"954-016-000-000-000-000-000\",\n hand_r: \"954-017-000-000-000-000-000\",\n finger_l: \"954-018-000-000-000-000-000\",\n finger_r: \"954-019-000-000-000-000-000\",\n leg_l: \"954-020-000-000-000-000-000\",\n leg_r: \"954-021-000-000-000-000-000\",\n ankle_l: \"954-022-000-000-000-000-000\",\n ankle_r: \"954-023-000-000-000-000-000\",\n foot_l: \"954-024-000-000-000-000-000\",\n foot_r: \"954-025-000-000-000-000-000\",\n hip_l: \"954-026-000-000-000-000-000\",\n hip_r: \"954-027-000-000-000-000-000\",\n buttocks: \"954-028-000-000-000-000-000\",\n other: \"954-029-000-000-000-000-000\",\n} as const;\n\nexport type SmtBodyLocationKey = keyof typeof SmtBodyLocationKeys;\n\n/**\n * Key → positional code map for the `smt_name_relation` CVC domain.\n *\n * Domain: `smt_name_relation` · Version: 1.0.0 · Entries: 11\n */\nexport const SmtNameRelationKeys = {\n missingness_root: \"955-000-000-000-000-000-000\",\n unknown: \"955-000-000-000-000-000-001\",\n anonymous: \"955-000-000-000-000-000-002\",\n data_not_collected: \"955-000-000-000-000-000-003\",\n self: \"955-001-000-000-000-000-000\",\n child: \"955-002-000-000-000-000-000\",\n partner: \"955-003-000-000-000-000-000\",\n other_family: \"955-004-000-000-000-000-000\",\n trafficker: \"955-005-000-000-000-000-000\",\n deceased: \"955-006-000-000-000-000-000\",\n other_relation: \"955-007-000-000-000-000-000\",\n} as const;\n\nexport type SmtNameRelationKey = keyof typeof SmtNameRelationKeys;\n\n/**\n * Key → positional code map for the `smt_significance_flags` CVC domain.\n *\n * Domain: `smt_significance_flags` · Version: 1.0.0 · Entries: 11\n */\nexport const SmtSignificanceFlagsKeys = {\n missingness_root: \"956-000-000-000-000-000-000\",\n unknown: \"956-000-000-000-000-000-001\",\n anonymous: \"956-000-000-000-000-000-002\",\n data_not_collected: \"956-000-000-000-000-000-003\",\n gang: \"956-001-000-000-000-000-000\",\n trafficking: \"956-002-000-000-000-000-000\",\n name: \"956-003-000-000-000-000-000\",\n memorial: \"956-004-000-000-000-000-000\",\n religious_cultural: \"956-005-000-000-000-000-000\",\n other: \"956-006-000-000-000-000-000\",\n none_non_specific: \"956-007-000-000-000-000-000\",\n} as const;\n\nexport type SmtSignificanceFlagsKey = keyof typeof SmtSignificanceFlagsKeys;\n\n/**\n * Key → positional code map for the `substance_use_status` CVC domain.\n *\n * Domain: `substance_use_status` · Version: 1.0.0 · Entries: 8\n */\nexport const SubstanceUseStatusKeys = {\n missingness_root: \"958-000-000-000-000-000-000\",\n unknown: \"958-000-000-000-000-000-001\",\n anonymous: \"958-000-000-000-000-000-002\",\n data_not_collected: \"958-000-000-000-000-000-003\",\n no: \"958-001-000-000-000-000-000\",\n alcohol: \"958-002-000-000-000-000-000\",\n drug: \"958-003-000-000-000-000-000\",\n both: \"958-004-000-000-000-000-000\",\n} as const;\n\nexport type SubstanceUseStatusKey = keyof typeof SubstanceUseStatusKeys;\n\n/**\n * Key → positional code map for the `support_topic` CVC domain.\n *\n * Domain: `support_topic` · Version: 1.0.0 · Entries: 11\n */\nexport const SupportTopicKeys = {\n missingness_root: \"959-000-000-000-000-000-000\",\n unknown: \"959-000-000-000-000-000-001\",\n anonymous: \"959-000-000-000-000-000-002\",\n data_not_collected: \"959-000-000-000-000-000-003\",\n how_to_use_platform: \"959-001-000-000-000-000-000\",\n something_broken: \"959-002-000-000-000-000-000\",\n data_record_issue: \"959-003-000-000-000-000-000\",\n account_access: \"959-004-000-000-000-000-000\",\n request_training: \"959-005-000-000-000-000-000\",\n feature_request: \"959-006-000-000-000-000-000\",\n other: \"959-007-000-000-000-000-000\",\n} as const;\n\nexport type SupportTopicKey = keyof typeof SupportTopicKeys;\n\n/**\n * Key → positional code map for the `thread_status` CVC domain.\n *\n * Domain: `thread_status` · Version: 1.0.0 · Entries: 7\n */\nexport const ThreadStatusKeys = {\n missingness_root: \"960-000-000-000-000-000-000\",\n unknown: \"960-000-000-000-000-000-001\",\n anonymous: \"960-000-000-000-000-000-002\",\n data_not_collected: \"960-000-000-000-000-000-003\",\n open: \"960-001-000-000-000-000-000\",\n resolved: \"960-002-000-000-000-000-000\",\n archived: \"960-003-000-000-000-000-000\",\n} as const;\n\nexport type ThreadStatusKey = keyof typeof ThreadStatusKeys;\n\n/**\n * Key → positional code map for the `thread_type` CVC domain.\n *\n * Domain: `thread_type` · Version: 1.0.0 · Entries: 9\n */\nexport const ThreadTypeKeys = {\n missingness_root: \"961-000-000-000-000-000-000\",\n unknown: \"961-000-000-000-000-000-001\",\n anonymous: \"961-000-000-000-000-000-002\",\n data_not_collected: \"961-000-000-000-000-000-003\",\n support: \"961-001-000-000-000-000-000\",\n community_partner: \"961-002-000-000-000-000-000\",\n working_group: \"961-003-000-000-000-000-000\",\n announcement: \"961-004-000-000-000-000-000\",\n investigative_request: \"961-005-000-000-000-000-000\",\n} as const;\n\nexport type ThreadTypeKey = keyof typeof ThreadTypeKeys;\n\n/**\n * Key → positional code map for the `living_situation` CVC domain.\n *\n * Domain: `living_situation` · Version: 1.0.0 · Entries: 22\n */\nexport const LivingSituationKeys = {\n missingness_root: \"192-000-000-000-000-000-000\",\n unknown: \"192-000-000-000-000-000-001\",\n anonymous: \"192-000-000-000-000-000-002\",\n data_not_collected: \"192-000-000-000-000-000-003\",\n unsheltered: \"192-001-000-000-000-000-000\",\n emergency_shelter: \"192-002-000-000-000-000-000\",\n safe_haven: \"192-003-000-000-000-000-000\",\n dv_shelter_safe_house: \"192-004-000-000-000-000-000\",\n homeless_unspecified: \"192-005-000-000-000-000-000\",\n hospital_medical: \"192-006-000-000-000-000-000\",\n psychiatric_residential_facility: \"192-007-000-000-000-000-000\",\n substance_use_treatment_residential: \"192-008-000-000-000-000-000\",\n incarcerated: \"192-009-000-000-000-000-000\",\n cw_foster_care: \"192-010-000-000-000-000-000\",\n cw_kinship: \"192-011-000-000-000-000-000\",\n long_term_care: \"192-012-000-000-000-000-000\",\n transitional_housing_program: \"192-013-000-000-000-000-000\",\n temp_housing_program: \"192-014-000-000-000-000-000\",\n hotel_motel_non_shelter: \"192-015-000-000-000-000-000\",\n own_rent: \"192-016-000-000-000-000-000\",\n with_family_friends: \"192-017-000-000-000-000-000\",\n other: \"192-018-000-000-000-000-000\",\n} as const;\n\nexport type LivingSituationKey = keyof typeof LivingSituationKeys;\n\n/**\n * Key → positional code map for the `service_audience` CVC domain.\n *\n * Domain: `service_audience` · Version: 1.0.0 · Entries: 9\n */\nexport const ServiceAudienceKeys = {\n missingness_root: \"045-000-000-000-000-000-000\",\n unknown: \"045-000-000-000-000-000-001\",\n anonymous: \"045-000-000-000-000-000-002\",\n data_not_collected: \"045-000-000-000-000-000-003\",\n primary_victim: \"045-001-000-000-000-000-000\",\n eligible_family_member: \"045-002-000-000-000-000-000\",\n third_party: \"045-003-000-000-000-000-000\",\n offender: \"045-004-000-000-000-000-000\",\n personnel: \"045-005-000-000-000-000-000\",\n} as const;\n\nexport type ServiceAudienceKey = keyof typeof ServiceAudienceKeys;\n\n/**\n * Key → positional code map for the `hmis_relationship_to_hoh` CVC domain.\n *\n * Domain: `hmis_relationship_to_hoh` · Version: 1.0.0 · Entries: 9\n */\nexport const HmisRelationshipToHohKeys = {\n missingness_root: \"129-000-000-000-000-000-000\",\n unknown: \"129-000-000-000-000-000-001\",\n anonymous: \"129-000-000-000-000-000-002\",\n data_not_collected: \"129-000-000-000-000-000-003\",\n self_hoh: \"129-001-000-000-000-000-000\",\n child_of_hoh: \"129-002-000-000-000-000-000\",\n spouse_or_partner_of_hoh: \"129-003-000-000-000-000-000\",\n other_relative_of_hoh: \"129-004-000-000-000-000-000\",\n non_relation_member: \"129-005-000-000-000-000-000\",\n} as const;\n\nexport type HmisRelationshipToHohKey = keyof typeof HmisRelationshipToHohKeys;\n\n/**\n * Key → positional code map for the `victim_abuse_types` CVC domain.\n *\n * Domain: `victim_abuse_types` · Version: 1.1.0 · Entries: 30\n */\nexport const VictimAbuseTypesKeys = {\n arson: \"073-003-000-000-000-000-000\",\n bullying: \"073-004-000-000-000-000-000\",\n burglary: \"073-005-000-000-000-000-000\",\n child_pornography: \"073-007-000-000-000-000-000\",\n domestic_family_violence: \"073-009-000-000-000-000-000\",\n dui_dwi_incident: \"073-010-000-000-000-000-000\",\n elder_abuse_or_neglect: \"073-011-000-000-000-000-000\",\n gang_violence: \"073-012-000-000-000-000-000\",\n hate_crime: \"073-013-000-000-000-000-000\",\n homicide: \"073-014-000-000-000-000-000\",\n identity_theft_fraud_financial_crime: \"073-015-000-000-000-000-000\",\n kidnapping_custodial: \"073-016-000-000-000-000-000\",\n kidnapping_noncustodial: \"073-017-000-000-000-000-000\",\n mass_violence: \"073-018-000-000-000-000-000\",\n other_voca_ovc: \"073-019-000-000-000-000-000\",\n other_vehicular_victimization: \"073-020-000-000-000-000-000\",\n robbery: \"073-021-000-000-000-000-000\",\n stalking_harassment: \"073-022-000-000-000-000-000\",\n survivor_of_homicide_victim: \"073-023-000-000-000-000-000\",\n teen_dating_victimization: \"073-024-000-000-000-000-000\",\n terrorism: \"073-025-000-000-000-000-000\",\n sexual_abuse_assault: \"073-026-000-000-000-000-000\",\n physical_abuse_or_neglect: \"073-027-000-000-000-000-000\",\n physical_assault: \"073-028-000-000-000-000-000\",\n commercial_sexual_exploitation_minor: \"073-029-000-000-000-000-000\",\n sexual_exploitation: \"073-030-000-000-000-000-000\",\n labor_exploitation: \"073-031-000-000-000-000-000\",\n female_genital_mutilation_cutting: \"073-032-000-000-000-000-000\",\n forced_marriage: \"073-033-000-000-000-000-000\",\n cyber_crimes: \"073-034-000-000-000-000-000\",\n} as const;\n\nexport type VictimAbuseTypesKey = keyof typeof VictimAbuseTypesKeys;\n\n/**\n * Key → positional code map for the `ht_type` CVC domain.\n *\n * Domain: `ht_type` · Version: 1.0.0 · Entries: 8\n */\nexport const HtTypeKeys = {\n missingness_root: \"072-000-000-000-000-000-000\",\n unknown: \"072-000-000-000-000-000-001\",\n anonymous: \"072-000-000-000-000-000-002\",\n data_not_collected: \"072-000-000-000-000-000-003\",\n sex: \"072-001-000-000-000-000-000\",\n labor: \"072-002-000-000-000-000-000\",\n sex_and_labor: \"072-003-000-000-000-000-000\",\n none: \"072-004-000-000-000-000-000\",\n} as const;\n\nexport type HtTypeKey = keyof typeof HtTypeKeys;\n\n/**\n * Key → positional code map for the `relationship_concern` CVC domain (PROVISIONAL CVC-991 — pending codebook ratification; renumbered from provisional 231 on CVC-231's ratification to the Determination Helper categories, 2026-08-28).\n *\n * Domain: `relationship_concern` · Version: 1.1.0 · Entries: 11\n */\nexport const RelationshipConcernKeys = {\n missingness_root: \"991-000-000-000-000-000-000\",\n unknown: \"991-000-000-000-000-000-001\",\n anonymous: \"991-000-000-000-000-000-002\",\n data_not_collected: \"991-000-000-000-000-000-003\",\n appears_controlling: \"991-001-000-000-000-000-000\",\n is_much_older: \"991-002-000-000-000-000-000\",\n physically_abusive: \"991-003-000-000-000-000-000\",\n emotionally_abusive: \"991-004-000-000-000-000-000\",\n has_legal_involvement: \"991-005-000-000-000-000-000\",\n is_known_trafficker_or_suspect: \"991-006-000-000-000-000-000\",\n other_concern: \"991-007-000-000-000-000-000\",\n} as const;\n\nexport type RelationshipConcernKey = keyof typeof RelationshipConcernKeys;\n\n/**\n * Key → positional code map for the `recency_band` CVC domain (PROVISIONAL CVC-232 — pending codebook ratification).\n *\n * Domain: `recency_band` · Version: 1.0.0 · Entries: 12\n */\nexport const RecencyBandKeys = {\n missingness_root: \"137-000-000-000-000-000-000\",\n unknown: \"137-000-000-000-000-000-001\",\n anonymous: \"137-000-000-000-000-000-002\",\n data_not_collected: \"137-000-000-000-000-000-003\",\n w3m: \"137-001-000-000-000-000-000\",\n m3_6: \"137-002-000-000-000-000-000\",\n m6_12: \"137-003-000-000-000-000-000\",\n y1p: \"137-004-000-000-000-000-000\",\n y1_3: \"137-005-000-000-000-000-000\",\n y3_10: \"137-006-000-000-000-000-000\",\n y10p: \"137-007-000-000-000-000-000\",\n ylt3: \"137-008-000-000-000-000-000\",\n} as const;\n\nexport type RecencyBandKey = keyof typeof RecencyBandKeys;\n\n/**\n * Key → positional code map for the `housing_subsidy_types` CVC domain (PROVISIONAL CVC-233 — pending codebook ratification).\n *\n * Domain: `housing_subsidy_types` · Version: 1.1.0 · Entries: 16\n */\nexport const HousingSubsidyTypesKeys = {\n missingness_root: \"194-000-000-000-000-000-000\",\n unknown: \"194-000-000-000-000-000-001\",\n anonymous: \"194-000-000-000-000-000-002\",\n data_not_collected: \"194-000-000-000-000-000-003\",\n housing_choice_voucher: \"194-001-000-000-000-000-000\",\n public_housing: \"194-002-000-000-000-000-000\",\n project_based_rental_assistance: \"194-003-000-000-000-000-000\",\n permanent_supportive_housing: \"194-004-000-000-000-000-000\",\n rapid_rehousing_assistance: \"194-005-000-000-000-000-000\",\n other_housing_subsidy: \"194-006-000-000-000-000-000\",\n no_subsidy: \"194-007-000-000-000-000-000\",\n va_supportive_housing: \"194-008-000-000-000-000-000\",\n grant_per_diem_transition_in_place: \"194-009-000-000-000-000-000\",\n housing_stability_voucher: \"194-010-000-000-000-000-000\",\n family_unification_program: \"194-011-000-000-000-000-000\",\n foster_youth_to_independence: \"194-012-000-000-000-000-000\",\n} as const;\n\nexport type HousingSubsidyTypesKey = keyof typeof HousingSubsidyTypesKeys;\n\n/**\n * Key → positional code map for the `assertion_domain` CVC domain (CAR assertion domain; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `assertion_domain` · Version: 2.0.0 · Entries: 70\n */\nexport const AssertionDomainKeys = {\n missingness_root: \"159-000-000-000-000-000-000\",\n unknown: \"159-000-000-000-000-000-001\",\n anonymous: \"159-000-000-000-000-000-002\",\n data_not_collected: \"159-000-000-000-000-000-003\",\n indicator: \"159-001-000-000-000-000-000\",\n risk_signal: \"159-002-000-000-000-000-000\",\n victim_status: \"159-003-000-000-000-000-000\",\n offender_status: \"159-004-000-000-000-000-000\",\n domain_determination: \"159-005-000-000-000-000-000\",\n victimization_or_abuse_type: \"159-006-000-000-000-000-000\",\n assessment_scale: \"159-007-000-000-000-000-000\",\n recommended_followup: \"159-008-000-000-000-000-000\",\n relationship: \"159-009-000-000-000-000-000\",\n household_relationships: \"159-010-000-000-000-000-000\",\n relationship_tie: \"159-011-000-000-000-000-000\",\n relationship_dynamics: \"159-012-000-000-000-000-000\",\n relationship_status_current: \"159-013-000-000-000-000-000\",\n marital_status_legal: \"159-014-000-000-000-000-000\",\n core_profile: \"159-015-000-000-000-000-000\",\n person_tile: \"159-016-000-000-000-000-000\",\n person_relationship: \"159-017-000-000-000-000-000\",\n relevant_people: \"159-018-000-000-000-000-000\",\n name: \"159-019-000-000-000-000-000\",\n contact_info: \"159-020-000-000-000-000-000\",\n address: \"159-021-000-000-000-000-000\",\n vehicle: \"159-022-000-000-000-000-000\",\n income_history: \"159-023-000-000-000-000-000\",\n physical_description: \"159-024-000-000-000-000-000\",\n living_situation: \"159-025-000-000-000-000-000\",\n pet: \"159-026-000-000-000-000-000\",\n protection_order: \"159-027-000-000-000-000-000\",\n log_entry: \"159-028-000-000-000-000-000\",\n session_note: \"159-029-000-000-000-000-000\",\n referral_source: \"159-030-000-000-000-000-000\",\n org_directory: \"159-031-000-000-000-000-000\",\n person_directory: \"159-032-000-000-000-000-000\",\n service_delivery: \"159-033-000-000-000-000-000\",\n needs_assessment: \"159-034-000-000-000-000-000\",\n priorities_and_safety: \"159-035-000-000-000-000-000\",\n share: \"159-036-000-000-000-000-000\",\n roi: \"159-037-000-000-000-000-000\",\n external_recipient: \"159-038-000-000-000-000-000\",\n access_accommodations: \"159-039-000-000-000-000-000\",\n danger_assessment: \"159-040-000-000-000-000-000\",\n hope_scale: \"159-041-000-000-000-000-000\",\n injury_and_strangulation: \"159-042-000-000-000-000-000\",\n lethality_assessment_program: \"159-043-000-000-000-000-000\",\n occupational_background: \"159-044-000-000-000-000-000\",\n program_enrollment: \"159-046-000-000-000-000-000\",\n program_enrollment_exit_wizard: \"159-047-000-000-000-000-000\",\n goal: \"159-048-000-000-000-000-000\",\n action_step: \"159-049-000-000-000-000-000\",\n milestone: \"159-050-000-000-000-000-000\",\n check_in: \"159-051-000-000-000-000-000\",\n goal_signature: \"159-052-000-000-000-000-000\",\n subject_functional_role: \"159-053-000-000-000-000-000\",\n worker_subrole: \"159-054-000-000-000-000-000\",\n offender_status_family: \"159-055-000-000-000-000-000\",\n assessment_rating: \"159-056-000-000-000-000-000\",\n immigration_legal_status: \"159-057-000-000-000-000-000\",\n persons_network: \"159-058-000-000-000-000-000\",\n lifecycle_services: \"159-059-000-000-000-000-000\",\n juvenile_justice_involvement: \"159-060-000-000-000-000-000\",\n child_welfare_involvement: \"159-061-000-000-000-000-000\",\n facilitator_role: \"159-062-000-000-000-000-000\",\n facilitator_subrole: \"159-063-000-000-000-000-000\",\n facilitator_entity_type: \"159-064-000-000-000-000-000\",\n child_profile: \"159-065-000-000-000-000-000\",\n signal_identification: \"159-066-000-000-000-000-000\",\n investigative_legal: \"159-067-000-000-000-000-000\",\n} as const;\n\nexport type AssertionDomainKey = keyof typeof AssertionDomainKeys;\n\n/**\n * Key → positional code map for the `activity_type` CVC domain (activity type; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `activity_type` · Version: 1.0.0 · Entries: 14\n */\nexport const ActivityTypeKeys = {\n missingness_root: \"965-000-000-000-000-000-000\",\n unknown: \"965-000-000-000-000-000-001\",\n anonymous: \"965-000-000-000-000-000-002\",\n data_not_collected: \"965-000-000-000-000-000-003\",\n resided: \"965-001-000-000-000-000-000\",\n sheltered: \"965-002-000-000-000-000-000\",\n service_delivered: \"965-003-000-000-000-000-000\",\n met: \"965-004-000-000-000-000-000\",\n advertised: \"965-005-000-000-000-000-000\",\n arrested: \"965-006-000-000-000-000-000\",\n visited: \"965-007-000-000-000-000-000\",\n child_welfare_visit: \"965-008-000-000-000-000-000\",\n incident: \"965-009-000-000-000-000-000\",\n other: \"965-010-000-000-000-000-000\",\n} as const;\n\nexport type ActivityTypeKey = keyof typeof ActivityTypeKeys;\n\n/**\n * Key → positional code map for the `provenance_source_id` CVC domain (provenance source id; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `provenance_source_id` · Version: 1.0.0 · Entries: 13\n */\nexport const ProvenanceSourceIdKeys = {\n missingness_root: \"966-000-000-000-000-000-000\",\n unknown: \"966-000-000-000-000-000-001\",\n anonymous: \"966-000-000-000-000-000-002\",\n data_not_collected: \"966-000-000-000-000-000-003\",\n client_self_report: \"966-001-000-000-000-000-000\",\n system_derived_ads: \"966-002-000-000-000-000-000\",\n system_derived_geocoder: \"966-003-000-000-000-000-000\",\n staff_observation: \"966-004-000-000-000-000-000\",\n intake_form: \"966-005-000-000-000-000-000\",\n referral_partner: \"966-006-000-000-000-000-000\",\n law_enforcement: \"966-007-000-000-000-000-000\",\n id_document: \"966-008-000-000-000-000-000\",\n social_profile: \"966-009-000-000-000-000-000\",\n} as const;\n\nexport type ProvenanceSourceIdKey = keyof typeof ProvenanceSourceIdKeys;\n\n/**\n * Key → positional code map for the `radius_bucket` CVC domain (search radius bucket; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `radius_bucket` · Version: 1.0.0 · Entries: 9\n */\nexport const RadiusBucketKeys = {\n missingness_root: \"967-000-000-000-000-000-000\",\n unknown: \"967-000-000-000-000-000-001\",\n anonymous: \"967-000-000-000-000-000-002\",\n data_not_collected: \"967-000-000-000-000-000-003\",\n mi_10: \"967-001-000-000-000-000-000\",\n mi_50: \"967-002-000-000-000-000-000\",\n mi_100: \"967-003-000-000-000-000-000\",\n mi_250: \"967-004-000-000-000-000-000\",\n mi_500: \"967-005-000-000-000-000-000\",\n} as const;\n\nexport type RadiusBucketKey = keyof typeof RadiusBucketKeys;\n\n/**\n * Key → positional code map for the `contact_link_type` CVC domain (contact link type; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `contact_link_type` · Version: 1.0.0 · Entries: 8\n */\nexport const ContactLinkTypeKeys = {\n missingness_root: \"968-000-000-000-000-000-000\",\n unknown: \"968-000-000-000-000-000-001\",\n anonymous: \"968-000-000-000-000-000-002\",\n data_not_collected: \"968-000-000-000-000-000-003\",\n belongs: \"968-001-000-000-000-000-000\",\n associated: \"968-002-000-000-000-000-000\",\n advertises: \"968-003-000-000-000-000-000\",\n contacted: \"968-004-000-000-000-000-000\",\n} as const;\n\nexport type ContactLinkTypeKey = keyof typeof ContactLinkTypeKeys;\n\n/**\n * Key → positional code map for the `suggestion_source` CVC domain (goal suggestion source; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `suggestion_source` · Version: 1.0.0 · Entries: 6\n */\nexport const SuggestionSourceKeys = {\n missingness_root: \"969-000-000-000-000-000-000\",\n unknown: \"969-000-000-000-000-000-001\",\n anonymous: \"969-000-000-000-000-000-002\",\n data_not_collected: \"969-000-000-000-000-000-003\",\n lap: \"969-001-000-000-000-000-000\",\n ps_step_4: \"969-002-000-000-000-000-000\",\n} as const;\n\nexport type SuggestionSourceKey = keyof typeof SuggestionSourceKeys;\n\n/**\n * Key → positional code map for the `roi_method` CVC domain (ROI delivery method; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `roi_method` · Version: 1.0.0 · Entries: 10\n */\nexport const RoiMethodKeys = {\n missingness_root: \"970-000-000-000-000-000-000\",\n unknown: \"970-000-000-000-000-000-001\",\n anonymous: \"970-000-000-000-000-000-002\",\n data_not_collected: \"970-000-000-000-000-000-003\",\n thread_caseshare: \"970-001-000-000-000-000-000\",\n thread_magic_link: \"970-002-000-000-000-000-000\",\n email: \"970-003-000-000-000-000-000\",\n fax: \"970-004-000-000-000-000-000\",\n secure_portal: \"970-005-000-000-000-000-000\",\n in_person: \"970-006-000-000-000-000-000\",\n} as const;\n\nexport type RoiMethodKey = keyof typeof RoiMethodKeys;\n\n/**\n * Key → positional code map for the `session_note_visibility` CVC domain (session-note visibility; PROVISIONAL, pending Notion ratification).\n *\n * Domain: `session_note_visibility` · Version: 1.0.0 · Entries: 7\n */\nexport const SessionNoteVisibilityKeys = {\n missingness_root: \"971-000-000-000-000-000-000\",\n unknown: \"971-000-000-000-000-000-001\",\n anonymous: \"971-000-000-000-000-000-002\",\n data_not_collected: \"971-000-000-000-000-000-003\",\n default: \"971-001-000-000-000-000-000\",\n account: \"971-002-000-000-000-000-000\",\n private: \"971-003-000-000-000-000-000\",\n} as const;\n\nexport type SessionNoteVisibilityKey = keyof typeof SessionNoteVisibilityKeys;\n\n/**\n * Key → positional code map for the `special_needs_disabilities` CVC domain (DRAFT-TEMPORARY direct import from prototype, pending Notion ratification).\n *\n * Domain: `special_needs_disabilities` · Version: 1.0.0 · Entries: 14\n */\nexport const SpecialNeedsDisabilitiesKeys = {\n missingness_root: \"972-000-000-000-000-000-000\",\n unknown: \"972-000-000-000-000-000-001\",\n anonymous: \"972-000-000-000-000-000-002\",\n data_not_collected: \"972-000-000-000-000-000-003\",\n mental_illness: \"972-001-000-000-000-000-000\",\n cognitive_developmental: \"972-002-000-000-000-000-000\",\n physical_disability: \"972-003-000-000-000-000-000\",\n deaf_hard_of_hearing: \"972-004-000-000-000-000-000\",\n chronic_health_condition: \"972-005-000-000-000-000-000\",\n hiv_aids: \"972-006-000-000-000-000-000\",\n alcohol_abuse: \"972-007-000-000-000-000-000\",\n drug_use_abuse: \"972-008-000-000-000-000-000\",\n unknown_but_exists: \"972-009-000-000-000-000-000\",\n other: \"972-010-000-000-000-000-000\",\n} as const;\n\nexport type SpecialNeedsDisabilitiesKey = keyof typeof SpecialNeedsDisabilitiesKeys;\n\n/**\n * Key → positional code map for the `hiv_status` CVC domain (DRAFT-TEMPORARY direct import from prototype, pending Notion ratification).\n *\n * Domain: `hiv_status` · Version: 1.0.0 · Entries: 6\n */\nexport const HivStatusKeys = {\n missingness_root: \"973-000-000-000-000-000-000\",\n unknown: \"973-000-000-000-000-000-001\",\n anonymous: \"973-000-000-000-000-000-002\",\n data_not_collected: \"973-000-000-000-000-000-003\",\n yes: \"973-001-000-000-000-000-000\",\n no: \"973-002-000-000-000-000-000\",\n} as const;\n\nexport type HivStatusKey = keyof typeof HivStatusKeys;\n\n/**\n * Key → positional code map for the `mental_health_status` CVC domain (DRAFT-TEMPORARY direct import from prototype, pending Notion ratification).\n *\n * Domain: `mental_health_status` · Version: 1.0.0 · Entries: 6\n */\nexport const MentalHealthStatusKeys = {\n missingness_root: \"974-000-000-000-000-000-000\",\n unknown: \"974-000-000-000-000-000-001\",\n anonymous: \"974-000-000-000-000-000-002\",\n data_not_collected: \"974-000-000-000-000-000-003\",\n yes: \"974-001-000-000-000-000-000\",\n no: \"974-002-000-000-000-000-000\",\n} as const;\n\nexport type MentalHealthStatusKey = keyof typeof MentalHealthStatusKeys;\n\n/**\n * Key → positional code map for the `child_change_type` CVC domain (DRAFT-TEMPORARY direct import from prototype, pending Notion ratification).\n *\n * Domain: `child_change_type` · Version: 1.0.0 · Entries: 15\n */\nexport const ChildChangeTypeKeys = {\n missingness_root: \"976-000-000-000-000-000-000\",\n unknown: \"976-000-000-000-000-000-001\",\n anonymous: \"976-000-000-000-000-000-002\",\n data_not_collected: \"976-000-000-000-000-000-003\",\n child_added: \"976-001-000-000-000-000-000\",\n child_updated: \"976-002-000-000-000-000-000\",\n child_archived: \"976-003-000-000-000-000-000\",\n child_restored: \"976-004-000-000-000-000-000\",\n child_education_updated: \"976-005-000-000-000-000-000\",\n child_health_updated: \"976-006-000-000-000-000-000\",\n child_custody_updated: \"976-007-000-000-000-000-000\",\n child_parental_rights_updated: \"976-008-000-000-000-000-000\",\n child_behavioral_concerns_updated: \"976-009-000-000-000-000-000\",\n child_household_linked: \"976-010-000-000-000-000-000\",\n child_household_unlinked: \"976-011-000-000-000-000-000\",\n} as const;\n\nexport type ChildChangeTypeKey = keyof typeof ChildChangeTypeKeys;\n\n/**\n * Key → positional code map for the `immigration_legal_status_change_type` CVC domain (DRAFT-TEMPORARY direct import from prototype, pending Notion ratification).\n *\n * Domain: `immigration_legal_status_change_type` · Version: 1.0.0 · Entries: 14\n */\nexport const ImmigrationLegalStatusChangeTypeKeys = {\n missingness_root: \"977-000-000-000-000-000-000\",\n unknown: \"977-000-000-000-000-000-001\",\n anonymous: \"977-000-000-000-000-000-002\",\n data_not_collected: \"977-000-000-000-000-000-003\",\n immigration_legal_status_section_declined: \"977-001-000-000-000-000-000\",\n immigration_legal_status_section_recaptured: \"977-002-000-000-000-000-000\",\n immigration_visa_captured: \"977-003-000-000-000-000-000\",\n immigration_visa_updated: \"977-004-000-000-000-000-000\",\n identification_status_captured: \"977-005-000-000-000-000-000\",\n identification_status_updated: \"977-006-000-000-000-000-000\",\n le_report_status_captured: \"977-007-000-000-000-000-000\",\n le_report_status_updated: \"977-008-000-000-000-000-000\",\n trafficking_screening_captured: \"977-009-000-000-000-000-000\",\n trafficking_screening_updated: \"977-010-000-000-000-000-000\",\n} as const;\n\nexport type ImmigrationLegalStatusChangeTypeKey = keyof typeof ImmigrationLegalStatusChangeTypeKeys;\n\n/**\n * Key → positional code map for the `program_enrollment_change_type` CVC domain (DRAFT-TEMPORARY direct import from prototype, pending Notion ratification).\n *\n * Domain: `program_enrollment_change_type` · Version: 1.0.0 · Entries: 13\n */\nexport const ProgramEnrollmentChangeTypeKeys = {\n missingness_root: \"978-000-000-000-000-000-000\",\n unknown: \"978-000-000-000-000-000-001\",\n anonymous: \"978-000-000-000-000-000-002\",\n data_not_collected: \"978-000-000-000-000-000-003\",\n program_enrollment_drafted: \"978-001-000-000-000-000-000\",\n program_enrollment_submitted: \"978-002-000-000-000-000-000\",\n program_enrollment_approved: \"978-003-000-000-000-000-000\",\n program_enrollment_activated: \"978-004-000-000-000-000-000\",\n program_enrollment_denied: \"978-005-000-000-000-000-000\",\n program_enrollment_closed: \"978-006-000-000-000-000-000\",\n program_enrollment_expired: \"978-007-000-000-000-000-000\",\n program_enrollment_restored: \"978-008-000-000-000-000-000\",\n program_prior_history_captured: \"978-009-000-000-000-000-000\",\n} as const;\n\nexport type ProgramEnrollmentChangeTypeKey = keyof typeof ProgramEnrollmentChangeTypeKeys;\n\n/**\n * Key → positional code map for the `romantic_relationship_change_type` CVC domain (DRAFT-TEMPORARY direct import from prototype, pending Notion ratification).\n *\n * Domain: `romantic_relationship_change_type` · Version: 1.0.0 · Entries: 16\n */\nexport const RomanticRelationshipChangeTypeKeys = {\n missingness_root: \"979-000-000-000-000-000-000\",\n unknown: \"979-000-000-000-000-000-001\",\n anonymous: \"979-000-000-000-000-000-002\",\n data_not_collected: \"979-000-000-000-000-000-003\",\n romantic_partner_added: \"979-001-000-000-000-000-000\",\n romantic_partner_updated: \"979-002-000-000-000-000-000\",\n romantic_partner_archived: \"979-003-000-000-000-000-000\",\n romantic_partner_restored: \"979-004-000-000-000-000-000\",\n romantic_partner_ties_changed: \"979-005-000-000-000-000-000\",\n romantic_partner_dynamics_changed: \"979-006-000-000-000-000-000\",\n marital_status_set: \"979-007-000-000-000-000-000\",\n marital_status_changed: \"979-008-000-000-000-000-000\",\n marital_status_declined: \"979-009-000-000-000-000-000\",\n relationship_status_set: \"979-010-000-000-000-000-000\",\n relationship_status_changed: \"979-011-000-000-000-000-000\",\n relationship_status_declined: \"979-012-000-000-000-000-000\",\n} as const;\n\nexport type RomanticRelationshipChangeTypeKey = keyof typeof RomanticRelationshipChangeTypeKeys;\n\n/**\n * Key → positional code map for the `risk_category` CVC domain (DRAFT-TEMPORARY; names sourced from @hti/scoring weights/risk.weights.json, the declared risk-taxonomy SOT. Keys `cat_i`..`cat_ix` mirror PAVE's live `TraCategoryId` union, so this doubles as the canonical crosswalk. Weights/aggregation stay in @hti/scoring).\n *\n * Domain: `risk_category` · Version: 1.0.0 · Entries: 13\n */\nexport const RiskCategoryKeys = {\n missingness_root: \"980-000-000-000-000-000-000\",\n unknown: \"980-000-000-000-000-000-001\",\n anonymous: \"980-000-000-000-000-000-002\",\n data_not_collected: \"980-000-000-000-000-000-003\",\n cat_i: \"980-001-000-000-000-000-000\",\n cat_ii: \"980-002-000-000-000-000-000\",\n cat_iii: \"980-003-000-000-000-000-000\",\n cat_iv: \"980-004-000-000-000-000-000\",\n cat_v: \"980-005-000-000-000-000-000\",\n cat_vi: \"980-006-000-000-000-000-000\",\n cat_vii: \"980-007-000-000-000-000-000\",\n cat_viii: \"980-008-000-000-000-000-000\",\n cat_ix: \"980-009-000-000-000-000-000\",\n} as const;\n\nexport type RiskCategoryKey = keyof typeof RiskCategoryKeys;\n\n/**\n * Key → positional code map for the `core_functions` CVC domain (CANONICAL Notion CVC-133 `core - functions`, Active v2.0 — the Canonical Authorization Model function registry; SOT v1.3.0 is GENERATED from the prototype repo's data/cvcs/core_functions.yaml by scripts/gen-core-functions.py: 113 functions — the 78 published by 1.0.0/1.1.0 at their codes plus 35 appended at 133-079 … 133-113 — the roles → functions → gates/tiers graph is built over. NOT provisional numbering. Each entry carries canon's `v1` / `retired` flags as structured booleans (since 1.3.0, read by the shared authorization resolver); Platform Relevance, user/admin relevance and Category ride the definition suffix; bounds are not carried).\n *\n * Domain: `core_functions` · Version: 1.4.0 · Entries: 117\n */\nexport const CoreFunctionsKeys = {\n missingness_root: \"133-000-000-000-000-000-000\",\n unknown: \"133-000-000-000-000-000-001\",\n anonymous: \"133-000-000-000-000-000-002\",\n data_not_collected: \"133-000-000-000-000-000-003\",\n account_suspend: \"133-001-000-000-000-000-000\",\n aggregate_data_query_generate: \"133-002-000-000-000-000-000\",\n api_key_manage: \"133-003-000-000-000-000-000\",\n assessments_conduct: \"133-004-000-000-000-000-000\",\n audit_anomaly_review: \"133-005-000-000-000-000-000\",\n audit_log_view_member: \"133-006-000-000-000-000-000\",\n audit_log_view_team: \"133-007-000-000-000-000-000\",\n auth_model_manage_platform: \"133-008-000-000-000-000-000\",\n break_glass: \"133-009-000-000-000-000-000\",\n case_assign_reassign: \"133-010-000-000-000-000-000\",\n case_claim: \"133-011-000-000-000-000-000\",\n case_collaborator_add: \"133-012-000-000-000-000-000\",\n case_edit: \"133-013-000-000-000-000-000\",\n case_needs_action_flag_manage: \"133-014-000-000-000-000-000\",\n case_outcomes_edit: \"133-015-000-000-000-000-000\",\n case_purge: \"133-016-000-000-000-000-000\",\n case_reopen: \"133-017-000-000-000-000-000\",\n case_side_panel_use: \"133-018-000-000-000-000-000\",\n case_transfer_bulk: \"133-019-000-000-000-000-000\",\n case_view: \"133-020-000-000-000-000-000\",\n ci_periodic_review: \"133-021-000-000-000-000-000\",\n ci_record_purge_or_retire: \"133-022-000-000-000-000-000\",\n ci_record_validate: \"133-023-000-000-000-000-000\",\n ci_to_evidence_export_authorize: \"133-024-000-000-000-000-000\",\n dashboard_approve_shared: \"133-025-000-000-000-000-000\",\n data_qa_workflow_run: \"133-026-000-000-000-000-000\",\n deconfliction_alert_acknowledge: \"133-027-000-000-000-000-000\",\n determination_perform: \"133-028-000-000-000-000-000\",\n disclose_external: \"133-029-000-000-000-000-000\",\n disclose_external_request: \"133-030-000-000-000-000-000\",\n export_deidentified: \"133-031-000-000-000-000-000\",\n export_disclosure_log_review: \"133-032-000-000-000-000-000\",\n export_template_config_manage: \"133-033-000-000-000-000-000\",\n gov_data_quality_review: \"133-034-000-000-000-000-000\",\n idb_record_create: \"133-035-000-000-000-000-000\",\n incident_response_remediate: \"133-036-000-000-000-000-000\",\n investigation_create_claim: \"133-037-000-000-000-000-000\",\n investigative_database_search: \"133-038-000-000-000-000-000\",\n lead_create: \"133-039-000-000-000-000-000\",\n lead_publish: \"133-040-000-000-000-000-000\",\n magic_link_share_send: \"133-041-000-000-000-000-000\",\n member_account_report_generate: \"133-042-000-000-000-000-000\",\n member_onboarding_support: \"133-043-000-000-000-000-000\",\n open_source_search: \"133-044-000-000-000-000-000\",\n outbound_share_followup_review: \"133-045-000-000-000-000-000\",\n person_association_update: \"133-046-000-000-000-000-000\",\n platform_perm_modify: \"133-047-000-000-000-000-000\",\n platform_policy_enforcement_manage: \"133-048-000-000-000-000-000\",\n record_print: \"133-049-000-000-000-000-000\",\n referral_receive_external: \"133-050-000-000-000-000-000\",\n referral_receive_internal: \"133-051-000-000-000-000-000\",\n referral_send_external: \"133-052-000-000-000-000-000\",\n referral_send_internal: \"133-053-000-000-000-000-000\",\n reporting_dashboard_config_manage: \"133-054-000-000-000-000-000\",\n retention_compliance_review: \"133-055-000-000-000-000-000\",\n roi_submit_manage: \"133-056-000-000-000-000-000\",\n role_assign: \"133-057-000-000-000-000-000\",\n roles_accounts_toggle: \"133-058-000-000-000-000-000\",\n sandbox_environment_manage: \"133-059-000-000-000-000-000\",\n screening_conduct: \"133-060-000-000-000-000-000\",\n screening_view: \"133-061-000-000-000-000-000\",\n security_restrict_apply: \"133-062-000-000-000-000-000\",\n session_create: \"133-063-000-000-000-000-000\",\n share_approve: \"133-064-000-000-000-000-000\",\n share_config: \"133-065-000-000-000-000-000\",\n share_rule_approve_cross_agency: \"133-066-000-000-000-000-000\",\n share_vsp_to_le: \"133-067-000-000-000-000-000\",\n support_ticket_triage: \"133-068-000-000-000-000-000\",\n system_diagnostics_view: \"133-069-000-000-000-000-000\",\n team_config_manage: \"133-070-000-000-000-000-000\",\n team_membership_manage: \"133-071-000-000-000-000-000\",\n team_workflow_config_manage: \"133-072-000-000-000-000-000\",\n thread_share_accept: \"133-073-000-000-000-000-000\",\n thread_share_send: \"133-074-000-000-000-000-000\",\n training_content_upload: \"133-075-000-000-000-000-000\",\n training_gate_manage: \"133-076-000-000-000-000-000\",\n usr_manage: \"133-077-000-000-000-000-000\",\n note_open_departed_author: \"133-078-000-000-000-000-000\",\n agency_info_manage: \"133-079-000-000-000-000-000\",\n srl_manage: \"133-080-000-000-000-000-000\",\n mandatory_report_send: \"133-081-000-000-000-000-000\",\n indicator_manual_add: \"133-082-000-000-000-000-000\",\n message_send: \"133-083-000-000-000-000-000\",\n workgroup_manage: \"133-084-000-000-000-000-000\",\n message_moderate: \"133-085-000-000-000-000-000\",\n announcement_publish: \"133-086-000-000-000-000-000\",\n supervisee_thread_view: \"133-087-000-000-000-000-000\",\n case_status_manage: \"133-088-000-000-000-000-000\",\n enrollment_manage: \"133-089-000-000-000-000-000\",\n exit_discharge_conduct: \"133-090-000-000-000-000-000\",\n goals_plan_manage: \"133-091-000-000-000-000-000\",\n lead_triage_manage: \"133-092-000-000-000-000-000\",\n milestone_log: \"133-093-000-000-000-000-000\",\n needs_priorities_conduct: \"133-094-000-000-000-000-000\",\n profile_domain_edit: \"133-095-000-000-000-000-000\",\n record_activity_view: \"133-096-000-000-000-000-000\",\n service_log_manage: \"133-097-000-000-000-000-000\",\n case_close: \"133-098-000-000-000-000-000\",\n case_visibility_manage: \"133-099-000-000-000-000-000\",\n person_merge_manage: \"133-100-000-000-000-000-000\",\n investigation_session_run: \"133-101-000-000-000-000-000\",\n lead_route_assign: \"133-102-000-000-000-000-000\",\n onboarding_config_sign_off: \"133-103-000-000-000-000-000\",\n hmis_export_generate: \"133-104-000-000-000-000-000\",\n team_share_narrowing: \"133-105-000-000-000-000-000\",\n viewing_config_manage: \"133-106-000-000-000-000-000\",\n network_corpus_access: \"133-107-000-000-000-000-000\",\n viewing_level_1_search: \"133-108-000-000-000-000-000\",\n viewing_level_2_autocomplete: \"133-109-000-000-000-000-000\",\n viewing_level_3_components: \"133-110-000-000-000-000-000\",\n investigative_request_send: \"133-111-000-000-000-000-000\",\n deconfliction_unmask: \"133-112-000-000-000-000-000\",\n share_revoke: \"133-113-000-000-000-000-000\",\n} as const;\n\nexport type CoreFunctionsKey = keyof typeof CoreFunctionsKeys;\n\n/**\n * Key → positional code map for the `needs_assessment_change_type` CVC domain (DRAFT-TEMPORARY; the 9 fine-grained per-mutation Needs-Assessment CAR change types, sourced from PAVE `@pave/domain` NEEDS_ASSESSMENT_CHANGE_TYPES. CASING NORMALIZED: PAVE stores SCREAMING_SNAKE, CVC keys are lower_snake. DISTINCT from the coarse 3-verb section-boundary registry NEEDS_ASSESSMENT_VERB_REGISTRY).\n *\n * Domain: `needs_assessment_change_type` · Version: 1.0.0 · Entries: 13\n */\nexport const NeedsAssessmentChangeTypeKeys = {\n missingness_root: \"982-000-000-000-000-000-000\",\n unknown: \"982-000-000-000-000-000-001\",\n anonymous: \"982-000-000-000-000-000-002\",\n data_not_collected: \"982-000-000-000-000-000-003\",\n answer_recorded: \"982-001-000-000-000-000-000\",\n answer_changed: \"982-002-000-000-000-000-000\",\n answer_cleared: \"982-003-000-000-000-000-000\",\n section_declined: \"982-004-000-000-000-000-000\",\n section_undeclined: \"982-005-000-000-000-000-000\",\n section_submitted: \"982-006-000-000-000-000-000\",\n assessment_submitted: \"982-007-000-000-000-000-000\",\n service_instance_generated: \"982-008-000-000-000-000-000\",\n service_instance_linked: \"982-009-000-000-000-000-000\",\n} as const;\n\nexport type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;\n\n/**\n * Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236 v4 tree, SOT v2.1.0: 115 live rows + 27 RETIRED tombstones. Canon depth 0–3 — top layer (System metadata · Narrative notes · Primary client · Other named persons), then client category / person type, then sub-category / a person type's category, then instrument row / a person type's sub-category — read off parentCode / parentKey, NOT the code: every v1.1.0 code is unchanged and new rows append. A canon `.` is `__` in the key (`offenders__identifying`; canon spelling on `canonicalCode`). Every LIVE row but the 28 instrument rows and `identifying__other` is selectable (select-all at any level); detect a category by `rowType`, not `selectable`. Tombstones keep their codes so a stored value resolves, are `selectable: false` + `retired: true`, and name their SELECTION reading in `successors` (a restriction resolves via the `subtract` lines: `restrictionSuccessors`); the envelope `migrations` block is the v3 → v4 from-to table, applied at READ time (a v2-era or unstamped list goes through canon's v2 → v3 table first; `widens: true` marks readings wider than v3; on those lines `releaseReading` says whether a signed release or share keeps the code's v3 grain (`retain`: the tombstone's `v3Fields`, read-only) or reads its successor, and `policyReading: successor` that a policy or preset takes the successor with a dated version row). Distinct from the sibling `roi_scope` domain, the LEGACY flat item vocabulary: every one of its 27 substantive keys is an entry here, spelled identically)\n *\n * Domain: `core_information_scope` · Version: 2.1.0 · Entries: 146\n */\nexport const CoreInformationScopeKeys = {\n missingness_root: \"236-000-000-000-000-000-000\",\n unknown: \"236-000-000-000-000-000-001\",\n anonymous: \"236-000-000-000-000-000-002\",\n data_not_collected: \"236-000-000-000-000-000-003\",\n identifying: \"236-001-000-000-000-000-000\",\n names: \"236-001-001-000-000-000-000\",\n dob: \"236-001-002-000-000-000-000\",\n addresses: \"236-001-003-000-000-000-000\",\n additional_ids: \"236-001-004-000-000-000-000\",\n demographics: \"236-001-005-000-000-000-000\",\n identifying__other: \"236-001-006-000-000-000-000\",\n risk: \"236-002-000-000-000-000-000\",\n screen_indicators: \"236-002-001-000-000-000-000\",\n victimization: \"236-002-002-000-000-000-000\",\n ida_full: \"236-002-003-000-000-000-000\",\n ida_consid: \"236-002-004-000-000-000-000\",\n initial_screen: \"236-002-005-000-000-000-000\",\n tra: \"236-002-006-000-000-000-000\",\n lap: \"236-002-007-000-000-000-000\",\n danger_assessment: \"236-002-008-000-000-000-000\",\n injury_and_strangulation: \"236-002-009-000-000-000-000\",\n stalking_assessment: \"236-002-010-000-000-000-000\",\n ae_intake: \"236-002-011-000-000-000-000\",\n hope_scale: \"236-002-012-000-000-000-000\",\n assessment_records: \"236-002-013-000-000-000-000\",\n determinations: \"236-002-014-000-000-000-000\",\n offender_facilitator: \"236-002-015-000-000-000-000\",\n system_involvement: \"236-002-016-000-000-000-000\",\n derived_risk_signals: \"236-002-017-000-000-000-000\",\n contact: \"236-003-000-000-000-000-000\",\n contact_info: \"236-003-001-000-000-000-000\",\n safe_locations: \"236-003-002-000-000-000-000\",\n priorities_safety: \"236-003-003-000-000-000-000\",\n encounter_location: \"236-003-004-000-000-000-000\",\n services: \"236-004-000-000-000-000-000\",\n contact_history: \"236-004-001-000-000-000-000\",\n service_history: \"236-004-002-000-000-000-000\",\n plans_goals: \"236-004-003-000-000-000-000\",\n notes: \"236-005-000-000-000-000-000\",\n screen_notes: \"236-005-001-000-000-000-000\",\n case_notes: \"236-005-002-000-000-000-000\",\n background: \"236-005-003-000-000-000-000\",\n session_summary: \"236-005-004-000-000-000-000\",\n health_accommodation: \"236-006-000-000-000-000-000\",\n accommodation_needs: \"236-006-001-000-000-000-000\",\n disability_subtypes: \"236-006-002-000-000-000-000\",\n mental_health_status: \"236-006-003-000-000-000-000\",\n substance_use_status: \"236-006-004-000-000-000-000\",\n chronic_health_status: \"236-006-005-000-000-000-000\",\n hiv_status: \"236-006-006-000-000-000-000\",\n mental_health_screen: \"236-006-007-000-000-000-000\",\n trauma_and_coping_screen: \"236-006-008-000-000-000-000\",\n behavioral_health_intake: \"236-006-009-000-000-000-000\",\n health_status: \"236-006-010-000-000-000-000\",\n immigration_legal_status: \"236-007-000-000-000-000-000\",\n immigration_status: \"236-007-001-000-000-000-000\",\n uscis_alien_number: \"236-007-002-000-000-000-000\",\n federal_protection_applications: \"236-007-003-000-000-000-000\",\n tvap_enrollment: \"236-007-004-000-000-000-000\",\n le_report_status: \"236-007-005-000-000-000-000\",\n immigration_applications: \"236-007-006-000-000-000-000\",\n system: \"236-008-000-000-000-000-000\",\n system_info: \"236-008-001-000-000-000-000\",\n network_associations: \"236-009-000-000-000-000-000\",\n network_membership: \"236-009-001-000-000-000-000\",\n persona_links: \"236-009-002-000-000-000-000\",\n commercial_activity: \"236-010-000-000-000-000-000\",\n ad_content: \"236-010-001-000-000-000-000\",\n commercial_patterns: \"236-010-002-000-000-000-000\",\n investigative_work_product: \"236-011-000-000-000-000-000\",\n case_determinations: \"236-011-001-000-000-000-000\",\n case_lifecycle: \"236-011-002-000-000-000-000\",\n case_attachments: \"236-011-003-000-000-000-000\",\n object_identifiers: \"236-012-000-000-000-000-000\",\n phone_identifiers: \"236-012-001-000-000-000-000\",\n object_identity_attributes: \"236-012-002-000-000-000-000\",\n instruments: \"236-013-000-000-000-000-000\",\n instrument_summary: \"236-013-001-000-000-000-000\",\n summary_initial_screen: \"236-013-001-001-000-000-000\",\n summary_mental_health_screen: \"236-013-001-002-000-000-000\",\n summary_behavioral_health_intake: \"236-013-001-003-000-000-000\",\n summary_trauma_and_coping_screen: \"236-013-001-004-000-000-000\",\n summary_ae_intake: \"236-013-001-005-000-000-000\",\n summary_ida: \"236-013-001-006-000-000-000\",\n summary_lap: \"236-013-001-007-000-000-000\",\n summary_danger_assessment: \"236-013-001-008-000-000-000\",\n summary_stalking_assessment: \"236-013-001-009-000-000-000\",\n summary_injury_and_strangulation: \"236-013-001-010-000-000-000\",\n summary_hope_scale: \"236-013-001-011-000-000-000\",\n summary_needs_assessment: \"236-013-001-012-000-000-000\",\n summary_tra: \"236-013-001-013-000-000-000\",\n summary_findings: \"236-013-001-014-000-000-000\",\n instrument_full: \"236-013-002-000-000-000-000\",\n full_initial_screen: \"236-013-002-001-000-000-000\",\n full_mental_health_screen: \"236-013-002-002-000-000-000\",\n full_behavioral_health_intake: \"236-013-002-003-000-000-000\",\n full_trauma_and_coping_screen: \"236-013-002-004-000-000-000\",\n full_ae_intake: \"236-013-002-005-000-000-000\",\n full_ida: \"236-013-002-006-000-000-000\",\n full_lap: \"236-013-002-007-000-000-000\",\n full_danger_assessment: \"236-013-002-008-000-000-000\",\n full_stalking_assessment: \"236-013-002-009-000-000-000\",\n full_injury_and_strangulation: \"236-013-002-010-000-000-000\",\n full_hope_scale: \"236-013-002-011-000-000-000\",\n full_needs_assessment: \"236-013-002-012-000-000-000\",\n full_tra: \"236-013-002-013-000-000-000\",\n full_findings: \"236-013-002-014-000-000-000\",\n relationships_household: \"236-014-000-000-000-000-000\",\n primary_client: \"236-015-000-000-000-000-000\",\n other_named_persons: \"236-016-000-000-000-000-000\",\n offenders: \"236-016-001-000-000-000-000\",\n offenders__identifying: \"236-016-001-001-000-000-000\",\n offenders__risk: \"236-016-001-002-000-000-000\",\n offenders__contact: \"236-016-001-003-000-000-000\",\n offenders__safe_locations: \"236-016-001-003-002-000-000\",\n offenders__services: \"236-016-001-004-000-000-000\",\n offenders__health_accommodation: \"236-016-001-006-000-000-000\",\n offenders__immigration_legal_status: \"236-016-001-007-000-000-000\",\n offenders__instruments: \"236-016-001-013-000-000-000\",\n offenders__instrument_summary: \"236-016-001-013-001-000-000\",\n offenders__instrument_full: \"236-016-001-013-002-000-000\",\n offenders__relationships_household: \"236-016-001-014-000-000-000\",\n family: \"236-016-002-000-000-000-000\",\n family__identifying: \"236-016-002-001-000-000-000\",\n family__risk: \"236-016-002-002-000-000-000\",\n family__contact: \"236-016-002-003-000-000-000\",\n family__safe_locations: \"236-016-002-003-002-000-000\",\n family__services: \"236-016-002-004-000-000-000\",\n family__health_accommodation: \"236-016-002-006-000-000-000\",\n family__immigration_legal_status: \"236-016-002-007-000-000-000\",\n family__instruments: \"236-016-002-013-000-000-000\",\n family__instrument_summary: \"236-016-002-013-001-000-000\",\n family__instrument_full: \"236-016-002-013-002-000-000\",\n family__relationships_household: \"236-016-002-014-000-000-000\",\n others: \"236-016-003-000-000-000-000\",\n others__identifying: \"236-016-003-001-000-000-000\",\n others__risk: \"236-016-003-002-000-000-000\",\n others__contact: \"236-016-003-003-000-000-000\",\n others__safe_locations: \"236-016-003-003-002-000-000\",\n others__services: \"236-016-003-004-000-000-000\",\n others__health_accommodation: \"236-016-003-006-000-000-000\",\n others__immigration_legal_status: \"236-016-003-007-000-000-000\",\n others__instruments: \"236-016-003-013-000-000-000\",\n others__instrument_summary: \"236-016-003-013-001-000-000\",\n others__instrument_full: \"236-016-003-013-002-000-000\",\n others__relationships_household: \"236-016-003-014-000-000-000\",\n} as const;\n\nexport type CoreInformationScopeKey = keyof typeof CoreInformationScopeKeys;\n\n/**\n * Key → positional code map for the `roi_scope` CVC domain (DRAFT-TEMPORARY; LEGACY flat item vocabulary, superseded for new work by `core_information_scope` (CVC-236). 27 ROI scope ITEMS: 14 live + 13 RETIRED tombstones, each matching its CVC-236 twin (`screen_notes`, `background` retired 2026-10-05 and include nothing; 11 more retired by the CVC-236 v4 tree, each read through its twin's CVC-236 SOT v2.1.0 `migrations` line: a stored ROI is a signed release, so the 9 health / immigration twins keep the twin's v3 grain (`v3Fields`, read-only) while a policy or preset takes the successor; `ida_full` / `ida_consid` read as their twin's informational line). Tombstones keep their codes so a stored value resolves, but are `selectable: false` + `retired: true` — never offer them. The item axis only — named bundles over these items are ROI_SCOPE_PRESET_NAMES).\n *\n * Domain: `roi_scope` · Version: 1.4.0 · Entries: 31\n */\nexport const RoiScopeKeys = {\n missingness_root: \"983-000-000-000-000-000-000\",\n unknown: \"983-000-000-000-000-000-001\",\n anonymous: \"983-000-000-000-000-000-002\",\n data_not_collected: \"983-000-000-000-000-000-003\",\n names: \"983-001-000-000-000-000-000\",\n dob: \"983-002-000-000-000-000-000\",\n addresses: \"983-003-000-000-000-000-000\",\n additional_ids: \"983-004-000-000-000-000-000\",\n demographics: \"983-005-000-000-000-000-000\",\n screen_indicators: \"983-006-000-000-000-000-000\",\n victimization: \"983-007-000-000-000-000-000\",\n ida_full: \"983-008-000-000-000-000-000\",\n ida_consid: \"983-009-000-000-000-000-000\",\n contact_info: \"983-010-000-000-000-000-000\",\n service_history: \"983-011-000-000-000-000-000\",\n screen_notes: \"983-012-000-000-000-000-000\",\n case_notes: \"983-013-000-000-000-000-000\",\n background: \"983-014-000-000-000-000-000\",\n system_info: \"983-015-000-000-000-000-000\",\n contact_history: \"983-016-000-000-000-000-000\",\n accommodation_needs: \"983-017-000-000-000-000-000\",\n disability_subtypes: \"983-018-000-000-000-000-000\",\n mental_health_status: \"983-019-000-000-000-000-000\",\n substance_use_status: \"983-020-000-000-000-000-000\",\n chronic_health_status: \"983-021-000-000-000-000-000\",\n hiv_status: \"983-022-000-000-000-000-000\",\n immigration_status: \"983-023-000-000-000-000-000\",\n uscis_alien_number: \"983-024-000-000-000-000-000\",\n federal_protection_applications: \"983-025-000-000-000-000-000\",\n tvap_enrollment: \"983-026-000-000-000-000-000\",\n le_report_status: \"983-027-000-000-000-000-000\",\n} as const;\n\nexport type RoiScopeKey = keyof typeof RoiScopeKeys;\n\n/**\n * Key → positional code map for the `roi_status` CVC domain (DRAFT-TEMPORARY; the 5-state lifecycle of a STORED Release of Information, sourced from PAVE `@pave/domain` ROI_STATUSES. DISTINCT from ROI_SEED_STATUSES, the recipient-card badge triad valid/expired/none).\n *\n * Domain: `roi_status` · Version: 1.1.0 · Entries: 9\n */\nexport const RoiStatusKeys = {\n missingness_root: \"984-000-000-000-000-000-000\",\n unknown: \"984-000-000-000-000-000-001\",\n anonymous: \"984-000-000-000-000-000-002\",\n data_not_collected: \"984-000-000-000-000-000-003\",\n draft: \"984-001-000-000-000-000-000\",\n active: \"984-002-000-000-000-000-000\",\n expired: \"984-003-000-000-000-000-000\",\n revoked: \"984-005-000-000-000-000-000\",\n superseded: \"984-006-000-000-000-000-000\",\n} as const;\n\nexport type RoiStatusKey = keyof typeof RoiStatusKeys;\n\n/**\n * Key → positional code map for the `core_referral_outcome` CVC domain (DRAFT-TEMPORARY; the binary referral-outcome axis attained / not_attained, grounded in the HMIS FY2026 Data Standards “P2 Referrals Provided” element + IC-59. The REASON a referral was not attained is a separate axis and is deliberately not folded in).\n *\n * Domain: `core_referral_outcome` · Version: 1.0.0 · Entries: 6\n */\nexport const CoreReferralOutcomeKeys = {\n missingness_root: \"975-000-000-000-000-000-000\",\n unknown: \"975-000-000-000-000-000-001\",\n anonymous: \"975-000-000-000-000-000-002\",\n data_not_collected: \"975-000-000-000-000-000-003\",\n attained: \"975-001-000-000-000-000-000\",\n not_attained: \"975-002-000-000-000-000-000\",\n} as const;\n\nexport type CoreReferralOutcomeKey = keyof typeof CoreReferralOutcomeKeys;\n\n/**\n * Key → positional code map for the `dh_state` CVC domain (CVC-233, `core-DH_state`, ready_for_dev). Lifecycle state of a determination / Findings artifact: draft → prov → pend_iss → issued → super. INDEPENDENT axis from CVC-138 `determination_level` (suspected/reported/disclosed/verified), which lives on the assertion at every state. Per-determination, not per-subject. Authored in 0.8.13 once CVC-233 was freed by renumbering `housing_subsidy_types` 233 → 194 — the squat had MASKED this gap.\n *\n * Domain: `dh_state` · Version: 1.0.0 · Entries: 9\n */\nexport const DhStateKeys = {\n missingness_root: \"233-000-000-000-000-000-000\",\n unknown: \"233-000-000-000-000-000-001\",\n anonymous: \"233-000-000-000-000-000-002\",\n data_not_collected: \"233-000-000-000-000-000-003\",\n draft: \"233-001-000-000-000-000-000\",\n prov: \"233-002-000-000-000-000-000\",\n pend_iss: \"233-003-000-000-000-000-000\",\n issued: \"233-004-000-000-000-000-000\",\n super: \"233-005-000-000-000-000-000\",\n} as const;\n\nexport type DhStateKey = keyof typeof DhStateKeys;\n\n/**\n * Key → positional code map for the `core_indicators` CVC domain (CVC-136; 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 two method vocabularies a share and a release speak, and the one\n * reading between them.\n *\n * - A SHARE's `method` — `SHARING_METHOD` (`case_share`, `magic_link`,\n * `email`, …) with its on-screen words `SHARING_METHOD_LABELS`. Lifted\n * unchanged from Thread `@thread/shared` `constants/ic.ts` L343-L374\n * @ thread develop f021be2 (a small pure constant; the keys are the\n * literals PAVE already uses, `apps/web/lib/share-config.ts`).\n * - A RELEASE's approved sending methods — CVC-332 `core-share_method`\n * stored tokens (ROI Data Object § 4, ruling 5, Crysta 2026-10-20:\n * \"Sending methods use the CVC-332 stored tokens in every app\"), derived\n * from this package's `RoiMethodKeys` minus its Level-0 missingness keys.\n * Lifted unchanged from Thread `constants/releaseMethod.ts` L41-L177; the\n * zod write schema (`releaseMethodWriteSchema`) stays in Thread, so no\n * zod schema crosses a package boundary.\n *\n * Reads: a stored `case_share` reads as `thread_caseshare`, a stored\n * `magic_link` as `thread_magic_link`; a retired `physical_mail` reads as\n * itself (it matches no share). Stored rows are never rewritten.\n *\n * Pure: no mongoose, no I/O, no SOT import (`RoiMethodKeys` is the generated\n * key map).\n */\n\nimport {\n RoiMethodKeys as PlatformRoiMethodKeys,\n type RoiMethodKey,\n} from \"../generated/cvc-enums.js\";\n\n// ─── A share's method (Thread constants/ic.ts L343-L374) ────────────────────\n\nexport const SHARING_METHOD = {\n CASE_SHARE: \"case_share\",\n MAGIC_LINK: \"magic_link\",\n EMAIL: \"email\",\n FAX: \"fax\",\n SECURE_PORTAL: \"secure_portal\",\n PHYSICAL_MAIL: \"physical_mail\",\n IN_PERSON: \"in_person\",\n} as const;\n\nexport type SharingMethodValue =\n (typeof SHARING_METHOD)[keyof typeof SHARING_METHOD];\n\nexport const SHARING_METHOD_VALUES = [\n SHARING_METHOD.CASE_SHARE,\n SHARING_METHOD.MAGIC_LINK,\n SHARING_METHOD.EMAIL,\n SHARING_METHOD.FAX,\n SHARING_METHOD.SECURE_PORTAL,\n SHARING_METHOD.PHYSICAL_MAIL,\n SHARING_METHOD.IN_PERSON,\n] as const;\n\nexport const SHARING_METHOD_LABELS: Record<SharingMethodValue, string> = {\n [SHARING_METHOD.CASE_SHARE]: \"CaseShare\",\n [SHARING_METHOD.MAGIC_LINK]: \"Magic Link\",\n [SHARING_METHOD.EMAIL]: \"Email\",\n [SHARING_METHOD.FAX]: \"Fax\",\n [SHARING_METHOD.SECURE_PORTAL]: \"Secure Portal\",\n [SHARING_METHOD.PHYSICAL_MAIL]: \"Physical Mail\",\n [SHARING_METHOD.IN_PERSON]: \"In-Person\",\n};\n\n// ─── A release's methods, CVC-332 (Thread constants/releaseMethod.ts L41-L177)\n\n/** The SOT's Level-0 rows: never a method a client agrees to. */\nconst ROI_METHOD_MISSINGNESS_KEYS = [\n \"missingness_root\",\n \"unknown\",\n \"anonymous\",\n \"data_not_collected\",\n] as const;\n\ntype RoiMethodMissingnessKey = (typeof ROI_METHOD_MISSINGNESS_KEYS)[number];\n\n/** A CVC-332 sending-method token — what a release stores. */\nexport type ReleaseMethodValue = Exclude<RoiMethodKey, RoiMethodMissingnessKey>;\n\nconst MISSINGNESS = new Set<string>(ROI_METHOD_MISSINGNESS_KEYS);\n\n/** Every CVC-332 token, in the SOT's order. */\nexport const RELEASE_METHOD_VALUES = (\n Object.keys(PlatformRoiMethodKeys) as RoiMethodKey[]\n).filter((key): key is ReleaseMethodValue => !MISSINGNESS.has(key)) as [\n ReleaseMethodValue,\n ...ReleaseMethodValue[],\n];\n\n/** Named handles onto the SOT tokens (typed against it — a rename upstream\n * fails the build here). */\nexport const RELEASE_METHOD = {\n CASESHARE: \"thread_caseshare\",\n MAGIC_LINK: \"thread_magic_link\",\n EMAIL: \"email\",\n FAX: \"fax\",\n SECURE_PORTAL: \"secure_portal\",\n IN_PERSON: \"in_person\",\n} as const satisfies Record<string, ReleaseMethodValue>;\n\n/** The pre-alignment spellings a stored release may still carry. */\nexport const LEGACY_RELEASE_METHOD_ALIASES: Readonly<\n Record<string, ReleaseMethodValue>\n> = {\n [SHARING_METHOD.CASE_SHARE]: RELEASE_METHOD.CASESHARE,\n [SHARING_METHOD.MAGIC_LINK]: RELEASE_METHOD.MAGIC_LINK,\n};\n\n/** Retired, not minted (no CVC-332 code). Read as itself; never written. */\nexport const RETIRED_RELEASE_METHODS: readonly string[] = [\n SHARING_METHOD.PHYSICAL_MAIL,\n];\n\n/** Every value a stored release's method list may hold (Mongoose enum,\n * the read schema). */\nexport const STORED_RELEASE_METHOD_VALUES = [\n ...RELEASE_METHOD_VALUES,\n ...Object.keys(LEGACY_RELEASE_METHOD_ALIASES),\n ...RETIRED_RELEASE_METHODS,\n] as [string, ...string[]];\n\nconst RELEASE_METHOD_SET = new Set<string>(RELEASE_METHOD_VALUES);\n\n/** True for a CVC-332 token. */\nexport function isReleaseMethod(value: unknown): value is ReleaseMethodValue {\n return typeof value === \"string\" && RELEASE_METHOD_SET.has(value);\n}\n\n/**\n * A stored release method read through the alias: `case_share` →\n * `thread_caseshare`, `magic_link` → `thread_magic_link`; anything else as\n * it is (a retired `physical_mail` stays `physical_mail`).\n */\nexport function normalizeReleaseMethod(value: unknown): string {\n const s = String(value);\n return LEGACY_RELEASE_METHOD_ALIASES[s] ?? s;\n}\n\n/**\n * A stored release's method list, read: every entry through the alias, no\n * duplicates, and the entries that are not CVC-332 tokens (`physical_mail`)\n * split out so the caller can report them.\n */\nexport function readReleaseMethods(methods: unknown): {\n readonly methods: readonly ReleaseMethodValue[];\n readonly unrecognized: readonly string[];\n} {\n const out: ReleaseMethodValue[] = [];\n const unrecognized: string[] = [];\n for (const raw of Array.isArray(methods) ? methods : []) {\n const m = normalizeReleaseMethod(raw);\n if (isReleaseMethod(m)) {\n if (!out.includes(m)) out.push(m);\n } else if (!unrecognized.includes(m)) {\n unrecognized.push(m);\n }\n }\n return { methods: out, unrecognized };\n}\n\n/**\n * A SHARE's method read into the release's vocabulary, so R19 compares like\n * with like: an absent method is CaseShare (the legacy rows / `POST /shares`),\n * `case_share` → `thread_caseshare`, `magic_link` → `thread_magic_link`, the\n * shared spellings (email, fax, secure_portal, in_person) as they are.\n */\nexport function releaseMethodOfShareMethod(method: unknown): string {\n if (method === undefined || method === null || method === \"\") {\n return RELEASE_METHOD.CASESHARE;\n }\n return normalizeReleaseMethod(method);\n}\n\n/**\n * A RELEASE's method read back into the share-method space\n * (`SHARING_METHOD`), the inverse of `releaseMethodOfShareMethod`:\n * `thread_caseshare` (or a stored `case_share`) → `case_share`,\n * `thread_magic_link` (or `magic_link`) → `magic_link`, the shared spellings\n * (email, fax, secure_portal, in_person) and a retired `physical_mail` as\n * they are. The share-boundary rule and the composer compare a release's\n * list against a share's `method` in this space.\n */\nexport function sharingMethodOfReleaseMethod(value: unknown): string {\n const m = normalizeReleaseMethod(value);\n return (\n Object.entries(LEGACY_RELEASE_METHOD_ALIASES).find(\n ([, token]) => token === m,\n )?.[0] ?? m\n );\n}\n\n/**\n * Display words for a release method. Thread's existing on-screen words\n * (`SHARING_METHOD_LABELS`) — this change moves the stored token, not the\n * copy. An unrecognized value reads as itself.\n */\nexport function releaseMethodLabel(value: unknown): string {\n const m = normalizeReleaseMethod(value);\n const share = (Object.entries(LEGACY_RELEASE_METHOD_ALIASES).find(\n ([, token]) => token === m,\n )?.[0] ?? m) as SharingMethodValue;\n return SHARING_METHOD_LABELS[share] ?? m;\n}\n","/**\n * The REPORT purposes — the share purposes the law compels, which no release\n * requirement can gate (§ 5.77): `mandatory_reporting` and\n * `authority_reporting`.\n *\n * Moved with the release-terms rule (./releaseTerms.ts), which exempts these\n * purposes from the release's method term. A small pure constant, written as\n * the two CVC-84 keys and typed against this package's `SharePurposeKey`, so\n * a key renamed upstream fails the build here.\n *\n * Where it came from: Thread `@thread/shared` `constants/shareRoiWaiver.ts`\n * L144-L168 @ thread develop f021be2 (`ROI_WAIVER_EXEMPT_PURPOSES`,\n * `isRoiWaiverExemptPurpose`). Thread DERIVES the list from its\n * `SHARE_PURPOSE_CONFIG[p].legalOverride` flag; that flag is Thread's own\n * config, not in this package's CVC-84 SOT, so the list is written out here.\n * It is byte-identical to Thread's derivation and to PAVE's\n * `ROI_POSTURE_EXEMPT_PURPOSES` (`@pave/db/lookups/roiPosture.ts:129`).\n * Thread's re-point keeps its derivation and pins it equal to this list.\n *\n * Pure: no mongoose, no I/O, no SOT import.\n */\n\nimport type { SharePurposeKey } from \"../generated/cvc-enums.js\";\n\n/** The purposes compelled by law (no release requirement applies). */\nexport const ROI_WAIVER_EXEMPT_PURPOSES: readonly SharePurposeKey[] = [\n \"mandatory_reporting\",\n \"authority_reporting\",\n];\n\nconst ROI_WAIVER_EXEMPT_PURPOSE_SET: ReadonlySet<string> = new Set(\n ROI_WAIVER_EXEMPT_PURPOSES,\n);\n\n/**\n * True when this purpose is compelled by law and no release requirement applies.\n *\n * An ABSENT purpose is NOT exempt. Every queued share written before the\n * purpose dimension existed carries none, and reading absence as an exemption\n * would retroactively excuse the entire back catalogue.\n */\nexport function isRoiWaiverExemptPurpose(\n purpose: string | undefined | null,\n): boolean {\n return (\n purpose !== undefined &&\n purpose !== null &&\n ROI_WAIVER_EXEMPT_PURPOSE_SET.has(purpose)\n );\n}\n","/**\n * The Magic Link partner rules, declared ONCE for every app and server.\n *\n * Lifted unchanged from Thread `@thread/shared` `magicLinkPartner.ts`\n * L19-L172 (the whole module) @ thread develop f021be2; the one change is\n * that `recipientPlatformFromApps` now comes from ./platformApps.ts (lifted\n * with it). Thread's module note follows.\n *\n * th-9aynm — the two rules both apps of the share flow need about a Magic Link\n * partner, declared ONCE (the API directory and the web composer / secure-link\n * section read the same functions).\n *\n * 1. {@link derivesOffPlatformRecipient} — whether a recipient is reached by\n * a secure link: not the caller's own agency, and the A7 derivation over\n * its apps (`recipientPlatformFromApps`, the one rule every send door and\n * the drain run) finds no casework app. A recipient with no `apps` at all\n * (an Organization, an ROI-external) derives the same way, as the create\n * door reads it.\n * 2. {@link magicLinkAddresses} — the ONE order / de-dup rule for the\n * addresses a magic link is emailed to (th-333y1; th-9aynm's single\n * `pickContactEmail` seed is retired).\n *\n * PAVE twin to retire: pave-2.0 `packages/domain/src/magicLinkAddresses.ts`\n * (same cap of 25, same canon sentence; see the Thread re-point note for the\n * differences).\n *\n * Pure: no mongoose, no I/O, no SOT import.\n */\nimport { recipientPlatformFromApps } from \"./platformApps.js\";\n\n/** Whether this recipient is a Magic Link partner (see the module note). */\nexport function derivesOffPlatformRecipient(recipient: {\n readonly isSelf?: boolean | undefined;\n readonly apps?: readonly unknown[] | null | undefined;\n}): boolean {\n return (\n recipient.isSelf !== true &&\n !recipientPlatformFromApps(recipient.apps).recipientOnPlatform\n );\n}\n\n/**\n * th-333y1 — one of a partner's Referrals (magic link) contacts, as the apps\n * carry it: the Point of contact's display name (null when it has none) and\n * the PREFERRED email the magic link is addressed to.\n *\n * Read from platform-db `pointsofcontact` through the platform-common reader\n * (`listReferralContactsForPartner`, `@htilabs/platform-common-models/points-of-contact`):\n * every ACTIVE, CONFIRMED, non-confidential contact on the partner tagged\n * `REFERRALS_MAGIC_LINK`, one per distinct email (Crysta 2026-08-23 / POC-\n * UNIFIED-CONTACT-MODEL R1, restated in the prototype kickoff\n * `KICKOFF_SERVICE_LISTING_AND_PARTNER_CONTACT_BUILD_2026-10-14.md` @ c6380f73\n * L13, D2: \"The magic link is addressed to every `REFERRALS_MAGIC_LINK`\n * holder on the recipient\"). Another advocate's pending contact (an in-app add\n * HTI Labs has not confirmed) is never read; the asking advocate's own are,\n * marked `pending`.\n */\nexport interface MagicLinkContact {\n readonly name: string | null;\n readonly email: string;\n /**\n * The ASKING advocate's own in-app add, still waiting for HTI Labs to\n * confirm it (Nate 2026-10-15; the reader's `includeOwnPendingFor`). Shown\n * \"pending HTI review\". Nobody else's pending add is ever read.\n */\n readonly pending?: true;\n}\n\n/** The most addresses one magic-link share is emailed to (wire bound). */\nexport const MAGIC_LINK_MAX_ADDRESSES = 25;\n\n/**\n * th-333y1 — the addresses ONE magic-link share is emailed to, in order:\n * trimmed, empty entries dropped, de-duplicated case-insensitively (the first\n * spelling wins), capped at {@link MAGIC_LINK_MAX_ADDRESSES}. The composer\n * (what the review card prints), the create door and the drain (what is\n * sent) all read this one rule.\n */\nexport function magicLinkAddresses(\n ...lists: ReadonlyArray<ReadonlyArray<string | null | undefined>>\n): string[] {\n const out: string[] = [];\n const seen = new Set<string>();\n for (const list of lists) {\n for (const raw of list) {\n const v = (raw ?? \"\").trim();\n if (v.length === 0) continue;\n const key = v.toLowerCase();\n if (seen.has(key)) continue;\n seen.add(key);\n out.push(v);\n if (out.length >= MAGIC_LINK_MAX_ADDRESSES) return out;\n }\n }\n return out;\n}\n\n/**\n * th-333y1 — how many distinct addresses {@link magicLinkAddresses} leaves\n * out at the cap (0 when none). Callers log the count / show \"+N not\n * included\" — never the addresses.\n */\nexport function magicLinkAddressOverflow(\n ...lists: ReadonlyArray<ReadonlyArray<string | null | undefined>>\n): number {\n const seen = new Set<string>();\n for (const list of lists) {\n for (const raw of list) {\n const v = (raw ?? \"\").trim().toLowerCase();\n if (v.length > 0) seen.add(v);\n }\n }\n return Math.max(0, seen.size - MAGIC_LINK_MAX_ADDRESSES);\n}\n\n/**\n * pl-iza — the ONE sentence every sender-facing surface uses for who a magic\n * link goes to: the visible addresses, then how many CONFIDENTIAL holders\n * also receive it — never their address or name (canon CVC-338\n * `REFERRALS_MAGIC_LINK`: \"A confidential holder still receives it; the\n * sender never sees the address.\"; ruling Nate 2026-10-15).\n *\n * Verbatim port of the prototype's `window.HTI_MAGIC_LINK_TO_TEXT`\n * (`HTI-LEADS-PAVE-Thread-prototype.html` @ 184893b6 L164656-L164663):\n * \"a@x, b@y + 1 confidential recipient\" · \"1 confidential recipient\" ·\n * \"2 confidential recipients\" · \"\" (nobody).\n */\nexport function magicLinkToText(\n to: ReadonlyArray<string> | null | undefined,\n confidentialCount: number | null | undefined,\n): string {\n const v = (to ?? []).join(\", \");\n const n = confidentialCount ?? 0;\n const c = n ? n + \" confidential recipient\" + (n === 1 ? \"\" : \"s\") : \"\";\n return v && c ? v + \" + \" + c : v || c;\n}\n\n/**\n * pl-iza — how many confidential holders the cap leaves out: the send emails\n * the visible addresses first, then the confidential holders up to\n * {@link MAGIC_LINK_MAX_ADDRESSES} in all (`confidential.deliver(sendOne,\n * { capacity: 25 - visible })`). A count derived from two counts only, so it\n * discloses nothing a sender does not already see. Folded into every\n * \"(+N not included)\" note.\n */\nexport function magicLinkConfidentialOverflow(\n visibleCount: number,\n confidentialCount: number | null | undefined,\n): number {\n const n = confidentialCount ?? 0;\n return Math.max(0, visibleCount + n - MAGIC_LINK_MAX_ADDRESSES);\n}\n\n/** The slice of a queued `poc` the magic-link address rules read. */\nexport interface MagicLinkPocAddresses {\n readonly email?: string | null | undefined;\n readonly contactEmails?: readonly string[] | null | undefined;\n readonly addedEmails?: readonly string[] | null | undefined;\n readonly confidentialCount?: number | null | undefined;\n}\n\n/** Whether a queued `poc` names a visible address: typed, reviewed, or added. */\nexport function magicLinkPocHasVisibleAddress(\n poc: MagicLinkPocAddresses | null | undefined,\n): boolean {\n if (!poc) return false;\n return (\n (poc.email ?? \"\").trim().length > 0 ||\n (poc.contactEmails ?? []).length > 0 ||\n (poc.addedEmails ?? []).length > 0\n );\n}\n\n/**\n * pl-iza — a magic-link `poc` whose ONLY address is the confidential-holder\n * count (canon D(ii): a confidential holder is a holder). The create door's\n * schema accepts it; the handler then requires the server to see a holder.\n */\nexport function magicLinkConfidentialOnly(\n poc: MagicLinkPocAddresses | null | undefined,\n): boolean {\n return (\n !magicLinkPocHasVisibleAddress(poc) && (poc?.confidentialCount ?? 0) > 0\n );\n}\n","/**\n * Lifted unchanged from Thread `@thread/shared` `shareReleaseTerms.ts` (the\n * whole module, L1-L313) @ thread develop f021be2. Its Thread-only imports\n * were cut as listed below the module note; Thread's note follows.\n *\n * THE RELEASE'S TERMS AT THE SHARE BOUNDARY — the pure rule, ONE copy\n * (Next Steps declutter spec 2026-10-17, R19 / R21; v2.2 R66 / R67;\n * Kickoff 07b step 6).\n *\n * - R19 (+R66) — the METHOD. A release lists the ways the client agreed\n * their information may be sent (`approvedSharingMethods`, the\n * `SHARING_METHOD` vocabulary a share's `method` uses). A share by a\n * method the release does not list is REFUSED — the remedy is a renewal\n * that adds the method (a signed release is never edited).\n * - R21 (+R67) — the END DATE. A share never outlives its release (ruling\n * E): a blank / no-time-limit expiry takes the release's end date; a\n * later date is REFUSED (never capped silently).\n *\n * ## One implementation\n *\n * The server's doors (apps/api `helpers/share-release-terms.ts`, which keeps\n * only the I/O: refusal codes, the drain's failedReason, the 422 reply) and\n * the web composer (`ShareComposer` / `releaseTerms.ts` /\n * `methodAvailability.ts`) both call THESE functions — the same shape as\n * `shareRoiBasis.ts`. The composer had its own copy once, and the two drifted\n * (pre-review M2 / M3 / L3, Kickoff 07b). Pure — no I/O, no logging.\n *\n * ## Exemptions\n *\n * As the prototype exempts every release question (`shareReleaseOf` /\n * `shareReleaseMethodGaps`, monolith @ 31e3cf68 L344975-344987): an\n * own-agency team (no release governs it — the ROI-basis ladder's rung 3,\n * `isInternalIntakeReferral`) for both rules, and a reporting\n * (legal-override) purpose (`isRoiWaiverExemptPurpose`, § 5.77) for the\n * method rule. R21 binds only the methods the PLATFORM delivers (R76).\n *\n * ## Dependencies, cut from `@thread/shared` (the lift)\n *\n * - `SHARING_METHOD` / `SHARING_METHOD_LABELS` and\n * `sharingMethodOfReleaseMethod` — moved to ./sharingMethods.ts.\n * - `isRoiWaiverExemptPurpose` — moved to ./reportPurposes.ts.\n * - `isInternalIntakeReferral` (Thread `constants/shareDeliveryKey.ts`\n * L101-L122) — a two-line predicate, inlined below as\n * `isSameAgencySend`, unchanged.\n * - `ROI_BASIS_REASON.ROI_ON_FILE` (Thread `constants/ic.ts` L708) — the one\n * basis REASON this rule reads, kept as the literal\n * {@link ROI_BASIS_REASON_ROI_ON_FILE}; `roiBasis.reason` is typed\n * `string` so either app's reason type passes.\n *\n * Pure — no mongoose, no I/O, no SOT import.\n */\n\nimport { isRoiWaiverExemptPurpose } from \"./reportPurposes.js\";\nimport {\n SHARING_METHOD,\n SHARING_METHOD_LABELS,\n sharingMethodOfReleaseMethod,\n type SharingMethodValue,\n} from \"./sharingMethods.js\";\n\n/**\n * The ROI-basis ladder's rung-1 REASON — \"the send cites a live ROI\" — the\n * only reason under which a cited release binds a share\n * ({@link operativeReleaseOf}). Thread's `ROI_BASIS_REASON.ROI_ON_FILE`\n * (`constants/ic.ts` L708), which Thread maps to the basis `on_file`.\n */\n// CVC-331 convergence owed (Kickoff 12): this reason maps to Thread's basis\n// `on_file`; the CVC-331 basis is `signed_release`. Kept as Thread's code in\n// this lift.\nexport const ROI_BASIS_REASON_ROI_ON_FILE = \"roi_on_file\" as const;\n\n/**\n * Is this send addressed to the SENDER'S OWN agency? Thread's\n * `isInternalIntakeReferral` (`constants/shareDeliveryKey.ts` L101-L122),\n * unchanged: the `senderAgencyId.length > 0` guard keeps a caller that\n * omitted BOTH ids from reading as \"the same agency\".\n */\nfunction isSameAgencySend(input: {\n readonly senderAgencyId: string;\n readonly recipientAgencyId: string;\n}): boolean {\n return (\n input.senderAgencyId.length > 0 &&\n input.senderAgencyId === input.recipientAgencyId\n );\n}\n\n\n/**\n * The methods the PLATFORM delivers (CVC-332 \"brokered\", R76): only these\n * carry an end date. A recorded method (email, fax, …) is sent by the\n * advocate themself — R21 does not reach it (R76's own `expires: null` rule\n * is not built here).\n */\nconst BROKERED_METHODS: ReadonlySet<string> = new Set([\n SHARING_METHOD.CASE_SHARE,\n SHARING_METHOD.MAGIC_LINK,\n]);\n\n/** The fields of a release these rules read. */\nexport interface ReleaseTerms {\n readonly approvedSharingMethods?: unknown;\n readonly expirationDate?: unknown;\n}\n\n/** A share's method, canonical: an ABSENT method (legacy rows,\n * `POST /shares`) is CaseShare. */\nexport function shareMethodOf(method: unknown): string {\n return method === undefined || method === null || method === \"\"\n ? SHARING_METHOD.CASE_SHARE\n : String(method);\n}\n\n/** True for a method the platform delivers — the methods R21 binds. */\nexport function isBrokeredSharingMethod(method: unknown): boolean {\n return BROKERED_METHODS.has(shareMethodOf(method));\n}\n\n/** A `SHARING_METHOD` value's words (\"CaseShare\", \"Email\", …). */\nexport function sharingMethodLabel(method: string): string {\n return SHARING_METHOD_LABELS[method as SharingMethodValue] ?? method;\n}\n\n/** \"A\", \"A and B\", \"A, B and C\". */\nexport function releaseListWords(words: readonly string[]): string {\n if (words.length <= 1) return words.join(\"\");\n return `${words.slice(0, -1).join(\", \")} and ${words[words.length - 1]}`;\n}\n\n/**\n * The share is exempt from EVERY release term: an own-agency send (no\n * release governs it — the ladder's rung-3 predicate).\n */\nexport function isReleaseTermsExemptRecipient(input: {\n readonly senderAgencyId: string;\n readonly recipientAgencyId: string;\n}): boolean {\n return isSameAgencySend(input);\n}\n\n/**\n * The method rule does not apply to this purpose: a reporting\n * (legal-override) purpose exercises no release term (§ 5.77).\n */\nexport function isReleaseMethodExemptPurpose(\n sharePurpose: string | null | undefined,\n): boolean {\n return isRoiWaiverExemptPurpose(sharePurpose);\n}\n\n/**\n * The OPERATIVE release of a share — the release whose terms bind it — or\n * `undefined`. `release` is the cited release as the caller resolved it\n * (followed through a renewal); it binds only when the ladder took it as the\n * authority (rung 1 — a live release naming this recipient). An own-agency\n * share is bound by no release (the prototype's `shareReleaseOf`: an\n * internal team has none).\n */\nexport function operativeReleaseOf<R extends ReleaseTerms>(input: {\n readonly release: R | null | undefined;\n readonly roiBasis: { readonly reason: string };\n readonly senderAgencyId: string;\n readonly recipientAgencyId: string;\n}): R | undefined {\n if (input.release === null || input.release === undefined) return undefined;\n // CVC-331 convergence owed (Kickoff 12): `roi_on_file` (Thread basis\n // `on_file`) is CVC-331 `signed_release`; Thread's code is kept.\n if (input.roiBasis.reason !== ROI_BASIS_REASON_ROI_ON_FILE) return undefined;\n // The ladder's own rung-3 predicate. Rung 1 runs before rung 3, so a\n // release that happens to name the sender's own agency would otherwise\n // bind an internal share the ladder would have read as `same_agency`.\n if (\n isReleaseTermsExemptRecipient({\n senderAgencyId: input.senderAgencyId,\n recipientAgencyId: input.recipientAgencyId,\n })\n ) {\n return undefined;\n }\n return input.release;\n}\n\n/**\n * The methods a release lists, or `null` when it lists none. An EMPTY (or\n * absent) `approvedSharingMethods` names no method and restricts nothing —\n * the prototype reads it so (`shareReleaseMethodGaps` /\n * `shareAllowedMethods` filter on `env.methods.length`), and every release\n * written before the method list existed carries `[]` (the schema default).\n * OPEN ITEM: whether an empty list should instead refuse every method is a\n * product ruling the record does not make. Every listed string counts — an\n * unknown legacy value is still a listed method; it just never matches a\n * method the platform offers. Returned in the SHARE-method space\n * (`SHARING_METHOD`), whichever spelling the release stored.\n */\nexport function releaseListedMethods(\n release: ReleaseTerms | undefined,\n): readonly string[] | null {\n const raw = release?.approvedSharingMethods;\n if (!Array.isArray(raw)) return null;\n // A release stores CVC-332 sending-method tokens (ROI Data Object § 4,\n // ruling 5); one written before carries the old spellings. Both read into\n // the share-method space a share's `method` uses (`thread_caseshare` and\n // `case_share` → `case_share`), once each — so a renewal never refuses a\n // share the old release allowed.\n const listed: string[] = [];\n for (const entry of raw as readonly unknown[]) {\n const m = sharingMethodOfReleaseMethod(entry);\n if (!listed.includes(m)) listed.push(m);\n }\n return listed.length === 0 ? null : listed;\n}\n\n/**\n * R19 (+R66) — the refusal sentence when the operative release does not list\n * the share's method, else `null`.\n */\nexport function releaseMethodRefusal(input: {\n readonly method: unknown;\n /** The OPERATIVE release (`operativeReleaseOf`), or `undefined`. */\n readonly release: ReleaseTerms | undefined;\n readonly sharePurpose: string | null | undefined;\n}): string | null {\n const { release } = input;\n if (release === undefined) return null;\n if (isReleaseMethodExemptPurpose(input.sharePurpose)) return null;\n const listed = releaseListedMethods(release);\n if (listed === null) return null;\n const method = shareMethodOf(input.method);\n if (listed.includes(method)) return null;\n const want = sharingMethodLabel(method);\n return (\n `The client's release for this recipient doesn't allow sending by ${want} — ` +\n `the client agreed to ${releaseListWords(listed.map(sharingMethodLabel))}. Nothing was sent. ` +\n `To send by ${want}, add it to the release by renewing it, or choose one of the methods it lists.`\n );\n}\n\nconst asDate = (v: unknown): Date | null => {\n if (v === undefined || v === null || v === \"\") return null;\n const d = new Date(v as string | number | Date);\n return Number.isNaN(d.getTime()) ? null : d;\n};\n\n/** The UTC calendar day of an instant, `YYYY-MM-DD`. */\nexport const utcCalendarDay = (d: Date): string => d.toISOString().slice(0, 10);\n\n/** The last instant of `d`'s UTC calendar day (`…T23:59:59.999Z`). */\nexport function endOfUtcDay(d: Date): Date {\n return new Date(`${utcCalendarDay(d)}T23:59:59.999Z`);\n}\n\n/**\n * The last instant a share under this release may run: the END of the\n * release's end DAY, or `null` when the release has no end date (or there is\n * no release). The release wizard stores its end as `D T00:00:00.000Z`\n * (`RoiWizardHost` `toIsoDateTime`) while the composer stores a picked day as\n * `D T23:59:59.999Z` (`ShareComposer` `toIsoExpirationDatetime`) — both mean\n * \"through day D\", so the release is read as running through the whole day.\n */\nexport function releaseEndOfDay(\n release: ReleaseTerms | undefined,\n): Date | null {\n const end = asDate(release?.expirationDate);\n return end === null ? null : endOfUtcDay(end);\n}\n\n/** The release's end DAY, `YYYY-MM-DD`, or `null` (no end date / release). */\nexport function releaseEndDay(\n release: ReleaseTerms | undefined,\n): string | null {\n const end = releaseEndOfDay(release);\n return end === null ? null : utcCalendarDay(end);\n}\n\nexport type ShareExpiryDecision =\n | {\n readonly kind: \"ok\";\n /** The share's effective end date; `null` = no end date. */\n readonly expirationDate: Date | null;\n /** `noTimeLimit` as it should now read beside the date. */\n readonly noTimeLimit: boolean;\n /** True when the date was taken from the release (R21). */\n readonly fromRelease: boolean;\n /**\n * The latest instant anything delivered under this share may live —\n * the end of the release's end day — or `null` when no release bounds\n * it. A magic link's one-day floor never reaches past it.\n */\n readonly releaseEnd: Date | null;\n }\n | {\n readonly kind: \"refused\";\n readonly message: string;\n /** The share's end day and the release's, `YYYY-MM-DD`. */\n readonly shareDay: string;\n readonly releaseDay: string;\n };\n\n/**\n * R21 (+R67) — the share's effective end date under its operative release.\n *\n * - no operative release, or one with no end date → the share's own\n * choice, unchanged (blank stays \"no end date\");\n * - a recorded method (not platform-delivered, R76) → unchanged;\n * - blank / `noTimeLimit` → the END of the release's end day, so the\n * share lasts through that day;\n * - on or before the release's end DAY → kept;\n * - a later day → REFUSED. Never capped: a date the advocate picked is\n * theirs, and silently moving it would hide that the share ends sooner\n * than they chose.\n *\n * The comparison is by UTC CALENDAR DAY, never instant: the web stores the\n * same day at different instants (`releaseEndOfDay`), so picking the\n * release's own end day must be allowed.\n */\nexport function shareExpiryUnderRelease(input: {\n readonly method: unknown;\n readonly expirationDate: unknown;\n readonly noTimeLimit: unknown;\n /** The OPERATIVE release (`operativeReleaseOf`), or `undefined`. */\n readonly release: ReleaseTerms | undefined;\n}): ShareExpiryDecision {\n const noTimeLimit = input.noTimeLimit === true;\n const own = noTimeLimit ? null : asDate(input.expirationDate);\n const unbounded: ShareExpiryDecision = {\n kind: \"ok\",\n expirationDate: own,\n noTimeLimit,\n fromRelease: false,\n releaseEnd: null,\n };\n if (!isBrokeredSharingMethod(input.method)) return unbounded;\n const releaseEnd = releaseEndOfDay(input.release);\n if (releaseEnd === null) return unbounded;\n if (own === null) {\n return {\n kind: \"ok\",\n expirationDate: releaseEnd,\n noTimeLimit: false,\n fromRelease: true,\n releaseEnd,\n };\n }\n const shareDay = utcCalendarDay(own);\n const releaseDay = utcCalendarDay(releaseEnd);\n if (shareDay > releaseDay) {\n return {\n kind: \"refused\",\n shareDay,\n releaseDay,\n message:\n `This share would end on ${shareDay}, after the ` +\n `client's release for this recipient ends (${releaseDay}). ` +\n `A share never outlives its release. Nothing was sent. Pick an end date on or ` +\n `before the release's, or leave it blank to end with the release.`,\n };\n }\n return { ...unbounded, releaseEnd };\n}\n","/**\n * Lifted unchanged from Thread `@thread/shared` `caseShareLane.ts` (the whole\n * module, L1-L279) @ thread develop f021be2; its helpers now come from\n * ./platformApps.ts (lifted with it). Behaviour and copy are Thread's,\n * including Thread's recorded LEADS deviation and the refusal sentences that\n * name Thread (\"Thread could not read how …\"). An app other than Thread that\n * adopts this rule inherits both; changing them is a product decision, not\n * part of this lift. Pure: no mongoose, no I/O, no SOT import. Thread's\n * module note follows.\n *\n * Where a CaseShare LANDS — the ONE rule the composer (`resolveRowWireMethod`\n * and its send gate, apps/web) and every send door (the queued-share create,\n * the queue drain, `POST /shares` and PAVE \"Retry delivery\", apps/api\n * `helpers/case-share-lane.ts`) read, so the client and the server can never\n * disagree about a share's lane (th-fbb8e).\n *\n * Thread-local — NOT a platform CVC.\n *\n * ## Canon\n *\n * A share lands in the RECEIVING TEAM's app — `team.apps_used[0]` — for every\n * on-platform recipient and every purpose. When the advocate names only an\n * organization, it lands with that organization's default share team\n * (`resolveDefaultShareTeamMono`, the front door). With no team at all, or a\n * team with no app, canon falls back to PAVE, and any landing app other than\n * pave / thread / leads is clamped to PAVE: `_landApp =\n * _landTeam.apps_used[0] || \"pave\"` (monolith L340192, the clamp L340201). The\n * advocate never picks an app: the composer offers one CaseShare channel, the\n * landing app is stored on the sent row and the receipt reads \"Claim it in\n * <app>\" (monolith L340168-340207, L337131, L346163-346255 @ prototype\n * c2900116).\n *\n * ## Thread's one recorded deviation (CATALOG ShareComposer Known deviations\n * #18, packages/shared CLAUDE.md edge case 28)\n *\n * A team whose first app is LEADS lands as a THREAD CaseShare: Thread cannot\n * deliver into LEADS (canon relays through a LEADS bridge, L340272, Thread has\n * none — Nate, 2026-10-16, as on develop before th-fbb8e). So does a\n * LEADS-only agency (apps hold LEADS and neither THREAD nor PAVE) with no team\n * or a team with no app: mandated and legal-override reports to LEADS-only\n * agencies keep working.\n *\n * ## The only refusals\n *\n * A NAMED team that is gone or inactive (choose the team again), and a setup\n * that cannot be READ — the teams, the configured default share team where it\n * decides, or the agency's apps where the LEADS-only reading decides\n * (retryable). Rep counts never choose the lane.\n */\n\nimport { PLATFORM_TOOL } from \"../constants/platform-auth.js\";\nimport {\n agencyIdKey,\n recipientUsesApp,\n teamLandingApp,\n teamLandsInPave,\n teamLandsInThread,\n} from \"./platformApps.js\";\n\n/** The two in-app lanes Thread delivers a CaseShare on. */\nexport const CASE_SHARE_LANE = { THREAD: \"thread\", PAVE: \"pave\" } as const;\nexport type CaseShareLane =\n (typeof CASE_SHARE_LANE)[keyof typeof CASE_SHARE_LANE];\n\n/**\n * The refusal keys — the `<key>: <sentence>` prefix of a drain\n * `failedReason` and the `code` of a door's refusal:\n * - `MISMATCH` — the claimed lane is not the receiving team's (a browser on\n * an older composer, a carried method state, a forged body). Permanent.\n * - `TEAM_UNAVAILABLE` — the team the share names is gone or no longer\n * active. Permanent: the advocate chooses the team again.\n * - `UNVERIFIED` — what decides the lane (the teams, the configured default\n * share team, or the agency's apps for the LEADS-only reading) could not\n * be read. Retryable.\n */\nexport const CASE_SHARE_LANE_FAILURE = {\n MISMATCH: \"case_share_lane_mismatch\",\n TEAM_UNAVAILABLE: \"case_share_team_unavailable\",\n UNVERIFIED: \"case_share_lane_unverified\",\n} as const;\nexport type CaseShareLaneFailureCode =\n (typeof CASE_SHARE_LANE_FAILURE)[keyof typeof CASE_SHARE_LANE_FAILURE];\n\nexport interface CaseShareLaneFailure {\n readonly code: CaseShareLaneFailureCode;\n readonly message: string;\n}\n\n/** A receiving team as the rule reads it. */\nexport interface CaseShareLandingTeam {\n readonly id: string;\n readonly name: string;\n /** Declared apps (strict uppercase PLATFORM_TOOL codes); the FIRST lands. */\n readonly apps?: readonly unknown[] | null;\n /** The account's declared default team (Admin Hub \"Default team\"). */\n readonly defaultTeam?: boolean;\n}\n\n/** The answer of the rule: a lane, or why there is none. */\nexport type CaseShareLanding =\n | {\n readonly ok: true;\n readonly lane: CaseShareLane;\n /** The receiving team, or null when none resolved. */\n readonly team: CaseShareLandingTeam | null;\n }\n | ({ readonly ok: false } & CaseShareLaneFailure);\n\n/** The receiving team as resolved: a team, none, a stale named id, unread. */\nexport type CaseShareReceivingTeam =\n | CaseShareLandingTeam\n | null\n | \"stale\"\n | \"unverified\";\n\n/** The recipient at the START of a sentence. */\nfunction recipientSubject(name: string | undefined): string {\n return name !== undefined && name.trim().length > 0 ? name : \"The recipient\";\n}\n\n/** The recipient MID-sentence. */\nfunction recipientObject(name: string | undefined): string {\n return name !== undefined && name.trim().length > 0 ? name : \"the recipient\";\n}\n\nfunction teamSubject(team: CaseShareLandingTeam): string {\n return team.name.trim().length > 0\n ? `The team \"${team.name}\"`\n : \"The receiving team\";\n}\n\n/** The refusal for a named team that is gone or no longer active. */\nexport function caseShareStaleTeamFailure(\n name: string | undefined,\n): CaseShareLaneFailure {\n return {\n code: CASE_SHARE_LANE_FAILURE.TEAM_UNAVAILABLE,\n message: `The team you chose at ${recipientObject(name)} is no longer available — choose the team again.`,\n };\n}\n\n/** The refusal when what decides the lane cannot be read. */\nexport function caseShareLaneUnverified(\n name: string | undefined,\n): CaseShareLaneFailure {\n return {\n code: CASE_SHARE_LANE_FAILURE.UNVERIFIED,\n message: `Thread could not read how ${recipientObject(name)} receives CaseShares, so the share was not sent. Try again in a few minutes.`,\n };\n}\n\n/** Whether the agency is on LEADS and on neither Thread nor PAVE. */\nfunction leadsOnly(agencyApps: unknown): boolean {\n return (\n recipientUsesApp(agencyApps, PLATFORM_TOOL.LEADS) &&\n !recipientUsesApp(agencyApps, PLATFORM_TOOL.THREAD) &&\n !recipientUsesApp(agencyApps, PLATFORM_TOOL.PAVE)\n );\n}\n\n/**\n * Whether the landing depends on the AGENCY's apps: no team resolved, or a\n * team declaring no app — the only cases the LEADS-only reading decides.\n * A door that cannot read the apps answers \"unverified\" only then.\n */\nexport function caseShareLandingNeedsAgencyApps(\n team: CaseShareReceivingTeam,\n): boolean {\n if (team === \"stale\" || team === \"unverified\") return false;\n return team === null || teamLandingApp(team.apps ?? undefined) === undefined;\n}\n\n/**\n * The DEFAULT SHARE TEAM when a share names no team — canon's\n * single-organization ladder (`resolveDefaultShareTeamMono`, monolith\n * L346163-346255 @ c2900116): the admin-configured team, else the one\n * declared default team (more than one declared is ambiguous and skipped),\n * else the only team, else — when `inApp` is given — the only / first team in\n * that app, else the first team by id. `null` only when there are no teams.\n * The landing rule reads it with no app (canon passes `app = null` at\n * landing); the intake-team resolver with the PAVE app.\n */\nexport function pickDefaultShareTeam<T extends CaseShareLandingTeam>(\n teams: readonly T[],\n configuredDefaultShareTeamId: string | null,\n inApp?: (team: T) => boolean,\n): { readonly team: T; readonly via: DefaultShareTeamVia } | null {\n if (teams.length === 0) return null;\n if (configuredDefaultShareTeamId !== null) {\n const configured = teams.find(\n (t) => agencyIdKey(t.id) === agencyIdKey(configuredDefaultShareTeamId),\n );\n if (configured) return { team: configured, via: \"configured\" };\n }\n const declared = teams.filter((t) => t.defaultTeam === true);\n if (declared.length === 1) {\n return { team: declared[0]!, via: \"account_declared\" };\n }\n if (teams.length === 1) return { team: teams[0]!, via: \"auto_single\" };\n const app = inApp ? teams.filter(inApp) : [];\n if (app.length === 1) return { team: app[0]!, via: \"auto_single_in_app\" };\n const pool = [...(app.length > 0 ? app : teams)].sort((a, b) =>\n a.id.localeCompare(b.id),\n );\n return {\n team: pool[0]!,\n via: app.length > 0 ? \"first_in_app\" : \"first_team\",\n };\n}\n\nexport type DefaultShareTeamVia =\n | \"configured\"\n | \"account_declared\"\n | \"auto_single\"\n | \"auto_single_in_app\"\n | \"first_in_app\"\n | \"first_team\";\n\n/**\n * The lane a CaseShare lands on with its receiving team (the one named, or the\n * organization's default share team), or why there is none:\n * - the team's first app THREAD → Thread; PAVE → PAVE; LEADS → Thread (the\n * recorded deviation);\n * - no team, or a team with no app → PAVE (canon's fallback) — except a\n * LEADS-only agency → Thread (the deviation), which needs the agency's\n * apps: when they could not be read (`agencyAppsUnread`) the answer is\n * unverified;\n * - any other first app → PAVE (canon's clamp);\n * - a stale named team, or an unreadable directory → refused.\n */\nexport function caseShareLandingLane(recipient: {\n /** The recipient agency's display name (for the message). */\n readonly name?: string;\n /** The recipient agency's directory `apps` (the LEADS-only reading). */\n readonly agencyApps?: unknown;\n /** The agency's apps could not be read (failed or ambiguous). */\n readonly agencyAppsUnread?: boolean;\n readonly team: CaseShareReceivingTeam;\n}): CaseShareLanding {\n const { team, name } = recipient;\n if (team === \"unverified\") {\n return { ok: false, ...caseShareLaneUnverified(name) };\n }\n if (team === \"stale\") {\n return { ok: false, ...caseShareStaleTeamFailure(name) };\n }\n const apps = team?.apps ?? undefined;\n if (teamLandsInThread(apps)) {\n return { ok: true, lane: CASE_SHARE_LANE.THREAD, team };\n }\n if (teamLandsInPave(apps)) {\n return { ok: true, lane: CASE_SHARE_LANE.PAVE, team };\n }\n // Recorded deviation: Thread cannot deliver into LEADS.\n if (teamLandingApp(apps) === PLATFORM_TOOL.LEADS) {\n return { ok: true, lane: CASE_SHARE_LANE.THREAD, team };\n }\n if (caseShareLandingNeedsAgencyApps(team)) {\n if (recipient.agencyAppsUnread === true) {\n return { ok: false, ...caseShareLaneUnverified(name) };\n }\n if (leadsOnly(recipient.agencyApps)) {\n return { ok: true, lane: CASE_SHARE_LANE.THREAD, team };\n }\n }\n // Canon's fallback (no team / no app) and clamp (any other app): PAVE.\n return { ok: true, lane: CASE_SHARE_LANE.PAVE, team };\n}\n\n/** The refusal for a CLAIMED lane that is not the landing one. */\nexport function caseShareLaneMismatch(\n recipient: {\n readonly name?: string;\n readonly team: CaseShareLandingTeam | null;\n },\n landing: CaseShareLane,\n claimed: CaseShareLane,\n): CaseShareLaneFailure | null {\n if (landing === claimed) return null;\n const app = landing === CASE_SHARE_LANE.THREAD ? \"Thread\" : \"PAVE\";\n const who =\n recipient.team !== null\n ? `${teamSubject(recipient.team)} at ${recipientObject(recipient.name)}`\n : recipientSubject(recipient.name);\n return {\n code: CASE_SHARE_LANE_FAILURE.MISMATCH,\n message: `${who} receives CaseShares in ${app}, so this share was not sent as it was composed — compose it again.`,\n };\n}\n","/**\n * Lifted unchanged from Thread `@thread/shared` `services/roiPosture.ts` (the\n * whole module, L1-L268) @ thread develop f021be2. The share-gate rule the\n * composer and every send door apply is L165-L268 (`senderRoiPostureForTeam`,\n * `resolveAgencyRoiPosture`, `resolveSenderRoiPosture`); L1-L164 (the posture\n * types and canon's read of the stored `roiPolicy` slice,\n * `readAuthoredRoiPosture`) moved with it because L165-L268 is typed by and\n * fed from them. Its one Thread import, `vspReleasePosture`, moved too.\n *\n * NOTE: `\"required\" | \"waived\"` here is the account's release POSTURE (canon\n * `ROI_POLICY_POSTURES`), not a share's release BASIS — CVC-331's retirement\n * of the basis `waived` does not reach it.\n *\n * Pure: no mongoose, no I/O, no SOT import. Thread's module note follows.\n *\n * The SENDING account's release posture — \"does a share from this account\n * need a signed release on file?\" — read PURELY from the platform agency\n * row's fields (th-u142w). No I/O: the API reads the row\n * (`apps/api/src/helpers/roi-requirement.ts`) and calls these; the ROI basis\n * ladder (`shareRoiBasis.ts`) and the share composer consume the answer.\n *\n * ## The ladder — canon `roiPostureFor`\n *\n * Canon (prototype `d85f05b7`, `HTI-LEADS-PAVE-Thread-prototype.html`\n * L329214-L329319; the platform resolver `HTI_SHARE_POLICY_API.roiPostureFor`,\n * platform-prototype `a6f1f3a5` `src/data.js` L51848-L51904; GDR § 5.17\n * amendment 2026-08-19, `GLOBAL_DESIGN_RULES.md` L3728-L3756):\n *\n * 1. AUTHORED wins, in BOTH directions — the account's\n * `policies.roiPosture.agencyDefault` (`\"required\" | \"waived\"`; null /\n * absent = un-authored), authored in Platform Admin Hub → Policies →\n * Consent & ROI (platform-prototype `src/screens.jsx` L15009-L15074,\n * `ConsentRoiTab`).\n * 2. else DERIVED from the AFFIRMED directory VSP flag (canon\n * VSP-TRISTATE-2026-10-08, L329259-L329272): `false` → waived; `true`\n * and never-captured → required (`vspReleasePosture`).\n * 3. a team override may only TIGHTEN — `teamOverrides[teamId] ===\n * \"required\"` upgrades a waived posture; nothing downgrades required\n * (L329306-L329310; CAM invariants 3/6).\n *\n * ## Deviation from canon at the share gate — the team rung (ruled, th-u142w)\n *\n * Rungs 1–2 and the bad-value reading match canon exactly. Rung 3 does NOT:\n * canon's resolver has it, but canon's GATING sites call\n * `senderAgencyRequiresROI()` with no team (L337935, L338110 →\n * `roiPostureFor(undefined)`), so canon never applies a team override at\n * the share gate. Thread applies it, keyed by the SENDING record's\n * `teamOwner`, at every send door and in the composer — as PAVE does\n * (`shareRecordService.ts` L3097-L3102 @ pave-2.0 `0ae6c7f0e`: \"The posture\n * ladder's team override is the SENDING team's\"), so Thread and PAVE answer\n * identically. It only ever TIGHTENS (waived → required), never relaxes.\n * Recorded in CATALOG.md ShareComposer Known deviations #24 and\n * packages/shared CLAUDE.md edge case 41 (coordinator ruling 2026-10-13).\n *\n * Legal-override purposes keep their own rule: the exemption is the\n * CALLER's (canon L329241-L329247: \"This function does not know about\n * purposes and must not be taught to\") — the basis ladder's rung 2.\n *\n * ## How a bad stored value reads — exactly canon's reading\n *\n * Canon reads the slice with strict equality and nothing else, so a value\n * outside the shape simply does not count (coordinator ruling 2026-10-13:\n * Thread gives the same answer as canon, the platform and PAVE for the same\n * data):\n *\n * - `agencyDefault`: `(tabDoc.agencyDefault === \"required\" ||\n * tabDoc.agencyDefault === \"waived\") ? tabDoc.agencyDefault : null`\n * (monolith L329297-L329298; platform `data.js` L51883) — anything else\n * is UN-AUTHORED and the VSP rung decides.\n * - a team: `(tabDoc.teamOverrides || {})[teamId] === \"required\"`\n * (monolith L329306; `data.js` L51899) — any other value IGNORES that\n * team (it never tightens and, since a team can only tighten, it can\n * never widen either).\n * - a slice that is not an object reads neither (`\"waived\".agencyDefault`\n * is `undefined`; the slice is read as `(p && p.roiPosture) || null`,\n * L329287): un-authored, no team overrides.\n *\n * Every such value is reported in `issues` (coded, never the value) so the\n * reader can log it — a malformed slice is a platform-writer defect worth\n * seeing, not a silent no-op.\n *\n * ## Where the authored posture lives\n *\n * The platform writer (platform `lib/agency-consent/repository.ts`\n * `setRoiPolicy`, schema `lib/agency-consent/schemas.ts` `RoiPolicySchema`,\n * route `app/api/admin/agency-consent/route.ts` @ platform develop\n * `31df78d`) stores canon's `policies.roiPosture` slice as\n * `platform-db.agencies.<agency>.roiPolicy = { agencyDefault, teamOverrides }`\n * — the SAME row Thread already reads `vsp` from. Thread reads it there,\n * READ-ONLY, and never writes it. Team-override KEYS are the platform's team\n * ids (`listAgencyTeams`: a `teams` row's `entity_id`, else `id`, else\n * `String(_id)`); the API translates them to the `teams._id` hex a Thread\n * record's `teamOwner` holds before they reach `SenderRoiPostureView`.\n */\n\n/**\n * The release posture the affirmed flag implies (canon L329146): only an\n * affirmed `false` waives; `true` and never-captured both require one.\n *\n * Moved with this module from Thread `@thread/shared`\n * `services/agencyVspSignal.ts` L93-L101 @ thread develop f021be2, unchanged\n * (a one-line pure function; the affirmed-flag reader `affirmedAgencyVsp`\n * stays with each app's agency read).\n */\nexport function vspReleasePosture(\n affirmed: boolean | null,\n): \"required\" | \"waived\" {\n return affirmed === false ? \"waived\" : \"required\";\n}\n\n/** The two authored postures (canon `ROI_POLICY_POSTURES`). */\nexport type RoiReleasePosture = \"required\" | \"waived\";\n\n/** The platform agency-row field this read consults (`agencies.roiPolicy`). */\nexport const AUTHORED_ROI_POSTURE_FIELD = \"roiPolicy\";\n\n/** A stored value canon would not count — coded, never the value itself. */\nexport type AuthoredRoiPostureIssue =\n | \"roi_policy_not_object\"\n | \"agency_default_invalid\"\n | \"team_overrides_not_object\"\n | \"team_override_value_invalid\";\n\n/** The authored posture, as canon reads it off the agency row. */\nexport interface AuthoredRoiPostureRead {\n /** A `roiPolicy` value is stored at all (well-formed or not). */\n readonly present: boolean;\n /** `null` = un-authored — the VSP rung decides. */\n readonly agencyDefault: RoiReleasePosture | null;\n /** The platform team keys whose value is exactly `\"required\"`. */\n readonly requiredTeamKeys: readonly string[];\n /** Values canon ignored (for the reader's warn log). Empty when clean. */\n readonly issues: readonly AuthoredRoiPostureIssue[];\n}\n\nexport const ABSENT_AUTHORED_ROI_POSTURE: AuthoredRoiPostureRead = {\n present: false,\n agencyDefault: null,\n requiredTeamKeys: [],\n issues: [],\n};\n\nfunction isPlainObject(value: unknown): value is Record<string, unknown> {\n return (\n typeof value === \"object\" &&\n value !== null &&\n !Array.isArray(value) &&\n Object.getPrototypeOf(value) === Object.prototype\n );\n}\n\n/**\n * Read a stored `roiPolicy` value the way canon does (see the module header).\n * Total — never throws.\n */\nexport function readAuthoredRoiPosture(raw: unknown): AuthoredRoiPostureRead {\n if (raw === undefined || raw === null) return ABSENT_AUTHORED_ROI_POSTURE;\n if (!isPlainObject(raw)) {\n return {\n present: true,\n agencyDefault: null,\n requiredTeamKeys: [],\n issues: [\"roi_policy_not_object\"],\n };\n }\n const issues: AuthoredRoiPostureIssue[] = [];\n\n const def = raw.agencyDefault;\n let agencyDefault: RoiReleasePosture | null = null;\n if (def === \"required\" || def === \"waived\") agencyDefault = def;\n else if (def !== undefined && def !== null) {\n issues.push(\"agency_default_invalid\");\n }\n\n const requiredTeamKeys: string[] = [];\n const overrides = raw.teamOverrides;\n if (overrides !== undefined && overrides !== null) {\n if (!isPlainObject(overrides)) {\n issues.push(\"team_overrides_not_object\");\n } else {\n let invalidTeamValue = false;\n for (const [teamKey, value] of Object.entries(overrides)) {\n if (value === \"required\") requiredTeamKeys.push(teamKey);\n else invalidTeamValue = true;\n }\n if (invalidTeamValue) issues.push(\"team_override_value_invalid\");\n }\n }\n return { present: true, agencyDefault, requiredTeamKeys, issues };\n}\n\n/** Which rung decided — the administrator-facing \"why\". */\nexport type SenderRoiPostureSource =\n | \"authored\"\n | \"derived_vsp\"\n | \"team_override\";\n\nexport interface SenderRoiPosture {\n readonly posture: RoiReleasePosture;\n /** `posture === \"required\"`. */\n readonly required: boolean;\n readonly source: SenderRoiPostureSource;\n /** The derived (VSP) default, whatever decided. */\n readonly derivedDefault: RoiReleasePosture;\n /** Coded rule path (no ids beyond a team id; no PII). */\n readonly rulePath: string;\n}\n\n/**\n * The account's posture with the team rung NOT yet applied, plus the teams\n * that tighten it — the shape the server hands the composer, so both apply\n * the team rung with ONE function (`senderRoiPostureForTeam`).\n * `tightenedTeamIds` are in the id space of the team the caller will pass\n * (the API translates platform keys to `teams._id` hex first).\n */\nexport interface SenderRoiPostureView {\n readonly agency: SenderRoiPosture;\n readonly tightenedTeamIds: readonly string[];\n}\n\n/** Rungs 1–2: authored > the affirmed VSP default. Pure and total. */\nexport function resolveAgencyRoiPosture(input: {\n readonly authored: AuthoredRoiPostureRead;\n /** The AFFIRMED VSP flag (`affirmedAgencyVsp`) — null = never captured. */\n readonly affirmedVsp: boolean | null;\n}): SenderRoiPosture {\n const derivedDefault = vspReleasePosture(input.affirmedVsp);\n const authored = input.authored.agencyDefault;\n if (authored !== null) {\n return {\n posture: authored,\n required: authored === \"required\",\n source: \"authored\",\n derivedDefault,\n rulePath: `agencies.roiPolicy.agencyDefault=${authored} (Consent & ROI)`,\n };\n }\n return {\n posture: derivedDefault,\n required: derivedDefault === \"required\",\n source: \"derived_vsp\",\n derivedDefault,\n rulePath: `agencies.vsp=${input.affirmedVsp === null ? \"null (never captured)\" : String(input.affirmedVsp)} → ${derivedDefault}`,\n };\n}\n\n/**\n * Rung 3: a team override only TIGHTENS a waived posture — applied at the\n * share gate as PAVE does, a recorded DEVIATION from canon's gating sites,\n * which pass no team at all (see the module header). Absent team ⇒ the rung\n * is skipped (canon's gating behaviour, and PAVE's resolver with\n * `teamId === undefined`).\n */\nexport function senderRoiPostureForTeam(\n view: SenderRoiPostureView,\n sendingTeamId?: string | null | undefined,\n): SenderRoiPosture {\n if (\n view.agency.posture === \"waived\" &&\n typeof sendingTeamId === \"string\" &&\n sendingTeamId.length > 0 &&\n view.tightenedTeamIds.includes(sendingTeamId)\n ) {\n return {\n ...view.agency,\n posture: \"required\",\n required: true,\n source: \"team_override\",\n rulePath: `agencies.roiPolicy.teamOverrides[${sendingTeamId}]=required (teams tighten, never relax)`,\n };\n }\n return view.agency;\n}\n\nexport interface ResolveSenderRoiPostureInput {\n readonly authored: AuthoredRoiPostureRead;\n readonly affirmedVsp: boolean | null;\n /**\n * The sending team, in the SAME id space as the authored team keys. Absent\n * ⇒ the team rung is skipped.\n */\n readonly sendingTeamId?: string | null | undefined;\n}\n\n/** The whole ladder over one id space (authored keys = team ids). */\nexport function resolveSenderRoiPosture(\n input: ResolveSenderRoiPostureInput,\n): SenderRoiPosture {\n return senderRoiPostureForTeam(\n {\n agency: resolveAgencyRoiPosture(input),\n tightenedTeamIds: input.authored.requiredTeamKeys,\n },\n input.sendingTeamId,\n );\n}\n"],"mappings":";AAYO,IAAM,mBAAmB;AAAA;AAAA,EAE9B,QAAQ;AAAA;AAAA,EAER,UAAU;AAAA;AAAA,EAEV,SAAS;AAAA;AAAA,EAET,OAAO;AACT;AAKO,IAAM,0BAA0B;AAAA,EACrC,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AACnB;AAEO,IAAM,0BAAgE;AAAA,EAC3E,CAAC,iBAAiB,MAAM,GAAG;AAAA,EAC3B,CAAC,iBAAiB,QAAQ,GAAG;AAAA,EAC7B,CAAC,iBAAiB,OAAO,GAAG;AAAA,EAC5B,CAAC,iBAAiB,KAAK,GAAG;AAC5B;AAGO,IAAM,2BAGT;AAAA,EACF,CAAC,iBAAiB,MAAM,GAAG;AAAA,IACzB,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AAAA,EACA,CAAC,iBAAiB,QAAQ,GAAG;AAAA,IAC3B,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AAAA,EACA,CAAC,iBAAiB,OAAO,GAAG;AAAA,IAC1B,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AAAA,EACA,CAAC,iBAAiB,KAAK,GAAG;AAAA,IACxB,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AACF;AAiBO,IAAM,sBAAsB;AAAA,EACjC,GAAG;AAAA;AAAA,EAEH,IAAI;AACN;AAKO,IAAM,6BAA6B;AAAA,EACxC,GAAG;AAAA,EACH,oBAAoB;AACtB;AAUO,IAAM,6BAAqE;AAAA,EAChF,GAAG;AAAA,EACH,CAAC,oBAAoB,EAAE,GAAG;AAC5B;AAOO,IAAM,8BAGT;AAAA,EACF,GAAG;AAAA,EACH,CAAC,oBAAoB,EAAE,GAAG;AAAA,IACxB,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AACF;AAIO,IAAM,aAAa;AAAA;AAAA,EAExB,UAAU;AAAA;AAAA,EAEV,KAAK;AAAA;AAAA,EAEL,MAAM;AACR;AAIO,IAAM,oBAAoB;AAAA,EAC/B,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AACb;AAEO,IAAM,oBAAoD;AAAA,EAC/D,CAAC,WAAW,QAAQ,GAAG;AAAA,EACvB,CAAC,WAAW,GAAG,GAAG;AAAA,EAClB,CAAC,WAAW,IAAI,GAAG;AACrB;AAIO,IAAM,gBAAgB;AAAA,EAC3B,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,UAAU;AACZ;AAKO,IAAM,uBAAuB;AAAA,EAClC,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAChB;AAEO,IAAM,uBAA0D;AAAA,EACrE,CAAC,cAAc,IAAI,GAAG;AAAA,EACtB,CAAC,cAAc,IAAI,GAAG;AAAA,EACtB,CAAC,cAAc,KAAK,GAAG;AAAA,EACvB,CAAC,cAAc,MAAM,GAAG;AAAA,EACxB,CAAC,cAAc,KAAK,GAAG;AAAA,EACvB,CAAC,cAAc,QAAQ,GAAG;AAC5B;AAIO,IAAM,aAAa;AAAA;AAAA,EAExB,aAAa;AAAA;AAAA,EAEb,QAAQ;AAAA;AAAA,EAER,MAAM;AAAA;AAAA,EAEN,UAAU;AAAA;AAAA,EAEV,WAAW;AACb;AAIO,IAAM,oBAAoB;AAAA,EAC/B,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AACb;AAEO,IAAM,oBAAoD;AAAA,EAC/D,CAAC,WAAW,WAAW,GAAG;AAAA,EAC1B,CAAC,WAAW,MAAM,GAAG;AAAA,EACrB,CAAC,WAAW,IAAI,GAAG;AAAA,EACnB,CAAC,WAAW,QAAQ,GAAG;AAAA,EACvB,CAAC,WAAW,SAAS,GAAG;AAC1B;AAIO,IAAM,kBAAkB;AAAA,EAC7B,aAAa;AAAA,EACb,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,QAAQ;AACV;AAKO,IAAM,yBAAyB;AAAA,EACpC,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,gBAAgB;AAClB;AAEO,IAAM,yBAA8D;AAAA,EACzE,CAAC,gBAAgB,WAAW,GAAG;AAAA,EAC/B,CAAC,gBAAgB,WAAW,GAAG;AAAA,EAC/B,CAAC,gBAAgB,gBAAgB,GAAG;AAAA,EACpC,CAAC,gBAAgB,UAAU,GAAG;AAAA,EAC9B,CAAC,gBAAgB,MAAM,GAAG;AAC5B;;;AC7MA,IAAM,gBAA8C;AAAA,EAClD,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAChB;AAQA,SAAS,oBAAoB,GAAmB;AAC9C,SAAO,EAAE,QAAQ,oCAAoC,EAAE;AACzD;AAGA,SAAS,cAAc,KAAsB;AAC3C,SAAO,cAAc,KAAK,CAAC,MAAM,iBAAiB,CAAC,GAAG,GAAG,CAAC,CAAC;AAC7D;AAOA,SAAS,WAAW,MAAyB;AAC3C,QAAM,OACJ,OAAO,SAAS,WAAW,CAAC,IAAI,IAAI,MAAM,QAAQ,IAAI,IAAI,OAAO,CAAC;AACpE,SAAO,KAAK,OAAO,CAAC,MAAmB,OAAO,MAAM,YAAY,EAAE,SAAS,CAAC;AAC9E;AAWO,SAAS,iBAAiB,MAAe,KAAsB;AACpE,QAAM,OAAO,IAAI,YAAY;AAC7B,SAAO,WAAW,IAAI,EAAE;AAAA,IACtB,CAAC,MAAM,oBAAoB,CAAC,EAAE,YAAY,MAAM;AAAA,EAClD;AACF;AAQO,SAAS,YAAY,IAAqB;AAC/C,QAAM,IAAI,OAAO,EAAE;AACnB,SAAO,oBAAoB,KAAK,CAAC,IAAI,EAAE,YAAY,IAAI;AACzD;AAsBO,SAAS,0BACd,MAC2B;AAC3B,QAAM,QAAQ,WAAW,IAAI;AAC7B,SAAO;AAAA,IACL,qBAAqB,MAAM,KAAK,aAAa;AAAA,IAC7C,0BAA0B;AAAA,EAC5B;AACF;AAkBO,SAAS,eACd,MACoB;AACpB,QAAM,QAAQ,MAAM,QAAQ,IAAI,IAAI,KAAK,CAAC,IAAI;AAC9C,SAAO,OAAO,UAAU,YAAY,MAAM,SAAS,IAAI,QAAQ;AACjE;AAGO,SAAS,gBACd,MACS;AACT,SAAO,eAAe,IAAI,MAAM,cAAc;AAChD;AAGO,SAAS,kBACd,MACS;AACT,SAAO,eAAe,IAAI,MAAM,cAAc;AAChD;;;AC+iHO,IAAM,gBAAgB;AAAA,EAC3B,kBAAkB;AAAA,EAClB,SAAS;AAAA,EACT,WAAW;AAAA,EACX,oBAAoB;AAAA,EACpB,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,OAAO;AAAA,EACP,KAAK;AAAA,EACL,eAAe;AAAA,EACf,WAAW;AACb;;;ACjsHO,IAAM,iBAAiB;AAAA,EAC5B,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,KAAK;AAAA,EACL,eAAe;AAAA,EACf,eAAe;AAAA,EACf,WAAW;AACb;AAKO,IAAM,wBAAwB;AAAA,EACnC,eAAe;AAAA,EACf,eAAe;AAAA,EACf,eAAe;AAAA,EACf,eAAe;AAAA,EACf,eAAe;AAAA,EACf,eAAe;AAAA,EACf,eAAe;AACjB;AAEO,IAAM,wBAA4D;AAAA,EACvE,CAAC,eAAe,UAAU,GAAG;AAAA,EAC7B,CAAC,eAAe,UAAU,GAAG;AAAA,EAC7B,CAAC,eAAe,KAAK,GAAG;AAAA,EACxB,CAAC,eAAe,GAAG,GAAG;AAAA,EACtB,CAAC,eAAe,aAAa,GAAG;AAAA,EAChC,CAAC,eAAe,aAAa,GAAG;AAAA,EAChC,CAAC,eAAe,SAAS,GAAG;AAC9B;AAKA,IAAM,8BAA8B;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAOA,IAAM,cAAc,IAAI,IAAY,2BAA2B;AAGxD,IAAM,wBACX,OAAO,KAAK,aAAqB,EACjC,OAAO,CAAC,QAAmC,CAAC,YAAY,IAAI,GAAG,CAAC;AAO3D,IAAM,iBAAiB;AAAA,EAC5B,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,KAAK;AAAA,EACL,eAAe;AAAA,EACf,WAAW;AACb;AAGO,IAAM,gCAET;AAAA,EACF,CAAC,eAAe,UAAU,GAAG,eAAe;AAAA,EAC5C,CAAC,eAAe,UAAU,GAAG,eAAe;AAC9C;AAGO,IAAM,0BAA6C;AAAA,EACxD,eAAe;AACjB;AAIO,IAAM,+BAA+B;AAAA,EAC1C,GAAG;AAAA,EACH,GAAG,OAAO,KAAK,6BAA6B;AAAA,EAC5C,GAAG;AACL;AAEA,IAAM,qBAAqB,IAAI,IAAY,qBAAqB;AAGzD,SAAS,gBAAgB,OAA6C;AAC3E,SAAO,OAAO,UAAU,YAAY,mBAAmB,IAAI,KAAK;AAClE;AAOO,SAAS,uBAAuB,OAAwB;AAC7D,QAAM,IAAI,OAAO,KAAK;AACtB,SAAO,8BAA8B,CAAC,KAAK;AAC7C;AAOO,SAAS,mBAAmB,SAGjC;AACA,QAAM,MAA4B,CAAC;AACnC,QAAM,eAAyB,CAAC;AAChC,aAAW,OAAO,MAAM,QAAQ,OAAO,IAAI,UAAU,CAAC,GAAG;AACvD,UAAM,IAAI,uBAAuB,GAAG;AACpC,QAAI,gBAAgB,CAAC,GAAG;AACtB,UAAI,CAAC,IAAI,SAAS,CAAC,EAAG,KAAI,KAAK,CAAC;AAAA,IAClC,WAAW,CAAC,aAAa,SAAS,CAAC,GAAG;AACpC,mBAAa,KAAK,CAAC;AAAA,IACrB;AAAA,EACF;AACA,SAAO,EAAE,SAAS,KAAK,aAAa;AACtC;AAQO,SAAS,2BAA2B,QAAyB;AAClE,MAAI,WAAW,UAAa,WAAW,QAAQ,WAAW,IAAI;AAC5D,WAAO,eAAe;AAAA,EACxB;AACA,SAAO,uBAAuB,MAAM;AACtC;AAWO,SAAS,6BAA6B,OAAwB;AACnE,QAAM,IAAI,uBAAuB,KAAK;AACtC,SACE,OAAO,QAAQ,6BAA6B,EAAE;AAAA,IAC5C,CAAC,CAAC,EAAE,KAAK,MAAM,UAAU;AAAA,EAC3B,IAAI,CAAC,KAAK;AAEd;AAOO,SAAS,mBAAmB,OAAwB;AACzD,QAAM,IAAI,uBAAuB,KAAK;AACtC,QAAM,QAAS,OAAO,QAAQ,6BAA6B,EAAE;AAAA,IAC3D,CAAC,CAAC,EAAE,KAAK,MAAM,UAAU;AAAA,EAC3B,IAAI,CAAC,KAAK;AACV,SAAO,sBAAsB,KAAK,KAAK;AACzC;;;AClLO,IAAM,6BAAyD;AAAA,EACpE;AAAA,EACA;AACF;AAEA,IAAM,gCAAqD,IAAI;AAAA,EAC7D;AACF;AASO,SAAS,yBACd,SACS;AACT,SACE,YAAY,UACZ,YAAY,QACZ,8BAA8B,IAAI,OAAO;AAE7C;;;AClBO,SAAS,4BAA4B,WAGhC;AACV,SACE,UAAU,WAAW,QACrB,CAAC,0BAA0B,UAAU,IAAI,EAAE;AAE/C;AA8BO,IAAM,2BAA2B;AASjC,SAAS,sBACX,OACO;AACV,QAAM,MAAgB,CAAC;AACvB,QAAM,OAAO,oBAAI,IAAY;AAC7B,aAAW,QAAQ,OAAO;AACxB,eAAW,OAAO,MAAM;AACtB,YAAM,KAAK,OAAO,IAAI,KAAK;AAC3B,UAAI,EAAE,WAAW,EAAG;AACpB,YAAM,MAAM,EAAE,YAAY;AAC1B,UAAI,KAAK,IAAI,GAAG,EAAG;AACnB,WAAK,IAAI,GAAG;AACZ,UAAI,KAAK,CAAC;AACV,UAAI,IAAI,UAAU,yBAA0B,QAAO;AAAA,IACrD;AAAA,EACF;AACA,SAAO;AACT;AAOO,SAAS,4BACX,OACK;AACR,QAAM,OAAO,oBAAI,IAAY;AAC7B,aAAW,QAAQ,OAAO;AACxB,eAAW,OAAO,MAAM;AACtB,YAAM,KAAK,OAAO,IAAI,KAAK,EAAE,YAAY;AACzC,UAAI,EAAE,SAAS,EAAG,MAAK,IAAI,CAAC;AAAA,IAC9B;AAAA,EACF;AACA,SAAO,KAAK,IAAI,GAAG,KAAK,OAAO,wBAAwB;AACzD;AAcO,SAAS,gBACd,IACA,mBACQ;AACR,QAAM,KAAK,MAAM,CAAC,GAAG,KAAK,IAAI;AAC9B,QAAM,IAAI,qBAAqB;AAC/B,QAAM,IAAI,IAAI,IAAI,6BAA6B,MAAM,IAAI,KAAK,OAAO;AACrE,SAAO,KAAK,IAAI,IAAI,QAAQ,IAAI,KAAK;AACvC;AAUO,SAAS,8BACd,cACA,mBACQ;AACR,QAAM,IAAI,qBAAqB;AAC/B,SAAO,KAAK,IAAI,GAAG,eAAe,IAAI,wBAAwB;AAChE;AAWO,SAAS,8BACd,KACS;AACT,MAAI,CAAC,IAAK,QAAO;AACjB,UACG,IAAI,SAAS,IAAI,KAAK,EAAE,SAAS,MACjC,IAAI,iBAAiB,CAAC,GAAG,SAAS,MAClC,IAAI,eAAe,CAAC,GAAG,SAAS;AAErC;AAOO,SAAS,0BACd,KACS;AACT,SACE,CAAC,8BAA8B,GAAG,MAAM,KAAK,qBAAqB,KAAK;AAE3E;;;ACnHO,IAAM,+BAA+B;AAQ5C,SAAS,iBAAiB,OAGd;AACV,SACE,MAAM,eAAe,SAAS,KAC9B,MAAM,mBAAmB,MAAM;AAEnC;AASA,IAAM,mBAAwC,oBAAI,IAAI;AAAA,EACpD,eAAe;AAAA,EACf,eAAe;AACjB,CAAC;AAUM,SAAS,cAAc,QAAyB;AACrD,SAAO,WAAW,UAAa,WAAW,QAAQ,WAAW,KACzD,eAAe,aACf,OAAO,MAAM;AACnB;AAGO,SAAS,wBAAwB,QAA0B;AAChE,SAAO,iBAAiB,IAAI,cAAc,MAAM,CAAC;AACnD;AAGO,SAAS,mBAAmB,QAAwB;AACzD,SAAO,sBAAsB,MAA4B,KAAK;AAChE;AAGO,SAAS,iBAAiB,OAAkC;AACjE,MAAI,MAAM,UAAU,EAAG,QAAO,MAAM,KAAK,EAAE;AAC3C,SAAO,GAAG,MAAM,MAAM,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,QAAQ,MAAM,MAAM,SAAS,CAAC,CAAC;AACxE;AAMO,SAAS,8BAA8B,OAGlC;AACV,SAAO,iBAAiB,KAAK;AAC/B;AAMO,SAAS,6BACd,cACS;AACT,SAAO,yBAAyB,YAAY;AAC9C;AAUO,SAAS,mBAA2C,OAKzC;AAChB,MAAI,MAAM,YAAY,QAAQ,MAAM,YAAY,OAAW,QAAO;AAGlE,MAAI,MAAM,SAAS,WAAW,6BAA8B,QAAO;AAInE,MACE,8BAA8B;AAAA,IAC5B,gBAAgB,MAAM;AAAA,IACtB,mBAAmB,MAAM;AAAA,EAC3B,CAAC,GACD;AACA,WAAO;AAAA,EACT;AACA,SAAO,MAAM;AACf;AAcO,SAAS,qBACd,SAC0B;AAC1B,QAAM,MAAM,SAAS;AACrB,MAAI,CAAC,MAAM,QAAQ,GAAG,EAAG,QAAO;AAMhC,QAAM,SAAmB,CAAC;AAC1B,aAAW,SAAS,KAA2B;AAC7C,UAAM,IAAI,6BAA6B,KAAK;AAC5C,QAAI,CAAC,OAAO,SAAS,CAAC,EAAG,QAAO,KAAK,CAAC;AAAA,EACxC;AACA,SAAO,OAAO,WAAW,IAAI,OAAO;AACtC;AAMO,SAAS,qBAAqB,OAKnB;AAChB,QAAM,EAAE,QAAQ,IAAI;AACpB,MAAI,YAAY,OAAW,QAAO;AAClC,MAAI,6BAA6B,MAAM,YAAY,EAAG,QAAO;AAC7D,QAAM,SAAS,qBAAqB,OAAO;AAC3C,MAAI,WAAW,KAAM,QAAO;AAC5B,QAAM,SAAS,cAAc,MAAM,MAAM;AACzC,MAAI,OAAO,SAAS,MAAM,EAAG,QAAO;AACpC,QAAM,OAAO,mBAAmB,MAAM;AACtC,SACE,oEAAoE,IAAI,gCAChD,iBAAiB,OAAO,IAAI,kBAAkB,CAAC,CAAC,kCAC1D,IAAI;AAEtB;AAEA,IAAM,SAAS,CAAC,MAA4B;AAC1C,MAAI,MAAM,UAAa,MAAM,QAAQ,MAAM,GAAI,QAAO;AACtD,QAAM,IAAI,IAAI,KAAK,CAA2B;AAC9C,SAAO,OAAO,MAAM,EAAE,QAAQ,CAAC,IAAI,OAAO;AAC5C;AAGO,IAAM,iBAAiB,CAAC,MAAoB,EAAE,YAAY,EAAE,MAAM,GAAG,EAAE;AAGvE,SAAS,YAAY,GAAe;AACzC,SAAO,oBAAI,KAAK,GAAG,eAAe,CAAC,CAAC,gBAAgB;AACtD;AAUO,SAAS,gBACd,SACa;AACb,QAAM,MAAM,OAAO,SAAS,cAAc;AAC1C,SAAO,QAAQ,OAAO,OAAO,YAAY,GAAG;AAC9C;AAGO,SAAS,cACd,SACe;AACf,QAAM,MAAM,gBAAgB,OAAO;AACnC,SAAO,QAAQ,OAAO,OAAO,eAAe,GAAG;AACjD;AA2CO,SAAS,wBAAwB,OAMhB;AACtB,QAAM,cAAc,MAAM,gBAAgB;AAC1C,QAAM,MAAM,cAAc,OAAO,OAAO,MAAM,cAAc;AAC5D,QAAM,YAAiC;AAAA,IACrC,MAAM;AAAA,IACN,gBAAgB;AAAA,IAChB;AAAA,IACA,aAAa;AAAA,IACb,YAAY;AAAA,EACd;AACA,MAAI,CAAC,wBAAwB,MAAM,MAAM,EAAG,QAAO;AACnD,QAAM,aAAa,gBAAgB,MAAM,OAAO;AAChD,MAAI,eAAe,KAAM,QAAO;AAChC,MAAI,QAAQ,MAAM;AAChB,WAAO;AAAA,MACL,MAAM;AAAA,MACN,gBAAgB;AAAA,MAChB,aAAa;AAAA,MACb,aAAa;AAAA,MACb;AAAA,IACF;AAAA,EACF;AACA,QAAM,WAAW,eAAe,GAAG;AACnC,QAAM,aAAa,eAAe,UAAU;AAC5C,MAAI,WAAW,YAAY;AACzB,WAAO;AAAA,MACL,MAAM;AAAA,MACN;AAAA,MACA;AAAA,MACA,SACE,2BAA2B,QAAQ,yDACU,UAAU;AAAA,IAG3D;AAAA,EACF;AACA,SAAO,EAAE,GAAG,WAAW,WAAW;AACpC;;;AC1SO,IAAM,kBAAkB,EAAE,QAAQ,UAAU,MAAM,OAAO;AAezD,IAAM,0BAA0B;AAAA,EACrC,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,YAAY;AACd;AAqCA,SAAS,iBAAiB,MAAkC;AAC1D,SAAO,SAAS,UAAa,KAAK,KAAK,EAAE,SAAS,IAAI,OAAO;AAC/D;AAGA,SAAS,gBAAgB,MAAkC;AACzD,SAAO,SAAS,UAAa,KAAK,KAAK,EAAE,SAAS,IAAI,OAAO;AAC/D;AAEA,SAAS,YAAY,MAAoC;AACvD,SAAO,KAAK,KAAK,KAAK,EAAE,SAAS,IAC7B,aAAa,KAAK,IAAI,MACtB;AACN;AAGO,SAAS,0BACd,MACsB;AACtB,SAAO;AAAA,IACL,MAAM,wBAAwB;AAAA,IAC9B,SAAS,yBAAyB,gBAAgB,IAAI,CAAC;AAAA,EACzD;AACF;AAGO,SAAS,wBACd,MACsB;AACtB,SAAO;AAAA,IACL,MAAM,wBAAwB;AAAA,IAC9B,SAAS,6BAA6B,gBAAgB,IAAI,CAAC;AAAA,EAC7D;AACF;AAGA,SAAS,UAAU,YAA8B;AAC/C,SACE,iBAAiB,YAAY,cAAc,KAAK,KAChD,CAAC,iBAAiB,YAAY,cAAc,MAAM,KAClD,CAAC,iBAAiB,YAAY,cAAc,IAAI;AAEpD;AAOO,SAAS,gCACd,MACS;AACT,MAAI,SAAS,WAAW,SAAS,aAAc,QAAO;AACtD,SAAO,SAAS,QAAQ,eAAe,KAAK,QAAQ,MAAS,MAAM;AACrE;AAYO,SAAS,qBACd,OACA,8BACA,OACgE;AAChE,MAAI,MAAM,WAAW,EAAG,QAAO;AAC/B,MAAI,iCAAiC,MAAM;AACzC,UAAM,aAAa,MAAM;AAAA,MACvB,CAAC,MAAM,YAAY,EAAE,EAAE,MAAM,YAAY,4BAA4B;AAAA,IACvE;AACA,QAAI,WAAY,QAAO,EAAE,MAAM,YAAY,KAAK,aAAa;AAAA,EAC/D;AACA,QAAM,WAAW,MAAM,OAAO,CAAC,MAAM,EAAE,gBAAgB,IAAI;AAC3D,MAAI,SAAS,WAAW,GAAG;AACzB,WAAO,EAAE,MAAM,SAAS,CAAC,GAAI,KAAK,mBAAmB;AAAA,EACvD;AACA,MAAI,MAAM,WAAW,EAAG,QAAO,EAAE,MAAM,MAAM,CAAC,GAAI,KAAK,cAAc;AACrE,QAAM,MAAM,QAAQ,MAAM,OAAO,KAAK,IAAI,CAAC;AAC3C,MAAI,IAAI,WAAW,EAAG,QAAO,EAAE,MAAM,IAAI,CAAC,GAAI,KAAK,qBAAqB;AACxE,QAAM,OAAO,CAAC,GAAI,IAAI,SAAS,IAAI,MAAM,KAAM,EAAE;AAAA,IAAK,CAAC,GAAG,MACxD,EAAE,GAAG,cAAc,EAAE,EAAE;AAAA,EACzB;AACA,SAAO;AAAA,IACL,MAAM,KAAK,CAAC;AAAA,IACZ,KAAK,IAAI,SAAS,IAAI,iBAAiB;AAAA,EACzC;AACF;AAsBO,SAAS,qBAAqB,WAQhB;AACnB,QAAM,EAAE,MAAM,KAAK,IAAI;AACvB,MAAI,SAAS,cAAc;AACzB,WAAO,EAAE,IAAI,OAAO,GAAG,wBAAwB,IAAI,EAAE;AAAA,EACvD;AACA,MAAI,SAAS,SAAS;AACpB,WAAO,EAAE,IAAI,OAAO,GAAG,0BAA0B,IAAI,EAAE;AAAA,EACzD;AACA,QAAM,OAAO,MAAM,QAAQ;AAC3B,MAAI,kBAAkB,IAAI,GAAG;AAC3B,WAAO,EAAE,IAAI,MAAM,MAAM,gBAAgB,QAAQ,KAAK;AAAA,EACxD;AACA,MAAI,gBAAgB,IAAI,GAAG;AACzB,WAAO,EAAE,IAAI,MAAM,MAAM,gBAAgB,MAAM,KAAK;AAAA,EACtD;AAEA,MAAI,eAAe,IAAI,MAAM,cAAc,OAAO;AAChD,WAAO,EAAE,IAAI,MAAM,MAAM,gBAAgB,QAAQ,KAAK;AAAA,EACxD;AACA,MAAI,gCAAgC,IAAI,GAAG;AACzC,QAAI,UAAU,qBAAqB,MAAM;AACvC,aAAO,EAAE,IAAI,OAAO,GAAG,wBAAwB,IAAI,EAAE;AAAA,IACvD;AACA,QAAI,UAAU,UAAU,UAAU,GAAG;AACnC,aAAO,EAAE,IAAI,MAAM,MAAM,gBAAgB,QAAQ,KAAK;AAAA,IACxD;AAAA,EACF;AAEA,SAAO,EAAE,IAAI,MAAM,MAAM,gBAAgB,MAAM,KAAK;AACtD;AAGO,SAAS,sBACd,WAIA,SACA,SAC6B;AAC7B,MAAI,YAAY,QAAS,QAAO;AAChC,QAAM,MAAM,YAAY,gBAAgB,SAAS,WAAW;AAC5D,QAAM,MACJ,UAAU,SAAS,OACf,GAAG,YAAY,UAAU,IAAI,CAAC,OAAO,gBAAgB,UAAU,IAAI,CAAC,KACpE,iBAAiB,UAAU,IAAI;AACrC,SAAO;AAAA,IACL,MAAM,wBAAwB;AAAA,IAC9B,SAAS,GAAG,GAAG,2BAA2B,GAAG;AAAA,EAC/C;AACF;;;ACxLO,SAAS,kBACd,UACuB;AACvB,SAAO,aAAa,QAAQ,WAAW;AACzC;AAMO,IAAM,6BAA6B;AAqBnC,IAAM,8BAAsD;AAAA,EACjE,SAAS;AAAA,EACT,eAAe;AAAA,EACf,kBAAkB,CAAC;AAAA,EACnB,QAAQ,CAAC;AACX;AAEA,SAAS,cAAc,OAAkD;AACvE,SACE,OAAO,UAAU,YACjB,UAAU,QACV,CAAC,MAAM,QAAQ,KAAK,KACpB,OAAO,eAAe,KAAK,MAAM,OAAO;AAE5C;AAMO,SAAS,uBAAuB,KAAsC;AAC3E,MAAI,QAAQ,UAAa,QAAQ,KAAM,QAAO;AAC9C,MAAI,CAAC,cAAc,GAAG,GAAG;AACvB,WAAO;AAAA,MACL,SAAS;AAAA,MACT,eAAe;AAAA,MACf,kBAAkB,CAAC;AAAA,MACnB,QAAQ,CAAC,uBAAuB;AAAA,IAClC;AAAA,EACF;AACA,QAAM,SAAoC,CAAC;AAE3C,QAAM,MAAM,IAAI;AAChB,MAAI,gBAA0C;AAC9C,MAAI,QAAQ,cAAc,QAAQ,SAAU,iBAAgB;AAAA,WACnD,QAAQ,UAAa,QAAQ,MAAM;AAC1C,WAAO,KAAK,wBAAwB;AAAA,EACtC;AAEA,QAAM,mBAA6B,CAAC;AACpC,QAAM,YAAY,IAAI;AACtB,MAAI,cAAc,UAAa,cAAc,MAAM;AACjD,QAAI,CAAC,cAAc,SAAS,GAAG;AAC7B,aAAO,KAAK,2BAA2B;AAAA,IACzC,OAAO;AACL,UAAI,mBAAmB;AACvB,iBAAW,CAAC,SAAS,KAAK,KAAK,OAAO,QAAQ,SAAS,GAAG;AACxD,YAAI,UAAU,WAAY,kBAAiB,KAAK,OAAO;AAAA,YAClD,oBAAmB;AAAA,MAC1B;AACA,UAAI,iBAAkB,QAAO,KAAK,6BAA6B;AAAA,IACjE;AAAA,EACF;AACA,SAAO,EAAE,SAAS,MAAM,eAAe,kBAAkB,OAAO;AAClE;AAgCO,SAAS,wBAAwB,OAInB;AACnB,QAAM,iBAAiB,kBAAkB,MAAM,WAAW;AAC1D,QAAM,WAAW,MAAM,SAAS;AAChC,MAAI,aAAa,MAAM;AACrB,WAAO;AAAA,MACL,SAAS;AAAA,MACT,UAAU,aAAa;AAAA,MACvB,QAAQ;AAAA,MACR;AAAA,MACA,UAAU,oCAAoC,QAAQ;AAAA,IACxD;AAAA,EACF;AACA,SAAO;AAAA,IACL,SAAS;AAAA,IACT,UAAU,mBAAmB;AAAA,IAC7B,QAAQ;AAAA,IACR;AAAA,IACA,UAAU,gBAAgB,MAAM,gBAAgB,OAAO,0BAA0B,OAAO,MAAM,WAAW,CAAC,WAAM,cAAc;AAAA,EAChI;AACF;AASO,SAAS,wBACd,MACA,eACkB;AAClB,MACE,KAAK,OAAO,YAAY,YACxB,OAAO,kBAAkB,YACzB,cAAc,SAAS,KACvB,KAAK,iBAAiB,SAAS,aAAa,GAC5C;AACA,WAAO;AAAA,MACL,GAAG,KAAK;AAAA,MACR,SAAS;AAAA,MACT,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,UAAU,oCAAoC,aAAa;AAAA,IAC7D;AAAA,EACF;AACA,SAAO,KAAK;AACd;AAaO,SAAS,wBACd,OACkB;AAClB,SAAO;AAAA,IACL;AAAA,MACE,QAAQ,wBAAwB,KAAK;AAAA,MACrC,kBAAkB,MAAM,SAAS;AAAA,IACnC;AAAA,IACA,MAAM;AAAA,EACR;AACF;","names":[]}
|