@oxy.so/contracts 4.16.0 → 4.21.0
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/dist/cjs/accountAccess.js +72 -0
- package/dist/cjs/accountEmail.js +12 -34
- package/dist/cjs/accountGraph.js +22 -320
- package/dist/cjs/agency.js +112 -1
- package/dist/cjs/agentKeys.js +11 -13
- package/dist/cjs/applicationRoles.js +211 -0
- package/dist/cjs/client/accountEmail.js +48 -0
- package/dist/cjs/client/accountGraph.js +323 -0
- package/dist/cjs/client/agentKeys.js +77 -0
- package/dist/cjs/client/check.js +475 -0
- package/dist/cjs/client/deviceBoot.js +22 -0
- package/dist/cjs/client/deviceDirectory.js +51 -0
- package/dist/cjs/client/deviceSession.js +63 -0
- package/dist/cjs/client/externalIdentity.js +19 -0
- package/dist/cjs/client/identity.js +45 -0
- package/dist/cjs/client/identityLink.js +55 -0
- package/dist/cjs/client/identityProof.js +109 -0
- package/dist/cjs/client/index.js +211 -0
- package/dist/cjs/client/organizations.js +114 -0
- package/dist/cjs/client/products.js +153 -0
- package/dist/cjs/client/recommendations.js +33 -0
- package/dist/cjs/client/reputation.js +41 -0
- package/dist/cjs/client/safety.js +196 -0
- package/dist/cjs/client/sessionStatus.js +23 -0
- package/dist/cjs/client/signIn.js +159 -0
- package/dist/cjs/client/userResponse.js +15 -0
- package/dist/cjs/client/username.js +173 -0
- package/dist/cjs/deviceSession.js +3 -16
- package/dist/cjs/identityLink.js +13 -34
- package/dist/cjs/identityProof.js +18 -106
- package/dist/cjs/index.js +13 -3
- package/dist/cjs/organizations.js +21 -41
- package/dist/cjs/reputation.js +3 -34
- package/dist/cjs/safety.js +430 -1
- package/dist/cjs/serviceToken.js +14 -0
- package/dist/cjs/signIn.js +33 -111
- package/dist/cjs/username.js +23 -158
- package/dist/esm/accountAccess.js +69 -0
- package/dist/esm/accountEmail.js +4 -32
- package/dist/esm/accountGraph.js +4 -309
- package/dist/esm/agency.js +111 -0
- package/dist/esm/agentKeys.js +4 -10
- package/dist/esm/applicationRoles.js +207 -0
- package/dist/esm/client/accountEmail.js +45 -0
- package/dist/esm/client/accountGraph.js +314 -0
- package/dist/esm/client/agentKeys.js +74 -0
- package/dist/esm/client/check.js +436 -0
- package/dist/esm/client/deviceBoot.js +19 -0
- package/dist/esm/client/deviceDirectory.js +48 -0
- package/dist/esm/client/deviceSession.js +60 -0
- package/dist/esm/client/externalIdentity.js +16 -0
- package/dist/esm/client/identity.js +42 -0
- package/dist/esm/client/identityLink.js +50 -0
- package/dist/esm/client/identityProof.js +104 -0
- package/dist/esm/client/index.js +37 -0
- package/dist/esm/client/organizations.js +111 -0
- package/dist/esm/client/products.js +150 -0
- package/dist/esm/client/recommendations.js +30 -0
- package/dist/esm/client/reputation.js +37 -0
- package/dist/esm/client/safety.js +193 -0
- package/dist/esm/client/sessionStatus.js +20 -0
- package/dist/esm/client/signIn.js +153 -0
- package/dist/esm/client/userResponse.js +12 -0
- package/dist/esm/client/username.js +167 -0
- package/dist/esm/deviceSession.js +1 -15
- package/dist/esm/identityLink.js +4 -27
- package/dist/esm/identityProof.js +4 -99
- package/dist/esm/index.js +4 -1
- package/dist/esm/organizations.js +4 -31
- package/dist/esm/reputation.js +1 -32
- package/dist/esm/safety.js +423 -0
- package/dist/esm/serviceToken.js +11 -0
- package/dist/esm/signIn.js +4 -96
- package/dist/esm/username.js +4 -148
- package/dist/types/accountAccess.d.ts +128 -0
- package/dist/types/accountEmail.d.ts +4 -36
- package/dist/types/accountGraph.d.ts +12 -208
- package/dist/types/agency.d.ts +351 -26
- package/dist/types/agentKeys.d.ts +14 -12
- package/dist/types/applicationRoles.d.ts +438 -0
- package/dist/types/client/accountEmail.d.ts +44 -0
- package/dist/types/client/accountGraph.d.ts +203 -0
- package/dist/types/client/agentKeys.d.ts +113 -0
- package/dist/types/client/check.d.ts +187 -0
- package/dist/types/client/deviceBoot.d.ts +6 -0
- package/dist/types/client/deviceDirectory.d.ts +134 -0
- package/dist/types/client/deviceSession.d.ts +91 -0
- package/dist/types/client/externalIdentity.d.ts +14 -0
- package/dist/types/client/identity.d.ts +8 -0
- package/dist/types/client/identityLink.d.ts +21 -0
- package/dist/types/client/identityProof.d.ts +73 -0
- package/dist/types/client/index.d.ts +37 -0
- package/dist/types/client/organizations.d.ts +167 -0
- package/dist/types/client/products.d.ts +145 -0
- package/dist/types/client/recommendations.d.ts +27 -0
- package/dist/types/client/reputation.d.ts +28 -0
- package/dist/types/client/safety.d.ts +213 -0
- package/dist/types/client/sessionStatus.d.ts +19 -0
- package/dist/types/client/signIn.d.ts +107 -0
- package/dist/types/client/userResponse.d.ts +7 -0
- package/dist/types/client/username.d.ts +126 -0
- package/dist/types/deviceDirectory.d.ts +28 -28
- package/dist/types/deviceSession.d.ts +5 -16
- package/dist/types/email/messages.d.ts +2 -2
- package/dist/types/externalIdentity.d.ts +15 -15
- package/dist/types/identityLink.d.ts +3 -11
- package/dist/types/identityProof.d.ts +2 -65
- package/dist/types/index.d.ts +5 -2
- package/dist/types/inference/accountBilling.d.ts +2 -2
- package/dist/types/inference/catalogue.d.ts +22 -22
- package/dist/types/inference/decisions.d.ts +10 -10
- package/dist/types/inference/embeddings.d.ts +16 -16
- package/dist/types/inference/errors.d.ts +8 -8
- package/dist/types/inference/inbox.d.ts +8 -8
- package/dist/types/inference/privateAutoExecution.d.ts +6 -6
- package/dist/types/inference/providerConnection.d.ts +4 -4
- package/dist/types/inference/realtime.d.ts +92 -92
- package/dist/types/inference/request.d.ts +48 -48
- package/dist/types/inference/streamEvents.d.ts +16 -16
- package/dist/types/inference/usage.d.ts +4 -4
- package/dist/types/oauth.d.ts +2 -2
- package/dist/types/organizations.d.ts +8 -10
- package/dist/types/products/access.d.ts +4 -4
- package/dist/types/products/billing.d.ts +3 -0
- package/dist/types/reputation.d.ts +1 -11
- package/dist/types/safety.d.ts +2374 -2
- package/dist/types/serviceToken.d.ts +11 -0
- package/dist/types/sessionStatus.d.ts +2 -2
- package/dist/types/signIn.d.ts +11 -94
- package/dist/types/userResponse.d.ts +22 -22
- package/dist/types/username.d.ts +1 -96
- package/package.json +24 -20
- package/dist/cjs/.tsbuildinfo +0 -1
- package/dist/esm/.tsbuildinfo +0 -1
- package/dist/types/.tsbuildinfo +0 -1
|
@@ -251,6 +251,7 @@ export declare const accountBillingStateSchema: z.ZodObject<{
|
|
|
251
251
|
}>;
|
|
252
252
|
}, "strict", z.ZodTypeAny, {
|
|
253
253
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
254
|
+
inherited: boolean;
|
|
254
255
|
schemaVersion: 1;
|
|
255
256
|
profile: {
|
|
256
257
|
status: "active" | "suspended" | "closed";
|
|
@@ -268,9 +269,9 @@ export declare const accountBillingStateSchema: z.ZodObject<{
|
|
|
268
269
|
};
|
|
269
270
|
};
|
|
270
271
|
billingAccountId: string & z.BRAND<"OxyAccountId">;
|
|
271
|
-
inherited: boolean;
|
|
272
272
|
}, {
|
|
273
273
|
accountId: string;
|
|
274
|
+
inherited: boolean;
|
|
274
275
|
schemaVersion: 1;
|
|
275
276
|
profile: {
|
|
276
277
|
status: "active" | "suspended" | "closed";
|
|
@@ -288,7 +289,6 @@ export declare const accountBillingStateSchema: z.ZodObject<{
|
|
|
288
289
|
};
|
|
289
290
|
};
|
|
290
291
|
billingAccountId: string;
|
|
291
|
-
inherited: boolean;
|
|
292
292
|
}>;
|
|
293
293
|
export declare const BILLING_INVOICE_STATUSES: readonly ["draft", "open", "paid", "void"];
|
|
294
294
|
export declare const billingInvoiceStatusSchema: z.ZodEnum<["draft", "open", "paid", "void"]>;
|
|
@@ -338,22 +338,22 @@ export declare const modelDeprecationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
338
338
|
announcedAt: z.ZodOptional<z.ZodString>;
|
|
339
339
|
sunsetAt: z.ZodOptional<z.ZodString>;
|
|
340
340
|
}, "strict", z.ZodTypeAny, {
|
|
341
|
-
status: "active" | "
|
|
341
|
+
status: "active" | "retired" | "deprecated";
|
|
342
342
|
replacementModelReference?: string | undefined;
|
|
343
343
|
announcedAt?: string | undefined;
|
|
344
344
|
sunsetAt?: string | undefined;
|
|
345
345
|
}, {
|
|
346
|
-
status: "active" | "
|
|
346
|
+
status: "active" | "retired" | "deprecated";
|
|
347
347
|
replacementModelReference?: string | undefined;
|
|
348
348
|
announcedAt?: string | undefined;
|
|
349
349
|
sunsetAt?: string | undefined;
|
|
350
350
|
}>, {
|
|
351
|
-
status: "active" | "
|
|
351
|
+
status: "active" | "retired" | "deprecated";
|
|
352
352
|
replacementModelReference?: string | undefined;
|
|
353
353
|
announcedAt?: string | undefined;
|
|
354
354
|
sunsetAt?: string | undefined;
|
|
355
355
|
}, {
|
|
356
|
-
status: "active" | "
|
|
356
|
+
status: "active" | "retired" | "deprecated";
|
|
357
357
|
replacementModelReference?: string | undefined;
|
|
358
358
|
announcedAt?: string | undefined;
|
|
359
359
|
sunsetAt?: string | undefined;
|
|
@@ -603,22 +603,22 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
603
603
|
announcedAt: z.ZodOptional<z.ZodString>;
|
|
604
604
|
sunsetAt: z.ZodOptional<z.ZodString>;
|
|
605
605
|
}, "strict", z.ZodTypeAny, {
|
|
606
|
-
status: "active" | "
|
|
606
|
+
status: "active" | "retired" | "deprecated";
|
|
607
607
|
replacementModelReference?: string | undefined;
|
|
608
608
|
announcedAt?: string | undefined;
|
|
609
609
|
sunsetAt?: string | undefined;
|
|
610
610
|
}, {
|
|
611
|
-
status: "active" | "
|
|
611
|
+
status: "active" | "retired" | "deprecated";
|
|
612
612
|
replacementModelReference?: string | undefined;
|
|
613
613
|
announcedAt?: string | undefined;
|
|
614
614
|
sunsetAt?: string | undefined;
|
|
615
615
|
}>, {
|
|
616
|
-
status: "active" | "
|
|
616
|
+
status: "active" | "retired" | "deprecated";
|
|
617
617
|
replacementModelReference?: string | undefined;
|
|
618
618
|
announcedAt?: string | undefined;
|
|
619
619
|
sunsetAt?: string | undefined;
|
|
620
620
|
}, {
|
|
621
|
-
status: "active" | "
|
|
621
|
+
status: "active" | "retired" | "deprecated";
|
|
622
622
|
replacementModelReference?: string | undefined;
|
|
623
623
|
announcedAt?: string | undefined;
|
|
624
624
|
sunsetAt?: string | undefined;
|
|
@@ -663,7 +663,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
663
663
|
};
|
|
664
664
|
currentRevision: string;
|
|
665
665
|
deprecation: {
|
|
666
|
-
status: "active" | "
|
|
666
|
+
status: "active" | "retired" | "deprecated";
|
|
667
667
|
replacementModelReference?: string | undefined;
|
|
668
668
|
announcedAt?: string | undefined;
|
|
669
669
|
sunsetAt?: string | undefined;
|
|
@@ -711,7 +711,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
711
711
|
};
|
|
712
712
|
currentRevision: string;
|
|
713
713
|
deprecation: {
|
|
714
|
-
status: "active" | "
|
|
714
|
+
status: "active" | "retired" | "deprecated";
|
|
715
715
|
replacementModelReference?: string | undefined;
|
|
716
716
|
announcedAt?: string | undefined;
|
|
717
717
|
sunsetAt?: string | undefined;
|
|
@@ -759,7 +759,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
759
759
|
};
|
|
760
760
|
currentRevision: string;
|
|
761
761
|
deprecation: {
|
|
762
|
-
status: "active" | "
|
|
762
|
+
status: "active" | "retired" | "deprecated";
|
|
763
763
|
replacementModelReference?: string | undefined;
|
|
764
764
|
announcedAt?: string | undefined;
|
|
765
765
|
sunsetAt?: string | undefined;
|
|
@@ -807,7 +807,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
807
807
|
};
|
|
808
808
|
currentRevision: string;
|
|
809
809
|
deprecation: {
|
|
810
|
-
status: "active" | "
|
|
810
|
+
status: "active" | "retired" | "deprecated";
|
|
811
811
|
replacementModelReference?: string | undefined;
|
|
812
812
|
announcedAt?: string | undefined;
|
|
813
813
|
sunsetAt?: string | undefined;
|
|
@@ -1211,7 +1211,7 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1211
1211
|
/** The price version customers are charged under on this route. */
|
|
1212
1212
|
priceVersionId: z.ZodOptional<z.ZodString>;
|
|
1213
1213
|
}, "strip", z.ZodTypeAny, {
|
|
1214
|
-
status: "active" | "
|
|
1214
|
+
status: "active" | "retired" | "disabled" | "degraded";
|
|
1215
1215
|
schemaVersion: 2;
|
|
1216
1216
|
provider: string;
|
|
1217
1217
|
modelReference: string;
|
|
@@ -1255,7 +1255,7 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1255
1255
|
maxCostUsd: string & z.BRAND<"ExactDecimal">;
|
|
1256
1256
|
} | undefined;
|
|
1257
1257
|
}, {
|
|
1258
|
-
status: "active" | "
|
|
1258
|
+
status: "active" | "retired" | "disabled" | "degraded";
|
|
1259
1259
|
schemaVersion: 2;
|
|
1260
1260
|
provider: string;
|
|
1261
1261
|
modelReference: string;
|
|
@@ -1299,7 +1299,7 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1299
1299
|
maxCostUsd: string;
|
|
1300
1300
|
} | undefined;
|
|
1301
1301
|
}>, {
|
|
1302
|
-
status: "active" | "
|
|
1302
|
+
status: "active" | "retired" | "disabled" | "degraded";
|
|
1303
1303
|
schemaVersion: 2;
|
|
1304
1304
|
provider: string;
|
|
1305
1305
|
modelReference: string;
|
|
@@ -1343,7 +1343,7 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1343
1343
|
maxCostUsd: string & z.BRAND<"ExactDecimal">;
|
|
1344
1344
|
} | undefined;
|
|
1345
1345
|
}, {
|
|
1346
|
-
status: "active" | "
|
|
1346
|
+
status: "active" | "retired" | "disabled" | "degraded";
|
|
1347
1347
|
schemaVersion: 2;
|
|
1348
1348
|
provider: string;
|
|
1349
1349
|
modelReference: string;
|
|
@@ -1906,22 +1906,22 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1906
1906
|
announcedAt: z.ZodOptional<z.ZodString>;
|
|
1907
1907
|
sunsetAt: z.ZodOptional<z.ZodString>;
|
|
1908
1908
|
}, "strict", z.ZodTypeAny, {
|
|
1909
|
-
status: "active" | "
|
|
1909
|
+
status: "active" | "retired" | "deprecated";
|
|
1910
1910
|
replacementModelReference?: string | undefined;
|
|
1911
1911
|
announcedAt?: string | undefined;
|
|
1912
1912
|
sunsetAt?: string | undefined;
|
|
1913
1913
|
}, {
|
|
1914
|
-
status: "active" | "
|
|
1914
|
+
status: "active" | "retired" | "deprecated";
|
|
1915
1915
|
replacementModelReference?: string | undefined;
|
|
1916
1916
|
announcedAt?: string | undefined;
|
|
1917
1917
|
sunsetAt?: string | undefined;
|
|
1918
1918
|
}>, {
|
|
1919
|
-
status: "active" | "
|
|
1919
|
+
status: "active" | "retired" | "deprecated";
|
|
1920
1920
|
replacementModelReference?: string | undefined;
|
|
1921
1921
|
announcedAt?: string | undefined;
|
|
1922
1922
|
sunsetAt?: string | undefined;
|
|
1923
1923
|
}, {
|
|
1924
|
-
status: "active" | "
|
|
1924
|
+
status: "active" | "retired" | "deprecated";
|
|
1925
1925
|
replacementModelReference?: string | undefined;
|
|
1926
1926
|
announcedAt?: string | undefined;
|
|
1927
1927
|
sunsetAt?: string | undefined;
|
|
@@ -2013,7 +2013,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
2013
2013
|
};
|
|
2014
2014
|
currentRevision: string;
|
|
2015
2015
|
deprecation: {
|
|
2016
|
-
status: "active" | "
|
|
2016
|
+
status: "active" | "retired" | "deprecated";
|
|
2017
2017
|
replacementModelReference?: string | undefined;
|
|
2018
2018
|
announcedAt?: string | undefined;
|
|
2019
2019
|
sunsetAt?: string | undefined;
|
|
@@ -2115,7 +2115,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
2115
2115
|
};
|
|
2116
2116
|
currentRevision: string;
|
|
2117
2117
|
deprecation: {
|
|
2118
|
-
status: "active" | "
|
|
2118
|
+
status: "active" | "retired" | "deprecated";
|
|
2119
2119
|
replacementModelReference?: string | undefined;
|
|
2120
2120
|
announcedAt?: string | undefined;
|
|
2121
2121
|
sunsetAt?: string | undefined;
|
|
@@ -1111,14 +1111,14 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1111
1111
|
message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1112
1112
|
}, "strict", z.ZodTypeAny, {
|
|
1113
1113
|
provider: string;
|
|
1114
|
-
status?: number | undefined;
|
|
1115
1114
|
code?: string | undefined;
|
|
1116
1115
|
message?: string | undefined;
|
|
1116
|
+
status?: number | undefined;
|
|
1117
1117
|
}, {
|
|
1118
1118
|
provider: string;
|
|
1119
|
-
status?: number | undefined;
|
|
1120
1119
|
code?: string | undefined;
|
|
1121
1120
|
message?: string | undefined;
|
|
1121
|
+
status?: number | undefined;
|
|
1122
1122
|
}>>;
|
|
1123
1123
|
}, "strip", z.ZodTypeAny, {
|
|
1124
1124
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -1131,9 +1131,9 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1131
1131
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
1132
1132
|
providerError?: {
|
|
1133
1133
|
provider: string;
|
|
1134
|
-
status?: number | undefined;
|
|
1135
1134
|
code?: string | undefined;
|
|
1136
1135
|
message?: string | undefined;
|
|
1136
|
+
status?: number | undefined;
|
|
1137
1137
|
} | undefined;
|
|
1138
1138
|
}, {
|
|
1139
1139
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -1146,9 +1146,9 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1146
1146
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
1147
1147
|
providerError?: {
|
|
1148
1148
|
provider: string;
|
|
1149
|
-
status?: number | undefined;
|
|
1150
1149
|
code?: string | undefined;
|
|
1151
1150
|
message?: string | undefined;
|
|
1151
|
+
status?: number | undefined;
|
|
1152
1152
|
} | undefined;
|
|
1153
1153
|
}>, {
|
|
1154
1154
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -1161,9 +1161,9 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1161
1161
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
1162
1162
|
providerError?: {
|
|
1163
1163
|
provider: string;
|
|
1164
|
-
status?: number | undefined;
|
|
1165
1164
|
code?: string | undefined;
|
|
1166
1165
|
message?: string | undefined;
|
|
1166
|
+
status?: number | undefined;
|
|
1167
1167
|
} | undefined;
|
|
1168
1168
|
}, {
|
|
1169
1169
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -1176,9 +1176,9 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1176
1176
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
1177
1177
|
providerError?: {
|
|
1178
1178
|
provider: string;
|
|
1179
|
-
status?: number | undefined;
|
|
1180
1179
|
code?: string | undefined;
|
|
1181
1180
|
message?: string | undefined;
|
|
1181
|
+
status?: number | undefined;
|
|
1182
1182
|
} | undefined;
|
|
1183
1183
|
}>;
|
|
1184
1184
|
usage: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
@@ -1406,9 +1406,9 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1406
1406
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
1407
1407
|
providerError?: {
|
|
1408
1408
|
provider: string;
|
|
1409
|
-
status?: number | undefined;
|
|
1410
1409
|
code?: string | undefined;
|
|
1411
1410
|
message?: string | undefined;
|
|
1411
|
+
status?: number | undefined;
|
|
1412
1412
|
} | undefined;
|
|
1413
1413
|
};
|
|
1414
1414
|
schemaVersion: 1;
|
|
@@ -1458,9 +1458,9 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1458
1458
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
1459
1459
|
providerError?: {
|
|
1460
1460
|
provider: string;
|
|
1461
|
-
status?: number | undefined;
|
|
1462
1461
|
code?: string | undefined;
|
|
1463
1462
|
message?: string | undefined;
|
|
1463
|
+
status?: number | undefined;
|
|
1464
1464
|
} | undefined;
|
|
1465
1465
|
};
|
|
1466
1466
|
schemaVersion: 1;
|
|
@@ -1510,9 +1510,9 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1510
1510
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
1511
1511
|
providerError?: {
|
|
1512
1512
|
provider: string;
|
|
1513
|
-
status?: number | undefined;
|
|
1514
1513
|
code?: string | undefined;
|
|
1515
1514
|
message?: string | undefined;
|
|
1515
|
+
status?: number | undefined;
|
|
1516
1516
|
} | undefined;
|
|
1517
1517
|
};
|
|
1518
1518
|
schemaVersion: 1;
|
|
@@ -1562,9 +1562,9 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1562
1562
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
1563
1563
|
providerError?: {
|
|
1564
1564
|
provider: string;
|
|
1565
|
-
status?: number | undefined;
|
|
1566
1565
|
code?: string | undefined;
|
|
1567
1566
|
message?: string | undefined;
|
|
1567
|
+
status?: number | undefined;
|
|
1568
1568
|
} | undefined;
|
|
1569
1569
|
};
|
|
1570
1570
|
schemaVersion: 1;
|
|
@@ -128,14 +128,14 @@ export declare const embeddingFailureSchema: z.ZodObject<{
|
|
|
128
128
|
message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
129
129
|
}, "strict", z.ZodTypeAny, {
|
|
130
130
|
provider: string;
|
|
131
|
-
status?: number | undefined;
|
|
132
131
|
code?: string | undefined;
|
|
133
132
|
message?: string | undefined;
|
|
133
|
+
status?: number | undefined;
|
|
134
134
|
}, {
|
|
135
135
|
provider: string;
|
|
136
|
-
status?: number | undefined;
|
|
137
136
|
code?: string | undefined;
|
|
138
137
|
message?: string | undefined;
|
|
138
|
+
status?: number | undefined;
|
|
139
139
|
}>>;
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
141
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -148,9 +148,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
|
|
|
148
148
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
149
149
|
providerError?: {
|
|
150
150
|
provider: string;
|
|
151
|
-
status?: number | undefined;
|
|
152
151
|
code?: string | undefined;
|
|
153
152
|
message?: string | undefined;
|
|
153
|
+
status?: number | undefined;
|
|
154
154
|
} | undefined;
|
|
155
155
|
}, {
|
|
156
156
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -163,9 +163,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
|
|
|
163
163
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
164
164
|
providerError?: {
|
|
165
165
|
provider: string;
|
|
166
|
-
status?: number | undefined;
|
|
167
166
|
code?: string | undefined;
|
|
168
167
|
message?: string | undefined;
|
|
168
|
+
status?: number | undefined;
|
|
169
169
|
} | undefined;
|
|
170
170
|
}>, {
|
|
171
171
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -178,9 +178,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
|
|
|
178
178
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
179
179
|
providerError?: {
|
|
180
180
|
provider: string;
|
|
181
|
-
status?: number | undefined;
|
|
182
181
|
code?: string | undefined;
|
|
183
182
|
message?: string | undefined;
|
|
183
|
+
status?: number | undefined;
|
|
184
184
|
} | undefined;
|
|
185
185
|
}, {
|
|
186
186
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -193,9 +193,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
|
|
|
193
193
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
194
194
|
providerError?: {
|
|
195
195
|
provider: string;
|
|
196
|
-
status?: number | undefined;
|
|
197
196
|
code?: string | undefined;
|
|
198
197
|
message?: string | undefined;
|
|
198
|
+
status?: number | undefined;
|
|
199
199
|
} | undefined;
|
|
200
200
|
}>;
|
|
201
201
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -210,9 +210,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
|
|
|
210
210
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
211
211
|
providerError?: {
|
|
212
212
|
provider: string;
|
|
213
|
-
status?: number | undefined;
|
|
214
213
|
code?: string | undefined;
|
|
215
214
|
message?: string | undefined;
|
|
215
|
+
status?: number | undefined;
|
|
216
216
|
} | undefined;
|
|
217
217
|
};
|
|
218
218
|
schemaVersion: 1;
|
|
@@ -229,9 +229,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
|
|
|
229
229
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
230
230
|
providerError?: {
|
|
231
231
|
provider: string;
|
|
232
|
-
status?: number | undefined;
|
|
233
232
|
code?: string | undefined;
|
|
234
233
|
message?: string | undefined;
|
|
234
|
+
status?: number | undefined;
|
|
235
235
|
} | undefined;
|
|
236
236
|
};
|
|
237
237
|
schemaVersion: 1;
|
|
@@ -339,14 +339,14 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
|
|
|
339
339
|
message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
340
340
|
}, "strict", z.ZodTypeAny, {
|
|
341
341
|
provider: string;
|
|
342
|
-
status?: number | undefined;
|
|
343
342
|
code?: string | undefined;
|
|
344
343
|
message?: string | undefined;
|
|
344
|
+
status?: number | undefined;
|
|
345
345
|
}, {
|
|
346
346
|
provider: string;
|
|
347
|
-
status?: number | undefined;
|
|
348
347
|
code?: string | undefined;
|
|
349
348
|
message?: string | undefined;
|
|
349
|
+
status?: number | undefined;
|
|
350
350
|
}>>;
|
|
351
351
|
}, "strip", z.ZodTypeAny, {
|
|
352
352
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -359,9 +359,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
|
|
|
359
359
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
360
360
|
providerError?: {
|
|
361
361
|
provider: string;
|
|
362
|
-
status?: number | undefined;
|
|
363
362
|
code?: string | undefined;
|
|
364
363
|
message?: string | undefined;
|
|
364
|
+
status?: number | undefined;
|
|
365
365
|
} | undefined;
|
|
366
366
|
}, {
|
|
367
367
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -374,9 +374,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
|
|
|
374
374
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
375
375
|
providerError?: {
|
|
376
376
|
provider: string;
|
|
377
|
-
status?: number | undefined;
|
|
378
377
|
code?: string | undefined;
|
|
379
378
|
message?: string | undefined;
|
|
379
|
+
status?: number | undefined;
|
|
380
380
|
} | undefined;
|
|
381
381
|
}>, {
|
|
382
382
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -389,9 +389,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
|
|
|
389
389
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
390
390
|
providerError?: {
|
|
391
391
|
provider: string;
|
|
392
|
-
status?: number | undefined;
|
|
393
392
|
code?: string | undefined;
|
|
394
393
|
message?: string | undefined;
|
|
394
|
+
status?: number | undefined;
|
|
395
395
|
} | undefined;
|
|
396
396
|
}, {
|
|
397
397
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -404,9 +404,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
|
|
|
404
404
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
405
405
|
providerError?: {
|
|
406
406
|
provider: string;
|
|
407
|
-
status?: number | undefined;
|
|
408
407
|
code?: string | undefined;
|
|
409
408
|
message?: string | undefined;
|
|
409
|
+
status?: number | undefined;
|
|
410
410
|
} | undefined;
|
|
411
411
|
}>;
|
|
412
412
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -421,9 +421,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
|
|
|
421
421
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
422
422
|
providerError?: {
|
|
423
423
|
provider: string;
|
|
424
|
-
status?: number | undefined;
|
|
425
424
|
code?: string | undefined;
|
|
426
425
|
message?: string | undefined;
|
|
426
|
+
status?: number | undefined;
|
|
427
427
|
} | undefined;
|
|
428
428
|
};
|
|
429
429
|
schemaVersion: 1;
|
|
@@ -440,9 +440,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
|
|
|
440
440
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
441
441
|
providerError?: {
|
|
442
442
|
provider: string;
|
|
443
|
-
status?: number | undefined;
|
|
444
443
|
code?: string | undefined;
|
|
445
444
|
message?: string | undefined;
|
|
445
|
+
status?: number | undefined;
|
|
446
446
|
} | undefined;
|
|
447
447
|
};
|
|
448
448
|
schemaVersion: 1;
|
|
@@ -127,14 +127,14 @@ export declare const providerErrorPassthroughSchema: z.ZodObject<{
|
|
|
127
127
|
message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
128
128
|
}, "strict", z.ZodTypeAny, {
|
|
129
129
|
provider: string;
|
|
130
|
-
status?: number | undefined;
|
|
131
130
|
code?: string | undefined;
|
|
132
131
|
message?: string | undefined;
|
|
132
|
+
status?: number | undefined;
|
|
133
133
|
}, {
|
|
134
134
|
provider: string;
|
|
135
|
-
status?: number | undefined;
|
|
136
135
|
code?: string | undefined;
|
|
137
136
|
message?: string | undefined;
|
|
137
|
+
status?: number | undefined;
|
|
138
138
|
}>;
|
|
139
139
|
/**
|
|
140
140
|
* The error body every inference surface returns and every stream error event
|
|
@@ -166,14 +166,14 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
166
166
|
message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
167
167
|
}, "strict", z.ZodTypeAny, {
|
|
168
168
|
provider: string;
|
|
169
|
-
status?: number | undefined;
|
|
170
169
|
code?: string | undefined;
|
|
171
170
|
message?: string | undefined;
|
|
171
|
+
status?: number | undefined;
|
|
172
172
|
}, {
|
|
173
173
|
provider: string;
|
|
174
|
-
status?: number | undefined;
|
|
175
174
|
code?: string | undefined;
|
|
176
175
|
message?: string | undefined;
|
|
176
|
+
status?: number | undefined;
|
|
177
177
|
}>>;
|
|
178
178
|
}, "strip", z.ZodTypeAny, {
|
|
179
179
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -186,9 +186,9 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
186
186
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
187
187
|
providerError?: {
|
|
188
188
|
provider: string;
|
|
189
|
-
status?: number | undefined;
|
|
190
189
|
code?: string | undefined;
|
|
191
190
|
message?: string | undefined;
|
|
191
|
+
status?: number | undefined;
|
|
192
192
|
} | undefined;
|
|
193
193
|
}, {
|
|
194
194
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -201,9 +201,9 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
201
201
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
202
202
|
providerError?: {
|
|
203
203
|
provider: string;
|
|
204
|
-
status?: number | undefined;
|
|
205
204
|
code?: string | undefined;
|
|
206
205
|
message?: string | undefined;
|
|
206
|
+
status?: number | undefined;
|
|
207
207
|
} | undefined;
|
|
208
208
|
}>, {
|
|
209
209
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -216,9 +216,9 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
216
216
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
217
217
|
providerError?: {
|
|
218
218
|
provider: string;
|
|
219
|
-
status?: number | undefined;
|
|
220
219
|
code?: string | undefined;
|
|
221
220
|
message?: string | undefined;
|
|
221
|
+
status?: number | undefined;
|
|
222
222
|
} | undefined;
|
|
223
223
|
}, {
|
|
224
224
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -231,9 +231,9 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
231
231
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
232
232
|
providerError?: {
|
|
233
233
|
provider: string;
|
|
234
|
-
status?: number | undefined;
|
|
235
234
|
code?: string | undefined;
|
|
236
235
|
message?: string | undefined;
|
|
236
|
+
status?: number | undefined;
|
|
237
237
|
} | undefined;
|
|
238
238
|
}>;
|
|
239
239
|
export type InferenceErrorCode = z.infer<typeof inferenceErrorCodeSchema>;
|
|
@@ -380,14 +380,14 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
|
|
|
380
380
|
message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
381
381
|
}, "strict", z.ZodTypeAny, {
|
|
382
382
|
provider: string;
|
|
383
|
-
status?: number | undefined;
|
|
384
383
|
code?: string | undefined;
|
|
385
384
|
message?: string | undefined;
|
|
385
|
+
status?: number | undefined;
|
|
386
386
|
}, {
|
|
387
387
|
provider: string;
|
|
388
|
-
status?: number | undefined;
|
|
389
388
|
code?: string | undefined;
|
|
390
389
|
message?: string | undefined;
|
|
390
|
+
status?: number | undefined;
|
|
391
391
|
}>>;
|
|
392
392
|
}, "strip", z.ZodTypeAny, {
|
|
393
393
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -400,9 +400,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
|
|
|
400
400
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
401
401
|
providerError?: {
|
|
402
402
|
provider: string;
|
|
403
|
-
status?: number | undefined;
|
|
404
403
|
code?: string | undefined;
|
|
405
404
|
message?: string | undefined;
|
|
405
|
+
status?: number | undefined;
|
|
406
406
|
} | undefined;
|
|
407
407
|
}, {
|
|
408
408
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -415,9 +415,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
|
|
|
415
415
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
416
416
|
providerError?: {
|
|
417
417
|
provider: string;
|
|
418
|
-
status?: number | undefined;
|
|
419
418
|
code?: string | undefined;
|
|
420
419
|
message?: string | undefined;
|
|
420
|
+
status?: number | undefined;
|
|
421
421
|
} | undefined;
|
|
422
422
|
}>, {
|
|
423
423
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -430,9 +430,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
|
|
|
430
430
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
431
431
|
providerError?: {
|
|
432
432
|
provider: string;
|
|
433
|
-
status?: number | undefined;
|
|
434
433
|
code?: string | undefined;
|
|
435
434
|
message?: string | undefined;
|
|
435
|
+
status?: number | undefined;
|
|
436
436
|
} | undefined;
|
|
437
437
|
}, {
|
|
438
438
|
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
@@ -445,9 +445,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
|
|
|
445
445
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
446
446
|
providerError?: {
|
|
447
447
|
provider: string;
|
|
448
|
-
status?: number | undefined;
|
|
449
448
|
code?: string | undefined;
|
|
450
449
|
message?: string | undefined;
|
|
450
|
+
status?: number | undefined;
|
|
451
451
|
} | undefined;
|
|
452
452
|
}>;
|
|
453
453
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -463,9 +463,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
|
|
|
463
463
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
464
464
|
providerError?: {
|
|
465
465
|
provider: string;
|
|
466
|
-
status?: number | undefined;
|
|
467
466
|
code?: string | undefined;
|
|
468
467
|
message?: string | undefined;
|
|
468
|
+
status?: number | undefined;
|
|
469
469
|
} | undefined;
|
|
470
470
|
};
|
|
471
471
|
}, {
|
|
@@ -481,9 +481,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
|
|
|
481
481
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
482
482
|
providerError?: {
|
|
483
483
|
provider: string;
|
|
484
|
-
status?: number | undefined;
|
|
485
484
|
code?: string | undefined;
|
|
486
485
|
message?: string | undefined;
|
|
486
|
+
status?: number | undefined;
|
|
487
487
|
} | undefined;
|
|
488
488
|
};
|
|
489
489
|
}>]>;
|