@owlmeans/server-iam 0.1.18-rc.23 → 0.1.18-rc.24

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 CHANGED
@@ -20,15 +20,19 @@ bun add @owlmeans/server-iam@^0.1.18-rc.20
20
20
  ```typescript
21
21
  import { appendIam, makeIamGate } from '@owlmeans/server-iam'
22
22
  import { IAM_GATE } from '@owlmeans/server-iam'
23
- import { entrypoint, guard, route } from '@owlmeans/server-app'
24
- import { gate } from '@owlmeans/entrypoint'
23
+ import { contract, protocol, typed } from '@owlmeans/entrypoint'
24
+ import { route } from '@owlmeans/route'
25
25
  import { DEFAULT_GUARD } from '@owlmeans/auth-common'
26
26
 
27
27
  // Wire IAM into a server context
28
28
  appendIam(context)
29
29
 
30
- // Gate an entrypoint with a permission check
31
- entrypoint(route('users', '/users'), guard(DEFAULT_GUARD, gate(IAM_GATE, ['manage-users@{entity}'])))
30
+ // Gate a protocol with a permission check
31
+ protocol(
32
+ route('users', '/users'),
33
+ contract(typed<User[]>()),
34
+ { guards: DEFAULT_GUARD, gate: { alias: IAM_GATE, params: ['manage-users@{entity}'] } },
35
+ )
32
36
  ```
33
37
 
34
38
  Requires `@owlmeans/oidc` OIDC shared config and a running IAM provider configured via `@owlmeans/server-oidc-rp`.
@@ -41,7 +45,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
41
45
  your project's skill store (`.agents/skills/`):
42
46
 
43
47
  ```sh
44
- npx @owlmeans/agent-skills@^0.1.18-rc.14
48
+ npx @owlmeans/agent-skills@^0.1.18-rc.15
45
49
  ```
46
50
 
47
51
  The embedded files are version-matched to this package release. Do not edit them
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "package": "@owlmeans/server-iam",
4
- "version": "0.1.18-rc.23",
5
- "generatedAt": "2026-09-10T23:12:07.506Z",
4
+ "version": "0.1.18-rc.24",
5
+ "generatedAt": "2026-09-12T08:39:52.720Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -8,7 +8,7 @@ metadata:
8
8
 
9
9
  # Using `@owlmeans/server-iam`
10
10
 
11
- **Install:** `"@owlmeans/server-iam": "^0.1.18-rc.23"` in `dependencies`
11
+ **Install:** `"@owlmeans/server-iam": "^0.1.18-rc.24"` in `dependencies`
12
12
 
13
13
  Boilerplate-less server-side consumer of the OwlMeans IAM. One call wires the OIDC RP stack and the
14
14
  IAM gate; the consumer never knows which IAM backend (Keycloak or integrated) is active.
@@ -85,7 +85,7 @@ simply skipped rather than the whole audit being lost.
85
85
 
86
86
  ```ts
87
87
  // module declaration
88
- gate(OIDC_GATE, ['department--modify@depId'])
88
+ { gate: { alias: OIDC_GATE, params: ['department--modify@depId'] } }
89
89
 
90
90
  // or imperative
91
91
  await ctx.service<GateService>(OIDC_GATE).assert(req, res, ['article--modify'])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/server-iam",
3
- "version": "0.1.18-rc.23",
3
+ "version": "0.1.18-rc.24",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -22,13 +22,13 @@
22
22
  }
23
23
  },
24
24
  "dependencies": {
25
- "@owlmeans/auth": "^0.1.18-rc.11",
26
- "@owlmeans/context": "^0.1.18-rc.10",
27
- "@owlmeans/entrypoint": "^0.1.18-rc.13",
28
- "@owlmeans/iam": "^0.1.18-rc.18",
29
- "@owlmeans/oidc": "^0.1.18-rc.15",
30
- "@owlmeans/server-context": "^0.1.18-rc.14",
31
- "@owlmeans/server-oidc-rp": "^0.1.18-rc.20"
25
+ "@owlmeans/auth": "^0.1.18-rc.12",
26
+ "@owlmeans/context": "^0.1.18-rc.11",
27
+ "@owlmeans/entrypoint": "^0.1.18-rc.14",
28
+ "@owlmeans/iam": "^0.1.18-rc.19",
29
+ "@owlmeans/oidc": "^0.1.18-rc.24",
30
+ "@owlmeans/server-context": "^0.1.18-rc.15",
31
+ "@owlmeans/server-oidc-rp": "^0.1.18-rc.21"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@owlmeans/dep-config": "workspace:*",