@zuplo/cli 7.1.7 → 7.1.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/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-Y57PFQJ3.js +382 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-Y57PFQJ3.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +25 -4
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/package.json +6 -6
- package/node_modules/@zuplo/runtime/out/esm/chunk-ZNBAIHML.js +0 -372
- package/node_modules/@zuplo/runtime/out/esm/chunk-ZNBAIHML.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-ZNBAIHML.js.LEGAL.txt → chunk-Y57PFQJ3.js.LEGAL.txt} +0 -0
|
@@ -1153,6 +1153,12 @@ export declare interface AiUsage {
|
|
|
1153
1153
|
* For streaming responses, it uses a transform stream that can block
|
|
1154
1154
|
* content mid-stream if harmful content is detected.
|
|
1155
1155
|
*
|
|
1156
|
+
* Detect-call failures (invalid credentials, rate limits, outages) fail closed
|
|
1157
|
+
* by default, returning a 502 in the route's native error format; set
|
|
1158
|
+
* `onError: "allow"` in the app configuration (or in the policy options, which
|
|
1159
|
+
* the app configuration overrides) to fail open and prioritize availability
|
|
1160
|
+
* over inspection.
|
|
1161
|
+
*
|
|
1156
1162
|
* @param request - The ZuploRequest
|
|
1157
1163
|
* @param context - The ZuploContext
|
|
1158
1164
|
* @param options - The policy options set in policies.json
|
|
@@ -1162,7 +1168,7 @@ export declare interface AiUsage {
|
|
|
1162
1168
|
export declare function AkamaiAIFirewallInboundPolicy(
|
|
1163
1169
|
request: ZuploRequest,
|
|
1164
1170
|
context: ZuploContext,
|
|
1165
|
-
|
|
1171
|
+
options: AkamaiAIFirewallPolicyOptions,
|
|
1166
1172
|
_policyName: string
|
|
1167
1173
|
): Promise<ZuploRequest | Response>;
|
|
1168
1174
|
|
|
@@ -1175,6 +1181,7 @@ export declare interface AkamaiAIFirewallPolicyOptions {
|
|
|
1175
1181
|
"api-key": APIKey;
|
|
1176
1182
|
applicationId?: ApplicationID;
|
|
1177
1183
|
streamingAccumulation?: StreamingAccumulationSettings;
|
|
1184
|
+
onError?: OnFirewallError;
|
|
1178
1185
|
}
|
|
1179
1186
|
|
|
1180
1187
|
/**
|
|
@@ -1190,9 +1197,10 @@ export declare interface AkamaiAIFirewallPolicyOptions {
|
|
|
1190
1197
|
* `inbound[]` chain is what enables it.
|
|
1191
1198
|
*
|
|
1192
1199
|
* Options are validated at request time and invalid options fail closed with a
|
|
1193
|
-
* ConfigurationError
|
|
1194
|
-
*
|
|
1195
|
-
*
|
|
1200
|
+
* ConfigurationError. Detect-call failures (invalid credentials, rate limits,
|
|
1201
|
+
* outages) also fail closed by default, returning a 502 in the route's native
|
|
1202
|
+
* error format; set `onError: "allow"` to fail open and prioritize
|
|
1203
|
+
* availability over inspection.
|
|
1196
1204
|
*
|
|
1197
1205
|
* For streaming responses it uses a transform stream that can block content
|
|
1198
1206
|
* mid-stream if harmful content is detected.
|
|
@@ -1221,6 +1229,7 @@ export declare interface AkamaiAIFirewallV2PolicyOptions {
|
|
|
1221
1229
|
streamingAccumulation?: StreamingAccumulationSettings_2;
|
|
1222
1230
|
endpoints?: ApplicableEndpoints_2;
|
|
1223
1231
|
onUnknownShape?: OnUnknownShape_2;
|
|
1232
|
+
onError?: OnFirewallError_2;
|
|
1224
1233
|
}
|
|
1225
1234
|
|
|
1226
1235
|
/**
|
|
@@ -10563,6 +10572,18 @@ export declare interface OktaJwtInboundPolicyOptions {
|
|
|
10563
10572
|
oAuthResourceMetadataEnabled?: boolean;
|
|
10564
10573
|
}
|
|
10565
10574
|
|
|
10575
|
+
/**
|
|
10576
|
+
* What to do when the Akamai detect call itself fails (invalid API key, rate limit, outage). 'block' (the default) fails closed and returns a 502 so unverified content is never served; 'allow' fails open and lets the request through without inspection. An onError value in the AI Gateway app configuration takes precedence over this option.
|
|
10577
|
+
* @public
|
|
10578
|
+
*/
|
|
10579
|
+
declare type OnFirewallError = "block" | "allow";
|
|
10580
|
+
|
|
10581
|
+
/**
|
|
10582
|
+
* What to do when the Akamai detect call itself fails (invalid API key, rate limit, outage). 'block' (the default) fails closed and returns a 502 so unverified content is never served; 'allow' fails open and lets the request through without inspection.
|
|
10583
|
+
* @public
|
|
10584
|
+
*/
|
|
10585
|
+
declare type OnFirewallError_2 = "block" | "allow";
|
|
10586
|
+
|
|
10566
10587
|
/**
|
|
10567
10588
|
* @public
|
|
10568
10589
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zuplo/cli",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.8",
|
|
4
4
|
"repository": "https://github.com/zuplo/zuplo",
|
|
5
5
|
"author": "Zuplo, Inc.",
|
|
6
6
|
"type": "module",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"@opentelemetry/api": "1.9.0",
|
|
29
29
|
"@opentelemetry/api-logs": "0.220.0",
|
|
30
30
|
"@swc/core": "1.10.18",
|
|
31
|
-
"@zuplo/core": "7.1.
|
|
31
|
+
"@zuplo/core": "7.1.8",
|
|
32
32
|
"@zuplo/editor": "1.0.31094607111",
|
|
33
|
-
"@zuplo/openapi-tools": "7.1.
|
|
34
|
-
"@zuplo/runtime": "7.1.
|
|
33
|
+
"@zuplo/openapi-tools": "7.1.8",
|
|
34
|
+
"@zuplo/runtime": "7.1.8",
|
|
35
35
|
"chalk": "5.4.1",
|
|
36
36
|
"chokidar": "3.5.3",
|
|
37
37
|
"cookie": "1.0.2",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"workerd": "1.20241230.0",
|
|
63
63
|
"yargs": "17.7.2",
|
|
64
64
|
"zod": "4.4.3",
|
|
65
|
-
"@zuplo/graphql": "7.1.
|
|
66
|
-
"@zuplo/otel": "7.1.
|
|
65
|
+
"@zuplo/graphql": "7.1.8",
|
|
66
|
+
"@zuplo/otel": "7.1.8"
|
|
67
67
|
},
|
|
68
68
|
"bundleDependencies": [
|
|
69
69
|
"@inquirer/prompts",
|