@pegasimed.com/pegasi-sail-connect-shared 0.1.0-dev.0 → 0.2.0-dev.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 +398 -125
- package/dist/authorization/index.d.ts +3 -0
- package/dist/authorization/index.d.ts.map +1 -0
- package/dist/authorization/index.js +3 -0
- package/dist/authorization/index.js.map +1 -0
- package/dist/authorization/internal-authorization.d.ts +105 -0
- package/dist/authorization/internal-authorization.d.ts.map +1 -0
- package/dist/authorization/internal-authorization.js +287 -0
- package/dist/authorization/internal-authorization.js.map +1 -0
- package/dist/capabilities/catalog-data.d.ts +3917 -0
- package/dist/capabilities/catalog-data.d.ts.map +1 -0
- package/dist/capabilities/catalog-data.js +4244 -0
- package/dist/capabilities/catalog-data.js.map +1 -0
- package/dist/capabilities/catalog.d.ts +38 -0
- package/dist/capabilities/catalog.d.ts.map +1 -0
- package/dist/capabilities/catalog.js +91 -0
- package/dist/capabilities/catalog.js.map +1 -0
- package/dist/capabilities/index.d.ts +8 -0
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/index.js +8 -0
- package/dist/capabilities/index.js.map +1 -0
- package/dist/capabilities/list.d.ts +46 -0
- package/dist/capabilities/list.d.ts.map +1 -0
- package/dist/capabilities/list.js +80 -0
- package/dist/capabilities/list.js.map +1 -0
- package/dist/capabilities/match.d.ts +42 -0
- package/dist/capabilities/match.d.ts.map +1 -0
- package/dist/capabilities/match.js +139 -0
- package/dist/capabilities/match.js.map +1 -0
- package/dist/capabilities/migration-data.d.ts +2424 -0
- package/dist/capabilities/migration-data.d.ts.map +1 -0
- package/dist/capabilities/migration-data.js +2646 -0
- package/dist/capabilities/migration-data.js.map +1 -0
- package/dist/capabilities/migration.d.ts +176 -0
- package/dist/capabilities/migration.d.ts.map +1 -0
- package/dist/capabilities/migration.js +209 -0
- package/dist/capabilities/migration.js.map +1 -0
- package/dist/capabilities/types.d.ts +124 -0
- package/dist/capabilities/types.d.ts.map +1 -0
- package/dist/capabilities/types.js +2 -0
- package/dist/capabilities/types.js.map +1 -0
- package/dist/capabilities/validate.d.ts +19 -0
- package/dist/capabilities/validate.d.ts.map +1 -0
- package/dist/capabilities/validate.js +235 -0
- package/dist/capabilities/validate.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +111 -102
- package/scripts/check-service-keys.mjs +250 -0
- package/scripts/lint-phi.mjs +266 -266
|
@@ -0,0 +1,2646 @@
|
|
|
1
|
+
// Old -> canonical permission migration map of the SAIL/CONNECT backends.
|
|
2
|
+
// Generated by scripts/generate-capabilities.mjs. Do not edit by hand: change the input map (or the
|
|
3
|
+
// generator) and regenerate, then review the diff.
|
|
4
|
+
//
|
|
5
|
+
// Input map: normalization-map.json (sha256 4fe73ffb3f784896c9345f54ac44e50a4584362fa27043f5ac09b212516c3985)
|
|
6
|
+
// Map produced by: build-normalization-map.cjs
|
|
7
|
+
// Input commits of the map:
|
|
8
|
+
// access-api-catalog-recon-20260928 (catálogo): 27b0924286109c7a47badbbd991496e3bd03f94e
|
|
9
|
+
// pegasi-enumerables-api: 85d606600ee1d96bf947fc06a7073ee66a4eb842
|
|
10
|
+
// pegasi-platform-web: ac7f49e265f405774ff813b0a62b42c78699238f
|
|
11
|
+
// pegasi-sail-connect-access-api: 27b0924286109c7a47badbbd991496e3bd03f94e
|
|
12
|
+
// pegasi-sail-connect-analytics-api: 42d54117a2f3dfe24f56e77e8e0108ae0f3aa055
|
|
13
|
+
// pegasi-sail-connect-audit-api: 6729999ac7ef0231bf64d35c8038fa0ec6ad1e11
|
|
14
|
+
// pegasi-sail-connect-care-execution-api: 4664fd00d820dbca08fdc9d745cd978e3f4f568f
|
|
15
|
+
// pegasi-sail-connect-care-plan-api: ff16d9c7c034c852005178177fb7b7fc3c1b0699
|
|
16
|
+
// pegasi-sail-connect-cases-api: a0b112ab729c862efda1f7a5c19f9aee9ae0e34d
|
|
17
|
+
// pegasi-sail-connect-clinical-organization-api: 2da4b264453e58f429a044e995f819db4a73da02
|
|
18
|
+
// pegasi-sail-connect-clinical-record-api: 945a837e95a91038f6926b48976d0439ba31ce14
|
|
19
|
+
// pegasi-sail-connect-collaboration-api: d02f9e45bef1c03c9bd7b74c872080643be983a7
|
|
20
|
+
// pegasi-sail-connect-commercial-core-api: 66d197d2dcd4e952f6cc936183a92b94c893db02
|
|
21
|
+
// pegasi-sail-connect-communications-api: 9fe2061a9a063621e34c11374e5c12c6d3d2eba8
|
|
22
|
+
// pegasi-sail-connect-conversations-api: 3e394cd0b855b4beae27a6c1317aff10a7d9d79b
|
|
23
|
+
// pegasi-sail-connect-diagnostic-results-api: faeed4df87c9b651a07445f2d4373b33e9fd641a
|
|
24
|
+
// pegasi-sail-connect-engagement-api: cc1695948eff6805a6102ddc0d2c581f49fe806d
|
|
25
|
+
// pegasi-sail-connect-files-api: 3dd8c6136061cd5b08ca037cd4a59869f6497fdc
|
|
26
|
+
// pegasi-sail-connect-integration-gateway-api: 198793e752eaa0d99e32a9ed712660131b74e9b1
|
|
27
|
+
// pegasi-sail-connect-inventory-api: 501f60bfc450dab57fce80939f6b32dfa147040b
|
|
28
|
+
// pegasi-sail-connect-medical-board-api: 98951004365e7a46a443814ad8146f860ceb1060
|
|
29
|
+
// pegasi-sail-connect-meetings-api: 52d093db5ffc00c1d9e0c1d22d1aec2f6a512d79
|
|
30
|
+
// pegasi-sail-connect-orders-api: ed1df33f18b071054d1d3f4d6b18a62ed5217274
|
|
31
|
+
// pegasi-sail-connect-patient-api: 36e7acd5f2d9ee1651dc88d45e727e7dde139f6d
|
|
32
|
+
// pegasi-sail-connect-questionnaire-api: 914124bbd888f20e83c2e1b72fef8ef6d5715633
|
|
33
|
+
// pegasi-sail-connect-reports-api: a19a911b373de723d0c2e4b6939726b3ccc6a52e
|
|
34
|
+
// pegasi-sail-connect-revenue-cycle-api: f9178f0213d3154b8b99180b96abfd3bbeb0c454
|
|
35
|
+
// pegasi-sail-connect-schedules-api: 65dd0325499c2dc6681019986cd74400928f1cf9
|
|
36
|
+
// pegasi-sail-connect-serials-api: 6a7e5b4109e60ddbffea221b7c01b676bab2d4ad
|
|
37
|
+
// pegasi-sail-connect-specimen-api: 3fba30256dde473b024b938a9313792a2e5b2fe3
|
|
38
|
+
// pegasi-sail-connect-treasury-api: 15acea8ed7078d37f5165af7256b73a4ff41cffc
|
|
39
|
+
// pegasi-sail-reference-data-api: 1318a4d223f6d8ffc6569af0dfde2873bf3e8295
|
|
40
|
+
export const PERMISSION_MIGRATION_ENTRIES = [
|
|
41
|
+
{
|
|
42
|
+
old: "Core",
|
|
43
|
+
op: "retire",
|
|
44
|
+
canonical: [],
|
|
45
|
+
grantMigration: [],
|
|
46
|
+
caseVariantGrants: [],
|
|
47
|
+
spaceVariantGrants: null,
|
|
48
|
+
note: "compatibilidad, no canónica. Derivación: Ningún servicio la exige; solo figura en el catálogo de Access (access-api src/rbac-catalog.ts:202). Sin acceso efectivo."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
old: "ReferenceData.Read",
|
|
52
|
+
op: "retire",
|
|
53
|
+
canonical: [],
|
|
54
|
+
grantMigration: [],
|
|
55
|
+
caseVariantGrants: [],
|
|
56
|
+
spaceVariantGrants: null,
|
|
57
|
+
note: "compatibilidad, no canónica. Derivación: Permiso por defecto del usuario raíz (access-api src/access-store.ts:390, src/mongo-access-store.ts:320) que ningún servicio comprueba (reference-data-api no tiene comprobaciones de clave). Sin acceso efectivo."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
old: "access-api:*",
|
|
61
|
+
op: "retire",
|
|
62
|
+
canonical: [],
|
|
63
|
+
grantMigration: ["access:practitioner-user:write", "access:user-invitation:write", "access:user-oidc-link:write", "access:user-password-reset:write", "access:user-suspension:write", "access:user:read", "access:user:write"],
|
|
64
|
+
caseVariantGrants: ["access:practitioner-user:write", "access:user-invitation:write", "access:user-oidc-link:write", "access:user-password-reset:write", "access:user-suspension:write", "access:user:read", "access:user:write"],
|
|
65
|
+
spaceVariantGrants: null,
|
|
66
|
+
note: "comodín literal exigido; el matcher del paquete lo hace innecesario. Grants corregidos respecto del mapa (access:*:*) para conservar el acceso efectivo. Derivación: Prefijo access-api: de permissionMatches (access-api src/permission-matching.ts:1-8), usado solo en requireUserPermission (src/user-routes.ts:686-696 con los conjuntos read/write/invite/suspend/password/oidc de 610-624), rbac-routes.ts:139,148-149,207, authorization-routes.ts:105-116,155-158 y el alta de profesionales (practitioner-user-routes.ts:188-208, prefijo sobre access-api:write). No satisfacía las comprobaciones exactas: auth-routes.ts:228-231 y 240, commercial-snapshot-routes.ts:165-168, settings-domain.ts:591-592 y 599-600, tenant-profile-domain.ts:230-231, user-administration-policy.ts:7-25 ni user-routes.ts:1484. Lista enumerada sin access:*:*, que ampliaría acceso. Recibe access:user-oidc-link:write porque el prefijo abría las rutas OIDC ordinarias (user-routes.ts:2251, 2280, 2307, requireUserPermission con permissionMatches), pero no access:user-membership-oidc:write: la asignación de membresías (1484) exige access-api:users:oidc con hasExactPermission, que el prefijo nunca satisfizo."
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
old: "access-api:break-glass",
|
|
70
|
+
op: "rename",
|
|
71
|
+
canonical: ["access:break-glass:issue"],
|
|
72
|
+
grantMigration: ["access:break-glass:issue"],
|
|
73
|
+
caseVariantGrants: null,
|
|
74
|
+
spaceVariantGrants: null,
|
|
75
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (access-api src/auth-routes.ts:240 (includes literal))."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
old: "access-api:settings:read",
|
|
79
|
+
op: "rename",
|
|
80
|
+
canonical: ["access:settings:read"],
|
|
81
|
+
grantMigration: ["access:settings:read"],
|
|
82
|
+
caseVariantGrants: null,
|
|
83
|
+
spaceVariantGrants: null,
|
|
84
|
+
note: "Decisión pendiente del mapa resuelta: decisión del propietario 2026-09-29 (Global Settings pasa a tenantProfile, Access PR #87): access:settings:read vuelve al catálogo como clave de plataforma, no asignable a tenant, y access-api:settings:read migra a ella. Derivación: Ninguna lectura de ajustes la exige: en access-api la de la licencia propia no exige clave (src/settings-domain.ts:587-590) y la de otra licencia exige la clave exacta access-api:settings:read:any (591-592). Hoy solo abre la auditoría del perfil del tenant (Access PR #87, commit ef7b9cd, tenant-profile-domain.ts:659-664, canReadTenantProfileAudit); la usan además Platform Admin y la semilla de administradores. Migra a access:settings:read y no a access:settings:read-any, que ampliaría acceso a otras licencias. Variante en mayúsculas: a unknown, su comprobación era literal (ningún backend la comprobaba en los commits de entrada del mapa, anteriores a la auditoría del perfil del PR #87, así que no hay evidencia de que se aceptara en mayúsculas)."
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
old: "access-api:settings:read:any",
|
|
88
|
+
op: "rename",
|
|
89
|
+
canonical: ["access:settings:read-any"],
|
|
90
|
+
grantMigration: ["access:settings:read-any"],
|
|
91
|
+
caseVariantGrants: null,
|
|
92
|
+
spaceVariantGrants: null,
|
|
93
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (access-api src/settings-domain.ts:591-592 (includes literal))."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
old: "access-api:settings:write",
|
|
97
|
+
op: "rename",
|
|
98
|
+
canonical: ["access:settings:write"],
|
|
99
|
+
grantMigration: ["access:settings:write", "access:tenant-profile:write"],
|
|
100
|
+
caseVariantGrants: null,
|
|
101
|
+
spaceVariantGrants: null,
|
|
102
|
+
note: "Grants corregidos respecto del mapa (access:settings:write) para conservar el acceso efectivo. Derivación: access-api src/settings-domain.ts:598-600 y tenant-profile-domain.ts:229-231, única comprobación de tenant-profile:write, que la acepta: se concede access:tenant-profile:write. Variante en mayúsculas: a unknown, su comprobación era literal (access-api src/settings-domain.ts:599-600, tenant-profile-domain.ts:230-231 (includes literal))."
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
old: "access-api:settings:write:any",
|
|
106
|
+
op: "rename",
|
|
107
|
+
canonical: ["access:settings:write-any"],
|
|
108
|
+
grantMigration: ["access:settings:write-any"],
|
|
109
|
+
caseVariantGrants: null,
|
|
110
|
+
spaceVariantGrants: null,
|
|
111
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (access-api src/settings-domain.ts:591-592 (includes literal))."
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
old: "access-api:users:any",
|
|
115
|
+
op: "rename",
|
|
116
|
+
canonical: ["access:user:write-any"],
|
|
117
|
+
grantMigration: ["access:user:write-any"],
|
|
118
|
+
caseVariantGrants: ["access:user:write-any"],
|
|
119
|
+
spaceVariantGrants: null,
|
|
120
|
+
note: "Decisión pendiente: hoy es marcador de alcance entre tenants sin verbo; confirmar que write-any lo representa."
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
old: "access-api:users:invite",
|
|
124
|
+
op: "rename",
|
|
125
|
+
canonical: ["access:user-invitation:write"],
|
|
126
|
+
grantMigration: ["access:user-invitation:write"],
|
|
127
|
+
caseVariantGrants: ["access:user-invitation:write"],
|
|
128
|
+
spaceVariantGrants: null,
|
|
129
|
+
note: ""
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
old: "access-api:users:manage-permissions",
|
|
133
|
+
op: "rename",
|
|
134
|
+
canonical: ["access:user-permissions:write"],
|
|
135
|
+
grantMigration: ["access:user-permissions:write"],
|
|
136
|
+
caseVariantGrants: ["access:user-permissions:write"],
|
|
137
|
+
spaceVariantGrants: null,
|
|
138
|
+
note: ""
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
old: "access-api:users:manage-platform-permissions",
|
|
142
|
+
op: "rename",
|
|
143
|
+
canonical: ["access:platform-permissions:write"],
|
|
144
|
+
grantMigration: ["access:platform-permissions:write"],
|
|
145
|
+
caseVariantGrants: ["access:platform-permissions:write"],
|
|
146
|
+
spaceVariantGrants: null,
|
|
147
|
+
note: ""
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
old: "access-api:users:oidc",
|
|
151
|
+
op: "rename",
|
|
152
|
+
canonical: ["access:user-oidc-link:write"],
|
|
153
|
+
grantMigration: ["access:user-membership-oidc:write", "access:user-oidc-link:write"],
|
|
154
|
+
caseVariantGrants: ["access:user-membership-oidc:write", "access:user-oidc-link:write"],
|
|
155
|
+
spaceVariantGrants: null,
|
|
156
|
+
note: "Grants corregidos respecto del mapa (access:user-oidc-link:write) para conservar el acceso efectivo. Derivación: Abre las rutas OIDC ordinarias (access-api src/user-routes.ts:616, 2251, 2280, 2307, requireUserPermission) y es la única clave que satisface la comprobación exacta adicional de la asignación de membresías (user-routes.ts:1484, hasExactPermission de user-administration-policy.ts:7-13): recibe access:user-oidc-link:write y access:user-membership-oidc:write."
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
old: "access-api:users:password-reset",
|
|
160
|
+
op: "rename",
|
|
161
|
+
canonical: ["access:user-password-reset:write"],
|
|
162
|
+
grantMigration: ["access:user-password-reset:write"],
|
|
163
|
+
caseVariantGrants: ["access:user-password-reset:write"],
|
|
164
|
+
spaceVariantGrants: null,
|
|
165
|
+
note: ""
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
old: "access-api:users:read",
|
|
169
|
+
op: "rename",
|
|
170
|
+
canonical: ["access:user:read"],
|
|
171
|
+
grantMigration: ["access:user:read"],
|
|
172
|
+
caseVariantGrants: ["access:user:read"],
|
|
173
|
+
spaceVariantGrants: null,
|
|
174
|
+
note: ""
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
old: "access-api:users:suspend",
|
|
178
|
+
op: "rename",
|
|
179
|
+
canonical: ["access:user-suspension:write"],
|
|
180
|
+
grantMigration: ["access:user-suspension:write"],
|
|
181
|
+
caseVariantGrants: ["access:user-suspension:write"],
|
|
182
|
+
spaceVariantGrants: null,
|
|
183
|
+
note: ""
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
old: "access-api:users:write",
|
|
187
|
+
op: "rename",
|
|
188
|
+
canonical: ["access:user:write"],
|
|
189
|
+
grantMigration: ["access:user-password-reset:write", "access:user-suspension:write", "access:user:read", "access:user:write"],
|
|
190
|
+
caseVariantGrants: ["access:user-password-reset:write", "access:user-suspension:write", "access:user:read", "access:user:write"],
|
|
191
|
+
spaceVariantGrants: null,
|
|
192
|
+
note: "Grants corregidos respecto del mapa (access:user:write) para conservar el acceso efectivo. Derivación: Aceptada en todas las comprobaciones de lectura (access-api src/user-routes.ts:611, authorization-routes.ts:106-109, rbac-routes.ts:139), suspensión (user-routes.ts:614, authorization-routes.ts:114-115) y restablecimiento (user-routes.ts:615, authorization-routes.ts:116). En invitación solo con identityOnboarding.inviteWriteCompatibilityEnabled (user-routes.ts:621-624): no se concede access:user-invitation:write y esas rutas deben pedir assertAnyPermission."
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
old: "access-api:write",
|
|
196
|
+
op: "retire",
|
|
197
|
+
canonical: [],
|
|
198
|
+
grantMigration: ["access:commercial-snapshot:write", "access:practitioner-user:write", "access:user-bootstrap:write", "access:user-invitation:write", "access:user-password-reset:write", "access:user-suspension:write", "access:user:read", "access:user:write"],
|
|
199
|
+
caseVariantGrants: ["access:practitioner-user:write", "access:user-invitation:write", "access:user-password-reset:write", "access:user-suspension:write", "access:user:read", "access:user:write"],
|
|
200
|
+
spaceVariantGrants: null,
|
|
201
|
+
note: "genérica de plataforma aceptada como alternativa; pasa a ser patrón de grant. Grants corregidos respecto del mapa (access:*:write) para conservar el acceso efectivo. Derivación: Igualdad literal en access-api src/user-routes.ts:611-615, authorization-routes.ts:106-116, rbac-routes.ts:139, practitioner-user-routes.ts:208 (alta de profesionales: practitioner-user), auth-routes.ts:230 (aprovisionamiento raíz: user-bootstrap) y commercial-snapshot-routes.ts:167 (proyección: commercial-snapshot). No la aceptaban oidc (user-routes.ts:616), settings (settings-domain.ts:600) ni tenant-profile (tenant-profile-domain.ts:231). El bypass por rol platform_admin (auth-routes.ts:229, commercial-snapshot-routes.ts:166) no es una clave. Lista enumerada sin access:*:write, que ampliaría acceso. Variante en mayúsculas: solo access:practitioner-user:write, access:user-invitation:write, access:user-password-reset:write, access:user-suspension:write, access:user:read, access:user:write (access-api src/permission-matching.ts:1-8, user-routes.ts:686-696, rbac-routes.ts:148-149, authorization-routes.ts:155-158, practitioner-user-routes.ts:198-208 en minúsculas; auth-routes.ts:230 y commercial-snapshot-routes.ts:167 son includes literales: user-bootstrap y commercial-snapshot solo con la clave exacta)."
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
old: "analytics:export:create",
|
|
205
|
+
op: "rename",
|
|
206
|
+
canonical: ["analytics:export:write"],
|
|
207
|
+
grantMigration: ["analytics:export:write"],
|
|
208
|
+
caseVariantGrants: ["analytics:export:write"],
|
|
209
|
+
spaceVariantGrants: null,
|
|
210
|
+
note: ""
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
old: "analytics:export:read",
|
|
214
|
+
op: "keep",
|
|
215
|
+
canonical: ["analytics:export:read"],
|
|
216
|
+
grantMigration: ["analytics:export:read"],
|
|
217
|
+
caseVariantGrants: ["analytics:export:read"],
|
|
218
|
+
spaceVariantGrants: null,
|
|
219
|
+
note: ""
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
old: "analytics:power-bi:read",
|
|
223
|
+
op: "keep",
|
|
224
|
+
canonical: ["analytics:power-bi:read"],
|
|
225
|
+
grantMigration: ["analytics:power-bi:read"],
|
|
226
|
+
caseVariantGrants: ["analytics:power-bi:read"],
|
|
227
|
+
spaceVariantGrants: null,
|
|
228
|
+
note: ""
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
old: "analytics:power-bi:write",
|
|
232
|
+
op: "keep",
|
|
233
|
+
canonical: ["analytics:power-bi:write"],
|
|
234
|
+
grantMigration: ["analytics:power-bi:write"],
|
|
235
|
+
caseVariantGrants: ["analytics:power-bi:write"],
|
|
236
|
+
spaceVariantGrants: null,
|
|
237
|
+
note: ""
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
old: "analytics:projection:write",
|
|
241
|
+
op: "keep",
|
|
242
|
+
canonical: ["analytics:projection:write"],
|
|
243
|
+
grantMigration: ["analytics:projection:write"],
|
|
244
|
+
caseVariantGrants: ["analytics:projection:write"],
|
|
245
|
+
spaceVariantGrants: null,
|
|
246
|
+
note: ""
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
old: "analytics:query",
|
|
250
|
+
op: "rename",
|
|
251
|
+
canonical: ["analytics:query:execute"],
|
|
252
|
+
grantMigration: ["analytics:query:execute"],
|
|
253
|
+
caseVariantGrants: ["analytics:query:execute"],
|
|
254
|
+
spaceVariantGrants: null,
|
|
255
|
+
note: ""
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
old: "analytics:query-definition:read",
|
|
259
|
+
op: "keep",
|
|
260
|
+
canonical: ["analytics:query-definition:read"],
|
|
261
|
+
grantMigration: ["analytics:query-definition:read"],
|
|
262
|
+
caseVariantGrants: ["analytics:query-definition:read"],
|
|
263
|
+
spaceVariantGrants: null,
|
|
264
|
+
note: ""
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
old: "analytics:query-definition:write",
|
|
268
|
+
op: "keep",
|
|
269
|
+
canonical: ["analytics:query-definition:write"],
|
|
270
|
+
grantMigration: ["analytics:query-definition:write"],
|
|
271
|
+
caseVariantGrants: ["analytics:query-definition:write"],
|
|
272
|
+
spaceVariantGrants: null,
|
|
273
|
+
note: ""
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
old: "analytics:read",
|
|
277
|
+
op: "retire",
|
|
278
|
+
canonical: [],
|
|
279
|
+
grantMigration: [],
|
|
280
|
+
caseVariantGrants: [],
|
|
281
|
+
spaceVariantGrants: null,
|
|
282
|
+
note: "huérfana: asignable hoy y no autoriza nada; el grant se elimina sin pérdida de acceso. Derivación: Huérfana: analytics-api solo exige claves granulares (src/analytics-routes.ts:314-532). Sin acceso efectivo."
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
old: "analytics:sync:start",
|
|
286
|
+
op: "rename",
|
|
287
|
+
canonical: ["analytics:sync:execute"],
|
|
288
|
+
grantMigration: ["analytics:sync:execute"],
|
|
289
|
+
caseVariantGrants: ["analytics:sync:execute"],
|
|
290
|
+
spaceVariantGrants: null,
|
|
291
|
+
note: ""
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
old: "analytics:write",
|
|
295
|
+
op: "retire",
|
|
296
|
+
canonical: [],
|
|
297
|
+
grantMigration: [],
|
|
298
|
+
caseVariantGrants: [],
|
|
299
|
+
spaceVariantGrants: null,
|
|
300
|
+
note: "huérfana: asignable hoy y no autoriza nada; el grant se elimina sin pérdida de acceso. Derivación: Huérfana: analytics-api solo exige claves granulares (src/analytics-routes.ts:314-532). Sin acceso efectivo."
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
old: "audit:read",
|
|
304
|
+
op: "rename",
|
|
305
|
+
canonical: ["audit:domain:read"],
|
|
306
|
+
grantMigration: ["audit:domain:read"],
|
|
307
|
+
caseVariantGrants: null,
|
|
308
|
+
spaceVariantGrants: null,
|
|
309
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (audit-api src/audit-routes.ts:70-72 (includes))."
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
old: "audit:resource-history:read",
|
|
313
|
+
op: "keep",
|
|
314
|
+
canonical: ["audit:resource-history:read"],
|
|
315
|
+
grantMigration: ["audit:resource-history:read"],
|
|
316
|
+
caseVariantGrants: null,
|
|
317
|
+
spaceVariantGrants: null,
|
|
318
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (audit-api src/audit-routes.ts:70-72 (includes))."
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
old: "care-execution:assign",
|
|
322
|
+
op: "rename",
|
|
323
|
+
canonical: ["care-execution:domain:assign"],
|
|
324
|
+
grantMigration: ["care-execution:domain:assign"],
|
|
325
|
+
caseVariantGrants: ["care-execution:domain:assign"],
|
|
326
|
+
spaceVariantGrants: null,
|
|
327
|
+
note: "Derivación: Única comprobación: care-execution-api src/care-execution-routes.ts:1568."
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
old: "care-execution:claim",
|
|
331
|
+
op: "rename",
|
|
332
|
+
canonical: ["care-execution:domain:claim"],
|
|
333
|
+
grantMigration: ["care-execution:domain:claim"],
|
|
334
|
+
caseVariantGrants: ["care-execution:domain:claim"],
|
|
335
|
+
spaceVariantGrants: null,
|
|
336
|
+
note: "Derivación: Única comprobación: care-execution-api src/care-execution-routes.ts:1555."
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
old: "care-execution:claim:override",
|
|
340
|
+
op: "rename",
|
|
341
|
+
canonical: ["care-execution:domain:claim-any"],
|
|
342
|
+
grantMigration: ["care-execution:domain:claim", "care-execution:domain:claim-any"],
|
|
343
|
+
caseVariantGrants: ["care-execution:domain:claim", "care-execution:domain:claim-any"],
|
|
344
|
+
spaceVariantGrants: null,
|
|
345
|
+
note: "Grants corregidos respecto del mapa (care-execution:domain:claim-any) para conservar el acceso efectivo. Derivación: Exacta en care-execution-api src/care-execution-routes.ts:523 (reclamo sobre otro titular) y alternativa en 1555, única comprobación de care-execution:claim: se concede care-execution:domain:claim para conservar ese acceso."
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
old: "care-execution:complete",
|
|
349
|
+
op: "rename",
|
|
350
|
+
canonical: ["care-execution:domain:complete"],
|
|
351
|
+
grantMigration: ["care-execution:domain:complete"],
|
|
352
|
+
caseVariantGrants: ["care-execution:domain:complete"],
|
|
353
|
+
spaceVariantGrants: null,
|
|
354
|
+
note: "Derivación: Comprobaciones care-execution-api src/care-execution-routes.ts:1588 y 1605."
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
old: "care-execution:delete",
|
|
358
|
+
op: "rename",
|
|
359
|
+
canonical: ["care-execution:domain:delete"],
|
|
360
|
+
grantMigration: ["care-execution:domain:delete"],
|
|
361
|
+
caseVariantGrants: ["care-execution:domain:delete"],
|
|
362
|
+
spaceVariantGrants: null,
|
|
363
|
+
note: "Derivación: Comprobaciones care-execution-api src/care-execution-routes.ts:1635 y 1649."
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
old: "care-execution:intake",
|
|
367
|
+
op: "rename",
|
|
368
|
+
canonical: ["care-execution:intake:write"],
|
|
369
|
+
grantMigration: ["care-execution:intake:write"],
|
|
370
|
+
caseVariantGrants: ["care-execution:intake:write"],
|
|
371
|
+
spaceVariantGrants: null,
|
|
372
|
+
note: "Derivación: Única comprobación: care-execution-api src/care-execution-routes.ts:1669."
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
old: "care-execution:read",
|
|
376
|
+
op: "rename",
|
|
377
|
+
canonical: ["care-execution:domain:read"],
|
|
378
|
+
grantMigration: ["care-execution:domain:read", "care-execution:settings:read"],
|
|
379
|
+
caseVariantGrants: ["care-execution:domain:read", "care-execution:settings:read"],
|
|
380
|
+
spaceVariantGrants: null,
|
|
381
|
+
note: "Regla de clave genérica: cobertura total del servicio, migrada a la lista enumerada de sus claves (sin comodín). Forma comodín vieja enumerada a claves explícitas: care-execution:*:read → 2. Derivación: Dominio en care-execution-api src/care-execution-routes.ts:1380-1434 y settings:read en 1725, que acepta care-execution:read: son todas las claves read no exactas del servicio."
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
old: "care-execution:settings:read",
|
|
385
|
+
op: "keep",
|
|
386
|
+
canonical: ["care-execution:settings:read"],
|
|
387
|
+
grantMigration: ["care-execution:settings:read"],
|
|
388
|
+
caseVariantGrants: ["care-execution:settings:read"],
|
|
389
|
+
spaceVariantGrants: null,
|
|
390
|
+
note: ""
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
old: "care-execution:settings:write",
|
|
394
|
+
op: "keep",
|
|
395
|
+
canonical: ["care-execution:settings:write"],
|
|
396
|
+
grantMigration: ["care-execution:settings:write"],
|
|
397
|
+
caseVariantGrants: ["care-execution:settings:write"],
|
|
398
|
+
spaceVariantGrants: null,
|
|
399
|
+
note: ""
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
old: "care-execution:write",
|
|
403
|
+
op: "rename",
|
|
404
|
+
canonical: ["care-execution:domain:write"],
|
|
405
|
+
grantMigration: ["care-execution:domain:write", "care-execution:intake:write"],
|
|
406
|
+
caseVariantGrants: ["care-execution:domain:write", "care-execution:intake:write"],
|
|
407
|
+
spaceVariantGrants: null,
|
|
408
|
+
note: "Regla de clave genérica: lista enumerada. Derivación: Dominio en care-execution-api src/care-execution-routes.ts:1441, 1498, 1542 y 1620; intake en 1669 acepta care-execution:write."
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
old: "care-plan-type:delete",
|
|
412
|
+
op: "rename",
|
|
413
|
+
canonical: ["care-plan:type:delete"],
|
|
414
|
+
grantMigration: ["care-plan:type:delete"],
|
|
415
|
+
caseVariantGrants: ["care-plan:type:delete"],
|
|
416
|
+
spaceVariantGrants: null,
|
|
417
|
+
note: "Derivación: care-plan-api src/care-plan-routes.ts:1431."
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
old: "care-plan-type:read",
|
|
421
|
+
op: "rename",
|
|
422
|
+
canonical: ["care-plan:type:read"],
|
|
423
|
+
grantMigration: ["care-plan:type:read"],
|
|
424
|
+
caseVariantGrants: ["care-plan:type:read"],
|
|
425
|
+
spaceVariantGrants: null,
|
|
426
|
+
note: "Derivación: care-plan-api src/care-plan-routes.ts:1289, 1294 y la conjunción de 1144."
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
old: "care-plan-type:write",
|
|
430
|
+
op: "rename",
|
|
431
|
+
canonical: ["care-plan:type:write"],
|
|
432
|
+
grantMigration: ["care-plan:type:write"],
|
|
433
|
+
caseVariantGrants: ["care-plan:type:write"],
|
|
434
|
+
spaceVariantGrants: null,
|
|
435
|
+
note: "Derivación: care-plan-api src/care-plan-routes.ts:1299, 1327, 1432 y la conjunción de 1356."
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
old: "care-plan:delete",
|
|
439
|
+
op: "rename",
|
|
440
|
+
canonical: ["care-plan:domain:delete"],
|
|
441
|
+
grantMigration: ["care-plan:domain:delete"],
|
|
442
|
+
caseVariantGrants: ["care-plan:domain:delete"],
|
|
443
|
+
spaceVariantGrants: null,
|
|
444
|
+
note: "Derivación: Única comprobación: care-plan-api src/care-plan-routes.ts:1250."
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
old: "care-plan:migration:write",
|
|
448
|
+
op: "keep",
|
|
449
|
+
canonical: ["care-plan:migration:write"],
|
|
450
|
+
grantMigration: ["care-plan:migration:write"],
|
|
451
|
+
caseVariantGrants: ["care-plan:migration:write"],
|
|
452
|
+
spaceVariantGrants: null,
|
|
453
|
+
note: ""
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
old: "care-plan:read",
|
|
457
|
+
op: "rename",
|
|
458
|
+
canonical: ["care-plan:domain:read"],
|
|
459
|
+
grantMigration: ["care-plan:domain:read", "care-plan:settings:read"],
|
|
460
|
+
caseVariantGrants: ["care-plan:domain:read", "care-plan:settings:read"],
|
|
461
|
+
spaceVariantGrants: null,
|
|
462
|
+
note: "Regla de clave genérica: lista enumerada. Derivación: care-plan-api src/care-plan-routes.ts:1012-1089 y settings:read en 973, única comprobación de settings:read, que acepta care-plan:read."
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
old: "care-plan:settings:read",
|
|
466
|
+
op: "keep",
|
|
467
|
+
canonical: ["care-plan:settings:read"],
|
|
468
|
+
grantMigration: ["care-plan:settings:read"],
|
|
469
|
+
caseVariantGrants: ["care-plan:settings:read"],
|
|
470
|
+
spaceVariantGrants: null,
|
|
471
|
+
note: ""
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
old: "care-plan:settings:write",
|
|
475
|
+
op: "keep",
|
|
476
|
+
canonical: ["care-plan:settings:write"],
|
|
477
|
+
grantMigration: ["care-plan:settings:write"],
|
|
478
|
+
caseVariantGrants: ["care-plan:settings:write"],
|
|
479
|
+
spaceVariantGrants: null,
|
|
480
|
+
note: ""
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
old: "care-plan:write",
|
|
484
|
+
op: "rename",
|
|
485
|
+
canonical: ["care-plan:domain:write"],
|
|
486
|
+
grantMigration: ["care-plan:domain:write"],
|
|
487
|
+
caseVariantGrants: ["care-plan:domain:write"],
|
|
488
|
+
spaceVariantGrants: null,
|
|
489
|
+
note: "Regla de clave genérica: lista enumerada. Grants corregidos respecto del mapa (care-plan:domain:write, care-plan:type:read, care-plan:type:write) para conservar el acceso efectivo. Derivación: care-plan-api src/care-plan-routes.ts:1094, 1119, 1182, 1222, 1236 y 1267. En 1144 y 1356 es una conjunción (requireAllPermissions, 584-592), no una alternativa; type:read (1289, 1294) y type:write (1299, 1327, 1432) no aceptan care-plan:write. Se quitan type:read y type:write de la regla del mapa porque ampliaban acceso."
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
old: "cases:delete",
|
|
493
|
+
op: "rename",
|
|
494
|
+
canonical: ["cases:domain:delete"],
|
|
495
|
+
grantMigration: ["cases:domain:delete"],
|
|
496
|
+
caseVariantGrants: ["cases:domain:delete"],
|
|
497
|
+
spaceVariantGrants: null,
|
|
498
|
+
note: "Derivación: cases-api src/case-routes.ts:1086, 1157 y 1163."
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
old: "cases:fees:read",
|
|
502
|
+
op: "keep",
|
|
503
|
+
canonical: ["cases:fees:read"],
|
|
504
|
+
grantMigration: ["cases:fees:read"],
|
|
505
|
+
caseVariantGrants: ["cases:fees:read"],
|
|
506
|
+
spaceVariantGrants: null,
|
|
507
|
+
note: ""
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
old: "cases:read",
|
|
511
|
+
op: "rename",
|
|
512
|
+
canonical: ["cases:domain:read"],
|
|
513
|
+
grantMigration: ["cases:domain:read", "cases:fees:read"],
|
|
514
|
+
caseVariantGrants: ["cases:domain:read", "cases:fees:read"],
|
|
515
|
+
spaceVariantGrants: null,
|
|
516
|
+
note: "Regla de clave genérica: cobertura total del servicio, migrada a la lista enumerada de sus claves (sin comodín). Forma comodín vieja enumerada a claves explícitas: cases:*:read → 2. Derivación: cases-api src/case-routes.ts:981-1031 y 1173-1183; fees:read en 1188, única comprobación de fees:read, acepta cases:read."
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
old: "cases:write",
|
|
520
|
+
op: "rename",
|
|
521
|
+
canonical: ["cases:domain:write"],
|
|
522
|
+
grantMigration: ["cases:domain:write"],
|
|
523
|
+
caseVariantGrants: ["cases:domain:write"],
|
|
524
|
+
spaceVariantGrants: null,
|
|
525
|
+
note: "Derivación: cases-api src/case-routes.ts:1036-1207 (solo cases:write)."
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
old: "clinical-organization:delete",
|
|
529
|
+
op: "rename",
|
|
530
|
+
canonical: ["clinical-organization:domain:delete"],
|
|
531
|
+
grantMigration: ["clinical-organization:domain:delete"],
|
|
532
|
+
caseVariantGrants: ["clinical-organization:domain:delete"],
|
|
533
|
+
spaceVariantGrants: null,
|
|
534
|
+
note: ""
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
old: "clinical-organization:read",
|
|
538
|
+
op: "rename",
|
|
539
|
+
canonical: ["clinical-organization:domain:read"],
|
|
540
|
+
grantMigration: ["clinical-organization:domain:read"],
|
|
541
|
+
caseVariantGrants: ["clinical-organization:domain:read"],
|
|
542
|
+
spaceVariantGrants: null,
|
|
543
|
+
note: ""
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
old: "clinical-organization:write",
|
|
547
|
+
op: "rename",
|
|
548
|
+
canonical: ["clinical-organization:domain:write"],
|
|
549
|
+
grantMigration: ["clinical-organization:domain:write"],
|
|
550
|
+
caseVariantGrants: ["clinical-organization:domain:write"],
|
|
551
|
+
spaceVariantGrants: null,
|
|
552
|
+
note: ""
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
old: "clinical-record:delete",
|
|
556
|
+
op: "rename",
|
|
557
|
+
canonical: ["clinical-record:domain:delete"],
|
|
558
|
+
grantMigration: ["clinical-record:domain:delete"],
|
|
559
|
+
caseVariantGrants: ["clinical-record:domain:delete"],
|
|
560
|
+
spaceVariantGrants: null,
|
|
561
|
+
note: ""
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
old: "clinical-record:read",
|
|
565
|
+
op: "rename",
|
|
566
|
+
canonical: ["clinical-record:domain:read"],
|
|
567
|
+
grantMigration: ["clinical-record:domain:read"],
|
|
568
|
+
caseVariantGrants: ["clinical-record:domain:read"],
|
|
569
|
+
spaceVariantGrants: null,
|
|
570
|
+
note: ""
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
old: "clinical-record:report-snapshot:read",
|
|
574
|
+
op: "keep",
|
|
575
|
+
canonical: ["clinical-record:report-snapshot:read"],
|
|
576
|
+
grantMigration: ["clinical-record:report-snapshot:read"],
|
|
577
|
+
caseVariantGrants: ["clinical-record:report-snapshot:read"],
|
|
578
|
+
spaceVariantGrants: null,
|
|
579
|
+
note: ""
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
old: "clinical-record:settings:read",
|
|
583
|
+
op: "keep",
|
|
584
|
+
canonical: ["clinical-record:settings:read"],
|
|
585
|
+
grantMigration: ["clinical-record:settings:read"],
|
|
586
|
+
caseVariantGrants: ["clinical-record:settings:read"],
|
|
587
|
+
spaceVariantGrants: null,
|
|
588
|
+
note: ""
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
old: "clinical-record:settings:write",
|
|
592
|
+
op: "keep",
|
|
593
|
+
canonical: ["clinical-record:settings:write"],
|
|
594
|
+
grantMigration: ["clinical-record:settings:write"],
|
|
595
|
+
caseVariantGrants: ["clinical-record:settings:write"],
|
|
596
|
+
spaceVariantGrants: null,
|
|
597
|
+
note: ""
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
old: "clinical-record:write",
|
|
601
|
+
op: "rename",
|
|
602
|
+
canonical: ["clinical-record:domain:write"],
|
|
603
|
+
grantMigration: ["clinical-record:domain:write"],
|
|
604
|
+
caseVariantGrants: ["clinical-record:domain:write"],
|
|
605
|
+
spaceVariantGrants: null,
|
|
606
|
+
note: ""
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
old: "clinical-settings:write",
|
|
610
|
+
op: "merge",
|
|
611
|
+
canonical: ["access:tenant-profile:write"],
|
|
612
|
+
grantMigration: ["access:tenant-profile:write"],
|
|
613
|
+
caseVariantGrants: null,
|
|
614
|
+
spaceVariantGrants: null,
|
|
615
|
+
note: "alternativa en el mismo punto de control (settings-domain.ts:600). Destino cambiado por decisión del propietario 2026-09-29 respecto del mapa (merge a access:settings:write). Derivación: El código viejo la aceptaba solo en la escritura de ajustes, junto con access-api:settings:write y por includes literal (access-api src/settings-domain.ts:598-604; 602-609 en origin/dev 09379a9), y no en el perfil del tenant (tenant-profile-domain.ts:229-236). Los parámetros generales y clínicos pasan a tenantProfile (Access PR #87) y los edita el admin del tenant del cliente con access:tenant-profile:write, su único destino; access:settings:write queda solo para plataforma (en el perfil del tenant, locale.country y active). Cambio de acceso declarado: deja de cambiar esos dos campos reservados a PEGASI y pasa a editar el perfil del tenant. Variante en mayúsculas: a unknown, su comprobación era literal (access-api src/settings-domain.ts:599-600 (includes literal))."
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
old: "collaboration:channel-config:delete",
|
|
619
|
+
op: "keep",
|
|
620
|
+
canonical: ["collaboration:channel-config:delete"],
|
|
621
|
+
grantMigration: ["collaboration:channel-config:delete"],
|
|
622
|
+
caseVariantGrants: ["collaboration:channel-config:delete"],
|
|
623
|
+
spaceVariantGrants: null,
|
|
624
|
+
note: ""
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
old: "collaboration:channel-config:read",
|
|
628
|
+
op: "keep",
|
|
629
|
+
canonical: ["collaboration:channel-config:read"],
|
|
630
|
+
grantMigration: ["collaboration:channel-config:read"],
|
|
631
|
+
caseVariantGrants: ["collaboration:channel-config:read"],
|
|
632
|
+
spaceVariantGrants: null,
|
|
633
|
+
note: ""
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
old: "collaboration:channel-config:write",
|
|
637
|
+
op: "keep",
|
|
638
|
+
canonical: ["collaboration:channel-config:write"],
|
|
639
|
+
grantMigration: ["collaboration:channel-config:write"],
|
|
640
|
+
caseVariantGrants: ["collaboration:channel-config:write"],
|
|
641
|
+
spaceVariantGrants: null,
|
|
642
|
+
note: ""
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
old: "collaboration:conversation:delete",
|
|
646
|
+
op: "keep",
|
|
647
|
+
canonical: ["collaboration:conversation:delete"],
|
|
648
|
+
grantMigration: ["collaboration:conversation:delete"],
|
|
649
|
+
caseVariantGrants: ["collaboration:conversation:delete"],
|
|
650
|
+
spaceVariantGrants: null,
|
|
651
|
+
note: ""
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
old: "collaboration:conversation:moderate",
|
|
655
|
+
op: "keep",
|
|
656
|
+
canonical: ["collaboration:conversation:moderate"],
|
|
657
|
+
grantMigration: ["collaboration:conversation:moderate"],
|
|
658
|
+
caseVariantGrants: ["collaboration:conversation:moderate"],
|
|
659
|
+
spaceVariantGrants: null,
|
|
660
|
+
note: ""
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
old: "collaboration:conversation:read",
|
|
664
|
+
op: "keep",
|
|
665
|
+
canonical: ["collaboration:conversation:read"],
|
|
666
|
+
grantMigration: ["collaboration:conversation:read"],
|
|
667
|
+
caseVariantGrants: ["collaboration:conversation:read"],
|
|
668
|
+
spaceVariantGrants: null,
|
|
669
|
+
note: ""
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
old: "collaboration:conversation:write",
|
|
673
|
+
op: "keep",
|
|
674
|
+
canonical: ["collaboration:conversation:write"],
|
|
675
|
+
grantMigration: ["collaboration:conversation:write"],
|
|
676
|
+
caseVariantGrants: ["collaboration:conversation:write"],
|
|
677
|
+
spaceVariantGrants: null,
|
|
678
|
+
note: ""
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
old: "collaboration:delete",
|
|
682
|
+
op: "rename",
|
|
683
|
+
canonical: ["collaboration:domain:delete"],
|
|
684
|
+
grantMigration: ["collaboration:channel-config:delete", "collaboration:conversation:delete", "collaboration:delivery-attempt:delete", "collaboration:domain:delete", "collaboration:job:delete", "collaboration:message:delete", "collaboration:provider-event:delete", "collaboration:read-receipt:delete", "collaboration:template:delete"],
|
|
685
|
+
caseVariantGrants: ["collaboration:channel-config:delete", "collaboration:conversation:delete", "collaboration:delivery-attempt:delete", "collaboration:domain:delete", "collaboration:job:delete", "collaboration:message:delete", "collaboration:provider-event:delete", "collaboration:read-receipt:delete", "collaboration:template:delete"],
|
|
686
|
+
spaceVariantGrants: null,
|
|
687
|
+
note: "Regla de clave genérica: cobertura total del servicio, migrada a la lista enumerada de sus claves (sin comodín). Forma comodín vieja enumerada a claves explícitas: collaboration:*:delete → 9. Derivación: Plantilla genérica|granular de collaboration-api src/collaboration-routes.ts:115-121 para todos los recursos: cubre todas las claves delete no exactas."
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
old: "collaboration:delivery-attempt:delete",
|
|
691
|
+
op: "keep",
|
|
692
|
+
canonical: ["collaboration:delivery-attempt:delete"],
|
|
693
|
+
grantMigration: ["collaboration:delivery-attempt:delete"],
|
|
694
|
+
caseVariantGrants: ["collaboration:delivery-attempt:delete"],
|
|
695
|
+
spaceVariantGrants: null,
|
|
696
|
+
note: ""
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
old: "collaboration:delivery-attempt:read",
|
|
700
|
+
op: "keep",
|
|
701
|
+
canonical: ["collaboration:delivery-attempt:read"],
|
|
702
|
+
grantMigration: ["collaboration:delivery-attempt:read"],
|
|
703
|
+
caseVariantGrants: ["collaboration:delivery-attempt:read"],
|
|
704
|
+
spaceVariantGrants: null,
|
|
705
|
+
note: ""
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
old: "collaboration:delivery-attempt:write",
|
|
709
|
+
op: "keep",
|
|
710
|
+
canonical: ["collaboration:delivery-attempt:write"],
|
|
711
|
+
grantMigration: ["collaboration:delivery-attempt:write"],
|
|
712
|
+
caseVariantGrants: ["collaboration:delivery-attempt:write"],
|
|
713
|
+
spaceVariantGrants: null,
|
|
714
|
+
note: ""
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
old: "collaboration:job:delete",
|
|
718
|
+
op: "keep",
|
|
719
|
+
canonical: ["collaboration:job:delete"],
|
|
720
|
+
grantMigration: ["collaboration:job:delete"],
|
|
721
|
+
caseVariantGrants: ["collaboration:job:delete"],
|
|
722
|
+
spaceVariantGrants: null,
|
|
723
|
+
note: ""
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
old: "collaboration:job:read",
|
|
727
|
+
op: "keep",
|
|
728
|
+
canonical: ["collaboration:job:read"],
|
|
729
|
+
grantMigration: ["collaboration:job:read"],
|
|
730
|
+
caseVariantGrants: ["collaboration:job:read"],
|
|
731
|
+
spaceVariantGrants: null,
|
|
732
|
+
note: ""
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
old: "collaboration:job:write",
|
|
736
|
+
op: "keep",
|
|
737
|
+
canonical: ["collaboration:job:write"],
|
|
738
|
+
grantMigration: ["collaboration:job:write"],
|
|
739
|
+
caseVariantGrants: ["collaboration:job:write"],
|
|
740
|
+
spaceVariantGrants: null,
|
|
741
|
+
note: ""
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
old: "collaboration:message:delete",
|
|
745
|
+
op: "keep",
|
|
746
|
+
canonical: ["collaboration:message:delete"],
|
|
747
|
+
grantMigration: ["collaboration:message:delete"],
|
|
748
|
+
caseVariantGrants: ["collaboration:message:delete"],
|
|
749
|
+
spaceVariantGrants: null,
|
|
750
|
+
note: ""
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
old: "collaboration:message:read",
|
|
754
|
+
op: "keep",
|
|
755
|
+
canonical: ["collaboration:message:read"],
|
|
756
|
+
grantMigration: ["collaboration:message:read"],
|
|
757
|
+
caseVariantGrants: ["collaboration:message:read"],
|
|
758
|
+
spaceVariantGrants: null,
|
|
759
|
+
note: ""
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
old: "collaboration:message:write",
|
|
763
|
+
op: "keep",
|
|
764
|
+
canonical: ["collaboration:message:write"],
|
|
765
|
+
grantMigration: ["collaboration:message:write"],
|
|
766
|
+
caseVariantGrants: ["collaboration:message:write"],
|
|
767
|
+
spaceVariantGrants: null,
|
|
768
|
+
note: ""
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
old: "collaboration:moderate",
|
|
772
|
+
op: "merge",
|
|
773
|
+
canonical: ["collaboration:conversation:moderate"],
|
|
774
|
+
grantMigration: ["collaboration:conversation:moderate"],
|
|
775
|
+
caseVariantGrants: ["collaboration:conversation:moderate"],
|
|
776
|
+
spaceVariantGrants: null,
|
|
777
|
+
note: "alternativa en collaboration-access.ts:22. Derivación: Alternativa de conversation:moderate en collaboration-api src/collaboration-access.ts:21-23; también abre conversaciones de soporte (25-26), que deben pedir assertAnyPermission con collaboration:conversation:moderate y collaboration:support:read."
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
old: "collaboration:provider-event:delete",
|
|
781
|
+
op: "keep",
|
|
782
|
+
canonical: ["collaboration:provider-event:delete"],
|
|
783
|
+
grantMigration: ["collaboration:provider-event:delete"],
|
|
784
|
+
caseVariantGrants: ["collaboration:provider-event:delete"],
|
|
785
|
+
spaceVariantGrants: null,
|
|
786
|
+
note: ""
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
old: "collaboration:provider-event:read",
|
|
790
|
+
op: "keep",
|
|
791
|
+
canonical: ["collaboration:provider-event:read"],
|
|
792
|
+
grantMigration: ["collaboration:provider-event:read"],
|
|
793
|
+
caseVariantGrants: ["collaboration:provider-event:read"],
|
|
794
|
+
spaceVariantGrants: null,
|
|
795
|
+
note: ""
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
old: "collaboration:provider-event:write",
|
|
799
|
+
op: "keep",
|
|
800
|
+
canonical: ["collaboration:provider-event:write"],
|
|
801
|
+
grantMigration: ["collaboration:provider-event:write"],
|
|
802
|
+
caseVariantGrants: ["collaboration:provider-event:write"],
|
|
803
|
+
spaceVariantGrants: null,
|
|
804
|
+
note: ""
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
old: "collaboration:read",
|
|
808
|
+
op: "rename",
|
|
809
|
+
canonical: ["collaboration:domain:read"],
|
|
810
|
+
grantMigration: ["collaboration:channel-config:read", "collaboration:conversation:read", "collaboration:delivery-attempt:read", "collaboration:domain:read", "collaboration:job:read", "collaboration:message:read", "collaboration:provider-event:read", "collaboration:read-receipt:read", "collaboration:template:read"],
|
|
811
|
+
caseVariantGrants: ["collaboration:channel-config:read", "collaboration:conversation:read", "collaboration:delivery-attempt:read", "collaboration:domain:read", "collaboration:job:read", "collaboration:message:read", "collaboration:provider-event:read", "collaboration:read-receipt:read", "collaboration:template:read"],
|
|
812
|
+
spaceVariantGrants: null,
|
|
813
|
+
note: "Regla de clave genérica: lista enumerada. Derivación: Plantilla de collaboration-api src/collaboration-routes.ts:115-121 y socket (collaboration-socket.ts:57-58, 123); support:read no la acepta (collaboration-access.ts:25-26), por eso es lista y no comodín."
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
old: "collaboration:read-receipt:delete",
|
|
817
|
+
op: "keep",
|
|
818
|
+
canonical: ["collaboration:read-receipt:delete"],
|
|
819
|
+
grantMigration: ["collaboration:read-receipt:delete"],
|
|
820
|
+
caseVariantGrants: ["collaboration:read-receipt:delete"],
|
|
821
|
+
spaceVariantGrants: null,
|
|
822
|
+
note: ""
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
old: "collaboration:read-receipt:read",
|
|
826
|
+
op: "keep",
|
|
827
|
+
canonical: ["collaboration:read-receipt:read"],
|
|
828
|
+
grantMigration: ["collaboration:read-receipt:read"],
|
|
829
|
+
caseVariantGrants: ["collaboration:read-receipt:read"],
|
|
830
|
+
spaceVariantGrants: null,
|
|
831
|
+
note: ""
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
old: "collaboration:read-receipt:write",
|
|
835
|
+
op: "keep",
|
|
836
|
+
canonical: ["collaboration:read-receipt:write"],
|
|
837
|
+
grantMigration: ["collaboration:read-receipt:write"],
|
|
838
|
+
caseVariantGrants: ["collaboration:read-receipt:write"],
|
|
839
|
+
spaceVariantGrants: null,
|
|
840
|
+
note: ""
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
old: "collaboration:support:read",
|
|
844
|
+
op: "keep",
|
|
845
|
+
canonical: ["collaboration:support:read"],
|
|
846
|
+
grantMigration: ["collaboration:support:read"],
|
|
847
|
+
caseVariantGrants: ["collaboration:support:read"],
|
|
848
|
+
spaceVariantGrants: null,
|
|
849
|
+
note: ""
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
old: "collaboration:template:delete",
|
|
853
|
+
op: "keep",
|
|
854
|
+
canonical: ["collaboration:template:delete"],
|
|
855
|
+
grantMigration: ["collaboration:template:delete"],
|
|
856
|
+
caseVariantGrants: ["collaboration:template:delete"],
|
|
857
|
+
spaceVariantGrants: null,
|
|
858
|
+
note: ""
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
old: "collaboration:template:read",
|
|
862
|
+
op: "keep",
|
|
863
|
+
canonical: ["collaboration:template:read"],
|
|
864
|
+
grantMigration: ["collaboration:template:read"],
|
|
865
|
+
caseVariantGrants: ["collaboration:template:read"],
|
|
866
|
+
spaceVariantGrants: null,
|
|
867
|
+
note: ""
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
old: "collaboration:template:write",
|
|
871
|
+
op: "keep",
|
|
872
|
+
canonical: ["collaboration:template:write"],
|
|
873
|
+
grantMigration: ["collaboration:template:write"],
|
|
874
|
+
caseVariantGrants: ["collaboration:template:write"],
|
|
875
|
+
spaceVariantGrants: null,
|
|
876
|
+
note: ""
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
old: "collaboration:write",
|
|
880
|
+
op: "rename",
|
|
881
|
+
canonical: ["collaboration:domain:write"],
|
|
882
|
+
grantMigration: ["collaboration:channel-config:write", "collaboration:conversation:write", "collaboration:delivery-attempt:write", "collaboration:domain:write", "collaboration:job:write", "collaboration:message:write", "collaboration:provider-event:write", "collaboration:read-receipt:write", "collaboration:template:write"],
|
|
883
|
+
caseVariantGrants: ["collaboration:channel-config:write", "collaboration:conversation:write", "collaboration:delivery-attempt:write", "collaboration:domain:write", "collaboration:job:write", "collaboration:message:write", "collaboration:provider-event:write", "collaboration:read-receipt:write", "collaboration:template:write"],
|
|
884
|
+
spaceVariantGrants: null,
|
|
885
|
+
note: "Regla de clave genérica: cobertura total del servicio, migrada a la lista enumerada de sus claves (sin comodín). Forma comodín vieja enumerada a claves explícitas: collaboration:*:write → 8. Grants corregidos respecto del mapa (collaboration:*:write) para conservar el acceso efectivo. Derivación: Plantilla de collaboration-api src/collaboration-routes.ts:115-121 y socket (collaboration-socket.ts:57-62, 147) para todos los recursos, incluido provider-event; collaboration:provider-event:write (servicio a servicio) no la cubría la forma vieja collaboration:*:write y se concede explícita."
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
old: "commercial-core:read",
|
|
889
|
+
op: "rename",
|
|
890
|
+
canonical: ["commercial-core:domain:read"],
|
|
891
|
+
grantMigration: ["commercial-core:domain:read"],
|
|
892
|
+
caseVariantGrants: null,
|
|
893
|
+
spaceVariantGrants: null,
|
|
894
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (commercial-core-api src/seed-auth.ts:201-211, 250-253 (includes))."
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
old: "commercial-core:write",
|
|
898
|
+
op: "rename",
|
|
899
|
+
canonical: ["commercial-core:domain:write"],
|
|
900
|
+
grantMigration: ["commercial-core:domain:read", "commercial-core:domain:write"],
|
|
901
|
+
caseVariantGrants: null,
|
|
902
|
+
spaceVariantGrants: null,
|
|
903
|
+
note: "Grants corregidos respecto del mapa (commercial-core:domain:write) para conservar el acceso efectivo. Derivación: hasCommercialRead acepta commercial-core:write (commercial-core-api src/seed-auth.ts:201-206); hasCommercialWrite en 209-211. Variante en mayúsculas: a unknown, su comprobación era literal (commercial-core-api src/seed-auth.ts:201-211, 250-253 (includes))."
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
old: "commercial-snapshot:project",
|
|
907
|
+
op: "rename",
|
|
908
|
+
canonical: ["access:commercial-snapshot:write"],
|
|
909
|
+
grantMigration: ["access:commercial-snapshot:write"],
|
|
910
|
+
caseVariantGrants: null,
|
|
911
|
+
spaceVariantGrants: null,
|
|
912
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (access-api src/commercial-snapshot-routes.ts:168 (includes literal))."
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
old: "commercial-usage:commit",
|
|
916
|
+
op: "rename",
|
|
917
|
+
canonical: ["commercial-core:usage-commit:write"],
|
|
918
|
+
grantMigration: ["commercial-core:usage-commit:write"],
|
|
919
|
+
caseVariantGrants: null,
|
|
920
|
+
spaceVariantGrants: null,
|
|
921
|
+
note: "Decisión pendiente del mapa resuelta: la fusión de reserve/commit/release en usage:write se rechazó porque ampliaba acceso; cada acción tiene su clave estrecha. Corregida respecto del mapa (merge a commercial-core:usage:write) porque la fusión cambiaba el acceso. Grants corregidos respecto del mapa (commercial-core:usage:write) para conservar el acceso efectivo. Derivación: Igualdad exacta solo en la confirmación de reservas (commercial-core-api src/usage-routes.ts:117-120, requireExactPermission). El mapa fundía reserve/commit/release en commercial-core:usage:write, lo que daba release a quien solo tenía reserve y commit (el token de communications, campaign-communication.ts:274): migra a su propia clave estrecha. Variante en mayúsculas: a unknown, su comprobación era literal (commercial-core-api src/seed-auth.ts:201-211, 250-253 (includes))."
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
old: "commercial-usage:release",
|
|
925
|
+
op: "rename",
|
|
926
|
+
canonical: ["commercial-core:usage-release:write"],
|
|
927
|
+
grantMigration: ["commercial-core:usage-release:write"],
|
|
928
|
+
caseVariantGrants: null,
|
|
929
|
+
spaceVariantGrants: null,
|
|
930
|
+
note: "Decisión pendiente del mapa resuelta: la fusión de reserve/commit/release en usage:write se rechazó porque ampliaba acceso; cada acción tiene su clave estrecha. Corregida respecto del mapa (merge a commercial-core:usage:write) porque la fusión cambiaba el acceso. Grants corregidos respecto del mapa (commercial-core:usage:write) para conservar el acceso efectivo. Derivación: Igualdad exacta solo en la liberación de reservas (commercial-core-api src/usage-routes.ts:117-120, requireExactPermission). El mapa la fundía con reserve y commit en commercial-core:usage:write y ampliaba acceso: migra a su propia clave estrecha. Variante en mayúsculas: a unknown, su comprobación era literal (commercial-core-api src/seed-auth.ts:201-211, 250-253 (includes))."
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
old: "commercial-usage:reserve",
|
|
934
|
+
op: "rename",
|
|
935
|
+
canonical: ["commercial-core:usage:write"],
|
|
936
|
+
grantMigration: ["commercial-core:usage:write"],
|
|
937
|
+
caseVariantGrants: null,
|
|
938
|
+
spaceVariantGrants: null,
|
|
939
|
+
note: "Decisión pendiente del mapa resuelta: la fusión de reserve/commit/release en usage:write se rechazó porque ampliaba acceso; reserve conserva usage:write y commit y release tienen su clave estrecha. Corregida respecto del mapa (merge a commercial-core:usage:write) porque la fusión cambiaba el acceso. Derivación: Igualdad exacta solo en la creación de reservas (commercial-core-api src/usage-routes.ts:111, requireExactPermission). Conserva la clave canónica del mapa, commercial-core:usage:write, que ya no recibe commit ni release. Variante en mayúsculas: a unknown, su comprobación era literal (commercial-core-api src/seed-auth.ts:201-211, 250-253 (includes))."
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
old: "communications:channel-config:delete",
|
|
943
|
+
op: "keep",
|
|
944
|
+
canonical: ["communications:channel-config:delete"],
|
|
945
|
+
grantMigration: ["communications:channel-config:delete"],
|
|
946
|
+
caseVariantGrants: ["communications:channel-config:delete"],
|
|
947
|
+
spaceVariantGrants: null,
|
|
948
|
+
note: ""
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
old: "communications:channel-config:read",
|
|
952
|
+
op: "keep",
|
|
953
|
+
canonical: ["communications:channel-config:read"],
|
|
954
|
+
grantMigration: ["communications:channel-config:read"],
|
|
955
|
+
caseVariantGrants: ["communications:channel-config:read"],
|
|
956
|
+
spaceVariantGrants: null,
|
|
957
|
+
note: ""
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
old: "communications:channel-config:write",
|
|
961
|
+
op: "keep",
|
|
962
|
+
canonical: ["communications:channel-config:write"],
|
|
963
|
+
grantMigration: ["communications:channel-config:write"],
|
|
964
|
+
caseVariantGrants: ["communications:channel-config:write"],
|
|
965
|
+
spaceVariantGrants: null,
|
|
966
|
+
note: ""
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
old: "communications:delete",
|
|
970
|
+
op: "rename",
|
|
971
|
+
canonical: ["communications:domain:delete"],
|
|
972
|
+
grantMigration: ["communications:channel-config:delete", "communications:delivery-attempt:delete", "communications:domain:delete", "communications:job:delete", "communications:provider-event:delete", "communications:template:delete"],
|
|
973
|
+
caseVariantGrants: ["communications:channel-config:delete", "communications:delivery-attempt:delete", "communications:domain:delete", "communications:job:delete", "communications:provider-event:delete", "communications:template:delete"],
|
|
974
|
+
spaceVariantGrants: null,
|
|
975
|
+
note: "Regla de clave genérica: cobertura total del servicio, migrada a la lista enumerada de sus claves (sin comodín). Forma comodín vieja enumerada a claves explícitas: communications:*:delete → 6. Derivación: Plantilla genérica|granular de communications-api src/communication-routes.ts:134-144 para template, channel-config, job, delivery-attempt y provider-event (communication-capabilities.ts:156)."
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
old: "communications:delivery-attempt:delete",
|
|
979
|
+
op: "keep",
|
|
980
|
+
canonical: ["communications:delivery-attempt:delete"],
|
|
981
|
+
grantMigration: ["communications:delivery-attempt:delete"],
|
|
982
|
+
caseVariantGrants: ["communications:delivery-attempt:delete"],
|
|
983
|
+
spaceVariantGrants: null,
|
|
984
|
+
note: ""
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
old: "communications:delivery-attempt:read",
|
|
988
|
+
op: "keep",
|
|
989
|
+
canonical: ["communications:delivery-attempt:read"],
|
|
990
|
+
grantMigration: ["communications:delivery-attempt:read"],
|
|
991
|
+
caseVariantGrants: ["communications:delivery-attempt:read"],
|
|
992
|
+
spaceVariantGrants: null,
|
|
993
|
+
note: ""
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
old: "communications:delivery-attempt:write",
|
|
997
|
+
op: "keep",
|
|
998
|
+
canonical: ["communications:delivery-attempt:write"],
|
|
999
|
+
grantMigration: ["communications:delivery-attempt:write"],
|
|
1000
|
+
caseVariantGrants: ["communications:delivery-attempt:write"],
|
|
1001
|
+
spaceVariantGrants: null,
|
|
1002
|
+
note: ""
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
old: "communications:job:delete",
|
|
1006
|
+
op: "keep",
|
|
1007
|
+
canonical: ["communications:job:delete"],
|
|
1008
|
+
grantMigration: ["communications:job:delete"],
|
|
1009
|
+
caseVariantGrants: ["communications:job:delete"],
|
|
1010
|
+
spaceVariantGrants: null,
|
|
1011
|
+
note: ""
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
old: "communications:job:read",
|
|
1015
|
+
op: "keep",
|
|
1016
|
+
canonical: ["communications:job:read"],
|
|
1017
|
+
grantMigration: ["communications:job:read"],
|
|
1018
|
+
caseVariantGrants: ["communications:job:read"],
|
|
1019
|
+
spaceVariantGrants: null,
|
|
1020
|
+
note: ""
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
old: "communications:job:write",
|
|
1024
|
+
op: "keep",
|
|
1025
|
+
canonical: ["communications:job:write"],
|
|
1026
|
+
grantMigration: ["communications:job:write"],
|
|
1027
|
+
caseVariantGrants: ["communications:job:write"],
|
|
1028
|
+
spaceVariantGrants: null,
|
|
1029
|
+
note: ""
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
old: "communications:provider-event:delete",
|
|
1033
|
+
op: "keep",
|
|
1034
|
+
canonical: ["communications:provider-event:delete"],
|
|
1035
|
+
grantMigration: ["communications:provider-event:delete"],
|
|
1036
|
+
caseVariantGrants: ["communications:provider-event:delete"],
|
|
1037
|
+
spaceVariantGrants: null,
|
|
1038
|
+
note: ""
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
old: "communications:provider-event:read",
|
|
1042
|
+
op: "keep",
|
|
1043
|
+
canonical: ["communications:provider-event:read"],
|
|
1044
|
+
grantMigration: ["communications:provider-event:read"],
|
|
1045
|
+
caseVariantGrants: ["communications:provider-event:read"],
|
|
1046
|
+
spaceVariantGrants: null,
|
|
1047
|
+
note: ""
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
old: "communications:provider-event:write",
|
|
1051
|
+
op: "keep",
|
|
1052
|
+
canonical: ["communications:provider-event:write"],
|
|
1053
|
+
grantMigration: ["communications:provider-event:write"],
|
|
1054
|
+
caseVariantGrants: ["communications:provider-event:write"],
|
|
1055
|
+
spaceVariantGrants: null,
|
|
1056
|
+
note: ""
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
old: "communications:read",
|
|
1060
|
+
op: "rename",
|
|
1061
|
+
canonical: ["communications:domain:read"],
|
|
1062
|
+
grantMigration: ["communications:channel-config:read", "communications:delivery-attempt:read", "communications:domain:read", "communications:job:read", "communications:provider-event:read", "communications:template:read"],
|
|
1063
|
+
caseVariantGrants: ["communications:channel-config:read", "communications:delivery-attempt:read", "communications:domain:read", "communications:job:read", "communications:provider-event:read", "communications:template:read"],
|
|
1064
|
+
spaceVariantGrants: null,
|
|
1065
|
+
note: "Regla de clave genérica: cobertura total del servicio, migrada a la lista enumerada de sus claves (sin comodín). Forma comodín vieja enumerada a claves explícitas: communications:*:read → 6. Derivación: Plantilla genérica|granular de communications-api src/communication-routes.ts:134-144 para template, channel-config, job, delivery-attempt y provider-event (communication-capabilities.ts:156)."
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
old: "communications:request:create",
|
|
1069
|
+
op: "rename",
|
|
1070
|
+
canonical: ["communications:request:write"],
|
|
1071
|
+
grantMigration: ["communications:request:write"],
|
|
1072
|
+
caseVariantGrants: ["communications:request:write"],
|
|
1073
|
+
spaceVariantGrants: null,
|
|
1074
|
+
note: "valor también fijado en gitops: COMMUNICATION_COMMAND_PERMISSION."
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
old: "communications:template:delete",
|
|
1078
|
+
op: "keep",
|
|
1079
|
+
canonical: ["communications:template:delete"],
|
|
1080
|
+
grantMigration: ["communications:template:delete"],
|
|
1081
|
+
caseVariantGrants: ["communications:template:delete"],
|
|
1082
|
+
spaceVariantGrants: null,
|
|
1083
|
+
note: ""
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
old: "communications:template:read",
|
|
1087
|
+
op: "keep",
|
|
1088
|
+
canonical: ["communications:template:read"],
|
|
1089
|
+
grantMigration: ["communications:template:read"],
|
|
1090
|
+
caseVariantGrants: ["communications:template:read"],
|
|
1091
|
+
spaceVariantGrants: null,
|
|
1092
|
+
note: ""
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
old: "communications:template:write",
|
|
1096
|
+
op: "keep",
|
|
1097
|
+
canonical: ["communications:template:write"],
|
|
1098
|
+
grantMigration: ["communications:template:write"],
|
|
1099
|
+
caseVariantGrants: ["communications:template:write"],
|
|
1100
|
+
spaceVariantGrants: null,
|
|
1101
|
+
note: ""
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
old: "communications:write",
|
|
1105
|
+
op: "rename",
|
|
1106
|
+
canonical: ["communications:domain:write"],
|
|
1107
|
+
grantMigration: ["communications:channel-config:write", "communications:delivery-attempt:write", "communications:domain:write", "communications:job:write", "communications:provider-event:write", "communications:template:write"],
|
|
1108
|
+
caseVariantGrants: ["communications:channel-config:write", "communications:delivery-attempt:write", "communications:domain:write", "communications:job:write", "communications:provider-event:write", "communications:template:write"],
|
|
1109
|
+
spaceVariantGrants: null,
|
|
1110
|
+
note: "Regla de clave genérica: lista enumerada. Derivación: Plantilla de communications-api src/communication-routes.ts:134-144 para los cinco recursos; request:write (seed-config.ts:921) no la acepta, por eso es lista."
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
old: "conversations:case:assign",
|
|
1114
|
+
op: "keep",
|
|
1115
|
+
canonical: ["conversations:case:assign"],
|
|
1116
|
+
grantMigration: ["conversations:case:assign"],
|
|
1117
|
+
caseVariantGrants: null,
|
|
1118
|
+
spaceVariantGrants: null,
|
|
1119
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (conversations-api src/seed-auth.ts:48-51, mongo-patient-link-store.ts:73 (includes))."
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
old: "conversations:case:escalate",
|
|
1123
|
+
op: "rename",
|
|
1124
|
+
canonical: ["conversations:case-escalation:write"],
|
|
1125
|
+
grantMigration: ["conversations:case-escalation:write"],
|
|
1126
|
+
caseVariantGrants: null,
|
|
1127
|
+
spaceVariantGrants: null,
|
|
1128
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (conversations-api src/seed-auth.ts:48-51, mongo-patient-link-store.ts:73 (includes))."
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
old: "conversations:case:read",
|
|
1132
|
+
op: "keep",
|
|
1133
|
+
canonical: ["conversations:case:read"],
|
|
1134
|
+
grantMigration: ["conversations:case:read"],
|
|
1135
|
+
caseVariantGrants: null,
|
|
1136
|
+
spaceVariantGrants: null,
|
|
1137
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (conversations-api src/seed-auth.ts:48-51, mongo-patient-link-store.ts:73 (includes))."
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
old: "conversations:case:write",
|
|
1141
|
+
op: "keep",
|
|
1142
|
+
canonical: ["conversations:case:write"],
|
|
1143
|
+
grantMigration: ["conversations:case:write"],
|
|
1144
|
+
caseVariantGrants: null,
|
|
1145
|
+
spaceVariantGrants: null,
|
|
1146
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (conversations-api src/seed-auth.ts:48-51, mongo-patient-link-store.ts:73 (includes))."
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
old: "conversations:contact:identity:read",
|
|
1150
|
+
op: "rename",
|
|
1151
|
+
canonical: ["conversations:contact-identity:read"],
|
|
1152
|
+
grantMigration: ["conversations:contact-identity:read"],
|
|
1153
|
+
caseVariantGrants: null,
|
|
1154
|
+
spaceVariantGrants: null,
|
|
1155
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (conversations-api src/seed-auth.ts:48-51, mongo-patient-link-store.ts:73 (includes))."
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
old: "conversations:contact:link-patient",
|
|
1159
|
+
op: "rename",
|
|
1160
|
+
canonical: ["conversations:contact-patient-link:write"],
|
|
1161
|
+
grantMigration: ["conversations:contact-patient-link:write"],
|
|
1162
|
+
caseVariantGrants: null,
|
|
1163
|
+
spaceVariantGrants: null,
|
|
1164
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (conversations-api src/seed-auth.ts:48-51, mongo-patient-link-store.ts:73 (includes))."
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
old: "conversations:contact:read",
|
|
1168
|
+
op: "keep",
|
|
1169
|
+
canonical: ["conversations:contact:read"],
|
|
1170
|
+
grantMigration: ["conversations:contact:read"],
|
|
1171
|
+
caseVariantGrants: null,
|
|
1172
|
+
spaceVariantGrants: null,
|
|
1173
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (conversations-api src/seed-auth.ts:48-51, mongo-patient-link-store.ts:73 (includes))."
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
old: "conversations:contact:write",
|
|
1177
|
+
op: "keep",
|
|
1178
|
+
canonical: ["conversations:contact:write"],
|
|
1179
|
+
grantMigration: ["conversations:contact:write"],
|
|
1180
|
+
caseVariantGrants: null,
|
|
1181
|
+
spaceVariantGrants: null,
|
|
1182
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (conversations-api src/seed-auth.ts:48-51, mongo-patient-link-store.ts:73 (includes))."
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
old: "conversations:content:read",
|
|
1186
|
+
op: "keep",
|
|
1187
|
+
canonical: ["conversations:content:read"],
|
|
1188
|
+
grantMigration: ["conversations:content:read"],
|
|
1189
|
+
caseVariantGrants: null,
|
|
1190
|
+
spaceVariantGrants: null,
|
|
1191
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (conversations-api src/seed-auth.ts:48-51, mongo-patient-link-store.ts:73 (includes))."
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
old: "conversations:intent:record",
|
|
1195
|
+
op: "rename",
|
|
1196
|
+
canonical: ["conversations:intent:write"],
|
|
1197
|
+
grantMigration: ["conversations:intent:write"],
|
|
1198
|
+
caseVariantGrants: null,
|
|
1199
|
+
spaceVariantGrants: null,
|
|
1200
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (conversations-api src/seed-auth.ts:48-51, mongo-patient-link-store.ts:73 (includes))."
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
old: "conversations:message:send",
|
|
1204
|
+
op: "rename",
|
|
1205
|
+
canonical: ["conversations:message:write"],
|
|
1206
|
+
grantMigration: ["conversations:message:write"],
|
|
1207
|
+
caseVariantGrants: null,
|
|
1208
|
+
spaceVariantGrants: null,
|
|
1209
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (conversations-api src/seed-auth.ts:48-51, mongo-patient-link-store.ts:73 (includes))."
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
old: "conversations:outcome:record",
|
|
1213
|
+
op: "rename",
|
|
1214
|
+
canonical: ["conversations:outcome:write"],
|
|
1215
|
+
grantMigration: ["conversations:outcome:write"],
|
|
1216
|
+
caseVariantGrants: null,
|
|
1217
|
+
spaceVariantGrants: null,
|
|
1218
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (conversations-api src/seed-auth.ts:48-51, mongo-patient-link-store.ts:73 (includes))."
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
old: "conversations:report:operational",
|
|
1222
|
+
op: "rename",
|
|
1223
|
+
canonical: ["conversations:operational-report:read"],
|
|
1224
|
+
grantMigration: ["conversations:operational-report:read"],
|
|
1225
|
+
caseVariantGrants: null,
|
|
1226
|
+
spaceVariantGrants: null,
|
|
1227
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (conversations-api src/seed-auth.ts:48-51, mongo-patient-link-store.ts:73 (includes))."
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
old: "conversations:report:read",
|
|
1231
|
+
op: "keep",
|
|
1232
|
+
canonical: ["conversations:report:read"],
|
|
1233
|
+
grantMigration: ["conversations:report:read"],
|
|
1234
|
+
caseVariantGrants: null,
|
|
1235
|
+
spaceVariantGrants: null,
|
|
1236
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (conversations-api src/seed-auth.ts:48-51, mongo-patient-link-store.ts:73 (includes))."
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
old: "conversations:timeline:read",
|
|
1240
|
+
op: "keep",
|
|
1241
|
+
canonical: ["conversations:timeline:read"],
|
|
1242
|
+
grantMigration: ["conversations:timeline:read"],
|
|
1243
|
+
caseVariantGrants: null,
|
|
1244
|
+
spaceVariantGrants: null,
|
|
1245
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (conversations-api src/seed-auth.ts:48-51, mongo-patient-link-store.ts:73 (includes))."
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
old: "diagnostic-results:delete",
|
|
1249
|
+
op: "rename",
|
|
1250
|
+
canonical: ["diagnostic-results:domain:delete"],
|
|
1251
|
+
grantMigration: ["diagnostic-results:domain:delete"],
|
|
1252
|
+
caseVariantGrants: null,
|
|
1253
|
+
spaceVariantGrants: null,
|
|
1254
|
+
note: "Derivación: diagnostic-results-api src/diagnostic-report-routes.ts:507 y 513. Variante en mayúsculas: a unknown, su comprobación era literal (diagnostic-results-api src/diagnostic-report-routes.ts:115-117 (includes))."
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
old: "diagnostic-results:read",
|
|
1258
|
+
op: "rename",
|
|
1259
|
+
canonical: ["diagnostic-results:domain:read"],
|
|
1260
|
+
grantMigration: ["diagnostic-results:domain:read", "diagnostic-results:settings:read"],
|
|
1261
|
+
caseVariantGrants: null,
|
|
1262
|
+
spaceVariantGrants: null,
|
|
1263
|
+
note: "Regla de clave genérica: cobertura total del servicio, migrada a la lista enumerada de sus claves (sin comodín). Forma comodín vieja enumerada a claves explícitas: diagnostic-results:*:read → 2. Derivación: diagnostic-results-api src/diagnostic-report-routes.ts:327-435; settings:read en 523, única comprobación de settings:read, acepta diagnostic-results:read. Variante en mayúsculas: a unknown, su comprobación era literal (diagnostic-results-api src/diagnostic-report-routes.ts:115-117 (includes))."
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
old: "diagnostic-results:settings:read",
|
|
1267
|
+
op: "keep",
|
|
1268
|
+
canonical: ["diagnostic-results:settings:read"],
|
|
1269
|
+
grantMigration: ["diagnostic-results:settings:read"],
|
|
1270
|
+
caseVariantGrants: null,
|
|
1271
|
+
spaceVariantGrants: null,
|
|
1272
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (diagnostic-results-api src/diagnostic-report-routes.ts:115-117 (includes))."
|
|
1273
|
+
},
|
|
1274
|
+
{
|
|
1275
|
+
old: "diagnostic-results:settings:write",
|
|
1276
|
+
op: "keep",
|
|
1277
|
+
canonical: ["diagnostic-results:settings:write"],
|
|
1278
|
+
grantMigration: ["diagnostic-results:settings:write"],
|
|
1279
|
+
caseVariantGrants: null,
|
|
1280
|
+
spaceVariantGrants: null,
|
|
1281
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (diagnostic-results-api src/diagnostic-report-routes.ts:115-117 (includes))."
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
old: "diagnostic-results:write",
|
|
1285
|
+
op: "rename",
|
|
1286
|
+
canonical: ["diagnostic-results:domain:write"],
|
|
1287
|
+
grantMigration: ["diagnostic-results:domain:write"],
|
|
1288
|
+
caseVariantGrants: null,
|
|
1289
|
+
spaceVariantGrants: null,
|
|
1290
|
+
note: "Derivación: diagnostic-results-api src/diagnostic-report-routes.ts:421-501. Variante en mayúsculas: a unknown, su comprobación era literal (diagnostic-results-api src/diagnostic-report-routes.ts:115-117 (includes))."
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
old: "engagement:campaign-candidate:delete",
|
|
1294
|
+
op: "keep",
|
|
1295
|
+
canonical: ["engagement:campaign-candidate:delete"],
|
|
1296
|
+
grantMigration: ["engagement:campaign-candidate:delete"],
|
|
1297
|
+
caseVariantGrants: ["engagement:campaign-candidate:delete"],
|
|
1298
|
+
spaceVariantGrants: null,
|
|
1299
|
+
note: ""
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
old: "engagement:campaign-candidate:read",
|
|
1303
|
+
op: "keep",
|
|
1304
|
+
canonical: ["engagement:campaign-candidate:read"],
|
|
1305
|
+
grantMigration: ["engagement:campaign-candidate:read"],
|
|
1306
|
+
caseVariantGrants: ["engagement:campaign-candidate:read"],
|
|
1307
|
+
spaceVariantGrants: null,
|
|
1308
|
+
note: ""
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
old: "engagement:campaign-candidate:write",
|
|
1312
|
+
op: "keep",
|
|
1313
|
+
canonical: ["engagement:campaign-candidate:write"],
|
|
1314
|
+
grantMigration: ["engagement:campaign-candidate:write"],
|
|
1315
|
+
caseVariantGrants: ["engagement:campaign-candidate:write"],
|
|
1316
|
+
spaceVariantGrants: null,
|
|
1317
|
+
note: ""
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
old: "engagement:campaign-run:delete",
|
|
1321
|
+
op: "keep",
|
|
1322
|
+
canonical: ["engagement:campaign-run:delete"],
|
|
1323
|
+
grantMigration: ["engagement:campaign-run:delete"],
|
|
1324
|
+
caseVariantGrants: ["engagement:campaign-run:delete"],
|
|
1325
|
+
spaceVariantGrants: null,
|
|
1326
|
+
note: ""
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
old: "engagement:campaign-run:read",
|
|
1330
|
+
op: "keep",
|
|
1331
|
+
canonical: ["engagement:campaign-run:read"],
|
|
1332
|
+
grantMigration: ["engagement:campaign-run:read"],
|
|
1333
|
+
caseVariantGrants: ["engagement:campaign-run:read"],
|
|
1334
|
+
spaceVariantGrants: null,
|
|
1335
|
+
note: ""
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
old: "engagement:campaign-run:write",
|
|
1339
|
+
op: "keep",
|
|
1340
|
+
canonical: ["engagement:campaign-run:write"],
|
|
1341
|
+
grantMigration: ["engagement:campaign-run:write"],
|
|
1342
|
+
caseVariantGrants: ["engagement:campaign-run:write"],
|
|
1343
|
+
spaceVariantGrants: null,
|
|
1344
|
+
note: ""
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
old: "engagement:campaign:delete",
|
|
1348
|
+
op: "keep",
|
|
1349
|
+
canonical: ["engagement:campaign:delete"],
|
|
1350
|
+
grantMigration: ["engagement:campaign:delete"],
|
|
1351
|
+
caseVariantGrants: ["engagement:campaign:delete"],
|
|
1352
|
+
spaceVariantGrants: null,
|
|
1353
|
+
note: ""
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
old: "engagement:campaign:read",
|
|
1357
|
+
op: "keep",
|
|
1358
|
+
canonical: ["engagement:campaign:read"],
|
|
1359
|
+
grantMigration: ["engagement:campaign:read"],
|
|
1360
|
+
caseVariantGrants: ["engagement:campaign:read"],
|
|
1361
|
+
spaceVariantGrants: null,
|
|
1362
|
+
note: ""
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
old: "engagement:campaign:write",
|
|
1366
|
+
op: "keep",
|
|
1367
|
+
canonical: ["engagement:campaign:write"],
|
|
1368
|
+
grantMigration: ["engagement:campaign:write"],
|
|
1369
|
+
caseVariantGrants: ["engagement:campaign:write"],
|
|
1370
|
+
spaceVariantGrants: null,
|
|
1371
|
+
note: ""
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
old: "engagement:candidate-import:delete",
|
|
1375
|
+
op: "keep",
|
|
1376
|
+
canonical: ["engagement:candidate-import:delete"],
|
|
1377
|
+
grantMigration: ["engagement:candidate-import:delete"],
|
|
1378
|
+
caseVariantGrants: ["engagement:candidate-import:delete"],
|
|
1379
|
+
spaceVariantGrants: null,
|
|
1380
|
+
note: ""
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
old: "engagement:candidate-import:read",
|
|
1384
|
+
op: "keep",
|
|
1385
|
+
canonical: ["engagement:candidate-import:read"],
|
|
1386
|
+
grantMigration: ["engagement:candidate-import:read"],
|
|
1387
|
+
caseVariantGrants: ["engagement:candidate-import:read"],
|
|
1388
|
+
spaceVariantGrants: null,
|
|
1389
|
+
note: ""
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
old: "engagement:candidate-import:write",
|
|
1393
|
+
op: "keep",
|
|
1394
|
+
canonical: ["engagement:candidate-import:write"],
|
|
1395
|
+
grantMigration: ["engagement:candidate-import:write"],
|
|
1396
|
+
caseVariantGrants: ["engagement:candidate-import:write"],
|
|
1397
|
+
spaceVariantGrants: null,
|
|
1398
|
+
note: ""
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
old: "engagement:conversion:delete",
|
|
1402
|
+
op: "keep",
|
|
1403
|
+
canonical: ["engagement:conversion:delete"],
|
|
1404
|
+
grantMigration: ["engagement:conversion:delete"],
|
|
1405
|
+
caseVariantGrants: ["engagement:conversion:delete"],
|
|
1406
|
+
spaceVariantGrants: null,
|
|
1407
|
+
note: ""
|
|
1408
|
+
},
|
|
1409
|
+
{
|
|
1410
|
+
old: "engagement:conversion:read",
|
|
1411
|
+
op: "keep",
|
|
1412
|
+
canonical: ["engagement:conversion:read"],
|
|
1413
|
+
grantMigration: ["engagement:conversion:read"],
|
|
1414
|
+
caseVariantGrants: ["engagement:conversion:read"],
|
|
1415
|
+
spaceVariantGrants: null,
|
|
1416
|
+
note: ""
|
|
1417
|
+
},
|
|
1418
|
+
{
|
|
1419
|
+
old: "engagement:conversion:write",
|
|
1420
|
+
op: "keep",
|
|
1421
|
+
canonical: ["engagement:conversion:write"],
|
|
1422
|
+
grantMigration: ["engagement:conversion:write"],
|
|
1423
|
+
caseVariantGrants: ["engagement:conversion:write"],
|
|
1424
|
+
spaceVariantGrants: null,
|
|
1425
|
+
note: ""
|
|
1426
|
+
},
|
|
1427
|
+
{
|
|
1428
|
+
old: "engagement:delete",
|
|
1429
|
+
op: "rename",
|
|
1430
|
+
canonical: ["engagement:domain:delete"],
|
|
1431
|
+
grantMigration: ["engagement:campaign-candidate:delete", "engagement:campaign-run:delete", "engagement:campaign:delete", "engagement:candidate-import:delete", "engagement:conversion:delete", "engagement:domain:delete", "engagement:patient-campaign:delete"],
|
|
1432
|
+
caseVariantGrants: ["engagement:campaign-candidate:delete", "engagement:campaign-run:delete", "engagement:campaign:delete", "engagement:candidate-import:delete", "engagement:conversion:delete", "engagement:domain:delete", "engagement:patient-campaign:delete"],
|
|
1433
|
+
spaceVariantGrants: null,
|
|
1434
|
+
note: "Regla de clave genérica: cobertura total del servicio, migrada a la lista enumerada de sus claves (sin comodín). Forma comodín vieja enumerada a claves explícitas: engagement:*:delete → 7. Derivación: Plantilla genérica|granular de engagement-api src/engagement-routes.ts:139-149 para todos los recursos."
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
old: "engagement:patient-campaign:delete",
|
|
1438
|
+
op: "keep",
|
|
1439
|
+
canonical: ["engagement:patient-campaign:delete"],
|
|
1440
|
+
grantMigration: ["engagement:patient-campaign:delete"],
|
|
1441
|
+
caseVariantGrants: ["engagement:patient-campaign:delete"],
|
|
1442
|
+
spaceVariantGrants: null,
|
|
1443
|
+
note: ""
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
old: "engagement:patient-campaign:read",
|
|
1447
|
+
op: "keep",
|
|
1448
|
+
canonical: ["engagement:patient-campaign:read"],
|
|
1449
|
+
grantMigration: ["engagement:patient-campaign:read"],
|
|
1450
|
+
caseVariantGrants: ["engagement:patient-campaign:read"],
|
|
1451
|
+
spaceVariantGrants: null,
|
|
1452
|
+
note: ""
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
old: "engagement:patient-campaign:write",
|
|
1456
|
+
op: "keep",
|
|
1457
|
+
canonical: ["engagement:patient-campaign:write"],
|
|
1458
|
+
grantMigration: ["engagement:patient-campaign:write"],
|
|
1459
|
+
caseVariantGrants: ["engagement:patient-campaign:write"],
|
|
1460
|
+
spaceVariantGrants: null,
|
|
1461
|
+
note: ""
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
old: "engagement:read",
|
|
1465
|
+
op: "rename",
|
|
1466
|
+
canonical: ["engagement:domain:read"],
|
|
1467
|
+
grantMigration: ["engagement:campaign-candidate:read", "engagement:campaign-run:read", "engagement:campaign:read", "engagement:candidate-import:read", "engagement:conversion:read", "engagement:domain:read", "engagement:patient-campaign:read"],
|
|
1468
|
+
caseVariantGrants: ["engagement:campaign-candidate:read", "engagement:campaign-run:read", "engagement:campaign:read", "engagement:candidate-import:read", "engagement:conversion:read", "engagement:domain:read", "engagement:patient-campaign:read"],
|
|
1469
|
+
spaceVariantGrants: null,
|
|
1470
|
+
note: "Regla de clave genérica: cobertura total del servicio, migrada a la lista enumerada de sus claves (sin comodín). Forma comodín vieja enumerada a claves explícitas: engagement:*:read → 7. Derivación: Plantilla genérica|granular de engagement-api src/engagement-routes.ts:139-149 para todos los recursos."
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
old: "engagement:write",
|
|
1474
|
+
op: "rename",
|
|
1475
|
+
canonical: ["engagement:domain:write"],
|
|
1476
|
+
grantMigration: ["engagement:campaign-candidate:write", "engagement:campaign-run:write", "engagement:campaign:write", "engagement:candidate-import:write", "engagement:conversion:write", "engagement:domain:write", "engagement:patient-campaign:write"],
|
|
1477
|
+
caseVariantGrants: ["engagement:campaign-candidate:write", "engagement:campaign-run:write", "engagement:campaign:write", "engagement:candidate-import:write", "engagement:conversion:write", "engagement:domain:write", "engagement:patient-campaign:write"],
|
|
1478
|
+
spaceVariantGrants: null,
|
|
1479
|
+
note: "Regla de clave genérica: cobertura total del servicio, migrada a la lista enumerada de sus claves (sin comodín). Forma comodín vieja enumerada a claves explícitas: engagement:*:write → 7. Derivación: Plantilla genérica|granular de engagement-api src/engagement-routes.ts:139-149 para todos los recursos."
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
old: "files:delete",
|
|
1483
|
+
op: "rename",
|
|
1484
|
+
canonical: ["files:domain:delete"],
|
|
1485
|
+
grantMigration: ["files:domain:delete"],
|
|
1486
|
+
caseVariantGrants: ["files:domain:delete"],
|
|
1487
|
+
spaceVariantGrants: null,
|
|
1488
|
+
note: ""
|
|
1489
|
+
},
|
|
1490
|
+
{
|
|
1491
|
+
old: "files:download",
|
|
1492
|
+
op: "rename",
|
|
1493
|
+
canonical: ["files:domain:download"],
|
|
1494
|
+
grantMigration: ["files:domain:download"],
|
|
1495
|
+
caseVariantGrants: ["files:domain:download"],
|
|
1496
|
+
spaceVariantGrants: null,
|
|
1497
|
+
note: ""
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
old: "files:read",
|
|
1501
|
+
op: "rename",
|
|
1502
|
+
canonical: ["files:domain:read"],
|
|
1503
|
+
grantMigration: ["files:domain:read"],
|
|
1504
|
+
caseVariantGrants: ["files:domain:read"],
|
|
1505
|
+
spaceVariantGrants: null,
|
|
1506
|
+
note: ""
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
old: "files:reconcile:read",
|
|
1510
|
+
op: "keep",
|
|
1511
|
+
canonical: ["files:reconcile:read"],
|
|
1512
|
+
grantMigration: ["files:reconcile:read"],
|
|
1513
|
+
caseVariantGrants: ["files:reconcile:read"],
|
|
1514
|
+
spaceVariantGrants: null,
|
|
1515
|
+
note: ""
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
old: "files:scan-bypass:write",
|
|
1519
|
+
op: "keep",
|
|
1520
|
+
canonical: ["files:scan-bypass:write"],
|
|
1521
|
+
grantMigration: ["files:scan-bypass:write"],
|
|
1522
|
+
caseVariantGrants: ["files:scan-bypass:write"],
|
|
1523
|
+
spaceVariantGrants: null,
|
|
1524
|
+
note: ""
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
old: "files:write",
|
|
1528
|
+
op: "rename",
|
|
1529
|
+
canonical: ["files:domain:write"],
|
|
1530
|
+
grantMigration: ["files:domain:write"],
|
|
1531
|
+
caseVariantGrants: ["files:domain:write"],
|
|
1532
|
+
spaceVariantGrants: null,
|
|
1533
|
+
note: ""
|
|
1534
|
+
},
|
|
1535
|
+
{
|
|
1536
|
+
old: "global-settings:write",
|
|
1537
|
+
op: "merge",
|
|
1538
|
+
canonical: ["access:tenant-profile:write"],
|
|
1539
|
+
grantMigration: ["access:tenant-profile:write"],
|
|
1540
|
+
caseVariantGrants: null,
|
|
1541
|
+
spaceVariantGrants: null,
|
|
1542
|
+
note: "alternativa en el mismo punto de control (settings-domain.ts:600). Destino cambiado por decisión del propietario 2026-09-29 respecto del mapa (merge a access:settings:write). Derivación: El código viejo la aceptaba solo en la escritura de ajustes, junto con access-api:settings:write y por includes literal (access-api src/settings-domain.ts:598-604; 602-609 en origin/dev 09379a9), y no en el perfil del tenant (tenant-profile-domain.ts:229-236). Los parámetros generales y clínicos pasan a tenantProfile (Access PR #87) y los edita el admin del tenant del cliente con access:tenant-profile:write, su único destino; access:settings:write queda solo para plataforma (en el perfil del tenant, locale.country y active). Cambio de acceso declarado: deja de cambiar esos dos campos reservados a PEGASI y pasa a editar el perfil del tenant. Variante en mayúsculas: a unknown, su comprobación era literal (access-api src/settings-domain.ts:599-600 (includes literal))."
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
old: "integration-gateway:delete",
|
|
1546
|
+
op: "rename",
|
|
1547
|
+
canonical: ["integration-gateway:domain:delete"],
|
|
1548
|
+
grantMigration: ["integration-gateway:domain:delete"],
|
|
1549
|
+
caseVariantGrants: null,
|
|
1550
|
+
spaceVariantGrants: null,
|
|
1551
|
+
note: "Derivación: integration-gateway-api src/integration-gateway-routes.ts:647, 654 y toggleStatus 632-634 (desactivar exige delete); integration-gateway-events.ts:179-180. Variante en mayúsculas: a unknown, su comprobación era literal (integration-gateway-api src/seed-auth.ts:277-288 (sin toLowerCase))."
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
old: "integration-gateway:execute",
|
|
1555
|
+
op: "rename",
|
|
1556
|
+
canonical: ["integration-gateway:domain:execute"],
|
|
1557
|
+
grantMigration: ["integration-gateway:domain:execute"],
|
|
1558
|
+
caseVariantGrants: null,
|
|
1559
|
+
spaceVariantGrants: null,
|
|
1560
|
+
note: "Derivación: integration-gateway-api src/integration-gateway-routes.ts:329, 672, 699, integration-gateway-sync-resolver.ts:344 e integration-gateway-events.ts:181. Variante en mayúsculas: a unknown, su comprobación era literal (integration-gateway-api src/seed-auth.ts:277-288 (sin toLowerCase))."
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
old: "integration-gateway:read",
|
|
1564
|
+
op: "rename",
|
|
1565
|
+
canonical: ["integration-gateway:domain:read"],
|
|
1566
|
+
grantMigration: ["integration-gateway:domain:read"],
|
|
1567
|
+
caseVariantGrants: null,
|
|
1568
|
+
spaceVariantGrants: null,
|
|
1569
|
+
note: "Derivación: integration-gateway-api src/integration-gateway-routes.ts:433-543 y 709. Variante en mayúsculas: a unknown, su comprobación era literal (integration-gateway-api src/seed-auth.ts:277-288 (sin toLowerCase))."
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
old: "integration-gateway:write",
|
|
1573
|
+
op: "rename",
|
|
1574
|
+
canonical: ["integration-gateway:domain:write"],
|
|
1575
|
+
grantMigration: ["integration-gateway:domain:write"],
|
|
1576
|
+
caseVariantGrants: null,
|
|
1577
|
+
spaceVariantGrants: null,
|
|
1578
|
+
note: "Regla de clave genérica: lista enumerada. Grants corregidos respecto del mapa (integration-gateway:domain:execute, integration-gateway:domain:write) para conservar el acceso efectivo. Derivación: integration-gateway-api src/integration-gateway-routes.ts:503-640 y 714. Solo era alternativa de execute en 672 e integration-gateway-events.ts:181, no en 329, 699 ni integration-gateway-sync-resolver.ts:344: se quita domain:execute de la regla del mapa porque ampliaba acceso. 672 y events.ts:181 deben pedir assertAnyPermission con integration-gateway:domain:execute e integration-gateway:domain:write. Variante en mayúsculas: a unknown, su comprobación era literal (integration-gateway-api src/seed-auth.ts:277-288 (sin toLowerCase))."
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
old: "inventory:delete",
|
|
1582
|
+
op: "rename",
|
|
1583
|
+
canonical: ["inventory:domain:delete"],
|
|
1584
|
+
grantMigration: ["inventory:domain:delete"],
|
|
1585
|
+
caseVariantGrants: ["inventory:domain:delete"],
|
|
1586
|
+
spaceVariantGrants: null,
|
|
1587
|
+
note: ""
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
old: "inventory:read",
|
|
1591
|
+
op: "rename",
|
|
1592
|
+
canonical: ["inventory:domain:read"],
|
|
1593
|
+
grantMigration: ["inventory:domain:read"],
|
|
1594
|
+
caseVariantGrants: ["inventory:domain:read"],
|
|
1595
|
+
spaceVariantGrants: null,
|
|
1596
|
+
note: ""
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
old: "inventory:write",
|
|
1600
|
+
op: "rename",
|
|
1601
|
+
canonical: ["inventory:domain:write"],
|
|
1602
|
+
grantMigration: ["inventory:domain:write"],
|
|
1603
|
+
caseVariantGrants: ["inventory:domain:write"],
|
|
1604
|
+
spaceVariantGrants: null,
|
|
1605
|
+
note: ""
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
old: "medical-board:board:write",
|
|
1609
|
+
op: "keep",
|
|
1610
|
+
canonical: ["medical-board:board:write"],
|
|
1611
|
+
grantMigration: ["medical-board:board:write"],
|
|
1612
|
+
caseVariantGrants: ["medical-board:board:write"],
|
|
1613
|
+
spaceVariantGrants: null,
|
|
1614
|
+
note: ""
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
old: "medical-board:case:write",
|
|
1618
|
+
op: "keep",
|
|
1619
|
+
canonical: ["medical-board:case:write"],
|
|
1620
|
+
grantMigration: ["medical-board:case:write"],
|
|
1621
|
+
caseVariantGrants: ["medical-board:case:write"],
|
|
1622
|
+
spaceVariantGrants: null,
|
|
1623
|
+
note: ""
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
old: "medical-board:delete",
|
|
1627
|
+
op: "rename",
|
|
1628
|
+
canonical: ["medical-board:domain:delete"],
|
|
1629
|
+
grantMigration: ["medical-board:domain:delete"],
|
|
1630
|
+
caseVariantGrants: ["medical-board:domain:delete"],
|
|
1631
|
+
spaceVariantGrants: null,
|
|
1632
|
+
note: ""
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
old: "medical-board:participant-template:write",
|
|
1636
|
+
op: "keep",
|
|
1637
|
+
canonical: ["medical-board:participant-template:write"],
|
|
1638
|
+
grantMigration: ["medical-board:participant-template:write"],
|
|
1639
|
+
caseVariantGrants: ["medical-board:participant-template:write"],
|
|
1640
|
+
spaceVariantGrants: null,
|
|
1641
|
+
note: ""
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
old: "medical-board:read",
|
|
1645
|
+
op: "rename",
|
|
1646
|
+
canonical: ["medical-board:domain:read"],
|
|
1647
|
+
grantMigration: ["medical-board:domain:read", "medical-board:settings:read"],
|
|
1648
|
+
caseVariantGrants: ["medical-board:domain:read", "medical-board:settings:read"],
|
|
1649
|
+
spaceVariantGrants: null,
|
|
1650
|
+
note: "Grants corregidos respecto del mapa (medical-board:domain:read) para conservar el acceso efectivo. Derivación: READ_PERMISSION (medical-board-api src/medical-board-routes.ts:43) y settings:read en 638, única comprobación de settings:read, que acepta READ_PERMISSION: se concede medical-board:settings:read."
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
old: "medical-board:request:approve",
|
|
1654
|
+
op: "keep",
|
|
1655
|
+
canonical: ["medical-board:request:approve"],
|
|
1656
|
+
grantMigration: ["medical-board:request:approve"],
|
|
1657
|
+
caseVariantGrants: ["medical-board:request:approve"],
|
|
1658
|
+
spaceVariantGrants: null,
|
|
1659
|
+
note: ""
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
old: "medical-board:request:write",
|
|
1663
|
+
op: "keep",
|
|
1664
|
+
canonical: ["medical-board:request:write"],
|
|
1665
|
+
grantMigration: ["medical-board:request:write"],
|
|
1666
|
+
caseVariantGrants: ["medical-board:request:write"],
|
|
1667
|
+
spaceVariantGrants: null,
|
|
1668
|
+
note: ""
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
old: "medical-board:resolution:write",
|
|
1672
|
+
op: "keep",
|
|
1673
|
+
canonical: ["medical-board:resolution:write"],
|
|
1674
|
+
grantMigration: ["medical-board:resolution:write"],
|
|
1675
|
+
caseVariantGrants: ["medical-board:resolution:write"],
|
|
1676
|
+
spaceVariantGrants: null,
|
|
1677
|
+
note: ""
|
|
1678
|
+
},
|
|
1679
|
+
{
|
|
1680
|
+
old: "medical-board:settings:read",
|
|
1681
|
+
op: "keep",
|
|
1682
|
+
canonical: ["medical-board:settings:read"],
|
|
1683
|
+
grantMigration: ["medical-board:settings:read"],
|
|
1684
|
+
caseVariantGrants: ["medical-board:settings:read"],
|
|
1685
|
+
spaceVariantGrants: null,
|
|
1686
|
+
note: ""
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
old: "medical-board:settings:write",
|
|
1690
|
+
op: "keep",
|
|
1691
|
+
canonical: ["medical-board:settings:write"],
|
|
1692
|
+
grantMigration: ["medical-board:settings:write"],
|
|
1693
|
+
caseVariantGrants: ["medical-board:settings:write"],
|
|
1694
|
+
spaceVariantGrants: null,
|
|
1695
|
+
note: ""
|
|
1696
|
+
},
|
|
1697
|
+
{
|
|
1698
|
+
old: "medical-board:treatment:write",
|
|
1699
|
+
op: "keep",
|
|
1700
|
+
canonical: ["medical-board:treatment:write"],
|
|
1701
|
+
grantMigration: ["medical-board:treatment:write"],
|
|
1702
|
+
caseVariantGrants: ["medical-board:treatment:write"],
|
|
1703
|
+
spaceVariantGrants: null,
|
|
1704
|
+
note: ""
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
old: "medical-board:write",
|
|
1708
|
+
op: "retire",
|
|
1709
|
+
canonical: [],
|
|
1710
|
+
grantMigration: [],
|
|
1711
|
+
caseVariantGrants: [],
|
|
1712
|
+
spaceVariantGrants: null,
|
|
1713
|
+
note: "huérfana: asignable hoy y no autoriza nada; el grant se elimina sin pérdida de acceso. Derivación: Huérfana: medical-board-api no la exige (constantes en src/medical-board-routes.ts:43-52). Sin acceso efectivo."
|
|
1714
|
+
},
|
|
1715
|
+
{
|
|
1716
|
+
old: "meetings:*",
|
|
1717
|
+
op: "retire",
|
|
1718
|
+
canonical: [],
|
|
1719
|
+
grantMigration: ["meetings:call-history:delete", "meetings:call-history:read", "meetings:call-history:write", "meetings:join-link:issue", "meetings:join-link:read", "meetings:join-link:revoke", "meetings:provider-event:read", "meetings:provider-event:write", "meetings:session:delete", "meetings:session:issue", "meetings:session:issue-any", "meetings:session:read"],
|
|
1720
|
+
caseVariantGrants: ["meetings:call-history:delete", "meetings:call-history:read", "meetings:call-history:write", "meetings:join-link:issue", "meetings:join-link:read", "meetings:join-link:revoke", "meetings:provider-event:read", "meetings:provider-event:write", "meetings:session:delete", "meetings:session:issue", "meetings:session:issue-any", "meetings:session:read"],
|
|
1721
|
+
spaceVariantGrants: null,
|
|
1722
|
+
note: "comodín literal exigido (17 usos). Forma comodín vieja enumerada a claves explícitas: meetings:*:* → 10. Grants corregidos respecto del mapa (meetings:*:*) para conservar el acceso efectivo. Derivación: Prefijo meetings: (meetings-api src/meeting-routes.ts:88-96) aceptado en todas las comprobaciones: 243, 255, 271, 314, 448, 453, 474, 535, 542, 585, 609, 614, 620, 636, 641, 651 y meeting-socket.ts:22. La forma vieja meetings:*:* se enumera a las claves que el comodín satisfacía; las que solo se comprobaban de forma literal y el prefijo también satisfacía se añaden explícitas: meetings:session:issue-any (314) y meetings:provider-event:write (242-243)."
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
old: "meetings:call-history:delete",
|
|
1726
|
+
op: "keep",
|
|
1727
|
+
canonical: ["meetings:call-history:delete"],
|
|
1728
|
+
grantMigration: ["meetings:call-history:delete"],
|
|
1729
|
+
caseVariantGrants: ["meetings:call-history:delete"],
|
|
1730
|
+
spaceVariantGrants: null,
|
|
1731
|
+
note: ""
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
old: "meetings:call-history:read",
|
|
1735
|
+
op: "keep",
|
|
1736
|
+
canonical: ["meetings:call-history:read"],
|
|
1737
|
+
grantMigration: ["meetings:call-history:read"],
|
|
1738
|
+
caseVariantGrants: ["meetings:call-history:read"],
|
|
1739
|
+
spaceVariantGrants: null,
|
|
1740
|
+
note: ""
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
old: "meetings:call-history:write",
|
|
1744
|
+
op: "keep",
|
|
1745
|
+
canonical: ["meetings:call-history:write"],
|
|
1746
|
+
grantMigration: ["meetings:call-history:write"],
|
|
1747
|
+
caseVariantGrants: ["meetings:call-history:write"],
|
|
1748
|
+
spaceVariantGrants: null,
|
|
1749
|
+
note: ""
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
old: "meetings:join-link:issue",
|
|
1753
|
+
op: "keep",
|
|
1754
|
+
canonical: ["meetings:join-link:issue"],
|
|
1755
|
+
grantMigration: ["meetings:join-link:issue"],
|
|
1756
|
+
caseVariantGrants: ["meetings:join-link:issue"],
|
|
1757
|
+
spaceVariantGrants: null,
|
|
1758
|
+
note: ""
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
old: "meetings:join-link:read",
|
|
1762
|
+
op: "keep",
|
|
1763
|
+
canonical: ["meetings:join-link:read"],
|
|
1764
|
+
grantMigration: ["meetings:join-link:read"],
|
|
1765
|
+
caseVariantGrants: ["meetings:join-link:read"],
|
|
1766
|
+
spaceVariantGrants: null,
|
|
1767
|
+
note: ""
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
old: "meetings:join-link:revoke",
|
|
1771
|
+
op: "keep",
|
|
1772
|
+
canonical: ["meetings:join-link:revoke"],
|
|
1773
|
+
grantMigration: ["meetings:join-link:revoke"],
|
|
1774
|
+
caseVariantGrants: ["meetings:join-link:revoke"],
|
|
1775
|
+
spaceVariantGrants: null,
|
|
1776
|
+
note: ""
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
old: "meetings:provider-event:read",
|
|
1780
|
+
op: "keep",
|
|
1781
|
+
canonical: ["meetings:provider-event:read"],
|
|
1782
|
+
grantMigration: ["meetings:provider-event:read"],
|
|
1783
|
+
caseVariantGrants: ["meetings:provider-event:read"],
|
|
1784
|
+
spaceVariantGrants: null,
|
|
1785
|
+
note: ""
|
|
1786
|
+
},
|
|
1787
|
+
{
|
|
1788
|
+
old: "meetings:provider-event:write",
|
|
1789
|
+
op: "keep",
|
|
1790
|
+
canonical: ["meetings:provider-event:write"],
|
|
1791
|
+
grantMigration: ["meetings:provider-event:write"],
|
|
1792
|
+
caseVariantGrants: ["meetings:provider-event:write"],
|
|
1793
|
+
spaceVariantGrants: null,
|
|
1794
|
+
note: ""
|
|
1795
|
+
},
|
|
1796
|
+
{
|
|
1797
|
+
old: "meetings:read",
|
|
1798
|
+
op: "retire",
|
|
1799
|
+
canonical: [],
|
|
1800
|
+
grantMigration: [],
|
|
1801
|
+
caseVariantGrants: [],
|
|
1802
|
+
spaceVariantGrants: null,
|
|
1803
|
+
note: "huérfana: asignable hoy y no autoriza nada; el grant se elimina sin pérdida de acceso. Derivación: Huérfana: ninguna comprobación de meetings-api la exige (src/meeting-routes.ts:243-651, src/meeting-socket.ts:22). Sin acceso efectivo."
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
old: "meetings:session:delete",
|
|
1807
|
+
op: "keep",
|
|
1808
|
+
canonical: ["meetings:session:delete"],
|
|
1809
|
+
grantMigration: ["meetings:session:delete"],
|
|
1810
|
+
caseVariantGrants: ["meetings:session:delete"],
|
|
1811
|
+
spaceVariantGrants: null,
|
|
1812
|
+
note: ""
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
old: "meetings:session:issue",
|
|
1816
|
+
op: "keep",
|
|
1817
|
+
canonical: ["meetings:session:issue"],
|
|
1818
|
+
grantMigration: ["meetings:session:issue"],
|
|
1819
|
+
caseVariantGrants: ["meetings:session:issue"],
|
|
1820
|
+
spaceVariantGrants: null,
|
|
1821
|
+
note: ""
|
|
1822
|
+
},
|
|
1823
|
+
{
|
|
1824
|
+
old: "meetings:session:issue:any",
|
|
1825
|
+
op: "rename",
|
|
1826
|
+
canonical: ["meetings:session:issue-any"],
|
|
1827
|
+
grantMigration: ["meetings:session:issue-any"],
|
|
1828
|
+
caseVariantGrants: ["meetings:session:issue-any"],
|
|
1829
|
+
spaceVariantGrants: null,
|
|
1830
|
+
note: ""
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
old: "meetings:session:read",
|
|
1834
|
+
op: "keep",
|
|
1835
|
+
canonical: ["meetings:session:read"],
|
|
1836
|
+
grantMigration: ["meetings:session:read"],
|
|
1837
|
+
caseVariantGrants: ["meetings:session:read"],
|
|
1838
|
+
spaceVariantGrants: null,
|
|
1839
|
+
note: ""
|
|
1840
|
+
},
|
|
1841
|
+
{
|
|
1842
|
+
old: "meetings:write",
|
|
1843
|
+
op: "retire",
|
|
1844
|
+
canonical: [],
|
|
1845
|
+
grantMigration: [],
|
|
1846
|
+
caseVariantGrants: [],
|
|
1847
|
+
spaceVariantGrants: null,
|
|
1848
|
+
note: "huérfana: asignable hoy y no autoriza nada; el grant se elimina sin pérdida de acceso. Derivación: Huérfana: ninguna comprobación de meetings-api la exige (src/meeting-routes.ts:243-651, src/meeting-socket.ts:22). Sin acceso efectivo."
|
|
1849
|
+
},
|
|
1850
|
+
{
|
|
1851
|
+
old: "orders:delete",
|
|
1852
|
+
op: "rename",
|
|
1853
|
+
canonical: ["orders:domain:delete"],
|
|
1854
|
+
grantMigration: ["orders:domain:delete"],
|
|
1855
|
+
caseVariantGrants: ["orders:domain:delete"],
|
|
1856
|
+
spaceVariantGrants: null,
|
|
1857
|
+
note: "Derivación: orders-api src/order-routes.ts:822 y 830."
|
|
1858
|
+
},
|
|
1859
|
+
{
|
|
1860
|
+
old: "orders:read",
|
|
1861
|
+
op: "rename",
|
|
1862
|
+
canonical: ["orders:domain:read"],
|
|
1863
|
+
grantMigration: ["orders:domain:read", "orders:settings:read"],
|
|
1864
|
+
caseVariantGrants: ["orders:domain:read", "orders:settings:read"],
|
|
1865
|
+
spaceVariantGrants: null,
|
|
1866
|
+
note: "Regla de clave genérica: lista enumerada. Derivación: orders-api src/order-routes.ts:613-903; settings:read en 842, única comprobación de settings:read, acepta orders:read."
|
|
1867
|
+
},
|
|
1868
|
+
{
|
|
1869
|
+
old: "orders:read-legacy",
|
|
1870
|
+
op: "rename",
|
|
1871
|
+
canonical: ["orders:legacy-order:read"],
|
|
1872
|
+
grantMigration: ["orders:legacy-order:read"],
|
|
1873
|
+
caseVariantGrants: ["orders:legacy-order:read"],
|
|
1874
|
+
spaceVariantGrants: null,
|
|
1875
|
+
note: "Decisión pendiente: clave de compatibilidad (LEGACY_MOVED_READ_PERMISSION); candidata a retiro. Derivación: orders-api src/order-routes.ts:50, 576 y 593 (clave de compatibilidad)."
|
|
1876
|
+
},
|
|
1877
|
+
{
|
|
1878
|
+
old: "orders:settings:read",
|
|
1879
|
+
op: "keep",
|
|
1880
|
+
canonical: ["orders:settings:read"],
|
|
1881
|
+
grantMigration: ["orders:settings:read"],
|
|
1882
|
+
caseVariantGrants: ["orders:settings:read"],
|
|
1883
|
+
spaceVariantGrants: null,
|
|
1884
|
+
note: ""
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
old: "orders:settings:write",
|
|
1888
|
+
op: "keep",
|
|
1889
|
+
canonical: ["orders:settings:write"],
|
|
1890
|
+
grantMigration: ["orders:settings:write"],
|
|
1891
|
+
caseVariantGrants: ["orders:settings:write"],
|
|
1892
|
+
spaceVariantGrants: null,
|
|
1893
|
+
note: ""
|
|
1894
|
+
},
|
|
1895
|
+
{
|
|
1896
|
+
old: "orders:write",
|
|
1897
|
+
op: "rename",
|
|
1898
|
+
canonical: ["orders:domain:write"],
|
|
1899
|
+
grantMigration: ["orders:domain:write"],
|
|
1900
|
+
caseVariantGrants: ["orders:domain:write"],
|
|
1901
|
+
spaceVariantGrants: null,
|
|
1902
|
+
note: "Derivación: orders-api src/order-routes.ts:661-908."
|
|
1903
|
+
},
|
|
1904
|
+
{
|
|
1905
|
+
old: "patient-config:delete",
|
|
1906
|
+
op: "rename",
|
|
1907
|
+
canonical: ["patient:config:delete"],
|
|
1908
|
+
grantMigration: ["patient:config:delete"],
|
|
1909
|
+
caseVariantGrants: ["patient:config:delete"],
|
|
1910
|
+
spaceVariantGrants: ["patient:config:delete"],
|
|
1911
|
+
note: "Derivación: patient-api src/patient-routes.ts:2089. Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
1912
|
+
},
|
|
1913
|
+
{
|
|
1914
|
+
old: "patient-config:read",
|
|
1915
|
+
op: "rename",
|
|
1916
|
+
canonical: ["patient:config:read"],
|
|
1917
|
+
grantMigration: ["patient:config:read", "patient:settings:read"],
|
|
1918
|
+
caseVariantGrants: ["patient:config:read", "patient:settings:read"],
|
|
1919
|
+
spaceVariantGrants: ["patient:config:read", "patient:settings:read"],
|
|
1920
|
+
note: "Grants corregidos respecto del mapa (patient:config:read) para conservar el acceso efectivo. Derivación: patient-api src/patient-routes.ts:1998-2018 y settings:read en 1526, única comprobación de settings:read, que acepta patient-config:read: se concede patient:settings:read. Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
old: "patient-config:write",
|
|
1924
|
+
op: "rename",
|
|
1925
|
+
canonical: ["patient:config:write"],
|
|
1926
|
+
grantMigration: ["patient:config:write"],
|
|
1927
|
+
caseVariantGrants: ["patient:config:write"],
|
|
1928
|
+
spaceVariantGrants: ["patient:config:write"],
|
|
1929
|
+
note: "Derivación: patient-api src/patient-routes.ts:2024-2073. Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
1930
|
+
},
|
|
1931
|
+
{
|
|
1932
|
+
old: "patient-identifier-series:override",
|
|
1933
|
+
op: "merge",
|
|
1934
|
+
canonical: ["patient:identifier:void"],
|
|
1935
|
+
grantMigration: ["patient:identifier:void"],
|
|
1936
|
+
caseVariantGrants: ["patient:identifier:void"],
|
|
1937
|
+
spaceVariantGrants: ["patient:identifier:void"],
|
|
1938
|
+
note: "alternativa de void (patient-routes.ts:260). Derivación: IDENTIFIER_VOID_PERMISSIONS de patient-api src/patient-routes.ts:260. Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
1939
|
+
},
|
|
1940
|
+
{
|
|
1941
|
+
old: "patient-identifier-series:read",
|
|
1942
|
+
op: "merge",
|
|
1943
|
+
canonical: ["patient:identifier-series:read"],
|
|
1944
|
+
grantMigration: ["patient:identifier-series:read"],
|
|
1945
|
+
caseVariantGrants: ["patient:identifier-series:read"],
|
|
1946
|
+
spaceVariantGrants: ["patient:identifier-series:read"],
|
|
1947
|
+
note: "Derivación: SERIES_READ_PERMISSIONS de patient-api src/patient-routes.ts:257. Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
1948
|
+
},
|
|
1949
|
+
{
|
|
1950
|
+
old: "patient-identifier-series:write",
|
|
1951
|
+
op: "split",
|
|
1952
|
+
canonical: ["patient:identifier-series:write"],
|
|
1953
|
+
grantMigration: ["patient:identifier-series:write", "patient:identifier:allocate"],
|
|
1954
|
+
caseVariantGrants: ["patient:identifier-series:write", "patient:identifier:allocate"],
|
|
1955
|
+
spaceVariantGrants: ["patient:identifier-series:write", "patient:identifier:allocate"],
|
|
1956
|
+
note: "hoy también autoriza allocate (patient-routes.ts:259). Derivación: SERIES_WRITE_PERMISSIONS (patient-api src/patient-routes.ts:258) e IDENTIFIER_ALLOCATE_PERMISSIONS (259) la aceptan: por eso es split. Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
1957
|
+
},
|
|
1958
|
+
{
|
|
1959
|
+
old: "patient:campaign-attribution:write",
|
|
1960
|
+
op: "keep",
|
|
1961
|
+
canonical: ["patient:campaign-attribution:write"],
|
|
1962
|
+
grantMigration: ["patient:campaign-attribution:write"],
|
|
1963
|
+
caseVariantGrants: ["patient:campaign-attribution:write"],
|
|
1964
|
+
spaceVariantGrants: null,
|
|
1965
|
+
note: "Variante con espacios alrededor: a unknown (también la comprueba engagement-api (src/engagement-routes.ts:391), cuyo readPermissions no recorta (seed-auth.ts:91-108))."
|
|
1966
|
+
},
|
|
1967
|
+
{
|
|
1968
|
+
old: "patient:consent-type:delete",
|
|
1969
|
+
op: "keep",
|
|
1970
|
+
canonical: ["patient:consent-type:delete"],
|
|
1971
|
+
grantMigration: ["patient:consent-type:delete"],
|
|
1972
|
+
caseVariantGrants: ["patient:consent-type:delete"],
|
|
1973
|
+
spaceVariantGrants: ["patient:consent-type:delete"],
|
|
1974
|
+
note: "Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
1975
|
+
},
|
|
1976
|
+
{
|
|
1977
|
+
old: "patient:consent-type:read",
|
|
1978
|
+
op: "keep",
|
|
1979
|
+
canonical: ["patient:consent-type:read"],
|
|
1980
|
+
grantMigration: ["patient:consent-type:read"],
|
|
1981
|
+
caseVariantGrants: ["patient:consent-type:read"],
|
|
1982
|
+
spaceVariantGrants: ["patient:consent-type:read"],
|
|
1983
|
+
note: "Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
old: "patient:consent-type:write",
|
|
1987
|
+
op: "keep",
|
|
1988
|
+
canonical: ["patient:consent-type:write"],
|
|
1989
|
+
grantMigration: ["patient:consent-type:write"],
|
|
1990
|
+
caseVariantGrants: ["patient:consent-type:write"],
|
|
1991
|
+
spaceVariantGrants: ["patient:consent-type:write"],
|
|
1992
|
+
note: "Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
1993
|
+
},
|
|
1994
|
+
{
|
|
1995
|
+
old: "patient:consent:delete",
|
|
1996
|
+
op: "keep",
|
|
1997
|
+
canonical: ["patient:consent:delete"],
|
|
1998
|
+
grantMigration: ["patient:consent:delete"],
|
|
1999
|
+
caseVariantGrants: ["patient:consent:delete"],
|
|
2000
|
+
spaceVariantGrants: ["patient:consent:delete"],
|
|
2001
|
+
note: "Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
2002
|
+
},
|
|
2003
|
+
{
|
|
2004
|
+
old: "patient:consent:read",
|
|
2005
|
+
op: "keep",
|
|
2006
|
+
canonical: ["patient:consent:read"],
|
|
2007
|
+
grantMigration: ["patient:consent:read"],
|
|
2008
|
+
caseVariantGrants: ["patient:consent:read"],
|
|
2009
|
+
spaceVariantGrants: ["patient:consent:read"],
|
|
2010
|
+
note: "Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
2011
|
+
},
|
|
2012
|
+
{
|
|
2013
|
+
old: "patient:consent:write",
|
|
2014
|
+
op: "keep",
|
|
2015
|
+
canonical: ["patient:consent:write"],
|
|
2016
|
+
grantMigration: ["patient:consent:write"],
|
|
2017
|
+
caseVariantGrants: ["patient:consent:write"],
|
|
2018
|
+
spaceVariantGrants: ["patient:consent:write"],
|
|
2019
|
+
note: "Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
2020
|
+
},
|
|
2021
|
+
{
|
|
2022
|
+
old: "patient:contact:read",
|
|
2023
|
+
op: "keep",
|
|
2024
|
+
canonical: ["patient:contact:read"],
|
|
2025
|
+
grantMigration: ["patient:contact:read"],
|
|
2026
|
+
caseVariantGrants: null,
|
|
2027
|
+
spaceVariantGrants: null,
|
|
2028
|
+
note: "Variante con espacios alrededor: a unknown (token de servicio con readPermissions sin recorte e includes literal (patient-api src/seed-auth.ts:149-166, 534-535)). Variante en mayúsculas: a unknown, su comprobación era literal (patient-api src/seed-auth.ts:535 (includes literal))."
|
|
2029
|
+
},
|
|
2030
|
+
{
|
|
2031
|
+
old: "patient:delete",
|
|
2032
|
+
op: "rename",
|
|
2033
|
+
canonical: ["patient:domain:delete"],
|
|
2034
|
+
grantMigration: ["patient:config:delete", "patient:domain:delete"],
|
|
2035
|
+
caseVariantGrants: ["patient:config:delete", "patient:domain:delete"],
|
|
2036
|
+
spaceVariantGrants: ["patient:config:delete", "patient:domain:delete"],
|
|
2037
|
+
note: "Regla de clave genérica: lista enumerada. Derivación: patient-api src/patient-routes.ts:1920; config delete en 2089 acepta patient:delete. Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
old: "patient:identifier-series:read",
|
|
2041
|
+
op: "keep",
|
|
2042
|
+
canonical: ["patient:identifier-series:read"],
|
|
2043
|
+
grantMigration: ["patient:identifier-series:read"],
|
|
2044
|
+
caseVariantGrants: ["patient:identifier-series:read"],
|
|
2045
|
+
spaceVariantGrants: ["patient:identifier-series:read"],
|
|
2046
|
+
note: "Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
2047
|
+
},
|
|
2048
|
+
{
|
|
2049
|
+
old: "patient:identifier-series:write",
|
|
2050
|
+
op: "keep",
|
|
2051
|
+
canonical: ["patient:identifier-series:write"],
|
|
2052
|
+
grantMigration: ["patient:identifier-series:write"],
|
|
2053
|
+
caseVariantGrants: ["patient:identifier-series:write"],
|
|
2054
|
+
spaceVariantGrants: ["patient:identifier-series:write"],
|
|
2055
|
+
note: "Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
2056
|
+
},
|
|
2057
|
+
{
|
|
2058
|
+
old: "patient:identifier:allocate",
|
|
2059
|
+
op: "keep",
|
|
2060
|
+
canonical: ["patient:identifier:allocate"],
|
|
2061
|
+
grantMigration: ["patient:identifier:allocate"],
|
|
2062
|
+
caseVariantGrants: ["patient:identifier:allocate"],
|
|
2063
|
+
spaceVariantGrants: ["patient:identifier:allocate"],
|
|
2064
|
+
note: "Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
2065
|
+
},
|
|
2066
|
+
{
|
|
2067
|
+
old: "patient:identifier:void",
|
|
2068
|
+
op: "keep",
|
|
2069
|
+
canonical: ["patient:identifier:void"],
|
|
2070
|
+
grantMigration: ["patient:identifier:void"],
|
|
2071
|
+
caseVariantGrants: ["patient:identifier:void"],
|
|
2072
|
+
spaceVariantGrants: ["patient:identifier:void"],
|
|
2073
|
+
note: "Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
2074
|
+
},
|
|
2075
|
+
{
|
|
2076
|
+
old: "patient:read",
|
|
2077
|
+
op: "rename",
|
|
2078
|
+
canonical: ["patient:domain:read"],
|
|
2079
|
+
grantMigration: ["patient:config:read", "patient:domain:read", "patient:identifier-series:read", "patient:settings:read"],
|
|
2080
|
+
caseVariantGrants: ["patient:config:read", "patient:domain:read", "patient:identifier-series:read", "patient:settings:read"],
|
|
2081
|
+
spaceVariantGrants: ["patient:config:read", "patient:domain:read", "patient:identifier-series:read", "patient:settings:read"],
|
|
2082
|
+
note: "Regla de clave genérica: lista enumerada. Derivación: patient-api src/patient-routes.ts:1602-1753; settings:read (1526), config:read (1998-2018) e identifier-series:read (257) aceptan patient:read; consent tiene claves propias (261-266). Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
old: "patient:settings:read",
|
|
2086
|
+
op: "keep",
|
|
2087
|
+
canonical: ["patient:settings:read"],
|
|
2088
|
+
grantMigration: ["patient:settings:read"],
|
|
2089
|
+
caseVariantGrants: ["patient:settings:read"],
|
|
2090
|
+
spaceVariantGrants: ["patient:settings:read"],
|
|
2091
|
+
note: "Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
2092
|
+
},
|
|
2093
|
+
{
|
|
2094
|
+
old: "patient:settings:write",
|
|
2095
|
+
op: "keep",
|
|
2096
|
+
canonical: ["patient:settings:write"],
|
|
2097
|
+
grantMigration: ["patient:settings:write"],
|
|
2098
|
+
caseVariantGrants: ["patient:settings:write"],
|
|
2099
|
+
spaceVariantGrants: ["patient:settings:write"],
|
|
2100
|
+
note: "Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
2101
|
+
},
|
|
2102
|
+
{
|
|
2103
|
+
old: "patient:write",
|
|
2104
|
+
op: "rename",
|
|
2105
|
+
canonical: ["patient:domain:write"],
|
|
2106
|
+
grantMigration: ["patient:config:write", "patient:domain:write"],
|
|
2107
|
+
caseVariantGrants: ["patient:config:write", "patient:domain:write"],
|
|
2108
|
+
spaceVariantGrants: ["patient:config:write", "patient:domain:write"],
|
|
2109
|
+
note: "Regla de clave genérica: lista enumerada. Derivación: patient-api src/patient-routes.ts:1786-1912; config write (2024-2073) acepta patient:write. Variante con espacios alrededor: todos los destinos (patient-api src/seed-auth.ts:176-181, 393 (internal-forward-auth) y patient-routes.ts:321-331)."
|
|
2110
|
+
},
|
|
2111
|
+
{
|
|
2112
|
+
old: "questionnaire:delete",
|
|
2113
|
+
op: "rename",
|
|
2114
|
+
canonical: ["questionnaire:domain:delete"],
|
|
2115
|
+
grantMigration: ["questionnaire:domain:delete"],
|
|
2116
|
+
caseVariantGrants: ["questionnaire:domain:delete"],
|
|
2117
|
+
spaceVariantGrants: null,
|
|
2118
|
+
note: ""
|
|
2119
|
+
},
|
|
2120
|
+
{
|
|
2121
|
+
old: "questionnaire:read",
|
|
2122
|
+
op: "rename",
|
|
2123
|
+
canonical: ["questionnaire:domain:read"],
|
|
2124
|
+
grantMigration: ["questionnaire:domain:read"],
|
|
2125
|
+
caseVariantGrants: ["questionnaire:domain:read"],
|
|
2126
|
+
spaceVariantGrants: null,
|
|
2127
|
+
note: ""
|
|
2128
|
+
},
|
|
2129
|
+
{
|
|
2130
|
+
old: "questionnaire:write",
|
|
2131
|
+
op: "rename",
|
|
2132
|
+
canonical: ["questionnaire:domain:write"],
|
|
2133
|
+
grantMigration: ["questionnaire:domain:write"],
|
|
2134
|
+
caseVariantGrants: ["questionnaire:domain:write"],
|
|
2135
|
+
spaceVariantGrants: null,
|
|
2136
|
+
note: ""
|
|
2137
|
+
},
|
|
2138
|
+
{
|
|
2139
|
+
old: "reference-data:read",
|
|
2140
|
+
op: "rename",
|
|
2141
|
+
canonical: ["reference-data:domain:read"],
|
|
2142
|
+
grantMigration: ["reference-data:domain:read"],
|
|
2143
|
+
caseVariantGrants: ["reference-data:domain:read"],
|
|
2144
|
+
spaceVariantGrants: null,
|
|
2145
|
+
note: "Decisión pendiente: el servicio no comprueba ninguna clave (K6); la clave solo tiene efecto cuando reference-data la exija."
|
|
2146
|
+
},
|
|
2147
|
+
{
|
|
2148
|
+
old: "reference-data:write",
|
|
2149
|
+
op: "rename",
|
|
2150
|
+
canonical: ["reference-data:domain:write"],
|
|
2151
|
+
grantMigration: ["reference-data:domain:write"],
|
|
2152
|
+
caseVariantGrants: ["reference-data:domain:write"],
|
|
2153
|
+
spaceVariantGrants: null,
|
|
2154
|
+
note: "Decisión pendiente: el servicio no comprueba ninguna clave (K6); la clave solo tiene efecto cuando reference-data la exija."
|
|
2155
|
+
},
|
|
2156
|
+
{
|
|
2157
|
+
old: "reports:delete",
|
|
2158
|
+
op: "rename",
|
|
2159
|
+
canonical: ["reports:domain:delete"],
|
|
2160
|
+
grantMigration: ["reports:domain:delete"],
|
|
2161
|
+
caseVariantGrants: ["reports:domain:delete"],
|
|
2162
|
+
spaceVariantGrants: null,
|
|
2163
|
+
note: "Derivación: reports-api src/report-routes.ts:1252 y 1260."
|
|
2164
|
+
},
|
|
2165
|
+
{
|
|
2166
|
+
old: "reports:read",
|
|
2167
|
+
op: "rename",
|
|
2168
|
+
canonical: ["reports:domain:read"],
|
|
2169
|
+
grantMigration: ["reports:domain:read", "reports:settings:read"],
|
|
2170
|
+
caseVariantGrants: ["reports:domain:read", "reports:settings:read"],
|
|
2171
|
+
spaceVariantGrants: null,
|
|
2172
|
+
note: "Regla de clave genérica: cobertura total del servicio, migrada a la lista enumerada de sus claves (sin comodín). Forma comodín vieja enumerada a claves explícitas: reports:*:read → 2. Derivación: reports-api src/report-routes.ts:980-1013 y 1096; settings:read en 1272, única comprobación de settings:read, acepta reports:read."
|
|
2173
|
+
},
|
|
2174
|
+
{
|
|
2175
|
+
old: "reports:render",
|
|
2176
|
+
op: "rename",
|
|
2177
|
+
canonical: ["reports:render:execute"],
|
|
2178
|
+
grantMigration: ["reports:render:execute"],
|
|
2179
|
+
caseVariantGrants: ["reports:render:execute"],
|
|
2180
|
+
spaceVariantGrants: null,
|
|
2181
|
+
note: "Derivación: reports-api src/report-routes.ts:858, 1040, 1118-1119, 1152 y 1421."
|
|
2182
|
+
},
|
|
2183
|
+
{
|
|
2184
|
+
old: "reports:settings:read",
|
|
2185
|
+
op: "keep",
|
|
2186
|
+
canonical: ["reports:settings:read"],
|
|
2187
|
+
grantMigration: ["reports:settings:read"],
|
|
2188
|
+
caseVariantGrants: ["reports:settings:read"],
|
|
2189
|
+
spaceVariantGrants: null,
|
|
2190
|
+
note: ""
|
|
2191
|
+
},
|
|
2192
|
+
{
|
|
2193
|
+
old: "reports:settings:write",
|
|
2194
|
+
op: "keep",
|
|
2195
|
+
canonical: ["reports:settings:write"],
|
|
2196
|
+
grantMigration: ["reports:settings:write"],
|
|
2197
|
+
caseVariantGrants: ["reports:settings:write"],
|
|
2198
|
+
spaceVariantGrants: null,
|
|
2199
|
+
note: ""
|
|
2200
|
+
},
|
|
2201
|
+
{
|
|
2202
|
+
old: "reports:write",
|
|
2203
|
+
op: "rename",
|
|
2204
|
+
canonical: ["reports:domain:write"],
|
|
2205
|
+
grantMigration: ["reports:domain:write"],
|
|
2206
|
+
caseVariantGrants: ["reports:domain:write"],
|
|
2207
|
+
spaceVariantGrants: null,
|
|
2208
|
+
note: "Derivación: reports-api src/report-routes.ts:1101 y 1194-1244; también alternativa de borrado en 1252, no en 1260: 1252 debe pedir assertAnyPermission con reports:domain:delete y reports:domain:write."
|
|
2209
|
+
},
|
|
2210
|
+
{
|
|
2211
|
+
old: "revenue-cycle:delete",
|
|
2212
|
+
op: "rename",
|
|
2213
|
+
canonical: ["revenue-cycle:domain:delete"],
|
|
2214
|
+
grantMigration: ["revenue-cycle:domain:delete"],
|
|
2215
|
+
caseVariantGrants: ["revenue-cycle:domain:delete"],
|
|
2216
|
+
spaceVariantGrants: null,
|
|
2217
|
+
note: ""
|
|
2218
|
+
},
|
|
2219
|
+
{
|
|
2220
|
+
old: "revenue-cycle:read",
|
|
2221
|
+
op: "rename",
|
|
2222
|
+
canonical: ["revenue-cycle:domain:read"],
|
|
2223
|
+
grantMigration: ["revenue-cycle:domain:read"],
|
|
2224
|
+
caseVariantGrants: ["revenue-cycle:domain:read"],
|
|
2225
|
+
spaceVariantGrants: null,
|
|
2226
|
+
note: ""
|
|
2227
|
+
},
|
|
2228
|
+
{
|
|
2229
|
+
old: "revenue-cycle:write",
|
|
2230
|
+
op: "rename",
|
|
2231
|
+
canonical: ["revenue-cycle:domain:write"],
|
|
2232
|
+
grantMigration: ["revenue-cycle:domain:write"],
|
|
2233
|
+
caseVariantGrants: ["revenue-cycle:domain:write"],
|
|
2234
|
+
spaceVariantGrants: null,
|
|
2235
|
+
note: ""
|
|
2236
|
+
},
|
|
2237
|
+
{
|
|
2238
|
+
old: "schedules:delete",
|
|
2239
|
+
op: "rename",
|
|
2240
|
+
canonical: ["schedules:agenda:delete"],
|
|
2241
|
+
grantMigration: ["schedules:agenda:delete", "schedules:settings:delete"],
|
|
2242
|
+
caseVariantGrants: ["schedules:agenda:delete", "schedules:settings:delete"],
|
|
2243
|
+
spaceVariantGrants: null,
|
|
2244
|
+
note: "Regla de clave genérica: cobertura total del servicio, migrada a la lista enumerada de sus claves (sin comodín). Reestructuración de agenda por decisión del propietario 2026-09-30 (D8, E3) respecto del mapa (rename a schedules:domain:delete). Derivación: schedules-api src/schedule-routes.ts:1530, 1538 y 1603; settings:delete (1193, 1239, 1311) y token:delete (1680) aceptan schedules:delete. D8/E3: domain:delete y token:delete se pliegan en schedules:agenda:delete. El borrado de turnos (1603, hoursOfOperations) es configuración de perfiles de agenda: pasa a schedules:schedule-profile:delete, que se confiere explícitamente (E4) y no recibe ninguna clave vieja."
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
old: "schedules:domain:delete",
|
|
2248
|
+
op: "rename",
|
|
2249
|
+
canonical: ["schedules:agenda:delete"],
|
|
2250
|
+
grantMigration: ["schedules:agenda:delete"],
|
|
2251
|
+
caseVariantGrants: null,
|
|
2252
|
+
spaceVariantGrants: null,
|
|
2253
|
+
note: "Clave canónica de una versión anterior del paquete que ya no está en el catálogo. Derivación: Clave canónica de 0.1.0-dev.2 (migración de schedules:delete); D8/E3 la sustituye por schedules:agenda:delete. Variante en mayúsculas: a unknown, su comprobación era literal (clave canónica del paquete: el matcher distingue mayúsculas)."
|
|
2254
|
+
},
|
|
2255
|
+
{
|
|
2256
|
+
old: "schedules:domain:read",
|
|
2257
|
+
op: "rename",
|
|
2258
|
+
canonical: ["schedules:agenda:read"],
|
|
2259
|
+
grantMigration: ["schedules:agenda:read"],
|
|
2260
|
+
caseVariantGrants: null,
|
|
2261
|
+
spaceVariantGrants: null,
|
|
2262
|
+
note: "Clave canónica de una versión anterior del paquete que ya no está en el catálogo. Derivación: Clave canónica de 0.1.0-dev.2 (migración de schedules:read); D8/E3 la sustituye por schedules:agenda:read. Variante en mayúsculas: a unknown, su comprobación era literal (clave canónica del paquete: el matcher distingue mayúsculas)."
|
|
2263
|
+
},
|
|
2264
|
+
{
|
|
2265
|
+
old: "schedules:domain:write",
|
|
2266
|
+
op: "rename",
|
|
2267
|
+
canonical: ["schedules:agenda:write"],
|
|
2268
|
+
grantMigration: ["schedules:agenda:write"],
|
|
2269
|
+
caseVariantGrants: null,
|
|
2270
|
+
spaceVariantGrants: null,
|
|
2271
|
+
note: "Clave canónica de una versión anterior del paquete que ya no está en el catálogo. Derivación: Clave canónica de 0.1.0-dev.2 (migración de schedules:write); D8/E3 la sustituye por schedules:agenda:write. Variante en mayúsculas: a unknown, su comprobación era literal (clave canónica del paquete: el matcher distingue mayúsculas)."
|
|
2272
|
+
},
|
|
2273
|
+
{
|
|
2274
|
+
old: "schedules:read",
|
|
2275
|
+
op: "rename",
|
|
2276
|
+
canonical: ["schedules:agenda:read"],
|
|
2277
|
+
grantMigration: ["schedules:agenda:read", "schedules:settings:read"],
|
|
2278
|
+
caseVariantGrants: ["schedules:agenda:read", "schedules:settings:read"],
|
|
2279
|
+
spaceVariantGrants: null,
|
|
2280
|
+
note: "Regla de clave genérica: cobertura total del servicio, migrada a la lista enumerada de sus claves (sin comodín). Reestructuración de agenda por decisión del propietario 2026-09-30 (D8, E3) respecto del mapa (rename a schedules:domain:read). Derivación: schedules-api src/schedule-routes.ts:1343-1579; settings:read (1146-1324) y token:read (1675, 1691) aceptan schedules:read. D8/E3: domain:read y token:read se pliegan en schedules:agenda:read; schedule-profile no la recibe (E4, conferida explícitamente)."
|
|
2281
|
+
},
|
|
2282
|
+
{
|
|
2283
|
+
old: "schedules:settings:delete",
|
|
2284
|
+
op: "keep",
|
|
2285
|
+
canonical: ["schedules:settings:delete"],
|
|
2286
|
+
grantMigration: ["schedules:settings:delete"],
|
|
2287
|
+
caseVariantGrants: ["schedules:settings:delete"],
|
|
2288
|
+
spaceVariantGrants: null,
|
|
2289
|
+
note: ""
|
|
2290
|
+
},
|
|
2291
|
+
{
|
|
2292
|
+
old: "schedules:settings:read",
|
|
2293
|
+
op: "keep",
|
|
2294
|
+
canonical: ["schedules:settings:read"],
|
|
2295
|
+
grantMigration: ["schedules:settings:read"],
|
|
2296
|
+
caseVariantGrants: ["schedules:settings:read"],
|
|
2297
|
+
spaceVariantGrants: null,
|
|
2298
|
+
note: ""
|
|
2299
|
+
},
|
|
2300
|
+
{
|
|
2301
|
+
old: "schedules:settings:write",
|
|
2302
|
+
op: "keep",
|
|
2303
|
+
canonical: ["schedules:settings:write"],
|
|
2304
|
+
grantMigration: ["schedules:settings:write"],
|
|
2305
|
+
caseVariantGrants: ["schedules:settings:write"],
|
|
2306
|
+
spaceVariantGrants: null,
|
|
2307
|
+
note: ""
|
|
2308
|
+
},
|
|
2309
|
+
{
|
|
2310
|
+
old: "schedules:token:delete",
|
|
2311
|
+
op: "merge",
|
|
2312
|
+
canonical: ["schedules:agenda:delete"],
|
|
2313
|
+
grantMigration: ["schedules:agenda:delete"],
|
|
2314
|
+
caseVariantGrants: ["schedules:agenda:delete"],
|
|
2315
|
+
spaceVariantGrants: null,
|
|
2316
|
+
note: "Reestructuración de agenda por decisión del propietario 2026-09-30 (D8, E3) respecto del mapa (keep a schedules:token:delete). Derivación: schedules-api src/schedule-routes.ts:1680 (revocar token de cita). D8/E3: los tokens de cita (PR #42/#43) son eventos de agenda y se pliegan en schedules:agenda; quien tenía solo la clave de token recibe la clave de agenda de la misma acción, que abre también las rutas de eventos de agenda de esa acción (ampliación declarada por la decisión E3, riesgo R-E del informe del Analyst)."
|
|
2317
|
+
},
|
|
2318
|
+
{
|
|
2319
|
+
old: "schedules:token:read",
|
|
2320
|
+
op: "merge",
|
|
2321
|
+
canonical: ["schedules:agenda:read"],
|
|
2322
|
+
grantMigration: ["schedules:agenda:read"],
|
|
2323
|
+
caseVariantGrants: ["schedules:agenda:read"],
|
|
2324
|
+
spaceVariantGrants: null,
|
|
2325
|
+
note: "Reestructuración de agenda por decisión del propietario 2026-09-30 (D8, E3) respecto del mapa (keep a schedules:token:read). Derivación: schedules-api src/schedule-routes.ts:1675, 1691 (validar token de cita). D8/E3: los tokens de cita (PR #42/#43) son eventos de agenda y se pliegan en schedules:agenda; quien tenía solo la clave de token recibe la clave de agenda de la misma acción, que abre también las rutas de eventos de agenda de esa acción (ampliación declarada por la decisión E3, riesgo R-E del informe del Analyst)."
|
|
2326
|
+
},
|
|
2327
|
+
{
|
|
2328
|
+
old: "schedules:token:write",
|
|
2329
|
+
op: "merge",
|
|
2330
|
+
canonical: ["schedules:agenda:write"],
|
|
2331
|
+
grantMigration: ["schedules:agenda:write"],
|
|
2332
|
+
caseVariantGrants: ["schedules:agenda:write"],
|
|
2333
|
+
spaceVariantGrants: null,
|
|
2334
|
+
note: "Reestructuración de agenda por decisión del propietario 2026-09-30 (D8, E3) respecto del mapa (keep a schedules:token:write). Derivación: schedules-api src/schedule-routes.ts:1622 (emitir token de cita). D8/E3: los tokens de cita (PR #42/#43) son eventos de agenda y se pliegan en schedules:agenda; quien tenía solo la clave de token recibe la clave de agenda de la misma acción, que abre también las rutas de eventos de agenda de esa acción (ampliación declarada por la decisión E3, riesgo R-E del informe del Analyst)."
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
old: "schedules:write",
|
|
2338
|
+
op: "rename",
|
|
2339
|
+
canonical: ["schedules:agenda:write"],
|
|
2340
|
+
grantMigration: ["schedules:agenda:write", "schedules:settings:delete", "schedules:settings:write"],
|
|
2341
|
+
caseVariantGrants: ["schedules:agenda:write", "schedules:settings:delete", "schedules:settings:write"],
|
|
2342
|
+
spaceVariantGrants: null,
|
|
2343
|
+
note: "Regla de clave genérica: cobertura total del servicio, migrada a la lista enumerada de sus claves (sin comodín). Reestructuración de agenda por decisión del propietario 2026-09-30 (D8, E3) respecto del mapa (rename a schedules:domain:write). Derivación: schedules-api src/schedule-routes.ts:768-1594; settings:write (1171-1302) y token:write (1622) aceptan schedules:write, y también settings:delete (1193, 1239, 1311), token:delete (1680) y el borrado de turnos (1603), pero no el borrado de eventos (1530, 1538). D8/E3: domain:write y token:write se pliegan en schedules:agenda:write. No recibe schedules:agenda:delete: token:delete se pliega en ella y abriría también el borrado de eventos (1530, 1538), que schedules:write nunca abrió; se pierde la revocación de tokens (reducción declarada, opción conservadora). El borrado de turnos (1603) pasa a schedules:schedule-profile:delete, que se confiere explícitamente (E4)."
|
|
2344
|
+
},
|
|
2345
|
+
{
|
|
2346
|
+
old: "serials:*",
|
|
2347
|
+
op: "retire",
|
|
2348
|
+
canonical: [],
|
|
2349
|
+
grantMigration: ["serials:domain:allocate", "serials:domain:delete", "serials:domain:read", "serials:domain:void", "serials:domain:write"],
|
|
2350
|
+
caseVariantGrants: ["serials:domain:allocate", "serials:domain:delete", "serials:domain:read", "serials:domain:void", "serials:domain:write"],
|
|
2351
|
+
spaceVariantGrants: null,
|
|
2352
|
+
note: "comodín literal exigido. Forma comodín vieja enumerada a claves explícitas: serials:*:* → 5. Derivación: Prefijo serials: (serials-api src/serial-routes.ts:131-139) sobre todas las comprobaciones (354-524); serials no tiene claves de comprobación literal, así que la forma vieja serials:*:* se enumera a todas sus claves."
|
|
2353
|
+
},
|
|
2354
|
+
{
|
|
2355
|
+
old: "serials:allocate",
|
|
2356
|
+
op: "rename",
|
|
2357
|
+
canonical: ["serials:domain:allocate"],
|
|
2358
|
+
grantMigration: ["serials:domain:allocate"],
|
|
2359
|
+
caseVariantGrants: ["serials:domain:allocate"],
|
|
2360
|
+
spaceVariantGrants: null,
|
|
2361
|
+
note: ""
|
|
2362
|
+
},
|
|
2363
|
+
{
|
|
2364
|
+
old: "serials:delete",
|
|
2365
|
+
op: "rename",
|
|
2366
|
+
canonical: ["serials:domain:delete"],
|
|
2367
|
+
grantMigration: ["serials:domain:delete"],
|
|
2368
|
+
caseVariantGrants: ["serials:domain:delete"],
|
|
2369
|
+
spaceVariantGrants: null,
|
|
2370
|
+
note: ""
|
|
2371
|
+
},
|
|
2372
|
+
{
|
|
2373
|
+
old: "serials:read",
|
|
2374
|
+
op: "rename",
|
|
2375
|
+
canonical: ["serials:domain:read"],
|
|
2376
|
+
grantMigration: ["serials:domain:read"],
|
|
2377
|
+
caseVariantGrants: ["serials:domain:read"],
|
|
2378
|
+
spaceVariantGrants: null,
|
|
2379
|
+
note: ""
|
|
2380
|
+
},
|
|
2381
|
+
{
|
|
2382
|
+
old: "serials:void",
|
|
2383
|
+
op: "rename",
|
|
2384
|
+
canonical: ["serials:domain:void"],
|
|
2385
|
+
grantMigration: ["serials:domain:void"],
|
|
2386
|
+
caseVariantGrants: ["serials:domain:void"],
|
|
2387
|
+
spaceVariantGrants: null,
|
|
2388
|
+
note: ""
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
old: "serials:write",
|
|
2392
|
+
op: "rename",
|
|
2393
|
+
canonical: ["serials:domain:write"],
|
|
2394
|
+
grantMigration: ["serials:domain:write"],
|
|
2395
|
+
caseVariantGrants: ["serials:domain:write"],
|
|
2396
|
+
spaceVariantGrants: null,
|
|
2397
|
+
note: ""
|
|
2398
|
+
},
|
|
2399
|
+
{
|
|
2400
|
+
old: "service:reports-api",
|
|
2401
|
+
op: "rename",
|
|
2402
|
+
canonical: ["clinical-record:report-snapshot-service:read"],
|
|
2403
|
+
grantMigration: ["clinical-record:report-snapshot-service:read"],
|
|
2404
|
+
caseVariantGrants: ["clinical-record:report-snapshot-service:read"],
|
|
2405
|
+
spaceVariantGrants: null,
|
|
2406
|
+
note: "identidad de servicio: se comprueba con sub/tokenUse/aud del JWT más clinical-record:report-snapshot:read; no es permiso. Corregida en EXT-10 de la revisión externa respecto del mapa (retire a ninguna). Derivación: Condición independiente, leída del arreglo de permisos y no solo de los claims del JWT como dice la nota del mapa: clinical-record-api src/clinical-record-routes.ts:425-431 exige subject reports-api y la clave en el mismo token, además de clinical-record:report-snapshot:read (879-880); sola no daba acceso, pero retirarla igualaba los registros que la tenían con los que no. Pasa a una clave exacta separada que la ruta exige junto con report-snapshot:read y la identidad verificada."
|
|
2407
|
+
},
|
|
2408
|
+
{
|
|
2409
|
+
old: "specimen:delete",
|
|
2410
|
+
op: "rename",
|
|
2411
|
+
canonical: ["specimen:domain:delete"],
|
|
2412
|
+
grantMigration: ["specimen:domain:delete"],
|
|
2413
|
+
caseVariantGrants: ["specimen:domain:delete"],
|
|
2414
|
+
spaceVariantGrants: null,
|
|
2415
|
+
note: "Derivación: specimen-api src/specimen-routes.ts:1849 y 1857."
|
|
2416
|
+
},
|
|
2417
|
+
{
|
|
2418
|
+
old: "specimen:label-series:read",
|
|
2419
|
+
op: "keep",
|
|
2420
|
+
canonical: ["specimen:label-series:read"],
|
|
2421
|
+
grantMigration: ["specimen:label-series:read"],
|
|
2422
|
+
caseVariantGrants: ["specimen:label-series:read"],
|
|
2423
|
+
spaceVariantGrants: null,
|
|
2424
|
+
note: ""
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
old: "specimen:label-series:write",
|
|
2428
|
+
op: "keep",
|
|
2429
|
+
canonical: ["specimen:label-series:write"],
|
|
2430
|
+
grantMigration: ["specimen:label-series:write"],
|
|
2431
|
+
caseVariantGrants: ["specimen:label-series:write"],
|
|
2432
|
+
spaceVariantGrants: null,
|
|
2433
|
+
note: ""
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
old: "specimen:label:allocate",
|
|
2437
|
+
op: "keep",
|
|
2438
|
+
canonical: ["specimen:label:allocate"],
|
|
2439
|
+
grantMigration: ["specimen:label:allocate"],
|
|
2440
|
+
caseVariantGrants: ["specimen:label:allocate"],
|
|
2441
|
+
spaceVariantGrants: null,
|
|
2442
|
+
note: ""
|
|
2443
|
+
},
|
|
2444
|
+
{
|
|
2445
|
+
old: "specimen:read",
|
|
2446
|
+
op: "rename",
|
|
2447
|
+
canonical: ["specimen:domain:read"],
|
|
2448
|
+
grantMigration: ["specimen:domain:read", "specimen:label-series:read"],
|
|
2449
|
+
caseVariantGrants: ["specimen:domain:read", "specimen:label-series:read"],
|
|
2450
|
+
spaceVariantGrants: null,
|
|
2451
|
+
note: "Regla de clave genérica: cobertura total del servicio, migrada a la lista enumerada de sus claves (sin comodín). Forma comodín vieja enumerada a claves explícitas: specimen:*:read → 2. Derivación: specimen-api src/specimen-routes.ts:1410-1903; label-series:read (1304-1323) acepta specimen:read."
|
|
2452
|
+
},
|
|
2453
|
+
{
|
|
2454
|
+
old: "specimen:write",
|
|
2455
|
+
op: "rename",
|
|
2456
|
+
canonical: ["specimen:domain:write"],
|
|
2457
|
+
grantMigration: ["specimen:domain:write", "specimen:label-series:write", "specimen:label:allocate"],
|
|
2458
|
+
caseVariantGrants: ["specimen:domain:write", "specimen:label-series:write", "specimen:label:allocate"],
|
|
2459
|
+
spaceVariantGrants: null,
|
|
2460
|
+
note: "Regla de clave genérica: cobertura total del servicio, migrada a la lista enumerada de sus claves (sin comodín). Forma comodín vieja enumerada a claves explícitas: specimen:*:write → 2. Derivación: specimen-api src/specimen-routes.ts:1060 y 1439-1890; label-series:write (1332-1368) y label:allocate (699, 1259) aceptan specimen:write."
|
|
2461
|
+
},
|
|
2462
|
+
{
|
|
2463
|
+
old: "tenant-profile:write",
|
|
2464
|
+
op: "rename",
|
|
2465
|
+
canonical: ["access:tenant-profile:write"],
|
|
2466
|
+
grantMigration: ["access:tenant-profile:write"],
|
|
2467
|
+
caseVariantGrants: null,
|
|
2468
|
+
spaceVariantGrants: null,
|
|
2469
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (access-api src/tenant-profile-domain.ts:230-231 (includes literal))."
|
|
2470
|
+
},
|
|
2471
|
+
{
|
|
2472
|
+
old: "treasury:delete",
|
|
2473
|
+
op: "rename",
|
|
2474
|
+
canonical: ["treasury:domain:delete"],
|
|
2475
|
+
grantMigration: ["treasury:domain:delete"],
|
|
2476
|
+
caseVariantGrants: ["treasury:domain:delete"],
|
|
2477
|
+
spaceVariantGrants: null,
|
|
2478
|
+
note: ""
|
|
2479
|
+
},
|
|
2480
|
+
{
|
|
2481
|
+
old: "treasury:read",
|
|
2482
|
+
op: "rename",
|
|
2483
|
+
canonical: ["treasury:domain:read"],
|
|
2484
|
+
grantMigration: ["treasury:domain:read"],
|
|
2485
|
+
caseVariantGrants: ["treasury:domain:read"],
|
|
2486
|
+
spaceVariantGrants: null,
|
|
2487
|
+
note: ""
|
|
2488
|
+
},
|
|
2489
|
+
{
|
|
2490
|
+
old: "treasury:write",
|
|
2491
|
+
op: "rename",
|
|
2492
|
+
canonical: ["treasury:domain:write"],
|
|
2493
|
+
grantMigration: ["treasury:domain:write"],
|
|
2494
|
+
caseVariantGrants: ["treasury:domain:write"],
|
|
2495
|
+
spaceVariantGrants: null,
|
|
2496
|
+
note: ""
|
|
2497
|
+
},
|
|
2498
|
+
{
|
|
2499
|
+
old: "users.admin",
|
|
2500
|
+
op: "merge",
|
|
2501
|
+
canonical: ["access:practitioner-user:write"],
|
|
2502
|
+
grantMigration: ["access:practitioner-user:write"],
|
|
2503
|
+
caseVariantGrants: ["access:practitioner-user:write"],
|
|
2504
|
+
spaceVariantGrants: null,
|
|
2505
|
+
note: "clave no canónica aceptada en practitioner-user-routes.ts:210. Corregida respecto del mapa (merge a access:user:write) porque la fusión cambiaba el acceso. Grants corregidos respecto del mapa (access:user:write) para conservar el acceso efectivo. Derivación: Solo aceptada en el alta de profesionales (access-api src/practitioner-user-routes.ts:203-219, POST de 512-523), junto con clinical-organization:write. El mapa la fundía en access:user:write, que abre POST /users, PATCH /users/:id y POST /users/:id/memberships (user-routes.ts:611, 1360, 1473, 2080) y ampliaba acceso: migra a la clave estrecha access:practitioner-user:write."
|
|
2506
|
+
},
|
|
2507
|
+
{
|
|
2508
|
+
old: "users:bootstrap",
|
|
2509
|
+
op: "rename",
|
|
2510
|
+
canonical: ["access:user-bootstrap:write"],
|
|
2511
|
+
grantMigration: ["access:user-bootstrap:write"],
|
|
2512
|
+
caseVariantGrants: null,
|
|
2513
|
+
spaceVariantGrants: null,
|
|
2514
|
+
note: "Variante en mayúsculas: a unknown, su comprobación era literal (access-api src/auth-routes.ts:231 (includes literal))."
|
|
2515
|
+
},
|
|
2516
|
+
{
|
|
2517
|
+
old: "users:write",
|
|
2518
|
+
op: "merge",
|
|
2519
|
+
canonical: ["access:practitioner-user:write"],
|
|
2520
|
+
grantMigration: ["access:practitioner-user:write"],
|
|
2521
|
+
caseVariantGrants: ["access:practitioner-user:write"],
|
|
2522
|
+
spaceVariantGrants: null,
|
|
2523
|
+
note: "alias aceptado en practitioner-user-routes.ts:209. Corregida respecto del mapa (merge a access:user:write) porque la fusión cambiaba el acceso. Grants corregidos respecto del mapa (access:user:write) para conservar el acceso efectivo. Derivación: Solo aceptada en el alta de profesionales (access-api src/practitioner-user-routes.ts:203-219, POST de 512-523), junto con clinical-organization:write. El mapa la fundía en access:user:write, que abre POST /users, PATCH /users/:id y POST /users/:id/memberships (user-routes.ts:611, 1360, 1473, 2080) y ampliaba acceso: migra a la clave estrecha access:practitioner-user:write."
|
|
2524
|
+
}
|
|
2525
|
+
];
|
|
2526
|
+
// Owner decision 2026-09-30 (D8): no permission level migrates to grants; the services
|
|
2527
|
+
// replace their level gates by explicit keys and Schedule Profiles is conferred explicitly.
|
|
2528
|
+
export const PERMISSION_LEVEL_RULES = [];
|
|
2529
|
+
export const PERMISSION_PREFIX_RULE = {
|
|
2530
|
+
note: "Regla de migración de datos, no una forma de grant: un grant viejo servicio:* guardado (prefijo que aceptaba el matcher viejo del servicio) migra a una lista enumerada de claves explícitas, los grants de todas las claves viejas de ese espacio de nombres, sin las claves que el servicio comparaba por igualdad (exactChecked) y sin las de comprobación literal que el prefijo no satisfacía (exactExcluded), salvo las que sí satisfacía (exactAllowed). Los servicios excluidos no tienen regla: su prefijo va a unknown (cuarentena). Ningún valor con * pasa nunca como clave canónica.",
|
|
2531
|
+
services: [
|
|
2532
|
+
{ service: "analytics", evidence: "analytics-api src/analytics-routes.ts:71-76" },
|
|
2533
|
+
{ service: "care-execution", evidence: "care-execution-api src/care-execution-authorization.ts:67-77" },
|
|
2534
|
+
{ service: "care-plan", evidence: "care-plan-api src/care-plan-routes.ts:545-553" },
|
|
2535
|
+
{ service: "cases", evidence: "cases-api src/case-routes.ts:125-133" },
|
|
2536
|
+
{ service: "clinical-organization", evidence: "clinical-organization-api src/clinical-organization-routes.ts:367-375" },
|
|
2537
|
+
{ service: "collaboration", evidence: "collaboration-api src/collaboration-routes.ts:94-98, collaboration-access.ts:8, collaboration-socket.ts:48" },
|
|
2538
|
+
{ service: "communications", evidence: "communications-api src/communication-routes.ts:115, communication-command.ts:216" },
|
|
2539
|
+
{ service: "engagement", evidence: "engagement-api src/engagement-routes.ts:120" },
|
|
2540
|
+
{ service: "files", evidence: "files-api src/file-authorization.ts:16-20" },
|
|
2541
|
+
{ service: "integration-gateway", evidence: "integration-gateway-api src/seed-auth.ts:277-282" },
|
|
2542
|
+
{ service: "inventory", evidence: "inventory-api src/inventory-routes.ts:104-112, warehouse-routes.ts:116-120" },
|
|
2543
|
+
{ service: "medical-board", evidence: "medical-board-api src/medical-board-routes.ts:147-155" },
|
|
2544
|
+
{ service: "orders", evidence: "orders-api src/order-routes.ts:113-121" },
|
|
2545
|
+
{ service: "patient", evidence: "patient-api src/patient-routes.ts:277-285" },
|
|
2546
|
+
{ service: "questionnaire", evidence: "questionnaire-api src/questionnaire-routes.ts:134-142" },
|
|
2547
|
+
{ service: "reports", evidence: "reports-api src/report-routes.ts:602-610" },
|
|
2548
|
+
{ service: "revenue-cycle", evidence: "revenue-cycle-api src/revenue-cycle-routes.ts:82-90" },
|
|
2549
|
+
{ service: "schedules", evidence: "schedules-api src/schedule-routes.ts:248-256" },
|
|
2550
|
+
{ service: "specimen", evidence: "specimen-api src/specimen-routes.ts:178-186" },
|
|
2551
|
+
{ service: "treasury", evidence: "treasury-api src/treasury-routes.ts:81-89" }
|
|
2552
|
+
],
|
|
2553
|
+
excludedServices: [
|
|
2554
|
+
{ service: "access", evidence: "el prefijo viejo era access-api:*, que ya es una entrada del mapa" },
|
|
2555
|
+
{ service: "audit", evidence: "igualdad exacta (audit-api src/audit-routes.ts:70-72)" },
|
|
2556
|
+
{ service: "clinical-record", evidence: "igualdad exacta (clinical-record-api src/clinical-record-routes.ts:404-423)" },
|
|
2557
|
+
{ service: "commercial-core", evidence: "igualdad exacta (commercial-core-api src/seed-auth.ts:201-211, 250)" },
|
|
2558
|
+
{ service: "conversations", evidence: "igualdad exacta (conversations-api src/seed-auth.ts:48-51)" },
|
|
2559
|
+
{ service: "diagnostic-results", evidence: "igualdad exacta (diagnostic-results-api src/diagnostic-report-routes.ts:115-117)" },
|
|
2560
|
+
{ service: "meetings", evidence: "meetings:* ya es una entrada del mapa" },
|
|
2561
|
+
{ service: "reference-data", evidence: "el servicio no comprueba ninguna clave" },
|
|
2562
|
+
{ service: "serials", evidence: "serials:* ya es una entrada del mapa" }
|
|
2563
|
+
],
|
|
2564
|
+
exactChecked: [
|
|
2565
|
+
{ key: "care-execution:settings:write", evidence: "care-execution-api src/care-execution-routes.ts:109, 1731-1732" },
|
|
2566
|
+
{ key: "care-plan:settings:write", evidence: "care-plan-api src/care-plan-routes.ts:980" },
|
|
2567
|
+
{ key: "files:scan-bypass:write", evidence: "files-api src/file-domain.ts:638" },
|
|
2568
|
+
{ key: "medical-board:settings:write", evidence: "medical-board-api src/medical-board-routes.ts:645" },
|
|
2569
|
+
{ key: "orders:settings:write", evidence: "orders-api src/order-routes.ts:849" },
|
|
2570
|
+
{ key: "patient:settings:write", evidence: "patient-api src/patient-routes.ts:1533" },
|
|
2571
|
+
{ key: "reports:settings:write", evidence: "reports-api src/report-routes.ts:1278 (exactModern)" }
|
|
2572
|
+
],
|
|
2573
|
+
exactAllowed: [
|
|
2574
|
+
{ key: "care-plan:migration:write", evidence: "care-plan-api src/care-plan-routes.ts:584-595 (requireAllPermissions con prefijo, más el rol de servicio)" },
|
|
2575
|
+
{ key: "collaboration:provider-event:write", evidence: "collaboration-api src/collaboration-routes.ts:115-121" },
|
|
2576
|
+
{ key: "communications:provider-event:write", evidence: "communications-api src/communication-routes.ts:134-144" },
|
|
2577
|
+
{ key: "communications:request:write", evidence: "communications-api src/communication-command.ts:216" },
|
|
2578
|
+
{ key: "patient:campaign-attribution:write", evidence: "patient-api src/patient-routes.ts:267 y engagement-api src/engagement-routes.ts:391, ambos con prefijo" }
|
|
2579
|
+
],
|
|
2580
|
+
exactExcluded: [
|
|
2581
|
+
{ key: "care-execution:domain:claim-any", evidence: "clave exacta en el mapa (match exact): comprobación literal" },
|
|
2582
|
+
{ key: "patient:contact:read", evidence: "solo con token de servicio (patient-api src/seed-auth.ts:503, 522-535); la emite schedules-api (src/schedule-cancellation-email.ts:64)" }
|
|
2583
|
+
],
|
|
2584
|
+
grants: {
|
|
2585
|
+
"analytics:*": ["analytics:export:read", "analytics:export:write", "analytics:power-bi:read", "analytics:power-bi:write", "analytics:projection:write", "analytics:query-definition:read", "analytics:query-definition:write", "analytics:query:execute", "analytics:sync:execute"],
|
|
2586
|
+
"care-execution:*": ["care-execution:domain:assign", "care-execution:domain:claim", "care-execution:domain:complete", "care-execution:domain:delete", "care-execution:domain:read", "care-execution:domain:write", "care-execution:intake:write", "care-execution:settings:read"],
|
|
2587
|
+
"care-plan:*": ["care-plan:domain:delete", "care-plan:domain:read", "care-plan:domain:write", "care-plan:migration:write", "care-plan:settings:read"],
|
|
2588
|
+
"cases:*": ["cases:domain:delete", "cases:domain:read", "cases:domain:write", "cases:fees:read"],
|
|
2589
|
+
"clinical-organization:*": ["clinical-organization:domain:delete", "clinical-organization:domain:read", "clinical-organization:domain:write"],
|
|
2590
|
+
"collaboration:*": ["collaboration:channel-config:delete", "collaboration:channel-config:read", "collaboration:channel-config:write", "collaboration:conversation:delete", "collaboration:conversation:moderate", "collaboration:conversation:read", "collaboration:conversation:write", "collaboration:delivery-attempt:delete", "collaboration:delivery-attempt:read", "collaboration:delivery-attempt:write", "collaboration:domain:delete", "collaboration:domain:read", "collaboration:domain:write", "collaboration:job:delete", "collaboration:job:read", "collaboration:job:write", "collaboration:message:delete", "collaboration:message:read", "collaboration:message:write", "collaboration:provider-event:delete", "collaboration:provider-event:read", "collaboration:provider-event:write", "collaboration:read-receipt:delete", "collaboration:read-receipt:read", "collaboration:read-receipt:write", "collaboration:support:read", "collaboration:template:delete", "collaboration:template:read", "collaboration:template:write"],
|
|
2591
|
+
"communications:*": ["communications:channel-config:delete", "communications:channel-config:read", "communications:channel-config:write", "communications:delivery-attempt:delete", "communications:delivery-attempt:read", "communications:delivery-attempt:write", "communications:domain:delete", "communications:domain:read", "communications:domain:write", "communications:job:delete", "communications:job:read", "communications:job:write", "communications:provider-event:delete", "communications:provider-event:read", "communications:provider-event:write", "communications:request:write", "communications:template:delete", "communications:template:read", "communications:template:write"],
|
|
2592
|
+
"engagement:*": ["engagement:campaign-candidate:delete", "engagement:campaign-candidate:read", "engagement:campaign-candidate:write", "engagement:campaign-run:delete", "engagement:campaign-run:read", "engagement:campaign-run:write", "engagement:campaign:delete", "engagement:campaign:read", "engagement:campaign:write", "engagement:candidate-import:delete", "engagement:candidate-import:read", "engagement:candidate-import:write", "engagement:conversion:delete", "engagement:conversion:read", "engagement:conversion:write", "engagement:domain:delete", "engagement:domain:read", "engagement:domain:write", "engagement:patient-campaign:delete", "engagement:patient-campaign:read", "engagement:patient-campaign:write"],
|
|
2593
|
+
"files:*": ["files:domain:delete", "files:domain:download", "files:domain:read", "files:domain:write", "files:reconcile:read"],
|
|
2594
|
+
"integration-gateway:*": ["integration-gateway:domain:delete", "integration-gateway:domain:execute", "integration-gateway:domain:read", "integration-gateway:domain:write"],
|
|
2595
|
+
"inventory:*": ["inventory:domain:delete", "inventory:domain:read", "inventory:domain:write"],
|
|
2596
|
+
"medical-board:*": ["medical-board:board:write", "medical-board:case:write", "medical-board:domain:delete", "medical-board:domain:read", "medical-board:participant-template:write", "medical-board:request:approve", "medical-board:request:write", "medical-board:resolution:write", "medical-board:settings:read", "medical-board:treatment:write"],
|
|
2597
|
+
"orders:*": ["orders:domain:delete", "orders:domain:read", "orders:domain:write", "orders:legacy-order:read", "orders:settings:read"],
|
|
2598
|
+
"patient:*": ["patient:campaign-attribution:write", "patient:config:delete", "patient:config:read", "patient:config:write", "patient:consent-type:delete", "patient:consent-type:read", "patient:consent-type:write", "patient:consent:delete", "patient:consent:read", "patient:consent:write", "patient:domain:delete", "patient:domain:read", "patient:domain:write", "patient:identifier-series:read", "patient:identifier-series:write", "patient:identifier:allocate", "patient:identifier:void", "patient:settings:read"],
|
|
2599
|
+
"questionnaire:*": ["questionnaire:domain:delete", "questionnaire:domain:read", "questionnaire:domain:write"],
|
|
2600
|
+
"reports:*": ["reports:domain:delete", "reports:domain:read", "reports:domain:write", "reports:render:execute", "reports:settings:read"],
|
|
2601
|
+
"revenue-cycle:*": ["revenue-cycle:domain:delete", "revenue-cycle:domain:read", "revenue-cycle:domain:write"],
|
|
2602
|
+
"schedules:*": ["schedules:agenda:delete", "schedules:agenda:read", "schedules:agenda:write", "schedules:settings:delete", "schedules:settings:read", "schedules:settings:write"],
|
|
2603
|
+
"specimen:*": ["specimen:domain:delete", "specimen:domain:read", "specimen:domain:write", "specimen:label-series:read", "specimen:label-series:write", "specimen:label:allocate"],
|
|
2604
|
+
"treasury:*": ["treasury:domain:delete", "treasury:domain:read", "treasury:domain:write"]
|
|
2605
|
+
},
|
|
2606
|
+
caseVariantGrants: {
|
|
2607
|
+
"analytics:*": ["analytics:export:read", "analytics:export:write", "analytics:power-bi:read", "analytics:power-bi:write", "analytics:projection:write", "analytics:query-definition:read", "analytics:query-definition:write", "analytics:query:execute", "analytics:sync:execute"],
|
|
2608
|
+
"care-execution:*": ["care-execution:domain:assign", "care-execution:domain:claim", "care-execution:domain:complete", "care-execution:domain:delete", "care-execution:domain:read", "care-execution:domain:write", "care-execution:intake:write", "care-execution:settings:read"],
|
|
2609
|
+
"care-plan:*": ["care-plan:domain:delete", "care-plan:domain:read", "care-plan:domain:write", "care-plan:migration:write", "care-plan:settings:read"],
|
|
2610
|
+
"cases:*": ["cases:domain:delete", "cases:domain:read", "cases:domain:write", "cases:fees:read"],
|
|
2611
|
+
"clinical-organization:*": ["clinical-organization:domain:delete", "clinical-organization:domain:read", "clinical-organization:domain:write"],
|
|
2612
|
+
"collaboration:*": ["collaboration:channel-config:delete", "collaboration:channel-config:read", "collaboration:channel-config:write", "collaboration:conversation:delete", "collaboration:conversation:moderate", "collaboration:conversation:read", "collaboration:conversation:write", "collaboration:delivery-attempt:delete", "collaboration:delivery-attempt:read", "collaboration:delivery-attempt:write", "collaboration:domain:delete", "collaboration:domain:read", "collaboration:domain:write", "collaboration:job:delete", "collaboration:job:read", "collaboration:job:write", "collaboration:message:delete", "collaboration:message:read", "collaboration:message:write", "collaboration:provider-event:delete", "collaboration:provider-event:read", "collaboration:provider-event:write", "collaboration:read-receipt:delete", "collaboration:read-receipt:read", "collaboration:read-receipt:write", "collaboration:support:read", "collaboration:template:delete", "collaboration:template:read", "collaboration:template:write"],
|
|
2613
|
+
"communications:*": ["communications:channel-config:delete", "communications:channel-config:read", "communications:channel-config:write", "communications:delivery-attempt:delete", "communications:delivery-attempt:read", "communications:delivery-attempt:write", "communications:domain:delete", "communications:domain:read", "communications:domain:write", "communications:job:delete", "communications:job:read", "communications:job:write", "communications:provider-event:delete", "communications:provider-event:read", "communications:provider-event:write", "communications:request:write", "communications:template:delete", "communications:template:read", "communications:template:write"],
|
|
2614
|
+
"engagement:*": ["engagement:campaign-candidate:delete", "engagement:campaign-candidate:read", "engagement:campaign-candidate:write", "engagement:campaign-run:delete", "engagement:campaign-run:read", "engagement:campaign-run:write", "engagement:campaign:delete", "engagement:campaign:read", "engagement:campaign:write", "engagement:candidate-import:delete", "engagement:candidate-import:read", "engagement:candidate-import:write", "engagement:conversion:delete", "engagement:conversion:read", "engagement:conversion:write", "engagement:domain:delete", "engagement:domain:read", "engagement:domain:write", "engagement:patient-campaign:delete", "engagement:patient-campaign:read", "engagement:patient-campaign:write"],
|
|
2615
|
+
"files:*": ["files:domain:delete", "files:domain:download", "files:domain:read", "files:domain:write", "files:reconcile:read"],
|
|
2616
|
+
"inventory:*": ["inventory:domain:delete", "inventory:domain:read", "inventory:domain:write"],
|
|
2617
|
+
"medical-board:*": ["medical-board:board:write", "medical-board:case:write", "medical-board:domain:delete", "medical-board:domain:read", "medical-board:participant-template:write", "medical-board:request:approve", "medical-board:request:write", "medical-board:resolution:write", "medical-board:settings:read", "medical-board:treatment:write"],
|
|
2618
|
+
"orders:*": ["orders:domain:delete", "orders:domain:read", "orders:domain:write", "orders:legacy-order:read", "orders:settings:read"],
|
|
2619
|
+
"patient:*": ["patient:campaign-attribution:write", "patient:config:delete", "patient:config:read", "patient:config:write", "patient:consent-type:delete", "patient:consent-type:read", "patient:consent-type:write", "patient:consent:delete", "patient:consent:read", "patient:consent:write", "patient:domain:delete", "patient:domain:read", "patient:domain:write", "patient:identifier-series:read", "patient:identifier-series:write", "patient:identifier:allocate", "patient:identifier:void", "patient:settings:read"],
|
|
2620
|
+
"questionnaire:*": ["questionnaire:domain:delete", "questionnaire:domain:read", "questionnaire:domain:write"],
|
|
2621
|
+
"reports:*": ["reports:domain:delete", "reports:domain:read", "reports:domain:write", "reports:render:execute", "reports:settings:read"],
|
|
2622
|
+
"revenue-cycle:*": ["revenue-cycle:domain:delete", "revenue-cycle:domain:read", "revenue-cycle:domain:write"],
|
|
2623
|
+
"schedules:*": ["schedules:agenda:delete", "schedules:agenda:read", "schedules:agenda:write", "schedules:settings:delete", "schedules:settings:read", "schedules:settings:write"],
|
|
2624
|
+
"specimen:*": ["specimen:domain:delete", "specimen:domain:read", "specimen:domain:write", "specimen:label-series:read", "specimen:label-series:write", "specimen:label:allocate"],
|
|
2625
|
+
"treasury:*": ["treasury:domain:delete", "treasury:domain:read", "treasury:domain:write"]
|
|
2626
|
+
},
|
|
2627
|
+
spaceVariantGrants: {
|
|
2628
|
+
"patient:*": ["patient:config:delete", "patient:config:read", "patient:config:write", "patient:consent-type:delete", "patient:consent-type:read", "patient:consent-type:write", "patient:consent:delete", "patient:consent:read", "patient:consent:write", "patient:domain:delete", "patient:domain:read", "patient:domain:write", "patient:identifier-series:read", "patient:identifier-series:write", "patient:identifier:allocate", "patient:identifier:void", "patient:settings:read"]
|
|
2629
|
+
}
|
|
2630
|
+
};
|
|
2631
|
+
export const PERMISSION_PROFILE_GRANT_RULE = {
|
|
2632
|
+
service: "schedules",
|
|
2633
|
+
field: "scheduleProfileGrants[].permissions",
|
|
2634
|
+
evidence: "schedules-api src/seed-auth.ts:136-145, 183-192 (claves admitidas, en minúsculas, sin recorte) y src/schedule-domain.ts:175-178 (comparación por igualdad); rutas src/schedule-routes.ts:1629, 1681, 1687. Reestructuración de agenda (D8/E3, 2026-09-30): schedules:read|write|delete y schedules:token:read|write|delete pasan a schedules:agenda:read|write|delete, una clave por acción",
|
|
2635
|
+
keys: [
|
|
2636
|
+
{ old: "clinical-organization:read", canonical: "clinical-organization:domain:read" },
|
|
2637
|
+
{ old: "clinical-organization:write", canonical: "clinical-organization:domain:write" },
|
|
2638
|
+
{ old: "schedules:delete", canonical: "schedules:agenda:delete" },
|
|
2639
|
+
{ old: "schedules:read", canonical: "schedules:agenda:read" },
|
|
2640
|
+
{ old: "schedules:token:delete", canonical: "schedules:agenda:delete" },
|
|
2641
|
+
{ old: "schedules:token:read", canonical: "schedules:agenda:read" },
|
|
2642
|
+
{ old: "schedules:token:write", canonical: "schedules:agenda:write" },
|
|
2643
|
+
{ old: "schedules:write", canonical: "schedules:agenda:write" }
|
|
2644
|
+
]
|
|
2645
|
+
};
|
|
2646
|
+
//# sourceMappingURL=migration-data.js.map
|