fastmcp 4.21.1 → 4.22.0

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.
Files changed (43) hide show
  1. package/README.md +23 -6
  2. package/dist/FastMCP.cjs +4 -3
  3. package/dist/FastMCP.cjs.map +1 -1
  4. package/dist/FastMCP.d.cts +9 -3
  5. package/dist/FastMCP.d.ts +9 -3
  6. package/dist/FastMCP.js +3 -2
  7. package/dist/{OAuthProvider-C4idKF29.d.cts → OAuthProvider-BcDb5bOz.d.cts} +8 -1
  8. package/dist/{OAuthProvider-C4idKF29.d.ts → OAuthProvider-BcDb5bOz.d.ts} +8 -1
  9. package/dist/auth/index.cjs +2 -2
  10. package/dist/auth/index.d.cts +2 -2
  11. package/dist/auth/index.d.ts +2 -2
  12. package/dist/auth/index.js +1 -1
  13. package/dist/{chunk-JNP6BG5L.js → chunk-43N2Q6ZI.js} +146 -36
  14. package/dist/chunk-43N2Q6ZI.js.map +1 -0
  15. package/dist/chunk-O22SYZMC.cjs +22 -0
  16. package/dist/chunk-O22SYZMC.cjs.map +1 -0
  17. package/dist/chunk-UMDUIBFW.js +22 -0
  18. package/dist/chunk-UMDUIBFW.js.map +1 -0
  19. package/dist/{chunk-IKH7YBYP.cjs → chunk-V4JBWBT4.cjs} +150 -40
  20. package/dist/chunk-V4JBWBT4.cjs.map +1 -0
  21. package/dist/{chunk-AR3LVWUF.js → chunk-XPKMA7DH.js} +22 -1
  22. package/dist/chunk-XPKMA7DH.js.map +1 -0
  23. package/dist/{chunk-GTPK7A57.cjs → chunk-YOBCXNFP.cjs} +22 -1
  24. package/dist/chunk-YOBCXNFP.cjs.map +1 -0
  25. package/dist/edge/index.cjs +7 -4
  26. package/dist/edge/index.cjs.map +1 -1
  27. package/dist/edge/index.js +6 -3
  28. package/dist/edge/index.js.map +1 -1
  29. package/dist/examples/custom-routes.cjs +4 -3
  30. package/dist/examples/custom-routes.cjs.map +1 -1
  31. package/dist/examples/custom-routes.js +3 -2
  32. package/dist/examples/custom-routes.js.map +1 -1
  33. package/dist/openapi/index.cjs +25 -9
  34. package/dist/openapi/index.cjs.map +1 -1
  35. package/dist/openapi/index.d.cts +5 -3
  36. package/dist/openapi/index.d.ts +5 -3
  37. package/dist/openapi/index.js +21 -5
  38. package/dist/openapi/index.js.map +1 -1
  39. package/package.json +2 -2
  40. package/dist/chunk-AR3LVWUF.js.map +0 -1
  41. package/dist/chunk-GTPK7A57.cjs.map +0 -1
  42. package/dist/chunk-IKH7YBYP.cjs.map +0 -1
  43. package/dist/chunk-JNP6BG5L.js.map +0 -1
package/README.md CHANGED
@@ -633,10 +633,12 @@ server.addTool({
633
633
 
634
634
  Works for `outputSchema` too. Note that FastMCP advertises input schemas with
635
635
  `additionalProperties: false`, whatever your schema said — the same treatment
636
- Zod and Valibot schemas get. The exception is a dictionary (an object with no
637
- `properties` and an `additionalProperties` schema, like `z.record()`), which
638
- keeps its value schema. Output schemas keep whatever additional-properties
639
- rule your schema declared.
636
+ Zod and Valibot schemas get. The exception is an object made only of
637
+ additional properties: a dictionary (no `properties` and an
638
+ `additionalProperties` schema, like `z.record()`) keeps its value schema, and a
639
+ free-form argument (`{ type: "object" }`, or `additionalProperties: true`)
640
+ stays open. Output schemas keep whatever additional-properties rule your schema
641
+ declared.
640
642
 
641
643
  Unlike the schema libraries above, a plain JSON Schema carries no TypeScript
642
644
  types, so `execute` receives `unknown` arguments. Cast or narrow them yourself.
@@ -750,6 +752,11 @@ server.addTool({
750
752
  });
751
753
  ```
752
754
 
755
+ A server without an `authenticate` function has no auth to check, so every
756
+ session sees every tool. With one, a session that still ends up without auth —
757
+ on stdio, where the server carries on when `authenticate` throws or returns
758
+ nothing — sees none of the tools that have `canAccess`.
759
+
753
760
  #### Returning a string
754
761
 
755
762
  `execute` can return a string:
@@ -1273,6 +1280,12 @@ The `log` object has the following methods:
1273
1280
  - `info(message: string, data?: SerializableValue)`
1274
1281
  - `warn(message: string, data?: SerializableValue)`
1275
1282
 
1283
+ A client can raise the minimum level it wants with the `logging/setLevel`
1284
+ request, and FastMCP then drops anything less severe instead of sending it — so
1285
+ after `logging/setLevel` with `error`, `log.debug` and `log.info` reach nobody.
1286
+ Until a client asks, every level is sent. The level in force is readable as
1287
+ [`session.loggingLevel`](#logginglevel).
1288
+
1276
1289
  #### Errors
1277
1290
 
1278
1291
  The errors that are meant to be shown to the user should be thrown as `UserError` instances:
@@ -1610,7 +1623,9 @@ server.addResource({
1610
1623
  await server.sendResourceUpdated("file:///logs/app.log");
1611
1624
  ```
1612
1625
 
1613
- `sendResourceUpdated` only notifies clients that have subscribed to the given URI, so it is safe to call whenever your data changes. FastMCP also advertises the `listChanged` capability for resources and prompts and emits `notifications/resources/list_changed` / `notifications/prompts/list_changed` automatically when you add or remove resources, resource templates, or prompts at runtime.
1626
+ `sendResourceUpdated` only notifies clients that have subscribed to the given URI, so it is safe to call whenever your data changes. FastMCP also advertises the `listChanged` capability for tools, resources and prompts and emits `notifications/tools/list_changed` / `notifications/resources/list_changed` / `notifications/prompts/list_changed` automatically when you add or remove tools, resources, resource templates, or prompts at runtime.
1627
+
1628
+ One session cannot be shown a kind of primitive it never negotiated. MCP settles capabilities during `initialize` and they hold for the life of the session, so a client that connected while the server had no resources at all will not see resources added later — FastMCP logs a warning naming the capability and leaves that session alone. Register one of each kind you intend to add before `start()`, or have the client reconnect; sessions that connect afterwards see everything.
1614
1629
 
1615
1630
  ### Resource templates
1616
1631
 
@@ -2625,7 +2640,9 @@ session.clientCapabilities;
2625
2640
 
2626
2641
  ### `loggingLevel`
2627
2642
 
2628
- The `loggingLevel` property describes the logging level as set by the client.
2643
+ The `loggingLevel` property describes the logging level as set by the client. It
2644
+ reads `info` until the client sends `logging/setLevel`; messages less severe than
2645
+ the level the client did set are dropped rather than sent.
2629
2646
 
2630
2647
  ```ts
2631
2648
  session.loggingLevel;
package/dist/FastMCP.cjs CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkIKH7YBYPcjs = require('./chunk-IKH7YBYP.cjs');
14
+ var _chunkV4JBWBT4cjs = require('./chunk-V4JBWBT4.cjs');
15
15
 
16
16
 
17
17
 
@@ -24,7 +24,8 @@ var _chunkIKH7YBYPcjs = require('./chunk-IKH7YBYP.cjs');
24
24
 
25
25
 
26
26
 
27
- var _chunkGTPK7A57cjs = require('./chunk-GTPK7A57.cjs');
27
+ var _chunkYOBCXNFPcjs = require('./chunk-YOBCXNFP.cjs');
28
+ require('./chunk-O22SYZMC.cjs');
28
29
 
29
30
 
30
31
 
@@ -49,5 +50,5 @@ var _chunkGTPK7A57cjs = require('./chunk-GTPK7A57.cjs');
49
50
 
50
51
 
51
52
 
52
- exports.AuthProvider = _chunkGTPK7A57cjs.AuthProvider; exports.AzureProvider = _chunkGTPK7A57cjs.AzureProvider; exports.DiscoveryDocumentCache = _chunkIKH7YBYPcjs.DiscoveryDocumentCache; exports.FastMCP = _chunkIKH7YBYPcjs.FastMCP; exports.FastMCPError = _chunkIKH7YBYPcjs.FastMCPError; exports.FastMCPSession = _chunkIKH7YBYPcjs.FastMCPSession; exports.GitHubProvider = _chunkGTPK7A57cjs.GitHubProvider; exports.GoogleProvider = _chunkGTPK7A57cjs.GoogleProvider; exports.MEDIA_FETCH_TIMEOUT_MS = _chunkIKH7YBYPcjs.MEDIA_FETCH_TIMEOUT_MS; exports.OAuthProvider = _chunkGTPK7A57cjs.OAuthProvider; exports.ServerState = _chunkIKH7YBYPcjs.ServerState; exports.SessionError = _chunkIKH7YBYPcjs.SessionError; exports.UnexpectedStateError = _chunkIKH7YBYPcjs.UnexpectedStateError; exports.UserError = _chunkIKH7YBYPcjs.UserError; exports.audioContent = _chunkIKH7YBYPcjs.audioContent; exports.getAuthSession = _chunkGTPK7A57cjs.getAuthSession; exports.imageContent = _chunkIKH7YBYPcjs.imageContent; exports.jsonSchemaAdapter = _chunkIKH7YBYPcjs.jsonSchemaAdapter; exports.requireAll = _chunkGTPK7A57cjs.requireAll; exports.requireAny = _chunkGTPK7A57cjs.requireAny; exports.requireAuth = _chunkGTPK7A57cjs.requireAuth; exports.requireRole = _chunkGTPK7A57cjs.requireRole; exports.requireScopes = _chunkGTPK7A57cjs.requireScopes;
53
+ exports.AuthProvider = _chunkYOBCXNFPcjs.AuthProvider; exports.AzureProvider = _chunkYOBCXNFPcjs.AzureProvider; exports.DiscoveryDocumentCache = _chunkV4JBWBT4cjs.DiscoveryDocumentCache; exports.FastMCP = _chunkV4JBWBT4cjs.FastMCP; exports.FastMCPError = _chunkV4JBWBT4cjs.FastMCPError; exports.FastMCPSession = _chunkV4JBWBT4cjs.FastMCPSession; exports.GitHubProvider = _chunkYOBCXNFPcjs.GitHubProvider; exports.GoogleProvider = _chunkYOBCXNFPcjs.GoogleProvider; exports.MEDIA_FETCH_TIMEOUT_MS = _chunkV4JBWBT4cjs.MEDIA_FETCH_TIMEOUT_MS; exports.OAuthProvider = _chunkYOBCXNFPcjs.OAuthProvider; exports.ServerState = _chunkV4JBWBT4cjs.ServerState; exports.SessionError = _chunkV4JBWBT4cjs.SessionError; exports.UnexpectedStateError = _chunkV4JBWBT4cjs.UnexpectedStateError; exports.UserError = _chunkV4JBWBT4cjs.UserError; exports.audioContent = _chunkV4JBWBT4cjs.audioContent; exports.getAuthSession = _chunkYOBCXNFPcjs.getAuthSession; exports.imageContent = _chunkV4JBWBT4cjs.imageContent; exports.jsonSchemaAdapter = _chunkV4JBWBT4cjs.jsonSchemaAdapter; exports.requireAll = _chunkYOBCXNFPcjs.requireAll; exports.requireAny = _chunkYOBCXNFPcjs.requireAny; exports.requireAuth = _chunkYOBCXNFPcjs.requireAuth; exports.requireRole = _chunkYOBCXNFPcjs.requireRole; exports.requireScopes = _chunkYOBCXNFPcjs.requireScopes;
53
54
  //# sourceMappingURL=FastMCP.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/fastmcp/fastmcp/dist/FastMCP.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,0yCAAC","file":"/home/runner/work/fastmcp/fastmcp/dist/FastMCP.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/fastmcp/fastmcp/dist/FastMCP.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,0yCAAC","file":"/home/runner/work/fastmcp/fastmcp/dist/FastMCP.cjs"}
@@ -12,8 +12,8 @@ import { CorsOptions } from 'mcp-proxy';
12
12
  export { CorsOptions } from 'mcp-proxy';
13
13
  import { StrictEventEmitter } from 'strict-event-emitter-types';
14
14
  import { z } from 'zod';
15
- import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-C4idKF29.cjs';
16
- export { j as AuthProviderConfig, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, d as OAuthProvider, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-C4idKF29.cjs';
15
+ import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-BcDb5bOz.cjs';
16
+ export { j as AuthProviderConfig, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, d as OAuthProvider, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-BcDb5bOz.cjs';
17
17
  import 'node:http';
18
18
 
19
19
  declare class DiscoveryDocumentCache {
@@ -916,8 +916,14 @@ declare class FastMCPSession<T extends FastMCPSessionAuth = FastMCPSessionAuth>
916
916
  */
917
917
  get sessionId(): string | undefined;
918
918
  set sessionId(value: string | undefined);
919
- constructor({ auth, hasTools, icons, instructions, logger, name, onToolCall, ping, prompts, resources, resourcesTemplates, roots, sessionId, stateless, streamKeepalive, title, tools, transportType, utils, version, websiteUrl, }: {
919
+ constructor({ auth, authRequired, hasTools, icons, instructions, logger, name, onToolCall, ping, prompts, resources, resourcesTemplates, roots, sessionId, stateless, streamKeepalive, title, tools, transportType, utils, version, websiteUrl, }: {
920
920
  auth?: T;
921
+ /**
922
+ * Whether the server authenticates its sessions (`authenticate` is
923
+ * configured). A session that has no auth even so sees none of the tools
924
+ * gated by `canAccess` (see `toolsVisibleTo`).
925
+ */
926
+ authRequired?: boolean;
921
927
  /**
922
928
  * Whether the server has any tools at all, including ones this session's
923
929
  * `canAccess` filtering removed from `tools`. Defaults to `tools.length > 0`.
package/dist/FastMCP.d.ts CHANGED
@@ -12,8 +12,8 @@ import { CorsOptions } from 'mcp-proxy';
12
12
  export { CorsOptions } from 'mcp-proxy';
13
13
  import { StrictEventEmitter } from 'strict-event-emitter-types';
14
14
  import { z } from 'zod';
15
- import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-C4idKF29.js';
16
- export { j as AuthProviderConfig, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, d as OAuthProvider, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-C4idKF29.js';
15
+ import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-BcDb5bOz.js';
16
+ export { j as AuthProviderConfig, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, d as OAuthProvider, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-BcDb5bOz.js';
17
17
  import 'node:http';
18
18
 
19
19
  declare class DiscoveryDocumentCache {
@@ -916,8 +916,14 @@ declare class FastMCPSession<T extends FastMCPSessionAuth = FastMCPSessionAuth>
916
916
  */
917
917
  get sessionId(): string | undefined;
918
918
  set sessionId(value: string | undefined);
919
- constructor({ auth, hasTools, icons, instructions, logger, name, onToolCall, ping, prompts, resources, resourcesTemplates, roots, sessionId, stateless, streamKeepalive, title, tools, transportType, utils, version, websiteUrl, }: {
919
+ constructor({ auth, authRequired, hasTools, icons, instructions, logger, name, onToolCall, ping, prompts, resources, resourcesTemplates, roots, sessionId, stateless, streamKeepalive, title, tools, transportType, utils, version, websiteUrl, }: {
920
920
  auth?: T;
921
+ /**
922
+ * Whether the server authenticates its sessions (`authenticate` is
923
+ * configured). A session that has no auth even so sees none of the tools
924
+ * gated by `canAccess` (see `toolsVisibleTo`).
925
+ */
926
+ authRequired?: boolean;
921
927
  /**
922
928
  * Whether the server has any tools at all, including ones this session's
923
929
  * `canAccess` filtering removed from `tools`. Defaults to `tools.length > 0`.
package/dist/FastMCP.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  audioContent,
12
12
  imageContent,
13
13
  jsonSchemaAdapter
14
- } from "./chunk-JNP6BG5L.js";
14
+ } from "./chunk-43N2Q6ZI.js";
15
15
  import {
16
16
  AuthProvider,
17
17
  AzureProvider,
@@ -24,7 +24,8 @@ import {
24
24
  requireAuth,
25
25
  requireRole,
26
26
  requireScopes
27
- } from "./chunk-AR3LVWUF.js";
27
+ } from "./chunk-XPKMA7DH.js";
28
+ import "./chunk-UMDUIBFW.js";
28
29
  export {
29
30
  AuthProvider,
30
31
  AzureProvider,
@@ -746,7 +746,7 @@ declare class OAuthProxyError extends Error {
746
746
  /**
747
747
  * Configuration common to all OAuth providers.
748
748
  */
749
- interface AuthProviderConfig {
749
+ interface AuthProviderConfig extends ForwardedProxyOptions {
750
750
  /**
751
751
  * Allow-list of redirect URI patterns accepted by Dynamic Client
752
752
  * Registration. Required for any deployment that exposes /oauth/register
@@ -805,6 +805,8 @@ interface OAuthSession {
805
805
  /** Scopes granted by the OAuth provider */
806
806
  scopes?: string[];
807
807
  }
808
+ /** OAuthProxy options that providers pass through unchanged. */
809
+ type ForwardedProxyOptions = Pick<OAuthProxyConfig, "allowPlainPkce" | "authorizationResponseIss" | "enableCimd">;
808
810
  /**
809
811
  * Abstract base class for OAuth providers.
810
812
  * Encapsulates OAuthProxy creation, authenticate function, and oauth config.
@@ -813,6 +815,11 @@ interface OAuthSession {
813
815
  */
814
816
  declare abstract class AuthProvider<TSession extends OAuthSession = OAuthSession> {
815
817
  protected config: AuthProviderConfig;
818
+ /**
819
+ * The forwarded proxy options that are set. Unset ones are left out so the
820
+ * proxy's own defaults apply.
821
+ */
822
+ protected get forwardedProxyOptions(): ForwardedProxyOptions;
816
823
  /**
817
824
  * Get the proxy, creating it lazily if needed.
818
825
  */
@@ -746,7 +746,7 @@ declare class OAuthProxyError extends Error {
746
746
  /**
747
747
  * Configuration common to all OAuth providers.
748
748
  */
749
- interface AuthProviderConfig {
749
+ interface AuthProviderConfig extends ForwardedProxyOptions {
750
750
  /**
751
751
  * Allow-list of redirect URI patterns accepted by Dynamic Client
752
752
  * Registration. Required for any deployment that exposes /oauth/register
@@ -805,6 +805,8 @@ interface OAuthSession {
805
805
  /** Scopes granted by the OAuth provider */
806
806
  scopes?: string[];
807
807
  }
808
+ /** OAuthProxy options that providers pass through unchanged. */
809
+ type ForwardedProxyOptions = Pick<OAuthProxyConfig, "allowPlainPkce" | "authorizationResponseIss" | "enableCimd">;
808
810
  /**
809
811
  * Abstract base class for OAuth providers.
810
812
  * Encapsulates OAuthProxy creation, authenticate function, and oauth config.
@@ -813,6 +815,11 @@ interface OAuthSession {
813
815
  */
814
816
  declare abstract class AuthProvider<TSession extends OAuthSession = OAuthSession> {
815
817
  protected config: AuthProviderConfig;
818
+ /**
819
+ * The forwarded proxy options that are set. Unset ones are left out so the
820
+ * proxy's own defaults apply.
821
+ */
822
+ protected get forwardedProxyOptions(): ForwardedProxyOptions;
816
823
  /**
817
824
  * Get the proxy, creating it lazily if needed.
818
825
  */
@@ -24,7 +24,7 @@
24
24
 
25
25
 
26
26
 
27
- var _chunkGTPK7A57cjs = require('../chunk-GTPK7A57.cjs');
27
+ var _chunkYOBCXNFPcjs = require('../chunk-YOBCXNFP.cjs');
28
28
 
29
29
 
30
30
 
@@ -51,5 +51,5 @@ var _chunkGTPK7A57cjs = require('../chunk-GTPK7A57.cjs');
51
51
 
52
52
 
53
53
 
54
- exports.AuthProvider = _chunkGTPK7A57cjs.AuthProvider; exports.AzureProvider = _chunkGTPK7A57cjs.AzureProvider; exports.ConsentManager = _chunkGTPK7A57cjs.ConsentManager; exports.DEFAULT_ACCESS_TOKEN_TTL = _chunkGTPK7A57cjs.DEFAULT_ACCESS_TOKEN_TTL; exports.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH = _chunkGTPK7A57cjs.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH; exports.DEFAULT_AUTHORIZATION_CODE_TTL = _chunkGTPK7A57cjs.DEFAULT_AUTHORIZATION_CODE_TTL; exports.DEFAULT_REFRESH_TOKEN_TTL = _chunkGTPK7A57cjs.DEFAULT_REFRESH_TOKEN_TTL; exports.DEFAULT_TRANSACTION_TTL = _chunkGTPK7A57cjs.DEFAULT_TRANSACTION_TTL; exports.DiskStore = _chunkGTPK7A57cjs.DiskStore; exports.EncryptedTokenStorage = _chunkGTPK7A57cjs.EncryptedTokenStorage; exports.GitHubProvider = _chunkGTPK7A57cjs.GitHubProvider; exports.GoogleProvider = _chunkGTPK7A57cjs.GoogleProvider; exports.JWKSVerifier = _chunkGTPK7A57cjs.JWKSVerifier; exports.JWTIssuer = _chunkGTPK7A57cjs.JWTIssuer; exports.MemoryTokenStorage = _chunkGTPK7A57cjs.MemoryTokenStorage; exports.OAuthProvider = _chunkGTPK7A57cjs.OAuthProvider; exports.OAuthProxy = _chunkGTPK7A57cjs.OAuthProxy; exports.OAuthProxyError = _chunkGTPK7A57cjs.OAuthProxyError; exports.PKCEUtils = _chunkGTPK7A57cjs.PKCEUtils; exports.getAuthSession = _chunkGTPK7A57cjs.getAuthSession; exports.requireAll = _chunkGTPK7A57cjs.requireAll; exports.requireAny = _chunkGTPK7A57cjs.requireAny; exports.requireAuth = _chunkGTPK7A57cjs.requireAuth; exports.requireRole = _chunkGTPK7A57cjs.requireRole; exports.requireScopes = _chunkGTPK7A57cjs.requireScopes;
54
+ exports.AuthProvider = _chunkYOBCXNFPcjs.AuthProvider; exports.AzureProvider = _chunkYOBCXNFPcjs.AzureProvider; exports.ConsentManager = _chunkYOBCXNFPcjs.ConsentManager; exports.DEFAULT_ACCESS_TOKEN_TTL = _chunkYOBCXNFPcjs.DEFAULT_ACCESS_TOKEN_TTL; exports.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH = _chunkYOBCXNFPcjs.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH; exports.DEFAULT_AUTHORIZATION_CODE_TTL = _chunkYOBCXNFPcjs.DEFAULT_AUTHORIZATION_CODE_TTL; exports.DEFAULT_REFRESH_TOKEN_TTL = _chunkYOBCXNFPcjs.DEFAULT_REFRESH_TOKEN_TTL; exports.DEFAULT_TRANSACTION_TTL = _chunkYOBCXNFPcjs.DEFAULT_TRANSACTION_TTL; exports.DiskStore = _chunkYOBCXNFPcjs.DiskStore; exports.EncryptedTokenStorage = _chunkYOBCXNFPcjs.EncryptedTokenStorage; exports.GitHubProvider = _chunkYOBCXNFPcjs.GitHubProvider; exports.GoogleProvider = _chunkYOBCXNFPcjs.GoogleProvider; exports.JWKSVerifier = _chunkYOBCXNFPcjs.JWKSVerifier; exports.JWTIssuer = _chunkYOBCXNFPcjs.JWTIssuer; exports.MemoryTokenStorage = _chunkYOBCXNFPcjs.MemoryTokenStorage; exports.OAuthProvider = _chunkYOBCXNFPcjs.OAuthProvider; exports.OAuthProxy = _chunkYOBCXNFPcjs.OAuthProxy; exports.OAuthProxyError = _chunkYOBCXNFPcjs.OAuthProxyError; exports.PKCEUtils = _chunkYOBCXNFPcjs.PKCEUtils; exports.getAuthSession = _chunkYOBCXNFPcjs.getAuthSession; exports.requireAll = _chunkYOBCXNFPcjs.requireAll; exports.requireAny = _chunkYOBCXNFPcjs.requireAny; exports.requireAuth = _chunkYOBCXNFPcjs.requireAuth; exports.requireRole = _chunkYOBCXNFPcjs.requireRole; exports.requireScopes = _chunkYOBCXNFPcjs.requireScopes;
55
55
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- import { p as OAuthTransaction, C as ConsentData, T as TokenStorage, q as TokenVerifier, s as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-C4idKF29.cjs';
2
- export { A as AuthProvider, j as AuthProviderConfig, y as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, z as ClientCode, B as DCRClientMetadata, E as DCRRequest, F as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, u as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, v as DEFAULT_AUTHORIZATION_CODE_TTL, w as DEFAULT_REFRESH_TOKEN_TTL, x as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, H as OAuthError, d as OAuthProvider, I as OAuthProviderConfig, a as OAuthProxy, J as OAuthProxyConfig, t as OAuthProxyError, O as OAuthSession, K as ProxyDCRClient, R as RefreshRequest, L as TokenMapping, M as TokenRequest, N as TokenResponse, U as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-C4idKF29.cjs';
1
+ import { p as OAuthTransaction, C as ConsentData, T as TokenStorage, q as TokenVerifier, s as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-BcDb5bOz.cjs';
2
+ export { A as AuthProvider, j as AuthProviderConfig, y as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, z as ClientCode, B as DCRClientMetadata, E as DCRRequest, F as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, u as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, v as DEFAULT_AUTHORIZATION_CODE_TTL, w as DEFAULT_REFRESH_TOKEN_TTL, x as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, H as OAuthError, d as OAuthProvider, I as OAuthProviderConfig, a as OAuthProxy, J as OAuthProxyConfig, t as OAuthProxyError, O as OAuthSession, K as ProxyDCRClient, R as RefreshRequest, L as TokenMapping, M as TokenRequest, N as TokenResponse, U as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-BcDb5bOz.cjs';
3
3
  import 'node:http';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { p as OAuthTransaction, C as ConsentData, T as TokenStorage, q as TokenVerifier, s as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-C4idKF29.js';
2
- export { A as AuthProvider, j as AuthProviderConfig, y as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, z as ClientCode, B as DCRClientMetadata, E as DCRRequest, F as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, u as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, v as DEFAULT_AUTHORIZATION_CODE_TTL, w as DEFAULT_REFRESH_TOKEN_TTL, x as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, H as OAuthError, d as OAuthProvider, I as OAuthProviderConfig, a as OAuthProxy, J as OAuthProxyConfig, t as OAuthProxyError, O as OAuthSession, K as ProxyDCRClient, R as RefreshRequest, L as TokenMapping, M as TokenRequest, N as TokenResponse, U as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-C4idKF29.js';
1
+ import { p as OAuthTransaction, C as ConsentData, T as TokenStorage, q as TokenVerifier, s as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-BcDb5bOz.js';
2
+ export { A as AuthProvider, j as AuthProviderConfig, y as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, z as ClientCode, B as DCRClientMetadata, E as DCRRequest, F as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, u as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, v as DEFAULT_AUTHORIZATION_CODE_TTL, w as DEFAULT_REFRESH_TOKEN_TTL, x as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, H as OAuthError, d as OAuthProvider, I as OAuthProviderConfig, a as OAuthProxy, J as OAuthProxyConfig, t as OAuthProxyError, O as OAuthSession, K as ProxyDCRClient, R as RefreshRequest, L as TokenMapping, M as TokenRequest, N as TokenResponse, U as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-BcDb5bOz.js';
3
3
  import 'node:http';
4
4
 
5
5
  /**
@@ -24,7 +24,7 @@ import {
24
24
  requireAuth,
25
25
  requireRole,
26
26
  requireScopes
27
- } from "../chunk-AR3LVWUF.js";
27
+ } from "../chunk-XPKMA7DH.js";
28
28
  export {
29
29
  AuthProvider,
30
30
  AzureProvider,