@zuplo/runtime 6.70.63 → 6.70.67

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.
@@ -5700,7 +5700,7 @@ declare type LokiTransportVersion = 1 | 2;
5700
5700
  * @title MCP Auth0 OAuth
5701
5701
  * @product mcp-gateway
5702
5702
  */
5703
- export declare class McpAuth0OAuthInboundPolicy extends InboundPolicy<McpAuth0OAuthInboundPolicyOptions> {
5703
+ export declare class McpAuth0OAuthInboundPolicy extends InboundPolicy<ValidatedAuth0OAuthOptions> {
5704
5704
  #private;
5705
5705
  constructor(rawOptions: unknown, policyName: string);
5706
5706
  handler(
@@ -5751,6 +5751,69 @@ export declare interface McpAuth0OAuthInboundPolicyOptions {
5751
5751
  */
5752
5752
  cimdEnabled?: boolean;
5753
5753
  };
5754
+ /**
5755
+ * Optional Identity Assertion JWT Authorization Grant (ID-JAG / XAA) support for the gateway token endpoint.
5756
+ */
5757
+ idJag?:
5758
+ | {
5759
+ /**
5760
+ * Disable ID-JAG support.
5761
+ */
5762
+ enabled: false;
5763
+ }
5764
+ | {
5765
+ /**
5766
+ * Enable ID-JAG support.
5767
+ */
5768
+ enabled: true;
5769
+ /**
5770
+ * Trusted ID-JAG issuers. These values are never published in OAuth metadata.
5771
+ *
5772
+ * @minItems 1
5773
+ */
5774
+ trustedIssuers: [
5775
+ {
5776
+ /**
5777
+ * Exact issuer URL expected in the ID-JAG iss claim.
5778
+ */
5779
+ issuer: string;
5780
+ /**
5781
+ * JWKS URL used to verify ID-JAG signatures from this issuer.
5782
+ */
5783
+ jwksUrl: string;
5784
+ /**
5785
+ * Optional allow-list of client IDs accepted from this issuer. The ID-JAG client_id must still match the authenticated token-endpoint client.
5786
+ */
5787
+ expectedClientIds?: string[];
5788
+ /**
5789
+ * How the ID-JAG subject is mapped into the gateway subject ID.
5790
+ */
5791
+ subjectMapping?: "iss_prefix" | "iss_tenant_prefix" | "sub_id_only";
5792
+ },
5793
+ ...{
5794
+ /**
5795
+ * Exact issuer URL expected in the ID-JAG iss claim.
5796
+ */
5797
+ issuer: string;
5798
+ /**
5799
+ * JWKS URL used to verify ID-JAG signatures from this issuer.
5800
+ */
5801
+ jwksUrl: string;
5802
+ /**
5803
+ * Optional allow-list of client IDs accepted from this issuer. The ID-JAG client_id must still match the authenticated token-endpoint client.
5804
+ */
5805
+ expectedClientIds?: string[];
5806
+ /**
5807
+ * How the ID-JAG subject is mapped into the gateway subject ID.
5808
+ */
5809
+ subjectMapping?: "iss_prefix" | "iss_tenant_prefix" | "sub_id_only";
5810
+ }[],
5811
+ ];
5812
+ /**
5813
+ * Optional allow-list of RFC 9396 authorization_details type values accepted from ID-JAGs.
5814
+ */
5815
+ authorizationDetailsTypesAllowed?: string[];
5816
+ };
5754
5817
  /**
5755
5818
  * Optional overrides for the derived browser-login settings.
5756
5819
  */
@@ -5761,6 +5824,38 @@ export declare interface McpAuth0OAuthInboundPolicyOptions {
5761
5824
  };
5762
5825
  }
5763
5826
 
5827
+ declare const mcpAuth0OAuthOptionsSchema: z.ZodObject<
5828
+ {
5829
+ auth0Domain: z.ZodString;
5830
+ audience: z.ZodOptional<z.ZodString>;
5831
+ clientId: z.ZodString;
5832
+ clientSecret: z.ZodString;
5833
+ scope: z.ZodOptional<z.ZodString>;
5834
+ gateway: z.ZodOptional<
5835
+ z.ZodObject<
5836
+ {
5837
+ accessTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
5838
+ refreshTokenTtlSeconds: z.ZodOptional<z.ZodNumber>;
5839
+ cimdEnabled: z.ZodOptional<z.ZodBoolean>;
5840
+ },
5841
+ z.core.$strict
5842
+ >
5843
+ >;
5844
+ idJag: z.ZodOptional<z.ZodUnknown>;
5845
+ browserLoginOverrides: z.ZodOptional<
5846
+ z.ZodObject<
5847
+ {
5848
+ remoteTimeoutMs: z.ZodOptional<z.ZodNumber>;
5849
+ stateTtlSeconds: z.ZodOptional<z.ZodNumber>;
5850
+ sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
5851
+ },
5852
+ z.core.$strict
5853
+ >
5854
+ >;
5855
+ },
5856
+ z.core.$strict
5857
+ >;
5858
+
5764
5859
  /**
5765
5860
  * Authenticate MCP gateway requests using a gateway-issued OAuth access token,
5766
5861
  * with browser login delegated to Clerk.
@@ -6294,6 +6389,69 @@ export declare interface McpOAuthInboundPolicyOptions {
6294
6389
  */
6295
6390
  cimdEnabled?: boolean;
6296
6391
  };
6392
+ /**
6393
+ * Optional Identity Assertion JWT Authorization Grant (ID-JAG / XAA) support for the gateway token endpoint.
6394
+ */
6395
+ idJag?:
6396
+ | {
6397
+ /**
6398
+ * Disable ID-JAG support.
6399
+ */
6400
+ enabled: false;
6401
+ }
6402
+ | {
6403
+ /**
6404
+ * Enable ID-JAG support.
6405
+ */
6406
+ enabled: true;
6407
+ /**
6408
+ * Trusted ID-JAG issuers. These values are never published in OAuth metadata.
6409
+ *
6410
+ * @minItems 1
6411
+ */
6412
+ trustedIssuers: [
6413
+ {
6414
+ /**
6415
+ * Exact issuer URL expected in the ID-JAG iss claim.
6416
+ */
6417
+ issuer: string;
6418
+ /**
6419
+ * JWKS URL used to verify ID-JAG signatures from this issuer.
6420
+ */
6421
+ jwksUrl: string;
6422
+ /**
6423
+ * Optional allow-list of client IDs accepted from this issuer. The ID-JAG client_id must still match the authenticated token-endpoint client.
6424
+ */
6425
+ expectedClientIds?: string[];
6426
+ /**
6427
+ * How the ID-JAG subject is mapped into the gateway subject ID.
6428
+ */
6429
+ subjectMapping?: "iss_prefix" | "iss_tenant_prefix" | "sub_id_only";
6430
+ },
6431
+ ...{
6432
+ /**
6433
+ * Exact issuer URL expected in the ID-JAG iss claim.
6434
+ */
6435
+ issuer: string;
6436
+ /**
6437
+ * JWKS URL used to verify ID-JAG signatures from this issuer.
6438
+ */
6439
+ jwksUrl: string;
6440
+ /**
6441
+ * Optional allow-list of client IDs accepted from this issuer. The ID-JAG client_id must still match the authenticated token-endpoint client.
6442
+ */
6443
+ expectedClientIds?: string[];
6444
+ /**
6445
+ * How the ID-JAG subject is mapped into the gateway subject ID.
6446
+ */
6447
+ subjectMapping?: "iss_prefix" | "iss_tenant_prefix" | "sub_id_only";
6448
+ }[],
6449
+ ];
6450
+ /**
6451
+ * Optional allow-list of RFC 9396 authorization_details type values accepted from ID-JAGs.
6452
+ */
6453
+ authorizationDetailsTypesAllowed?: string[];
6454
+ };
6297
6455
  }
6298
6456
 
6299
6457
  declare type McpOAuthRuntimeConfig = z.infer<
@@ -6348,6 +6506,50 @@ declare const mcpOAuthRuntimeConfigSchema: z.ZodObject<
6348
6506
  }
6349
6507
  >
6350
6508
  >;
6509
+ idJag: z.ZodDefault<
6510
+ z.ZodOptional<
6511
+ z.ZodDefault<
6512
+ z.ZodDiscriminatedUnion<
6513
+ [
6514
+ z.ZodObject<
6515
+ {
6516
+ enabled: z.ZodLiteral<false>;
6517
+ },
6518
+ z.core.$strict
6519
+ >,
6520
+ z.ZodObject<
6521
+ {
6522
+ enabled: z.ZodLiteral<true>;
6523
+ trustedIssuers: z.ZodArray<
6524
+ z.ZodObject<
6525
+ {
6526
+ issuer: z.ZodURL;
6527
+ jwksUrl: z.ZodURL;
6528
+ expectedClientIds: z.ZodOptional<
6529
+ z.ZodArray<z.ZodString>
6530
+ >;
6531
+ subjectMapping: z.ZodDefault<
6532
+ z.ZodEnum<{
6533
+ iss_prefix: "iss_prefix";
6534
+ iss_tenant_prefix: "iss_tenant_prefix";
6535
+ sub_id_only: "sub_id_only";
6536
+ }>
6537
+ >;
6538
+ },
6539
+ z.core.$strict
6540
+ >
6541
+ >;
6542
+ authorizationDetailsTypesAllowed: z.ZodOptional<
6543
+ z.ZodArray<z.ZodString>
6544
+ >;
6545
+ },
6546
+ z.core.$strict
6547
+ >,
6548
+ ]
6549
+ >
6550
+ >
6551
+ >
6552
+ >;
6351
6553
  },
6352
6554
  z.core.$strict
6353
6555
  >;
@@ -10879,6 +11081,10 @@ export declare function urlRewriteHandler(
10879
11081
 
10880
11082
  declare type UserDataDefault = any;
10881
11083
 
11084
+ declare type ValidatedAuth0OAuthOptions = z.infer<
11085
+ typeof mcpAuth0OAuthOptionsSchema
11086
+ >;
11087
+
10882
11088
  /**
10883
11089
  * Validates the body of an incoming request based on a JSON schema.
10884
11090
  *