@zuplo/runtime 6.56.7 → 6.57.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.
@@ -526,6 +526,10 @@ export declare interface Auth0JwtInboundPolicyOptions {
526
526
  * The Auth0 audience of your API, for example `https://api.example.com/`.
527
527
  */
528
528
  audience?: string;
529
+ /**
530
+ * Flag that determines whether OAuth protected resource metadata is enabled. This is useful for MCP Server OAuth support.
531
+ */
532
+ oAuthResourceMetadataEnabled?: boolean;
529
533
  }
530
534
 
531
535
  /**
@@ -5215,6 +5219,41 @@ declare interface NotFoundOptions {
5215
5219
  routesMatchedByPathOnly: RouteConfiguration[];
5216
5220
  }
5217
5221
 
5222
+ /**
5223
+ * Plugin for adding a route for a subset of OAuth protected resource metadata to Zuplo according to
5224
+ * RFC9728. Mostly useful for MCP Server OAuth support.
5225
+ *
5226
+ * @public
5227
+ */
5228
+ export declare class OAuthProtectedResourcePlugin extends SystemRuntimePlugin {
5229
+ private options;
5230
+ constructor(options: OAuthProtectedResourcePluginOptions);
5231
+ private createOauthProtectedResourceHandler;
5232
+ registerRoutes(options: {
5233
+ router: Router;
5234
+ runtimeSettings: RuntimeSettings;
5235
+ }): void;
5236
+ }
5237
+
5238
+ /**
5239
+ * Options for the OAuthProtectedResourcePlugin
5240
+ *
5241
+ * @public
5242
+ */
5243
+ export declare interface OAuthProtectedResourcePluginOptions {
5244
+ /**
5245
+ * List of OAuth authorization server issuer identifiers that can be used with this protected resource.
5246
+ * These should be the base URLs of authorization servers (e.g., "https://auth.example.com"). Note that
5247
+ * the authorization servers should be compliant with RFC8414 (see https://datatracker.ietf.org/doc/html/rfc8414)
5248
+ */
5249
+ authorizationServers?: string[];
5250
+ /**
5251
+ * Human-readable name of the protected resource intended for display to end users.
5252
+ * This field is recommended by RFC 9728.
5253
+ */
5254
+ resourceName?: string;
5255
+ }
5256
+
5218
5257
  /**
5219
5258
  * Authorize requests using Okta FGA.
5220
5259
  *
@@ -6044,6 +6083,10 @@ export declare interface OpenIdJwtInboundPolicyOptions {
6044
6083
  headers?: {
6045
6084
  [k: string]: string;
6046
6085
  };
6086
+ /**
6087
+ * Flag that determines whether OAuth protected resource metadata is enabled. This is useful for MCP Server OAuth support.
6088
+ */
6089
+ oAuthResourceMetadataEnabled?: boolean;
6047
6090
  }
6048
6091
 
6049
6092
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "6.56.7",
4
+ "version": "6.57.0",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {