@owlmeans/auth-token 0.1.18-rc.7 → 0.1.18-rc.9

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
@@ -6,7 +6,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
6
6
  your project's skill store (`.agents/skills/`):
7
7
 
8
8
  ```sh
9
- npx @owlmeans/agent-skills@^0.1.18-rc.19
9
+ npx @owlmeans/agent-skills@^0.1.18-rc.21
10
10
  ```
11
11
 
12
12
  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/auth-token",
4
- "version": "0.1.18-rc.7",
5
- "generatedAt": "2026-09-12T13:51:53.537Z",
4
+ "version": "0.1.18-rc.9",
5
+ "generatedAt": "2026-09-15T12:21:31.929Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/auth-token
9
9
 
10
10
  **Layer:** Auth shared
11
- **Install:** `"@owlmeans/auth-token": "^0.1.18-rc.7"` in `dependencies`
11
+ **Install:** `"@owlmeans/auth-token": "^0.1.18-rc.9"` in `dependencies`
12
12
 
13
13
  The contract half of long-lived access tokens: the record shape, the route declarations, the
14
14
  format helpers, and one client-side guard that presents a token it was handed. The server half —
package/build/types.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { AuthRole } from '@owlmeans/auth';
2
2
  import type { ResourceRecord } from '@owlmeans/resource';
3
3
  import type { EntrypointProtocol, OpenRequest, OpenValue } from '@owlmeans/entrypoint';
4
+ import type { RouteParent } from '@owlmeans/route';
4
5
  /**
5
6
  * One long-lived access token, as stored.
6
7
  *
@@ -63,8 +64,8 @@ export interface TokenCarrierOptions {
63
64
  scheme?: 'auth-token' | 'bearer';
64
65
  }
65
66
  export interface AuthTokenEntrypointOptions {
66
- /** The entrypoint the token routes hang under. */
67
- parent?: string;
67
+ /** The entrypoint the token routes hang under. A parent protocol is preferred; strings remain adapter input. */
68
+ parent?: RouteParent;
68
69
  /** Path of the token base, relative to the parent. Defaults to `/tokens`. */
69
70
  path?: string;
70
71
  /** The guard the base carries when it has no parent to inherit one from. */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAEtF;;;;;;;;GAQG;AACH,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,6FAA6F;IAC7F,IAAI,EAAE,MAAM,CAAA;IACZ,4FAA4F;IAC5F,OAAO,EAAE,MAAM,CAAA;IACf,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,IAAI,EAAE,QAAQ,CAAA;IACd,SAAS,EAAE,IAAI,CAAA;IACf,SAAS,CAAC,EAAE,IAAI,CAAA;IAChB,mFAAmF;IACnF,UAAU,CAAC,EAAE,IAAI,CAAA;IACjB,SAAS,CAAC,EAAE,IAAI,CAAA;IAChB,4FAA4F;IAC5F,SAAS,CAAC,EAAE,IAAI,CAAA;CACjB;AAED,+DAA+D;AAC/D,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAA;AAE7D,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,oEAAoE;IACpE,MAAM,CAAC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AE,EAAE,MAAM,CAAA;CACX;AAED;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAA;IAChD,MAAM,CAAC,EAAE,YAAY,GAAG,QAAQ,CAAA;CACjC;AAED,MAAM,WAAW,0BAA0B;IACzC,gHAAgH;IAChH,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,6EAA6E;IAC7E,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,iEAAiE;AACjE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,kBAAkB,CAAC,WAAW,EAAE,SAAS,CAAC,CAAA;IAChD,IAAI,EAAE,kBAAkB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAA;IACtD,MAAM,EAAE,kBAAkB,CAAC;QAAE,IAAI,EAAE,iBAAiB,CAAA;KAAE,EAAE,iBAAiB,CAAC,CAAA;IAC1E,MAAM,EAAE,kBAAkB,CAAC;QAAE,MAAM,EAAE,iBAAiB,CAAA;KAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC1E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/auth-token",
3
- "version": "0.1.18-rc.7",
3
+ "version": "0.1.18-rc.9",
4
4
  "license": "MIT",
5
5
  "description": "Long-lived access tokens (API keys) on the OwlMeans auth rails — the record shape, the token format, the management entrypoints and the client-side carrier guard.",
6
6
  "type": "module",
@@ -23,11 +23,11 @@
23
23
  }
24
24
  },
25
25
  "dependencies": {
26
- "@owlmeans/auth": "^0.1.18-rc.16",
27
- "@owlmeans/context": "^0.1.18-rc.15",
28
- "@owlmeans/entrypoint": "^0.1.18-rc.18",
29
- "@owlmeans/resource": "^0.1.18-rc.16",
30
- "@owlmeans/route": "^0.1.18-rc.16"
26
+ "@owlmeans/auth": "^0.1.18-rc.18",
27
+ "@owlmeans/context": "^0.1.18-rc.17",
28
+ "@owlmeans/entrypoint": "^0.1.18-rc.20",
29
+ "@owlmeans/resource": "^0.1.18-rc.18",
30
+ "@owlmeans/route": "^0.1.18-rc.18"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@owlmeans/dep-config": "workspace:*",
package/src/types.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { AuthRole } from '@owlmeans/auth'
2
2
  import type { ResourceRecord } from '@owlmeans/resource'
3
3
  import type { EntrypointProtocol, OpenRequest, OpenValue } from '@owlmeans/entrypoint'
4
+ import type { RouteParent } from '@owlmeans/route'
4
5
 
5
6
  /**
6
7
  * One long-lived access token, as stored.
@@ -71,8 +72,8 @@ export interface TokenCarrierOptions {
71
72
  }
72
73
 
73
74
  export interface AuthTokenEntrypointOptions {
74
- /** The entrypoint the token routes hang under. */
75
- parent?: string
75
+ /** The entrypoint the token routes hang under. A parent protocol is preferred; strings remain adapter input. */
76
+ parent?: RouteParent
76
77
  /** Path of the token base, relative to the parent. Defaults to `/tokens`. */
77
78
  path?: string
78
79
  /** The guard the base carries when it has no parent to inherit one from. */