@htilabs/platform-common-models 0.8.13 → 0.8.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/README.md +44 -0
  2. package/dist/config/index.cjs +4 -0
  3. package/dist/config/index.cjs.map +1 -1
  4. package/dist/config/index.d.cts +16 -1
  5. package/dist/config/index.d.ts +16 -1
  6. package/dist/config/index.js +2 -0
  7. package/dist/config/index.js.map +1 -1
  8. package/dist/constants/index.cjs +10 -0
  9. package/dist/constants/index.cjs.map +1 -1
  10. package/dist/constants/index.d.cts +1 -1
  11. package/dist/constants/index.d.ts +1 -1
  12. package/dist/constants/index.js +10 -0
  13. package/dist/constants/index.js.map +1 -1
  14. package/dist/cvcs/index.cjs +601 -2
  15. package/dist/cvcs/index.cjs.map +1 -1
  16. package/dist/cvcs/index.d.cts +2754 -2084
  17. package/dist/cvcs/index.d.ts +2754 -2084
  18. package/dist/cvcs/index.js +594 -2
  19. package/dist/cvcs/index.js.map +1 -1
  20. package/dist/{index-I-DiX9eQ.d.ts → index-CDoqrfc1.d.ts} +1 -1
  21. package/dist/{index-CoVr1jIV.d.cts → index-Zu_mOJRn.d.cts} +1 -1
  22. package/dist/index.cjs +709 -4
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.cts +154 -7
  25. package/dist/index.d.ts +154 -7
  26. package/dist/index.js +693 -4
  27. package/dist/index.js.map +1 -1
  28. package/dist/models/index.d.cts +2 -2
  29. package/dist/models/index.d.ts +2 -2
  30. package/dist/mongo/index.cjs +383 -0
  31. package/dist/mongo/index.cjs.map +1 -0
  32. package/dist/mongo/index.d.cts +221 -0
  33. package/dist/mongo/index.d.ts +221 -0
  34. package/dist/mongo/index.js +351 -0
  35. package/dist/mongo/index.js.map +1 -0
  36. package/dist/{platform-auth-BfCMuAlC.d.cts → platform-auth-AsfnIXfK.d.cts} +2 -2
  37. package/dist/{platform-auth-BfCMuAlC.d.ts → platform-auth-AsfnIXfK.d.ts} +2 -2
  38. package/dist/schemas/index.cjs +5 -1
  39. package/dist/schemas/index.cjs.map +1 -1
  40. package/dist/schemas/index.d.cts +29 -25
  41. package/dist/schemas/index.d.ts +29 -25
  42. package/dist/schemas/index.js +5 -1
  43. package/dist/schemas/index.js.map +1 -1
  44. package/dist/types/index.d.cts +2 -2
  45. package/dist/types/index.d.ts +2 -2
  46. package/package.json +10 -1
  47. package/src/__sot__/coreIndicators.pin.json +6 -1
  48. package/src/__tests__/__snapshots__/cvc-sot.snap +18 -2
  49. package/src/__tests__/cvc-136-scoring-invariant.test.ts +6 -3
  50. package/src/__tests__/cvc-drift-gate.test.ts +14 -3
  51. package/src/__tests__/cvc-sot-snapshot.test.ts +13 -1
  52. package/src/__tests__/cvc-structural.test.ts +6 -0
  53. package/src/__tests__/mongo-verifier.test.ts +502 -0
  54. package/src/config/index.ts +8 -2
  55. package/src/constants/ic.ts +31 -2
  56. package/src/cvcs/assertionStatus.v1.0.0.json +80 -0
  57. package/src/cvcs/caseShareState.v1.0.0.json +62 -0
  58. package/src/cvcs/coreIndicators.v1.0.0.json +67 -2
  59. package/src/cvcs/createdBySystem.v1.0.0.json +89 -0
  60. package/src/cvcs/criminalOrgCategory.v1.0.0.json +116 -0
  61. package/src/cvcs/hmisSex.v1.0.0.json +89 -0
  62. package/src/cvcs/index.ts +22 -0
  63. package/src/cvcs/minorAdultStatus.v1.0.0.json +80 -0
  64. package/src/cvcs/referralOrigin.v1.0.0.json +26 -0
  65. package/src/cvcs/subjectType.v1.0.0.json +80 -0
  66. package/src/generated/cvc-enums.ts +125 -2
  67. package/src/index.ts +20 -0
  68. package/src/mongo/catalog.ts +65 -0
  69. package/src/mongo/contract.ts +157 -0
  70. package/src/mongo/index.ts +343 -0
  71. package/src/mongo/similarity.ts +133 -0
  72. package/src/mongo/uri.ts +53 -0
  73. package/src/schemas/common.ts +4 -0
  74. package/dist/{cvcEntry-BCj1OWqL.d.cts → cvcEntry-0BIB9sen.d.cts} +8 -8
  75. package/dist/{cvcEntry-BCj1OWqL.d.ts → cvcEntry-0BIB9sen.d.ts} +8 -8
@@ -7217,6 +7217,98 @@ var sharePurpose_v1_0_0_default = {
7217
7217
  ]
7218
7218
  };
7219
7219
 
7220
+ // src/cvcs/referralOrigin.v1.0.0.json
7221
+ var referralOrigin_v1_0_0_default = {
7222
+ domain: "referral_origin",
7223
+ name: "Core Referral Origin",
7224
+ version: "1.0.0",
7225
+ levels: { "1": "Origin" },
7226
+ entries: [
7227
+ {
7228
+ code: "909-001-000-000-000-000-000",
7229
+ key: "internal",
7230
+ title: "Internal",
7231
+ selectable: true,
7232
+ parentCode: null,
7233
+ childCodes: [],
7234
+ definition: "A referral whose sending and receiving parties sit within the same agency or account boundary, so completing it involves no disclosure of client information across an organizational boundary."
7235
+ },
7236
+ {
7237
+ code: "909-002-000-000-000-000-000",
7238
+ key: "external",
7239
+ title: "External",
7240
+ selectable: true,
7241
+ parentCode: null,
7242
+ childCodes: [],
7243
+ definition: "A referral whose receiving party is a different agency, making acceptance a cross-agency disclosure of client information. Where an implementation cannot positively determine the origin, it must treat the referral as external, so that the stronger disclosure controls apply by default rather than the weaker ones."
7244
+ }
7245
+ ]
7246
+ };
7247
+
7248
+ // src/cvcs/caseShareState.v1.0.0.json
7249
+ var caseShareState_v1_0_0_default = {
7250
+ domain: "case_share_state",
7251
+ name: "Core Case Share State",
7252
+ version: "1.0.0",
7253
+ levels: { "1": "State" },
7254
+ entries: [
7255
+ {
7256
+ code: "925-001-000-000-000-000-000",
7257
+ key: "pending",
7258
+ title: "Pending",
7259
+ selectable: true,
7260
+ parentCode: null,
7261
+ childCodes: [],
7262
+ definition: "The share has been delivered to the receiving party and is awaiting a claim. No one on the receiving side has taken responsibility for it yet, and no client content has been disclosed."
7263
+ },
7264
+ {
7265
+ code: "925-002-000-000-000-000-000",
7266
+ key: "claimed",
7267
+ title: "Claimed",
7268
+ selectable: true,
7269
+ parentCode: null,
7270
+ childCodes: [],
7271
+ definition: "A team on the receiving side has taken custody of the share but has not yet accepted it. Claiming assigns responsibility only; it discloses no client content, so a claimed share is still outstanding work rather than a completed exchange."
7272
+ },
7273
+ {
7274
+ code: "925-003-000-000-000-000-000",
7275
+ key: "accepted_awaiting_review",
7276
+ title: "Accepted \u2014 awaiting review",
7277
+ selectable: true,
7278
+ parentCode: null,
7279
+ childCodes: [],
7280
+ definition: "The share has been accepted and its content disclosed, but one or more delivered persons matched an existing record ambiguously and are held for a human decision before the receiving record is linked."
7281
+ },
7282
+ {
7283
+ code: "925-004-000-000-000-000-000",
7284
+ key: "accepted",
7285
+ title: "Accepted",
7286
+ selectable: true,
7287
+ parentCode: null,
7288
+ childCodes: [],
7289
+ definition: "The share has been accepted, its content disclosed, and the link to the receiving party's record written. Terminal."
7290
+ },
7291
+ {
7292
+ code: "925-005-000-000-000-000-000",
7293
+ key: "declined",
7294
+ title: "Declined",
7295
+ selectable: true,
7296
+ parentCode: null,
7297
+ childCodes: [],
7298
+ definition: "The receiving party refused the share at the claim decision point, BEFORE its content was disclosed. Distinct from rejected: no client information was released, so the refusal carries no disclosure to account for. Terminal."
7299
+ },
7300
+ {
7301
+ code: "925-006-000-000-000-000-000",
7302
+ key: "rejected",
7303
+ title: "Rejected",
7304
+ selectable: true,
7305
+ parentCode: null,
7306
+ childCodes: [],
7307
+ definition: "The receiving party refused the share AFTER accepting it and reviewing its content. Distinct from declined: the disclosure already occurred and remains subject to the receiving party's retention and audit obligations. Terminal."
7308
+ }
7309
+ ]
7310
+ };
7311
+
7220
7312
  // src/cvcs/facilitatorEntityType.v1.0.0.json
7221
7313
  var facilitatorEntityType_v1_0_0_default = {
7222
7314
  domain: "facilitator_entity_type",
@@ -26349,8 +26441,8 @@ var coreIndicators_v1_0_0_default = {
26349
26441
  domain: "core_indicators",
26350
26442
  name: "Core Indicators (CVC-136)",
26351
26443
  version: "1.0.0",
26352
- _status: "CANONICAL \u2014 re-sourced 0.8.13 from the live canonical catalog `data/core_indicators.yaml` @ prototype HEAD a596eb9 (208 codes), plus 2 codes that @hti/scoring (`weights/risk.weights.json` @ 9b5d654, `emits_by_code`) emits but the codebook has not yet adopted (`coercive_debt_pressure_youth`, `debt_terms_deceptive_youth`) = 210 substantive codes. 0.8.12 shipped 199 hand-coded codes in `src/constants/ic.ts` (`CVC_136_CORE_INDICATOR_VALUES`); 54 of those were invented rollup prefixes (`vc_*`, `csi_*`, `csctx_*`, `dv_*`, `net_*`, `auto_*`) with zero occurrences upstream and zero consumers in @hti/scoring, and 1 (`unusual_work_circumstances_general`) was coined from a label's parenthetical; all 55 are WITHDRAWN. 66 canonical codes that were missing are ADDED. Math: 199 - 1 - 54 + 66 = 210. HARD INVARIANT (enforced by `src/__tests__/cvc-136-scoring-invariant.test.ts`): every one of the 169 codes in @hti/scoring's `emits_by_code` is present in this domain. Entry attributes `family` / `polarity` / `severity` / `isAlert` / `alertWhen` are carried verbatim from the canonical catalog. `isAlert` is the ALERT AXIS: the alert list is a DERIVED VIEW over this domain (isAlert in {thread_pave, platform, pave}), not a separate taxonomy.",
26353
- _source: "htilabstech/prototype@a596eb9 data/core_indicators.yaml + htilabstech/hti-scoring@9b5d654 weights/risk.weights.json (emits_by_code)",
26444
+ _status: "CANONICAL \u2014 re-sourced 0.11.1 from the live canonical catalog `data/core_indicators.yaml` @ prototype HEAD 84a1b677 (213 codes; +5 vs the 0.8.13 pin a596eb9, 0 withdrawn), plus 2 codes that @hti/scoring (`weights/risk.weights.json` @ 9b5d654, `emits_by_code`) emits but the codebook has not yet adopted (`coercive_debt_pressure_youth`, `debt_terms_deceptive_youth`), each flagged `pendingUpstreamAdoption: true`. 215 substantive + the missingness quadruplet = 219 entries. New codes are APPENDED at 211-215 so every previously issued positional code stays stable.",
26445
+ _source: "htilabstech/prototype@84a1b677 data/core_indicators.yaml + htilabstech/hti-scoring@9b5d654 weights/risk.weights.json (emits_by_code)",
26354
26446
  levels: {
26355
26447
  "0": "Unknown or Missing",
26356
26448
  "1": "Indicator"
@@ -29186,6 +29278,71 @@ TRA Phase 3 Batch B apply per recs doc \xA7 4.2 + Crysta Q-3 sign-off.`,
29186
29278
  polarity: "increases_risk",
29187
29279
  severity: "elevated",
29188
29280
  isAlert: "none"
29281
+ },
29282
+ {
29283
+ code: "136-211-000-000-000-000-000",
29284
+ key: "clients_unaware_of_third_party_coordination",
29285
+ title: "Clients unaware they are coordinating with a third party (concealed dispatch)",
29286
+ selectable: true,
29287
+ parentCode: null,
29288
+ childCodes: [],
29289
+ definition: `LEADS TRA-7-aware captured that sex buyers reaching out to "the person" are in fact coordinating with a third party (dispatcher / manager / call service) WITHOUT knowing it \u2014 a concealed-intermediary booking pattern. Concealment of the coordinating third party from buyers is a control + facilitation marker over and above third-party coordination itself (which TRA-7 sometimes/never + TRA-7-who already capture): the operation is actively passing as the provider. Authored 2026-07-17 (TRA-VETTING, Crysta: "let's author one") for the restored production follow-up question.`,
29290
+ family: "mechanism_control",
29291
+ polarity: "increases_risk",
29292
+ severity: "elevated",
29293
+ isAlert: "none"
29294
+ },
29295
+ {
29296
+ code: "136-212-000-000-000-000-000",
29297
+ key: "depends_on_spouse_or_family_for_immigration_status",
29298
+ title: "Depends on spouse / family member for immigration status (tied family visa)",
29299
+ selectable: true,
29300
+ parentCode: null,
29301
+ childCodes: [],
29302
+ definition: `Indication the person's legal ability to remain in the U.S. depends on a spouse, fianc\xE9(e), or family member (family/fianc\xE9-based immigrant visa or derivative status) while their current status is a valid or overstayed visa. The family twin of depends_on_employer_for_immigration_status: a visa tied to a potentially abusive relationship is a major dependence vulnerability and a coercion lever ("stay / comply or lose your status"). Authored 2026-07-17 (TRA-VETTING open-items round, Crysta: dependence "whether it is via your husband or your employer is a MAJOR vulnerability").`,
29303
+ family: "mechanism_control",
29304
+ polarity: "depends",
29305
+ severity: "elevated",
29306
+ isAlert: "none"
29307
+ },
29308
+ {
29309
+ code: "136-213-000-000-000-000-000",
29310
+ key: "sexualized_content_in_person_performance_activity",
29311
+ title: "In-person sexualized performance / appearance-based activity",
29312
+ selectable: true,
29313
+ parentCode: null,
29314
+ childCodes: [],
29315
+ definition: "Canonical activity evidence (DH \xA7 II Activity 2.2.3) that the person engages in in-person sexualized, erotic, appearance-based, or entertainment activity with sexualized expectations \u2014 stripping, dancing, posing, hostess or venue work, escort/companionship without an established sex act \u2014 sex-market-adjacent, recorded descriptively; not necessarily a sex act for value.",
29316
+ family: "cs_industry_context",
29317
+ polarity: "increases_risk",
29318
+ severity: "elevated",
29319
+ isAlert: "none"
29320
+ },
29321
+ {
29322
+ code: "136-214-000-000-000-000-000",
29323
+ key: "sexualized_content_online_performance_activity",
29324
+ title: "Online sexual performance / interactive sexual content activity",
29325
+ selectable: true,
29326
+ parentCode: null,
29327
+ childCodes: [],
29328
+ definition: "Canonical activity evidence (DH \xA7 II Activity 2.2.2) that the person engages in sexualized or sexually explicit activity performed, streamed, recorded, messaged, or displayed through online or digital platforms \u2014 webcamming, livestreams, paid chats, content-platform work \u2014 recorded descriptively whether or not a commercial sex act is established.",
29329
+ family: "cs_industry_context",
29330
+ polarity: "increases_risk",
29331
+ severity: "elevated",
29332
+ isAlert: "none"
29333
+ },
29334
+ {
29335
+ code: "136-215-000-000-000-000-000",
29336
+ key: "trauma_perpetrator_is_current_manager",
29337
+ title: "Trauma perpetrator is a current manager / facilitator (trauma-bonded control)",
29338
+ selectable: true,
29339
+ parentCode: null,
29340
+ childCodes: [],
29341
+ definition: 'ENGINE-DERIVED conjunction: the same person the subject named as a trauma perpetrator (TRA-35 sexual violence / physical abuse / emotional-verbal-stalking capture) ALSO holds an operational-control edge over the subject (a TRA facilitation who-answer \u2014 posts ads / arranges dates / controls or keeps earnings / receives payments / organizes travel / holds documentation / above in the operation \u2014 or a relationship pair with a facilitator/offender role signal of their own). Two independently-captured facts joined on person identity \u2014 never an assumption (Crysta 2026-07-17: "these are two different questions"). The conjunction is the classic trauma-bonded, difficult-to-leave control situation.',
29342
+ family: "mechanism_control",
29343
+ polarity: "increases_risk",
29344
+ severity: "severe",
29345
+ isAlert: "none"
29189
29346
  }
29190
29347
  ]
29191
29348
  };
@@ -36875,6 +37032,434 @@ var suggestionSource_v1_0_0_default = {
36875
37032
  }
36876
37033
  ]
36877
37034
  };
37035
+
37036
+ // src/cvcs/assertionStatus.v1.0.0.json
37037
+ var assertionStatus_v1_0_0_default = {
37038
+ domain: "assertion_status",
37039
+ name: "Assertion Status",
37040
+ version: "1.0.0",
37041
+ _status: "PROVISIONAL \u2014 GDR \xA710.1 confirmed-CVC name is `core - status`, but Final CVCs/CVC_INDEX.md @ a596eb9 carries no number for it, so it parks in the provisional 900-block pending canonical Notion authoring + steward ratification. Substantive values sourced verbatim from the PAVE @pave/domain `ASSERTION_STATUSES` enum (D10 GDR \xA710.1 bulk publish, bead pv-pgdr-cvc-source-gdr-10-1-bulk-publish). The PAVE enum enumerates only the substantive lifecycle states, so the missingness quadruplet is added per SOT convention.",
37042
+ _source: "pave-2.0/packages/domain/src/enums.ts ASSERTION_STATUSES",
37043
+ levels: {
37044
+ "0": "Unknown or Missing",
37045
+ "1": "Assertion lifecycle status"
37046
+ },
37047
+ entries: [
37048
+ {
37049
+ code: "985-000-000-000-000-000-000",
37050
+ key: "missingness_root",
37051
+ title: "Unknown, Redacted, or Missing",
37052
+ selectable: false,
37053
+ parentCode: null,
37054
+ childCodes: [
37055
+ "985-000-000-000-000-000-001",
37056
+ "985-000-000-000-000-000-002",
37057
+ "985-000-000-000-000-000-003"
37058
+ ],
37059
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
37060
+ },
37061
+ {
37062
+ code: "985-000-000-000-000-000-001",
37063
+ key: "unknown",
37064
+ title: "Unknown",
37065
+ selectable: true,
37066
+ parentCode: "985-000-000-000-000-000-000",
37067
+ childCodes: [],
37068
+ definition: "The assertion status is unknown at time of entry (missingness sentinel)."
37069
+ },
37070
+ {
37071
+ code: "985-000-000-000-000-000-002",
37072
+ key: "anonymous",
37073
+ title: "Anonymous / declined to answer",
37074
+ selectable: true,
37075
+ parentCode: "985-000-000-000-000-000-000",
37076
+ childCodes: [],
37077
+ definition: "Value is intentionally withheld, declined, or redacted."
37078
+ },
37079
+ {
37080
+ code: "985-000-000-000-000-000-003",
37081
+ key: "data_not_collected",
37082
+ title: "Data not collected",
37083
+ selectable: true,
37084
+ parentCode: "985-000-000-000-000-000-000",
37085
+ childCodes: [],
37086
+ definition: "No attempt was made to collect the value."
37087
+ },
37088
+ {
37089
+ code: "985-001-000-000-000-000-000",
37090
+ key: "active",
37091
+ title: "Active",
37092
+ selectable: true,
37093
+ parentCode: null,
37094
+ childCodes: [],
37095
+ definition: 'In force \u2014 the current, non-superseded row for its spine partition. Emitting systems typically default new assertions to this status (e.g. PAVE\'s assertion factory defaults `status: "active"`).'
37096
+ },
37097
+ {
37098
+ code: "985-002-000-000-000-000-000",
37099
+ key: "superseded",
37100
+ title: "Superseded",
37101
+ selectable: true,
37102
+ parentCode: null,
37103
+ childCodes: [],
37104
+ definition: 'Replaced by a later assertion row in the same spine partition. When status === "superseded", `supersedes_assertion_id` is required per GLOBAL_DESIGN_RULES \xA75.5.'
37105
+ },
37106
+ {
37107
+ code: "985-003-000-000-000-000-000",
37108
+ key: "retracted",
37109
+ title: "Retracted",
37110
+ selectable: true,
37111
+ parentCode: null,
37112
+ childCodes: [],
37113
+ definition: "Withdrawn or invalidated without a replacement row \u2014 the claim is no longer asserted. Distinct from superseded (which points at a successor)."
37114
+ }
37115
+ ]
37116
+ };
37117
+
37118
+ // src/cvcs/createdBySystem.v1.0.0.json
37119
+ var createdBySystem_v1_0_0_default = {
37120
+ domain: "created_by_system",
37121
+ name: "Created By System",
37122
+ version: "1.0.0",
37123
+ _status: "PROVISIONAL \u2014 GDR \xA710.1 confirmed-CVC name is `core - created_by_system`, but Final CVCs/CVC_INDEX.md @ a596eb9 carries no number for it, so it parks in the provisional 900-block pending canonical Notion authoring + steward ratification. Substantive values sourced verbatim from the PAVE @pave/domain `CREATED_BY_SYSTEMS` enum (D10 GDR \xA710.1 bulk publish, bead pv-pgdr-cvc-source-gdr-10-1-bulk-publish). The PAVE enum enumerates only the substantive actor classes, so the missingness quadruplet is added per SOT convention.",
37124
+ _source: "pave-2.0/packages/domain/src/enums.ts CREATED_BY_SYSTEMS",
37125
+ levels: {
37126
+ "0": "Unknown or Missing",
37127
+ "1": "Creating actor class"
37128
+ },
37129
+ entries: [
37130
+ {
37131
+ code: "986-000-000-000-000-000-000",
37132
+ key: "missingness_root",
37133
+ title: "Unknown, Redacted, or Missing",
37134
+ selectable: false,
37135
+ parentCode: null,
37136
+ childCodes: [
37137
+ "986-000-000-000-000-000-001",
37138
+ "986-000-000-000-000-000-002",
37139
+ "986-000-000-000-000-000-003"
37140
+ ],
37141
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
37142
+ },
37143
+ {
37144
+ code: "986-000-000-000-000-000-001",
37145
+ key: "unknown",
37146
+ title: "Unknown",
37147
+ selectable: true,
37148
+ parentCode: "986-000-000-000-000-000-000",
37149
+ childCodes: [],
37150
+ definition: "The creating actor class is unknown at time of entry (missingness sentinel)."
37151
+ },
37152
+ {
37153
+ code: "986-000-000-000-000-000-002",
37154
+ key: "anonymous",
37155
+ title: "Anonymous / declined to answer",
37156
+ selectable: true,
37157
+ parentCode: "986-000-000-000-000-000-000",
37158
+ childCodes: [],
37159
+ definition: "Value is intentionally withheld, declined, or redacted."
37160
+ },
37161
+ {
37162
+ code: "986-000-000-000-000-000-003",
37163
+ key: "data_not_collected",
37164
+ title: "Data not collected",
37165
+ selectable: true,
37166
+ parentCode: "986-000-000-000-000-000-000",
37167
+ childCodes: [],
37168
+ definition: "No attempt was made to collect the value."
37169
+ },
37170
+ {
37171
+ code: "986-001-000-000-000-000-000",
37172
+ key: "human",
37173
+ title: "Human",
37174
+ selectable: true,
37175
+ parentCode: null,
37176
+ childCodes: [],
37177
+ definition: 'A person created the assertion row directly. Emitting systems typically default to this value (e.g. PAVE\'s assertion factory defaults `createdBySystem: "human"`).'
37178
+ },
37179
+ {
37180
+ code: "986-002-000-000-000-000-000",
37181
+ key: "integration",
37182
+ title: "Integration",
37183
+ selectable: true,
37184
+ parentCode: null,
37185
+ childCodes: [],
37186
+ definition: "An external-system integration created the row (cross-app ingest, imports, connected systems). Pair with source/provenance fields for the originating system."
37187
+ },
37188
+ {
37189
+ code: "986-003-000-000-000-000-000",
37190
+ key: "rules_engine",
37191
+ title: "Rules engine",
37192
+ selectable: true,
37193
+ parentCode: null,
37194
+ childCodes: [],
37195
+ definition: "Deterministic business logic or a rules engine created the row. `inference_type` is required when created_by_system \u2208 {rules_engine, model} per GLOBAL_DESIGN_RULES \xA75.5."
37196
+ },
37197
+ {
37198
+ code: "986-004-000-000-000-000-000",
37199
+ key: "model",
37200
+ title: "Model",
37201
+ selectable: true,
37202
+ parentCode: null,
37203
+ childCodes: [],
37204
+ definition: "An ML model or statistical scoring process created the row. `inference_type` is required when created_by_system \u2208 {rules_engine, model} per GLOBAL_DESIGN_RULES \xA75.5."
37205
+ }
37206
+ ]
37207
+ };
37208
+
37209
+ // src/cvcs/subjectType.v1.0.0.json
37210
+ var subjectType_v1_0_0_default = {
37211
+ domain: "subject_type",
37212
+ name: "Subject Type",
37213
+ version: "1.0.0",
37214
+ _status: "PROVISIONAL \u2014 GDR \xA710.1 confirmed-CVC name is `core - subject_type`, but Final CVCs/CVC_INDEX.md @ a596eb9 carries no number for it, so it parks in the provisional 900-block pending canonical Notion authoring + steward ratification. Substantive values sourced verbatim from the PAVE @pave/domain `SUBJECT_TYPES` enum (D10 GDR \xA710.1 bulk publish, bead pv-pgdr-cvc-source-gdr-10-1-bulk-publish). The PAVE enum enumerates only the substantive entity kinds, so the missingness quadruplet is added per SOT convention.",
37215
+ _source: "pave-2.0/packages/domain/src/enums.ts SUBJECT_TYPES",
37216
+ levels: {
37217
+ "0": "Unknown or Missing",
37218
+ "1": "Assertion subject type"
37219
+ },
37220
+ entries: [
37221
+ {
37222
+ code: "987-000-000-000-000-000-000",
37223
+ key: "missingness_root",
37224
+ title: "Unknown, Redacted, or Missing",
37225
+ selectable: false,
37226
+ parentCode: null,
37227
+ childCodes: [
37228
+ "987-000-000-000-000-000-001",
37229
+ "987-000-000-000-000-000-002",
37230
+ "987-000-000-000-000-000-003"
37231
+ ],
37232
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
37233
+ },
37234
+ {
37235
+ code: "987-000-000-000-000-000-001",
37236
+ key: "unknown",
37237
+ title: "Unknown",
37238
+ selectable: true,
37239
+ parentCode: "987-000-000-000-000-000-000",
37240
+ childCodes: [],
37241
+ definition: "The subject type is unknown at time of entry (missingness sentinel)."
37242
+ },
37243
+ {
37244
+ code: "987-000-000-000-000-000-002",
37245
+ key: "anonymous",
37246
+ title: "Anonymous / declined to answer",
37247
+ selectable: true,
37248
+ parentCode: "987-000-000-000-000-000-000",
37249
+ childCodes: [],
37250
+ definition: "Value is intentionally withheld, declined, or redacted."
37251
+ },
37252
+ {
37253
+ code: "987-000-000-000-000-000-003",
37254
+ key: "data_not_collected",
37255
+ title: "Data not collected",
37256
+ selectable: true,
37257
+ parentCode: "987-000-000-000-000-000-000",
37258
+ childCodes: [],
37259
+ definition: "No attempt was made to collect the value."
37260
+ },
37261
+ {
37262
+ code: "987-001-000-000-000-000-000",
37263
+ key: "person",
37264
+ title: "Person",
37265
+ selectable: true,
37266
+ parentCode: null,
37267
+ childCodes: [],
37268
+ definition: 'The assertion is about a person; `subject_id` resolves to a person record. Emitting systems typically default to this value (e.g. PAVE\'s assertion factory defaults `subjectType: "person"`).'
37269
+ },
37270
+ {
37271
+ code: "987-002-000-000-000-000-000",
37272
+ key: "relationship",
37273
+ title: "Relationship",
37274
+ selectable: true,
37275
+ parentCode: null,
37276
+ childCodes: [],
37277
+ definition: "The assertion is about a relationship between people; `subject_id` resolves to a relationship record."
37278
+ },
37279
+ {
37280
+ code: "987-003-000-000-000-000-000",
37281
+ key: "case",
37282
+ title: "Case",
37283
+ selectable: true,
37284
+ parentCode: null,
37285
+ childCodes: [],
37286
+ definition: "The assertion is about a case; `subject_id` resolves to a case record."
37287
+ }
37288
+ ]
37289
+ };
37290
+
37291
+ // src/cvcs/minorAdultStatus.v1.0.0.json
37292
+ var minorAdultStatus_v1_0_0_default = {
37293
+ domain: "minor_adult_status",
37294
+ name: "Minor / Adult Status (age band at event)",
37295
+ version: "1.0.0",
37296
+ _status: "PROVISIONAL \u2014 GDR \xA710.1 confirmed-CVC name is `core - minor_adult_status`, and the canonical index DOES number this concept (Final CVCs/CVC_INDEX.md @ a596eb9: CVC-61 `minor_adult_status`) \u2014 but the CVC-61 Notion codebook has 0 entries anywhere, and ADR-CVC-0.8.13-canonical-alignment \xA7Deliberately-NOT-authored (NARRATIVE_ONLY) deliberately declined to author at 61 to avoid manufacturing canonical drift. This vocabulary therefore parks in the provisional 900-block; RENUMBER 988 \u2192 61 when the CVC-61 Notion codebook gains substantive entries (and reconcile membership at that point). Substantive values sourced verbatim from the PAVE @pave/domain `AGE_BANDS_AT_EVENT` enum (D10 GDR \xA710.1 bulk publish, bead pv-pgdr-cvc-source-gdr-10-1-bulk-publish): PAVE's `minor` / `adult` / `indeterminate` stay substantive; PAVE's fourth member `unknown` maps to the canonical missingness `unknown` sentinel (same realignment shape as the ROLE_CONTEXTS 0.7.0 bind), so every PAVE member remains expressible. Distinct from the numeric IC constant MINOR_ADULT_STATUS in constants/ic.ts (IC layer, 1/2/99) \u2014 that is a different encoding layer, not a parallel CVC.",
37297
+ _source: "pave-2.0/packages/domain/src/enums.ts AGE_BANDS_AT_EVENT",
37298
+ levels: {
37299
+ "0": "Unknown or Missing",
37300
+ "1": "Minor / adult status at event"
37301
+ },
37302
+ entries: [
37303
+ {
37304
+ code: "988-000-000-000-000-000-000",
37305
+ key: "missingness_root",
37306
+ title: "Unknown, Redacted, or Missing",
37307
+ selectable: false,
37308
+ parentCode: null,
37309
+ childCodes: [
37310
+ "988-000-000-000-000-000-001",
37311
+ "988-000-000-000-000-000-002",
37312
+ "988-000-000-000-000-000-003"
37313
+ ],
37314
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
37315
+ },
37316
+ {
37317
+ code: "988-000-000-000-000-000-001",
37318
+ key: "unknown",
37319
+ title: "Unknown",
37320
+ selectable: true,
37321
+ parentCode: "988-000-000-000-000-000-000",
37322
+ childCodes: [],
37323
+ definition: "The age band is unknown \u2014 not assessed or not recorded (missingness sentinel). Carries PAVE's `unknown` member of AGE_BANDS_AT_EVENT."
37324
+ },
37325
+ {
37326
+ code: "988-000-000-000-000-000-002",
37327
+ key: "anonymous",
37328
+ title: "Anonymous / declined to answer",
37329
+ selectable: true,
37330
+ parentCode: "988-000-000-000-000-000-000",
37331
+ childCodes: [],
37332
+ definition: "Value is intentionally withheld, declined, or redacted."
37333
+ },
37334
+ {
37335
+ code: "988-000-000-000-000-000-003",
37336
+ key: "data_not_collected",
37337
+ title: "Data not collected",
37338
+ selectable: true,
37339
+ parentCode: "988-000-000-000-000-000-000",
37340
+ childCodes: [],
37341
+ definition: "No attempt was made to collect the value."
37342
+ },
37343
+ {
37344
+ code: "988-001-000-000-000-000-000",
37345
+ key: "minor",
37346
+ title: "Minor (under 18)",
37347
+ selectable: true,
37348
+ parentCode: null,
37349
+ childCodes: [],
37350
+ definition: "The subject was under 18 when the asserted event occurred."
37351
+ },
37352
+ {
37353
+ code: "988-002-000-000-000-000-000",
37354
+ key: "adult",
37355
+ title: "Adult (18+)",
37356
+ selectable: true,
37357
+ parentCode: null,
37358
+ childCodes: [],
37359
+ definition: "The subject was 18 or older when the asserted event occurred."
37360
+ },
37361
+ {
37362
+ code: "988-003-000-000-000-000-000",
37363
+ key: "indeterminate",
37364
+ title: "Indeterminate",
37365
+ selectable: true,
37366
+ parentCode: null,
37367
+ childCodes: [],
37368
+ definition: "The age band cannot be determined from the available evidence \u2014 a positive determination of indeterminacy (e.g. conflicting or insufficient evidence), distinct from the `unknown` missingness sentinel (not assessed / not recorded)."
37369
+ }
37370
+ ]
37371
+ };
37372
+
37373
+ // src/cvcs/hmisSex.v1.0.0.json
37374
+ var hmisSex_v1_0_0_default = {
37375
+ domain: "hmis_sex",
37376
+ name: "Core HMIS Sex",
37377
+ version: "1.0.0",
37378
+ levels: {
37379
+ "0": "Unknown or Missing",
37380
+ "1": "Sex"
37381
+ },
37382
+ entries: [
37383
+ {
37384
+ code: "067-000-000-000-000-000-000",
37385
+ key: "missingness_root",
37386
+ title: "Unknown, Redacted, or Missing",
37387
+ selectable: false,
37388
+ parentCode: null,
37389
+ childCodes: [
37390
+ "067-000-000-000-000-000-001",
37391
+ "067-000-000-000-000-000-002",
37392
+ "067-000-000-000-000-000-003",
37393
+ "067-000-000-000-000-000-004",
37394
+ "067-000-000-000-000-000-005"
37395
+ ],
37396
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
37397
+ },
37398
+ {
37399
+ code: "067-000-000-000-000-000-001",
37400
+ key: "unknown",
37401
+ title: "Unknown",
37402
+ selectable: true,
37403
+ parentCode: "067-000-000-000-000-000-000",
37404
+ childCodes: [],
37405
+ definition: "Value is unknown at time of entry."
37406
+ },
37407
+ {
37408
+ code: "067-000-000-000-000-000-002",
37409
+ key: "anonymous",
37410
+ title: "Anonymous",
37411
+ selectable: true,
37412
+ parentCode: "067-000-000-000-000-000-000",
37413
+ childCodes: [],
37414
+ definition: "Value is intentionally withheld or redacted."
37415
+ },
37416
+ {
37417
+ code: "067-000-000-000-000-000-003",
37418
+ key: "data_not_collected",
37419
+ title: "Data not collected",
37420
+ selectable: true,
37421
+ parentCode: "067-000-000-000-000-000-000",
37422
+ childCodes: [],
37423
+ definition: "Use this response if the staff does not ask the person to provide their sex."
37424
+ },
37425
+ {
37426
+ code: "067-000-000-000-000-000-004",
37427
+ key: "client_doesn_t_know",
37428
+ title: "Client doesn't know",
37429
+ selectable: true,
37430
+ parentCode: "067-000-000-000-000-000-000",
37431
+ childCodes: [],
37432
+ definition: `"Client doesn't know" should only be selected when a person does not know their sex from among the responses.`
37433
+ },
37434
+ {
37435
+ code: "067-000-000-000-000-000-005",
37436
+ key: "client_prefers_not_to_answer",
37437
+ title: "Client prefers not to answer",
37438
+ selectable: true,
37439
+ parentCode: "067-000-000-000-000-000-000",
37440
+ childCodes: [],
37441
+ definition: '"Client prefers not to answer" should only be selected when a person chooses not to identify their sex from among the responses.'
37442
+ },
37443
+ {
37444
+ code: "067-001-000-000-000-000-000",
37445
+ key: "female",
37446
+ title: "Female",
37447
+ selectable: true,
37448
+ parentCode: null,
37449
+ childCodes: [],
37450
+ definition: "A person of the sex characterized by a reproductive system with the biological function of producing eggs (ova)."
37451
+ },
37452
+ {
37453
+ code: "067-002-000-000-000-000-000",
37454
+ key: "male",
37455
+ title: "Male",
37456
+ selectable: true,
37457
+ parentCode: null,
37458
+ childCodes: [],
37459
+ definition: "A person of the sex characterized by a reproductive system with the biological function of producing sperm."
37460
+ }
37461
+ ]
37462
+ };
36878
37463
  export {
36879
37464
  accommodationType_v1_0_0_default as accommodationTypeSot,
36880
37465
  actionStepCompletionStatus_v1_0_0_default as actionStepCompletionStatusSot,
@@ -36886,7 +37471,9 @@ export {
36886
37471
  announcementAudienceScope_v1_0_0_default as announcementAudienceScopeSot,
36887
37472
  announcementResponseType_v1_0_0_default as announcementResponseTypeSot,
36888
37473
  assertionDomain_v1_1_0_default as assertionDomainSot,
37474
+ assertionStatus_v1_0_0_default as assertionStatusSot,
36889
37475
  basisQuickPicks_v1_0_0_default as basisQuickPicksSot,
37476
+ caseShareState_v1_0_0_default as caseShareStateSot,
36890
37477
  checkInActivity_v1_0_0_default as checkInActivitySot,
36891
37478
  checkInPhase_v1_1_0_default as checkInPhaseSot,
36892
37479
  childBehavioralConcerns_v1_0_0_default as childBehavioralConcernsSot,
@@ -36902,6 +37489,7 @@ export {
36902
37489
  coreFunctions_v1_0_0_default as coreFunctionsSot,
36903
37490
  coreIndicators_v1_0_0_default as coreIndicatorsSot,
36904
37491
  coreReferralOutcome_v1_0_0_default as coreReferralOutcomeSot,
37492
+ createdBySystem_v1_0_0_default as createdBySystemSot,
36905
37493
  daIncidentArchiveReason_v1_0_0_default as daIncidentArchiveReasonSot,
36906
37494
  daIncidentConfidence_v1_0_0_default as daIncidentConfidenceSot,
36907
37495
  daIncidentDayApprox_v1_0_0_default as daIncidentDayApproxSot,
@@ -36936,6 +37524,7 @@ export {
36936
37524
  hmisCurrentLivingSituation_v1_0_0_default as hmisCurrentLivingSituationSot,
36937
37525
  hmisProjectType_v1_0_0_default as hmisProjectTypeSot,
36938
37526
  hmisRelationshipToHoh_v1_0_0_default as hmisRelationshipToHohSot,
37527
+ hmisSex_v1_0_0_default as hmisSexSot,
36939
37528
  homelessStatus_v1_0_0_default as homelessStatusSot,
36940
37529
  hopeScaleCaptureContext_v1_0_0_default as hopeScaleCaptureContextSot,
36941
37530
  hopeScaleResponseOptions_v1_0_0_default as hopeScaleResponseOptionsSot,
@@ -36964,6 +37553,7 @@ export {
36964
37553
  milestoneType_v1_0_0_default as milestoneTypeSot,
36965
37554
  militaryBranch_v1_0_0_default as militaryBranchSot,
36966
37555
  militaryStatus_v1_0_0_default as militaryStatusSot,
37556
+ minorAdultStatus_v1_0_0_default as minorAdultStatusSot,
36967
37557
  nameType_v1_0_0_default as nameTypeSot,
36968
37558
  needsAssessmentChangeType_v1_0_0_default as needsAssessmentChangeTypeSot,
36969
37559
  needsResidentialAgain_v1_0_0_default as needsResidentialAgainSot,
@@ -36989,6 +37579,7 @@ export {
36989
37579
  recencyBand_v1_0_0_default as recencyBandSot,
36990
37580
  referenceLinkType_v1_0_0_default as referenceLinkTypeSot,
36991
37581
  referralEntityCategory_v1_0_0_default as referralEntityCategorySot,
37582
+ referralOrigin_v1_0_0_default as referralOriginSot,
36992
37583
  relationshipConcern_v1_0_0_default as relationshipConcernSot,
36993
37584
  relationshipDynamics_v1_0_0_default as relationshipDynamicsSot,
36994
37585
  relationshipStatusCurrent_v1_0_0_default as relationshipStatusCurrentSot,
@@ -37027,6 +37618,7 @@ export {
37027
37618
  sourceSubtype_v1_1_0_default as sourceSubtypeSot,
37028
37619
  sourceSystem_v1_0_0_default as sourceSystemSot,
37029
37620
  specialNeedsDisabilities_v1_0_0_default as specialNeedsDisabilitiesSot,
37621
+ subjectType_v1_0_0_default as subjectTypeSot,
37030
37622
  substanceUseStatus_v1_0_0_default as substanceUseStatusSot,
37031
37623
  suggestionSource_v1_0_0_default as suggestionSourceSot,
37032
37624
  supportStrength_v1_0_0_default as supportStrengthSot,