@zuplo/runtime 6.73.28 → 6.73.30

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.
@@ -5,7 +5,6 @@ import { InboundPolicyHandler as InboundPolicyHandler_2 } from "../../policies.j
5
5
  import { KeyLike } from "jose";
6
6
  import { RequestGeneric as RequestGeneric_2 } from "../../request.js";
7
7
  import type { ValidateFunction } from "ajv";
8
- import { z } from "zod/v4";
9
8
 
10
9
  /**
11
10
  * The request/response **schema dialect** a policy is dealing with — named after
@@ -357,10 +356,10 @@ export declare function aiGatewayHandler(
357
356
  ): Promise<Response>;
358
357
 
359
358
  /**
360
- * Routes AI requests using the model selection stored in the request context.
361
- * Attach the `ai-gateway-model-filtering-v2-inbound` policy before this handler
362
- * runs, or call `AIGatewayModelRouting.set(context, routing)` from a custom
363
- * inbound policy.
359
+ * Routes AI requests using a model selection stored in request context by a
360
+ * filtering or custom-routing policy. When no policy selected routing, the
361
+ * handler uses the request's `providerName/model` as the route target. Requests
362
+ * without preselected routing must include a qualified model.
364
363
  *
365
364
  * @beta
366
365
  * @param request - The incoming AI Gateway request.
@@ -374,9 +373,6 @@ export declare function aiGatewayHandler(
374
373
  * "handler": {
375
374
  * "export": "aiGatewayHandlerV2",
376
375
  * "module": "$import(@zuplo/runtime)"
377
- * },
378
- * "policies": {
379
- * "inbound": ["ai-gateway-model-filtering-v2-inbound"]
380
376
  * }
381
377
  * }
382
378
  * ```
@@ -475,7 +471,6 @@ export declare class AIGatewayMeteringInboundPolicy extends InboundPolicy<AIGate
475
471
  increments: AIGatewayMeterIncrements,
476
472
  context: ZuploContext
477
473
  ): Promise<void>;
478
- private static incrementMetersInternal;
479
474
  private checkWarnings;
480
475
  private checkQuotaWarning;
481
476
  private createHierarchicalQuotaExceededResponse;
@@ -492,6 +487,131 @@ export declare interface AIGatewayMeteringInboundPolicyOptions {
492
487
  throwOnFailure?: boolean;
493
488
  }
494
489
 
490
+ /**
491
+ * Meters AI Gateway v2 usage and enforces options-driven usage limits.
492
+ *
493
+ * The authentication policy must run before this policy so the app
494
+ * configuration id is available for meter storage and analytics.
495
+ *
496
+ * @title AI Gateway Metering (v2)
497
+ * @beta
498
+ * @product ai-gateway
499
+ * @requiresAI
500
+ * @param request - The ZuploRequest
501
+ * @param context - The ZuploContext
502
+ * @param options - The policy options set in policies.json
503
+ * @param policyName - The name of the policy as set in policies.json
504
+ * @returns The request, or a 429 response when a limit is exceeded
505
+ */
506
+ export declare class AIGatewayMeteringV2InboundPolicy extends InboundPolicy<AIGatewayMeteringV2InboundPolicyOptions> {
507
+ #private;
508
+ static readonly policyType = "ai-gateway-metering-v2";
509
+ constructor(
510
+ options: AIGatewayMeteringV2InboundPolicyOptions,
511
+ policyName: string
512
+ );
513
+ /** Set the meter increments accumulated for this request. */
514
+ static setIncrements(
515
+ context: ZuploContext,
516
+ increments: AIGatewayMeterIncrements
517
+ ): void;
518
+ /** Read the meter increments accumulated for this request. */
519
+ static getIncrements(context: ZuploContext): AIGatewayMeterIncrements;
520
+ /** Set the quota-fallback marker for this request. */
521
+ static setQuotaFallback(
522
+ context: ZuploContext,
523
+ quotaFallback: QuotaFallbackModels
524
+ ): void;
525
+ /** Read the quota-fallback marker for this request. */
526
+ static getQuotaFallback(
527
+ context: ZuploContext
528
+ ): QuotaFallbackModels | undefined;
529
+ /**
530
+ * Compose request-scoped limit overrides with any limits already set.
531
+ *
532
+ * Limits intentionally merge at each meter, period, and setting leaf because
533
+ * independent policies may tighten one path without restating sibling limits.
534
+ * Defined values from the newest call win; undefined values never erase an
535
+ * earlier value.
536
+ *
537
+ * @param context - The current request context
538
+ * @param limits - Limits or partial leaf overrides to compose
539
+ */
540
+ static setLimits(
541
+ context: ZuploContext,
542
+ limits: AIGatewayMeteringV2LimitOverrides
543
+ ): void;
544
+ /** Read request-scoped limit overrides. */
545
+ static getLimits(
546
+ context: ZuploContext
547
+ ): AIGatewayMeteringV2LimitOverrides | undefined;
548
+ /** Increment meters directly, for example after a streaming response. */
549
+ static incrementMeters(
550
+ configurationId: string,
551
+ increments: AIGatewayMeterIncrements,
552
+ context: ZuploContext
553
+ ): Promise<void>;
554
+ handler(
555
+ request: ZuploRequest,
556
+ context: ZuploContext
557
+ ): Promise<ZuploRequest | Response>;
558
+ private resolveConfiguration;
559
+ private fetchCurrentMeters;
560
+ private checkWarnings;
561
+ private hasWarning;
562
+ private findViolation;
563
+ private requestCapability;
564
+ private createQuotaExceededResponse;
565
+ }
566
+
567
+ /**
568
+ * Options for metering AI Gateway v2 usage and enforcing request-time limits.
569
+ * @public
570
+ */
571
+ export declare interface AIGatewayMeteringV2InboundPolicyOptions {
572
+ /**
573
+ * Throw when the metering service is unavailable instead of failing open.
574
+ */
575
+ throwOnFailure?: boolean;
576
+ /**
577
+ * Usage limits grouped by meter.
578
+ */
579
+ limits?: {
580
+ costs?: QuotaLimit;
581
+ tokens?: QuotaLimit;
582
+ requests?: QuotaLimit;
583
+ };
584
+ }
585
+
586
+ /**
587
+ * Request-scoped usage-limit overrides accepted by
588
+ * `AIGatewayMeteringV2InboundPolicy.setLimits`.
589
+ */
590
+ export declare interface AIGatewayMeteringV2LimitOverrides {
591
+ costs?: AIGatewayMeteringV2MeterLimitOverrides;
592
+ tokens?: AIGatewayMeteringV2MeterLimitOverrides;
593
+ requests?: AIGatewayMeteringV2MeterLimitOverrides;
594
+ }
595
+
596
+ /** Daily and monthly overrides for one usage meter. */
597
+ declare interface AIGatewayMeteringV2MeterLimitOverrides {
598
+ daily?: AIGatewayMeteringV2PeriodLimitOverride;
599
+ monthly?: AIGatewayMeteringV2PeriodLimitOverride;
600
+ }
601
+
602
+ /** Settings that a policy can override for one usage-limit period. */
603
+ declare interface AIGatewayMeteringV2PeriodLimitOverride {
604
+ enabled?: boolean;
605
+ limit?: number;
606
+ warning?: AIGatewayMeteringV2WarningLimitOverride;
607
+ }
608
+
609
+ /** Warning settings that a policy can override for one usage-limit period. */
610
+ declare interface AIGatewayMeteringV2WarningLimitOverride {
611
+ enabled?: boolean;
612
+ threshold?: number;
613
+ }
614
+
495
615
  /**
496
616
  * Matches AI Gateway requests against curated allow lists or open block lists,
497
617
  * then stores the winning model reference for the route handler.
@@ -573,8 +693,10 @@ export declare interface AIGatewayModelInfo {
573
693
  *
574
694
  * The built-in model-routing policy matches the request against its allowList
575
695
  * of {@link AIGatewayRouteTarget} items, then `set()`s the winning target.
576
- * Custom policies can call `set()` directly instead. Provider API keys are
577
- * resolved internally and are never returned by `get()`.
696
+ * Custom policies can call `set()` directly instead. If neither kind of policy
697
+ * selects routing, `aiGatewayHandlerV2` calls `set()` with the request's
698
+ * `providerName/model`. Provider API keys are resolved internally and are never
699
+ * returned by `get()`.
578
700
  *
579
701
  * @public
580
702
  * @example
@@ -6731,6 +6853,27 @@ export declare interface HydrolixRequestLoggerPluginOptions<T> {
6731
6853
  batchPeriodSeconds?: number;
6732
6854
  }
6733
6855
 
6856
+ /**
6857
+ * Hand-written mirror of {@link idJagConfigSchema}'s parsed output. Keeping
6858
+ * the type hand-written keeps zod out of the public policy class signatures
6859
+ * (this type is part of {@link McpOAuthRuntimeConfig}); the assertion below
6860
+ * fails to compile on drift.
6861
+ */
6862
+ declare type IdJagRuntimeConfig =
6863
+ | {
6864
+ enabled: false;
6865
+ }
6866
+ | {
6867
+ enabled: true;
6868
+ trustedIssuers: {
6869
+ issuer: string;
6870
+ jwksUrl: string;
6871
+ expectedClientIds?: string[];
6872
+ subjectMapping: "iss_prefix" | "iss_tenant_prefix" | "sub_id_only";
6873
+ }[];
6874
+ authorizationDetailsTypesAllowed?: string[];
6875
+ };
6876
+
6734
6877
  /**
6735
6878
  * Image generation tool
6736
6879
  */
@@ -7600,7 +7743,7 @@ declare type MaxConversationLength = number;
7600
7743
  * @title MCP Auth0 OAuth
7601
7744
  * @product mcp-gateway
7602
7745
  */
7603
- export declare class McpAuth0OAuthInboundPolicy extends InboundPolicy<ValidatedAuth0OAuthOptions> {
7746
+ export declare class McpAuth0OAuthInboundPolicy extends InboundPolicy<McpAuth0OAuthInboundPolicyOptions> {
7604
7747
  #private;
7605
7748
  static readonly policyType = "mcp-auth0-oauth";
7606
7749
  constructor(rawOptions: unknown, policyName: string);
@@ -7729,44 +7872,6 @@ export declare interface McpAuth0OAuthInboundPolicyOptions {
7729
7872
  };
7730
7873
  }
7731
7874
 
7732
- declare const mcpAuth0OAuthOptionsSchema: z.ZodObject<
7733
- {
7734
- auth0Domain: z.ZodString;
7735
- audience: z.ZodOptional<z.ZodString>;
7736
- clientId: z.ZodString;
7737
- clientSecret: z.ZodString;
7738
- scope: z.ZodOptional<z.ZodString>;
7739
- gateway: z.ZodOptional<
7740
- z.ZodObject<
7741
- {
7742
- accessTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
7743
- refreshTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
7744
- cimdEnabled: z.ZodOptional<z.ZodBoolean>;
7745
- },
7746
- z.core.$strict
7747
- >
7748
- >;
7749
- idJag: z.ZodOptional<z.ZodUnknown>;
7750
- browserLoginOverrides: z.ZodOptional<
7751
- z.ZodObject<
7752
- {
7753
- remoteTimeoutMs: z.ZodOptional<z.ZodNumber>;
7754
- stateTtlSeconds: z.ZodOptional<z.ZodNumber>;
7755
- sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
7756
- pkce: z.ZodOptional<
7757
- z.ZodEnum<{
7758
- none: "none";
7759
- S256: "S256";
7760
- }>
7761
- >;
7762
- },
7763
- z.core.$strict
7764
- >
7765
- >;
7766
- },
7767
- z.core.$strict
7768
- >;
7769
-
7770
7875
  /**
7771
7876
  * Authenticate MCP gateway requests using a gateway-issued OAuth access token,
7772
7877
  * with browser login delegated to Clerk.
@@ -7779,7 +7884,7 @@ declare const mcpAuth0OAuthOptionsSchema: z.ZodObject<
7779
7884
  * @public
7780
7885
  * @product mcp-gateway
7781
7886
  */
7782
- export declare class McpClerkOAuthInboundPolicy extends InboundPolicy<ValidatedClerkOAuthOptions> {
7887
+ export declare class McpClerkOAuthInboundPolicy extends InboundPolicy<McpClerkOAuthInboundPolicyOptions> {
7783
7888
  #private;
7784
7889
  static readonly policyType = "mcp-clerk-oauth";
7785
7890
  constructor(rawOptions: unknown, policyName: string);
@@ -7900,37 +8005,6 @@ export declare interface McpClerkOAuthInboundPolicyOptions {
7900
8005
  };
7901
8006
  }
7902
8007
 
7903
- declare const mcpClerkOAuthOptionsSchema: z.ZodObject<
7904
- {
7905
- frontendApiUrl: z.ZodString;
7906
- clientId: z.ZodString;
7907
- clientSecret: z.ZodString;
7908
- scope: z.ZodOptional<z.ZodString>;
7909
- gateway: z.ZodOptional<
7910
- z.ZodObject<
7911
- {
7912
- accessTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
7913
- refreshTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
7914
- cimdEnabled: z.ZodOptional<z.ZodBoolean>;
7915
- },
7916
- z.core.$strict
7917
- >
7918
- >;
7919
- idJag: z.ZodOptional<z.ZodUnknown>;
7920
- browserLoginOverrides: z.ZodOptional<
7921
- z.ZodObject<
7922
- {
7923
- remoteTimeoutMs: z.ZodOptional<z.ZodNumber>;
7924
- stateTtlSeconds: z.ZodOptional<z.ZodNumber>;
7925
- sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
7926
- },
7927
- z.core.$strict
7928
- >
7929
- >;
7930
- },
7931
- z.core.$strict
7932
- >;
7933
-
7934
8008
  /**
7935
8009
  * Authenticate MCP gateway requests using a gateway-issued OAuth access token,
7936
8010
  * with browser login delegated to Amazon Cognito.
@@ -7944,7 +8018,7 @@ declare const mcpClerkOAuthOptionsSchema: z.ZodObject<
7944
8018
  * @public
7945
8019
  * @product mcp-gateway
7946
8020
  */
7947
- export declare class McpCognitoOAuthInboundPolicy extends InboundPolicy<ValidatedCognitoOAuthOptions> {
8021
+ export declare class McpCognitoOAuthInboundPolicy extends InboundPolicy<McpCognitoOAuthInboundPolicyOptions> {
7948
8022
  #private;
7949
8023
  static readonly policyType = "mcp-cognito-oauth";
7950
8024
  constructor(rawOptions: unknown, policyName: string);
@@ -8077,45 +8151,6 @@ export declare interface McpCognitoOAuthInboundPolicyOptions {
8077
8151
  };
8078
8152
  }
8079
8153
 
8080
- declare const mcpCognitoOAuthOptionsSchema: z.ZodObject<
8081
- {
8082
- awsRegion: z.ZodString;
8083
- userPoolId: z.ZodString;
8084
- userPoolDomain: z.ZodString;
8085
- clientId: z.ZodString;
8086
- clientSecret: z.ZodString;
8087
- scope: z.ZodOptional<z.ZodString>;
8088
- gateway: z.ZodOptional<
8089
- z.ZodObject<
8090
- {
8091
- accessTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
8092
- refreshTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
8093
- cimdEnabled: z.ZodOptional<z.ZodBoolean>;
8094
- },
8095
- z.core.$strict
8096
- >
8097
- >;
8098
- idJag: z.ZodOptional<z.ZodUnknown>;
8099
- browserLoginOverrides: z.ZodOptional<
8100
- z.ZodObject<
8101
- {
8102
- remoteTimeoutMs: z.ZodOptional<z.ZodNumber>;
8103
- stateTtlSeconds: z.ZodOptional<z.ZodNumber>;
8104
- sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
8105
- pkce: z.ZodOptional<
8106
- z.ZodEnum<{
8107
- none: "none";
8108
- S256: "S256";
8109
- }>
8110
- >;
8111
- },
8112
- z.core.$strict
8113
- >
8114
- >;
8115
- },
8116
- z.core.$strict
8117
- >;
8118
-
8119
8154
  /**
8120
8155
  * Authenticate MCP gateway requests using a gateway-issued OAuth access token,
8121
8156
  * with browser login delegated to Microsoft Entra ID.
@@ -8128,7 +8163,7 @@ declare const mcpCognitoOAuthOptionsSchema: z.ZodObject<
8128
8163
  * @public
8129
8164
  * @product mcp-gateway
8130
8165
  */
8131
- export declare class McpEntraOAuthInboundPolicy extends InboundPolicy<ValidatedEntraOAuthOptions> {
8166
+ export declare class McpEntraOAuthInboundPolicy extends InboundPolicy<McpEntraOAuthInboundPolicyOptions> {
8132
8167
  #private;
8133
8168
  static readonly policyType = "mcp-entra-oauth";
8134
8169
  constructor(rawOptions: unknown, policyName: string);
@@ -8253,43 +8288,6 @@ export declare interface McpEntraOAuthInboundPolicyOptions {
8253
8288
  };
8254
8289
  }
8255
8290
 
8256
- declare const mcpEntraOAuthOptionsSchema: z.ZodObject<
8257
- {
8258
- tenantId: z.ZodString;
8259
- clientId: z.ZodString;
8260
- clientSecret: z.ZodString;
8261
- scope: z.ZodOptional<z.ZodString>;
8262
- gateway: z.ZodOptional<
8263
- z.ZodObject<
8264
- {
8265
- accessTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
8266
- refreshTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
8267
- cimdEnabled: z.ZodOptional<z.ZodBoolean>;
8268
- },
8269
- z.core.$strict
8270
- >
8271
- >;
8272
- idJag: z.ZodOptional<z.ZodUnknown>;
8273
- browserLoginOverrides: z.ZodOptional<
8274
- z.ZodObject<
8275
- {
8276
- remoteTimeoutMs: z.ZodOptional<z.ZodNumber>;
8277
- stateTtlSeconds: z.ZodOptional<z.ZodNumber>;
8278
- sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
8279
- pkce: z.ZodOptional<
8280
- z.ZodEnum<{
8281
- none: "none";
8282
- S256: "S256";
8283
- }>
8284
- >;
8285
- },
8286
- z.core.$strict
8287
- >
8288
- >;
8289
- },
8290
- z.core.$strict
8291
- >;
8292
-
8293
8291
  /* Excluded from this release type: McpGatewayOAuthProtectedResourcePlugin */
8294
8292
 
8295
8293
  /**
@@ -8305,7 +8303,7 @@ declare const mcpEntraOAuthOptionsSchema: z.ZodObject<
8305
8303
  * @public
8306
8304
  * @product mcp-gateway
8307
8305
  */
8308
- export declare class McpGoogleOAuthInboundPolicy extends InboundPolicy<ValidatedGoogleOAuthOptions> {
8306
+ export declare class McpGoogleOAuthInboundPolicy extends InboundPolicy<McpGoogleOAuthInboundPolicyOptions> {
8309
8307
  #private;
8310
8308
  static readonly policyType = "mcp-google-oauth";
8311
8309
  constructor(rawOptions: unknown, policyName: string);
@@ -8426,42 +8424,6 @@ export declare interface McpGoogleOAuthInboundPolicyOptions {
8426
8424
  };
8427
8425
  }
8428
8426
 
8429
- declare const mcpGoogleOAuthOptionsSchema: z.ZodObject<
8430
- {
8431
- clientId: z.ZodString;
8432
- clientSecret: z.ZodString;
8433
- scope: z.ZodOptional<z.ZodString>;
8434
- gateway: z.ZodOptional<
8435
- z.ZodObject<
8436
- {
8437
- accessTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
8438
- refreshTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
8439
- cimdEnabled: z.ZodOptional<z.ZodBoolean>;
8440
- },
8441
- z.core.$strict
8442
- >
8443
- >;
8444
- idJag: z.ZodOptional<z.ZodUnknown>;
8445
- browserLoginOverrides: z.ZodOptional<
8446
- z.ZodObject<
8447
- {
8448
- remoteTimeoutMs: z.ZodOptional<z.ZodNumber>;
8449
- stateTtlSeconds: z.ZodOptional<z.ZodNumber>;
8450
- sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
8451
- pkce: z.ZodOptional<
8452
- z.ZodEnum<{
8453
- none: "none";
8454
- S256: "S256";
8455
- }>
8456
- >;
8457
- },
8458
- z.core.$strict
8459
- >
8460
- >;
8461
- },
8462
- z.core.$strict
8463
- >;
8464
-
8465
8427
  /**
8466
8428
  * Authenticate MCP gateway requests using a gateway-issued OAuth access token,
8467
8429
  * with browser login delegated to Keycloak.
@@ -8475,7 +8437,7 @@ declare const mcpGoogleOAuthOptionsSchema: z.ZodObject<
8475
8437
  * @public
8476
8438
  * @product mcp-gateway
8477
8439
  */
8478
- export declare class McpKeycloakOAuthInboundPolicy extends InboundPolicy<ValidatedKeycloakOAuthOptions> {
8440
+ export declare class McpKeycloakOAuthInboundPolicy extends InboundPolicy<McpKeycloakOAuthInboundPolicyOptions> {
8479
8441
  #private;
8480
8442
  static readonly policyType = "mcp-keycloak-oauth";
8481
8443
  constructor(rawOptions: unknown, policyName: string);
@@ -8604,44 +8566,6 @@ export declare interface McpKeycloakOAuthInboundPolicyOptions {
8604
8566
  };
8605
8567
  }
8606
8568
 
8607
- declare const mcpKeycloakOAuthOptionsSchema: z.ZodObject<
8608
- {
8609
- keycloakBaseUrl: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
8610
- realm: z.ZodString;
8611
- clientId: z.ZodString;
8612
- clientSecret: z.ZodString;
8613
- scope: z.ZodOptional<z.ZodString>;
8614
- gateway: z.ZodOptional<
8615
- z.ZodObject<
8616
- {
8617
- accessTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
8618
- refreshTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
8619
- cimdEnabled: z.ZodOptional<z.ZodBoolean>;
8620
- },
8621
- z.core.$strict
8622
- >
8623
- >;
8624
- idJag: z.ZodOptional<z.ZodUnknown>;
8625
- browserLoginOverrides: z.ZodOptional<
8626
- z.ZodObject<
8627
- {
8628
- remoteTimeoutMs: z.ZodOptional<z.ZodNumber>;
8629
- stateTtlSeconds: z.ZodOptional<z.ZodNumber>;
8630
- sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
8631
- pkce: z.ZodOptional<
8632
- z.ZodEnum<{
8633
- none: "none";
8634
- S256: "S256";
8635
- }>
8636
- >;
8637
- },
8638
- z.core.$strict
8639
- >
8640
- >;
8641
- },
8642
- z.core.$strict
8643
- >;
8644
-
8645
8569
  /**
8646
8570
  * Authenticate MCP gateway requests using a gateway-issued OAuth access token,
8647
8571
  * with browser login delegated to Logto.
@@ -8654,7 +8578,7 @@ declare const mcpKeycloakOAuthOptionsSchema: z.ZodObject<
8654
8578
  * @public
8655
8579
  * @product mcp-gateway
8656
8580
  */
8657
- export declare class McpLogtoOAuthInboundPolicy extends InboundPolicy<ValidatedLogtoOAuthOptions> {
8581
+ export declare class McpLogtoOAuthInboundPolicy extends InboundPolicy<McpLogtoOAuthInboundPolicyOptions> {
8658
8582
  #private;
8659
8583
  static readonly policyType = "mcp-logto-oauth";
8660
8584
  constructor(rawOptions: unknown, policyName: string);
@@ -8779,43 +8703,6 @@ export declare interface McpLogtoOAuthInboundPolicyOptions {
8779
8703
  };
8780
8704
  }
8781
8705
 
8782
- declare const mcpLogtoOAuthOptionsSchema: z.ZodObject<
8783
- {
8784
- logtoEndpoint: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
8785
- clientId: z.ZodString;
8786
- clientSecret: z.ZodString;
8787
- scope: z.ZodOptional<z.ZodString>;
8788
- gateway: z.ZodOptional<
8789
- z.ZodObject<
8790
- {
8791
- accessTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
8792
- refreshTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
8793
- cimdEnabled: z.ZodOptional<z.ZodBoolean>;
8794
- },
8795
- z.core.$strict
8796
- >
8797
- >;
8798
- idJag: z.ZodOptional<z.ZodUnknown>;
8799
- browserLoginOverrides: z.ZodOptional<
8800
- z.ZodObject<
8801
- {
8802
- remoteTimeoutMs: z.ZodOptional<z.ZodNumber>;
8803
- stateTtlSeconds: z.ZodOptional<z.ZodNumber>;
8804
- sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
8805
- pkce: z.ZodOptional<
8806
- z.ZodEnum<{
8807
- none: "none";
8808
- S256: "S256";
8809
- }>
8810
- >;
8811
- },
8812
- z.core.$strict
8813
- >
8814
- >;
8815
- },
8816
- z.core.$strict
8817
- >;
8818
-
8819
8706
  /**
8820
8707
  * Authenticate MCP gateway requests using a gateway-issued OAuth access token.
8821
8708
  *
@@ -8992,201 +8879,37 @@ export declare interface McpOAuthInboundPolicyOptions {
8992
8879
  };
8993
8880
  }
8994
8881
 
8995
- declare type McpOAuthRuntimeConfig = z.infer<
8996
- typeof mcpOAuthRuntimeConfigSchema
8997
- >;
8998
-
8999
- declare const mcpOAuthRuntimeConfigSchema: z.ZodPipe<
9000
- z.ZodObject<
9001
- {
9002
- oidc: z.ZodObject<
9003
- {
9004
- issuer: z.ZodURL;
9005
- jwksUrl: z.ZodURL;
9006
- audience: z.ZodOptional<z.ZodString>;
9007
- },
9008
- z.core.$strip
9009
- >;
9010
- browserLogin: z.ZodObject<
9011
- {
9012
- url: z.ZodURL;
9013
- tokenUrl: z.ZodOptional<z.ZodURL>;
9014
- clientId: z.ZodOptional<z.ZodString>;
9015
- clientSecret: z.ZodOptional<z.ZodString>;
9016
- scope: z.ZodDefault<z.ZodString>;
9017
- audience: z.ZodOptional<z.ZodString>;
9018
- pkce: z.ZodDefault<
9019
- z.ZodEnum<{
9020
- none: "none";
9021
- S256: "S256";
9022
- }>
9023
- >;
9024
- remoteTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
9025
- stateTtlSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
9026
- sessionTtlSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
9027
- },
9028
- z.core.$strict
9029
- >;
9030
- gateway: z.ZodPipe<
9031
- z.ZodDefault<
9032
- z.ZodObject<
9033
- {
9034
- accessTokenTtlSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
9035
- refreshTokenTtlSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
9036
- cimdEnabled: z.ZodDefault<z.ZodBoolean>;
9037
- },
9038
- z.core.$strict
9039
- >
9040
- >,
9041
- z.ZodTransform<
9042
- {
9043
- accessTokenTtlSeconds: number;
9044
- refreshTokenTtlSeconds: number;
9045
- downstreamCimdEnabled: boolean;
9046
- },
9047
- {
9048
- accessTokenTtlSeconds: number;
9049
- refreshTokenTtlSeconds: number;
9050
- cimdEnabled: boolean;
9051
- }
9052
- >
9053
- >;
9054
- idJag: z.ZodDefault<
9055
- z.ZodOptional<
9056
- z.ZodDefault<
9057
- z.ZodDiscriminatedUnion<
9058
- [
9059
- z.ZodObject<
9060
- {
9061
- enabled: z.ZodLiteral<false>;
9062
- },
9063
- z.core.$strict
9064
- >,
9065
- z.ZodObject<
9066
- {
9067
- enabled: z.ZodLiteral<true>;
9068
- trustedIssuers: z.ZodOptional<
9069
- z.ZodArray<
9070
- z.ZodObject<
9071
- {
9072
- issuer: z.ZodOptional<z.ZodURL>;
9073
- jwksUrl: z.ZodOptional<z.ZodURL>;
9074
- expectedClientIds: z.ZodOptional<
9075
- z.ZodArray<z.ZodString>
9076
- >;
9077
- subjectMapping: z.ZodDefault<
9078
- z.ZodEnum<{
9079
- iss_prefix: "iss_prefix";
9080
- iss_tenant_prefix: "iss_tenant_prefix";
9081
- sub_id_only: "sub_id_only";
9082
- }>
9083
- >;
9084
- },
9085
- z.core.$strict
9086
- >
9087
- >
9088
- >;
9089
- authorizationDetailsTypesAllowed: z.ZodOptional<
9090
- z.ZodArray<z.ZodString>
9091
- >;
9092
- },
9093
- z.core.$strict
9094
- >,
9095
- ]
9096
- >
9097
- >
9098
- >
9099
- >;
9100
- },
9101
- z.core.$strict
9102
- >,
9103
- z.ZodTransform<
9104
- {
9105
- idJag:
9106
- | {
9107
- enabled: false;
9108
- }
9109
- | {
9110
- enabled: true;
9111
- trustedIssuers: {
9112
- issuer: string;
9113
- jwksUrl: string;
9114
- subjectMapping:
9115
- | "iss_prefix"
9116
- | "iss_tenant_prefix"
9117
- | "sub_id_only";
9118
- expectedClientIds?: string[] | undefined;
9119
- }[];
9120
- authorizationDetailsTypesAllowed?: string[] | undefined;
9121
- };
9122
- oidc: {
9123
- issuer: string;
9124
- jwksUrl: string;
9125
- audience?: string | undefined;
9126
- };
9127
- browserLogin: {
9128
- url: string;
9129
- scope: string;
9130
- pkce: "none" | "S256";
9131
- remoteTimeoutMs: number;
9132
- stateTtlSeconds: number;
9133
- sessionTtlSeconds: number;
9134
- tokenUrl?: string | undefined;
9135
- clientId?: string | undefined;
9136
- clientSecret?: string | undefined;
9137
- audience?: string | undefined;
9138
- };
9139
- gateway: {
9140
- accessTokenTtlSeconds: number;
9141
- refreshTokenTtlSeconds: number;
9142
- downstreamCimdEnabled: boolean;
9143
- };
9144
- },
9145
- {
9146
- oidc: {
9147
- issuer: string;
9148
- jwksUrl: string;
9149
- audience?: string | undefined;
9150
- };
9151
- browserLogin: {
9152
- url: string;
9153
- scope: string;
9154
- pkce: "none" | "S256";
9155
- remoteTimeoutMs: number;
9156
- stateTtlSeconds: number;
9157
- sessionTtlSeconds: number;
9158
- tokenUrl?: string | undefined;
9159
- clientId?: string | undefined;
9160
- clientSecret?: string | undefined;
9161
- audience?: string | undefined;
9162
- };
9163
- gateway: {
9164
- accessTokenTtlSeconds: number;
9165
- refreshTokenTtlSeconds: number;
9166
- downstreamCimdEnabled: boolean;
9167
- };
9168
- idJag:
9169
- | {
9170
- enabled: false;
9171
- }
9172
- | {
9173
- enabled: true;
9174
- trustedIssuers?:
9175
- | {
9176
- subjectMapping:
9177
- | "iss_prefix"
9178
- | "iss_tenant_prefix"
9179
- | "sub_id_only";
9180
- issuer?: string | undefined;
9181
- jwksUrl?: string | undefined;
9182
- expectedClientIds?: string[] | undefined;
9183
- }[]
9184
- | undefined;
9185
- authorizationDetailsTypesAllowed?: string[] | undefined;
9186
- };
9187
- }
9188
- >
9189
- >;
8882
+ /**
8883
+ * The gateway's resolved OAuth runtime configuration — the parsed, defaulted
8884
+ * output of {@link mcpOAuthRuntimeConfigSchema}. Hand-written so the public
8885
+ * MCP OAuth policy class signatures contain no zod types; the assertion below
8886
+ * fails to compile if this interface drifts from the schema.
8887
+ */
8888
+ declare interface McpOAuthRuntimeConfig {
8889
+ oidc: {
8890
+ issuer: string;
8891
+ jwksUrl: string;
8892
+ audience?: string;
8893
+ };
8894
+ browserLogin: {
8895
+ url: string;
8896
+ tokenUrl?: string;
8897
+ clientId?: string;
8898
+ clientSecret?: string;
8899
+ scope: string;
8900
+ audience?: string;
8901
+ pkce: "S256" | "none";
8902
+ remoteTimeoutMs: number;
8903
+ stateTtlSeconds: number;
8904
+ sessionTtlSeconds: number;
8905
+ };
8906
+ gateway: {
8907
+ accessTokenTtlSeconds: number;
8908
+ refreshTokenTtlSeconds: number;
8909
+ downstreamCimdEnabled: boolean;
8910
+ };
8911
+ idJag: IdJagRuntimeConfig;
8912
+ }
9190
8913
 
9191
8914
  /**
9192
8915
  * Authenticate MCP gateway requests using a gateway-issued OAuth access token,
@@ -9200,7 +8923,7 @@ declare const mcpOAuthRuntimeConfigSchema: z.ZodPipe<
9200
8923
  * @public
9201
8924
  * @product mcp-gateway
9202
8925
  */
9203
- export declare class McpOktaOAuthInboundPolicy extends InboundPolicy<ValidatedOktaOAuthOptions> {
8926
+ export declare class McpOktaOAuthInboundPolicy extends InboundPolicy<McpOktaOAuthInboundPolicyOptions> {
9204
8927
  #private;
9205
8928
  static readonly policyType = "mcp-okta-oauth";
9206
8929
  constructor(rawOptions: unknown, policyName: string);
@@ -9329,44 +9052,6 @@ export declare interface McpOktaOAuthInboundPolicyOptions {
9329
9052
  };
9330
9053
  }
9331
9054
 
9332
- declare const mcpOktaOAuthOptionsSchema: z.ZodObject<
9333
- {
9334
- oktaDomain: z.ZodString;
9335
- authorizationServerId: z.ZodOptional<z.ZodString>;
9336
- clientId: z.ZodString;
9337
- clientSecret: z.ZodString;
9338
- scope: z.ZodOptional<z.ZodString>;
9339
- gateway: z.ZodOptional<
9340
- z.ZodObject<
9341
- {
9342
- accessTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
9343
- refreshTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
9344
- cimdEnabled: z.ZodOptional<z.ZodBoolean>;
9345
- },
9346
- z.core.$strict
9347
- >
9348
- >;
9349
- idJag: z.ZodOptional<z.ZodUnknown>;
9350
- browserLoginOverrides: z.ZodOptional<
9351
- z.ZodObject<
9352
- {
9353
- remoteTimeoutMs: z.ZodOptional<z.ZodNumber>;
9354
- stateTtlSeconds: z.ZodOptional<z.ZodNumber>;
9355
- sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
9356
- pkce: z.ZodOptional<
9357
- z.ZodEnum<{
9358
- none: "none";
9359
- S256: "S256";
9360
- }>
9361
- >;
9362
- },
9363
- z.core.$strict
9364
- >
9365
- >;
9366
- },
9367
- z.core.$strict
9368
- >;
9369
-
9370
9055
  /**
9371
9056
  * Authenticate MCP gateway requests using a gateway-issued OAuth access token,
9372
9057
  * with browser login delegated to OneLogin.
@@ -9379,7 +9064,7 @@ declare const mcpOktaOAuthOptionsSchema: z.ZodObject<
9379
9064
  * @public
9380
9065
  * @product mcp-gateway
9381
9066
  */
9382
- export declare class McpOneLoginOAuthInboundPolicy extends InboundPolicy<ValidatedOneLoginOAuthOptions> {
9067
+ export declare class McpOneLoginOAuthInboundPolicy extends InboundPolicy<McpOneLoginOAuthInboundPolicyOptions> {
9383
9068
  #private;
9384
9069
  static readonly policyType = "mcp-onelogin-oauth";
9385
9070
  constructor(rawOptions: unknown, policyName: string);
@@ -9500,37 +9185,6 @@ export declare interface McpOneLoginOAuthInboundPolicyOptions {
9500
9185
  };
9501
9186
  }
9502
9187
 
9503
- declare const mcpOneLoginOAuthOptionsSchema: z.ZodObject<
9504
- {
9505
- oneLoginSubdomain: z.ZodString;
9506
- clientId: z.ZodString;
9507
- clientSecret: z.ZodString;
9508
- scope: z.ZodOptional<z.ZodString>;
9509
- gateway: z.ZodOptional<
9510
- z.ZodObject<
9511
- {
9512
- accessTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
9513
- refreshTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
9514
- cimdEnabled: z.ZodOptional<z.ZodBoolean>;
9515
- },
9516
- z.core.$strict
9517
- >
9518
- >;
9519
- idJag: z.ZodOptional<z.ZodUnknown>;
9520
- browserLoginOverrides: z.ZodOptional<
9521
- z.ZodObject<
9522
- {
9523
- remoteTimeoutMs: z.ZodOptional<z.ZodNumber>;
9524
- stateTtlSeconds: z.ZodOptional<z.ZodNumber>;
9525
- sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
9526
- },
9527
- z.core.$strict
9528
- >
9529
- >;
9530
- },
9531
- z.core.$strict
9532
- >;
9533
-
9534
9188
  /**
9535
9189
  * Authenticate MCP gateway requests using a gateway-issued OAuth access token,
9536
9190
  * with browser login delegated to PingOne.
@@ -9544,7 +9198,7 @@ declare const mcpOneLoginOAuthOptionsSchema: z.ZodObject<
9544
9198
  * @public
9545
9199
  * @product mcp-gateway
9546
9200
  */
9547
- export declare class McpPingOAuthInboundPolicy extends InboundPolicy<ValidatedPingOAuthOptions> {
9201
+ export declare class McpPingOAuthInboundPolicy extends InboundPolicy<McpPingOAuthInboundPolicyOptions> {
9548
9202
  #private;
9549
9203
  static readonly policyType = "mcp-ping-oauth";
9550
9204
  constructor(rawOptions: unknown, policyName: string);
@@ -9683,54 +9337,6 @@ export declare interface McpPingOAuthInboundPolicyOptions {
9683
9337
  };
9684
9338
  }
9685
9339
 
9686
- declare const mcpPingOAuthOptionsSchema: z.ZodObject<
9687
- {
9688
- environmentId: z.ZodOptional<z.ZodString>;
9689
- region: z.ZodOptional<
9690
- z.ZodEnum<{
9691
- "north-america": "north-america";
9692
- canada: "canada";
9693
- europe: "europe";
9694
- singapore: "singapore";
9695
- australia: "australia";
9696
- "asia-pacific": "asia-pacific";
9697
- }>
9698
- >;
9699
- customDomain: z.ZodOptional<z.ZodString>;
9700
- clientId: z.ZodString;
9701
- clientSecret: z.ZodString;
9702
- scope: z.ZodOptional<z.ZodString>;
9703
- gateway: z.ZodOptional<
9704
- z.ZodObject<
9705
- {
9706
- accessTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
9707
- refreshTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
9708
- cimdEnabled: z.ZodOptional<z.ZodBoolean>;
9709
- },
9710
- z.core.$strict
9711
- >
9712
- >;
9713
- idJag: z.ZodOptional<z.ZodUnknown>;
9714
- browserLoginOverrides: z.ZodOptional<
9715
- z.ZodObject<
9716
- {
9717
- remoteTimeoutMs: z.ZodOptional<z.ZodNumber>;
9718
- stateTtlSeconds: z.ZodOptional<z.ZodNumber>;
9719
- sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
9720
- pkce: z.ZodOptional<
9721
- z.ZodEnum<{
9722
- none: "none";
9723
- S256: "S256";
9724
- }>
9725
- >;
9726
- },
9727
- z.core.$strict
9728
- >
9729
- >;
9730
- },
9731
- z.core.$strict
9732
- >;
9733
-
9734
9340
  /**
9735
9341
  * An MCP Server handler for Zuplo
9736
9342
  * Only POST requests are supported for the HTTP streamable MCP transport.
@@ -9781,7 +9387,7 @@ declare interface McpTool {
9781
9387
  * @public
9782
9388
  * @product mcp-gateway
9783
9389
  */
9784
- export declare class McpWorkosOAuthInboundPolicy extends InboundPolicy<ValidatedWorkosOAuthOptions> {
9390
+ export declare class McpWorkosOAuthInboundPolicy extends InboundPolicy<McpWorkosOAuthInboundPolicyOptions> {
9785
9391
  #private;
9786
9392
  static readonly policyType = "mcp-workos-oauth";
9787
9393
  constructor(rawOptions: unknown, policyName: string);
@@ -9902,42 +9508,6 @@ export declare interface McpWorkosOAuthInboundPolicyOptions {
9902
9508
  };
9903
9509
  }
9904
9510
 
9905
- declare const mcpWorkosOAuthOptionsSchema: z.ZodObject<
9906
- {
9907
- clientId: z.ZodString;
9908
- clientSecret: z.ZodString;
9909
- scope: z.ZodOptional<z.ZodString>;
9910
- gateway: z.ZodOptional<
9911
- z.ZodObject<
9912
- {
9913
- accessTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
9914
- refreshTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
9915
- cimdEnabled: z.ZodOptional<z.ZodBoolean>;
9916
- },
9917
- z.core.$strict
9918
- >
9919
- >;
9920
- idJag: z.ZodOptional<z.ZodUnknown>;
9921
- browserLoginOverrides: z.ZodOptional<
9922
- z.ZodObject<
9923
- {
9924
- remoteTimeoutMs: z.ZodOptional<z.ZodNumber>;
9925
- stateTtlSeconds: z.ZodOptional<z.ZodNumber>;
9926
- sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
9927
- pkce: z.ZodOptional<
9928
- z.ZodEnum<{
9929
- none: "none";
9930
- S256: "S256";
9931
- }>
9932
- >;
9933
- },
9934
- z.core.$strict
9935
- >
9936
- >;
9937
- },
9938
- z.core.$strict
9939
- >;
9940
-
9941
9511
  declare interface MemoryCacheOptions {
9942
9512
  maxSize: number;
9943
9513
  }
@@ -12178,6 +11748,17 @@ export declare interface QuotaInboundPolicyOptions {
12178
11748
  };
12179
11749
  }
12180
11750
 
11751
+ declare interface QuotaLimit {
11752
+ daily?: QuotaSettings;
11753
+ monthly?: QuotaSettings;
11754
+ }
11755
+
11756
+ declare interface QuotaSettings {
11757
+ enabled: boolean;
11758
+ limit?: number;
11759
+ warning?: WarningSettings;
11760
+ }
11761
+
12181
11762
  /**
12182
11763
  * The identifying element of the request that enforces distinct rate limits. For example, you can limit by `user`, `ip`, `function` or `all` - function allows you to specify a simple function to create a string identifier to create a rate-limit group.
12183
11764
  * @public
@@ -12915,7 +12496,7 @@ export declare interface RequireOriginInboundPolicyOptions {
12915
12496
  * @product api-gateway
12916
12497
  * @public
12917
12498
  */
12918
- export declare class RequireUserClaimsInboundPolicy extends InboundPolicy<ValidatedOptions> {
12499
+ export declare class RequireUserClaimsInboundPolicy extends InboundPolicy<RequireUserClaimsInboundPolicyOptions> {
12919
12500
  #private;
12920
12501
  static readonly policyType = "require-user-claims";
12921
12502
  constructor(rawOptions: unknown, policyName: string);
@@ -12933,667 +12514,6 @@ export declare interface RequireUserClaimsInboundPolicyOptions {
12933
12514
  rule: Rule;
12934
12515
  }
12935
12516
 
12936
- declare const requireUserClaimsOptionsSchema: z.ZodObject<
12937
- {
12938
- rule: z.ZodUnion<
12939
- readonly [
12940
- z.ZodObject<
12941
- {
12942
- and: z.ZodArray<
12943
- z.ZodUnion<
12944
- readonly [
12945
- z.ZodObject<
12946
- {
12947
- and: z.ZodArray<
12948
- z.ZodUnion<
12949
- readonly [
12950
- z.ZodObject<
12951
- {
12952
- and: z.ZodArray<
12953
- z.ZodUnion<
12954
- readonly [
12955
- z.ZodObject<
12956
- {
12957
- claim: z.ZodString;
12958
- eq: z.ZodUnion<
12959
- readonly [
12960
- z.ZodString,
12961
- z.ZodNumber,
12962
- z.ZodBoolean,
12963
- ]
12964
- >;
12965
- },
12966
- z.core.$strict
12967
- >,
12968
- z.ZodObject<
12969
- {
12970
- claim: z.ZodString;
12971
- in: z.ZodArray<
12972
- z.ZodUnion<
12973
- readonly [
12974
- z.ZodString,
12975
- z.ZodNumber,
12976
- z.ZodBoolean,
12977
- ]
12978
- >
12979
- >;
12980
- },
12981
- z.core.$strict
12982
- >,
12983
- z.ZodObject<
12984
- {
12985
- claim: z.ZodString;
12986
- startsWith: z.ZodString;
12987
- },
12988
- z.core.$strict
12989
- >,
12990
- ]
12991
- >
12992
- >;
12993
- },
12994
- z.core.$strict
12995
- >,
12996
- z.ZodObject<
12997
- {
12998
- or: z.ZodArray<
12999
- z.ZodUnion<
13000
- readonly [
13001
- z.ZodObject<
13002
- {
13003
- claim: z.ZodString;
13004
- eq: z.ZodUnion<
13005
- readonly [
13006
- z.ZodString,
13007
- z.ZodNumber,
13008
- z.ZodBoolean,
13009
- ]
13010
- >;
13011
- },
13012
- z.core.$strict
13013
- >,
13014
- z.ZodObject<
13015
- {
13016
- claim: z.ZodString;
13017
- in: z.ZodArray<
13018
- z.ZodUnion<
13019
- readonly [
13020
- z.ZodString,
13021
- z.ZodNumber,
13022
- z.ZodBoolean,
13023
- ]
13024
- >
13025
- >;
13026
- },
13027
- z.core.$strict
13028
- >,
13029
- z.ZodObject<
13030
- {
13031
- claim: z.ZodString;
13032
- startsWith: z.ZodString;
13033
- },
13034
- z.core.$strict
13035
- >,
13036
- ]
13037
- >
13038
- >;
13039
- },
13040
- z.core.$strict
13041
- >,
13042
- z.ZodObject<
13043
- {
13044
- claim: z.ZodString;
13045
- eq: z.ZodUnion<
13046
- readonly [
13047
- z.ZodString,
13048
- z.ZodNumber,
13049
- z.ZodBoolean,
13050
- ]
13051
- >;
13052
- },
13053
- z.core.$strict
13054
- >,
13055
- z.ZodObject<
13056
- {
13057
- claim: z.ZodString;
13058
- in: z.ZodArray<
13059
- z.ZodUnion<
13060
- readonly [
13061
- z.ZodString,
13062
- z.ZodNumber,
13063
- z.ZodBoolean,
13064
- ]
13065
- >
13066
- >;
13067
- },
13068
- z.core.$strict
13069
- >,
13070
- z.ZodObject<
13071
- {
13072
- claim: z.ZodString;
13073
- startsWith: z.ZodString;
13074
- },
13075
- z.core.$strict
13076
- >,
13077
- ]
13078
- >
13079
- >;
13080
- },
13081
- z.core.$strict
13082
- >,
13083
- z.ZodObject<
13084
- {
13085
- or: z.ZodArray<
13086
- z.ZodUnion<
13087
- readonly [
13088
- z.ZodObject<
13089
- {
13090
- and: z.ZodArray<
13091
- z.ZodUnion<
13092
- readonly [
13093
- z.ZodObject<
13094
- {
13095
- claim: z.ZodString;
13096
- eq: z.ZodUnion<
13097
- readonly [
13098
- z.ZodString,
13099
- z.ZodNumber,
13100
- z.ZodBoolean,
13101
- ]
13102
- >;
13103
- },
13104
- z.core.$strict
13105
- >,
13106
- z.ZodObject<
13107
- {
13108
- claim: z.ZodString;
13109
- in: z.ZodArray<
13110
- z.ZodUnion<
13111
- readonly [
13112
- z.ZodString,
13113
- z.ZodNumber,
13114
- z.ZodBoolean,
13115
- ]
13116
- >
13117
- >;
13118
- },
13119
- z.core.$strict
13120
- >,
13121
- z.ZodObject<
13122
- {
13123
- claim: z.ZodString;
13124
- startsWith: z.ZodString;
13125
- },
13126
- z.core.$strict
13127
- >,
13128
- ]
13129
- >
13130
- >;
13131
- },
13132
- z.core.$strict
13133
- >,
13134
- z.ZodObject<
13135
- {
13136
- or: z.ZodArray<
13137
- z.ZodUnion<
13138
- readonly [
13139
- z.ZodObject<
13140
- {
13141
- claim: z.ZodString;
13142
- eq: z.ZodUnion<
13143
- readonly [
13144
- z.ZodString,
13145
- z.ZodNumber,
13146
- z.ZodBoolean,
13147
- ]
13148
- >;
13149
- },
13150
- z.core.$strict
13151
- >,
13152
- z.ZodObject<
13153
- {
13154
- claim: z.ZodString;
13155
- in: z.ZodArray<
13156
- z.ZodUnion<
13157
- readonly [
13158
- z.ZodString,
13159
- z.ZodNumber,
13160
- z.ZodBoolean,
13161
- ]
13162
- >
13163
- >;
13164
- },
13165
- z.core.$strict
13166
- >,
13167
- z.ZodObject<
13168
- {
13169
- claim: z.ZodString;
13170
- startsWith: z.ZodString;
13171
- },
13172
- z.core.$strict
13173
- >,
13174
- ]
13175
- >
13176
- >;
13177
- },
13178
- z.core.$strict
13179
- >,
13180
- z.ZodObject<
13181
- {
13182
- claim: z.ZodString;
13183
- eq: z.ZodUnion<
13184
- readonly [
13185
- z.ZodString,
13186
- z.ZodNumber,
13187
- z.ZodBoolean,
13188
- ]
13189
- >;
13190
- },
13191
- z.core.$strict
13192
- >,
13193
- z.ZodObject<
13194
- {
13195
- claim: z.ZodString;
13196
- in: z.ZodArray<
13197
- z.ZodUnion<
13198
- readonly [
13199
- z.ZodString,
13200
- z.ZodNumber,
13201
- z.ZodBoolean,
13202
- ]
13203
- >
13204
- >;
13205
- },
13206
- z.core.$strict
13207
- >,
13208
- z.ZodObject<
13209
- {
13210
- claim: z.ZodString;
13211
- startsWith: z.ZodString;
13212
- },
13213
- z.core.$strict
13214
- >,
13215
- ]
13216
- >
13217
- >;
13218
- },
13219
- z.core.$strict
13220
- >,
13221
- z.ZodObject<
13222
- {
13223
- claim: z.ZodString;
13224
- eq: z.ZodUnion<
13225
- readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]
13226
- >;
13227
- },
13228
- z.core.$strict
13229
- >,
13230
- z.ZodObject<
13231
- {
13232
- claim: z.ZodString;
13233
- in: z.ZodArray<
13234
- z.ZodUnion<
13235
- readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]
13236
- >
13237
- >;
13238
- },
13239
- z.core.$strict
13240
- >,
13241
- z.ZodObject<
13242
- {
13243
- claim: z.ZodString;
13244
- startsWith: z.ZodString;
13245
- },
13246
- z.core.$strict
13247
- >,
13248
- ]
13249
- >
13250
- >;
13251
- },
13252
- z.core.$strict
13253
- >,
13254
- z.ZodObject<
13255
- {
13256
- or: z.ZodArray<
13257
- z.ZodUnion<
13258
- readonly [
13259
- z.ZodObject<
13260
- {
13261
- and: z.ZodArray<
13262
- z.ZodUnion<
13263
- readonly [
13264
- z.ZodObject<
13265
- {
13266
- and: z.ZodArray<
13267
- z.ZodUnion<
13268
- readonly [
13269
- z.ZodObject<
13270
- {
13271
- claim: z.ZodString;
13272
- eq: z.ZodUnion<
13273
- readonly [
13274
- z.ZodString,
13275
- z.ZodNumber,
13276
- z.ZodBoolean,
13277
- ]
13278
- >;
13279
- },
13280
- z.core.$strict
13281
- >,
13282
- z.ZodObject<
13283
- {
13284
- claim: z.ZodString;
13285
- in: z.ZodArray<
13286
- z.ZodUnion<
13287
- readonly [
13288
- z.ZodString,
13289
- z.ZodNumber,
13290
- z.ZodBoolean,
13291
- ]
13292
- >
13293
- >;
13294
- },
13295
- z.core.$strict
13296
- >,
13297
- z.ZodObject<
13298
- {
13299
- claim: z.ZodString;
13300
- startsWith: z.ZodString;
13301
- },
13302
- z.core.$strict
13303
- >,
13304
- ]
13305
- >
13306
- >;
13307
- },
13308
- z.core.$strict
13309
- >,
13310
- z.ZodObject<
13311
- {
13312
- or: z.ZodArray<
13313
- z.ZodUnion<
13314
- readonly [
13315
- z.ZodObject<
13316
- {
13317
- claim: z.ZodString;
13318
- eq: z.ZodUnion<
13319
- readonly [
13320
- z.ZodString,
13321
- z.ZodNumber,
13322
- z.ZodBoolean,
13323
- ]
13324
- >;
13325
- },
13326
- z.core.$strict
13327
- >,
13328
- z.ZodObject<
13329
- {
13330
- claim: z.ZodString;
13331
- in: z.ZodArray<
13332
- z.ZodUnion<
13333
- readonly [
13334
- z.ZodString,
13335
- z.ZodNumber,
13336
- z.ZodBoolean,
13337
- ]
13338
- >
13339
- >;
13340
- },
13341
- z.core.$strict
13342
- >,
13343
- z.ZodObject<
13344
- {
13345
- claim: z.ZodString;
13346
- startsWith: z.ZodString;
13347
- },
13348
- z.core.$strict
13349
- >,
13350
- ]
13351
- >
13352
- >;
13353
- },
13354
- z.core.$strict
13355
- >,
13356
- z.ZodObject<
13357
- {
13358
- claim: z.ZodString;
13359
- eq: z.ZodUnion<
13360
- readonly [
13361
- z.ZodString,
13362
- z.ZodNumber,
13363
- z.ZodBoolean,
13364
- ]
13365
- >;
13366
- },
13367
- z.core.$strict
13368
- >,
13369
- z.ZodObject<
13370
- {
13371
- claim: z.ZodString;
13372
- in: z.ZodArray<
13373
- z.ZodUnion<
13374
- readonly [
13375
- z.ZodString,
13376
- z.ZodNumber,
13377
- z.ZodBoolean,
13378
- ]
13379
- >
13380
- >;
13381
- },
13382
- z.core.$strict
13383
- >,
13384
- z.ZodObject<
13385
- {
13386
- claim: z.ZodString;
13387
- startsWith: z.ZodString;
13388
- },
13389
- z.core.$strict
13390
- >,
13391
- ]
13392
- >
13393
- >;
13394
- },
13395
- z.core.$strict
13396
- >,
13397
- z.ZodObject<
13398
- {
13399
- or: z.ZodArray<
13400
- z.ZodUnion<
13401
- readonly [
13402
- z.ZodObject<
13403
- {
13404
- and: z.ZodArray<
13405
- z.ZodUnion<
13406
- readonly [
13407
- z.ZodObject<
13408
- {
13409
- claim: z.ZodString;
13410
- eq: z.ZodUnion<
13411
- readonly [
13412
- z.ZodString,
13413
- z.ZodNumber,
13414
- z.ZodBoolean,
13415
- ]
13416
- >;
13417
- },
13418
- z.core.$strict
13419
- >,
13420
- z.ZodObject<
13421
- {
13422
- claim: z.ZodString;
13423
- in: z.ZodArray<
13424
- z.ZodUnion<
13425
- readonly [
13426
- z.ZodString,
13427
- z.ZodNumber,
13428
- z.ZodBoolean,
13429
- ]
13430
- >
13431
- >;
13432
- },
13433
- z.core.$strict
13434
- >,
13435
- z.ZodObject<
13436
- {
13437
- claim: z.ZodString;
13438
- startsWith: z.ZodString;
13439
- },
13440
- z.core.$strict
13441
- >,
13442
- ]
13443
- >
13444
- >;
13445
- },
13446
- z.core.$strict
13447
- >,
13448
- z.ZodObject<
13449
- {
13450
- or: z.ZodArray<
13451
- z.ZodUnion<
13452
- readonly [
13453
- z.ZodObject<
13454
- {
13455
- claim: z.ZodString;
13456
- eq: z.ZodUnion<
13457
- readonly [
13458
- z.ZodString,
13459
- z.ZodNumber,
13460
- z.ZodBoolean,
13461
- ]
13462
- >;
13463
- },
13464
- z.core.$strict
13465
- >,
13466
- z.ZodObject<
13467
- {
13468
- claim: z.ZodString;
13469
- in: z.ZodArray<
13470
- z.ZodUnion<
13471
- readonly [
13472
- z.ZodString,
13473
- z.ZodNumber,
13474
- z.ZodBoolean,
13475
- ]
13476
- >
13477
- >;
13478
- },
13479
- z.core.$strict
13480
- >,
13481
- z.ZodObject<
13482
- {
13483
- claim: z.ZodString;
13484
- startsWith: z.ZodString;
13485
- },
13486
- z.core.$strict
13487
- >,
13488
- ]
13489
- >
13490
- >;
13491
- },
13492
- z.core.$strict
13493
- >,
13494
- z.ZodObject<
13495
- {
13496
- claim: z.ZodString;
13497
- eq: z.ZodUnion<
13498
- readonly [
13499
- z.ZodString,
13500
- z.ZodNumber,
13501
- z.ZodBoolean,
13502
- ]
13503
- >;
13504
- },
13505
- z.core.$strict
13506
- >,
13507
- z.ZodObject<
13508
- {
13509
- claim: z.ZodString;
13510
- in: z.ZodArray<
13511
- z.ZodUnion<
13512
- readonly [
13513
- z.ZodString,
13514
- z.ZodNumber,
13515
- z.ZodBoolean,
13516
- ]
13517
- >
13518
- >;
13519
- },
13520
- z.core.$strict
13521
- >,
13522
- z.ZodObject<
13523
- {
13524
- claim: z.ZodString;
13525
- startsWith: z.ZodString;
13526
- },
13527
- z.core.$strict
13528
- >,
13529
- ]
13530
- >
13531
- >;
13532
- },
13533
- z.core.$strict
13534
- >,
13535
- z.ZodObject<
13536
- {
13537
- claim: z.ZodString;
13538
- eq: z.ZodUnion<
13539
- readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]
13540
- >;
13541
- },
13542
- z.core.$strict
13543
- >,
13544
- z.ZodObject<
13545
- {
13546
- claim: z.ZodString;
13547
- in: z.ZodArray<
13548
- z.ZodUnion<
13549
- readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]
13550
- >
13551
- >;
13552
- },
13553
- z.core.$strict
13554
- >,
13555
- z.ZodObject<
13556
- {
13557
- claim: z.ZodString;
13558
- startsWith: z.ZodString;
13559
- },
13560
- z.core.$strict
13561
- >,
13562
- ]
13563
- >
13564
- >;
13565
- },
13566
- z.core.$strict
13567
- >,
13568
- z.ZodObject<
13569
- {
13570
- claim: z.ZodString;
13571
- eq: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
13572
- },
13573
- z.core.$strict
13574
- >,
13575
- z.ZodObject<
13576
- {
13577
- claim: z.ZodString;
13578
- in: z.ZodArray<
13579
- z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>
13580
- >;
13581
- },
13582
- z.core.$strict
13583
- >,
13584
- z.ZodObject<
13585
- {
13586
- claim: z.ZodString;
13587
- startsWith: z.ZodString;
13588
- },
13589
- z.core.$strict
13590
- >,
13591
- ]
13592
- >;
13593
- },
13594
- z.core.$strict
13595
- >;
13596
-
13597
12517
  declare type ResolveRequestParams<
13598
12518
  TParams extends RequestParamsDefault | undefined,
13599
12519
  > = TParams extends RequestParamsDefault ? TParams : RequestParamsDefault;
@@ -15551,52 +14471,6 @@ declare interface Usage {
15551
14471
 
15552
14472
  declare type UserDataDefault = any;
15553
14473
 
15554
- declare type ValidatedAuth0OAuthOptions = z.infer<
15555
- typeof mcpAuth0OAuthOptionsSchema
15556
- >;
15557
-
15558
- declare type ValidatedClerkOAuthOptions = z.infer<
15559
- typeof mcpClerkOAuthOptionsSchema
15560
- >;
15561
-
15562
- declare type ValidatedCognitoOAuthOptions = z.infer<
15563
- typeof mcpCognitoOAuthOptionsSchema
15564
- >;
15565
-
15566
- declare type ValidatedEntraOAuthOptions = z.infer<
15567
- typeof mcpEntraOAuthOptionsSchema
15568
- >;
15569
-
15570
- declare type ValidatedGoogleOAuthOptions = z.infer<
15571
- typeof mcpGoogleOAuthOptionsSchema
15572
- >;
15573
-
15574
- declare type ValidatedKeycloakOAuthOptions = z.infer<
15575
- typeof mcpKeycloakOAuthOptionsSchema
15576
- >;
15577
-
15578
- declare type ValidatedLogtoOAuthOptions = z.infer<
15579
- typeof mcpLogtoOAuthOptionsSchema
15580
- >;
15581
-
15582
- declare type ValidatedOktaOAuthOptions = z.infer<
15583
- typeof mcpOktaOAuthOptionsSchema
15584
- >;
15585
-
15586
- declare type ValidatedOneLoginOAuthOptions = z.infer<
15587
- typeof mcpOneLoginOAuthOptionsSchema
15588
- >;
15589
-
15590
- declare type ValidatedOptions = z.infer<typeof requireUserClaimsOptionsSchema>;
15591
-
15592
- declare type ValidatedPingOAuthOptions = z.infer<
15593
- typeof mcpPingOAuthOptionsSchema
15594
- >;
15595
-
15596
- declare type ValidatedWorkosOAuthOptions = z.infer<
15597
- typeof mcpWorkosOAuthOptionsSchema
15598
- >;
15599
-
15600
14474
  /**
15601
14475
  * Validates the body of an incoming request based on a JSON schema.
15602
14476
  *
@@ -15720,6 +14594,14 @@ declare interface WaitUntilFunc {
15720
14594
  (promise: Promise<any>): void;
15721
14595
  }
15722
14596
 
14597
+ declare interface WarningSettings {
14598
+ enabled: boolean;
14599
+ /**
14600
+ * Percentage of the limit at which to emit a warning event.
14601
+ */
14602
+ threshold?: number;
14603
+ }
14604
+
15723
14605
  /**
15724
14606
  * Authenticate bots using web-bot-auth HTTP Message Signatures.
15725
14607
  *