@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.
@@ -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
- _options: AkamaiAIFirewallPolicyOptions,
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: detect-call failures deliberately fail open for
1194
- * availability, so a misconfigured credential must not degrade into a silent
1195
- * pass-through.
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
  */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "7.1.7",
4
+ "version": "7.1.8",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/cli",
3
- "version": "7.1.7",
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.7",
31
+ "@zuplo/core": "7.1.8",
32
32
  "@zuplo/editor": "1.0.31094607111",
33
- "@zuplo/openapi-tools": "7.1.7",
34
- "@zuplo/runtime": "7.1.7",
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.7",
66
- "@zuplo/otel": "7.1.7"
65
+ "@zuplo/graphql": "7.1.8",
66
+ "@zuplo/otel": "7.1.8"
67
67
  },
68
68
  "bundleDependencies": [
69
69
  "@inquirer/prompts",