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.
- package/README.md +23 -6
- package/dist/FastMCP.cjs +4 -3
- package/dist/FastMCP.cjs.map +1 -1
- package/dist/FastMCP.d.cts +9 -3
- package/dist/FastMCP.d.ts +9 -3
- package/dist/FastMCP.js +3 -2
- package/dist/{OAuthProvider-C4idKF29.d.cts → OAuthProvider-BcDb5bOz.d.cts} +8 -1
- package/dist/{OAuthProvider-C4idKF29.d.ts → OAuthProvider-BcDb5bOz.d.ts} +8 -1
- package/dist/auth/index.cjs +2 -2
- package/dist/auth/index.d.cts +2 -2
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{chunk-JNP6BG5L.js → chunk-43N2Q6ZI.js} +146 -36
- package/dist/chunk-43N2Q6ZI.js.map +1 -0
- package/dist/chunk-O22SYZMC.cjs +22 -0
- package/dist/chunk-O22SYZMC.cjs.map +1 -0
- package/dist/chunk-UMDUIBFW.js +22 -0
- package/dist/chunk-UMDUIBFW.js.map +1 -0
- package/dist/{chunk-IKH7YBYP.cjs → chunk-V4JBWBT4.cjs} +150 -40
- package/dist/chunk-V4JBWBT4.cjs.map +1 -0
- package/dist/{chunk-AR3LVWUF.js → chunk-XPKMA7DH.js} +22 -1
- package/dist/chunk-XPKMA7DH.js.map +1 -0
- package/dist/{chunk-GTPK7A57.cjs → chunk-YOBCXNFP.cjs} +22 -1
- package/dist/chunk-YOBCXNFP.cjs.map +1 -0
- package/dist/edge/index.cjs +7 -4
- package/dist/edge/index.cjs.map +1 -1
- package/dist/edge/index.js +6 -3
- package/dist/edge/index.js.map +1 -1
- package/dist/examples/custom-routes.cjs +4 -3
- package/dist/examples/custom-routes.cjs.map +1 -1
- package/dist/examples/custom-routes.js +3 -2
- package/dist/examples/custom-routes.js.map +1 -1
- package/dist/openapi/index.cjs +25 -9
- package/dist/openapi/index.cjs.map +1 -1
- package/dist/openapi/index.d.cts +5 -3
- package/dist/openapi/index.d.ts +5 -3
- package/dist/openapi/index.js +21 -5
- package/dist/openapi/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-AR3LVWUF.js.map +0 -1
- package/dist/chunk-GTPK7A57.cjs.map +0 -1
- package/dist/chunk-IKH7YBYP.cjs.map +0 -1
- 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
|
|
637
|
-
|
|
638
|
-
keeps its value schema
|
|
639
|
-
|
|
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
|
|
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
|
|
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 =
|
|
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
|
package/dist/FastMCP.cjs.map
CHANGED
|
@@ -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"}
|
package/dist/FastMCP.d.cts
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
*/
|
package/dist/auth/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
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 =
|
|
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
|
package/dist/auth/index.d.cts
CHANGED
|
@@ -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-
|
|
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-
|
|
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
|
/**
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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
|
/**
|