@oxy.so/contracts 1.1.1 → 1.3.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/identity.js +3 -2
- package/dist/cjs/identityMove.js +156 -0
- package/dist/cjs/identityProof.js +164 -0
- package/dist/cjs/identityRecovery.js +51 -0
- package/dist/cjs/index.js +75 -19
- package/dist/cjs/inference/catalogue.js +7 -6
- package/dist/cjs/inference/identifiers.js +3 -1
- package/dist/cjs/inference/providerConnection.js +1 -1
- package/dist/cjs/inference/request.js +15 -1
- package/dist/cjs/inference/streamEvents.js +24 -2
- package/dist/cjs/inference/version.js +1 -1
- package/dist/cjs/userResponse.js +82 -1
- package/dist/cjs/username.js +70 -2
- package/dist/cjs/webIdentityCarrier.js +181 -0
- package/dist/cjs/webauthn.js +14 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/identity.js +3 -2
- package/dist/esm/identityMove.js +148 -0
- package/dist/esm/identityProof.js +159 -0
- package/dist/esm/identityRecovery.js +48 -0
- package/dist/esm/index.js +16 -7
- package/dist/esm/inference/catalogue.js +7 -6
- package/dist/esm/inference/identifiers.js +2 -0
- package/dist/esm/inference/providerConnection.js +2 -2
- package/dist/esm/inference/request.js +14 -0
- package/dist/esm/inference/streamEvents.js +24 -2
- package/dist/esm/inference/version.js +1 -1
- package/dist/esm/userResponse.js +81 -0
- package/dist/esm/username.js +69 -1
- package/dist/esm/webIdentityCarrier.js +178 -0
- package/dist/esm/webauthn.js +14 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountGraph.d.ts +7 -7
- package/dist/types/agency.d.ts +24 -24
- package/dist/types/browserHub.d.ts +16 -16
- package/dist/types/deviceDirectory.d.ts +28 -28
- package/dist/types/externalIdentity.d.ts +21 -7
- package/dist/types/identity.d.ts +3 -2
- package/dist/types/identityMove.d.ts +185 -0
- package/dist/types/identityProof.d.ts +156 -0
- package/dist/types/identityRecovery.d.ts +246 -0
- package/dist/types/index.d.ts +14 -8
- package/dist/types/inference/catalogue.d.ts +21 -20
- package/dist/types/inference/embeddings.d.ts +12 -12
- package/dist/types/inference/errors.d.ts +4 -4
- package/dist/types/inference/identifiers.d.ts +2 -0
- package/dist/types/inference/inbox.d.ts +6 -6
- package/dist/types/inference/providerConnection.d.ts +40 -40
- package/dist/types/inference/request.d.ts +84 -36
- package/dist/types/inference/streamEvents.d.ts +69 -13
- package/dist/types/inference/usage.d.ts +8 -8
- package/dist/types/inference/version.d.ts +1 -1
- package/dist/types/keyRotation.d.ts +2 -2
- package/dist/types/oauth.d.ts +30 -30
- package/dist/types/sessionStatus.d.ts +6 -6
- package/dist/types/transparency.d.ts +10 -10
- package/dist/types/userResponse.d.ts +386 -18
- package/dist/types/username.d.ts +25 -2
- package/dist/types/webIdentityCarrier.d.ts +1130 -0
- package/dist/types/webauthn.d.ts +208 -0
- package/package.json +1 -1
- package/dist/cjs/devicePairing.js +0 -138
- package/dist/esm/devicePairing.js +0 -135
- package/dist/types/devicePairing.d.ts +0 -130
|
@@ -490,7 +490,7 @@ export declare const inferenceMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
490
490
|
type: "refusal";
|
|
491
491
|
text: string;
|
|
492
492
|
})[];
|
|
493
|
-
role: "
|
|
493
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
494
494
|
name?: string | undefined;
|
|
495
495
|
toolCallId?: string | undefined;
|
|
496
496
|
toolCalls?: {
|
|
@@ -538,7 +538,7 @@ export declare const inferenceMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
538
538
|
type: "refusal";
|
|
539
539
|
text: string;
|
|
540
540
|
})[];
|
|
541
|
-
role: "
|
|
541
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
542
542
|
name?: string | undefined;
|
|
543
543
|
toolCallId?: string | undefined;
|
|
544
544
|
toolCalls?: {
|
|
@@ -586,7 +586,7 @@ export declare const inferenceMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
586
586
|
type: "refusal";
|
|
587
587
|
text: string;
|
|
588
588
|
})[];
|
|
589
|
-
role: "
|
|
589
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
590
590
|
name?: string | undefined;
|
|
591
591
|
toolCallId?: string | undefined;
|
|
592
592
|
toolCalls?: {
|
|
@@ -634,7 +634,7 @@ export declare const inferenceMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
634
634
|
type: "refusal";
|
|
635
635
|
text: string;
|
|
636
636
|
})[];
|
|
637
|
-
role: "
|
|
637
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
638
638
|
name?: string | undefined;
|
|
639
639
|
toolCallId?: string | undefined;
|
|
640
640
|
toolCalls?: {
|
|
@@ -871,7 +871,7 @@ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<"format", [z.
|
|
|
871
871
|
type: "refusal";
|
|
872
872
|
text: string;
|
|
873
873
|
})[];
|
|
874
|
-
role: "
|
|
874
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
875
875
|
name?: string | undefined;
|
|
876
876
|
toolCallId?: string | undefined;
|
|
877
877
|
toolCalls?: {
|
|
@@ -919,7 +919,7 @@ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<"format", [z.
|
|
|
919
919
|
type: "refusal";
|
|
920
920
|
text: string;
|
|
921
921
|
})[];
|
|
922
|
-
role: "
|
|
922
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
923
923
|
name?: string | undefined;
|
|
924
924
|
toolCallId?: string | undefined;
|
|
925
925
|
toolCalls?: {
|
|
@@ -967,7 +967,7 @@ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<"format", [z.
|
|
|
967
967
|
type: "refusal";
|
|
968
968
|
text: string;
|
|
969
969
|
})[];
|
|
970
|
-
role: "
|
|
970
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
971
971
|
name?: string | undefined;
|
|
972
972
|
toolCallId?: string | undefined;
|
|
973
973
|
toolCalls?: {
|
|
@@ -1015,7 +1015,7 @@ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<"format", [z.
|
|
|
1015
1015
|
type: "refusal";
|
|
1016
1016
|
text: string;
|
|
1017
1017
|
})[];
|
|
1018
|
-
role: "
|
|
1018
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
1019
1019
|
name?: string | undefined;
|
|
1020
1020
|
toolCallId?: string | undefined;
|
|
1021
1021
|
toolCalls?: {
|
|
@@ -1066,7 +1066,7 @@ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<"format", [z.
|
|
|
1066
1066
|
type: "refusal";
|
|
1067
1067
|
text: string;
|
|
1068
1068
|
})[];
|
|
1069
|
-
role: "
|
|
1069
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
1070
1070
|
name?: string | undefined;
|
|
1071
1071
|
toolCallId?: string | undefined;
|
|
1072
1072
|
toolCalls?: {
|
|
@@ -1117,7 +1117,7 @@ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<"format", [z.
|
|
|
1117
1117
|
type: "refusal";
|
|
1118
1118
|
text: string;
|
|
1119
1119
|
})[];
|
|
1120
|
-
role: "
|
|
1120
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
1121
1121
|
name?: string | undefined;
|
|
1122
1122
|
toolCallId?: string | undefined;
|
|
1123
1123
|
toolCalls?: {
|
|
@@ -1272,6 +1272,21 @@ export declare const clientRequestMetadataSchema: z.ZodObject<{
|
|
|
1272
1272
|
clientRequestId?: string | undefined;
|
|
1273
1273
|
labels?: Record<string, string> | undefined;
|
|
1274
1274
|
}>;
|
|
1275
|
+
/** Parameters for text-to-speech, preserved in the signed request. */
|
|
1276
|
+
export declare const inferenceSpeechParametersSchema: z.ZodObject<{
|
|
1277
|
+
voice: z.ZodString;
|
|
1278
|
+
responseFormat: z.ZodEnum<["mp3", "opus", "aac", "flac", "wav", "pcm"]>;
|
|
1279
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
1280
|
+
}, "strict", z.ZodTypeAny, {
|
|
1281
|
+
voice: string;
|
|
1282
|
+
responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
|
|
1283
|
+
speed?: number | undefined;
|
|
1284
|
+
}, {
|
|
1285
|
+
voice: string;
|
|
1286
|
+
responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
|
|
1287
|
+
speed?: number | undefined;
|
|
1288
|
+
}>;
|
|
1289
|
+
export type InferenceSpeechParameters = z.infer<typeof inferenceSpeechParametersSchema>;
|
|
1275
1290
|
/**
|
|
1276
1291
|
* The canonical internal request Oxy forwards to the data plane.
|
|
1277
1292
|
*
|
|
@@ -1583,7 +1598,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1583
1598
|
type: "refusal";
|
|
1584
1599
|
text: string;
|
|
1585
1600
|
})[];
|
|
1586
|
-
role: "
|
|
1601
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
1587
1602
|
name?: string | undefined;
|
|
1588
1603
|
toolCallId?: string | undefined;
|
|
1589
1604
|
toolCalls?: {
|
|
@@ -1631,7 +1646,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1631
1646
|
type: "refusal";
|
|
1632
1647
|
text: string;
|
|
1633
1648
|
})[];
|
|
1634
|
-
role: "
|
|
1649
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
1635
1650
|
name?: string | undefined;
|
|
1636
1651
|
toolCallId?: string | undefined;
|
|
1637
1652
|
toolCalls?: {
|
|
@@ -1679,7 +1694,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1679
1694
|
type: "refusal";
|
|
1680
1695
|
text: string;
|
|
1681
1696
|
})[];
|
|
1682
|
-
role: "
|
|
1697
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
1683
1698
|
name?: string | undefined;
|
|
1684
1699
|
toolCallId?: string | undefined;
|
|
1685
1700
|
toolCalls?: {
|
|
@@ -1727,7 +1742,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1727
1742
|
type: "refusal";
|
|
1728
1743
|
text: string;
|
|
1729
1744
|
})[];
|
|
1730
|
-
role: "
|
|
1745
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
1731
1746
|
name?: string | undefined;
|
|
1732
1747
|
toolCallId?: string | undefined;
|
|
1733
1748
|
toolCalls?: {
|
|
@@ -1778,7 +1793,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1778
1793
|
type: "refusal";
|
|
1779
1794
|
text: string;
|
|
1780
1795
|
})[];
|
|
1781
|
-
role: "
|
|
1796
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
1782
1797
|
name?: string | undefined;
|
|
1783
1798
|
toolCallId?: string | undefined;
|
|
1784
1799
|
toolCalls?: {
|
|
@@ -1829,7 +1844,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1829
1844
|
type: "refusal";
|
|
1830
1845
|
text: string;
|
|
1831
1846
|
})[];
|
|
1832
|
-
role: "
|
|
1847
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
1833
1848
|
name?: string | undefined;
|
|
1834
1849
|
toolCallId?: string | undefined;
|
|
1835
1850
|
toolCalls?: {
|
|
@@ -1885,6 +1900,19 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1885
1900
|
presencePenalty?: number | undefined;
|
|
1886
1901
|
stopSequences?: string[] | undefined;
|
|
1887
1902
|
}>;
|
|
1903
|
+
speech: z.ZodOptional<z.ZodObject<{
|
|
1904
|
+
voice: z.ZodString;
|
|
1905
|
+
responseFormat: z.ZodEnum<["mp3", "opus", "aac", "flac", "wav", "pcm"]>;
|
|
1906
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
1907
|
+
}, "strict", z.ZodTypeAny, {
|
|
1908
|
+
voice: string;
|
|
1909
|
+
responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
|
|
1910
|
+
speed?: number | undefined;
|
|
1911
|
+
}, {
|
|
1912
|
+
voice: string;
|
|
1913
|
+
responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
|
|
1914
|
+
speed?: number | undefined;
|
|
1915
|
+
}>>;
|
|
1888
1916
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1889
1917
|
type: z.ZodLiteral<"function">;
|
|
1890
1918
|
name: z.ZodString;
|
|
@@ -2249,7 +2277,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2249
2277
|
type: "refusal";
|
|
2250
2278
|
text: string;
|
|
2251
2279
|
})[];
|
|
2252
|
-
role: "
|
|
2280
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
2253
2281
|
name?: string | undefined;
|
|
2254
2282
|
toolCallId?: string | undefined;
|
|
2255
2283
|
toolCalls?: {
|
|
@@ -2281,10 +2309,6 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2281
2309
|
};
|
|
2282
2310
|
idempotencyKey?: string | undefined;
|
|
2283
2311
|
maxOutputTokens?: number | undefined;
|
|
2284
|
-
toolChoice?: "none" | "required" | "auto" | {
|
|
2285
|
-
type: "function";
|
|
2286
|
-
name: string;
|
|
2287
|
-
} | undefined;
|
|
2288
2312
|
responseFormat?: {
|
|
2289
2313
|
type: "text";
|
|
2290
2314
|
} | {
|
|
@@ -2295,6 +2319,15 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2295
2319
|
name: string;
|
|
2296
2320
|
strict: boolean;
|
|
2297
2321
|
} | undefined;
|
|
2322
|
+
speech?: {
|
|
2323
|
+
voice: string;
|
|
2324
|
+
responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
|
|
2325
|
+
speed?: number | undefined;
|
|
2326
|
+
} | undefined;
|
|
2327
|
+
toolChoice?: "none" | "required" | "auto" | {
|
|
2328
|
+
type: "function";
|
|
2329
|
+
name: string;
|
|
2330
|
+
} | undefined;
|
|
2298
2331
|
authorizedRoutes?: ({
|
|
2299
2332
|
provider: string;
|
|
2300
2333
|
modelReference: string;
|
|
@@ -2396,7 +2429,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2396
2429
|
type: "refusal";
|
|
2397
2430
|
text: string;
|
|
2398
2431
|
})[];
|
|
2399
|
-
role: "
|
|
2432
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
2400
2433
|
name?: string | undefined;
|
|
2401
2434
|
toolCallId?: string | undefined;
|
|
2402
2435
|
toolCalls?: {
|
|
@@ -2435,10 +2468,6 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2435
2468
|
}[] | undefined;
|
|
2436
2469
|
idempotencyKey?: string | undefined;
|
|
2437
2470
|
maxOutputTokens?: number | undefined;
|
|
2438
|
-
toolChoice?: "none" | "required" | "auto" | {
|
|
2439
|
-
type: "function";
|
|
2440
|
-
name: string;
|
|
2441
|
-
} | undefined;
|
|
2442
2471
|
responseFormat?: {
|
|
2443
2472
|
type: "text";
|
|
2444
2473
|
} | {
|
|
@@ -2449,6 +2478,15 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2449
2478
|
name: string;
|
|
2450
2479
|
strict: boolean;
|
|
2451
2480
|
} | undefined;
|
|
2481
|
+
speech?: {
|
|
2482
|
+
voice: string;
|
|
2483
|
+
responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
|
|
2484
|
+
speed?: number | undefined;
|
|
2485
|
+
} | undefined;
|
|
2486
|
+
toolChoice?: "none" | "required" | "auto" | {
|
|
2487
|
+
type: "function";
|
|
2488
|
+
name: string;
|
|
2489
|
+
} | undefined;
|
|
2452
2490
|
authorizedRoutes?: ({
|
|
2453
2491
|
provider: string;
|
|
2454
2492
|
modelReference: string;
|
|
@@ -2557,7 +2595,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2557
2595
|
type: "refusal";
|
|
2558
2596
|
text: string;
|
|
2559
2597
|
})[];
|
|
2560
|
-
role: "
|
|
2598
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
2561
2599
|
name?: string | undefined;
|
|
2562
2600
|
toolCallId?: string | undefined;
|
|
2563
2601
|
toolCalls?: {
|
|
@@ -2589,10 +2627,6 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2589
2627
|
};
|
|
2590
2628
|
idempotencyKey?: string | undefined;
|
|
2591
2629
|
maxOutputTokens?: number | undefined;
|
|
2592
|
-
toolChoice?: "none" | "required" | "auto" | {
|
|
2593
|
-
type: "function";
|
|
2594
|
-
name: string;
|
|
2595
|
-
} | undefined;
|
|
2596
2630
|
responseFormat?: {
|
|
2597
2631
|
type: "text";
|
|
2598
2632
|
} | {
|
|
@@ -2603,6 +2637,15 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2603
2637
|
name: string;
|
|
2604
2638
|
strict: boolean;
|
|
2605
2639
|
} | undefined;
|
|
2640
|
+
speech?: {
|
|
2641
|
+
voice: string;
|
|
2642
|
+
responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
|
|
2643
|
+
speed?: number | undefined;
|
|
2644
|
+
} | undefined;
|
|
2645
|
+
toolChoice?: "none" | "required" | "auto" | {
|
|
2646
|
+
type: "function";
|
|
2647
|
+
name: string;
|
|
2648
|
+
} | undefined;
|
|
2606
2649
|
authorizedRoutes?: ({
|
|
2607
2650
|
provider: string;
|
|
2608
2651
|
modelReference: string;
|
|
@@ -2704,7 +2747,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2704
2747
|
type: "refusal";
|
|
2705
2748
|
text: string;
|
|
2706
2749
|
})[];
|
|
2707
|
-
role: "
|
|
2750
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
2708
2751
|
name?: string | undefined;
|
|
2709
2752
|
toolCallId?: string | undefined;
|
|
2710
2753
|
toolCalls?: {
|
|
@@ -2743,10 +2786,6 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2743
2786
|
}[] | undefined;
|
|
2744
2787
|
idempotencyKey?: string | undefined;
|
|
2745
2788
|
maxOutputTokens?: number | undefined;
|
|
2746
|
-
toolChoice?: "none" | "required" | "auto" | {
|
|
2747
|
-
type: "function";
|
|
2748
|
-
name: string;
|
|
2749
|
-
} | undefined;
|
|
2750
2789
|
responseFormat?: {
|
|
2751
2790
|
type: "text";
|
|
2752
2791
|
} | {
|
|
@@ -2757,6 +2796,15 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2757
2796
|
name: string;
|
|
2758
2797
|
strict: boolean;
|
|
2759
2798
|
} | undefined;
|
|
2799
|
+
speech?: {
|
|
2800
|
+
voice: string;
|
|
2801
|
+
responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
|
|
2802
|
+
speed?: number | undefined;
|
|
2803
|
+
} | undefined;
|
|
2804
|
+
toolChoice?: "none" | "required" | "auto" | {
|
|
2805
|
+
type: "function";
|
|
2806
|
+
name: string;
|
|
2807
|
+
} | undefined;
|
|
2760
2808
|
authorizedRoutes?: ({
|
|
2761
2809
|
provider: string;
|
|
2762
2810
|
modelReference: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Normalized stream events — what the data plane emits and the Oxy edge
|
|
3
3
|
* forwards as SSE.
|
|
4
4
|
*
|
|
5
|
-
* One discriminated union,
|
|
5
|
+
* One discriminated union, eight shapes, all carrying `requestId` and a
|
|
6
6
|
* monotonic `sequence`. `requestId` is on EVERY event rather than only the
|
|
7
7
|
* first because a proxy that re-frames or a client that reconnects would
|
|
8
8
|
* otherwise be holding events it cannot attribute; `sequence` is what makes a
|
|
@@ -93,6 +93,37 @@ export declare const inferenceStreamDeltaEventSchema: z.ZodObject<{
|
|
|
93
93
|
sequence: number;
|
|
94
94
|
outputIndex: number;
|
|
95
95
|
}>;
|
|
96
|
+
/** The encodings an audio output may carry. */
|
|
97
|
+
export declare const inferenceAudioMediaTypeSchema: z.ZodEnum<["audio/mpeg", "audio/wav", "audio/ogg", "audio/aac", "audio/flac", "audio/pcm"]>;
|
|
98
|
+
export type InferenceAudioMediaType = z.infer<typeof inferenceAudioMediaTypeSchema>;
|
|
99
|
+
/** The most bytes one folded audio output may hold, at the edge and in the SDK. */
|
|
100
|
+
export declare const MAX_INFERENCE_AUDIO_BYTES: number;
|
|
101
|
+
/** A bounded, independently base64-encoded chunk of one audio output. */
|
|
102
|
+
export declare const inferenceStreamAudioEventSchema: z.ZodObject<{
|
|
103
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
104
|
+
type: z.ZodLiteral<"audio">;
|
|
105
|
+
requestId: z.ZodString;
|
|
106
|
+
sequence: z.ZodNumber;
|
|
107
|
+
outputIndex: z.ZodNumber;
|
|
108
|
+
mediaType: z.ZodEnum<["audio/mpeg", "audio/wav", "audio/ogg", "audio/aac", "audio/flac", "audio/pcm"]>;
|
|
109
|
+
data: z.ZodString;
|
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
|
111
|
+
type: "audio";
|
|
112
|
+
schemaVersion: 1;
|
|
113
|
+
data: string;
|
|
114
|
+
requestId: string;
|
|
115
|
+
mediaType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/aac" | "audio/flac" | "audio/pcm";
|
|
116
|
+
sequence: number;
|
|
117
|
+
outputIndex: number;
|
|
118
|
+
}, {
|
|
119
|
+
type: "audio";
|
|
120
|
+
schemaVersion: 1;
|
|
121
|
+
data: string;
|
|
122
|
+
requestId: string;
|
|
123
|
+
mediaType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/aac" | "audio/flac" | "audio/pcm";
|
|
124
|
+
sequence: number;
|
|
125
|
+
outputIndex: number;
|
|
126
|
+
}>;
|
|
96
127
|
/**
|
|
97
128
|
* A tool call being streamed.
|
|
98
129
|
*
|
|
@@ -400,7 +431,7 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
400
431
|
status?: number | undefined;
|
|
401
432
|
}>>;
|
|
402
433
|
}, "strip", z.ZodTypeAny, {
|
|
403
|
-
code: "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" | "
|
|
434
|
+
code: "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" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
404
435
|
message: string;
|
|
405
436
|
schemaVersion: 1;
|
|
406
437
|
requestId: string;
|
|
@@ -415,7 +446,7 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
415
446
|
status?: number | undefined;
|
|
416
447
|
} | undefined;
|
|
417
448
|
}, {
|
|
418
|
-
code: "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" | "
|
|
449
|
+
code: "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" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
419
450
|
message: string;
|
|
420
451
|
schemaVersion: 1;
|
|
421
452
|
requestId: string;
|
|
@@ -430,7 +461,7 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
430
461
|
status?: number | undefined;
|
|
431
462
|
} | undefined;
|
|
432
463
|
}>, {
|
|
433
|
-
code: "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" | "
|
|
464
|
+
code: "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" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
434
465
|
message: string;
|
|
435
466
|
schemaVersion: 1;
|
|
436
467
|
requestId: string;
|
|
@@ -445,7 +476,7 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
445
476
|
status?: number | undefined;
|
|
446
477
|
} | undefined;
|
|
447
478
|
}, {
|
|
448
|
-
code: "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" | "
|
|
479
|
+
code: "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" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
449
480
|
message: string;
|
|
450
481
|
schemaVersion: 1;
|
|
451
482
|
requestId: string;
|
|
@@ -465,7 +496,7 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
465
496
|
schemaVersion: 1;
|
|
466
497
|
requestId: string;
|
|
467
498
|
error: {
|
|
468
|
-
code: "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" | "
|
|
499
|
+
code: "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" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
469
500
|
message: string;
|
|
470
501
|
schemaVersion: 1;
|
|
471
502
|
requestId: string;
|
|
@@ -486,7 +517,7 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
486
517
|
schemaVersion: 1;
|
|
487
518
|
requestId: string;
|
|
488
519
|
error: {
|
|
489
|
-
code: "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" | "
|
|
520
|
+
code: "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" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
490
521
|
message: string;
|
|
491
522
|
schemaVersion: 1;
|
|
492
523
|
requestId: string;
|
|
@@ -610,6 +641,30 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
610
641
|
text: string;
|
|
611
642
|
sequence: number;
|
|
612
643
|
outputIndex: number;
|
|
644
|
+
}>, z.ZodObject<{
|
|
645
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
646
|
+
type: z.ZodLiteral<"audio">;
|
|
647
|
+
requestId: z.ZodString;
|
|
648
|
+
sequence: z.ZodNumber;
|
|
649
|
+
outputIndex: z.ZodNumber;
|
|
650
|
+
mediaType: z.ZodEnum<["audio/mpeg", "audio/wav", "audio/ogg", "audio/aac", "audio/flac", "audio/pcm"]>;
|
|
651
|
+
data: z.ZodString;
|
|
652
|
+
}, "strip", z.ZodTypeAny, {
|
|
653
|
+
type: "audio";
|
|
654
|
+
schemaVersion: 1;
|
|
655
|
+
data: string;
|
|
656
|
+
requestId: string;
|
|
657
|
+
mediaType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/aac" | "audio/flac" | "audio/pcm";
|
|
658
|
+
sequence: number;
|
|
659
|
+
outputIndex: number;
|
|
660
|
+
}, {
|
|
661
|
+
type: "audio";
|
|
662
|
+
schemaVersion: 1;
|
|
663
|
+
data: string;
|
|
664
|
+
requestId: string;
|
|
665
|
+
mediaType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/aac" | "audio/flac" | "audio/pcm";
|
|
666
|
+
sequence: number;
|
|
667
|
+
outputIndex: number;
|
|
613
668
|
}>, z.ZodObject<{
|
|
614
669
|
/** See `version.ts`: each stream event is a whole message on the wire. */
|
|
615
670
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -806,7 +861,7 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
806
861
|
status?: number | undefined;
|
|
807
862
|
}>>;
|
|
808
863
|
}, "strip", z.ZodTypeAny, {
|
|
809
|
-
code: "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" | "
|
|
864
|
+
code: "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" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
810
865
|
message: string;
|
|
811
866
|
schemaVersion: 1;
|
|
812
867
|
requestId: string;
|
|
@@ -821,7 +876,7 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
821
876
|
status?: number | undefined;
|
|
822
877
|
} | undefined;
|
|
823
878
|
}, {
|
|
824
|
-
code: "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" | "
|
|
879
|
+
code: "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" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
825
880
|
message: string;
|
|
826
881
|
schemaVersion: 1;
|
|
827
882
|
requestId: string;
|
|
@@ -836,7 +891,7 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
836
891
|
status?: number | undefined;
|
|
837
892
|
} | undefined;
|
|
838
893
|
}>, {
|
|
839
|
-
code: "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" | "
|
|
894
|
+
code: "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" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
840
895
|
message: string;
|
|
841
896
|
schemaVersion: 1;
|
|
842
897
|
requestId: string;
|
|
@@ -851,7 +906,7 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
851
906
|
status?: number | undefined;
|
|
852
907
|
} | undefined;
|
|
853
908
|
}, {
|
|
854
|
-
code: "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" | "
|
|
909
|
+
code: "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" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
855
910
|
message: string;
|
|
856
911
|
schemaVersion: 1;
|
|
857
912
|
requestId: string;
|
|
@@ -871,7 +926,7 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
871
926
|
schemaVersion: 1;
|
|
872
927
|
requestId: string;
|
|
873
928
|
error: {
|
|
874
|
-
code: "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" | "
|
|
929
|
+
code: "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" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
875
930
|
message: string;
|
|
876
931
|
schemaVersion: 1;
|
|
877
932
|
requestId: string;
|
|
@@ -892,7 +947,7 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
892
947
|
schemaVersion: 1;
|
|
893
948
|
requestId: string;
|
|
894
949
|
error: {
|
|
895
|
-
code: "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" | "
|
|
950
|
+
code: "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" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
896
951
|
message: string;
|
|
897
952
|
schemaVersion: 1;
|
|
898
953
|
requestId: string;
|
|
@@ -939,6 +994,7 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
939
994
|
}>]>;
|
|
940
995
|
export type InferenceStreamStartEvent = z.infer<typeof inferenceStreamStartEventSchema>;
|
|
941
996
|
export type InferenceStreamDeltaEvent = z.infer<typeof inferenceStreamDeltaEventSchema>;
|
|
997
|
+
export type InferenceStreamAudioEvent = z.infer<typeof inferenceStreamAudioEventSchema>;
|
|
942
998
|
export type InferenceStreamToolCallEvent = z.infer<typeof inferenceStreamToolCallEventSchema>;
|
|
943
999
|
export type InferenceStreamUsageEvent = z.infer<typeof inferenceStreamUsageEventSchema>;
|
|
944
1000
|
export type InferenceRouteSwitchDetail = z.infer<typeof inferenceRouteSwitchDetailSchema>;
|
|
@@ -490,7 +490,7 @@ export declare const normalizedUsageReportSchema: z.ZodEffects<z.ZodObject<{
|
|
|
490
490
|
}, "strip", z.ZodTypeAny, {
|
|
491
491
|
schemaVersion: 2;
|
|
492
492
|
requestId: string;
|
|
493
|
-
outcome: "failed" | "
|
|
493
|
+
outcome: "failed" | "completed" | "cancelled" | "partial";
|
|
494
494
|
resolvedModelReference: string;
|
|
495
495
|
servingProvider: string;
|
|
496
496
|
attribution: {
|
|
@@ -521,7 +521,7 @@ export declare const normalizedUsageReportSchema: z.ZodEffects<z.ZodObject<{
|
|
|
521
521
|
}, {
|
|
522
522
|
schemaVersion: 2;
|
|
523
523
|
requestId: string;
|
|
524
|
-
outcome: "failed" | "
|
|
524
|
+
outcome: "failed" | "completed" | "cancelled" | "partial";
|
|
525
525
|
resolvedModelReference: string;
|
|
526
526
|
servingProvider: string;
|
|
527
527
|
attribution: {
|
|
@@ -552,7 +552,7 @@ export declare const normalizedUsageReportSchema: z.ZodEffects<z.ZodObject<{
|
|
|
552
552
|
}>, {
|
|
553
553
|
schemaVersion: 2;
|
|
554
554
|
requestId: string;
|
|
555
|
-
outcome: "failed" | "
|
|
555
|
+
outcome: "failed" | "completed" | "cancelled" | "partial";
|
|
556
556
|
resolvedModelReference: string;
|
|
557
557
|
servingProvider: string;
|
|
558
558
|
attribution: {
|
|
@@ -583,7 +583,7 @@ export declare const normalizedUsageReportSchema: z.ZodEffects<z.ZodObject<{
|
|
|
583
583
|
}, {
|
|
584
584
|
schemaVersion: 2;
|
|
585
585
|
requestId: string;
|
|
586
|
-
outcome: "failed" | "
|
|
586
|
+
outcome: "failed" | "completed" | "cancelled" | "partial";
|
|
587
587
|
resolvedModelReference: string;
|
|
588
588
|
servingProvider: string;
|
|
589
589
|
attribution: {
|
|
@@ -753,7 +753,7 @@ export declare const usageReceiptSchema: z.ZodEffects<z.ZodObject<{
|
|
|
753
753
|
settledAt: string;
|
|
754
754
|
billedAmount: string & z.BRAND<"ExactDecimal">;
|
|
755
755
|
currency: string;
|
|
756
|
-
outcome: "failed" | "
|
|
756
|
+
outcome: "failed" | "completed" | "cancelled" | "partial";
|
|
757
757
|
resolvedModelReference: string;
|
|
758
758
|
servingProvider: string;
|
|
759
759
|
platformFeeOnly: boolean;
|
|
@@ -794,7 +794,7 @@ export declare const usageReceiptSchema: z.ZodEffects<z.ZodObject<{
|
|
|
794
794
|
settledAt: string;
|
|
795
795
|
billedAmount: string;
|
|
796
796
|
currency: string;
|
|
797
|
-
outcome: "failed" | "
|
|
797
|
+
outcome: "failed" | "completed" | "cancelled" | "partial";
|
|
798
798
|
resolvedModelReference: string;
|
|
799
799
|
servingProvider: string;
|
|
800
800
|
platformFeeOnly: boolean;
|
|
@@ -835,7 +835,7 @@ export declare const usageReceiptSchema: z.ZodEffects<z.ZodObject<{
|
|
|
835
835
|
settledAt: string;
|
|
836
836
|
billedAmount: string & z.BRAND<"ExactDecimal">;
|
|
837
837
|
currency: string;
|
|
838
|
-
outcome: "failed" | "
|
|
838
|
+
outcome: "failed" | "completed" | "cancelled" | "partial";
|
|
839
839
|
resolvedModelReference: string;
|
|
840
840
|
servingProvider: string;
|
|
841
841
|
platformFeeOnly: boolean;
|
|
@@ -876,7 +876,7 @@ export declare const usageReceiptSchema: z.ZodEffects<z.ZodObject<{
|
|
|
876
876
|
settledAt: string;
|
|
877
877
|
billedAmount: string;
|
|
878
878
|
currency: string;
|
|
879
|
-
outcome: "failed" | "
|
|
879
|
+
outcome: "failed" | "completed" | "cancelled" | "partial";
|
|
880
880
|
resolvedModelReference: string;
|
|
881
881
|
servingProvider: string;
|
|
882
882
|
platformFeeOnly: boolean;
|
|
@@ -99,4 +99,4 @@
|
|
|
99
99
|
* change to, say, the catalogue reject every in-flight inference request; the
|
|
100
100
|
* per-shape `schemaVersion` is what a message is validated against.
|
|
101
101
|
*/
|
|
102
|
-
export declare const INFERENCE_CONTRACT_VERSION = "
|
|
102
|
+
export declare const INFERENCE_CONTRACT_VERSION = "3.0.0";
|
|
@@ -72,17 +72,17 @@ export declare const rotateKeyCompleteRequestSchema: z.ZodObject<{
|
|
|
72
72
|
signOutEverywhere: z.ZodOptional<z.ZodBoolean>;
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
74
|
signature: string;
|
|
75
|
-
timestamp: number;
|
|
76
75
|
challenge: string;
|
|
77
76
|
newPublicKey: string;
|
|
78
77
|
newKeyProof: string;
|
|
78
|
+
timestamp: number;
|
|
79
79
|
signOutEverywhere?: boolean | undefined;
|
|
80
80
|
}, {
|
|
81
81
|
signature: string;
|
|
82
|
-
timestamp: number;
|
|
83
82
|
challenge: string;
|
|
84
83
|
newPublicKey: string;
|
|
85
84
|
newKeyProof: string;
|
|
85
|
+
timestamp: number;
|
|
86
86
|
signOutEverywhere?: boolean | undefined;
|
|
87
87
|
}>;
|
|
88
88
|
export type RotateKeyCompleteRequest = z.infer<typeof rotateKeyCompleteRequestSchema>;
|