@absolutejs/auth 0.54.4 → 0.54.6

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/dist/types.d.ts CHANGED
@@ -2,6 +2,7 @@ import { CredentialsFor, CustomProviderCredentials, NonEmptyArray, OAuth2Client,
2
2
  import { Cookie, status as statusType, redirect as redirectType } from 'elysia';
3
3
  import { ElysiaCustomStatusResponse } from 'elysia/error';
4
4
  import type { ApiKeysConfig } from './apikeys/config';
5
+ import type { AgentAuthConfig } from './agents/config';
5
6
  import type { AuditConfig } from './audit/config';
6
7
  import type { AuthorizationConfig } from './authorization/config';
7
8
  import type { ComplianceConfig } from './compliance/config';
@@ -311,6 +312,10 @@ export type AuthConfig<UserType> = {
311
312
  * Pair with the exported `createApiKey` / `resolveApiPrincipal` / `hasScopes`
312
313
  * helpers to issue and guard with static keys. */
313
314
  apikeys?: ApiKeysConfig;
315
+ /** Standards-first delegated agent authorization. Mounts RFC 9728 protected-resource
316
+ * metadata and contributes `protectAgent`, while protocol adapters normalize verified
317
+ * credentials into durable agent registrations + user delegations. */
318
+ agentAuth?: AgentAuthConfig;
314
319
  /** OAuth2 / OIDC provider — makes your app an identity provider ("Sign in with
315
320
  * <yourapp>"). Mounts `{oidcRoute}/authorize` + `/token` + `/jwks` and
316
321
  * `/.well-known/openid-configuration`: authorization_code + mandatory PKCE, ES256
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.54.4",
2
+ "version": "0.54.6",
3
3
  "name": "@absolutejs/auth",
4
4
  "description": "An authorization library for absolutejs",
5
5
  "repository": {
@@ -17,7 +17,7 @@
17
17
  "license": "BSL-1.1",
18
18
  "author": "Alex Kahn",
19
19
  "scripts": {
20
- "build": "rm -rf dist && bun build src/index.ts src/saml.ts src/webauthn.ts src/htmx/index.ts src/client/index.ts src/client/react.ts src/client/vue.ts src/client/solid.ts src/client/svelte.ts src/plugins/index.ts src/providers/index.ts src/manifest.ts --root src --outdir dist --sourcemap --target=bun --external elysia --external react --external vue --external solid-js --external svelte --external @opentelemetry/api --external @simplewebauthn/server --external @node-saml/node-saml && bun build src/cli/migrate.ts --outdir dist/cli --sourcemap --target=bun --external @neondatabase/serverless --external drizzle-orm && bun build src/fingerprint-client/index.ts --outdir dist/fingerprint-client --sourcemap --target=browser && tsc --emitDeclarationOnly --project tsconfig.json && chmod +x dist/cli/migrate.js && absolute-manifest emit",
20
+ "build": "rm -rf dist && bun build src/index.ts src/agents/index.ts src/saml.ts src/webauthn.ts src/htmx/index.ts src/client/index.ts src/client/react.ts src/client/vue.ts src/client/solid.ts src/client/svelte.ts src/plugins/index.ts src/providers/index.ts src/manifest.ts --root src --outdir dist --sourcemap --target=bun --external elysia --external react --external vue --external solid-js --external svelte --external @opentelemetry/api --external @simplewebauthn/server --external @node-saml/node-saml && bun build src/cli/migrate.ts --outdir dist/cli --sourcemap --target=bun --external @neondatabase/serverless --external drizzle-orm && bun build src/fingerprint-client/index.ts --outdir dist/fingerprint-client --sourcemap --target=browser && tsc --emitDeclarationOnly --project tsconfig.json && chmod +x dist/cli/migrate.js && absolute-manifest emit",
21
21
  "config": "absolute config",
22
22
  "test": "bun test",
23
23
  "format": "absolute prettier --write",
@@ -74,7 +74,7 @@
74
74
  "dependencies": {
75
75
  "@absolutejs/linked-providers": "0.0.2",
76
76
  "@neondatabase/serverless": "1.0.0",
77
- "citra": "0.29.6",
77
+ "citra": "0.29.7",
78
78
  "@absolutejs/manifest": "^0.1.0",
79
79
  "@sinclair/typebox": "^0.34.0",
80
80
  "drizzle-orm": "1.0.0-rc.3"
@@ -116,6 +116,11 @@
116
116
  "types": "./dist/client/index.d.ts",
117
117
  "require": "./dist/client/index.js"
118
118
  },
119
+ "./agents": {
120
+ "import": "./dist/agents/index.js",
121
+ "types": "./dist/agents/index.d.ts",
122
+ "require": "./dist/agents/index.js"
123
+ },
119
124
  "./htmx": {
120
125
  "import": "./dist/htmx/index.js",
121
126
  "types": "./dist/htmx/index.d.ts",
@@ -180,6 +185,9 @@
180
185
  ],
181
186
  "typesVersions": {
182
187
  "*": {
188
+ "agents": [
189
+ "dist/agents/index.d.ts"
190
+ ],
183
191
  "saml": [
184
192
  "dist/saml.d.ts"
185
193
  ],