@fabrika/iam 0.9.0-dev.36 → 0.9.0-dev.38
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/migrations/0036_grant_scope_sets.sql +14 -0
- package/migrations-postgres/0036_grant_scope_sets.sql +14 -0
- package/package.json +11 -11
- package/src/admin/api-keys.ts +8 -5
- package/src/admin/app-people.ts +2 -2
- package/src/admin/app-schema.ts +10 -2
- package/src/admin/grant-requests.ts +53 -30
- package/src/admin/grant-support.ts +56 -18
- package/src/admin/grants.ts +111 -52
- package/src/admin/rpc.ts +1 -0
- package/src/db.ts +1 -1
- package/src/repositories/app-schema.ts +9 -4
- package/src/repositories/grant-requests.ts +9 -4
- package/src/repositories/grants.ts +214 -89
- package/src/stored-permissions.ts +25 -1
- package/types/src/admin/grant-support.d.ts +15 -6
- package/types/src/db.d.ts +1 -1
- package/types/src/repositories/app-schema.d.ts +4 -1
- package/types/src/repositories/grant-requests.d.ts +5 -1
- package/types/src/repositories/grants.d.ts +51 -6
- package/types/src/stored-permissions.d.ts +6 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type DimensionValue } from '@fabrika/auth-core';
|
|
1
2
|
/** A role's stored `via`: relation → actions. A malformed row contributes nothing, as an unparseable grant does. */
|
|
2
3
|
export declare function parseStoredVia(json: string | null): Record<string, string[]>;
|
|
3
4
|
/** Legacy rows retain valid patterns even when other entries are malformed. */
|
|
@@ -10,3 +11,8 @@ export declare function delegatedActions(role: {
|
|
|
10
11
|
readonly permissions: string;
|
|
11
12
|
readonly via: string | null;
|
|
12
13
|
}): string[];
|
|
14
|
+
/**
|
|
15
|
+
* A scope's stored `value_list` (ADR-0085), or null for none. A row that is not a list `dimensionValuesProblem` admits
|
|
16
|
+
* lists none: the console then takes free text, which is what it did before any list.
|
|
17
|
+
*/
|
|
18
|
+
export declare function parseStoredValueList(json: string | null): DimensionValue[] | null;
|