@htilabs/platform-common-models 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authz/index.cjs +539 -0
- package/dist/authz/index.cjs.map +1 -0
- package/dist/authz/index.d.cts +210 -0
- package/dist/authz/index.d.ts +210 -0
- package/dist/authz/index.js +507 -0
- package/dist/authz/index.js.map +1 -0
- package/dist/constants/index.d.cts +2 -1
- package/dist/constants/index.d.ts +2 -1
- package/dist/cvcs/index.cjs +647 -353
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +658 -362
- package/dist/cvcs/index.d.ts +658 -362
- package/dist/cvcs/index.js +647 -353
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +1 -9
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +7 -15
- package/dist/enums/index.d.ts +7 -15
- package/dist/enums/index.js +1 -9
- package/dist/enums/index.js.map +1 -1
- package/dist/{platform-auth-CvAYFVhK.d.cts → ic-DpKrdgQP.d.cts} +1 -78
- package/dist/{platform-auth-CvAYFVhK.d.ts → ic-DpKrdgQP.d.ts} +1 -78
- package/dist/index.cjs +899 -362
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +893 -362
- package/dist/index.js.map +1 -1
- package/dist/platform-auth-B49Ly57B.d.cts +78 -0
- package/dist/platform-auth-B49Ly57B.d.ts +78 -0
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +6 -1
- package/src/__sot__/README.md +3 -1
- package/src/__sot__/adminRoles.pin.json +122 -0
- package/src/__sot__/adminRoles.published.json +77 -0
- package/src/__sot__/coreFunctionFields.ts +16 -0
- package/src/__sot__/coreFunctions.pin.json +114 -1
- package/src/__sot__/roleFields.ts +137 -0
- package/src/__sot__/userRoles.pin.json +174 -0
- package/src/__sot__/userRoles.published.json +103 -0
- package/src/__tests__/__snapshots__/cvc-sot.snap +5 -5
- package/src/__tests__/admin-roles-canon.test.ts +80 -0
- package/src/__tests__/authz-resolve.test.ts +712 -0
- package/src/__tests__/core-functions-canon.test.ts +62 -12
- package/src/__tests__/cvc-sot-snapshot.test.ts +12 -4
- package/src/__tests__/cvc-status-parser.test.ts +1 -1
- package/src/__tests__/cvc-structural.test.ts +3 -3
- package/src/__tests__/role-vocab-gate.ts +279 -0
- package/src/__tests__/user-roles-canon.test.ts +104 -0
- package/src/authz/index.ts +9 -0
- package/src/authz/resolveEffectiveFunctions.ts +454 -0
- package/src/cvcs/adminRoles.v2.0.0.json +197 -0
- package/src/cvcs/{coreFunctions.v1.2.0.json → coreFunctions.v1.3.0.json} +357 -200
- package/src/cvcs/index.ts +3 -3
- package/src/cvcs/userRoles.v2.0.0.json +296 -0
- package/src/generated/coreFunctionsEvaluable.ts +101 -0
- package/src/generated/cvc-enums.ts +7 -15
- package/src/index.ts +4 -0
- package/src/cvcs/adminRoles.v1.0.0.json +0 -153
- package/src/cvcs/userRoles.v1.0.0.json +0 -203
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"domain": "user_roles",
|
|
3
|
-
"name": "Core User Roles (CVC-135)",
|
|
4
|
-
"version": "1.0.0",
|
|
5
|
-
"_status": "CANONICAL — imported 0.8.13 from the Notion Final CVC codebook (CVC-135 `core - user roles`, Owner Crysta Price, Status 'Drafted - Needs Review'). Operational / practitioner role vocabulary for the canonical authorization model (IC-66). DISTINCT from CVC-134 `admin_roles` (the administrative role axis) — a person may hold both. Canonical codes are already snake_case and are carried verbatim in `canonicalCode`. The Final codebook carries no missingness rows; the quadruplet is added per SOT convention.",
|
|
6
|
-
"_source": "htilabstech/prototype@a596eb9 Final CVCs/System Roles, Permissions, & Account Management (IC-66)/core - user roles (CVC-135)",
|
|
7
|
-
"levels": {
|
|
8
|
-
"0": "Unknown or Missing",
|
|
9
|
-
"1": "User role"
|
|
10
|
-
},
|
|
11
|
-
"entries": [
|
|
12
|
-
{
|
|
13
|
-
"code": "135-000-000-000-000-000-000",
|
|
14
|
-
"key": "missingness_root",
|
|
15
|
-
"title": "Unknown, Redacted, or Missing",
|
|
16
|
-
"selectable": false,
|
|
17
|
-
"parentCode": null,
|
|
18
|
-
"childCodes": [
|
|
19
|
-
"135-000-000-000-000-000-001",
|
|
20
|
-
"135-000-000-000-000-000-002",
|
|
21
|
-
"135-000-000-000-000-000-003"
|
|
22
|
-
],
|
|
23
|
-
"definition": "Root group for values indicating absent, withheld, or uncollected data. Variant: 3-value (unknown, anonymous, data_not_collected) under the workspace standard ANON semantic."
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"code": "135-000-000-000-000-000-001",
|
|
27
|
-
"key": "unknown",
|
|
28
|
-
"title": "Unknown",
|
|
29
|
-
"selectable": true,
|
|
30
|
-
"parentCode": "135-000-000-000-000-000-000",
|
|
31
|
-
"childCodes": [],
|
|
32
|
-
"definition": "Unknown or cannot be determined from the available information."
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"code": "135-000-000-000-000-000-002",
|
|
36
|
-
"key": "anonymous",
|
|
37
|
-
"title": "Anonymous / declined to answer",
|
|
38
|
-
"selectable": true,
|
|
39
|
-
"parentCode": "135-000-000-000-000-000-000",
|
|
40
|
-
"childCodes": [],
|
|
41
|
-
"definition": "Value is intentionally withheld or redacted. Combines declined-to-answer and redacted/anonymous semantics under the workspace standard ANON sentinel."
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"code": "135-000-000-000-000-000-003",
|
|
45
|
-
"key": "data_not_collected",
|
|
46
|
-
"title": "Data not collected",
|
|
47
|
-
"selectable": true,
|
|
48
|
-
"parentCode": "135-000-000-000-000-000-000",
|
|
49
|
-
"childCodes": [],
|
|
50
|
-
"definition": "No attempt was made to collect the value. System-only sentinel per GLOBAL_DESIGN_RULES."
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"code": "135-001-000-000-000-000-000",
|
|
54
|
-
"key": "case_nav",
|
|
55
|
-
"title": "Case Advocate (Navigator / Service Coordinator)",
|
|
56
|
-
"selectable": true,
|
|
57
|
-
"parentCode": null,
|
|
58
|
-
"childCodes": [],
|
|
59
|
-
"definition": "Provides ongoing service coordination, referrals, and case documentation within survivor-services workflows.",
|
|
60
|
-
"canonicalCode": "case_nav"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"code": "135-002-000-000-000-000-000",
|
|
64
|
-
"key": "healthcare_provider_medical",
|
|
65
|
-
"title": "Certified Healthcare Provider (Medical)",
|
|
66
|
-
"selectable": true,
|
|
67
|
-
"parentCode": null,
|
|
68
|
-
"childCodes": [],
|
|
69
|
-
"definition": "Provides medical evaluation and treatment and may document clinical observations that support identification and care coordination, within MDT and sector constraints.",
|
|
70
|
-
"canonicalCode": "healthcare_provider_medical"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"code": "135-003-000-000-000-000-000",
|
|
74
|
-
"key": "behavioral_health_provider",
|
|
75
|
-
"title": "Certified Mental/Behavioral Health Provider (Therapy / Counseling)",
|
|
76
|
-
"selectable": true,
|
|
77
|
-
"parentCode": null,
|
|
78
|
-
"childCodes": [],
|
|
79
|
-
"definition": "Provides mental and behavioral healthcare services and documents therapeutic progress as part of the survivor’s care plan.",
|
|
80
|
-
"canonicalCode": "behavioral_health_provider"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"code": "135-004-000-000-000-000-000",
|
|
84
|
-
"key": "hotline_op",
|
|
85
|
-
"title": "Crisis Response Staff",
|
|
86
|
-
"selectable": true,
|
|
87
|
-
"parentCode": null,
|
|
88
|
-
"childCodes": [],
|
|
89
|
-
"definition": "Top-of-funnel intake role for hotline staff/volunteers. Supports intake and routing workflows with tightly constrained visibility.",
|
|
90
|
-
"canonicalCode": "hotline_op"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"code": "135-005-000-000-000-000-000",
|
|
94
|
-
"key": "intel_analyst",
|
|
95
|
-
"title": "Intelligence Analyst",
|
|
96
|
-
"selectable": true,
|
|
97
|
-
"parentCode": null,
|
|
98
|
-
"childCodes": [],
|
|
99
|
-
"definition": "Analyzes intelligence, creates intelligence artifacts, and supports network mapping and risk scoring within CI governance rules.",
|
|
100
|
-
"canonicalCode": "intel_analyst"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"code": "135-006-000-000-000-000-000",
|
|
104
|
-
"key": "investigator",
|
|
105
|
-
"title": "Investigator",
|
|
106
|
-
"selectable": true,
|
|
107
|
-
"parentCode": null,
|
|
108
|
-
"childCodes": [],
|
|
109
|
-
"definition": "Law enforcement investigator who triages leads, creates/claims investigations, collaborates, and performs deconfliction within policy constraints.",
|
|
110
|
-
"canonicalCode": "investigator"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"code": "135-007-000-000-000-000-000",
|
|
114
|
-
"key": "le_liaison_vsp",
|
|
115
|
-
"title": "LE Liaison (VSP-side Coordination)",
|
|
116
|
-
"selectable": true,
|
|
117
|
-
"parentCode": null,
|
|
118
|
-
"childCodes": [],
|
|
119
|
-
"definition": "VSP-side liaison who coordinates communication with law enforcement only under survivor consent, statutory mandate, or documented legal exception.",
|
|
120
|
-
"canonicalCode": "le_liaison_vsp"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"code": "135-008-000-000-000-000-000",
|
|
124
|
-
"key": "legal_advocate",
|
|
125
|
-
"title": "Legal Advocate (Survivor-facing Legal Services)",
|
|
126
|
-
"selectable": true,
|
|
127
|
-
"parentCode": null,
|
|
128
|
-
"childCodes": [],
|
|
129
|
-
"definition": "Provides civil, criminal, and/or immigration legal support and documents legal strategy and case-related filings (not a prosecutor role).",
|
|
130
|
-
"canonicalCode": "legal_advocate"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"code": "135-009-000-000-000-000-000",
|
|
134
|
-
"key": "mandatory_reporter",
|
|
135
|
-
"title": "Mandatory Reporter User",
|
|
136
|
-
"selectable": true,
|
|
137
|
-
"parentCode": null,
|
|
138
|
-
"childCodes": [],
|
|
139
|
-
"definition": "Authenticated external partner who submits mandatory reports/referrals with minimal follow-up visibility.",
|
|
140
|
-
"canonicalCode": "mandatory_reporter"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"code": "135-010-000-000-000-000-000",
|
|
144
|
-
"key": "mdt_participant",
|
|
145
|
-
"title": "MDT Participant",
|
|
146
|
-
"selectable": true,
|
|
147
|
-
"parentCode": null,
|
|
148
|
-
"childCodes": [],
|
|
149
|
-
"definition": "Cross-sector collaboration participant who can coordinate on a defined case context without broad case browsing.",
|
|
150
|
-
"canonicalCode": "mdt_participant"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"code": "135-011-000-000-000-000-000",
|
|
154
|
-
"key": "prosecutor_review",
|
|
155
|
-
"title": "Prosecutorial Reviewer",
|
|
156
|
-
"selectable": true,
|
|
157
|
-
"parentCode": null,
|
|
158
|
-
"childCodes": [],
|
|
159
|
-
"definition": "Reviews authorized export packages and prosecution-ready materials; updates prosecutorial milestones when permitted.",
|
|
160
|
-
"canonicalCode": "prosecutor_review"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"code": "135-012-000-000-000-000-000",
|
|
164
|
-
"key": "public_reporter",
|
|
165
|
-
"title": "Public Reporter",
|
|
166
|
-
"selectable": true,
|
|
167
|
-
"parentCode": null,
|
|
168
|
-
"childCodes": [],
|
|
169
|
-
"definition": "Uncredentialed public reporter who submits a tip/referral with minimal follow-up visibility.",
|
|
170
|
-
"canonicalCode": "public_reporter"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"code": "135-013-000-000-000-000-000",
|
|
174
|
-
"key": "research_analytics",
|
|
175
|
-
"title": "Research / Analytics User",
|
|
176
|
-
"selectable": true,
|
|
177
|
-
"parentCode": null,
|
|
178
|
-
"childCodes": [],
|
|
179
|
-
"definition": "Uses de-identified datasets and approved aggregate views for analytics and reporting.",
|
|
180
|
-
"canonicalCode": "research_analytics"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"code": "135-014-000-000-000-000-000",
|
|
184
|
-
"key": "screener",
|
|
185
|
-
"title": "Screener (Initial Screen)",
|
|
186
|
-
"selectable": true,
|
|
187
|
-
"parentCode": null,
|
|
188
|
-
"childCodes": [],
|
|
189
|
-
"definition": "Performs intake and initial screening and records indicators/risk flags. Does not perform formal determinations unless also occupying a certified role.",
|
|
190
|
-
"canonicalCode": "screener"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"code": "135-015-000-000-000-000-000",
|
|
194
|
-
"key": "volunteer",
|
|
195
|
-
"title": "Volunteer",
|
|
196
|
-
"selectable": true,
|
|
197
|
-
"parentCode": null,
|
|
198
|
-
"childCodes": [],
|
|
199
|
-
"definition": "Volunteer performing hotline/intake support work (often 24/7 coverage) under supervision. Participates in the intake workflow with tightly constrained visibility and no downstream casework authority.",
|
|
200
|
-
"canonicalCode": "volunteer"
|
|
201
|
-
}
|
|
202
|
-
]
|
|
203
|
-
}
|