@htilabs/platform-common-models 0.12.2 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cvcs/index.cjs +21 -4
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +22 -4
- package/dist/cvcs/index.d.ts +22 -4
- package/dist/cvcs/index.js +21 -4
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +1 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +3 -2
- package/dist/enums/index.d.ts +3 -2
- package/dist/enums/index.js +1 -0
- package/dist/enums/index.js.map +1 -1
- package/dist/index.cjs +77 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +72 -11
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.cjs +41 -7
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +105 -1
- package/dist/schemas/index.d.ts +105 -1
- package/dist/schemas/index.js +38 -7
- package/dist/schemas/index.js.map +1 -1
- package/dist/{cvc-Cp4uWnAa.d.cts → team-C4LJ5Tex.d.cts} +36 -1
- package/dist/{cvc-Cp4uWnAa.d.ts → team-C4LJ5Tex.d.ts} +36 -1
- package/dist/validation/index.cjs +155 -0
- package/dist/validation/index.cjs.map +1 -1
- package/dist/validation/index.d.cts +1 -1
- package/dist/validation/index.d.ts +1 -1
- package/dist/validation/index.js +153 -0
- package/dist/validation/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +4 -0
- package/src/__tests__/core-information-scope-invariant.test.ts +125 -2
- package/src/__tests__/cvc-sot-snapshot.test.ts +9 -0
- package/src/__tests__/cvc-structural.test.ts +3 -0
- package/src/__tests__/team-directory-fields.test.ts +252 -0
- package/src/cvcs/coreInformationScope.v1.0.0.json +21 -4
- package/src/generated/cvc-enums.ts +3 -2
- package/src/index.ts +7 -0
- package/src/schemas/index.ts +8 -0
- package/src/schemas/team.ts +118 -0
- package/src/validation/index.ts +1 -0
- package/src/validation/team.ts +48 -0
package/dist/cvcs/index.d.cts
CHANGED
|
@@ -29317,8 +29317,8 @@ var needsAssessmentChangeType_v1_0_0 = {
|
|
|
29317
29317
|
var domain$E = "core_information_scope";
|
|
29318
29318
|
var name$E = "Core Information Scope";
|
|
29319
29319
|
var version$E = "1.0.0";
|
|
29320
|
-
var _status$D = "DRAFT: canonical number 236, self-declared by the source YAML (`cvc_id: CVC-236`); CVC_INDEX.md carries no row for it yet, so the drift gate classifies it INDEX_ABSENT. Sourced from canonical CVC-236 `core_information_scope` v2 (authored 2026-08-13, restructured 2026-08-14): 12 categories /
|
|
29321
|
-
var _source$D = "htilabstech/prototype
|
|
29320
|
+
var _status$D = "DRAFT: canonical number 236, self-declared by the source YAML (`cvc_id: CVC-236`); CVC_INDEX.md carries no row for it yet, so the drift gate classifies it INDEX_ABSENT. Sourced from canonical CVC-236 `core_information_scope` v2 (authored 2026-08-13, restructured 2026-08-14): 12 categories / 55 units. TWO GRAINS, deliberately modelled as hierarchy: L1 categories are the POLICY grain and are NOT selectable; L2 units are the AUTHORIZATION grain and are what an ROI or a share actually authorizes. This is the axis the sibling `roi_scope` domain deliberately omits — `roi_scope` is the flat item vocabulary, and its 27 substantive keys are a strict SUBSET of the 55 units here, with no renames and no collisions. That subset relationship is what makes adopting this domain additive: every stored ROI keeps its exact recorded meaning. `safe_locations` is PROVISIONAL and may be re-keyed by the Notion steward batch — pin the id with the product owner before any consumer treats it as stable. PENDING canonical Notion authoring + steward ratification.";
|
|
29321
|
+
var _source$D = "htilabstech/prototype/data/cvcs/core_information_scope.yaml @ 285a9f1d (CVC-236 v2, restructured 2026-08-14, amended 2026-09-29; read from origin/main; structural columns cross-checked against htilabstech/prototype/Final CVCs/System Roles, Permissions, & Account Management (IC-66)/core-information_scope — codebook.csv @ 285a9f1d)";
|
|
29322
29322
|
var levels$E = {
|
|
29323
29323
|
"0": "Unknown or Missing",
|
|
29324
29324
|
"1": "Category (policy grain, not selectable)",
|
|
@@ -29810,9 +29810,10 @@ var entries$E = [
|
|
|
29810
29810
|
parentCode: null,
|
|
29811
29811
|
childCodes: [
|
|
29812
29812
|
"236-003-001-000-000-000-000",
|
|
29813
|
-
"236-003-002-000-000-000-000"
|
|
29813
|
+
"236-003-002-000-000-000-000",
|
|
29814
|
+
"236-003-003-000-000-000-000"
|
|
29814
29815
|
],
|
|
29815
|
-
definition: "Contact & safety — policy-grain category. Units under it are the authorization grain. NARROWED 2026-08-14 (restructure ruling 2): contact/service history moved to the NEW services category. SUPERSEDES the 2026-08-13 deliberate-merge note; legacy `contact` grants resolve via the alias layer (CVC-69 precedent). LEADS flag dropped (no LEADS units — was an empty shell).",
|
|
29816
|
+
definition: "Contact & safety — policy-grain category. Units under it are the authorization grain. NARROWED 2026-08-14 (restructure ruling 2): contact/service history moved to the NEW services category. SUPERSEDES the 2026-08-13 deliberate-merge note; legacy `contact` grants resolve via the alias layer (CVC-69 precedent). LEADS flag dropped (no LEADS units — was an empty shell). | 2026-09-29 (PRIORITIES-SAFETY-SCOPE-UNIT, Crysta R1): third unit priorities_safety — the immediate-needs triage answers, one disclosure decision.",
|
|
29816
29817
|
levelFloor: 3,
|
|
29817
29818
|
appRelevance: [
|
|
29818
29819
|
"PAVE",
|
|
@@ -29856,6 +29857,23 @@ var entries$E = [
|
|
|
29856
29857
|
specialDataType: "survivor_confidential",
|
|
29857
29858
|
platformFloor: true
|
|
29858
29859
|
},
|
|
29860
|
+
{
|
|
29861
|
+
code: "236-003-003-000-000-000-000",
|
|
29862
|
+
key: "priorities_safety",
|
|
29863
|
+
title: "Priorities & Safety (immediate needs triage)",
|
|
29864
|
+
selectable: true,
|
|
29865
|
+
parentCode: "236-003-000-000-000-000-000",
|
|
29866
|
+
childCodes: [
|
|
29867
|
+
],
|
|
29868
|
+
definition: "Priorities & Safety (immediate needs triage). Category `contact`. NEW 2026-09-29 (PRIORITIES-SAFETY-SCOPE-UNIT, Crysta R1): the completed Immediate Priorities / Priorities & Safety triage, authorized as ONE disclosure decision — Q1 immediate danger + source of the danger + harm-doer nearby + safe place to go · Q2 health needs · Q3 interpreter · Q4 urgent basic needs · Q5 transportation (method / time / pickup location) · Q6 emergency shelter · Q7 dependents at risk · Q8 other. Instrument-grain unit on the initial_screen / lap precedent (ruling 1, 2026-08-13), homed under Contact & safety because the answers that had no home are safety facts; the service instances the step derives ride services/service_history on their own. Bidirectional Thread Signal ↔ PAVE mirror on Q1 (GDR § 6.9.7) — one unit, both apps. domain_map: priorities_safety → this unit (R3 EXECUTED later the same day, PRIORITIES-SAFETY-RECORD): CVC-159 domain priorities_safety (Level 1) + monolith emitter emitPrioritiesAnswerCAR (one CAR per answered question) + UDD row capture.priorities_safety; production persistence of the answers stays with Nate under RWT-NEW-priorities-safety-record-and-udd-2026-09-29. Minted in the Notion codebook the same day; codebook row re-synced to the record 2026-09-29.",
|
|
29869
|
+
levelFloor: 3,
|
|
29870
|
+
appRelevance: [
|
|
29871
|
+
"PAVE",
|
|
29872
|
+
"Thread"
|
|
29873
|
+
],
|
|
29874
|
+
shareableDefault: true,
|
|
29875
|
+
specialDataType: "survivor_confidential"
|
|
29876
|
+
},
|
|
29859
29877
|
{
|
|
29860
29878
|
code: "236-004-000-000-000-000-000",
|
|
29861
29879
|
key: "services",
|
package/dist/cvcs/index.d.ts
CHANGED
|
@@ -29317,8 +29317,8 @@ var needsAssessmentChangeType_v1_0_0 = {
|
|
|
29317
29317
|
var domain$E = "core_information_scope";
|
|
29318
29318
|
var name$E = "Core Information Scope";
|
|
29319
29319
|
var version$E = "1.0.0";
|
|
29320
|
-
var _status$D = "DRAFT: canonical number 236, self-declared by the source YAML (`cvc_id: CVC-236`); CVC_INDEX.md carries no row for it yet, so the drift gate classifies it INDEX_ABSENT. Sourced from canonical CVC-236 `core_information_scope` v2 (authored 2026-08-13, restructured 2026-08-14): 12 categories /
|
|
29321
|
-
var _source$D = "htilabstech/prototype
|
|
29320
|
+
var _status$D = "DRAFT: canonical number 236, self-declared by the source YAML (`cvc_id: CVC-236`); CVC_INDEX.md carries no row for it yet, so the drift gate classifies it INDEX_ABSENT. Sourced from canonical CVC-236 `core_information_scope` v2 (authored 2026-08-13, restructured 2026-08-14): 12 categories / 55 units. TWO GRAINS, deliberately modelled as hierarchy: L1 categories are the POLICY grain and are NOT selectable; L2 units are the AUTHORIZATION grain and are what an ROI or a share actually authorizes. This is the axis the sibling `roi_scope` domain deliberately omits — `roi_scope` is the flat item vocabulary, and its 27 substantive keys are a strict SUBSET of the 55 units here, with no renames and no collisions. That subset relationship is what makes adopting this domain additive: every stored ROI keeps its exact recorded meaning. `safe_locations` is PROVISIONAL and may be re-keyed by the Notion steward batch — pin the id with the product owner before any consumer treats it as stable. PENDING canonical Notion authoring + steward ratification.";
|
|
29321
|
+
var _source$D = "htilabstech/prototype/data/cvcs/core_information_scope.yaml @ 285a9f1d (CVC-236 v2, restructured 2026-08-14, amended 2026-09-29; read from origin/main; structural columns cross-checked against htilabstech/prototype/Final CVCs/System Roles, Permissions, & Account Management (IC-66)/core-information_scope — codebook.csv @ 285a9f1d)";
|
|
29322
29322
|
var levels$E = {
|
|
29323
29323
|
"0": "Unknown or Missing",
|
|
29324
29324
|
"1": "Category (policy grain, not selectable)",
|
|
@@ -29810,9 +29810,10 @@ var entries$E = [
|
|
|
29810
29810
|
parentCode: null,
|
|
29811
29811
|
childCodes: [
|
|
29812
29812
|
"236-003-001-000-000-000-000",
|
|
29813
|
-
"236-003-002-000-000-000-000"
|
|
29813
|
+
"236-003-002-000-000-000-000",
|
|
29814
|
+
"236-003-003-000-000-000-000"
|
|
29814
29815
|
],
|
|
29815
|
-
definition: "Contact & safety — policy-grain category. Units under it are the authorization grain. NARROWED 2026-08-14 (restructure ruling 2): contact/service history moved to the NEW services category. SUPERSEDES the 2026-08-13 deliberate-merge note; legacy `contact` grants resolve via the alias layer (CVC-69 precedent). LEADS flag dropped (no LEADS units — was an empty shell).",
|
|
29816
|
+
definition: "Contact & safety — policy-grain category. Units under it are the authorization grain. NARROWED 2026-08-14 (restructure ruling 2): contact/service history moved to the NEW services category. SUPERSEDES the 2026-08-13 deliberate-merge note; legacy `contact` grants resolve via the alias layer (CVC-69 precedent). LEADS flag dropped (no LEADS units — was an empty shell). | 2026-09-29 (PRIORITIES-SAFETY-SCOPE-UNIT, Crysta R1): third unit priorities_safety — the immediate-needs triage answers, one disclosure decision.",
|
|
29816
29817
|
levelFloor: 3,
|
|
29817
29818
|
appRelevance: [
|
|
29818
29819
|
"PAVE",
|
|
@@ -29856,6 +29857,23 @@ var entries$E = [
|
|
|
29856
29857
|
specialDataType: "survivor_confidential",
|
|
29857
29858
|
platformFloor: true
|
|
29858
29859
|
},
|
|
29860
|
+
{
|
|
29861
|
+
code: "236-003-003-000-000-000-000",
|
|
29862
|
+
key: "priorities_safety",
|
|
29863
|
+
title: "Priorities & Safety (immediate needs triage)",
|
|
29864
|
+
selectable: true,
|
|
29865
|
+
parentCode: "236-003-000-000-000-000-000",
|
|
29866
|
+
childCodes: [
|
|
29867
|
+
],
|
|
29868
|
+
definition: "Priorities & Safety (immediate needs triage). Category `contact`. NEW 2026-09-29 (PRIORITIES-SAFETY-SCOPE-UNIT, Crysta R1): the completed Immediate Priorities / Priorities & Safety triage, authorized as ONE disclosure decision — Q1 immediate danger + source of the danger + harm-doer nearby + safe place to go · Q2 health needs · Q3 interpreter · Q4 urgent basic needs · Q5 transportation (method / time / pickup location) · Q6 emergency shelter · Q7 dependents at risk · Q8 other. Instrument-grain unit on the initial_screen / lap precedent (ruling 1, 2026-08-13), homed under Contact & safety because the answers that had no home are safety facts; the service instances the step derives ride services/service_history on their own. Bidirectional Thread Signal ↔ PAVE mirror on Q1 (GDR § 6.9.7) — one unit, both apps. domain_map: priorities_safety → this unit (R3 EXECUTED later the same day, PRIORITIES-SAFETY-RECORD): CVC-159 domain priorities_safety (Level 1) + monolith emitter emitPrioritiesAnswerCAR (one CAR per answered question) + UDD row capture.priorities_safety; production persistence of the answers stays with Nate under RWT-NEW-priorities-safety-record-and-udd-2026-09-29. Minted in the Notion codebook the same day; codebook row re-synced to the record 2026-09-29.",
|
|
29869
|
+
levelFloor: 3,
|
|
29870
|
+
appRelevance: [
|
|
29871
|
+
"PAVE",
|
|
29872
|
+
"Thread"
|
|
29873
|
+
],
|
|
29874
|
+
shareableDefault: true,
|
|
29875
|
+
specialDataType: "survivor_confidential"
|
|
29876
|
+
},
|
|
29859
29877
|
{
|
|
29860
29878
|
code: "236-004-000-000-000-000-000",
|
|
29861
29879
|
key: "services",
|
package/dist/cvcs/index.js
CHANGED
|
@@ -26336,8 +26336,8 @@ var coreInformationScope_v1_0_0_default = {
|
|
|
26336
26336
|
domain: "core_information_scope",
|
|
26337
26337
|
name: "Core Information Scope",
|
|
26338
26338
|
version: "1.0.0",
|
|
26339
|
-
_status: "DRAFT: canonical number 236, self-declared by the source YAML (`cvc_id: CVC-236`); CVC_INDEX.md carries no row for it yet, so the drift gate classifies it INDEX_ABSENT. Sourced from canonical CVC-236 `core_information_scope` v2 (authored 2026-08-13, restructured 2026-08-14): 12 categories /
|
|
26340
|
-
_source: "htilabstech/prototype
|
|
26339
|
+
_status: "DRAFT: canonical number 236, self-declared by the source YAML (`cvc_id: CVC-236`); CVC_INDEX.md carries no row for it yet, so the drift gate classifies it INDEX_ABSENT. Sourced from canonical CVC-236 `core_information_scope` v2 (authored 2026-08-13, restructured 2026-08-14): 12 categories / 55 units. TWO GRAINS, deliberately modelled as hierarchy: L1 categories are the POLICY grain and are NOT selectable; L2 units are the AUTHORIZATION grain and are what an ROI or a share actually authorizes. This is the axis the sibling `roi_scope` domain deliberately omits \u2014 `roi_scope` is the flat item vocabulary, and its 27 substantive keys are a strict SUBSET of the 55 units here, with no renames and no collisions. That subset relationship is what makes adopting this domain additive: every stored ROI keeps its exact recorded meaning. `safe_locations` is PROVISIONAL and may be re-keyed by the Notion steward batch \u2014 pin the id with the product owner before any consumer treats it as stable. PENDING canonical Notion authoring + steward ratification.",
|
|
26340
|
+
_source: "htilabstech/prototype/data/cvcs/core_information_scope.yaml @ 285a9f1d (CVC-236 v2, restructured 2026-08-14, amended 2026-09-29; read from origin/main; structural columns cross-checked against htilabstech/prototype/Final CVCs/System Roles, Permissions, & Account Management (IC-66)/core-information_scope \u2014 codebook.csv @ 285a9f1d)",
|
|
26341
26341
|
levels: {
|
|
26342
26342
|
"0": "Unknown or Missing",
|
|
26343
26343
|
"1": "Category (policy grain, not selectable)",
|
|
@@ -26804,9 +26804,10 @@ var coreInformationScope_v1_0_0_default = {
|
|
|
26804
26804
|
parentCode: null,
|
|
26805
26805
|
childCodes: [
|
|
26806
26806
|
"236-003-001-000-000-000-000",
|
|
26807
|
-
"236-003-002-000-000-000-000"
|
|
26807
|
+
"236-003-002-000-000-000-000",
|
|
26808
|
+
"236-003-003-000-000-000-000"
|
|
26808
26809
|
],
|
|
26809
|
-
definition: "Contact & safety \u2014 policy-grain category. Units under it are the authorization grain. NARROWED 2026-08-14 (restructure ruling 2): contact/service history moved to the NEW services category. SUPERSEDES the 2026-08-13 deliberate-merge note; legacy `contact` grants resolve via the alias layer (CVC-69 precedent). LEADS flag dropped (no LEADS units \u2014 was an empty shell).",
|
|
26810
|
+
definition: "Contact & safety \u2014 policy-grain category. Units under it are the authorization grain. NARROWED 2026-08-14 (restructure ruling 2): contact/service history moved to the NEW services category. SUPERSEDES the 2026-08-13 deliberate-merge note; legacy `contact` grants resolve via the alias layer (CVC-69 precedent). LEADS flag dropped (no LEADS units \u2014 was an empty shell). | 2026-09-29 (PRIORITIES-SAFETY-SCOPE-UNIT, Crysta R1): third unit priorities_safety \u2014 the immediate-needs triage answers, one disclosure decision.",
|
|
26810
26811
|
levelFloor: 3,
|
|
26811
26812
|
appRelevance: [
|
|
26812
26813
|
"PAVE",
|
|
@@ -26848,6 +26849,22 @@ var coreInformationScope_v1_0_0_default = {
|
|
|
26848
26849
|
specialDataType: "survivor_confidential",
|
|
26849
26850
|
platformFloor: true
|
|
26850
26851
|
},
|
|
26852
|
+
{
|
|
26853
|
+
code: "236-003-003-000-000-000-000",
|
|
26854
|
+
key: "priorities_safety",
|
|
26855
|
+
title: "Priorities & Safety (immediate needs triage)",
|
|
26856
|
+
selectable: true,
|
|
26857
|
+
parentCode: "236-003-000-000-000-000-000",
|
|
26858
|
+
childCodes: [],
|
|
26859
|
+
definition: "Priorities & Safety (immediate needs triage). Category `contact`. NEW 2026-09-29 (PRIORITIES-SAFETY-SCOPE-UNIT, Crysta R1): the completed Immediate Priorities / Priorities & Safety triage, authorized as ONE disclosure decision \u2014 Q1 immediate danger + source of the danger + harm-doer nearby + safe place to go \xB7 Q2 health needs \xB7 Q3 interpreter \xB7 Q4 urgent basic needs \xB7 Q5 transportation (method / time / pickup location) \xB7 Q6 emergency shelter \xB7 Q7 dependents at risk \xB7 Q8 other. Instrument-grain unit on the initial_screen / lap precedent (ruling 1, 2026-08-13), homed under Contact & safety because the answers that had no home are safety facts; the service instances the step derives ride services/service_history on their own. Bidirectional Thread Signal \u2194 PAVE mirror on Q1 (GDR \xA7 6.9.7) \u2014 one unit, both apps. domain_map: priorities_safety \u2192 this unit (R3 EXECUTED later the same day, PRIORITIES-SAFETY-RECORD): CVC-159 domain priorities_safety (Level 1) + monolith emitter emitPrioritiesAnswerCAR (one CAR per answered question) + UDD row capture.priorities_safety; production persistence of the answers stays with Nate under RWT-NEW-priorities-safety-record-and-udd-2026-09-29. Minted in the Notion codebook the same day; codebook row re-synced to the record 2026-09-29.",
|
|
26860
|
+
levelFloor: 3,
|
|
26861
|
+
appRelevance: [
|
|
26862
|
+
"PAVE",
|
|
26863
|
+
"Thread"
|
|
26864
|
+
],
|
|
26865
|
+
shareableDefault: true,
|
|
26866
|
+
specialDataType: "survivor_confidential"
|
|
26867
|
+
},
|
|
26851
26868
|
{
|
|
26852
26869
|
code: "236-004-000-000-000-000-000",
|
|
26853
26870
|
key: "services",
|