@zuplo/cli 6.72.3 → 6.72.7

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.
Files changed (88) hide show
  1. package/node_modules/@fastify/reply-from/.github/dependabot.yml +42 -2
  2. package/node_modules/@fastify/reply-from/README.md +3 -3
  3. package/node_modules/@fastify/reply-from/index.js +6 -1
  4. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/.gitattributes +2 -0
  5. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/.github/dependabot.yml +53 -0
  6. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/.github/workflows/ci.yml +33 -0
  7. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/.github/workflows/lock-threads.yml +19 -0
  8. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/LICENSE +21 -0
  9. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/README.md +188 -0
  10. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/eslint.config.js +6 -0
  11. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/index.js +67 -0
  12. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/lib/getPluginName.js +25 -0
  13. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/lib/toCamelCase.js +10 -0
  14. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/package.json +70 -0
  15. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/bundlers.test.js +110 -0
  16. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/checkVersion.test.js +67 -0
  17. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/composite.test.js +14 -0
  18. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/esm/esm.mjs +11 -0
  19. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/esm/index.test.js +11 -0
  20. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/extractPluginName.test.js +49 -0
  21. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/mu1tip1e.composite.test.js +15 -0
  22. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/test.js +396 -0
  23. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/toCamelCase.test.js +24 -0
  24. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/types/example-async.tst.ts +19 -0
  25. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/types/example-callback.tst.ts +19 -0
  26. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/types/index.d.ts +54 -0
  27. package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/types/index.tst.ts +249 -0
  28. package/node_modules/@fastify/reply-from/package.json +6 -7
  29. package/node_modules/@fastify/reply-from/test/incomplete-request.test.js +142 -0
  30. package/node_modules/@fastify/reply-from/types/index.tst.ts +123 -0
  31. package/node_modules/@posthog/core/dist/posthog-core-stateless.d.ts +35 -2
  32. package/node_modules/@posthog/core/dist/posthog-core-stateless.d.ts.map +1 -1
  33. package/node_modules/@posthog/core/dist/posthog-core-stateless.js +68 -56
  34. package/node_modules/@posthog/core/dist/posthog-core-stateless.mjs +68 -56
  35. package/node_modules/@posthog/core/dist/posthog-core.d.ts +2 -1
  36. package/node_modules/@posthog/core/dist/posthog-core.d.ts.map +1 -1
  37. package/node_modules/@posthog/core/dist/posthog-core.js +1 -0
  38. package/node_modules/@posthog/core/dist/posthog-core.mjs +1 -0
  39. package/node_modules/@posthog/core/dist/types.d.ts +1 -0
  40. package/node_modules/@posthog/core/dist/types.d.ts.map +1 -1
  41. package/node_modules/@posthog/core/dist/types.js +1 -0
  42. package/node_modules/@posthog/core/dist/types.mjs +1 -0
  43. package/node_modules/@posthog/core/package.json +1 -1
  44. package/node_modules/@posthog/core/src/posthog-core-stateless.ts +135 -72
  45. package/node_modules/@posthog/core/src/posthog-core.ts +3 -1
  46. package/node_modules/@posthog/core/src/types.ts +5 -0
  47. package/node_modules/@zuplo/core/package.json +1 -1
  48. package/node_modules/@zuplo/graphql/package.json +1 -1
  49. package/node_modules/@zuplo/openapi-tools/dist/overlay.d.ts.map +1 -1
  50. package/node_modules/@zuplo/openapi-tools/dist/overlay.js +85 -1
  51. package/node_modules/@zuplo/openapi-tools/dist/overlay.js.map +1 -1
  52. package/node_modules/@zuplo/openapi-tools/dist/overlay.spec.js +82 -0
  53. package/node_modules/@zuplo/openapi-tools/dist/overlay.spec.js.map +1 -1
  54. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  55. package/node_modules/@zuplo/otel/out/esm/chunk-X7TLQJWO.js +26 -0
  56. package/node_modules/@zuplo/otel/out/esm/chunk-X7TLQJWO.js.map +1 -0
  57. package/node_modules/@zuplo/otel/out/esm/index.js +1 -1
  58. package/node_modules/@zuplo/otel/package.json +1 -1
  59. package/node_modules/@zuplo/runtime/out/types/index.d.ts +136 -140
  60. package/node_modules/@zuplo/runtime/out/types/mcp-gateway/index.d.ts +4 -4
  61. package/node_modules/@zuplo/runtime/package.json +1 -1
  62. package/node_modules/hono/dist/adapter/aws-lambda/handler.js +1 -4
  63. package/node_modules/hono/dist/adapter/lambda-edge/handler.js +12 -2
  64. package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +1 -4
  65. package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +12 -2
  66. package/node_modules/hono/dist/cjs/client/client.js +10 -1
  67. package/node_modules/hono/dist/cjs/client/utils.js +1 -1
  68. package/node_modules/hono/dist/cjs/middleware/cache/index.js +1 -1
  69. package/node_modules/hono/dist/cjs/middleware/compress/index.js +2 -1
  70. package/node_modules/hono/dist/cjs/middleware/etag/index.js +2 -1
  71. package/node_modules/hono/dist/cjs/middleware/method-override/index.js +5 -3
  72. package/node_modules/hono/dist/cjs/router/trie-router/node.js +9 -0
  73. package/node_modules/hono/dist/client/client.js +10 -1
  74. package/node_modules/hono/dist/client/utils.js +1 -1
  75. package/node_modules/hono/dist/middleware/cache/index.js +1 -1
  76. package/node_modules/hono/dist/middleware/compress/index.js +2 -1
  77. package/node_modules/hono/dist/middleware/etag/index.js +2 -1
  78. package/node_modules/hono/dist/middleware/method-override/index.js +5 -3
  79. package/node_modules/hono/dist/router/trie-router/node.js +9 -0
  80. package/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +1 -1
  81. package/node_modules/hono/dist/types/helper/websocket/index.d.ts +1 -1
  82. package/node_modules/hono/dist/types/middleware/language/language.d.ts +18 -0
  83. package/node_modules/hono/dist/types/utils/types.d.ts +1 -1
  84. package/node_modules/hono/package.json +4 -4
  85. package/package.json +6 -6
  86. package/node_modules/@fastify/reply-from/types/index.test-d.ts +0 -194
  87. package/node_modules/@zuplo/otel/out/esm/chunk-T25G5RDX.js +0 -26
  88. package/node_modules/@zuplo/otel/out/esm/chunk-T25G5RDX.js.map +0 -1
@@ -125,6 +125,10 @@ export declare function AIGatewayAuthInboundPolicy(
125
125
  * @public
126
126
  */
127
127
  export declare interface AIGatewayAuthInboundPolicyOptions {
128
+ /**
129
+ * The time to cache authentication results for a particular key. Higher values will decrease latency. Cached results will be valid until the cache expires even in the event the key is deleted, etc.
130
+ */
131
+ cacheTtlSeconds?: number;
128
132
  /**
129
133
  * The name of the header with the key.
130
134
  */
@@ -133,10 +137,6 @@ export declare interface AIGatewayAuthInboundPolicyOptions {
133
137
  * The scheme used on the header.
134
138
  */
135
139
  authScheme?: string;
136
- /**
137
- * The time to cache authentication results for a particular key. Higher values will decrease latency. Cached results will be valid until the cache expires even in the event the key is deleted, etc.
138
- */
139
- cacheTtlSeconds?: number;
140
140
  }
141
141
 
142
142
  /**
@@ -383,8 +383,8 @@ export declare function AIGatewaySemanticCacheV2InboundPolicy(
383
383
  export declare interface AIGatewaySemanticCacheV2InboundPolicyOptions {
384
384
  semanticTolerance?: SemanticTolerance;
385
385
  expirationSecondsTtl?: CacheTTLSeconds;
386
- maxConversationLength?: MaxConversationLength;
387
386
  namespace?: CacheNamespace;
387
+ maxConversationLength?: MaxConversationLength;
388
388
  endpoints?: ApplicableEndpoints;
389
389
  onUnknownShape?: OnUnknownShape;
390
390
  }
@@ -1142,6 +1142,10 @@ export declare function ApiKeyInboundPolicy(
1142
1142
  * @public
1143
1143
  */
1144
1144
  export declare interface ApiKeyInboundPolicyOptions {
1145
+ /**
1146
+ * The time to cache authentication results for a particular key. Higher values will decrease latency. Cached results will be valid until the cache expires even in the event the key is deleted, etc.
1147
+ */
1148
+ cacheTtlSeconds?: number;
1145
1149
  /**
1146
1150
  * The name of the header with the key.
1147
1151
  */
@@ -1162,10 +1166,6 @@ export declare interface ApiKeyInboundPolicyOptions {
1162
1166
  * If requests should proceed even if the policy does not successfully authenticate the request. Defaults to false and rejects any request without a valid API key (returning a `401 - Unauthorized` response). Set to `true` to support multiple authentication methods or support both authenticated and anonymous requests.
1163
1167
  */
1164
1168
  allowUnauthenticatedRequests?: boolean;
1165
- /**
1166
- * The time to cache authentication results for a particular key. Higher values will decrease latency. Cached results will be valid until the cache expires even in the event the key is deleted, etc.
1167
- */
1168
- cacheTtlSeconds?: number;
1169
1169
  /**
1170
1170
  * Zuplo will automatically document your API key header within your OpenAPI specification & Developer Portal. Set this to `true` to disable this behavior.
1171
1171
  */
@@ -1577,10 +1577,6 @@ export declare const Auth0JwtInboundPolicy: InboundPolicyHandler<Auth0JwtInbound
1577
1577
  * @public
1578
1578
  */
1579
1579
  export declare interface Auth0JwtInboundPolicyOptions {
1580
- /**
1581
- * Allow unauthenticated requests to proceed. This is use useful if you want to use multiple authentication policies or if you want to allow both authenticated and non-authenticated traffic.
1582
- */
1583
- allowUnauthenticatedRequests?: boolean;
1584
1580
  /**
1585
1581
  * Your Auth0 domain. For example, `my-company.auth0.com`.
1586
1582
  */
@@ -1589,6 +1585,10 @@ export declare interface Auth0JwtInboundPolicyOptions {
1589
1585
  * The Auth0 audience of your API, for example `https://api.example.com/`.
1590
1586
  */
1591
1587
  audience?: string;
1588
+ /**
1589
+ * Allow unauthenticated requests to proceed. This is use useful if you want to use multiple authentication policies or if you want to allow both authenticated and non-authenticated traffic.
1590
+ */
1591
+ allowUnauthenticatedRequests?: boolean;
1592
1592
  /**
1593
1593
  * Flag that determines whether OAuth protected resource metadata is enabled.
1594
1594
  */
@@ -1653,10 +1653,6 @@ export declare interface AuthZenInboundPolicyOptions {
1653
1653
  * The hostname of the AuthZen PDP service.
1654
1654
  */
1655
1655
  authorizerHostname: string;
1656
- /**
1657
- * The authorization header to use when communicating with the AuthZen PDP service.
1658
- */
1659
- authorizerAuthorizationHeader?: string;
1660
1656
  /**
1661
1657
  * The subject of the request.
1662
1658
  */
@@ -1695,6 +1691,10 @@ export declare interface AuthZenInboundPolicyOptions {
1695
1691
  name: string;
1696
1692
  [k: string]: unknown;
1697
1693
  };
1694
+ /**
1695
+ * The authorization header to use when communicating with the AuthZen PDP service.
1696
+ */
1697
+ authorizerAuthorizationHeader?: string;
1698
1698
  /**
1699
1699
  * If explicitly set to false, the policy will not throw an error if there is any problem communicating with the AuthZen PDP service and allow calls through. By default throwOnError is assumed to be on/true.
1700
1700
  */
@@ -1992,10 +1992,6 @@ export declare class AxiomaticsAuthZInboundPolicy extends InboundPolicy<Axiomati
1992
1992
  * @public
1993
1993
  */
1994
1994
  export declare interface AxiomaticsAuthZInboundPolicyOptions {
1995
- /**
1996
- * Indicates whether the request should continue if authorization fails. Default is `false` which means unauthorized users will automatically receive a 403 response.
1997
- */
1998
- allowUnauthorizedRequests?: boolean;
1999
1995
  /**
2000
1996
  * The URL to which the plugin will make a JSON POST request before proxying the original request.
2001
1997
  */
@@ -2008,6 +2004,10 @@ export declare interface AxiomaticsAuthZInboundPolicyOptions {
2008
2004
  * The password to use when authenticating with the PDP.
2009
2005
  */
2010
2006
  pdpPassword: string;
2007
+ /**
2008
+ * Indicates whether the request should continue if authorization fails. Default is `false` which means unauthorized users will automatically receive a 403 response.
2009
+ */
2010
+ allowUnauthorizedRequests?: boolean;
2011
2011
  /**
2012
2012
  * Indicates whether the plugin should include default action attributes in the authorization request.
2013
2013
  */
@@ -2261,7 +2261,7 @@ export declare interface BasicAuthInboundPolicyOptions {
2261
2261
  */
2262
2262
  accounts: BasicAuthAccount[];
2263
2263
  /**
2264
- * If 'true' allows the request to continue even if authenticated. When 'false' (the default) any unauthenticated request is automatically rejected with a 401.
2264
+ * If 'true' allows the request to continue even if unauthenticated. When 'false' (the default) any unauthenticated request is automatically rejected with a 401.
2265
2265
  */
2266
2266
  allowUnauthenticatedRequests?: boolean;
2267
2267
  }
@@ -2431,13 +2431,9 @@ export declare function CachingInboundPolicy(
2431
2431
  */
2432
2432
  export declare interface CachingInboundPolicyOptions {
2433
2433
  /**
2434
- * Specifies an id or 'key' for this policy to store cache. This is useful for cache-busting. For example, set this property to an env var and if you change that env var value, you invalidate the cache.
2435
- */
2436
- cacheId?: string;
2437
- /**
2438
- * By default, the Authorization header is always considered in the caching policy. You can disable by setting this to `true`.
2434
+ * The timeout of the cache in seconds.
2439
2435
  */
2440
- dangerouslyIgnoreAuthorizationHeader?: boolean;
2436
+ expirationSecondsTtl?: number;
2441
2437
  /**
2442
2438
  * The headers to be considered when caching.
2443
2439
  */
@@ -2446,14 +2442,18 @@ export declare interface CachingInboundPolicyOptions {
2446
2442
  * HTTP Methods to be cached. Valid methods are: GET, POST, PUT, PATCH, DELETE, HEAD.
2447
2443
  */
2448
2444
  cacheHttpMethods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD")[];
2449
- /**
2450
- * The timeout of the cache in seconds.
2451
- */
2452
- expirationSecondsTtl?: number;
2453
2445
  /**
2454
2446
  * Response status codes to be cached.
2455
2447
  */
2456
2448
  statusCodes?: number[];
2449
+ /**
2450
+ * Specifies an id or 'key' for this policy to store cache. This is useful for cache-busting. For example, set this property to an env var and if you change that env var value, you invalidate the cache.
2451
+ */
2452
+ cacheId?: string;
2453
+ /**
2454
+ * By default, the Authorization header is always considered in the caching policy. You can disable by setting this to `true`.
2455
+ */
2456
+ dangerouslyIgnoreAuthorizationHeader?: boolean;
2457
2457
  }
2458
2458
 
2459
2459
  /**
@@ -2737,14 +2737,14 @@ export declare const ClerkJwtInboundPolicy: InboundPolicyHandler<ClerkJwtInbound
2737
2737
  * @public
2738
2738
  */
2739
2739
  export declare interface ClerkJwtInboundPolicyOptions {
2740
- /**
2741
- * Allow unauthenticated requests to proceed. This is use useful if you want to use multiple authentication policies or if you want to allow both authenticated and non-authenticated traffic.
2742
- */
2743
- allowUnauthenticatedRequests?: boolean;
2744
2740
  /**
2745
2741
  * Your Clerk Frontend API URL, i.e. `https://verb-noun-00.clerk.accounts.dev`. Can be found in the Clerk portal: https://dashboard.clerk.com/last-active?path=api-keys.
2746
2742
  */
2747
2743
  frontendApiUrl: string;
2744
+ /**
2745
+ * Allow unauthenticated requests to proceed. This is use useful if you want to use multiple authentication policies or if you want to allow both authenticated and non-authenticated traffic.
2746
+ */
2747
+ allowUnauthenticatedRequests?: boolean;
2748
2748
  /**
2749
2749
  * Flag that determines whether OAuth protected resource metadata is enabled.
2750
2750
  */
@@ -2810,10 +2810,6 @@ export declare const CognitoJwtInboundPolicy: InboundPolicyHandler<CognitoJwtInb
2810
2810
  * @public
2811
2811
  */
2812
2812
  export declare interface CognitoJwtInboundPolicyOptions {
2813
- /**
2814
- * Allow unauthenticated requests to proceed. This is use useful if you want to use multiple authentication policies or if you want to allow both authenticated and non-authenticated traffic.
2815
- */
2816
- allowUnauthenticatedRequests?: boolean;
2817
2813
  /**
2818
2814
  * The AWS region where your Cognito instance is deployed.
2819
2815
  */
@@ -2822,6 +2818,10 @@ export declare interface CognitoJwtInboundPolicyOptions {
2822
2818
  * The user pool identifier.
2823
2819
  */
2824
2820
  userPoolId: string;
2821
+ /**
2822
+ * Allow unauthenticated requests to proceed. This is use useful if you want to use multiple authentication policies or if you want to allow both authenticated and non-authenticated traffic.
2823
+ */
2824
+ allowUnauthenticatedRequests?: boolean;
2825
2825
  /**
2826
2826
  * Flag that determines whether OAuth protected resource metadata is enabled.
2827
2827
  */
@@ -3677,10 +3677,6 @@ export declare interface DataLossPreventionInboundPolicyOptions {
3677
3677
  | "secret-twilio"
3678
3678
  | "secret-zuplo"
3679
3679
  )[];
3680
- /**
3681
- * Additional customer-defined regex recognizers. Invalid patterns are logged and skipped rather than failing the request.
3682
- */
3683
- customPatterns?: DlpCustomPattern[];
3684
3680
  /**
3685
3681
  * What to do when sensitive data is detected. `mask` redacts matches before forwarding the request, `block` rejects with a 422 listing only the detected entity names, and `log` records a warning and forwards the request unchanged.
3686
3682
  */
@@ -3689,6 +3685,10 @@ export declare interface DataLossPreventionInboundPolicyOptions {
3689
3685
  * The string that replaces detected values when `action` is `mask`.
3690
3686
  */
3691
3687
  mask?: string;
3688
+ /**
3689
+ * Additional customer-defined regex recognizers. Invalid patterns are logged and skipped rather than failing the request.
3690
+ */
3691
+ customPatterns?: DlpCustomPattern[];
3692
3692
  /**
3693
3693
  * Minimum confidence (0-1) a match must reach to count as a finding. Context-dependent recognizers (for example `finance-us-bank-account` or `finance-us-aba-routing`) sit below the default threshold of 0.5 until a context word near the match boosts them above it. Lower the threshold to surface them everywhere; raise it to keep only prefix- or checksum-validated matches.
3694
3694
  */
@@ -3820,10 +3820,6 @@ export declare interface DataLossPreventionOutboundPolicyOptions {
3820
3820
  | "secret-twilio"
3821
3821
  | "secret-zuplo"
3822
3822
  )[];
3823
- /**
3824
- * Additional customer-defined regex recognizers. Invalid patterns are logged and skipped rather than failing the response.
3825
- */
3826
- customPatterns?: DlpCustomPattern_2[];
3827
3823
  /**
3828
3824
  * What to do when sensitive data is detected. `mask` redacts matches before returning the response, `block` replaces the response with a 422 listing only the detected entity names, and `log` records a warning and returns the response unchanged.
3829
3825
  */
@@ -3832,6 +3828,10 @@ export declare interface DataLossPreventionOutboundPolicyOptions {
3832
3828
  * The string that replaces detected values when `action` is `mask`.
3833
3829
  */
3834
3830
  mask?: string;
3831
+ /**
3832
+ * Additional customer-defined regex recognizers. Invalid patterns are logged and skipped rather than failing the response.
3833
+ */
3834
+ customPatterns?: DlpCustomPattern_2[];
3835
3835
  /**
3836
3836
  * Minimum confidence (0-1) a match must reach to count as a finding. Context-dependent recognizers (for example `finance-us-bank-account` or `finance-us-aba-routing`) sit below the default threshold of 0.5 until a context word near the match boosts them above it. Lower the threshold to surface them everywhere; raise it to keep only prefix- or checksum-validated matches.
3837
3837
  */
@@ -4111,14 +4111,14 @@ export declare const FirebaseJwtInboundPolicy: InboundPolicyHandler<FirebaseJwtI
4111
4111
  * @public
4112
4112
  */
4113
4113
  export declare interface FirebaseJwtInboundPolicyOptions {
4114
- /**
4115
- * Allow unauthenticated requests to proceed. This is use useful if you want to use multiple authentication policies or if you want to allow both authenticated and non-authenticated traffic.
4116
- */
4117
- allowUnauthenticatedRequests?: boolean;
4118
4114
  /**
4119
4115
  * Your Firebase Project ID.
4120
4116
  */
4121
4117
  projectId: string;
4118
+ /**
4119
+ * Allow unauthenticated requests to proceed. This is use useful if you want to use multiple authentication policies or if you want to allow both authenticated and non-authenticated traffic.
4120
+ */
4121
+ allowUnauthenticatedRequests?: boolean;
4122
4122
  /**
4123
4123
  * Flag that determines whether OAuth protected resource metadata is enabled.
4124
4124
  */
@@ -9747,6 +9747,16 @@ export declare class MonetizationInboundPolicy extends InboundPolicy<Monetizatio
9747
9747
  * @public
9748
9748
  */
9749
9749
  export declare interface MonetizationInboundPolicyOptions {
9750
+ /**
9751
+ * The meters to be used by the policy against the subscription quota.
9752
+ */
9753
+ meters?: {
9754
+ [k: string]: number;
9755
+ };
9756
+ /**
9757
+ * A list of entitlement keys that the subscription must have access to (hasAccess=true) for the request to be allowed. If any required entitlement is missing or does not have access, the request will be rejected with a 403 Forbidden.
9758
+ */
9759
+ requiredEntitlements?: string[];
9750
9760
  /**
9751
9761
  * The name of the header with the key.
9752
9762
  */
@@ -9759,24 +9769,10 @@ export declare interface MonetizationInboundPolicyOptions {
9759
9769
  * The time to cache authentication results for a particular key. Higher values will decrease latency. Cached results will be valid until the cache expires even in the event the key is deleted, etc.
9760
9770
  */
9761
9771
  cacheTtlSeconds?: number;
9762
- /**
9763
- * The meters to be used by the policy against the subscription quota.
9764
- */
9765
- meters?: {
9766
- /**
9767
- * This interface was referenced by `undefined`'s JSON-Schema definition
9768
- * via the `patternProperty` "^.*$".
9769
- */
9770
- [k: string]: number;
9771
- };
9772
9772
  /**
9773
9773
  * A list of successful status codes and ranges "200-299, 304" that should trigger a metering call.
9774
9774
  */
9775
9775
  meterOnStatusCodes?: string | number[];
9776
- /**
9777
- * A list of entitlement keys that the subscription must have access to (hasAccess=true) for the request to be allowed. If any required entitlement is missing or does not have access, the request will be rejected with a 403 Forbidden.
9778
- */
9779
- requiredEntitlements?: string[];
9780
9776
  }
9781
9777
 
9782
9778
  /**
@@ -9871,14 +9867,14 @@ export declare type MTLSAuthInboundPolicyOptions = (
9871
9867
  [k: string]: unknown;
9872
9868
  }
9873
9869
  ) & {
9874
- /**
9875
- * Allows requests to continue even when mTLS verification fails, no client certificate is presented, or the certificate metadata cannot be parsed. Defaults to false.
9876
- */
9877
- allowUnauthenticatedRequests?: boolean;
9878
9870
  /**
9879
9871
  * Fully qualified issuer distinguished name to require on the client certificate. The policy rejects certificates whose parsed issuer DN does not match this string exactly. Required unless `allowUnauthenticatedRequests` is `true`. The expected format matches the parsed metadata issuer, e.g. "CN=example-ca, O=Example, C=US".
9880
9872
  */
9881
9873
  certIssuerDN?: string;
9874
+ /**
9875
+ * Allows requests to continue even when mTLS verification fails, no client certificate is presented, or the certificate metadata cannot be parsed. Defaults to false.
9876
+ */
9877
+ allowUnauthenticatedRequests?: boolean;
9882
9878
  };
9883
9879
 
9884
9880
  /**
@@ -10067,10 +10063,6 @@ export declare interface OktaFGAAuthZInboundPolicyOptions {
10067
10063
  * The ID of the authorization model.
10068
10064
  */
10069
10065
  authorizationModelId: string;
10070
- /**
10071
- * Indicates whether the request should continue if authorization fails. Default is `false` which means unauthorized users will automatically receive a 403 response.
10072
- */
10073
- allowUnauthorizedRequests?: boolean;
10074
10066
  credentials: {
10075
10067
  /**
10076
10068
  * The client ID.
@@ -10082,6 +10074,10 @@ export declare interface OktaFGAAuthZInboundPolicyOptions {
10082
10074
  clientSecret: string;
10083
10075
  [k: string]: unknown;
10084
10076
  };
10077
+ /**
10078
+ * Indicates whether the request should continue if authorization fails. Default is `false` which means unauthorized users will automatically receive a 403 response.
10079
+ */
10080
+ allowUnauthorizedRequests?: boolean;
10085
10081
  }
10086
10082
 
10087
10083
  /**
@@ -10103,10 +10099,6 @@ export declare const OktaJwtInboundPolicy: InboundPolicyHandler<OktaJwtInboundPo
10103
10099
  * @public
10104
10100
  */
10105
10101
  export declare interface OktaJwtInboundPolicyOptions {
10106
- /**
10107
- * Allow unauthenticated requests to proceed. This is use useful if you want to use multiple authentication policies or if you want to allow both authenticated and non-authenticated traffic.
10108
- */
10109
- allowUnauthenticatedRequests?: boolean;
10110
10102
  /**
10111
10103
  * Your Okta authorization server's issuer URL. For example, `https://dev-12345.okta.com/oauth2/abc`.
10112
10104
  */
@@ -10115,6 +10107,10 @@ export declare interface OktaJwtInboundPolicyOptions {
10115
10107
  * The Okta audience of your API, for example `api://my-api`.
10116
10108
  */
10117
10109
  audience?: string;
10110
+ /**
10111
+ * Allow unauthenticated requests to proceed. This is use useful if you want to use multiple authentication policies or if you want to allow both authenticated and non-authenticated traffic.
10112
+ */
10113
+ allowUnauthenticatedRequests?: boolean;
10118
10114
  /**
10119
10115
  * Flag that determines whether OAuth protected resource metadata is enabled.
10120
10116
  */
@@ -10806,15 +10802,15 @@ export declare interface OpenFGAAuthZInboundPolicyOptions {
10806
10802
  * The ID of the authorization model.
10807
10803
  */
10808
10804
  authorizationModelId: string;
10809
- /**
10810
- * Indicates whether the request should continue if authorization fails. Default is `false` which means unauthorized users will automatically receive a 403 response.
10811
- */
10812
- allowUnauthorizedRequests?: boolean;
10813
10805
  credentials:
10814
10806
  | UnauthenticatedCredentialConfig
10815
10807
  | APITokenCredentialConfig
10816
10808
  | HeaderCredentialsConfig
10817
10809
  | ClientCredentialsConfig;
10810
+ /**
10811
+ * Indicates whether the request should continue if authorization fails. Default is `false` which means unauthorized users will automatically receive a 403 response.
10812
+ */
10813
+ allowUnauthorizedRequests?: boolean;
10818
10814
  }
10819
10815
 
10820
10816
  declare interface OpenFGACheck {
@@ -10864,10 +10860,6 @@ declare interface OpenIdJwtInboundPolicyInternalOptions extends Omit<
10864
10860
  * @public
10865
10861
  */
10866
10862
  export declare interface OpenIdJwtInboundPolicyOptions {
10867
- /**
10868
- * The name of the header with the key.
10869
- */
10870
- authHeader?: string;
10871
10863
  /**
10872
10864
  * The expected issuer claim in the JWT token.
10873
10865
  */
@@ -10884,6 +10876,10 @@ export declare interface OpenIdJwtInboundPolicyOptions {
10884
10876
  * The key used to verify the signature of the JWT token (either this or `jwkUrl` must be set).
10885
10877
  */
10886
10878
  secret?: string;
10879
+ /**
10880
+ * The name of the header with the key.
10881
+ */
10882
+ authHeader?: string;
10887
10883
  /**
10888
10884
  * indicates whether the request should continue if authentication fails. Defaults is `false` which means unauthenticated users will automatically receive a 401 response.
10889
10885
  */
@@ -10992,10 +10988,6 @@ export declare class OpenMeterInboundPolicy extends InboundPolicy<OpenMeterInbou
10992
10988
  * @public
10993
10989
  */
10994
10990
  export declare interface OpenMeterInboundPolicyOptions {
10995
- /**
10996
- * The URL of the OpenMeter API endpoint.
10997
- */
10998
- apiUrl?: string;
10999
10991
  /**
11000
10992
  * The API key to use when sending metering calls to OpenMeter.
11001
10993
  */
@@ -11004,6 +10996,14 @@ export declare interface OpenMeterInboundPolicyOptions {
11004
10996
  * A single meter configuration or an array of meter configurations for OpenMeter.
11005
10997
  */
11006
10998
  meter?: Meter | Meter[];
10999
+ /**
11000
+ * A list of entitlements (feature keys) required in order for the call to be allowed.
11001
+ */
11002
+ requiredEntitlements?: string[];
11003
+ /**
11004
+ * The URL of the OpenMeter API endpoint.
11005
+ */
11006
+ apiUrl?: string;
11007
11007
  /**
11008
11008
  * A list of successful status codes and ranges "200-299, 304" that should trigger a metering event.
11009
11009
  */
@@ -11012,10 +11012,6 @@ export declare interface OpenMeterInboundPolicyOptions {
11012
11012
  * The event's source (e.g. the service name).
11013
11013
  */
11014
11014
  eventSource?: string;
11015
- /**
11016
- * A list of entitlements (feature keys) required in order for the call to be allowed.
11017
- */
11018
- requiredEntitlements?: string[];
11019
11015
  /**
11020
11016
  * The path to the property on `request.user` that contains the subject used for meters and entitlements. For example `.data.accountId` would read the `request.user.data.accountId` property.
11021
11017
  */
@@ -11441,14 +11437,14 @@ export declare interface PromptInjectionDetectionOutboundPolicyOptions {
11441
11437
  * Model to use for classification.
11442
11438
  */
11443
11439
  model?: string;
11444
- /**
11445
- * Base URL for the OpenAI compatible API.
11446
- */
11447
- baseUrl?: string;
11448
11440
  /**
11449
11441
  * Whether to block traffic if the classifier fails. When disabled, allows traffic flow if the classifier or inference API is unavailable.
11450
11442
  */
11451
11443
  strict?: boolean;
11444
+ /**
11445
+ * Base URL for the OpenAI compatible API.
11446
+ */
11447
+ baseUrl?: string;
11452
11448
  }
11453
11449
 
11454
11450
  /**
@@ -11470,10 +11466,6 @@ export declare const PropelAuthJwtInboundPolicy: InboundPolicyHandler<PropelAuth
11470
11466
  * @public
11471
11467
  */
11472
11468
  export declare interface PropelAuthJwtInboundPolicyOptions {
11473
- /**
11474
- * Allow unauthenticated requests to proceed. This is use useful if you want to use multiple authentication policies or if you want to allow both authenticated and non-authenticated traffic.
11475
- */
11476
- allowUnauthenticatedRequests?: boolean;
11477
11469
  /**
11478
11470
  * Your PropelAuth authUrl. For example, `https://12345678.propelauthtest.com`.
11479
11471
  */
@@ -11482,6 +11474,10 @@ export declare interface PropelAuthJwtInboundPolicyOptions {
11482
11474
  * Your public (verifier) key that is used to verify access tokens. This key has a value that begins with '-----BEGIN PUBLIC KEY-----'. Make sure to remove all line breaks from the key before saving the variable.
11483
11475
  */
11484
11476
  verifierKey: string;
11477
+ /**
11478
+ * Allow unauthenticated requests to proceed. This is use useful if you want to use multiple authentication policies or if you want to allow both authenticated and non-authenticated traffic.
11479
+ */
11480
+ allowUnauthenticatedRequests?: boolean;
11485
11481
  /**
11486
11482
  * Flag that determines whether OAuth protected resource metadata is enabled.
11487
11483
  */
@@ -11577,16 +11573,16 @@ export declare interface QuotaInboundPolicyOptions {
11577
11573
  * The quota by.
11578
11574
  */
11579
11575
  quotaBy: "user" | "function";
11580
- /**
11581
- * How the policy determines the anchor date for ongoing quota cycles - defaults to `first-api-call` which uses the first API call for this key.
11582
- */
11583
- quotaAnchorMode?: "first-api-call" | "function";
11584
11576
  /**
11585
11577
  * The allowances for the quota.
11586
11578
  */
11587
11579
  allowances?: {
11588
11580
  [k: string]: number;
11589
11581
  };
11582
+ /**
11583
+ * How the policy determines the anchor date for ongoing quota cycles - defaults to `first-api-call` which uses the first API call for this key.
11584
+ */
11585
+ quotaAnchorMode?: "first-api-call" | "function";
11590
11586
  /**
11591
11587
  * A list of successful status codes and ranges "200-299, 304" that should trigger a quota increment.
11592
11588
  */
@@ -11811,14 +11807,14 @@ declare interface ReadmeMeteringInboundPolicyOptions {
11811
11807
  * The API key to use when sending metrics calls to Readme.
11812
11808
  */
11813
11809
  apiKey: string;
11814
- /**
11815
- * This is the path to the property on `request.user` that contains the label you want to use. For example `.data.accountNumber` would read the `request.user.data.accountNumber` property.
11816
- */
11817
- userLabelPropertyPath?: string;
11818
11810
  /**
11819
11811
  * This is the path to the property on `request.user` that contains the e-mail of the user. For example `.data.email` would read the `request.user.data.email` property.
11820
11812
  */
11821
11813
  userEmailPropertyPath?: string;
11814
+ /**
11815
+ * This is the path to the property on `request.user` that contains the label you want to use. For example `.data.accountNumber` would read the `request.user.data.accountNumber` property.
11816
+ */
11817
+ userLabelPropertyPath?: string;
11822
11818
  /**
11823
11819
  * Whether the data should be ingested as 'development' mode or not. Defaults to true for working-copy and false for all other environments.
11824
11820
  */
@@ -12281,14 +12277,14 @@ export declare const RequestValidationInboundPolicy: InboundPolicyHandler<Reques
12281
12277
  * @public
12282
12278
  */
12283
12279
  export declare interface RequestValidationInboundPolicyOptions {
12284
- /**
12285
- * The log level to use when logging validation errors.
12286
- */
12287
- logLevel?: "error" | "warn" | "info" | "debug";
12288
12280
  validateBody?: ValidationOptions;
12289
12281
  validateQueryParameters?: ValidationOptions1;
12290
12282
  validatePathParameters?: ValidationOptions2;
12291
12283
  validateHeaders?: ValidationOptions3;
12284
+ /**
12285
+ * The log level to use when logging validation errors.
12286
+ */
12287
+ logLevel?: "error" | "warn" | "info" | "debug";
12292
12288
  /**
12293
12289
  * Whether to include the request in the logs.
12294
12290
  */
@@ -13502,6 +13498,10 @@ export declare type SemanticCacheInboundPolicyOptions = {
13502
13498
  * Determines how the cache key is generated. Use 'function' for custom logic or 'propertyPath' to extract from JSON body.
13503
13499
  */
13504
13500
  cacheBy: "function" | "propertyPath";
13501
+ /**
13502
+ * The path to the property in the request body (JSON) to use as cache key. For example '.userId' would read the 'userId' property from the request body. Only works with cacheBy=propertyPath.
13503
+ */
13504
+ cacheByPropertyPath?: string;
13505
13505
  /**
13506
13506
  * The function that returns dynamic cache key data. Used only with `cacheBy=function`.
13507
13507
  */
@@ -13515,10 +13515,6 @@ export declare type SemanticCacheInboundPolicyOptions = {
13515
13515
  */
13516
13516
  module: string;
13517
13517
  };
13518
- /**
13519
- * The path to the property in the request body (JSON) to use as cache key. For example '.userId' would read the 'userId' property from the request body. Only works with cacheBy=propertyPath.
13520
- */
13521
- cacheByPropertyPath?: string;
13522
13518
  /**
13523
13519
  * Response status codes to be cached.
13524
13520
  */
@@ -13753,14 +13749,14 @@ export declare const SetUpstreamApiKeyInboundPolicy: InboundPolicyHandler<SetUps
13753
13749
  * @public
13754
13750
  */
13755
13751
  export declare interface SetUpstreamApiKeyInboundPolicyOptions {
13756
- /**
13757
- * The name of the header to set on the request. Defaults to `Authorization`.
13758
- */
13759
- header?: string;
13760
13752
  /**
13761
13753
  * The value of the header. Most commonly an environment variable reference such as `Bearer $env(UPSTREAM_API_KEY)` so the secret is sourced from your environment.
13762
13754
  */
13763
13755
  value: string;
13756
+ /**
13757
+ * The name of the header to set on the request. Defaults to `Authorization`.
13758
+ */
13759
+ header?: string;
13764
13760
  /**
13765
13761
  * Overwrite the value if the header is already present in the request.
13766
13762
  */
@@ -14002,7 +13998,7 @@ export declare interface StripeWebhookVerificationInboundPolicyOptions {
14002
13998
  */
14003
13999
  signingSecret: string;
14004
14000
  /**
14005
- * The allowed clock skew in seconds between the time the webhook signature was crated and the current time.
14001
+ * The allowed clock skew in seconds between the time the webhook signature was created and the current time.
14006
14002
  */
14007
14003
  tolerance?: number;
14008
14004
  }
@@ -14051,16 +14047,16 @@ export declare interface SupabaseJwtInboundPolicyOptions {
14051
14047
  * The key used to verify the signature of the JWT token.
14052
14048
  */
14053
14049
  secret: string;
14054
- /**
14055
- * Indicates whether the request should continue if authentication fails. Default is `false` which means unauthenticated users will automatically receive a 401 response.
14056
- */
14057
- allowUnauthenticatedRequests?: boolean;
14058
14050
  /**
14059
14051
  * Any claims that must be present for authentication to succeed - multiple valid values can be specified for each claim.
14060
14052
  */
14061
14053
  requiredClaims?: {
14062
14054
  [k: string]: string[];
14063
14055
  };
14056
+ /**
14057
+ * Indicates whether the request should continue if authentication fails. Default is `false` which means unauthenticated users will automatically receive a 401 response.
14058
+ */
14059
+ allowUnauthenticatedRequests?: boolean;
14064
14060
  /**
14065
14061
  * Flag that determines whether OAuth protected resource metadata is enabled.
14066
14062
  */
@@ -14390,7 +14386,7 @@ export declare interface UpstreamAzureAdServiceAuthInboundPolicyOptions {
14390
14386
  */
14391
14387
  activeDirectoryClientSecret: string;
14392
14388
  /**
14393
- * The number of times to retry fetching the token in the event of a failure..
14389
+ * The number of times to retry fetching the token in the event of a failure.
14394
14390
  */
14395
14391
  tokenRetries?: number;
14396
14392
  /**
@@ -14465,15 +14461,15 @@ export declare interface UpstreamFirebaseUserAuthInboundPolicyOptions {
14465
14461
  * The property on the incoming request.user object to retrieve the value of the userId.
14466
14462
  */
14467
14463
  userIdPropertyPath?: string;
14468
- /**
14469
- * Additional claims to include in the custom token's payload.
14470
- */
14471
- developerClaims?: Record<string, string | number | boolean | null>;
14472
14464
  /**
14473
14465
  * The Firebase Web API Key (found in project settings)
14474
14466
  * @see {@link https://firebase.google.com/docs/projects/api-keys|Firebase API Keys}.
14475
14467
  */
14476
14468
  webApiKey: string;
14469
+ /**
14470
+ * Additional claims to include in the custom token's payload.
14471
+ */
14472
+ developerClaims?: Record<string, string | number | boolean | null>;
14477
14473
  /**
14478
14474
  * The number of times to retry fetching the token in the event of a failure.
14479
14475
  */
@@ -14683,6 +14679,10 @@ export declare interface UpstreamZuploJwtAuthInboundPolicyOptions {
14683
14679
  * The audience claim for the JWT.
14684
14680
  */
14685
14681
  audience?: string;
14682
+ /**
14683
+ * JWT expiration time. Can be a number (seconds) or a string with units (e.g., '5m' for 5 minutes, '1h' for 1 hour, '7d' for 7 days). Defaults to 300 seconds (5 minutes).
14684
+ */
14685
+ expiresIn?: number | string;
14686
14686
  /**
14687
14687
  * The subject ('sub') claim for the minted JWT. Identifies the acting subject of the token (typically the gateway itself).
14688
14688
  */
@@ -14707,10 +14707,6 @@ export declare interface UpstreamZuploJwtAuthInboundPolicyOptions {
14707
14707
  additionalClaims?: {
14708
14708
  [k: string]: unknown;
14709
14709
  };
14710
- /**
14711
- * JWT expiration time. Can be a number (seconds) or a string with units (e.g., '5m' for 5 minutes, '1h' for 1 hour, '7d' for 7 days). Defaults to 300 seconds (5 minutes).
14712
- */
14713
- expiresIn?: number | string;
14714
14710
  }
14715
14711
 
14716
14712
  declare interface UrlConfig {
@@ -15242,6 +15238,10 @@ export declare interface XmlToJsonPolicyOptions {
15242
15238
  * Ignore tag attributes.
15243
15239
  */
15244
15240
  ignoreAttributes?: boolean;
15241
+ /**
15242
+ * Remove surrounding whitespace from tag or attribute value.
15243
+ */
15244
+ trimValues?: boolean;
15245
15245
  /**
15246
15246
  * At particular point, if you don't want to parse a tag and it's nested tags then you can set their path in stopNodes. You can also set tags which should not be processed irrespective of their path using * as the wildcard.
15247
15247
  */
@@ -15254,10 +15254,6 @@ export declare interface XmlToJsonPolicyOptions {
15254
15254
  * Text value of a tag is parsed to #text property by default.
15255
15255
  */
15256
15256
  textNodeName?: string;
15257
- /**
15258
- * Remove surrounding whitespace from tag or attribute value.
15259
- */
15260
- trimValues?: boolean;
15261
15257
  /**
15262
15258
  * A list of status codes and ranges "200-299, 304" that should the XML parser should run on. If not set, the parser will run on all status codes.
15263
15259
  */