@zuplo/runtime 6.62.9 → 6.62.11
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/out/esm/index.js +45 -45
- package/out/esm/index.js.map +1 -1
- package/out/types/index.d.ts +51 -6
- package/package.json +1 -1
package/out/types/index.d.ts
CHANGED
|
@@ -2574,6 +2574,29 @@ export declare interface DispatchRequestLoggerEntries<T> {
|
|
|
2574
2574
|
(entries: T[]): Promise<void>;
|
|
2575
2575
|
}
|
|
2576
2576
|
|
|
2577
|
+
/**
|
|
2578
|
+
* Fetches IDP metadata from gateway service and routes to the appropriate
|
|
2579
|
+
* provider-specific policy. This policy is intended only to be used in MCP
|
|
2580
|
+
* Gateway projects.
|
|
2581
|
+
*
|
|
2582
|
+
* @title Dynamic JWT Auth
|
|
2583
|
+
* @public
|
|
2584
|
+
* @param request - The ZuploRequest
|
|
2585
|
+
* @param context - The ZuploContext
|
|
2586
|
+
* @param options - The policy options set in policies.json
|
|
2587
|
+
* @param policyName - The name of the policy as set in policies.json
|
|
2588
|
+
* @returns A Request or a Response
|
|
2589
|
+
*/
|
|
2590
|
+
export declare const DynamicJwtAuthInboundPolicy: InboundPolicyHandler<DynamicJwtAuthInboundPolicyOptions>;
|
|
2591
|
+
|
|
2592
|
+
/**
|
|
2593
|
+
* The options for this policy.
|
|
2594
|
+
* @public
|
|
2595
|
+
*/
|
|
2596
|
+
export declare interface DynamicJwtAuthInboundPolicyOptions {}
|
|
2597
|
+
|
|
2598
|
+
/* Excluded from this release type: DynamicOAuthProtectedResourcePlugin */
|
|
2599
|
+
|
|
2577
2600
|
declare interface DynaTraceLoggingOptions {
|
|
2578
2601
|
url: string;
|
|
2579
2602
|
apiToken: string;
|
|
@@ -4488,6 +4511,15 @@ export declare interface HydrolixRequestLoggerPluginOptions<T> {
|
|
|
4488
4511
|
batchPeriodSeconds?: number;
|
|
4489
4512
|
}
|
|
4490
4513
|
|
|
4514
|
+
/**
|
|
4515
|
+
* Supported identity providers for authentication
|
|
4516
|
+
*/
|
|
4517
|
+
declare const IDP_PROVIDERS: {
|
|
4518
|
+
readonly auth0: "auth0";
|
|
4519
|
+
};
|
|
4520
|
+
|
|
4521
|
+
declare type IdpProvider = (typeof IDP_PROVIDERS)[keyof typeof IDP_PROVIDERS];
|
|
4522
|
+
|
|
4491
4523
|
/**
|
|
4492
4524
|
* A policy that can modify the incoming HTTP request before it is sent to
|
|
4493
4525
|
* the handler. If a response is returned, the request is short-circuited and
|
|
@@ -5201,6 +5233,10 @@ export declare interface McpGatewayConfig {
|
|
|
5201
5233
|
* Array of MCP server configurations
|
|
5202
5234
|
*/
|
|
5203
5235
|
servers: McpGatewayServerConfig[];
|
|
5236
|
+
/**
|
|
5237
|
+
* Metadata for the identity provider used for authentication
|
|
5238
|
+
*/
|
|
5239
|
+
mcpIdpMetadata: McpIdpMetadata;
|
|
5204
5240
|
}
|
|
5205
5241
|
|
|
5206
5242
|
/**
|
|
@@ -5280,6 +5316,12 @@ declare interface McpGatewayTool {
|
|
|
5280
5316
|
inputSchema: object;
|
|
5281
5317
|
}
|
|
5282
5318
|
|
|
5319
|
+
declare interface McpIdpMetadata {
|
|
5320
|
+
authorizationServers: string[];
|
|
5321
|
+
provider: IdpProvider;
|
|
5322
|
+
providerOptions: Record<string, unknown>;
|
|
5323
|
+
}
|
|
5324
|
+
|
|
5283
5325
|
/**
|
|
5284
5326
|
* An MCP Server handler for Zuplo
|
|
5285
5327
|
* Only POST requests are supported for the HTTP streamable MCP transport.
|
|
@@ -5754,20 +5796,23 @@ declare interface NotFoundOptions {
|
|
|
5754
5796
|
routesMatchedByPathOnly: RouteConfiguration[];
|
|
5755
5797
|
}
|
|
5756
5798
|
|
|
5799
|
+
/* Excluded from this release type: OAuthProtectedResourceBasePlugin */
|
|
5800
|
+
|
|
5801
|
+
/* Excluded from this release type: OAuthProtectedResourceMetadataOptions */
|
|
5802
|
+
|
|
5757
5803
|
/**
|
|
5758
5804
|
* Plugin for adding a route for a subset of OAuth protected resource metadata to Zuplo according to
|
|
5759
5805
|
* RFC9728. Mostly useful for MCP Server OAuth support.
|
|
5760
5806
|
*
|
|
5761
5807
|
* @public
|
|
5762
5808
|
*/
|
|
5763
|
-
export declare class OAuthProtectedResourcePlugin extends
|
|
5809
|
+
export declare class OAuthProtectedResourcePlugin extends OAuthProtectedResourceBasePlugin {
|
|
5764
5810
|
private options;
|
|
5765
5811
|
constructor(options: OAuthProtectedResourcePluginOptions);
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
}): void;
|
|
5812
|
+
protected getMetadataOptions(
|
|
5813
|
+
_request: ZuploRequest,
|
|
5814
|
+
_context: ZuploContext
|
|
5815
|
+
): Promise<OAuthProtectedResourceMetadataOptions>;
|
|
5771
5816
|
}
|
|
5772
5817
|
|
|
5773
5818
|
/**
|