@owlmeans/iam 0.1.18-rc.52 → 0.1.18-rc.54
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 +2 -2
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/iam/SKILL.md +57 -22
- package/build/consts.d.ts +17 -3
- package/build/consts.d.ts.map +1 -1
- package/build/consts.js +15 -1
- package/build/consts.js.map +1 -1
- package/build/types.d.ts +31 -5
- package/build/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/consts.ts +17 -3
- package/src/types.ts +36 -5
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ server; the `iam` skill holds the full model.
|
|
|
14
14
|
## Installation
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
bun add @owlmeans/iam@^0.1.18-rc.
|
|
17
|
+
bun add @owlmeans/iam@^0.1.18-rc.54
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
`ajv` is a peer dependency (the runtime API schemas are `JSONSchemaType`).
|
|
@@ -206,7 +206,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
|
|
|
206
206
|
your project's skill store (`.agents/skills/`):
|
|
207
207
|
|
|
208
208
|
```sh
|
|
209
|
-
npx @owlmeans/agent-skills@^0.1.18-rc.
|
|
209
|
+
npx @owlmeans/agent-skills@^0.1.18-rc.56
|
|
210
210
|
```
|
|
211
211
|
|
|
212
212
|
The embedded files are version-matched to this package release. Do not edit them
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"package": "@owlmeans/iam",
|
|
4
|
-
"version": "0.1.18-rc.
|
|
5
|
-
"generatedAt": "2026-10-
|
|
4
|
+
"version": "0.1.18-rc.54",
|
|
5
|
+
"generatedAt": "2026-10-17T00:00:32.704Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -8,7 +8,7 @@ metadata:
|
|
|
8
8
|
|
|
9
9
|
# Using `@owlmeans/iam`
|
|
10
10
|
|
|
11
|
-
**Install:** `"@owlmeans/iam": "^0.1.18-rc.
|
|
11
|
+
**Install:** `"@owlmeans/iam": "^0.1.18-rc.54"` in `dependencies`
|
|
12
12
|
|
|
13
13
|
Provider-agnostic IAM abstraction: the `IamService` interface, the permission and grant shapes, the
|
|
14
14
|
gate-param grammar, `hasPermission`, and the declarations of the provider's runtime IAM API. It
|
|
@@ -40,10 +40,11 @@ the browser.
|
|
|
40
40
|
| `IamPermissionFilter` | type | `{ areas?, managed?, resourceScoped?, entityScoped? }` — narrows `listPermissions`; an `areas` entry of `null` matches untagged definitions |
|
|
41
41
|
| `IamDefaultClass` | enum | `None` / `User` / `Member` / `Owner` — who holds a definition without a grant (see "Permission kinds") |
|
|
42
42
|
| `IamGrantArgs` | type | `{ resources?, mode?, entitySlug? }` — `entitySlug` binds an `entityScoped` grant |
|
|
43
|
-
| `IamGrant` | type | `{ profileId? \| group?, clientId, permission, resources?, mode?, entitySlug?, origin?, through? }` — exactly one subject |
|
|
44
|
-
| `
|
|
43
|
+
| `IamGrant` | type | `{ profileId? \| group?, clientId, permission, resources?, mode?, entitySlug?, origin?, through?, restricted? }` — exactly one subject; `restricted: true` only in a listing that asked for it (withheld, not held) |
|
|
44
|
+
| `IamGrantListArgs` | type | `{ restricted? }` — `listGrants` / `groups.grants` also list what the subject's own restriction withholds |
|
|
45
|
+
| `IamGrantOrigin` | enum | `Direct` / `Default` / `Group` / `Bundle` — why a listed grant is held; `through` names the group; `Bundle` only in a group's own listing |
|
|
45
46
|
| `IamGroupRef` | type | `{ entitySlug, key }` — a group by its organization's slug and its key |
|
|
46
|
-
| `IamGrantMode` | enum | `Blanket` / `Resources` / `All` — which FORM of a grant an operation addresses |
|
|
47
|
+
| `IamGrantMode` | enum | `Blanket` / `Resources` / `All` / `Inherit` — which FORM of a grant an operation addresses; `All` and `Inherit` are revoke-only |
|
|
47
48
|
| `IamGrantBundle` | type | `{ filter?, permissions?, mode?, resources?, entitySlug? }` — what `grantBundle` hands out |
|
|
48
49
|
| `IamRemovalPolicy` | enum | `Cascade` / `Refuse` — what to do about grants of a definition being deleted |
|
|
49
50
|
| `IamPermissionDeleteArgs`, `IamPermissionRemoval` | type | `{ policy?, managed? }` and `{ permission, clientId, found, revoked }` |
|
|
@@ -63,7 +64,7 @@ the browser.
|
|
|
63
64
|
| `IamSubject`, `IamSignInArgs`, `IamSignInResult` | type | `{ profileId, email?, name?, organizations, permissions }` (claims input); `{ email, name? }`; `{ accountId, profileId }` |
|
|
64
65
|
| `IamOrganizationFacet`, `IamGroupFacet`, `IamSubjectFacet` | type | The three facets of `IamService` |
|
|
65
66
|
| `unsupportedFacet<T>(what)` | fn | A facet whose every method throws `IamUnsupported(what)` — synchronously |
|
|
66
|
-
| `IAM_MEMBERS_GROUP` | const | `'members'` — the managed staff group `syncStaff` keeps |
|
|
67
|
+
| `IAM_MEMBERS_GROUP` | const | `'members'` — the managed staff group `syncStaff` keeps (structure the sync's, permissions the operator's) |
|
|
67
68
|
| `IAM_EMAIL_PROOF` | const | `'proof:email'` — the `profileId` of a credential that proves an address and identifies nobody yet |
|
|
68
69
|
| `hasPermission` | fn | `(auth, permission, { scope?, resourceId?, entitySlug? }?)` — checks `Authorization.permissions`; an unscoped set satisfies a resourceId check, an unbound set any organization |
|
|
69
70
|
| `HasPermissionOptions` | type | `{ scope?, resourceId?, entitySlug? }` |
|
|
@@ -82,7 +83,7 @@ the browser.
|
|
|
82
83
|
| `IamPermissionError` | class | A refusal about a DEFINITION: `permission:held:<name>`, `permission:managed:<name>` |
|
|
83
84
|
| `IamUserError` | class | An end-user operation was refused |
|
|
84
85
|
| `IamOrganizationError` | class | An organization or membership refusal — unknown organization, last owner, membership cap |
|
|
85
|
-
| `IamGroupError` | class | A group refusal — unknown key, a managed group
|
|
86
|
+
| `IamGroupError` | class | A group refusal — unknown key, an operator writing a managed group's structure, another app's group |
|
|
86
87
|
| `IamUnsupported` | class | Operation not supported by the active backend (e.g. `resource-scoped-grant`, `user-management`) |
|
|
87
88
|
|
|
88
89
|
## Permission model (kinds and grant forms)
|
|
@@ -105,9 +106,12 @@ through `composePermissionName` / `parsePermissionName` rather than splitting st
|
|
|
105
106
|
`resourceScoped: true` says a permission *may* be bound to resource ids, not that it must be. The
|
|
106
107
|
same name is grantable in both forms and they are stored separately, which is what `IamGrantMode`
|
|
107
108
|
addresses: `Blanket` is the set carrying no `resources` (and `hasPermission` reads it as covering
|
|
108
|
-
every id), `Resources` is an explicit id list,
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
every id), `Resources` is an explicit id list, `All` (revoke-only) is every form, and `Inherit`
|
|
110
|
+
(revoke-only) is the subject's own blanket value — see "Restrictions". A grant in `All` or `Inherit`
|
|
111
|
+
is refused (`IamGrantError('mode:all-is-revoke-only')`, `'mode:inherit-is-revoke-only'`). The
|
|
112
|
+
defaults are asymmetric on purpose — `grantPermission` defaults to `Blanket`, `revokePermission` to
|
|
113
|
+
`All`, because a bare revoke has always meant "remove it everywhere". Pass `mode` explicitly rather
|
|
114
|
+
than relying on either.
|
|
111
115
|
|
|
112
116
|
`area` is a presentational grouping tag (`IAM_AREAS`, or any string a deployment defines) and decides
|
|
113
117
|
nothing at request time. `managed: true` marks a definition the platform owns: an operator cannot
|
|
@@ -147,11 +151,36 @@ grant listings are built — never written onto a row:
|
|
|
147
151
|
- `None` — nobody.
|
|
148
152
|
|
|
149
153
|
A class default is a BLANKET set, so `Owner` on a resource-scoped definition is its all-records form.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
A listing marks each grant's `origin`: `Direct`, `Default`, or `Group` with `through` naming the
|
|
155
|
+
group. A backend that cannot evaluate classes (Keycloak) refuses any `defaultClass` other than
|
|
156
|
+
`None` with `IamUnsupported`.
|
|
157
|
+
|
|
158
|
+
### Restrictions
|
|
159
|
+
|
|
160
|
+
Every subject — a person or a group — has ONE blanket value of its own per binding: `true` grants,
|
|
161
|
+
`false` RESTRICTS, absent inherits. A subject holds a name when its own value is `true`, or when it is
|
|
162
|
+
not `false` and something it inherits grants it.
|
|
163
|
+
|
|
164
|
+
| Subject | Inherits from | Its own value lives on |
|
|
165
|
+
|---|---|---|
|
|
166
|
+
| person | class defaults, its groups' grants and its groups' bundles | the primary row (unbound definition); the row of the binding's organization (bound — for a group-derived name, the row that names the group) |
|
|
167
|
+
| group | its bundles | the group's own blanket set |
|
|
168
|
+
|
|
169
|
+
- A restriction withholds every INHERITED form of the name in that binding — a class default, a
|
|
170
|
+
group's blanket grant, a group's per-record grant, a bundle's selection. The subject's OWN grants,
|
|
171
|
+
per-record ones included, are never cut. A group's restriction cuts only its own bundles, for all
|
|
172
|
+
its members; another group granting the name still grants it.
|
|
173
|
+
- A `Blanket` or `All` revoke of a DECLARED definition writes the restriction (an undeclared name gets
|
|
174
|
+
none). `Inherit` drops the subject's own value — grant or restriction — writes nothing in its
|
|
175
|
+
place, leaves resource-scoped sets alone and ignores `resources`; a bound definition needs
|
|
176
|
+
`entitySlug` for it as for `Blanket`. A later `Blanket` grant overwrites a restriction with `true`.
|
|
177
|
+
- Tokens carry only what is held: a relying party never sees a restriction, only fewer permissions.
|
|
178
|
+
- Listings (`listGrants`, `groups.grants`) answer what is held; `IamGrantListArgs.restricted` adds
|
|
179
|
+
the inherited grants the subject's own restriction withholds as `restricted: true` (same `origin` /
|
|
180
|
+
`through` as the held form), so a console can show them and lift them with `Inherit`. A user's
|
|
181
|
+
`grantCount` counts held grants only.
|
|
182
|
+
- A backend without inheritance (Keycloak) has nothing to restrict: every revoke, `Inherit`
|
|
183
|
+
included, removes the role, and a listing ignores `restricted`.
|
|
155
184
|
|
|
156
185
|
## `IamService` interface
|
|
157
186
|
|
|
@@ -201,7 +230,8 @@ interface IamService extends InitializedService {
|
|
|
201
230
|
listPermissions: (entityId: string, clientId: string, filter?: IamPermissionFilter) => Promise<IamPermissionDefinition[]>
|
|
202
231
|
|
|
203
232
|
// args.resources selects the resource-scoped form, args.entitySlug the binding of an entityScoped
|
|
204
|
-
// definition; see "Permission model (kinds and grant forms)"
|
|
233
|
+
// definition; see "Permission model (kinds and grant forms)". A blanket/all revoke of a declared
|
|
234
|
+
// definition RESTRICTS; mode Inherit takes the own value back — see "Restrictions"
|
|
205
235
|
grantPermission: (entityId: string, clientId: string, profileId: string, permission: string, args?: IamGrantArgs) => Promise<IamGrant>
|
|
206
236
|
revokePermission: (entityId: string, clientId: string, profileId: string, permission: string, args?: IamGrantArgs) => Promise<void>
|
|
207
237
|
|
|
@@ -210,8 +240,9 @@ interface IamService extends InitializedService {
|
|
|
210
240
|
// grantPermission, which costs N·M writes and N·M lost-update windows on the same records.
|
|
211
241
|
grantBundle: (entityId: string, clientId: string, profileIds: string[], bundle: IamGrantBundle) => Promise<IamGrant[]>
|
|
212
242
|
|
|
213
|
-
// Direct, default-class and group grants, each with its `origin
|
|
214
|
-
|
|
243
|
+
// Direct, default-class and group grants, each with its `origin` — what is HELD; args.restricted
|
|
244
|
+
// adds what the subject's own restrictions withhold (`restricted: true`).
|
|
245
|
+
listGrants: (entityId: string, clientId: string, profileId?: string, args?: IamGrantListArgs) => Promise<IamGrant[]>
|
|
215
246
|
|
|
216
247
|
// --- Users of one client — see "Users are per client" ---
|
|
217
248
|
|
|
@@ -272,10 +303,14 @@ promise would hand it the wrong type — an awaited call rejects either way.
|
|
|
272
303
|
removed (`IamOrganizationError`).
|
|
273
304
|
- **`groups`** — a group is (organization, client, key), kept inside the organization record; one
|
|
274
305
|
client never reads or writes another's. `list`, `ensure`, `remove`, `members`, `addMembers`,
|
|
275
|
-
`removeMembers`, `grant` / `revoke` (bound to the group's organization
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
306
|
+
`removeMembers`, `grant` / `revoke` (bound to the group's organization; a revoke restricts, as for
|
|
307
|
+
a person), `grants(…, key, args?)` (its own grants as `Direct`, the names its bundles select as
|
|
308
|
+
`Bundle`, minus what it restricts; `args.restricted` adds the cut bundle names), and `setBundles` —
|
|
309
|
+
a bundle (`{ filter?, permissions? }`) grants every definition it selects to the group's members at
|
|
310
|
+
claim time. `IAM_MEMBERS_GROUP` is the managed group `syncStaff` keeps in the owning organization:
|
|
311
|
+
its existence, key, membership and bundles are the sync's (`ensure`, `remove`, `addMembers`,
|
|
312
|
+
`removeMembers`, `setBundles` → `IamGroupError('managed:members')`), while its grants and
|
|
313
|
+
restrictions are the operator's (`grant` / `revoke`) and survive every sync.
|
|
279
314
|
- **`subjects`** — the provider's half, keyed by the ACCOUNT, which never leaves the provider.
|
|
280
315
|
`signIn(clientId, { email })` finds or creates the account and its rows for the client;
|
|
281
316
|
`resolve(clientId, accountId)` builds the `IamSubject` the claims come from (`null` = not admitted:
|
|
@@ -298,7 +333,7 @@ a relying party calls it through `iamRuntime` (`@owlmeans/server-iam`) over plai
|
|
|
298
333
|
| `POST …/members/:profileId/remove` | `members.remove` | owner, or the member itself |
|
|
299
334
|
| `GET …/permissions` | `permissions.list` | member |
|
|
300
335
|
| `GET …/grants` `?profileId` | `grants.list` | owner |
|
|
301
|
-
| `POST …/grants`, `POST …/grants/revoke` `{ profileId, permission, resources?, mode? }` | `grants.assign` / `grants.revoke` | owner |
|
|
336
|
+
| `POST …/grants`, `POST …/grants/revoke` `{ profileId, permission, resources?, mode? }` | `grants.assign` / `grants.revoke` (a revoke restricts; `mode: inherit` takes the own value back) | owner |
|
|
302
337
|
|
|
303
338
|
- **Every route, the base included, is pinned to `service`** — a route's service is never inherited
|
|
304
339
|
from its parent — and every leaf hangs under ONE base carrying `IAM_RUNTIME_GUARD`. The serving
|
package/build/consts.d.ts
CHANGED
|
@@ -68,12 +68,22 @@ export declare enum GateResolutionFailure {
|
|
|
68
68
|
* carrying no `resources`, which `hasPermission` reads as covering every id) and `Resources` (an
|
|
69
69
|
* explicit id list). They are stored separately and must be revoked separately, or a UI offering
|
|
70
70
|
* both controls would have one silently wipe the other.
|
|
71
|
+
*
|
|
72
|
+
* Every subject, person or group, also has ONE blanket value of its own per binding: `true` grants,
|
|
73
|
+
* `false` RESTRICTS (it cuts what the subject would inherit from a default class, a group or a
|
|
74
|
+
* bundle), absent inherits. A `Blanket` or `All` revoke of a declared definition writes the
|
|
75
|
+
* restriction; `Inherit` takes the subject's own value back.
|
|
71
76
|
*/
|
|
72
77
|
export declare enum IamGrantMode {
|
|
73
78
|
Blanket = "blanket",
|
|
74
79
|
Resources = "resources",
|
|
75
80
|
/** Revoke-only: every form. Illegal on a grant. */
|
|
76
|
-
All = "all"
|
|
81
|
+
All = "all",
|
|
82
|
+
/**
|
|
83
|
+
* Revoke-only: drop the subject's OWN blanket value in the binding — a grant or a restriction —
|
|
84
|
+
* so it holds exactly what it inherits. Resource-scoped sets are untouched. Illegal on a grant.
|
|
85
|
+
*/
|
|
86
|
+
Inherit = "inherit"
|
|
77
87
|
}
|
|
78
88
|
/** What to do about grants that still reference a definition being removed. */
|
|
79
89
|
export declare enum IamRemovalPolicy {
|
|
@@ -115,11 +125,15 @@ export declare enum IamGrantOrigin {
|
|
|
115
125
|
/** The definition's `defaultClass` covers the subject. */
|
|
116
126
|
Default = "default",
|
|
117
127
|
/** Held by a group the subject is a member of — `IamGrant.through` names it. */
|
|
118
|
-
Group = "group"
|
|
128
|
+
Group = "group",
|
|
129
|
+
/** A group's own listing only: the names its bundles select; its own grants are `Direct`. */
|
|
130
|
+
Bundle = "bundle"
|
|
119
131
|
}
|
|
120
132
|
/**
|
|
121
133
|
* The managed group `syncStaff` keeps in a client's owning organization: the owner's own staff,
|
|
122
|
-
* admitted to the client with the bundles the sync hands it.
|
|
134
|
+
* admitted to the client with the bundles the sync hands it. Its key, membership, bundles and
|
|
135
|
+
* existence are the synchronization's alone; its grants and restrictions are the operator's and
|
|
136
|
+
* survive every sync.
|
|
123
137
|
*/
|
|
124
138
|
export declare const IAM_MEMBERS_GROUP = "members";
|
|
125
139
|
/**
|
package/build/consts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,4BAA4B,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACvN,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAGzC,eAAO,MAAM,aAAa,gBAAgB,CAAA;AAE1C,eAAO,MAAM,iBAAiB,aAAa,CAAA;AAC3C,eAAO,MAAM,mBAAmB,eAAe,CAAA;AAE/C;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,MAAM,CAAA;AAE3C;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,MAAM,CAAA;AAE5C,6EAA6E;AAC7E,eAAO,MAAM,uBAAuB,MAAM,CAAA;AAE1C,8DAA8D;AAC9D,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,EAAE,eAAe,EAEvD,CAAA;AAED,+FAA+F;AAC/F,oBAAY,kBAAkB;IAC5B,aAAa,8BAA8B;IAC3C,aAAa,8BAA8B;IAC3C,YAAY,6BAA6B;IACzC,oGAAoG;IACpG,cAAc,+BAA+B;IAC7C,oEAAoE;IACpE,iBAAiB,mCAAmC;CACrD;AAED,8CAA8C;AAC9C,oBAAY,qBAAqB;IAC/B,4CAA4C;IAC5C,WAAW,iBAAiB;IAC5B,iDAAiD;IACjD,aAAa,mBAAmB;IAChC,wFAAwF;IACxF,SAAS,eAAe;IACxB,yCAAyC;IACzC,SAAS,cAAc;CACxB;AAED
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../src/consts.ts"],"names":[],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,sBAAsB,CAS/E,CAAA;AAED,eAAO,MAAM,4BAA4B,EAAE,cAAc,CAAC,sBAAsB,CAQ/E,CAAA;AAED,eAAO,MAAM,0BAA0B,EAAE,cAAc,CAAC,oBAAoB,CAK3E,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,cAAc,CAAC,aAAa,CAK7D,CAAA"}
|
package/build/consts.js
CHANGED
|
@@ -73,6 +73,11 @@ export var GateResolutionFailure;
|
|
|
73
73
|
* carrying no `resources`, which `hasPermission` reads as covering every id) and `Resources` (an
|
|
74
74
|
* explicit id list). They are stored separately and must be revoked separately, or a UI offering
|
|
75
75
|
* both controls would have one silently wipe the other.
|
|
76
|
+
*
|
|
77
|
+
* Every subject, person or group, also has ONE blanket value of its own per binding: `true` grants,
|
|
78
|
+
* `false` RESTRICTS (it cuts what the subject would inherit from a default class, a group or a
|
|
79
|
+
* bundle), absent inherits. A `Blanket` or `All` revoke of a declared definition writes the
|
|
80
|
+
* restriction; `Inherit` takes the subject's own value back.
|
|
76
81
|
*/
|
|
77
82
|
export var IamGrantMode;
|
|
78
83
|
(function (IamGrantMode) {
|
|
@@ -80,6 +85,11 @@ export var IamGrantMode;
|
|
|
80
85
|
IamGrantMode["Resources"] = "resources";
|
|
81
86
|
/** Revoke-only: every form. Illegal on a grant. */
|
|
82
87
|
IamGrantMode["All"] = "all";
|
|
88
|
+
/**
|
|
89
|
+
* Revoke-only: drop the subject's OWN blanket value in the binding — a grant or a restriction —
|
|
90
|
+
* so it holds exactly what it inherits. Resource-scoped sets are untouched. Illegal on a grant.
|
|
91
|
+
*/
|
|
92
|
+
IamGrantMode["Inherit"] = "inherit";
|
|
83
93
|
})(IamGrantMode || (IamGrantMode = {}));
|
|
84
94
|
/** What to do about grants that still reference a definition being removed. */
|
|
85
95
|
export var IamRemovalPolicy;
|
|
@@ -125,10 +135,14 @@ export var IamGrantOrigin;
|
|
|
125
135
|
IamGrantOrigin["Default"] = "default";
|
|
126
136
|
/** Held by a group the subject is a member of — `IamGrant.through` names it. */
|
|
127
137
|
IamGrantOrigin["Group"] = "group";
|
|
138
|
+
/** A group's own listing only: the names its bundles select; its own grants are `Direct`. */
|
|
139
|
+
IamGrantOrigin["Bundle"] = "bundle";
|
|
128
140
|
})(IamGrantOrigin || (IamGrantOrigin = {}));
|
|
129
141
|
/**
|
|
130
142
|
* The managed group `syncStaff` keeps in a client's owning organization: the owner's own staff,
|
|
131
|
-
* admitted to the client with the bundles the sync hands it.
|
|
143
|
+
* admitted to the client with the bundles the sync hands it. Its key, membership, bundles and
|
|
144
|
+
* existence are the synchronization's alone; its grants and restrictions are the operator's and
|
|
145
|
+
* survive every sync.
|
|
132
146
|
*/
|
|
133
147
|
export const IAM_MEMBERS_GROUP = 'members';
|
|
134
148
|
/**
|
package/build/consts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAG7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAEtD,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAA;AAE1C,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAA;AAC3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAA;AAE/C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAA;AAE3C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAA;AAE5C,6EAA6E;AAC7E,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAA;AAE1C,8DAA8D;AAC9D,MAAM,CAAN,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,kCAAe,CAAA;IACf,gCAAa,CAAA;IACb,sCAAmB,CAAA;IACnB,gCAAa,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E,SAAS,EAAE,EAAE,GAAG,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE;IACjE,QAAQ,EAAE,EAAE;IACZ,oBAAoB,EAAE,KAAK;CAC5B,CAAA;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAkC;IAChE,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACvC,QAAQ,EAAE,CAAC,IAAI,CAAC;IAChB,oBAAoB,EAAE,KAAK;CAC5B,CAAA"}
|
package/build/types.d.ts
CHANGED
|
@@ -141,6 +141,10 @@ export interface IamGrantArgs {
|
|
|
141
141
|
* everywhere". Narrowing that to `Blanket` would leave the resource-scoped set standing for every
|
|
142
142
|
* existing caller — a live grant surviving a revoke, which is the failure direction nobody detects.
|
|
143
143
|
*
|
|
144
|
+
* A `Blanket` or `All` revoke of a DECLARED definition RESTRICTS the subject: it writes the
|
|
145
|
+
* subject's own `false`, which cuts what it would inherit (class default, group, bundle).
|
|
146
|
+
* `Inherit` (revoke-only) drops that own value instead, grant or restriction.
|
|
147
|
+
*
|
|
144
148
|
* Pass `mode` explicitly rather than depending on the default.
|
|
145
149
|
*/
|
|
146
150
|
mode?: IamGrantMode;
|
|
@@ -172,6 +176,18 @@ export interface IamGrant {
|
|
|
172
176
|
origin?: IamGrantOrigin;
|
|
173
177
|
/** The group a `Group`-origin grant reaches the person through. */
|
|
174
178
|
through?: IamGroupRef;
|
|
179
|
+
/**
|
|
180
|
+
* Present (`true`) only when a listing asked for restrictions (`IamGrantListArgs.restricted`): an
|
|
181
|
+
* inherited grant — by default class, group or bundle — that the subject's OWN restriction
|
|
182
|
+
* withholds. It is NOT held and never reaches a claim; a console shows it so the restriction can
|
|
183
|
+
* be lifted (`IamGrantMode.Inherit`).
|
|
184
|
+
*/
|
|
185
|
+
restricted?: boolean;
|
|
186
|
+
}
|
|
187
|
+
/** What a grant listing adds to what is held. */
|
|
188
|
+
export interface IamGrantListArgs {
|
|
189
|
+
/** Also list the inherited grants the subject's own restriction withholds, as `restricted: true`. */
|
|
190
|
+
restricted?: boolean;
|
|
175
191
|
}
|
|
176
192
|
/** Grants every definition a filter selects, plus any named outright. */
|
|
177
193
|
export interface IamGrantBundle {
|
|
@@ -303,7 +319,10 @@ export interface IamGroup {
|
|
|
303
319
|
entitySlug: string;
|
|
304
320
|
key: string;
|
|
305
321
|
title?: string;
|
|
306
|
-
/**
|
|
322
|
+
/**
|
|
323
|
+
* Kept by the platform (the staff sync's `members`): its membership, bundles and existence are
|
|
324
|
+
* not an operator's to write. Its grants and restrictions are.
|
|
325
|
+
*/
|
|
307
326
|
managed?: boolean;
|
|
308
327
|
members?: number;
|
|
309
328
|
bundles: IamGroupBundle[];
|
|
@@ -364,7 +383,7 @@ export interface IamOrganizationFacet {
|
|
|
364
383
|
export interface IamGroupFacet {
|
|
365
384
|
list: (entityId: string, clientId: string, entitySlug: string) => Promise<IamGroup[]>;
|
|
366
385
|
ensure: (entityId: string, clientId: string, entitySlug: string, key: string, args?: IamGroupArgs) => Promise<IamGroup>;
|
|
367
|
-
/** Also drops the key from every member row. */
|
|
386
|
+
/** Also drops the key from every member row. Refused for a managed group. */
|
|
368
387
|
remove: (entityId: string, clientId: string, entitySlug: string, key: string) => Promise<void>;
|
|
369
388
|
members: (entityId: string, clientId: string, entitySlug: string, key: string) => Promise<IamMember[]>;
|
|
370
389
|
addMembers: (entityId: string, clientId: string, entitySlug: string, key: string, profileIds: string[]) => Promise<void>;
|
|
@@ -372,7 +391,11 @@ export interface IamGroupFacet {
|
|
|
372
391
|
/** The binding of a group grant is the group's organization; `args.entitySlug` is not taken. */
|
|
373
392
|
grant: (entityId: string, clientId: string, entitySlug: string, key: string, permission: string, args?: Omit<IamGrantArgs, 'entitySlug'>) => Promise<IamGrant>;
|
|
374
393
|
revoke: (entityId: string, clientId: string, entitySlug: string, key: string, permission: string, args?: Omit<IamGrantArgs, 'entitySlug'>) => Promise<void>;
|
|
375
|
-
|
|
394
|
+
/**
|
|
395
|
+
* What the group holds: its own grants (`Direct`) and the names its bundles select (`Bundle`),
|
|
396
|
+
* minus the names it restricts — which `args.restricted` lists too, as `restricted: true`.
|
|
397
|
+
*/
|
|
398
|
+
grants: (entityId: string, clientId: string, entitySlug: string, key: string, args?: IamGrantListArgs) => Promise<IamGrant[]>;
|
|
376
399
|
setBundles: (entityId: string, clientId: string, entitySlug: string, key: string, bundles: IamGroupBundle[]) => Promise<IamGroup>;
|
|
377
400
|
}
|
|
378
401
|
/**
|
|
@@ -498,7 +521,8 @@ export interface IamService extends InitializedService {
|
|
|
498
521
|
grantPermission: (entityId: string, clientId: string, profileId: string, permission: string, args?: IamGrantArgs) => Promise<IamGrant>;
|
|
499
522
|
/**
|
|
500
523
|
* Revokes a grant. With args.resources only those resource ids are removed;
|
|
501
|
-
* without it the whole grant is removed.
|
|
524
|
+
* without it the whole grant is removed. A blanket revoke of a declared definition also
|
|
525
|
+
* restricts the subject from what it inherits; `IamGrantMode.Inherit` takes that back.
|
|
502
526
|
*/
|
|
503
527
|
revokePermission: (entityId: string, clientId: string, profileId: string, permission: string, args?: IamGrantArgs) => Promise<void>;
|
|
504
528
|
/**
|
|
@@ -515,8 +539,10 @@ export interface IamService extends InitializedService {
|
|
|
515
539
|
/**
|
|
516
540
|
* Lists grants for the entity's client, optionally for a single subject — what each holds
|
|
517
541
|
* directly, by its definition's default class and through its groups, `origin` telling which.
|
|
542
|
+
* Only what is HELD, unless `args.restricted` adds the inherited grants the subject's own
|
|
543
|
+
* restriction withholds (`restricted: true`).
|
|
518
544
|
*/
|
|
519
|
-
listGrants: (entityId: string, clientId: string, profileId?: string) => Promise<IamGrant[]>;
|
|
545
|
+
listGrants: (entityId: string, clientId: string, profileId?: string, args?: IamGrantListArgs) => Promise<IamGrant[]>;
|
|
520
546
|
/**
|
|
521
547
|
* Lists the subjects of the client — every account holding a row of that app, in whichever
|
|
522
548
|
* organization. Without `clientId` it is a read-only aggregate over every client the ent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MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAEpF;;;;OAIG;IACH,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAA;IAItG,aAAa,EAAE,oBAAoB,CAAA;IACnC,MAAM,EAAE,aAAa,CAAA;IACrB,QAAQ,EAAE,eAAe,CAAA;CAC1B;AAGD,MAAM,MAAM,OAAO,GAAG,OAAO,iBAAiB,GAAG,OAAO,mBAAmB,CAAA;AAE3E,MAAM,MAAM,OAAO,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/iam",
|
|
3
|
-
"version": "0.1.18-rc.
|
|
3
|
+
"version": "0.1.18-rc.54",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@owlmeans/context": "^0.1.18-rc.34",
|
|
27
27
|
"@owlmeans/entrypoint": "^0.1.18-rc.41",
|
|
28
28
|
"@owlmeans/error": "^0.1.18-rc.38",
|
|
29
|
-
"@owlmeans/oidc": "^0.1.18-rc.
|
|
29
|
+
"@owlmeans/oidc": "^0.1.18-rc.59",
|
|
30
30
|
"@owlmeans/route": "^0.1.18-rc.35"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
package/src/consts.ts
CHANGED
|
@@ -82,12 +82,22 @@ export enum GateResolutionFailure {
|
|
|
82
82
|
* carrying no `resources`, which `hasPermission` reads as covering every id) and `Resources` (an
|
|
83
83
|
* explicit id list). They are stored separately and must be revoked separately, or a UI offering
|
|
84
84
|
* both controls would have one silently wipe the other.
|
|
85
|
+
*
|
|
86
|
+
* Every subject, person or group, also has ONE blanket value of its own per binding: `true` grants,
|
|
87
|
+
* `false` RESTRICTS (it cuts what the subject would inherit from a default class, a group or a
|
|
88
|
+
* bundle), absent inherits. A `Blanket` or `All` revoke of a declared definition writes the
|
|
89
|
+
* restriction; `Inherit` takes the subject's own value back.
|
|
85
90
|
*/
|
|
86
91
|
export enum IamGrantMode {
|
|
87
92
|
Blanket = 'blanket',
|
|
88
93
|
Resources = 'resources',
|
|
89
94
|
/** Revoke-only: every form. Illegal on a grant. */
|
|
90
|
-
All = 'all'
|
|
95
|
+
All = 'all',
|
|
96
|
+
/**
|
|
97
|
+
* Revoke-only: drop the subject's OWN blanket value in the binding — a grant or a restriction —
|
|
98
|
+
* so it holds exactly what it inherits. Resource-scoped sets are untouched. Illegal on a grant.
|
|
99
|
+
*/
|
|
100
|
+
Inherit = 'inherit'
|
|
91
101
|
}
|
|
92
102
|
|
|
93
103
|
/** What to do about grants that still reference a definition being removed. */
|
|
@@ -134,12 +144,16 @@ export enum IamGrantOrigin {
|
|
|
134
144
|
/** The definition's `defaultClass` covers the subject. */
|
|
135
145
|
Default = 'default',
|
|
136
146
|
/** Held by a group the subject is a member of — `IamGrant.through` names it. */
|
|
137
|
-
Group = 'group'
|
|
147
|
+
Group = 'group',
|
|
148
|
+
/** A group's own listing only: the names its bundles select; its own grants are `Direct`. */
|
|
149
|
+
Bundle = 'bundle'
|
|
138
150
|
}
|
|
139
151
|
|
|
140
152
|
/**
|
|
141
153
|
* The managed group `syncStaff` keeps in a client's owning organization: the owner's own staff,
|
|
142
|
-
* admitted to the client with the bundles the sync hands it.
|
|
154
|
+
* admitted to the client with the bundles the sync hands it. Its key, membership, bundles and
|
|
155
|
+
* existence are the synchronization's alone; its grants and restrictions are the operator's and
|
|
156
|
+
* survive every sync.
|
|
143
157
|
*/
|
|
144
158
|
export const IAM_MEMBERS_GROUP = 'members'
|
|
145
159
|
|
package/src/types.ts
CHANGED
|
@@ -151,6 +151,10 @@ export interface IamGrantArgs {
|
|
|
151
151
|
* everywhere". Narrowing that to `Blanket` would leave the resource-scoped set standing for every
|
|
152
152
|
* existing caller — a live grant surviving a revoke, which is the failure direction nobody detects.
|
|
153
153
|
*
|
|
154
|
+
* A `Blanket` or `All` revoke of a DECLARED definition RESTRICTS the subject: it writes the
|
|
155
|
+
* subject's own `false`, which cuts what it would inherit (class default, group, bundle).
|
|
156
|
+
* `Inherit` (revoke-only) drops that own value instead, grant or restriction.
|
|
157
|
+
*
|
|
154
158
|
* Pass `mode` explicitly rather than depending on the default.
|
|
155
159
|
*/
|
|
156
160
|
mode?: IamGrantMode
|
|
@@ -183,6 +187,19 @@ export interface IamGrant {
|
|
|
183
187
|
origin?: IamGrantOrigin
|
|
184
188
|
/** The group a `Group`-origin grant reaches the person through. */
|
|
185
189
|
through?: IamGroupRef
|
|
190
|
+
/**
|
|
191
|
+
* Present (`true`) only when a listing asked for restrictions (`IamGrantListArgs.restricted`): an
|
|
192
|
+
* inherited grant — by default class, group or bundle — that the subject's OWN restriction
|
|
193
|
+
* withholds. It is NOT held and never reaches a claim; a console shows it so the restriction can
|
|
194
|
+
* be lifted (`IamGrantMode.Inherit`).
|
|
195
|
+
*/
|
|
196
|
+
restricted?: boolean
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/** What a grant listing adds to what is held. */
|
|
200
|
+
export interface IamGrantListArgs {
|
|
201
|
+
/** Also list the inherited grants the subject's own restriction withholds, as `restricted: true`. */
|
|
202
|
+
restricted?: boolean
|
|
186
203
|
}
|
|
187
204
|
|
|
188
205
|
/** Grants every definition a filter selects, plus any named outright. */
|
|
@@ -323,7 +340,10 @@ export interface IamGroup {
|
|
|
323
340
|
entitySlug: string
|
|
324
341
|
key: string
|
|
325
342
|
title?: string
|
|
326
|
-
/**
|
|
343
|
+
/**
|
|
344
|
+
* Kept by the platform (the staff sync's `members`): its membership, bundles and existence are
|
|
345
|
+
* not an operator's to write. Its grants and restrictions are.
|
|
346
|
+
*/
|
|
327
347
|
managed?: boolean
|
|
328
348
|
members?: number
|
|
329
349
|
bundles: IamGroupBundle[]
|
|
@@ -394,7 +414,7 @@ export interface IamOrganizationFacet {
|
|
|
394
414
|
export interface IamGroupFacet {
|
|
395
415
|
list: (entityId: string, clientId: string, entitySlug: string) => Promise<IamGroup[]>
|
|
396
416
|
ensure: (entityId: string, clientId: string, entitySlug: string, key: string, args?: IamGroupArgs) => Promise<IamGroup>
|
|
397
|
-
/** Also drops the key from every member row. */
|
|
417
|
+
/** Also drops the key from every member row. Refused for a managed group. */
|
|
398
418
|
remove: (entityId: string, clientId: string, entitySlug: string, key: string) => Promise<void>
|
|
399
419
|
members: (entityId: string, clientId: string, entitySlug: string, key: string) => Promise<IamMember[]>
|
|
400
420
|
addMembers: (entityId: string, clientId: string, entitySlug: string, key: string, profileIds: string[]) => Promise<void>
|
|
@@ -408,7 +428,13 @@ export interface IamGroupFacet {
|
|
|
408
428
|
entityId: string, clientId: string, entitySlug: string, key: string, permission: string,
|
|
409
429
|
args?: Omit<IamGrantArgs, 'entitySlug'>
|
|
410
430
|
) => Promise<void>
|
|
411
|
-
|
|
431
|
+
/**
|
|
432
|
+
* What the group holds: its own grants (`Direct`) and the names its bundles select (`Bundle`),
|
|
433
|
+
* minus the names it restricts — which `args.restricted` lists too, as `restricted: true`.
|
|
434
|
+
*/
|
|
435
|
+
grants: (
|
|
436
|
+
entityId: string, clientId: string, entitySlug: string, key: string, args?: IamGrantListArgs
|
|
437
|
+
) => Promise<IamGrant[]>
|
|
412
438
|
setBundles: (
|
|
413
439
|
entityId: string, clientId: string, entitySlug: string, key: string, bundles: IamGroupBundle[]
|
|
414
440
|
) => Promise<IamGroup>
|
|
@@ -583,7 +609,8 @@ export interface IamService extends InitializedService {
|
|
|
583
609
|
|
|
584
610
|
/**
|
|
585
611
|
* Revokes a grant. With args.resources only those resource ids are removed;
|
|
586
|
-
* without it the whole grant is removed.
|
|
612
|
+
* without it the whole grant is removed. A blanket revoke of a declared definition also
|
|
613
|
+
* restricts the subject from what it inherits; `IamGrantMode.Inherit` takes that back.
|
|
587
614
|
*/
|
|
588
615
|
revokePermission: (
|
|
589
616
|
entityId: string,
|
|
@@ -613,8 +640,12 @@ export interface IamService extends InitializedService {
|
|
|
613
640
|
/**
|
|
614
641
|
* Lists grants for the entity's client, optionally for a single subject — what each holds
|
|
615
642
|
* directly, by its definition's default class and through its groups, `origin` telling which.
|
|
643
|
+
* Only what is HELD, unless `args.restricted` adds the inherited grants the subject's own
|
|
644
|
+
* restriction withholds (`restricted: true`).
|
|
616
645
|
*/
|
|
617
|
-
listGrants: (
|
|
646
|
+
listGrants: (
|
|
647
|
+
entityId: string, clientId: string, profileId?: string, args?: IamGrantListArgs
|
|
648
|
+
) => Promise<IamGrant[]>
|
|
618
649
|
|
|
619
650
|
// --- End-user management (per client: rows of one app) ---
|
|
620
651
|
|