@oxy.so/contracts 4.15.0 → 4.17.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/.tsbuildinfo +1 -1
- package/dist/cjs/accountEmail.js +12 -34
- package/dist/cjs/accountGraph.js +22 -320
- package/dist/cjs/agentKeys.js +11 -13
- 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 +466 -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 +190 -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 +15 -0
- package/dist/cjs/client/sessionStatus.js +23 -0
- package/dist/cjs/client/signIn.js +157 -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 +15 -10
- package/dist/cjs/inference/money.js +10 -0
- package/dist/cjs/inference/version.js +1 -1
- package/dist/cjs/organizations.js +21 -41
- package/dist/cjs/products/billing.js +0 -1
- package/dist/cjs/products/checkout.js +1 -14
- package/dist/cjs/products/plans.js +2 -18
- package/dist/cjs/reputation.js +3 -34
- package/dist/cjs/signIn.js +57 -96
- package/dist/cjs/userResponse.js +1 -8
- package/dist/cjs/username.js +23 -158
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/accountEmail.js +4 -32
- package/dist/esm/accountGraph.js +4 -309
- package/dist/esm/agentKeys.js +4 -10
- 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 +428 -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 +12 -0
- package/dist/esm/client/sessionStatus.js +20 -0
- package/dist/esm/client/signIn.js +151 -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 +2 -2
- package/dist/esm/inference/money.js +10 -0
- package/dist/esm/inference/version.js +1 -1
- package/dist/esm/organizations.js +4 -31
- package/dist/esm/products/billing.js +0 -1
- package/dist/esm/products/checkout.js +0 -13
- package/dist/esm/products/plans.js +1 -17
- package/dist/esm/reputation.js +1 -32
- package/dist/esm/signIn.js +29 -83
- package/dist/esm/userResponse.js +1 -8
- package/dist/esm/username.js +4 -148
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountEmail.d.ts +2 -34
- package/dist/types/accountGraph.d.ts +12 -208
- package/dist/types/agency.d.ts +24 -24
- package/dist/types/agentKeys.d.ts +8 -6
- 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 +184 -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 +13 -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 +1 -12
- package/dist/types/externalIdentity.d.ts +11 -44
- package/dist/types/identityLink.d.ts +3 -11
- package/dist/types/identityProof.d.ts +2 -65
- package/dist/types/index.d.ts +3 -3
- package/dist/types/inference/catalogue.d.ts +7 -7
- package/dist/types/inference/decisions.d.ts +41 -41
- package/dist/types/inference/economics.d.ts +5 -5
- 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/money.d.ts +17 -8
- package/dist/types/inference/priceVersion.d.ts +12 -12
- package/dist/types/inference/privateAutoExecution.d.ts +6 -6
- package/dist/types/inference/realtime.d.ts +54 -54
- package/dist/types/inference/request.d.ts +28 -28
- package/dist/types/inference/routingPolicy.d.ts +7 -7
- package/dist/types/inference/streamEvents.d.ts +26 -26
- package/dist/types/inference/usage.d.ts +32 -32
- package/dist/types/inference/version.d.ts +1 -1
- package/dist/types/oauth.d.ts +2 -2
- package/dist/types/organizations.d.ts +8 -10
- package/dist/types/products/billing.d.ts +3 -8
- package/dist/types/products/checkout.d.ts +0 -36
- package/dist/types/products/plans.d.ts +5 -102
- package/dist/types/reputation.d.ts +1 -11
- package/dist/types/sessionStatus.d.ts +2 -2
- package/dist/types/signIn.d.ts +74 -76
- package/dist/types/userResponse.d.ts +23 -159
- package/dist/types/username.d.ts +1 -96
- package/package.json +20 -1
|
@@ -1424,13 +1424,13 @@ export declare const responseFormatSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1424
1424
|
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1425
1425
|
strict: z.ZodBoolean;
|
|
1426
1426
|
}, "strict", z.ZodTypeAny, {
|
|
1427
|
-
type: "json_schema";
|
|
1428
1427
|
strict: boolean;
|
|
1428
|
+
type: "json_schema";
|
|
1429
1429
|
schema: Record<string, unknown>;
|
|
1430
1430
|
name: string;
|
|
1431
1431
|
}, {
|
|
1432
|
-
type: "json_schema";
|
|
1433
1432
|
strict: boolean;
|
|
1433
|
+
type: "json_schema";
|
|
1434
1434
|
schema: Record<string, unknown>;
|
|
1435
1435
|
name: string;
|
|
1436
1436
|
}>]>;
|
|
@@ -2512,13 +2512,13 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2512
2512
|
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2513
2513
|
strict: z.ZodBoolean;
|
|
2514
2514
|
}, "strict", z.ZodTypeAny, {
|
|
2515
|
-
type: "json_schema";
|
|
2516
2515
|
strict: boolean;
|
|
2516
|
+
type: "json_schema";
|
|
2517
2517
|
schema: Record<string, unknown>;
|
|
2518
2518
|
name: string;
|
|
2519
2519
|
}, {
|
|
2520
|
-
type: "json_schema";
|
|
2521
2520
|
strict: boolean;
|
|
2521
|
+
type: "json_schema";
|
|
2522
2522
|
schema: Record<string, unknown>;
|
|
2523
2523
|
name: string;
|
|
2524
2524
|
}>]>>;
|
|
@@ -2931,8 +2931,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2931
2931
|
} | {
|
|
2932
2932
|
type: "json_object";
|
|
2933
2933
|
} | {
|
|
2934
|
-
type: "json_schema";
|
|
2935
2934
|
strict: boolean;
|
|
2935
|
+
type: "json_schema";
|
|
2936
2936
|
schema: Record<string, unknown>;
|
|
2937
2937
|
name: string;
|
|
2938
2938
|
} | undefined;
|
|
@@ -3152,8 +3152,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3152
3152
|
} | {
|
|
3153
3153
|
type: "json_object";
|
|
3154
3154
|
} | {
|
|
3155
|
-
type: "json_schema";
|
|
3156
3155
|
strict: boolean;
|
|
3156
|
+
type: "json_schema";
|
|
3157
3157
|
schema: Record<string, unknown>;
|
|
3158
3158
|
name: string;
|
|
3159
3159
|
} | undefined;
|
|
@@ -3373,8 +3373,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3373
3373
|
} | {
|
|
3374
3374
|
type: "json_object";
|
|
3375
3375
|
} | {
|
|
3376
|
-
type: "json_schema";
|
|
3377
3376
|
strict: boolean;
|
|
3377
|
+
type: "json_schema";
|
|
3378
3378
|
schema: Record<string, unknown>;
|
|
3379
3379
|
name: string;
|
|
3380
3380
|
} | undefined;
|
|
@@ -3594,8 +3594,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3594
3594
|
} | {
|
|
3595
3595
|
type: "json_object";
|
|
3596
3596
|
} | {
|
|
3597
|
-
type: "json_schema";
|
|
3598
3597
|
strict: boolean;
|
|
3598
|
+
type: "json_schema";
|
|
3599
3599
|
schema: Record<string, unknown>;
|
|
3600
3600
|
name: string;
|
|
3601
3601
|
} | undefined;
|
|
@@ -4522,13 +4522,13 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4522
4522
|
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4523
4523
|
strict: z.ZodBoolean;
|
|
4524
4524
|
}, "strict", z.ZodTypeAny, {
|
|
4525
|
-
type: "json_schema";
|
|
4526
4525
|
strict: boolean;
|
|
4526
|
+
type: "json_schema";
|
|
4527
4527
|
schema: Record<string, unknown>;
|
|
4528
4528
|
name: string;
|
|
4529
4529
|
}, {
|
|
4530
|
-
type: "json_schema";
|
|
4531
4530
|
strict: boolean;
|
|
4531
|
+
type: "json_schema";
|
|
4532
4532
|
schema: Record<string, unknown>;
|
|
4533
4533
|
name: string;
|
|
4534
4534
|
}>]>>;
|
|
@@ -5009,8 +5009,8 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5009
5009
|
} | {
|
|
5010
5010
|
type: "json_object";
|
|
5011
5011
|
} | {
|
|
5012
|
-
type: "json_schema";
|
|
5013
5012
|
strict: boolean;
|
|
5013
|
+
type: "json_schema";
|
|
5014
5014
|
schema: Record<string, unknown>;
|
|
5015
5015
|
name: string;
|
|
5016
5016
|
} | undefined;
|
|
@@ -5230,8 +5230,8 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5230
5230
|
} | {
|
|
5231
5231
|
type: "json_object";
|
|
5232
5232
|
} | {
|
|
5233
|
-
type: "json_schema";
|
|
5234
5233
|
strict: boolean;
|
|
5234
|
+
type: "json_schema";
|
|
5235
5235
|
schema: Record<string, unknown>;
|
|
5236
5236
|
name: string;
|
|
5237
5237
|
} | undefined;
|
|
@@ -5451,8 +5451,8 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5451
5451
|
} | {
|
|
5452
5452
|
type: "json_object";
|
|
5453
5453
|
} | {
|
|
5454
|
-
type: "json_schema";
|
|
5455
5454
|
strict: boolean;
|
|
5455
|
+
type: "json_schema";
|
|
5456
5456
|
schema: Record<string, unknown>;
|
|
5457
5457
|
name: string;
|
|
5458
5458
|
} | undefined;
|
|
@@ -5672,8 +5672,8 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5672
5672
|
} | {
|
|
5673
5673
|
type: "json_object";
|
|
5674
5674
|
} | {
|
|
5675
|
-
type: "json_schema";
|
|
5676
5675
|
strict: boolean;
|
|
5676
|
+
type: "json_schema";
|
|
5677
5677
|
schema: Record<string, unknown>;
|
|
5678
5678
|
name: string;
|
|
5679
5679
|
} | undefined;
|
|
@@ -5863,13 +5863,13 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
|
|
|
5863
5863
|
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5864
5864
|
strict: z.ZodBoolean;
|
|
5865
5865
|
}, "strict", z.ZodTypeAny, {
|
|
5866
|
-
type: "json_schema";
|
|
5867
5866
|
strict: boolean;
|
|
5867
|
+
type: "json_schema";
|
|
5868
5868
|
schema: Record<string, unknown>;
|
|
5869
5869
|
name: string;
|
|
5870
5870
|
}, {
|
|
5871
|
-
type: "json_schema";
|
|
5872
5871
|
strict: boolean;
|
|
5872
|
+
type: "json_schema";
|
|
5873
5873
|
schema: Record<string, unknown>;
|
|
5874
5874
|
name: string;
|
|
5875
5875
|
}>]>>;
|
|
@@ -6874,8 +6874,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
|
|
|
6874
6874
|
snapshotId: z.ZodString;
|
|
6875
6875
|
catalogueEvidenceHash: z.ZodString;
|
|
6876
6876
|
}, "strict", z.ZodTypeAny, {
|
|
6877
|
-
purpose: "private_auto_classifier";
|
|
6878
6877
|
expiresAt: string;
|
|
6878
|
+
purpose: "private_auto_classifier";
|
|
6879
6879
|
requestId: string;
|
|
6880
6880
|
keyId: string;
|
|
6881
6881
|
principal: {
|
|
@@ -6913,8 +6913,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
|
|
|
6913
6913
|
inputSha256: string;
|
|
6914
6914
|
runtimeExpiresAt: string;
|
|
6915
6915
|
}, {
|
|
6916
|
-
purpose: "private_auto_classifier";
|
|
6917
6916
|
expiresAt: string;
|
|
6917
|
+
purpose: "private_auto_classifier";
|
|
6918
6918
|
requestId: string;
|
|
6919
6919
|
keyId: string;
|
|
6920
6920
|
principal: {
|
|
@@ -6952,8 +6952,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
|
|
|
6952
6952
|
inputSha256: string;
|
|
6953
6953
|
runtimeExpiresAt: string;
|
|
6954
6954
|
}>, {
|
|
6955
|
-
purpose: "private_auto_classifier";
|
|
6956
6955
|
expiresAt: string;
|
|
6956
|
+
purpose: "private_auto_classifier";
|
|
6957
6957
|
requestId: string;
|
|
6958
6958
|
keyId: string;
|
|
6959
6959
|
principal: {
|
|
@@ -6991,8 +6991,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
|
|
|
6991
6991
|
inputSha256: string;
|
|
6992
6992
|
runtimeExpiresAt: string;
|
|
6993
6993
|
}, {
|
|
6994
|
-
purpose: "private_auto_classifier";
|
|
6995
6994
|
expiresAt: string;
|
|
6995
|
+
purpose: "private_auto_classifier";
|
|
6996
6996
|
requestId: string;
|
|
6997
6997
|
keyId: string;
|
|
6998
6998
|
principal: {
|
|
@@ -7166,8 +7166,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
|
|
|
7166
7166
|
stopSequences?: string[] | undefined;
|
|
7167
7167
|
};
|
|
7168
7168
|
privateAutoExecution: {
|
|
7169
|
-
purpose: "private_auto_classifier";
|
|
7170
7169
|
expiresAt: string;
|
|
7170
|
+
purpose: "private_auto_classifier";
|
|
7171
7171
|
requestId: string;
|
|
7172
7172
|
keyId: string;
|
|
7173
7173
|
principal: {
|
|
@@ -7215,8 +7215,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
|
|
|
7215
7215
|
} | {
|
|
7216
7216
|
type: "json_object";
|
|
7217
7217
|
} | {
|
|
7218
|
-
type: "json_schema";
|
|
7219
7218
|
strict: boolean;
|
|
7219
|
+
type: "json_schema";
|
|
7220
7220
|
schema: Record<string, unknown>;
|
|
7221
7221
|
name: string;
|
|
7222
7222
|
} | undefined;
|
|
@@ -7392,8 +7392,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
|
|
|
7392
7392
|
stopSequences?: string[] | undefined;
|
|
7393
7393
|
};
|
|
7394
7394
|
privateAutoExecution: {
|
|
7395
|
-
purpose: "private_auto_classifier";
|
|
7396
7395
|
expiresAt: string;
|
|
7396
|
+
purpose: "private_auto_classifier";
|
|
7397
7397
|
requestId: string;
|
|
7398
7398
|
keyId: string;
|
|
7399
7399
|
principal: {
|
|
@@ -7448,8 +7448,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
|
|
|
7448
7448
|
} | {
|
|
7449
7449
|
type: "json_object";
|
|
7450
7450
|
} | {
|
|
7451
|
-
type: "json_schema";
|
|
7452
7451
|
strict: boolean;
|
|
7452
|
+
type: "json_schema";
|
|
7453
7453
|
schema: Record<string, unknown>;
|
|
7454
7454
|
name: string;
|
|
7455
7455
|
} | undefined;
|
|
@@ -7632,8 +7632,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
|
|
|
7632
7632
|
stopSequences?: string[] | undefined;
|
|
7633
7633
|
};
|
|
7634
7634
|
privateAutoExecution: {
|
|
7635
|
-
purpose: "private_auto_classifier";
|
|
7636
7635
|
expiresAt: string;
|
|
7636
|
+
purpose: "private_auto_classifier";
|
|
7637
7637
|
requestId: string;
|
|
7638
7638
|
keyId: string;
|
|
7639
7639
|
principal: {
|
|
@@ -7681,8 +7681,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
|
|
|
7681
7681
|
} | {
|
|
7682
7682
|
type: "json_object";
|
|
7683
7683
|
} | {
|
|
7684
|
-
type: "json_schema";
|
|
7685
7684
|
strict: boolean;
|
|
7685
|
+
type: "json_schema";
|
|
7686
7686
|
schema: Record<string, unknown>;
|
|
7687
7687
|
name: string;
|
|
7688
7688
|
} | undefined;
|
|
@@ -7858,8 +7858,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
|
|
|
7858
7858
|
stopSequences?: string[] | undefined;
|
|
7859
7859
|
};
|
|
7860
7860
|
privateAutoExecution: {
|
|
7861
|
-
purpose: "private_auto_classifier";
|
|
7862
7861
|
expiresAt: string;
|
|
7862
|
+
purpose: "private_auto_classifier";
|
|
7863
7863
|
requestId: string;
|
|
7864
7864
|
keyId: string;
|
|
7865
7865
|
principal: {
|
|
@@ -7914,8 +7914,8 @@ export declare const privateAutoInferenceRequestSchema: z.ZodEffects<z.ZodObject
|
|
|
7914
7914
|
} | {
|
|
7915
7915
|
type: "json_object";
|
|
7916
7916
|
} | {
|
|
7917
|
-
type: "json_schema";
|
|
7918
7917
|
strict: boolean;
|
|
7918
|
+
type: "json_schema";
|
|
7919
7919
|
schema: Record<string, unknown>;
|
|
7920
7920
|
name: string;
|
|
7921
7921
|
} | undefined;
|
|
@@ -187,19 +187,19 @@ export declare const routingPolicySchema: z.ZodEffects<z.ZodObject<{
|
|
|
187
187
|
prohibitTrainingOnCustomerData: z.ZodBoolean;
|
|
188
188
|
/** Ceilings on what a route may cost the customer, quoted like catalogue prices. */
|
|
189
189
|
maxPricePerUnit: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
190
|
-
unit: z.ZodEnum<["input_tokens", "cached_input_tokens", "output_tokens", "reasoning_tokens", "requests", "images", "audio_input_milliseconds", "audio_output_milliseconds", "video_milliseconds", "characters", "embeddings", "audio_input_tokens", "cached_audio_input_tokens", "audio_output_tokens", "session_milliseconds"]>;
|
|
190
|
+
unit: z.ZodEnum<["input_tokens", "cached_input_tokens", "output_tokens", "reasoning_tokens", "requests", "images", "audio_input_milliseconds", "audio_output_milliseconds", "video_milliseconds", "characters", "embeddings", "audio_input_tokens", "cached_audio_input_tokens", "audio_output_tokens", "session_milliseconds", "input_transcription_milliseconds"]>;
|
|
191
191
|
amount: z.ZodBranded<z.ZodString, "ExactDecimal">;
|
|
192
192
|
per: z.ZodNumber;
|
|
193
193
|
currency: z.ZodString;
|
|
194
194
|
}, "strict", z.ZodTypeAny, {
|
|
195
195
|
currency: string;
|
|
196
196
|
amount: string & z.BRAND<"ExactDecimal">;
|
|
197
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
197
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
198
198
|
per: number;
|
|
199
199
|
}, {
|
|
200
200
|
currency: string;
|
|
201
201
|
amount: string;
|
|
202
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
202
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
203
203
|
per: number;
|
|
204
204
|
}>, "many">>;
|
|
205
205
|
maxPricePerRequest: z.ZodOptional<z.ZodObject<{
|
|
@@ -276,7 +276,7 @@ export declare const routingPolicySchema: z.ZodEffects<z.ZodObject<{
|
|
|
276
276
|
maxPricePerUnit: {
|
|
277
277
|
currency: string;
|
|
278
278
|
amount: string & z.BRAND<"ExactDecimal">;
|
|
279
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
279
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
280
280
|
per: number;
|
|
281
281
|
}[];
|
|
282
282
|
oxyHostedOnly: boolean;
|
|
@@ -339,7 +339,7 @@ export declare const routingPolicySchema: z.ZodEffects<z.ZodObject<{
|
|
|
339
339
|
maxPricePerUnit?: {
|
|
340
340
|
currency: string;
|
|
341
341
|
amount: string;
|
|
342
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
342
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
343
343
|
per: number;
|
|
344
344
|
}[] | undefined;
|
|
345
345
|
maxPricePerRequest?: {
|
|
@@ -372,7 +372,7 @@ export declare const routingPolicySchema: z.ZodEffects<z.ZodObject<{
|
|
|
372
372
|
maxPricePerUnit: {
|
|
373
373
|
currency: string;
|
|
374
374
|
amount: string & z.BRAND<"ExactDecimal">;
|
|
375
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
375
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
376
376
|
per: number;
|
|
377
377
|
}[];
|
|
378
378
|
oxyHostedOnly: boolean;
|
|
@@ -435,7 +435,7 @@ export declare const routingPolicySchema: z.ZodEffects<z.ZodObject<{
|
|
|
435
435
|
maxPricePerUnit?: {
|
|
436
436
|
currency: string;
|
|
437
437
|
amount: string;
|
|
438
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
438
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
439
439
|
per: number;
|
|
440
440
|
}[] | undefined;
|
|
441
441
|
maxPricePerRequest?: {
|
|
@@ -210,13 +210,13 @@ export declare const inferenceStreamUsageEventSchema: z.ZodObject<{
|
|
|
210
210
|
/** Exact deployment whose metering produced these partial units. */
|
|
211
211
|
deploymentId: z.ZodString;
|
|
212
212
|
units: z.ZodArray<z.ZodObject<{
|
|
213
|
-
unit: z.ZodEnum<["input_tokens", "cached_input_tokens", "output_tokens", "reasoning_tokens", "requests", "images", "audio_input_milliseconds", "audio_output_milliseconds", "video_milliseconds", "characters", "embeddings", "audio_input_tokens", "cached_audio_input_tokens", "audio_output_tokens", "session_milliseconds"]>;
|
|
213
|
+
unit: z.ZodEnum<["input_tokens", "cached_input_tokens", "output_tokens", "reasoning_tokens", "requests", "images", "audio_input_milliseconds", "audio_output_milliseconds", "video_milliseconds", "characters", "embeddings", "audio_input_tokens", "cached_audio_input_tokens", "audio_output_tokens", "session_milliseconds", "input_transcription_milliseconds"]>;
|
|
214
214
|
quantity: z.ZodNumber;
|
|
215
215
|
}, "strict", z.ZodTypeAny, {
|
|
216
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
216
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
217
217
|
quantity: number;
|
|
218
218
|
}, {
|
|
219
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
219
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
220
220
|
quantity: number;
|
|
221
221
|
}>, "many">;
|
|
222
222
|
usageSource: z.ZodEnum<["provider_reported", "oxy_measured", "estimated"]>;
|
|
@@ -226,7 +226,7 @@ export declare const inferenceStreamUsageEventSchema: z.ZodObject<{
|
|
|
226
226
|
requestId: string;
|
|
227
227
|
deploymentId: string;
|
|
228
228
|
units: {
|
|
229
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
229
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
230
230
|
quantity: number;
|
|
231
231
|
}[];
|
|
232
232
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
@@ -237,7 +237,7 @@ export declare const inferenceStreamUsageEventSchema: z.ZodObject<{
|
|
|
237
237
|
requestId: string;
|
|
238
238
|
deploymentId: string;
|
|
239
239
|
units: {
|
|
240
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
240
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
241
241
|
quantity: number;
|
|
242
242
|
}[];
|
|
243
243
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
@@ -427,14 +427,14 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
427
427
|
message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
428
428
|
}, "strict", z.ZodTypeAny, {
|
|
429
429
|
provider: string;
|
|
430
|
-
status?: number | undefined;
|
|
431
430
|
code?: string | undefined;
|
|
432
431
|
message?: string | undefined;
|
|
432
|
+
status?: number | undefined;
|
|
433
433
|
}, {
|
|
434
434
|
provider: string;
|
|
435
|
-
status?: number | undefined;
|
|
436
435
|
code?: string | undefined;
|
|
437
436
|
message?: string | undefined;
|
|
437
|
+
status?: number | undefined;
|
|
438
438
|
}>>;
|
|
439
439
|
}, "strip", z.ZodTypeAny, {
|
|
440
440
|
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";
|
|
@@ -447,9 +447,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
447
447
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
448
448
|
providerError?: {
|
|
449
449
|
provider: string;
|
|
450
|
-
status?: number | undefined;
|
|
451
450
|
code?: string | undefined;
|
|
452
451
|
message?: string | undefined;
|
|
452
|
+
status?: number | undefined;
|
|
453
453
|
} | undefined;
|
|
454
454
|
}, {
|
|
455
455
|
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";
|
|
@@ -462,9 +462,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
462
462
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
463
463
|
providerError?: {
|
|
464
464
|
provider: string;
|
|
465
|
-
status?: number | undefined;
|
|
466
465
|
code?: string | undefined;
|
|
467
466
|
message?: string | undefined;
|
|
467
|
+
status?: number | undefined;
|
|
468
468
|
} | undefined;
|
|
469
469
|
}>, {
|
|
470
470
|
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";
|
|
@@ -477,9 +477,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
477
477
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
478
478
|
providerError?: {
|
|
479
479
|
provider: string;
|
|
480
|
-
status?: number | undefined;
|
|
481
480
|
code?: string | undefined;
|
|
482
481
|
message?: string | undefined;
|
|
482
|
+
status?: number | undefined;
|
|
483
483
|
} | undefined;
|
|
484
484
|
}, {
|
|
485
485
|
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";
|
|
@@ -492,9 +492,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
492
492
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
493
493
|
providerError?: {
|
|
494
494
|
provider: string;
|
|
495
|
-
status?: number | undefined;
|
|
496
495
|
code?: string | undefined;
|
|
497
496
|
message?: string | undefined;
|
|
497
|
+
status?: number | undefined;
|
|
498
498
|
} | undefined;
|
|
499
499
|
}>;
|
|
500
500
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -510,9 +510,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
510
510
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
511
511
|
providerError?: {
|
|
512
512
|
provider: string;
|
|
513
|
-
status?: number | undefined;
|
|
514
513
|
code?: string | undefined;
|
|
515
514
|
message?: string | undefined;
|
|
515
|
+
status?: number | undefined;
|
|
516
516
|
} | undefined;
|
|
517
517
|
};
|
|
518
518
|
schemaVersion: 1;
|
|
@@ -531,9 +531,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
531
531
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
532
532
|
providerError?: {
|
|
533
533
|
provider: string;
|
|
534
|
-
status?: number | undefined;
|
|
535
534
|
code?: string | undefined;
|
|
536
535
|
message?: string | undefined;
|
|
536
|
+
status?: number | undefined;
|
|
537
537
|
} | undefined;
|
|
538
538
|
};
|
|
539
539
|
schemaVersion: 1;
|
|
@@ -715,13 +715,13 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
715
715
|
/** Exact deployment whose metering produced these partial units. */
|
|
716
716
|
deploymentId: z.ZodString;
|
|
717
717
|
units: z.ZodArray<z.ZodObject<{
|
|
718
|
-
unit: z.ZodEnum<["input_tokens", "cached_input_tokens", "output_tokens", "reasoning_tokens", "requests", "images", "audio_input_milliseconds", "audio_output_milliseconds", "video_milliseconds", "characters", "embeddings", "audio_input_tokens", "cached_audio_input_tokens", "audio_output_tokens", "session_milliseconds"]>;
|
|
718
|
+
unit: z.ZodEnum<["input_tokens", "cached_input_tokens", "output_tokens", "reasoning_tokens", "requests", "images", "audio_input_milliseconds", "audio_output_milliseconds", "video_milliseconds", "characters", "embeddings", "audio_input_tokens", "cached_audio_input_tokens", "audio_output_tokens", "session_milliseconds", "input_transcription_milliseconds"]>;
|
|
719
719
|
quantity: z.ZodNumber;
|
|
720
720
|
}, "strict", z.ZodTypeAny, {
|
|
721
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
721
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
722
722
|
quantity: number;
|
|
723
723
|
}, {
|
|
724
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
724
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
725
725
|
quantity: number;
|
|
726
726
|
}>, "many">;
|
|
727
727
|
usageSource: z.ZodEnum<["provider_reported", "oxy_measured", "estimated"]>;
|
|
@@ -731,7 +731,7 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
731
731
|
requestId: string;
|
|
732
732
|
deploymentId: string;
|
|
733
733
|
units: {
|
|
734
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
734
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
735
735
|
quantity: number;
|
|
736
736
|
}[];
|
|
737
737
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
@@ -742,7 +742,7 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
742
742
|
requestId: string;
|
|
743
743
|
deploymentId: string;
|
|
744
744
|
units: {
|
|
745
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
745
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
746
746
|
quantity: number;
|
|
747
747
|
}[];
|
|
748
748
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
@@ -863,14 +863,14 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
863
863
|
message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
864
864
|
}, "strict", z.ZodTypeAny, {
|
|
865
865
|
provider: string;
|
|
866
|
-
status?: number | undefined;
|
|
867
866
|
code?: string | undefined;
|
|
868
867
|
message?: string | undefined;
|
|
868
|
+
status?: number | undefined;
|
|
869
869
|
}, {
|
|
870
870
|
provider: string;
|
|
871
|
-
status?: number | undefined;
|
|
872
871
|
code?: string | undefined;
|
|
873
872
|
message?: string | undefined;
|
|
873
|
+
status?: number | undefined;
|
|
874
874
|
}>>;
|
|
875
875
|
}, "strip", z.ZodTypeAny, {
|
|
876
876
|
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";
|
|
@@ -883,9 +883,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
883
883
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
884
884
|
providerError?: {
|
|
885
885
|
provider: string;
|
|
886
|
-
status?: number | undefined;
|
|
887
886
|
code?: string | undefined;
|
|
888
887
|
message?: string | undefined;
|
|
888
|
+
status?: number | undefined;
|
|
889
889
|
} | undefined;
|
|
890
890
|
}, {
|
|
891
891
|
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";
|
|
@@ -898,9 +898,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
898
898
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
899
899
|
providerError?: {
|
|
900
900
|
provider: string;
|
|
901
|
-
status?: number | undefined;
|
|
902
901
|
code?: string | undefined;
|
|
903
902
|
message?: string | undefined;
|
|
903
|
+
status?: number | undefined;
|
|
904
904
|
} | undefined;
|
|
905
905
|
}>, {
|
|
906
906
|
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";
|
|
@@ -913,9 +913,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
913
913
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
914
914
|
providerError?: {
|
|
915
915
|
provider: string;
|
|
916
|
-
status?: number | undefined;
|
|
917
916
|
code?: string | undefined;
|
|
918
917
|
message?: string | undefined;
|
|
918
|
+
status?: number | undefined;
|
|
919
919
|
} | undefined;
|
|
920
920
|
}, {
|
|
921
921
|
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";
|
|
@@ -928,9 +928,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
928
928
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
929
929
|
providerError?: {
|
|
930
930
|
provider: string;
|
|
931
|
-
status?: number | undefined;
|
|
932
931
|
code?: string | undefined;
|
|
933
932
|
message?: string | undefined;
|
|
933
|
+
status?: number | undefined;
|
|
934
934
|
} | undefined;
|
|
935
935
|
}>;
|
|
936
936
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -946,9 +946,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
946
946
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
947
947
|
providerError?: {
|
|
948
948
|
provider: string;
|
|
949
|
-
status?: number | undefined;
|
|
950
949
|
code?: string | undefined;
|
|
951
950
|
message?: string | undefined;
|
|
951
|
+
status?: number | undefined;
|
|
952
952
|
} | undefined;
|
|
953
953
|
};
|
|
954
954
|
schemaVersion: 1;
|
|
@@ -967,9 +967,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
967
967
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
968
968
|
providerError?: {
|
|
969
969
|
provider: string;
|
|
970
|
-
status?: number | undefined;
|
|
971
970
|
code?: string | undefined;
|
|
972
971
|
message?: string | undefined;
|
|
972
|
+
status?: number | undefined;
|
|
973
973
|
} | undefined;
|
|
974
974
|
};
|
|
975
975
|
schemaVersion: 1;
|