@zuplo/cli 6.72.3 → 6.72.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@fastify/reply-from/.github/dependabot.yml +42 -2
- package/node_modules/@fastify/reply-from/README.md +3 -3
- package/node_modules/@fastify/reply-from/index.js +6 -1
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/.gitattributes +2 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/.github/dependabot.yml +53 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/.github/workflows/ci.yml +33 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/LICENSE +21 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/README.md +188 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/eslint.config.js +6 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/index.js +67 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/lib/getPluginName.js +25 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/lib/toCamelCase.js +10 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/package.json +70 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/bundlers.test.js +110 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/checkVersion.test.js +67 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/composite.test.js +14 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/esm/esm.mjs +11 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/esm/index.test.js +11 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/extractPluginName.test.js +49 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/mu1tip1e.composite.test.js +15 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/test.js +396 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/test/toCamelCase.test.js +24 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/types/example-async.tst.ts +19 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/types/example-callback.tst.ts +19 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/types/index.d.ts +54 -0
- package/node_modules/@fastify/reply-from/node_modules/fastify-plugin/types/index.tst.ts +249 -0
- package/node_modules/@fastify/reply-from/package.json +6 -7
- package/node_modules/@fastify/reply-from/test/incomplete-request.test.js +142 -0
- package/node_modules/@fastify/reply-from/types/index.tst.ts +123 -0
- package/node_modules/@posthog/core/dist/index.d.ts +1 -0
- package/node_modules/@posthog/core/dist/index.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/posthog-core-stateless.d.ts +35 -2
- package/node_modules/@posthog/core/dist/posthog-core-stateless.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/posthog-core-stateless.js +68 -56
- package/node_modules/@posthog/core/dist/posthog-core-stateless.mjs +68 -56
- package/node_modules/@posthog/core/dist/posthog-core.d.ts +2 -1
- package/node_modules/@posthog/core/dist/posthog-core.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/posthog-core.js +1 -0
- package/node_modules/@posthog/core/dist/posthog-core.mjs +1 -0
- package/node_modules/@posthog/core/dist/types.d.ts +1 -0
- package/node_modules/@posthog/core/dist/types.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/types.js +1 -0
- package/node_modules/@posthog/core/dist/types.mjs +1 -0
- package/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.d.ts +17 -0
- package/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.js +18 -1
- package/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs +9 -1
- package/node_modules/@posthog/core/dist/utils/type-utils.d.ts.map +1 -1
- package/node_modules/@posthog/core/package.json +2 -2
- package/node_modules/@posthog/core/src/index.ts +3 -0
- package/node_modules/@posthog/core/src/posthog-core-stateless.ts +135 -73
- package/node_modules/@posthog/core/src/posthog-core.ts +3 -2
- package/node_modules/@posthog/core/src/types.ts +5 -0
- package/node_modules/@posthog/core/src/utils/bucketed-rate-limiter.spec.ts +38 -1
- package/node_modules/@posthog/core/src/utils/bucketed-rate-limiter.ts +29 -0
- package/node_modules/@posthog/core/src/utils/type-utils.ts +0 -6
- package/node_modules/@posthog/types/LICENSE +2 -2
- package/node_modules/@posthog/types/dist/index.d.ts +1 -1
- package/node_modules/@posthog/types/dist/index.d.ts.map +1 -1
- package/node_modules/@posthog/types/dist/posthog-config.d.ts +32 -11
- package/node_modules/@posthog/types/dist/posthog-config.d.ts.map +1 -1
- package/node_modules/@posthog/types/package.json +1 -1
- package/node_modules/@posthog/types/src/index.ts +1 -0
- package/node_modules/@posthog/types/src/posthog-config.ts +34 -11
- package/node_modules/@zuplo/core/customer.cli.minified.js +1 -1
- package/node_modules/@zuplo/core/index.minified.js +1 -1
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/dist/overlay.d.ts.map +1 -1
- package/node_modules/@zuplo/openapi-tools/dist/overlay.js +85 -1
- package/node_modules/@zuplo/openapi-tools/dist/overlay.js.map +1 -1
- package/node_modules/@zuplo/openapi-tools/dist/overlay.spec.js +82 -0
- package/node_modules/@zuplo/openapi-tools/dist/overlay.spec.js.map +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/out/esm/chunk-X7TLQJWO.js +26 -0
- package/node_modules/@zuplo/otel/out/esm/chunk-X7TLQJWO.js.map +1 -0
- package/node_modules/@zuplo/otel/out/esm/index.js +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/{chunk-423FXHUV.js → chunk-HKSZ4V6H.js} +124 -124
- package/node_modules/@zuplo/runtime/out/esm/chunk-HKSZ4V6H.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +417 -141
- package/node_modules/@zuplo/runtime/out/types/mcp-gateway/index.d.ts +9 -9
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/node_modules/hono/dist/adapter/aws-lambda/handler.js +1 -4
- package/node_modules/hono/dist/adapter/lambda-edge/handler.js +12 -2
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +1 -4
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +12 -2
- package/node_modules/hono/dist/cjs/client/client.js +10 -1
- package/node_modules/hono/dist/cjs/client/utils.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/cache/index.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/compress/index.js +2 -1
- package/node_modules/hono/dist/cjs/middleware/etag/index.js +2 -1
- package/node_modules/hono/dist/cjs/middleware/method-override/index.js +5 -3
- package/node_modules/hono/dist/cjs/router/trie-router/node.js +9 -0
- package/node_modules/hono/dist/client/client.js +10 -1
- package/node_modules/hono/dist/client/utils.js +1 -1
- package/node_modules/hono/dist/middleware/cache/index.js +1 -1
- package/node_modules/hono/dist/middleware/compress/index.js +2 -1
- package/node_modules/hono/dist/middleware/etag/index.js +2 -1
- package/node_modules/hono/dist/middleware/method-override/index.js +5 -3
- package/node_modules/hono/dist/router/trie-router/node.js +9 -0
- package/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +1 -1
- package/node_modules/hono/dist/types/helper/websocket/index.d.ts +1 -1
- package/node_modules/hono/dist/types/middleware/language/language.d.ts +18 -0
- package/node_modules/hono/dist/types/utils/types.d.ts +1 -1
- package/node_modules/hono/package.json +4 -4
- package/package.json +6 -6
- package/node_modules/@fastify/reply-from/types/index.test-d.ts +0 -194
- package/node_modules/@zuplo/otel/out/esm/chunk-T25G5RDX.js +0 -26
- package/node_modules/@zuplo/otel/out/esm/chunk-T25G5RDX.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-423FXHUV.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-423FXHUV.js.LEGAL.txt → chunk-HKSZ4V6H.js.LEGAL.txt} +0 -0
|
@@ -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,35 @@ export declare interface AIGatewayAuthInboundPolicyOptions {
|
|
|
133
137
|
* The scheme used on the header.
|
|
134
138
|
*/
|
|
135
139
|
authScheme?: string;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export declare type AIGatewayCapability =
|
|
143
|
+
| "completions"
|
|
144
|
+
| "embeddings"
|
|
145
|
+
| "rerank"
|
|
146
|
+
| "moderations"
|
|
147
|
+
| "images"
|
|
148
|
+
| "audio_speech"
|
|
149
|
+
| "audio_transcriptions";
|
|
150
|
+
|
|
151
|
+
export declare interface AIGatewayCapabilityRouting {
|
|
152
|
+
model: AIGatewayModelRef;
|
|
153
|
+
fallback?: AIGatewayFallbackRef;
|
|
154
|
+
quotaFallback?: AIGatewayModelRef;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export declare interface AIGatewayCapabilitySelection {
|
|
158
|
+
candidates: AIGatewayModelCandidate[];
|
|
159
|
+
fallbackTimeoutSeconds?: number;
|
|
160
|
+
quotaFallback?: AIGatewayModelCandidate;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export declare interface AIGatewayFallbackRef extends AIGatewayModelRef {
|
|
136
164
|
/**
|
|
137
|
-
*
|
|
165
|
+
* Bounds the primary call before failing over. Defaults to 60 seconds and is
|
|
166
|
+
* only meaningful when a fallback is configured.
|
|
138
167
|
*/
|
|
139
|
-
|
|
168
|
+
timeoutSeconds?: number;
|
|
140
169
|
}
|
|
141
170
|
|
|
142
171
|
/**
|
|
@@ -165,6 +194,36 @@ export declare function aiGatewayHandler(
|
|
|
165
194
|
context: ZuploContext
|
|
166
195
|
): Promise<Response>;
|
|
167
196
|
|
|
197
|
+
/**
|
|
198
|
+
* Routes AI requests using the model selection stored in the request context.
|
|
199
|
+
* Attach the `ai-gateway-models-inbound` policy before this handler runs. To
|
|
200
|
+
* compute routing per request, set that policy's `routingFunction` option to
|
|
201
|
+
* a module export.
|
|
202
|
+
*
|
|
203
|
+
* @beta
|
|
204
|
+
* @param request - The incoming AI Gateway request.
|
|
205
|
+
* @param context - The ZuploContext containing the model selection.
|
|
206
|
+
* @returns A response from the selected AI provider.
|
|
207
|
+
*
|
|
208
|
+
* @public
|
|
209
|
+
* @example
|
|
210
|
+
* ```json
|
|
211
|
+
* {
|
|
212
|
+
* "handler": {
|
|
213
|
+
* "export": "aiGatewayHandlerV2",
|
|
214
|
+
* "module": "$import(@zuplo/runtime)"
|
|
215
|
+
* },
|
|
216
|
+
* "policies": {
|
|
217
|
+
* "inbound": ["ai-gateway-models"]
|
|
218
|
+
* }
|
|
219
|
+
* }
|
|
220
|
+
* ```
|
|
221
|
+
*/
|
|
222
|
+
export declare function aiGatewayHandlerV2(
|
|
223
|
+
request: ZuploRequest,
|
|
224
|
+
context: ZuploContext
|
|
225
|
+
): Promise<Response>;
|
|
226
|
+
|
|
168
227
|
/* Excluded from this release type: AIGatewayMeterIncrements */
|
|
169
228
|
|
|
170
229
|
/**
|
|
@@ -263,6 +322,69 @@ export declare interface AIGatewayMeteringInboundPolicyOptions {
|
|
|
263
322
|
throwOnFailure?: boolean;
|
|
264
323
|
}
|
|
265
324
|
|
|
325
|
+
export declare interface AIGatewayModelCandidate {
|
|
326
|
+
provider: string;
|
|
327
|
+
model: string;
|
|
328
|
+
apiKey?: string;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export declare interface AIGatewayModelRef {
|
|
332
|
+
provider: string;
|
|
333
|
+
model: string;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export declare interface AIGatewayModelRouting {
|
|
337
|
+
providers: AIGatewayProviderCredential[];
|
|
338
|
+
completions?: AIGatewayCapabilityRouting;
|
|
339
|
+
embeddings?: AIGatewayCapabilityRouting;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export declare interface AIGatewayModelSelection {
|
|
343
|
+
byCapability: Partial<
|
|
344
|
+
Record<AIGatewayCapability, AIGatewayCapabilitySelection>
|
|
345
|
+
>;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Selects AI Gateway models and fallbacks for each configured capability.
|
|
350
|
+
*
|
|
351
|
+
* @title AI Gateway Models
|
|
352
|
+
* @beta
|
|
353
|
+
* @product ai-gateway
|
|
354
|
+
* @hidden
|
|
355
|
+
* @requiresAI
|
|
356
|
+
* @param request - The ZuploRequest
|
|
357
|
+
* @param context - The ZuploContext
|
|
358
|
+
* @param options - The policy options set in policies.json
|
|
359
|
+
* @param policyName - The name of the policy as set in policies.json
|
|
360
|
+
* @returns The request with the model selection stored in context
|
|
361
|
+
*/
|
|
362
|
+
export declare class AIGatewayModelsInboundPolicy extends InboundPolicy<AIGatewayModelsInboundPolicyOptions> {
|
|
363
|
+
#private;
|
|
364
|
+
static readonly policyType = "ai-gateway-models";
|
|
365
|
+
/* Excluded from this release type: setModelSelection */
|
|
366
|
+
/** Get the model selection for the current request. */
|
|
367
|
+
static getModelSelection(
|
|
368
|
+
context: ZuploContext
|
|
369
|
+
): AIGatewayModelSelection | undefined;
|
|
370
|
+
constructor(options: AIGatewayModelsInboundPolicyOptions, policyName: string);
|
|
371
|
+
handler(
|
|
372
|
+
request: ZuploRequest,
|
|
373
|
+
context: ZuploContext
|
|
374
|
+
): Promise<ZuploRequest | Response>;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Options for provider credentials and per-capability AI model routing.
|
|
379
|
+
* @public
|
|
380
|
+
*/
|
|
381
|
+
export declare interface AIGatewayModelsInboundPolicyOptions {
|
|
382
|
+
providers?: Providers;
|
|
383
|
+
completions?: CompletionsRouting;
|
|
384
|
+
routingFunction?: RoutingFunction;
|
|
385
|
+
embeddings?: EmbeddingsRouting;
|
|
386
|
+
}
|
|
387
|
+
|
|
266
388
|
/**
|
|
267
389
|
* Converts OpenAI Chat Completions format responses back to Anthropic Messages format.
|
|
268
390
|
* This policy translates the response when the original request was in Anthropic format.
|
|
@@ -285,6 +407,44 @@ export declare const AIGatewayOpenAIToAnthropicOutboundPolicy: OutboundPolicyHan
|
|
|
285
407
|
*/
|
|
286
408
|
export declare interface AIGatewayOpenAIToAnthropicOutboundPolicyOptions {}
|
|
287
409
|
|
|
410
|
+
export declare interface AIGatewayProviderCredential {
|
|
411
|
+
provider: string;
|
|
412
|
+
apiKey: string;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Computes model routing for a request. Set as the models policy's
|
|
417
|
+
* `routingFunction` option. The returned routing is validated exactly like the
|
|
418
|
+
* static policy options and replaces them for the request. Return undefined to
|
|
419
|
+
* use `options.defaultRouting` unchanged. The function owns merge semantics:
|
|
420
|
+
* return the defaults as-is, a modified copy, or entirely new routing. The
|
|
421
|
+
* request is an isolated clone, so reading its body does not consume the request
|
|
422
|
+
* used by later policies or the route handler.
|
|
423
|
+
*/
|
|
424
|
+
export declare type AIGatewayRoutingFunction = (
|
|
425
|
+
request: ZuploRequest,
|
|
426
|
+
context: ZuploContext,
|
|
427
|
+
options: AIGatewayRoutingFunctionOptions
|
|
428
|
+
) =>
|
|
429
|
+
| AIGatewayModelRouting
|
|
430
|
+
| undefined
|
|
431
|
+
| Promise<AIGatewayModelRouting | undefined>;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Options passed to an {@link AIGatewayRoutingFunction}.
|
|
435
|
+
*/
|
|
436
|
+
export declare interface AIGatewayRoutingFunctionOptions {
|
|
437
|
+
/**
|
|
438
|
+
* The policy's parsed static routing from policies.json, or undefined when
|
|
439
|
+
* no static routing is configured.
|
|
440
|
+
*/
|
|
441
|
+
defaultRouting: AIGatewayModelRouting | undefined;
|
|
442
|
+
/**
|
|
443
|
+
* The name of the models policy as set in policies.json.
|
|
444
|
+
*/
|
|
445
|
+
policyName: string;
|
|
446
|
+
}
|
|
447
|
+
|
|
288
448
|
/**
|
|
289
449
|
* AI Gateway Semantic Cache policy for caching chat completion responses
|
|
290
450
|
* based on semantic similarity of user messages.
|
|
@@ -383,8 +543,8 @@ export declare function AIGatewaySemanticCacheV2InboundPolicy(
|
|
|
383
543
|
export declare interface AIGatewaySemanticCacheV2InboundPolicyOptions {
|
|
384
544
|
semanticTolerance?: SemanticTolerance;
|
|
385
545
|
expirationSecondsTtl?: CacheTTLSeconds;
|
|
386
|
-
maxConversationLength?: MaxConversationLength;
|
|
387
546
|
namespace?: CacheNamespace;
|
|
547
|
+
maxConversationLength?: MaxConversationLength;
|
|
388
548
|
endpoints?: ApplicableEndpoints;
|
|
389
549
|
onUnknownShape?: OnUnknownShape;
|
|
390
550
|
}
|
|
@@ -559,7 +719,7 @@ export declare function AkamaiAIFirewallInboundPolicy(
|
|
|
559
719
|
*/
|
|
560
720
|
export declare interface AkamaiAIFirewallPolicyOptions {
|
|
561
721
|
configurationId: ConfigurationID;
|
|
562
|
-
"api-key":
|
|
722
|
+
"api-key": APIKey_2;
|
|
563
723
|
applicationId?: ApplicationID;
|
|
564
724
|
streamingAccumulation?: StreamingAccumulationSettings;
|
|
565
725
|
}
|
|
@@ -599,7 +759,7 @@ export declare function AkamaiAIFirewallV2InboundPolicy(
|
|
|
599
759
|
*/
|
|
600
760
|
export declare interface AkamaiAIFirewallV2PolicyOptions {
|
|
601
761
|
configurationId: ConfigurationID_2;
|
|
602
|
-
"api-key":
|
|
762
|
+
"api-key": APIKey_3;
|
|
603
763
|
applicationId?: ApplicationID_2;
|
|
604
764
|
streamingAccumulation?: StreamingAccumulationSettings_2;
|
|
605
765
|
endpoints?: ApplicableEndpoints_2;
|
|
@@ -958,7 +1118,7 @@ export declare interface ApiAuthKeyInboundPolicyOptions {
|
|
|
958
1118
|
}
|
|
959
1119
|
|
|
960
1120
|
/**
|
|
961
|
-
* The API key
|
|
1121
|
+
* The API key itself. Use $env(MY_KEY) to substitute an environment variable at build time.
|
|
962
1122
|
* @public
|
|
963
1123
|
*/
|
|
964
1124
|
declare type APIKey = string;
|
|
@@ -969,6 +1129,12 @@ declare type APIKey = string;
|
|
|
969
1129
|
*/
|
|
970
1130
|
declare type APIKey_2 = string;
|
|
971
1131
|
|
|
1132
|
+
/**
|
|
1133
|
+
* The API key for the AI Firewall.
|
|
1134
|
+
* @public
|
|
1135
|
+
*/
|
|
1136
|
+
declare type APIKey_3 = string;
|
|
1137
|
+
|
|
972
1138
|
/**
|
|
973
1139
|
* Represents a consumer in the API Key service.
|
|
974
1140
|
* @public
|
|
@@ -1142,6 +1308,10 @@ export declare function ApiKeyInboundPolicy(
|
|
|
1142
1308
|
* @public
|
|
1143
1309
|
*/
|
|
1144
1310
|
export declare interface ApiKeyInboundPolicyOptions {
|
|
1311
|
+
/**
|
|
1312
|
+
* 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.
|
|
1313
|
+
*/
|
|
1314
|
+
cacheTtlSeconds?: number;
|
|
1145
1315
|
/**
|
|
1146
1316
|
* The name of the header with the key.
|
|
1147
1317
|
*/
|
|
@@ -1162,10 +1332,6 @@ export declare interface ApiKeyInboundPolicyOptions {
|
|
|
1162
1332
|
* 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
1333
|
*/
|
|
1164
1334
|
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
1335
|
/**
|
|
1170
1336
|
* Zuplo will automatically document your API key header within your OpenAPI specification & Developer Portal. Set this to `true` to disable this behavior.
|
|
1171
1337
|
*/
|
|
@@ -1577,10 +1743,6 @@ export declare const Auth0JwtInboundPolicy: InboundPolicyHandler<Auth0JwtInbound
|
|
|
1577
1743
|
* @public
|
|
1578
1744
|
*/
|
|
1579
1745
|
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
1746
|
/**
|
|
1585
1747
|
* Your Auth0 domain. For example, `my-company.auth0.com`.
|
|
1586
1748
|
*/
|
|
@@ -1589,6 +1751,10 @@ export declare interface Auth0JwtInboundPolicyOptions {
|
|
|
1589
1751
|
* The Auth0 audience of your API, for example `https://api.example.com/`.
|
|
1590
1752
|
*/
|
|
1591
1753
|
audience?: string;
|
|
1754
|
+
/**
|
|
1755
|
+
* 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.
|
|
1756
|
+
*/
|
|
1757
|
+
allowUnauthenticatedRequests?: boolean;
|
|
1592
1758
|
/**
|
|
1593
1759
|
* Flag that determines whether OAuth protected resource metadata is enabled.
|
|
1594
1760
|
*/
|
|
@@ -1653,10 +1819,6 @@ export declare interface AuthZenInboundPolicyOptions {
|
|
|
1653
1819
|
* The hostname of the AuthZen PDP service.
|
|
1654
1820
|
*/
|
|
1655
1821
|
authorizerHostname: string;
|
|
1656
|
-
/**
|
|
1657
|
-
* The authorization header to use when communicating with the AuthZen PDP service.
|
|
1658
|
-
*/
|
|
1659
|
-
authorizerAuthorizationHeader?: string;
|
|
1660
1822
|
/**
|
|
1661
1823
|
* The subject of the request.
|
|
1662
1824
|
*/
|
|
@@ -1695,6 +1857,10 @@ export declare interface AuthZenInboundPolicyOptions {
|
|
|
1695
1857
|
name: string;
|
|
1696
1858
|
[k: string]: unknown;
|
|
1697
1859
|
};
|
|
1860
|
+
/**
|
|
1861
|
+
* The authorization header to use when communicating with the AuthZen PDP service.
|
|
1862
|
+
*/
|
|
1863
|
+
authorizerAuthorizationHeader?: string;
|
|
1698
1864
|
/**
|
|
1699
1865
|
* 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
1866
|
*/
|
|
@@ -1992,10 +2158,6 @@ export declare class AxiomaticsAuthZInboundPolicy extends InboundPolicy<Axiomati
|
|
|
1992
2158
|
* @public
|
|
1993
2159
|
*/
|
|
1994
2160
|
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
2161
|
/**
|
|
2000
2162
|
* The URL to which the plugin will make a JSON POST request before proxying the original request.
|
|
2001
2163
|
*/
|
|
@@ -2008,6 +2170,10 @@ export declare interface AxiomaticsAuthZInboundPolicyOptions {
|
|
|
2008
2170
|
* The password to use when authenticating with the PDP.
|
|
2009
2171
|
*/
|
|
2010
2172
|
pdpPassword: string;
|
|
2173
|
+
/**
|
|
2174
|
+
* Indicates whether the request should continue if authorization fails. Default is `false` which means unauthorized users will automatically receive a 403 response.
|
|
2175
|
+
*/
|
|
2176
|
+
allowUnauthorizedRequests?: boolean;
|
|
2011
2177
|
/**
|
|
2012
2178
|
* Indicates whether the plugin should include default action attributes in the authorization request.
|
|
2013
2179
|
*/
|
|
@@ -2261,7 +2427,7 @@ export declare interface BasicAuthInboundPolicyOptions {
|
|
|
2261
2427
|
*/
|
|
2262
2428
|
accounts: BasicAuthAccount[];
|
|
2263
2429
|
/**
|
|
2264
|
-
* If 'true' allows the request to continue even if
|
|
2430
|
+
* If 'true' allows the request to continue even if unauthenticated. When 'false' (the default) any unauthenticated request is automatically rejected with a 401.
|
|
2265
2431
|
*/
|
|
2266
2432
|
allowUnauthenticatedRequests?: boolean;
|
|
2267
2433
|
}
|
|
@@ -2431,13 +2597,9 @@ export declare function CachingInboundPolicy(
|
|
|
2431
2597
|
*/
|
|
2432
2598
|
export declare interface CachingInboundPolicyOptions {
|
|
2433
2599
|
/**
|
|
2434
|
-
*
|
|
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`.
|
|
2600
|
+
* The timeout of the cache in seconds.
|
|
2439
2601
|
*/
|
|
2440
|
-
|
|
2602
|
+
expirationSecondsTtl?: number;
|
|
2441
2603
|
/**
|
|
2442
2604
|
* The headers to be considered when caching.
|
|
2443
2605
|
*/
|
|
@@ -2446,14 +2608,18 @@ export declare interface CachingInboundPolicyOptions {
|
|
|
2446
2608
|
* HTTP Methods to be cached. Valid methods are: GET, POST, PUT, PATCH, DELETE, HEAD.
|
|
2447
2609
|
*/
|
|
2448
2610
|
cacheHttpMethods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD")[];
|
|
2449
|
-
/**
|
|
2450
|
-
* The timeout of the cache in seconds.
|
|
2451
|
-
*/
|
|
2452
|
-
expirationSecondsTtl?: number;
|
|
2453
2611
|
/**
|
|
2454
2612
|
* Response status codes to be cached.
|
|
2455
2613
|
*/
|
|
2456
2614
|
statusCodes?: number[];
|
|
2615
|
+
/**
|
|
2616
|
+
* 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.
|
|
2617
|
+
*/
|
|
2618
|
+
cacheId?: string;
|
|
2619
|
+
/**
|
|
2620
|
+
* By default, the Authorization header is always considered in the caching policy. You can disable by setting this to `true`.
|
|
2621
|
+
*/
|
|
2622
|
+
dangerouslyIgnoreAuthorizationHeader?: boolean;
|
|
2457
2623
|
}
|
|
2458
2624
|
|
|
2459
2625
|
/**
|
|
@@ -2737,14 +2903,14 @@ export declare const ClerkJwtInboundPolicy: InboundPolicyHandler<ClerkJwtInbound
|
|
|
2737
2903
|
* @public
|
|
2738
2904
|
*/
|
|
2739
2905
|
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
2906
|
/**
|
|
2745
2907
|
* 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
2908
|
*/
|
|
2747
2909
|
frontendApiUrl: string;
|
|
2910
|
+
/**
|
|
2911
|
+
* 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.
|
|
2912
|
+
*/
|
|
2913
|
+
allowUnauthenticatedRequests?: boolean;
|
|
2748
2914
|
/**
|
|
2749
2915
|
* Flag that determines whether OAuth protected resource metadata is enabled.
|
|
2750
2916
|
*/
|
|
@@ -2810,10 +2976,6 @@ export declare const CognitoJwtInboundPolicy: InboundPolicyHandler<CognitoJwtInb
|
|
|
2810
2976
|
* @public
|
|
2811
2977
|
*/
|
|
2812
2978
|
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
2979
|
/**
|
|
2818
2980
|
* The AWS region where your Cognito instance is deployed.
|
|
2819
2981
|
*/
|
|
@@ -2822,6 +2984,10 @@ export declare interface CognitoJwtInboundPolicyOptions {
|
|
|
2822
2984
|
* The user pool identifier.
|
|
2823
2985
|
*/
|
|
2824
2986
|
userPoolId: string;
|
|
2987
|
+
/**
|
|
2988
|
+
* 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.
|
|
2989
|
+
*/
|
|
2990
|
+
allowUnauthenticatedRequests?: boolean;
|
|
2825
2991
|
/**
|
|
2826
2992
|
* Flag that determines whether OAuth protected resource metadata is enabled.
|
|
2827
2993
|
*/
|
|
@@ -3014,6 +3180,29 @@ declare interface CompatibilityFlags {
|
|
|
3014
3180
|
return501ForUnsupportedHttpMethods: boolean;
|
|
3015
3181
|
}
|
|
3016
3182
|
|
|
3183
|
+
/**
|
|
3184
|
+
* Routing for chat completions, Responses, and Anthropic Messages requests.
|
|
3185
|
+
* @public
|
|
3186
|
+
*/
|
|
3187
|
+
declare interface CompletionsRouting {
|
|
3188
|
+
model: {
|
|
3189
|
+
provider: string;
|
|
3190
|
+
model: string;
|
|
3191
|
+
};
|
|
3192
|
+
fallback?: {
|
|
3193
|
+
provider: string;
|
|
3194
|
+
model: string;
|
|
3195
|
+
/**
|
|
3196
|
+
* How long the primary model may take before the fallback is attempted.
|
|
3197
|
+
*/
|
|
3198
|
+
timeoutSeconds?: number;
|
|
3199
|
+
};
|
|
3200
|
+
quotaFallback?: {
|
|
3201
|
+
provider: string;
|
|
3202
|
+
model: string;
|
|
3203
|
+
};
|
|
3204
|
+
}
|
|
3205
|
+
|
|
3017
3206
|
/**
|
|
3018
3207
|
* @public
|
|
3019
3208
|
*/
|
|
@@ -3677,10 +3866,6 @@ export declare interface DataLossPreventionInboundPolicyOptions {
|
|
|
3677
3866
|
| "secret-twilio"
|
|
3678
3867
|
| "secret-zuplo"
|
|
3679
3868
|
)[];
|
|
3680
|
-
/**
|
|
3681
|
-
* Additional customer-defined regex recognizers. Invalid patterns are logged and skipped rather than failing the request.
|
|
3682
|
-
*/
|
|
3683
|
-
customPatterns?: DlpCustomPattern[];
|
|
3684
3869
|
/**
|
|
3685
3870
|
* 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
3871
|
*/
|
|
@@ -3689,6 +3874,10 @@ export declare interface DataLossPreventionInboundPolicyOptions {
|
|
|
3689
3874
|
* The string that replaces detected values when `action` is `mask`.
|
|
3690
3875
|
*/
|
|
3691
3876
|
mask?: string;
|
|
3877
|
+
/**
|
|
3878
|
+
* Additional customer-defined regex recognizers. Invalid patterns are logged and skipped rather than failing the request.
|
|
3879
|
+
*/
|
|
3880
|
+
customPatterns?: DlpCustomPattern[];
|
|
3692
3881
|
/**
|
|
3693
3882
|
* 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
3883
|
*/
|
|
@@ -3820,10 +4009,6 @@ export declare interface DataLossPreventionOutboundPolicyOptions {
|
|
|
3820
4009
|
| "secret-twilio"
|
|
3821
4010
|
| "secret-zuplo"
|
|
3822
4011
|
)[];
|
|
3823
|
-
/**
|
|
3824
|
-
* Additional customer-defined regex recognizers. Invalid patterns are logged and skipped rather than failing the response.
|
|
3825
|
-
*/
|
|
3826
|
-
customPatterns?: DlpCustomPattern_2[];
|
|
3827
4012
|
/**
|
|
3828
4013
|
* 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
4014
|
*/
|
|
@@ -3832,6 +4017,10 @@ export declare interface DataLossPreventionOutboundPolicyOptions {
|
|
|
3832
4017
|
* The string that replaces detected values when `action` is `mask`.
|
|
3833
4018
|
*/
|
|
3834
4019
|
mask?: string;
|
|
4020
|
+
/**
|
|
4021
|
+
* Additional customer-defined regex recognizers. Invalid patterns are logged and skipped rather than failing the response.
|
|
4022
|
+
*/
|
|
4023
|
+
customPatterns?: DlpCustomPattern_2[];
|
|
3835
4024
|
/**
|
|
3836
4025
|
* 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
4026
|
*/
|
|
@@ -3947,6 +4136,29 @@ export declare class DynatraceMetricsPlugin extends MetricsPlugin {
|
|
|
3947
4136
|
static setContext(context: ZuploContext, data: DynatraceMetricsContext): void;
|
|
3948
4137
|
}
|
|
3949
4138
|
|
|
4139
|
+
/**
|
|
4140
|
+
* Routing for embedding requests.
|
|
4141
|
+
* @public
|
|
4142
|
+
*/
|
|
4143
|
+
declare interface EmbeddingsRouting {
|
|
4144
|
+
model: {
|
|
4145
|
+
provider: string;
|
|
4146
|
+
model: string;
|
|
4147
|
+
};
|
|
4148
|
+
fallback?: {
|
|
4149
|
+
provider: string;
|
|
4150
|
+
model: string;
|
|
4151
|
+
/**
|
|
4152
|
+
* How long the primary model may take before the fallback is attempted.
|
|
4153
|
+
*/
|
|
4154
|
+
timeoutSeconds?: number;
|
|
4155
|
+
};
|
|
4156
|
+
quotaFallback?: {
|
|
4157
|
+
provider: string;
|
|
4158
|
+
model: string;
|
|
4159
|
+
};
|
|
4160
|
+
}
|
|
4161
|
+
|
|
3950
4162
|
/**
|
|
3951
4163
|
* Enable accumulation and validation of streaming responses.
|
|
3952
4164
|
* @public
|
|
@@ -4111,14 +4323,14 @@ export declare const FirebaseJwtInboundPolicy: InboundPolicyHandler<FirebaseJwtI
|
|
|
4111
4323
|
* @public
|
|
4112
4324
|
*/
|
|
4113
4325
|
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
4326
|
/**
|
|
4119
4327
|
* Your Firebase Project ID.
|
|
4120
4328
|
*/
|
|
4121
4329
|
projectId: string;
|
|
4330
|
+
/**
|
|
4331
|
+
* 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.
|
|
4332
|
+
*/
|
|
4333
|
+
allowUnauthenticatedRequests?: boolean;
|
|
4122
4334
|
/**
|
|
4123
4335
|
* Flag that determines whether OAuth protected resource metadata is enabled.
|
|
4124
4336
|
*/
|
|
@@ -9747,6 +9959,16 @@ export declare class MonetizationInboundPolicy extends InboundPolicy<Monetizatio
|
|
|
9747
9959
|
* @public
|
|
9748
9960
|
*/
|
|
9749
9961
|
export declare interface MonetizationInboundPolicyOptions {
|
|
9962
|
+
/**
|
|
9963
|
+
* The meters to be used by the policy against the subscription quota.
|
|
9964
|
+
*/
|
|
9965
|
+
meters?: {
|
|
9966
|
+
[k: string]: number;
|
|
9967
|
+
};
|
|
9968
|
+
/**
|
|
9969
|
+
* 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.
|
|
9970
|
+
*/
|
|
9971
|
+
requiredEntitlements?: string[];
|
|
9750
9972
|
/**
|
|
9751
9973
|
* The name of the header with the key.
|
|
9752
9974
|
*/
|
|
@@ -9759,24 +9981,10 @@ export declare interface MonetizationInboundPolicyOptions {
|
|
|
9759
9981
|
* 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
9982
|
*/
|
|
9761
9983
|
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
9984
|
/**
|
|
9773
9985
|
* A list of successful status codes and ranges "200-299, 304" that should trigger a metering call.
|
|
9774
9986
|
*/
|
|
9775
9987
|
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
9988
|
}
|
|
9781
9989
|
|
|
9782
9990
|
/**
|
|
@@ -9871,14 +10079,14 @@ export declare type MTLSAuthInboundPolicyOptions = (
|
|
|
9871
10079
|
[k: string]: unknown;
|
|
9872
10080
|
}
|
|
9873
10081
|
) & {
|
|
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
10082
|
/**
|
|
9879
10083
|
* 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
10084
|
*/
|
|
9881
10085
|
certIssuerDN?: string;
|
|
10086
|
+
/**
|
|
10087
|
+
* Allows requests to continue even when mTLS verification fails, no client certificate is presented, or the certificate metadata cannot be parsed. Defaults to false.
|
|
10088
|
+
*/
|
|
10089
|
+
allowUnauthenticatedRequests?: boolean;
|
|
9882
10090
|
};
|
|
9883
10091
|
|
|
9884
10092
|
/**
|
|
@@ -10067,10 +10275,6 @@ export declare interface OktaFGAAuthZInboundPolicyOptions {
|
|
|
10067
10275
|
* The ID of the authorization model.
|
|
10068
10276
|
*/
|
|
10069
10277
|
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
10278
|
credentials: {
|
|
10075
10279
|
/**
|
|
10076
10280
|
* The client ID.
|
|
@@ -10082,6 +10286,10 @@ export declare interface OktaFGAAuthZInboundPolicyOptions {
|
|
|
10082
10286
|
clientSecret: string;
|
|
10083
10287
|
[k: string]: unknown;
|
|
10084
10288
|
};
|
|
10289
|
+
/**
|
|
10290
|
+
* Indicates whether the request should continue if authorization fails. Default is `false` which means unauthorized users will automatically receive a 403 response.
|
|
10291
|
+
*/
|
|
10292
|
+
allowUnauthorizedRequests?: boolean;
|
|
10085
10293
|
}
|
|
10086
10294
|
|
|
10087
10295
|
/**
|
|
@@ -10103,10 +10311,6 @@ export declare const OktaJwtInboundPolicy: InboundPolicyHandler<OktaJwtInboundPo
|
|
|
10103
10311
|
* @public
|
|
10104
10312
|
*/
|
|
10105
10313
|
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
10314
|
/**
|
|
10111
10315
|
* Your Okta authorization server's issuer URL. For example, `https://dev-12345.okta.com/oauth2/abc`.
|
|
10112
10316
|
*/
|
|
@@ -10115,6 +10319,10 @@ export declare interface OktaJwtInboundPolicyOptions {
|
|
|
10115
10319
|
* The Okta audience of your API, for example `api://my-api`.
|
|
10116
10320
|
*/
|
|
10117
10321
|
audience?: string;
|
|
10322
|
+
/**
|
|
10323
|
+
* 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.
|
|
10324
|
+
*/
|
|
10325
|
+
allowUnauthenticatedRequests?: boolean;
|
|
10118
10326
|
/**
|
|
10119
10327
|
* Flag that determines whether OAuth protected resource metadata is enabled.
|
|
10120
10328
|
*/
|
|
@@ -10806,15 +11014,15 @@ export declare interface OpenFGAAuthZInboundPolicyOptions {
|
|
|
10806
11014
|
* The ID of the authorization model.
|
|
10807
11015
|
*/
|
|
10808
11016
|
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
11017
|
credentials:
|
|
10814
11018
|
| UnauthenticatedCredentialConfig
|
|
10815
11019
|
| APITokenCredentialConfig
|
|
10816
11020
|
| HeaderCredentialsConfig
|
|
10817
11021
|
| ClientCredentialsConfig;
|
|
11022
|
+
/**
|
|
11023
|
+
* Indicates whether the request should continue if authorization fails. Default is `false` which means unauthorized users will automatically receive a 403 response.
|
|
11024
|
+
*/
|
|
11025
|
+
allowUnauthorizedRequests?: boolean;
|
|
10818
11026
|
}
|
|
10819
11027
|
|
|
10820
11028
|
declare interface OpenFGACheck {
|
|
@@ -10864,10 +11072,6 @@ declare interface OpenIdJwtInboundPolicyInternalOptions extends Omit<
|
|
|
10864
11072
|
* @public
|
|
10865
11073
|
*/
|
|
10866
11074
|
export declare interface OpenIdJwtInboundPolicyOptions {
|
|
10867
|
-
/**
|
|
10868
|
-
* The name of the header with the key.
|
|
10869
|
-
*/
|
|
10870
|
-
authHeader?: string;
|
|
10871
11075
|
/**
|
|
10872
11076
|
* The expected issuer claim in the JWT token.
|
|
10873
11077
|
*/
|
|
@@ -10884,6 +11088,10 @@ export declare interface OpenIdJwtInboundPolicyOptions {
|
|
|
10884
11088
|
* The key used to verify the signature of the JWT token (either this or `jwkUrl` must be set).
|
|
10885
11089
|
*/
|
|
10886
11090
|
secret?: string;
|
|
11091
|
+
/**
|
|
11092
|
+
* The name of the header with the key.
|
|
11093
|
+
*/
|
|
11094
|
+
authHeader?: string;
|
|
10887
11095
|
/**
|
|
10888
11096
|
* indicates whether the request should continue if authentication fails. Defaults is `false` which means unauthenticated users will automatically receive a 401 response.
|
|
10889
11097
|
*/
|
|
@@ -10992,10 +11200,6 @@ export declare class OpenMeterInboundPolicy extends InboundPolicy<OpenMeterInbou
|
|
|
10992
11200
|
* @public
|
|
10993
11201
|
*/
|
|
10994
11202
|
export declare interface OpenMeterInboundPolicyOptions {
|
|
10995
|
-
/**
|
|
10996
|
-
* The URL of the OpenMeter API endpoint.
|
|
10997
|
-
*/
|
|
10998
|
-
apiUrl?: string;
|
|
10999
11203
|
/**
|
|
11000
11204
|
* The API key to use when sending metering calls to OpenMeter.
|
|
11001
11205
|
*/
|
|
@@ -11004,6 +11208,14 @@ export declare interface OpenMeterInboundPolicyOptions {
|
|
|
11004
11208
|
* A single meter configuration or an array of meter configurations for OpenMeter.
|
|
11005
11209
|
*/
|
|
11006
11210
|
meter?: Meter | Meter[];
|
|
11211
|
+
/**
|
|
11212
|
+
* A list of entitlements (feature keys) required in order for the call to be allowed.
|
|
11213
|
+
*/
|
|
11214
|
+
requiredEntitlements?: string[];
|
|
11215
|
+
/**
|
|
11216
|
+
* The URL of the OpenMeter API endpoint.
|
|
11217
|
+
*/
|
|
11218
|
+
apiUrl?: string;
|
|
11007
11219
|
/**
|
|
11008
11220
|
* A list of successful status codes and ranges "200-299, 304" that should trigger a metering event.
|
|
11009
11221
|
*/
|
|
@@ -11012,10 +11224,6 @@ export declare interface OpenMeterInboundPolicyOptions {
|
|
|
11012
11224
|
* The event's source (e.g. the service name).
|
|
11013
11225
|
*/
|
|
11014
11226
|
eventSource?: string;
|
|
11015
|
-
/**
|
|
11016
|
-
* A list of entitlements (feature keys) required in order for the call to be allowed.
|
|
11017
|
-
*/
|
|
11018
|
-
requiredEntitlements?: string[];
|
|
11019
11227
|
/**
|
|
11020
11228
|
* 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
11229
|
*/
|
|
@@ -11441,14 +11649,14 @@ export declare interface PromptInjectionDetectionOutboundPolicyOptions {
|
|
|
11441
11649
|
* Model to use for classification.
|
|
11442
11650
|
*/
|
|
11443
11651
|
model?: string;
|
|
11444
|
-
/**
|
|
11445
|
-
* Base URL for the OpenAI compatible API.
|
|
11446
|
-
*/
|
|
11447
|
-
baseUrl?: string;
|
|
11448
11652
|
/**
|
|
11449
11653
|
* Whether to block traffic if the classifier fails. When disabled, allows traffic flow if the classifier or inference API is unavailable.
|
|
11450
11654
|
*/
|
|
11451
11655
|
strict?: boolean;
|
|
11656
|
+
/**
|
|
11657
|
+
* Base URL for the OpenAI compatible API.
|
|
11658
|
+
*/
|
|
11659
|
+
baseUrl?: string;
|
|
11452
11660
|
}
|
|
11453
11661
|
|
|
11454
11662
|
/**
|
|
@@ -11470,10 +11678,6 @@ export declare const PropelAuthJwtInboundPolicy: InboundPolicyHandler<PropelAuth
|
|
|
11470
11678
|
* @public
|
|
11471
11679
|
*/
|
|
11472
11680
|
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
11681
|
/**
|
|
11478
11682
|
* Your PropelAuth authUrl. For example, `https://12345678.propelauthtest.com`.
|
|
11479
11683
|
*/
|
|
@@ -11482,12 +11686,39 @@ export declare interface PropelAuthJwtInboundPolicyOptions {
|
|
|
11482
11686
|
* 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
11687
|
*/
|
|
11484
11688
|
verifierKey: string;
|
|
11689
|
+
/**
|
|
11690
|
+
* 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.
|
|
11691
|
+
*/
|
|
11692
|
+
allowUnauthenticatedRequests?: boolean;
|
|
11485
11693
|
/**
|
|
11486
11694
|
* Flag that determines whether OAuth protected resource metadata is enabled.
|
|
11487
11695
|
*/
|
|
11488
11696
|
oAuthResourceMetadataEnabled?: boolean;
|
|
11489
11697
|
}
|
|
11490
11698
|
|
|
11699
|
+
/**
|
|
11700
|
+
* The provider registry key, such as openai, anthropic, or a custom provider name.
|
|
11701
|
+
* @public
|
|
11702
|
+
*/
|
|
11703
|
+
declare type Provider = string;
|
|
11704
|
+
|
|
11705
|
+
/**
|
|
11706
|
+
* Provider credentials used by model routing. Each entry must define apiKey.
|
|
11707
|
+
*
|
|
11708
|
+
* @minItems 1
|
|
11709
|
+
* @public
|
|
11710
|
+
*/
|
|
11711
|
+
declare type Providers = [
|
|
11712
|
+
{
|
|
11713
|
+
provider: Provider;
|
|
11714
|
+
apiKey: APIKey;
|
|
11715
|
+
},
|
|
11716
|
+
...{
|
|
11717
|
+
provider: Provider;
|
|
11718
|
+
apiKey: APIKey;
|
|
11719
|
+
}[],
|
|
11720
|
+
];
|
|
11721
|
+
|
|
11491
11722
|
/**
|
|
11492
11723
|
* Extracts a query parameter and sets it as a header in the request.
|
|
11493
11724
|
*
|
|
@@ -11577,16 +11808,16 @@ export declare interface QuotaInboundPolicyOptions {
|
|
|
11577
11808
|
* The quota by.
|
|
11578
11809
|
*/
|
|
11579
11810
|
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
11811
|
/**
|
|
11585
11812
|
* The allowances for the quota.
|
|
11586
11813
|
*/
|
|
11587
11814
|
allowances?: {
|
|
11588
11815
|
[k: string]: number;
|
|
11589
11816
|
};
|
|
11817
|
+
/**
|
|
11818
|
+
* 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.
|
|
11819
|
+
*/
|
|
11820
|
+
quotaAnchorMode?: "first-api-call" | "function";
|
|
11590
11821
|
/**
|
|
11591
11822
|
* A list of successful status codes and ranges "200-299, 304" that should trigger a quota increment.
|
|
11592
11823
|
*/
|
|
@@ -11811,14 +12042,14 @@ declare interface ReadmeMeteringInboundPolicyOptions {
|
|
|
11811
12042
|
* The API key to use when sending metrics calls to Readme.
|
|
11812
12043
|
*/
|
|
11813
12044
|
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
12045
|
/**
|
|
11819
12046
|
* 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
12047
|
*/
|
|
11821
12048
|
userEmailPropertyPath?: string;
|
|
12049
|
+
/**
|
|
12050
|
+
* 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.
|
|
12051
|
+
*/
|
|
12052
|
+
userLabelPropertyPath?: string;
|
|
11822
12053
|
/**
|
|
11823
12054
|
* Whether the data should be ingested as 'development' mode or not. Defaults to true for working-copy and false for all other environments.
|
|
11824
12055
|
*/
|
|
@@ -12281,14 +12512,14 @@ export declare const RequestValidationInboundPolicy: InboundPolicyHandler<Reques
|
|
|
12281
12512
|
* @public
|
|
12282
12513
|
*/
|
|
12283
12514
|
export declare interface RequestValidationInboundPolicyOptions {
|
|
12284
|
-
/**
|
|
12285
|
-
* The log level to use when logging validation errors.
|
|
12286
|
-
*/
|
|
12287
|
-
logLevel?: "error" | "warn" | "info" | "debug";
|
|
12288
12515
|
validateBody?: ValidationOptions;
|
|
12289
12516
|
validateQueryParameters?: ValidationOptions1;
|
|
12290
12517
|
validatePathParameters?: ValidationOptions2;
|
|
12291
12518
|
validateHeaders?: ValidationOptions3;
|
|
12519
|
+
/**
|
|
12520
|
+
* The log level to use when logging validation errors.
|
|
12521
|
+
*/
|
|
12522
|
+
logLevel?: "error" | "warn" | "info" | "debug";
|
|
12292
12523
|
/**
|
|
12293
12524
|
* Whether to include the request in the logs.
|
|
12294
12525
|
*/
|
|
@@ -13305,6 +13536,21 @@ export declare interface RouteHandler<T = unknown> {
|
|
|
13305
13536
|
|
|
13306
13537
|
/* Excluded from this release type: Router */
|
|
13307
13538
|
|
|
13539
|
+
/**
|
|
13540
|
+
* Custom function that computes model routing for each request. The export must be an AIGatewayRoutingFunction. It receives the policy's parsed static routing (if any) as defaultRouting; its return value is validated like the static options and replaces the routing for the request. Returning undefined keeps the defaults unchanged.
|
|
13541
|
+
* @public
|
|
13542
|
+
*/
|
|
13543
|
+
declare interface RoutingFunction {
|
|
13544
|
+
/**
|
|
13545
|
+
* Module to load the routing function from, e.g. $import(./modules/model-routing).
|
|
13546
|
+
*/
|
|
13547
|
+
module: string;
|
|
13548
|
+
/**
|
|
13549
|
+
* Named export of the routing function, e.g. 'default' or 'routeModels'.
|
|
13550
|
+
*/
|
|
13551
|
+
export: string;
|
|
13552
|
+
}
|
|
13553
|
+
|
|
13308
13554
|
/**
|
|
13309
13555
|
* The authorization rule evaluated against the authenticated user's claims (request.user.data, populated by the authentication policy that runs before this one — a JWT policy, API key auth, mTLS, etc.). A rule is either a single claim check (eq, in, or startsWith) or an and/or combination of nested rules. Combinators may nest up to three levels deep. Requests that fail the rule receive a 403 Forbidden response.
|
|
13310
13556
|
* @public
|
|
@@ -13502,6 +13748,10 @@ export declare type SemanticCacheInboundPolicyOptions = {
|
|
|
13502
13748
|
* Determines how the cache key is generated. Use 'function' for custom logic or 'propertyPath' to extract from JSON body.
|
|
13503
13749
|
*/
|
|
13504
13750
|
cacheBy: "function" | "propertyPath";
|
|
13751
|
+
/**
|
|
13752
|
+
* 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.
|
|
13753
|
+
*/
|
|
13754
|
+
cacheByPropertyPath?: string;
|
|
13505
13755
|
/**
|
|
13506
13756
|
* The function that returns dynamic cache key data. Used only with `cacheBy=function`.
|
|
13507
13757
|
*/
|
|
@@ -13515,10 +13765,6 @@ export declare type SemanticCacheInboundPolicyOptions = {
|
|
|
13515
13765
|
*/
|
|
13516
13766
|
module: string;
|
|
13517
13767
|
};
|
|
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
13768
|
/**
|
|
13523
13769
|
* Response status codes to be cached.
|
|
13524
13770
|
*/
|
|
@@ -13753,14 +13999,14 @@ export declare const SetUpstreamApiKeyInboundPolicy: InboundPolicyHandler<SetUps
|
|
|
13753
13999
|
* @public
|
|
13754
14000
|
*/
|
|
13755
14001
|
export declare interface SetUpstreamApiKeyInboundPolicyOptions {
|
|
13756
|
-
/**
|
|
13757
|
-
* The name of the header to set on the request. Defaults to `Authorization`.
|
|
13758
|
-
*/
|
|
13759
|
-
header?: string;
|
|
13760
14002
|
/**
|
|
13761
14003
|
* 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
14004
|
*/
|
|
13763
14005
|
value: string;
|
|
14006
|
+
/**
|
|
14007
|
+
* The name of the header to set on the request. Defaults to `Authorization`.
|
|
14008
|
+
*/
|
|
14009
|
+
header?: string;
|
|
13764
14010
|
/**
|
|
13765
14011
|
* Overwrite the value if the header is already present in the request.
|
|
13766
14012
|
*/
|
|
@@ -14002,7 +14248,7 @@ export declare interface StripeWebhookVerificationInboundPolicyOptions {
|
|
|
14002
14248
|
*/
|
|
14003
14249
|
signingSecret: string;
|
|
14004
14250
|
/**
|
|
14005
|
-
* The allowed clock skew in seconds between the time the webhook signature was
|
|
14251
|
+
* The allowed clock skew in seconds between the time the webhook signature was created and the current time.
|
|
14006
14252
|
*/
|
|
14007
14253
|
tolerance?: number;
|
|
14008
14254
|
}
|
|
@@ -14051,16 +14297,16 @@ export declare interface SupabaseJwtInboundPolicyOptions {
|
|
|
14051
14297
|
* The key used to verify the signature of the JWT token.
|
|
14052
14298
|
*/
|
|
14053
14299
|
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
14300
|
/**
|
|
14059
14301
|
* Any claims that must be present for authentication to succeed - multiple valid values can be specified for each claim.
|
|
14060
14302
|
*/
|
|
14061
14303
|
requiredClaims?: {
|
|
14062
14304
|
[k: string]: string[];
|
|
14063
14305
|
};
|
|
14306
|
+
/**
|
|
14307
|
+
* Indicates whether the request should continue if authentication fails. Default is `false` which means unauthenticated users will automatically receive a 401 response.
|
|
14308
|
+
*/
|
|
14309
|
+
allowUnauthenticatedRequests?: boolean;
|
|
14064
14310
|
/**
|
|
14065
14311
|
* Flag that determines whether OAuth protected resource metadata is enabled.
|
|
14066
14312
|
*/
|
|
@@ -14390,7 +14636,7 @@ export declare interface UpstreamAzureAdServiceAuthInboundPolicyOptions {
|
|
|
14390
14636
|
*/
|
|
14391
14637
|
activeDirectoryClientSecret: string;
|
|
14392
14638
|
/**
|
|
14393
|
-
* The number of times to retry fetching the token in the event of a failure
|
|
14639
|
+
* The number of times to retry fetching the token in the event of a failure.
|
|
14394
14640
|
*/
|
|
14395
14641
|
tokenRetries?: number;
|
|
14396
14642
|
/**
|
|
@@ -14465,15 +14711,15 @@ export declare interface UpstreamFirebaseUserAuthInboundPolicyOptions {
|
|
|
14465
14711
|
* The property on the incoming request.user object to retrieve the value of the userId.
|
|
14466
14712
|
*/
|
|
14467
14713
|
userIdPropertyPath?: string;
|
|
14468
|
-
/**
|
|
14469
|
-
* Additional claims to include in the custom token's payload.
|
|
14470
|
-
*/
|
|
14471
|
-
developerClaims?: Record<string, string | number | boolean | null>;
|
|
14472
14714
|
/**
|
|
14473
14715
|
* The Firebase Web API Key (found in project settings)
|
|
14474
14716
|
* @see {@link https://firebase.google.com/docs/projects/api-keys|Firebase API Keys}.
|
|
14475
14717
|
*/
|
|
14476
14718
|
webApiKey: string;
|
|
14719
|
+
/**
|
|
14720
|
+
* Additional claims to include in the custom token's payload.
|
|
14721
|
+
*/
|
|
14722
|
+
developerClaims?: Record<string, string | number | boolean | null>;
|
|
14477
14723
|
/**
|
|
14478
14724
|
* The number of times to retry fetching the token in the event of a failure.
|
|
14479
14725
|
*/
|
|
@@ -14683,6 +14929,10 @@ export declare interface UpstreamZuploJwtAuthInboundPolicyOptions {
|
|
|
14683
14929
|
* The audience claim for the JWT.
|
|
14684
14930
|
*/
|
|
14685
14931
|
audience?: string;
|
|
14932
|
+
/**
|
|
14933
|
+
* 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).
|
|
14934
|
+
*/
|
|
14935
|
+
expiresIn?: number | string;
|
|
14686
14936
|
/**
|
|
14687
14937
|
* The subject ('sub') claim for the minted JWT. Identifies the acting subject of the token (typically the gateway itself).
|
|
14688
14938
|
*/
|
|
@@ -14707,10 +14957,6 @@ export declare interface UpstreamZuploJwtAuthInboundPolicyOptions {
|
|
|
14707
14957
|
additionalClaims?: {
|
|
14708
14958
|
[k: string]: unknown;
|
|
14709
14959
|
};
|
|
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
14960
|
}
|
|
14715
14961
|
|
|
14716
14962
|
declare interface UrlConfig {
|
|
@@ -14778,6 +15024,21 @@ declare interface UrlConfig {
|
|
|
14778
15024
|
* }
|
|
14779
15025
|
* }
|
|
14780
15026
|
* ```
|
|
15027
|
+
*
|
|
15028
|
+
* @example
|
|
15029
|
+
* ```json
|
|
15030
|
+
* // Abort the request with a 504 if the upstream takes longer than 30 seconds
|
|
15031
|
+
* {
|
|
15032
|
+
* "handler": {
|
|
15033
|
+
* "export": "urlForwardHandler",
|
|
15034
|
+
* "module": "$import(@zuplo/runtime)",
|
|
15035
|
+
* "options": {
|
|
15036
|
+
* "baseUrl": "https://backend.example.com",
|
|
15037
|
+
* "requestTimeoutSeconds": 30
|
|
15038
|
+
* }
|
|
15039
|
+
* }
|
|
15040
|
+
* }
|
|
15041
|
+
* ```
|
|
14781
15042
|
*/
|
|
14782
15043
|
export declare function urlForwardHandler(
|
|
14783
15044
|
request: ZuploRequest,
|
|
@@ -14845,6 +15106,21 @@ export declare function urlForwardHandler(
|
|
|
14845
15106
|
* }
|
|
14846
15107
|
* }
|
|
14847
15108
|
* ```
|
|
15109
|
+
*
|
|
15110
|
+
* @example
|
|
15111
|
+
* ```json
|
|
15112
|
+
* // Abort the request with a 504 if the upstream takes longer than 30 seconds
|
|
15113
|
+
* {
|
|
15114
|
+
* "handler": {
|
|
15115
|
+
* "export": "urlRewriteHandler",
|
|
15116
|
+
* "module": "$import(@zuplo/runtime)",
|
|
15117
|
+
* "options": {
|
|
15118
|
+
* "rewritePattern": "https://backend.internal/api${url.pathname}",
|
|
15119
|
+
* "requestTimeoutSeconds": 30
|
|
15120
|
+
* }
|
|
15121
|
+
* }
|
|
15122
|
+
* }
|
|
15123
|
+
* ```
|
|
14848
15124
|
*/
|
|
14849
15125
|
export declare function urlRewriteHandler(
|
|
14850
15126
|
request: ZuploRequest,
|
|
@@ -15242,6 +15518,10 @@ export declare interface XmlToJsonPolicyOptions {
|
|
|
15242
15518
|
* Ignore tag attributes.
|
|
15243
15519
|
*/
|
|
15244
15520
|
ignoreAttributes?: boolean;
|
|
15521
|
+
/**
|
|
15522
|
+
* Remove surrounding whitespace from tag or attribute value.
|
|
15523
|
+
*/
|
|
15524
|
+
trimValues?: boolean;
|
|
15245
15525
|
/**
|
|
15246
15526
|
* 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
15527
|
*/
|
|
@@ -15254,10 +15534,6 @@ export declare interface XmlToJsonPolicyOptions {
|
|
|
15254
15534
|
* Text value of a tag is parsed to #text property by default.
|
|
15255
15535
|
*/
|
|
15256
15536
|
textNodeName?: string;
|
|
15257
|
-
/**
|
|
15258
|
-
* Remove surrounding whitespace from tag or attribute value.
|
|
15259
|
-
*/
|
|
15260
|
-
trimValues?: boolean;
|
|
15261
15537
|
/**
|
|
15262
15538
|
* 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
15539
|
*/
|