@oxy.so/contracts 4.25.0 → 5.0.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/index.js +1 -35
- package/dist/cjs/inference/catalogue.js +2 -5
- package/dist/cjs/inference/request.js +5 -79
- package/dist/cjs/inference/version.js +1 -1
- package/dist/esm/index.js +0 -5
- package/dist/esm/inference/catalogue.js +0 -3
- package/dist/esm/inference/request.js +4 -78
- package/dist/esm/inference/version.js +1 -1
- package/dist/types/index.d.ts +0 -10
- package/dist/types/inference/catalogue.d.ts +4 -194
- package/dist/types/inference/economics.d.ts +2 -2
- package/dist/types/inference/realtime.d.ts +88 -88
- package/dist/types/inference/request.d.ts +28 -5055
- package/dist/types/inference/routingPolicy.d.ts +16 -16
- package/dist/types/inference/streamEvents.d.ts +8 -8
- package/dist/types/inference/usage.d.ts +4 -4
- package/dist/types/inference/version.d.ts +1 -1
- package/dist/types/safety.d.ts +10 -10
- package/package.json +1 -1
- package/dist/cjs/inference/decisions.js +0 -305
- package/dist/cjs/inference/privateAutoExecution.js +0 -153
- package/dist/cjs/inference/scopedExecution.js +0 -87
- package/dist/esm/inference/decisions.js +0 -299
- package/dist/esm/inference/privateAutoExecution.js +0 -149
- package/dist/esm/inference/scopedExecution.js +0 -83
- package/dist/types/inference/decisions.d.ts +0 -1853
- package/dist/types/inference/privateAutoExecution.d.ts +0 -694
- package/dist/types/inference/scopedExecution.d.ts +0 -202
|
@@ -329,13 +329,13 @@ export declare const realtimeSessionConfigSchema: z.ZodObject<{
|
|
|
329
329
|
} | undefined;
|
|
330
330
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
331
331
|
maxOutputTokens?: number | undefined;
|
|
332
|
-
instructions?: string | undefined;
|
|
333
332
|
temperature?: number | undefined;
|
|
334
333
|
voice?: string | undefined;
|
|
335
334
|
toolChoice?: "none" | "required" | "auto" | {
|
|
336
335
|
type: "function";
|
|
337
336
|
name: string;
|
|
338
337
|
} | undefined;
|
|
338
|
+
instructions?: string | undefined;
|
|
339
339
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
340
340
|
inputAudioTranscription?: {
|
|
341
341
|
language?: string | undefined;
|
|
@@ -370,13 +370,13 @@ export declare const realtimeSessionConfigSchema: z.ZodObject<{
|
|
|
370
370
|
} | undefined;
|
|
371
371
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
372
372
|
maxOutputTokens?: number | undefined;
|
|
373
|
-
instructions?: string | undefined;
|
|
374
373
|
temperature?: number | undefined;
|
|
375
374
|
voice?: string | undefined;
|
|
376
375
|
toolChoice?: "none" | "required" | "auto" | {
|
|
377
376
|
type: "function";
|
|
378
377
|
name: string;
|
|
379
378
|
} | undefined;
|
|
379
|
+
instructions?: string | undefined;
|
|
380
380
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
381
381
|
inputAudioTranscription?: {
|
|
382
382
|
language?: string | undefined;
|
|
@@ -489,12 +489,12 @@ export declare const realtimeSessionConfigUpdateSchema: z.ZodEffects<z.ZodObject
|
|
|
489
489
|
}[] | undefined;
|
|
490
490
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
491
491
|
maxOutputTokens?: number | undefined;
|
|
492
|
-
instructions?: string | undefined;
|
|
493
492
|
temperature?: number | undefined;
|
|
494
493
|
toolChoice?: "none" | "required" | "auto" | {
|
|
495
494
|
type: "function";
|
|
496
495
|
name: string;
|
|
497
496
|
} | undefined;
|
|
497
|
+
instructions?: string | undefined;
|
|
498
498
|
turnDetection?: {
|
|
499
499
|
type: "none";
|
|
500
500
|
} | {
|
|
@@ -524,12 +524,12 @@ export declare const realtimeSessionConfigUpdateSchema: z.ZodEffects<z.ZodObject
|
|
|
524
524
|
}[] | undefined;
|
|
525
525
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
526
526
|
maxOutputTokens?: number | undefined;
|
|
527
|
-
instructions?: string | undefined;
|
|
528
527
|
temperature?: number | undefined;
|
|
529
528
|
toolChoice?: "none" | "required" | "auto" | {
|
|
530
529
|
type: "function";
|
|
531
530
|
name: string;
|
|
532
531
|
} | undefined;
|
|
532
|
+
instructions?: string | undefined;
|
|
533
533
|
turnDetection?: {
|
|
534
534
|
type: "none";
|
|
535
535
|
} | {
|
|
@@ -559,12 +559,12 @@ export declare const realtimeSessionConfigUpdateSchema: z.ZodEffects<z.ZodObject
|
|
|
559
559
|
}[] | undefined;
|
|
560
560
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
561
561
|
maxOutputTokens?: number | undefined;
|
|
562
|
-
instructions?: string | undefined;
|
|
563
562
|
temperature?: number | undefined;
|
|
564
563
|
toolChoice?: "none" | "required" | "auto" | {
|
|
565
564
|
type: "function";
|
|
566
565
|
name: string;
|
|
567
566
|
} | undefined;
|
|
567
|
+
instructions?: string | undefined;
|
|
568
568
|
turnDetection?: {
|
|
569
569
|
type: "none";
|
|
570
570
|
} | {
|
|
@@ -594,12 +594,12 @@ export declare const realtimeSessionConfigUpdateSchema: z.ZodEffects<z.ZodObject
|
|
|
594
594
|
}[] | undefined;
|
|
595
595
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
596
596
|
maxOutputTokens?: number | undefined;
|
|
597
|
-
instructions?: string | undefined;
|
|
598
597
|
temperature?: number | undefined;
|
|
599
598
|
toolChoice?: "none" | "required" | "auto" | {
|
|
600
599
|
type: "function";
|
|
601
600
|
name: string;
|
|
602
601
|
} | undefined;
|
|
602
|
+
instructions?: string | undefined;
|
|
603
603
|
turnDetection?: {
|
|
604
604
|
type: "none";
|
|
605
605
|
} | {
|
|
@@ -864,13 +864,13 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
864
864
|
} | undefined;
|
|
865
865
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
866
866
|
maxOutputTokens?: number | undefined;
|
|
867
|
-
instructions?: string | undefined;
|
|
868
867
|
temperature?: number | undefined;
|
|
869
868
|
voice?: string | undefined;
|
|
870
869
|
toolChoice?: "none" | "required" | "auto" | {
|
|
871
870
|
type: "function";
|
|
872
871
|
name: string;
|
|
873
872
|
} | undefined;
|
|
873
|
+
instructions?: string | undefined;
|
|
874
874
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
875
875
|
inputAudioTranscription?: {
|
|
876
876
|
language?: string | undefined;
|
|
@@ -905,13 +905,13 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
905
905
|
} | undefined;
|
|
906
906
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
907
907
|
maxOutputTokens?: number | undefined;
|
|
908
|
-
instructions?: string | undefined;
|
|
909
908
|
temperature?: number | undefined;
|
|
910
909
|
voice?: string | undefined;
|
|
911
910
|
toolChoice?: "none" | "required" | "auto" | {
|
|
912
911
|
type: "function";
|
|
913
912
|
name: string;
|
|
914
913
|
} | undefined;
|
|
914
|
+
instructions?: string | undefined;
|
|
915
915
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
916
916
|
inputAudioTranscription?: {
|
|
917
917
|
language?: string | undefined;
|
|
@@ -994,8 +994,8 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
994
994
|
}, "strict", z.ZodTypeAny, {
|
|
995
995
|
provider: string;
|
|
996
996
|
modelReference: string;
|
|
997
|
-
deploymentId: string;
|
|
998
997
|
regions: string[];
|
|
998
|
+
deploymentId: string;
|
|
999
999
|
substitution: "same_model";
|
|
1000
1000
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1001
1001
|
customerProviderCredential?: {
|
|
@@ -1008,8 +1008,8 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1008
1008
|
}, {
|
|
1009
1009
|
provider: string;
|
|
1010
1010
|
modelReference: string;
|
|
1011
|
-
deploymentId: string;
|
|
1012
1011
|
regions: string[];
|
|
1012
|
+
deploymentId: string;
|
|
1013
1013
|
substitution: "same_model";
|
|
1014
1014
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1015
1015
|
customerProviderCredential?: {
|
|
@@ -1049,8 +1049,8 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1049
1049
|
}, "strict", z.ZodTypeAny, {
|
|
1050
1050
|
provider: string;
|
|
1051
1051
|
modelReference: string;
|
|
1052
|
-
deploymentId: string;
|
|
1053
1052
|
regions: string[];
|
|
1053
|
+
deploymentId: string;
|
|
1054
1054
|
substitution: "cross_model";
|
|
1055
1055
|
authorizedByPolicy: true;
|
|
1056
1056
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
@@ -1064,8 +1064,8 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1064
1064
|
}, {
|
|
1065
1065
|
provider: string;
|
|
1066
1066
|
modelReference: string;
|
|
1067
|
-
deploymentId: string;
|
|
1068
1067
|
regions: string[];
|
|
1068
|
+
deploymentId: string;
|
|
1069
1069
|
substitution: "cross_model";
|
|
1070
1070
|
authorizedByPolicy: true;
|
|
1071
1071
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
@@ -1079,8 +1079,8 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1079
1079
|
}>]>, {
|
|
1080
1080
|
provider: string;
|
|
1081
1081
|
modelReference: string;
|
|
1082
|
-
deploymentId: string;
|
|
1083
1082
|
regions: string[];
|
|
1083
|
+
deploymentId: string;
|
|
1084
1084
|
substitution: "same_model";
|
|
1085
1085
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1086
1086
|
customerProviderCredential?: {
|
|
@@ -1093,8 +1093,8 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1093
1093
|
} | {
|
|
1094
1094
|
provider: string;
|
|
1095
1095
|
modelReference: string;
|
|
1096
|
-
deploymentId: string;
|
|
1097
1096
|
regions: string[];
|
|
1097
|
+
deploymentId: string;
|
|
1098
1098
|
substitution: "cross_model";
|
|
1099
1099
|
authorizedByPolicy: true;
|
|
1100
1100
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
@@ -1108,8 +1108,8 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1108
1108
|
}, {
|
|
1109
1109
|
provider: string;
|
|
1110
1110
|
modelReference: string;
|
|
1111
|
-
deploymentId: string;
|
|
1112
1111
|
regions: string[];
|
|
1112
|
+
deploymentId: string;
|
|
1113
1113
|
substitution: "same_model";
|
|
1114
1114
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1115
1115
|
customerProviderCredential?: {
|
|
@@ -1122,8 +1122,8 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1122
1122
|
} | {
|
|
1123
1123
|
provider: string;
|
|
1124
1124
|
modelReference: string;
|
|
1125
|
-
deploymentId: string;
|
|
1126
1125
|
regions: string[];
|
|
1126
|
+
deploymentId: string;
|
|
1127
1127
|
substitution: "cross_model";
|
|
1128
1128
|
authorizedByPolicy: true;
|
|
1129
1129
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
@@ -1173,8 +1173,8 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1173
1173
|
authorizedRoutes: ({
|
|
1174
1174
|
provider: string;
|
|
1175
1175
|
modelReference: string;
|
|
1176
|
-
deploymentId: string;
|
|
1177
1176
|
regions: string[];
|
|
1177
|
+
deploymentId: string;
|
|
1178
1178
|
substitution: "same_model";
|
|
1179
1179
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1180
1180
|
customerProviderCredential?: {
|
|
@@ -1187,8 +1187,8 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1187
1187
|
} | {
|
|
1188
1188
|
provider: string;
|
|
1189
1189
|
modelReference: string;
|
|
1190
|
-
deploymentId: string;
|
|
1191
1190
|
regions: string[];
|
|
1191
|
+
deploymentId: string;
|
|
1192
1192
|
substitution: "cross_model";
|
|
1193
1193
|
authorizedByPolicy: true;
|
|
1194
1194
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
@@ -1230,13 +1230,13 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1230
1230
|
} | undefined;
|
|
1231
1231
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
1232
1232
|
maxOutputTokens?: number | undefined;
|
|
1233
|
-
instructions?: string | undefined;
|
|
1234
1233
|
temperature?: number | undefined;
|
|
1235
1234
|
voice?: string | undefined;
|
|
1236
1235
|
toolChoice?: "none" | "required" | "auto" | {
|
|
1237
1236
|
type: "function";
|
|
1238
1237
|
name: string;
|
|
1239
1238
|
} | undefined;
|
|
1239
|
+
instructions?: string | undefined;
|
|
1240
1240
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
1241
1241
|
inputAudioTranscription?: {
|
|
1242
1242
|
language?: string | undefined;
|
|
@@ -1281,8 +1281,8 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1281
1281
|
authorizedRoutes: ({
|
|
1282
1282
|
provider: string;
|
|
1283
1283
|
modelReference: string;
|
|
1284
|
-
deploymentId: string;
|
|
1285
1284
|
regions: string[];
|
|
1285
|
+
deploymentId: string;
|
|
1286
1286
|
substitution: "same_model";
|
|
1287
1287
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1288
1288
|
customerProviderCredential?: {
|
|
@@ -1295,8 +1295,8 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1295
1295
|
} | {
|
|
1296
1296
|
provider: string;
|
|
1297
1297
|
modelReference: string;
|
|
1298
|
-
deploymentId: string;
|
|
1299
1298
|
regions: string[];
|
|
1299
|
+
deploymentId: string;
|
|
1300
1300
|
substitution: "cross_model";
|
|
1301
1301
|
authorizedByPolicy: true;
|
|
1302
1302
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
@@ -1338,13 +1338,13 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1338
1338
|
} | undefined;
|
|
1339
1339
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
1340
1340
|
maxOutputTokens?: number | undefined;
|
|
1341
|
-
instructions?: string | undefined;
|
|
1342
1341
|
temperature?: number | undefined;
|
|
1343
1342
|
voice?: string | undefined;
|
|
1344
1343
|
toolChoice?: "none" | "required" | "auto" | {
|
|
1345
1344
|
type: "function";
|
|
1346
1345
|
name: string;
|
|
1347
1346
|
} | undefined;
|
|
1347
|
+
instructions?: string | undefined;
|
|
1348
1348
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
1349
1349
|
inputAudioTranscription?: {
|
|
1350
1350
|
language?: string | undefined;
|
|
@@ -1389,8 +1389,8 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1389
1389
|
authorizedRoutes: ({
|
|
1390
1390
|
provider: string;
|
|
1391
1391
|
modelReference: string;
|
|
1392
|
-
deploymentId: string;
|
|
1393
1392
|
regions: string[];
|
|
1393
|
+
deploymentId: string;
|
|
1394
1394
|
substitution: "same_model";
|
|
1395
1395
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1396
1396
|
customerProviderCredential?: {
|
|
@@ -1403,8 +1403,8 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1403
1403
|
} | {
|
|
1404
1404
|
provider: string;
|
|
1405
1405
|
modelReference: string;
|
|
1406
|
-
deploymentId: string;
|
|
1407
1406
|
regions: string[];
|
|
1407
|
+
deploymentId: string;
|
|
1408
1408
|
substitution: "cross_model";
|
|
1409
1409
|
authorizedByPolicy: true;
|
|
1410
1410
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
@@ -1446,13 +1446,13 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1446
1446
|
} | undefined;
|
|
1447
1447
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
1448
1448
|
maxOutputTokens?: number | undefined;
|
|
1449
|
-
instructions?: string | undefined;
|
|
1450
1449
|
temperature?: number | undefined;
|
|
1451
1450
|
voice?: string | undefined;
|
|
1452
1451
|
toolChoice?: "none" | "required" | "auto" | {
|
|
1453
1452
|
type: "function";
|
|
1454
1453
|
name: string;
|
|
1455
1454
|
} | undefined;
|
|
1455
|
+
instructions?: string | undefined;
|
|
1456
1456
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
1457
1457
|
inputAudioTranscription?: {
|
|
1458
1458
|
language?: string | undefined;
|
|
@@ -1497,8 +1497,8 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1497
1497
|
authorizedRoutes: ({
|
|
1498
1498
|
provider: string;
|
|
1499
1499
|
modelReference: string;
|
|
1500
|
-
deploymentId: string;
|
|
1501
1500
|
regions: string[];
|
|
1501
|
+
deploymentId: string;
|
|
1502
1502
|
substitution: "same_model";
|
|
1503
1503
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1504
1504
|
customerProviderCredential?: {
|
|
@@ -1511,8 +1511,8 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1511
1511
|
} | {
|
|
1512
1512
|
provider: string;
|
|
1513
1513
|
modelReference: string;
|
|
1514
|
-
deploymentId: string;
|
|
1515
1514
|
regions: string[];
|
|
1515
|
+
deploymentId: string;
|
|
1516
1516
|
substitution: "cross_model";
|
|
1517
1517
|
authorizedByPolicy: true;
|
|
1518
1518
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
@@ -1554,13 +1554,13 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1554
1554
|
} | undefined;
|
|
1555
1555
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
1556
1556
|
maxOutputTokens?: number | undefined;
|
|
1557
|
-
instructions?: string | undefined;
|
|
1558
1557
|
temperature?: number | undefined;
|
|
1559
1558
|
voice?: string | undefined;
|
|
1560
1559
|
toolChoice?: "none" | "required" | "auto" | {
|
|
1561
1560
|
type: "function";
|
|
1562
1561
|
name: string;
|
|
1563
1562
|
} | undefined;
|
|
1563
|
+
instructions?: string | undefined;
|
|
1564
1564
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
1565
1565
|
inputAudioTranscription?: {
|
|
1566
1566
|
language?: string | undefined;
|
|
@@ -1831,19 +1831,19 @@ export declare const realtimeResponseParametersSchema: z.ZodObject<{
|
|
|
1831
1831
|
}, "strict", z.ZodTypeAny, {
|
|
1832
1832
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
1833
1833
|
maxOutputTokens?: number | undefined;
|
|
1834
|
-
instructions?: string | undefined;
|
|
1835
1834
|
toolChoice?: "none" | "required" | "auto" | {
|
|
1836
1835
|
type: "function";
|
|
1837
1836
|
name: string;
|
|
1838
1837
|
} | undefined;
|
|
1838
|
+
instructions?: string | undefined;
|
|
1839
1839
|
}, {
|
|
1840
1840
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
1841
1841
|
maxOutputTokens?: number | undefined;
|
|
1842
|
-
instructions?: string | undefined;
|
|
1843
1842
|
toolChoice?: "none" | "required" | "auto" | {
|
|
1844
1843
|
type: "function";
|
|
1845
1844
|
name: string;
|
|
1846
1845
|
} | undefined;
|
|
1846
|
+
instructions?: string | undefined;
|
|
1847
1847
|
}>;
|
|
1848
1848
|
export declare const realtimeSessionUpdateCommandSchema: z.ZodObject<{
|
|
1849
1849
|
type: z.ZodLiteral<"session.update">;
|
|
@@ -1945,12 +1945,12 @@ export declare const realtimeSessionUpdateCommandSchema: z.ZodObject<{
|
|
|
1945
1945
|
}[] | undefined;
|
|
1946
1946
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
1947
1947
|
maxOutputTokens?: number | undefined;
|
|
1948
|
-
instructions?: string | undefined;
|
|
1949
1948
|
temperature?: number | undefined;
|
|
1950
1949
|
toolChoice?: "none" | "required" | "auto" | {
|
|
1951
1950
|
type: "function";
|
|
1952
1951
|
name: string;
|
|
1953
1952
|
} | undefined;
|
|
1953
|
+
instructions?: string | undefined;
|
|
1954
1954
|
turnDetection?: {
|
|
1955
1955
|
type: "none";
|
|
1956
1956
|
} | {
|
|
@@ -1980,12 +1980,12 @@ export declare const realtimeSessionUpdateCommandSchema: z.ZodObject<{
|
|
|
1980
1980
|
}[] | undefined;
|
|
1981
1981
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
1982
1982
|
maxOutputTokens?: number | undefined;
|
|
1983
|
-
instructions?: string | undefined;
|
|
1984
1983
|
temperature?: number | undefined;
|
|
1985
1984
|
toolChoice?: "none" | "required" | "auto" | {
|
|
1986
1985
|
type: "function";
|
|
1987
1986
|
name: string;
|
|
1988
1987
|
} | undefined;
|
|
1988
|
+
instructions?: string | undefined;
|
|
1989
1989
|
turnDetection?: {
|
|
1990
1990
|
type: "none";
|
|
1991
1991
|
} | {
|
|
@@ -2015,12 +2015,12 @@ export declare const realtimeSessionUpdateCommandSchema: z.ZodObject<{
|
|
|
2015
2015
|
}[] | undefined;
|
|
2016
2016
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2017
2017
|
maxOutputTokens?: number | undefined;
|
|
2018
|
-
instructions?: string | undefined;
|
|
2019
2018
|
temperature?: number | undefined;
|
|
2020
2019
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2021
2020
|
type: "function";
|
|
2022
2021
|
name: string;
|
|
2023
2022
|
} | undefined;
|
|
2023
|
+
instructions?: string | undefined;
|
|
2024
2024
|
turnDetection?: {
|
|
2025
2025
|
type: "none";
|
|
2026
2026
|
} | {
|
|
@@ -2050,12 +2050,12 @@ export declare const realtimeSessionUpdateCommandSchema: z.ZodObject<{
|
|
|
2050
2050
|
}[] | undefined;
|
|
2051
2051
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2052
2052
|
maxOutputTokens?: number | undefined;
|
|
2053
|
-
instructions?: string | undefined;
|
|
2054
2053
|
temperature?: number | undefined;
|
|
2055
2054
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2056
2055
|
type: "function";
|
|
2057
2056
|
name: string;
|
|
2058
2057
|
} | undefined;
|
|
2058
|
+
instructions?: string | undefined;
|
|
2059
2059
|
turnDetection?: {
|
|
2060
2060
|
type: "none";
|
|
2061
2061
|
} | {
|
|
@@ -2094,12 +2094,12 @@ export declare const realtimeSessionUpdateCommandSchema: z.ZodObject<{
|
|
|
2094
2094
|
}[] | undefined;
|
|
2095
2095
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2096
2096
|
maxOutputTokens?: number | undefined;
|
|
2097
|
-
instructions?: string | undefined;
|
|
2098
2097
|
temperature?: number | undefined;
|
|
2099
2098
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2100
2099
|
type: "function";
|
|
2101
2100
|
name: string;
|
|
2102
2101
|
} | undefined;
|
|
2102
|
+
instructions?: string | undefined;
|
|
2103
2103
|
turnDetection?: {
|
|
2104
2104
|
type: "none";
|
|
2105
2105
|
} | {
|
|
@@ -2135,12 +2135,12 @@ export declare const realtimeSessionUpdateCommandSchema: z.ZodObject<{
|
|
|
2135
2135
|
}[] | undefined;
|
|
2136
2136
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2137
2137
|
maxOutputTokens?: number | undefined;
|
|
2138
|
-
instructions?: string | undefined;
|
|
2139
2138
|
temperature?: number | undefined;
|
|
2140
2139
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2141
2140
|
type: "function";
|
|
2142
2141
|
name: string;
|
|
2143
2142
|
} | undefined;
|
|
2143
|
+
instructions?: string | undefined;
|
|
2144
2144
|
turnDetection?: {
|
|
2145
2145
|
type: "none";
|
|
2146
2146
|
} | {
|
|
@@ -2559,19 +2559,19 @@ export declare const realtimeResponseCreateCommandSchema: z.ZodObject<{
|
|
|
2559
2559
|
}, "strict", z.ZodTypeAny, {
|
|
2560
2560
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2561
2561
|
maxOutputTokens?: number | undefined;
|
|
2562
|
-
instructions?: string | undefined;
|
|
2563
2562
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2564
2563
|
type: "function";
|
|
2565
2564
|
name: string;
|
|
2566
2565
|
} | undefined;
|
|
2566
|
+
instructions?: string | undefined;
|
|
2567
2567
|
}, {
|
|
2568
2568
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2569
2569
|
maxOutputTokens?: number | undefined;
|
|
2570
|
-
instructions?: string | undefined;
|
|
2571
2570
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2572
2571
|
type: "function";
|
|
2573
2572
|
name: string;
|
|
2574
2573
|
} | undefined;
|
|
2574
|
+
instructions?: string | undefined;
|
|
2575
2575
|
}>>;
|
|
2576
2576
|
/** See `version.ts`: each command is a whole message on the wire. */
|
|
2577
2577
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -2585,11 +2585,11 @@ export declare const realtimeResponseCreateCommandSchema: z.ZodObject<{
|
|
|
2585
2585
|
response?: {
|
|
2586
2586
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2587
2587
|
maxOutputTokens?: number | undefined;
|
|
2588
|
-
instructions?: string | undefined;
|
|
2589
2588
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2590
2589
|
type: "function";
|
|
2591
2590
|
name: string;
|
|
2592
2591
|
} | undefined;
|
|
2592
|
+
instructions?: string | undefined;
|
|
2593
2593
|
} | undefined;
|
|
2594
2594
|
}, {
|
|
2595
2595
|
type: "response.create";
|
|
@@ -2599,11 +2599,11 @@ export declare const realtimeResponseCreateCommandSchema: z.ZodObject<{
|
|
|
2599
2599
|
response?: {
|
|
2600
2600
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2601
2601
|
maxOutputTokens?: number | undefined;
|
|
2602
|
-
instructions?: string | undefined;
|
|
2603
2602
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2604
2603
|
type: "function";
|
|
2605
2604
|
name: string;
|
|
2606
2605
|
} | undefined;
|
|
2606
|
+
instructions?: string | undefined;
|
|
2607
2607
|
} | undefined;
|
|
2608
2608
|
}>;
|
|
2609
2609
|
export declare const realtimeResponseCancelCommandSchema: z.ZodObject<{
|
|
@@ -2769,12 +2769,12 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
2769
2769
|
}[] | undefined;
|
|
2770
2770
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2771
2771
|
maxOutputTokens?: number | undefined;
|
|
2772
|
-
instructions?: string | undefined;
|
|
2773
2772
|
temperature?: number | undefined;
|
|
2774
2773
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2775
2774
|
type: "function";
|
|
2776
2775
|
name: string;
|
|
2777
2776
|
} | undefined;
|
|
2777
|
+
instructions?: string | undefined;
|
|
2778
2778
|
turnDetection?: {
|
|
2779
2779
|
type: "none";
|
|
2780
2780
|
} | {
|
|
@@ -2804,12 +2804,12 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
2804
2804
|
}[] | undefined;
|
|
2805
2805
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2806
2806
|
maxOutputTokens?: number | undefined;
|
|
2807
|
-
instructions?: string | undefined;
|
|
2808
2807
|
temperature?: number | undefined;
|
|
2809
2808
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2810
2809
|
type: "function";
|
|
2811
2810
|
name: string;
|
|
2812
2811
|
} | undefined;
|
|
2812
|
+
instructions?: string | undefined;
|
|
2813
2813
|
turnDetection?: {
|
|
2814
2814
|
type: "none";
|
|
2815
2815
|
} | {
|
|
@@ -2839,12 +2839,12 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
2839
2839
|
}[] | undefined;
|
|
2840
2840
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2841
2841
|
maxOutputTokens?: number | undefined;
|
|
2842
|
-
instructions?: string | undefined;
|
|
2843
2842
|
temperature?: number | undefined;
|
|
2844
2843
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2845
2844
|
type: "function";
|
|
2846
2845
|
name: string;
|
|
2847
2846
|
} | undefined;
|
|
2847
|
+
instructions?: string | undefined;
|
|
2848
2848
|
turnDetection?: {
|
|
2849
2849
|
type: "none";
|
|
2850
2850
|
} | {
|
|
@@ -2874,12 +2874,12 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
2874
2874
|
}[] | undefined;
|
|
2875
2875
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2876
2876
|
maxOutputTokens?: number | undefined;
|
|
2877
|
-
instructions?: string | undefined;
|
|
2878
2877
|
temperature?: number | undefined;
|
|
2879
2878
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2880
2879
|
type: "function";
|
|
2881
2880
|
name: string;
|
|
2882
2881
|
} | undefined;
|
|
2882
|
+
instructions?: string | undefined;
|
|
2883
2883
|
turnDetection?: {
|
|
2884
2884
|
type: "none";
|
|
2885
2885
|
} | {
|
|
@@ -2918,12 +2918,12 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
2918
2918
|
}[] | undefined;
|
|
2919
2919
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2920
2920
|
maxOutputTokens?: number | undefined;
|
|
2921
|
-
instructions?: string | undefined;
|
|
2922
2921
|
temperature?: number | undefined;
|
|
2923
2922
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2924
2923
|
type: "function";
|
|
2925
2924
|
name: string;
|
|
2926
2925
|
} | undefined;
|
|
2926
|
+
instructions?: string | undefined;
|
|
2927
2927
|
turnDetection?: {
|
|
2928
2928
|
type: "none";
|
|
2929
2929
|
} | {
|
|
@@ -2959,12 +2959,12 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
2959
2959
|
}[] | undefined;
|
|
2960
2960
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2961
2961
|
maxOutputTokens?: number | undefined;
|
|
2962
|
-
instructions?: string | undefined;
|
|
2963
2962
|
temperature?: number | undefined;
|
|
2964
2963
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2965
2964
|
type: "function";
|
|
2966
2965
|
name: string;
|
|
2967
2966
|
} | undefined;
|
|
2967
|
+
instructions?: string | undefined;
|
|
2968
2968
|
turnDetection?: {
|
|
2969
2969
|
type: "none";
|
|
2970
2970
|
} | {
|
|
@@ -3371,19 +3371,19 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
3371
3371
|
}, "strict", z.ZodTypeAny, {
|
|
3372
3372
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3373
3373
|
maxOutputTokens?: number | undefined;
|
|
3374
|
-
instructions?: string | undefined;
|
|
3375
3374
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3376
3375
|
type: "function";
|
|
3377
3376
|
name: string;
|
|
3378
3377
|
} | undefined;
|
|
3378
|
+
instructions?: string | undefined;
|
|
3379
3379
|
}, {
|
|
3380
3380
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3381
3381
|
maxOutputTokens?: number | undefined;
|
|
3382
|
-
instructions?: string | undefined;
|
|
3383
3382
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3384
3383
|
type: "function";
|
|
3385
3384
|
name: string;
|
|
3386
3385
|
} | undefined;
|
|
3386
|
+
instructions?: string | undefined;
|
|
3387
3387
|
}>>;
|
|
3388
3388
|
/** See `version.ts`: each command is a whole message on the wire. */
|
|
3389
3389
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -3397,11 +3397,11 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
3397
3397
|
response?: {
|
|
3398
3398
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3399
3399
|
maxOutputTokens?: number | undefined;
|
|
3400
|
-
instructions?: string | undefined;
|
|
3401
3400
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3402
3401
|
type: "function";
|
|
3403
3402
|
name: string;
|
|
3404
3403
|
} | undefined;
|
|
3404
|
+
instructions?: string | undefined;
|
|
3405
3405
|
} | undefined;
|
|
3406
3406
|
}, {
|
|
3407
3407
|
type: "response.create";
|
|
@@ -3411,11 +3411,11 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
3411
3411
|
response?: {
|
|
3412
3412
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3413
3413
|
maxOutputTokens?: number | undefined;
|
|
3414
|
-
instructions?: string | undefined;
|
|
3415
3414
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3416
3415
|
type: "function";
|
|
3417
3416
|
name: string;
|
|
3418
3417
|
} | undefined;
|
|
3418
|
+
instructions?: string | undefined;
|
|
3419
3419
|
} | undefined;
|
|
3420
3420
|
}>, z.ZodObject<{
|
|
3421
3421
|
type: z.ZodLiteral<"response.cancel">;
|
|
@@ -3614,13 +3614,13 @@ export declare const realtimeSessionCreatedEventSchema: z.ZodObject<{
|
|
|
3614
3614
|
} | undefined;
|
|
3615
3615
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3616
3616
|
maxOutputTokens?: number | undefined;
|
|
3617
|
-
instructions?: string | undefined;
|
|
3618
3617
|
temperature?: number | undefined;
|
|
3619
3618
|
voice?: string | undefined;
|
|
3620
3619
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3621
3620
|
type: "function";
|
|
3622
3621
|
name: string;
|
|
3623
3622
|
} | undefined;
|
|
3623
|
+
instructions?: string | undefined;
|
|
3624
3624
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
3625
3625
|
inputAudioTranscription?: {
|
|
3626
3626
|
language?: string | undefined;
|
|
@@ -3655,13 +3655,13 @@ export declare const realtimeSessionCreatedEventSchema: z.ZodObject<{
|
|
|
3655
3655
|
} | undefined;
|
|
3656
3656
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3657
3657
|
maxOutputTokens?: number | undefined;
|
|
3658
|
-
instructions?: string | undefined;
|
|
3659
3658
|
temperature?: number | undefined;
|
|
3660
3659
|
voice?: string | undefined;
|
|
3661
3660
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3662
3661
|
type: "function";
|
|
3663
3662
|
name: string;
|
|
3664
3663
|
} | undefined;
|
|
3664
|
+
instructions?: string | undefined;
|
|
3665
3665
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
3666
3666
|
inputAudioTranscription?: {
|
|
3667
3667
|
language?: string | undefined;
|
|
@@ -3713,8 +3713,8 @@ export declare const realtimeSessionCreatedEventSchema: z.ZodObject<{
|
|
|
3713
3713
|
resolvedModelReference: string;
|
|
3714
3714
|
servingProvider: string;
|
|
3715
3715
|
deploymentId: string;
|
|
3716
|
-
startedAt: string;
|
|
3717
3716
|
sequence: number;
|
|
3717
|
+
startedAt: string;
|
|
3718
3718
|
config: {
|
|
3719
3719
|
inputAudioFormat: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
|
|
3720
3720
|
turnDetection: {
|
|
@@ -3744,13 +3744,13 @@ export declare const realtimeSessionCreatedEventSchema: z.ZodObject<{
|
|
|
3744
3744
|
} | undefined;
|
|
3745
3745
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3746
3746
|
maxOutputTokens?: number | undefined;
|
|
3747
|
-
instructions?: string | undefined;
|
|
3748
3747
|
temperature?: number | undefined;
|
|
3749
3748
|
voice?: string | undefined;
|
|
3750
3749
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3751
3750
|
type: "function";
|
|
3752
3751
|
name: string;
|
|
3753
3752
|
} | undefined;
|
|
3753
|
+
instructions?: string | undefined;
|
|
3754
3754
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
3755
3755
|
inputAudioTranscription?: {
|
|
3756
3756
|
language?: string | undefined;
|
|
@@ -3775,8 +3775,8 @@ export declare const realtimeSessionCreatedEventSchema: z.ZodObject<{
|
|
|
3775
3775
|
resolvedModelReference: string;
|
|
3776
3776
|
servingProvider: string;
|
|
3777
3777
|
deploymentId: string;
|
|
3778
|
-
startedAt: string;
|
|
3779
3778
|
sequence: number;
|
|
3779
|
+
startedAt: string;
|
|
3780
3780
|
config: {
|
|
3781
3781
|
inputAudioFormat: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
|
|
3782
3782
|
turnDetection: {
|
|
@@ -3806,13 +3806,13 @@ export declare const realtimeSessionCreatedEventSchema: z.ZodObject<{
|
|
|
3806
3806
|
} | undefined;
|
|
3807
3807
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3808
3808
|
maxOutputTokens?: number | undefined;
|
|
3809
|
-
instructions?: string | undefined;
|
|
3810
3809
|
temperature?: number | undefined;
|
|
3811
3810
|
voice?: string | undefined;
|
|
3812
3811
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3813
3812
|
type: "function";
|
|
3814
3813
|
name: string;
|
|
3815
3814
|
} | undefined;
|
|
3815
|
+
instructions?: string | undefined;
|
|
3816
3816
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
3817
3817
|
inputAudioTranscription?: {
|
|
3818
3818
|
language?: string | undefined;
|
|
@@ -3953,13 +3953,13 @@ export declare const realtimeSessionUpdatedEventSchema: z.ZodObject<{
|
|
|
3953
3953
|
} | undefined;
|
|
3954
3954
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3955
3955
|
maxOutputTokens?: number | undefined;
|
|
3956
|
-
instructions?: string | undefined;
|
|
3957
3956
|
temperature?: number | undefined;
|
|
3958
3957
|
voice?: string | undefined;
|
|
3959
3958
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3960
3959
|
type: "function";
|
|
3961
3960
|
name: string;
|
|
3962
3961
|
} | undefined;
|
|
3962
|
+
instructions?: string | undefined;
|
|
3963
3963
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
3964
3964
|
inputAudioTranscription?: {
|
|
3965
3965
|
language?: string | undefined;
|
|
@@ -3994,13 +3994,13 @@ export declare const realtimeSessionUpdatedEventSchema: z.ZodObject<{
|
|
|
3994
3994
|
} | undefined;
|
|
3995
3995
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3996
3996
|
maxOutputTokens?: number | undefined;
|
|
3997
|
-
instructions?: string | undefined;
|
|
3998
3997
|
temperature?: number | undefined;
|
|
3999
3998
|
voice?: string | undefined;
|
|
4000
3999
|
toolChoice?: "none" | "required" | "auto" | {
|
|
4001
4000
|
type: "function";
|
|
4002
4001
|
name: string;
|
|
4003
4002
|
} | undefined;
|
|
4003
|
+
instructions?: string | undefined;
|
|
4004
4004
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
4005
4005
|
inputAudioTranscription?: {
|
|
4006
4006
|
language?: string | undefined;
|
|
@@ -4048,13 +4048,13 @@ export declare const realtimeSessionUpdatedEventSchema: z.ZodObject<{
|
|
|
4048
4048
|
} | undefined;
|
|
4049
4049
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
4050
4050
|
maxOutputTokens?: number | undefined;
|
|
4051
|
-
instructions?: string | undefined;
|
|
4052
4051
|
temperature?: number | undefined;
|
|
4053
4052
|
voice?: string | undefined;
|
|
4054
4053
|
toolChoice?: "none" | "required" | "auto" | {
|
|
4055
4054
|
type: "function";
|
|
4056
4055
|
name: string;
|
|
4057
4056
|
} | undefined;
|
|
4057
|
+
instructions?: string | undefined;
|
|
4058
4058
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
4059
4059
|
inputAudioTranscription?: {
|
|
4060
4060
|
language?: string | undefined;
|
|
@@ -4096,13 +4096,13 @@ export declare const realtimeSessionUpdatedEventSchema: z.ZodObject<{
|
|
|
4096
4096
|
} | undefined;
|
|
4097
4097
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
4098
4098
|
maxOutputTokens?: number | undefined;
|
|
4099
|
-
instructions?: string | undefined;
|
|
4100
4099
|
temperature?: number | undefined;
|
|
4101
4100
|
voice?: string | undefined;
|
|
4102
4101
|
toolChoice?: "none" | "required" | "auto" | {
|
|
4103
4102
|
type: "function";
|
|
4104
4103
|
name: string;
|
|
4105
4104
|
} | undefined;
|
|
4105
|
+
instructions?: string | undefined;
|
|
4106
4106
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
4107
4107
|
inputAudioTranscription?: {
|
|
4108
4108
|
language?: string | undefined;
|
|
@@ -5168,12 +5168,12 @@ export declare const realtimeResponseDoneEventSchema: z.ZodObject<{
|
|
|
5168
5168
|
schemaVersion: 1;
|
|
5169
5169
|
requestId: string;
|
|
5170
5170
|
deploymentId: string;
|
|
5171
|
+
sequence: number;
|
|
5171
5172
|
units: {
|
|
5172
5173
|
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";
|
|
5173
5174
|
quantity: number;
|
|
5174
5175
|
}[];
|
|
5175
5176
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
5176
|
-
sequence: number;
|
|
5177
5177
|
responseId: string;
|
|
5178
5178
|
finishReason?: "length" | "cancelled" | "content_filter" | "refusal" | "stop" | "tool_calls" | undefined;
|
|
5179
5179
|
commandId?: string | undefined;
|
|
@@ -5183,12 +5183,12 @@ export declare const realtimeResponseDoneEventSchema: z.ZodObject<{
|
|
|
5183
5183
|
schemaVersion: 1;
|
|
5184
5184
|
requestId: string;
|
|
5185
5185
|
deploymentId: string;
|
|
5186
|
+
sequence: number;
|
|
5186
5187
|
units: {
|
|
5187
5188
|
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";
|
|
5188
5189
|
quantity: number;
|
|
5189
5190
|
}[];
|
|
5190
5191
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
5191
|
-
sequence: number;
|
|
5192
5192
|
responseId: string;
|
|
5193
5193
|
finishReason?: "length" | "cancelled" | "content_filter" | "refusal" | "stop" | "tool_calls" | undefined;
|
|
5194
5194
|
commandId?: string | undefined;
|
|
@@ -5374,12 +5374,12 @@ export declare const realtimeSessionClosedEventSchema: z.ZodObject<{
|
|
|
5374
5374
|
schemaVersion: 1;
|
|
5375
5375
|
reason: "no_route_available" | "client_closed" | "max_duration" | "idle_timeout" | "limit_exceeded" | "resume_expired" | "upstream_closed" | "upstream_error" | "server_shutdown";
|
|
5376
5376
|
requestId: string;
|
|
5377
|
+
sequence: number;
|
|
5377
5378
|
units: {
|
|
5378
5379
|
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";
|
|
5379
5380
|
quantity: number;
|
|
5380
5381
|
}[];
|
|
5381
5382
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
5382
|
-
sequence: number;
|
|
5383
5383
|
closedAt: string;
|
|
5384
5384
|
deploymentId?: string | undefined;
|
|
5385
5385
|
commandId?: string | undefined;
|
|
@@ -5388,12 +5388,12 @@ export declare const realtimeSessionClosedEventSchema: z.ZodObject<{
|
|
|
5388
5388
|
schemaVersion: 1;
|
|
5389
5389
|
reason: "no_route_available" | "client_closed" | "max_duration" | "idle_timeout" | "limit_exceeded" | "resume_expired" | "upstream_closed" | "upstream_error" | "server_shutdown";
|
|
5390
5390
|
requestId: string;
|
|
5391
|
+
sequence: number;
|
|
5391
5392
|
units: {
|
|
5392
5393
|
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";
|
|
5393
5394
|
quantity: number;
|
|
5394
5395
|
}[];
|
|
5395
5396
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
5396
|
-
sequence: number;
|
|
5397
5397
|
closedAt: string;
|
|
5398
5398
|
deploymentId?: string | undefined;
|
|
5399
5399
|
commandId?: string | undefined;
|
|
@@ -5534,13 +5534,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5534
5534
|
} | undefined;
|
|
5535
5535
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
5536
5536
|
maxOutputTokens?: number | undefined;
|
|
5537
|
-
instructions?: string | undefined;
|
|
5538
5537
|
temperature?: number | undefined;
|
|
5539
5538
|
voice?: string | undefined;
|
|
5540
5539
|
toolChoice?: "none" | "required" | "auto" | {
|
|
5541
5540
|
type: "function";
|
|
5542
5541
|
name: string;
|
|
5543
5542
|
} | undefined;
|
|
5543
|
+
instructions?: string | undefined;
|
|
5544
5544
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
5545
5545
|
inputAudioTranscription?: {
|
|
5546
5546
|
language?: string | undefined;
|
|
@@ -5575,13 +5575,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5575
5575
|
} | undefined;
|
|
5576
5576
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
5577
5577
|
maxOutputTokens?: number | undefined;
|
|
5578
|
-
instructions?: string | undefined;
|
|
5579
5578
|
temperature?: number | undefined;
|
|
5580
5579
|
voice?: string | undefined;
|
|
5581
5580
|
toolChoice?: "none" | "required" | "auto" | {
|
|
5582
5581
|
type: "function";
|
|
5583
5582
|
name: string;
|
|
5584
5583
|
} | undefined;
|
|
5584
|
+
instructions?: string | undefined;
|
|
5585
5585
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
5586
5586
|
inputAudioTranscription?: {
|
|
5587
5587
|
language?: string | undefined;
|
|
@@ -5633,8 +5633,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5633
5633
|
resolvedModelReference: string;
|
|
5634
5634
|
servingProvider: string;
|
|
5635
5635
|
deploymentId: string;
|
|
5636
|
-
startedAt: string;
|
|
5637
5636
|
sequence: number;
|
|
5637
|
+
startedAt: string;
|
|
5638
5638
|
config: {
|
|
5639
5639
|
inputAudioFormat: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
|
|
5640
5640
|
turnDetection: {
|
|
@@ -5664,13 +5664,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5664
5664
|
} | undefined;
|
|
5665
5665
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
5666
5666
|
maxOutputTokens?: number | undefined;
|
|
5667
|
-
instructions?: string | undefined;
|
|
5668
5667
|
temperature?: number | undefined;
|
|
5669
5668
|
voice?: string | undefined;
|
|
5670
5669
|
toolChoice?: "none" | "required" | "auto" | {
|
|
5671
5670
|
type: "function";
|
|
5672
5671
|
name: string;
|
|
5673
5672
|
} | undefined;
|
|
5673
|
+
instructions?: string | undefined;
|
|
5674
5674
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
5675
5675
|
inputAudioTranscription?: {
|
|
5676
5676
|
language?: string | undefined;
|
|
@@ -5695,8 +5695,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5695
5695
|
resolvedModelReference: string;
|
|
5696
5696
|
servingProvider: string;
|
|
5697
5697
|
deploymentId: string;
|
|
5698
|
-
startedAt: string;
|
|
5699
5698
|
sequence: number;
|
|
5699
|
+
startedAt: string;
|
|
5700
5700
|
config: {
|
|
5701
5701
|
inputAudioFormat: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
|
|
5702
5702
|
turnDetection: {
|
|
@@ -5726,13 +5726,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5726
5726
|
} | undefined;
|
|
5727
5727
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
5728
5728
|
maxOutputTokens?: number | undefined;
|
|
5729
|
-
instructions?: string | undefined;
|
|
5730
5729
|
temperature?: number | undefined;
|
|
5731
5730
|
voice?: string | undefined;
|
|
5732
5731
|
toolChoice?: "none" | "required" | "auto" | {
|
|
5733
5732
|
type: "function";
|
|
5734
5733
|
name: string;
|
|
5735
5734
|
} | undefined;
|
|
5735
|
+
instructions?: string | undefined;
|
|
5736
5736
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
5737
5737
|
inputAudioTranscription?: {
|
|
5738
5738
|
language?: string | undefined;
|
|
@@ -5872,13 +5872,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5872
5872
|
} | undefined;
|
|
5873
5873
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
5874
5874
|
maxOutputTokens?: number | undefined;
|
|
5875
|
-
instructions?: string | undefined;
|
|
5876
5875
|
temperature?: number | undefined;
|
|
5877
5876
|
voice?: string | undefined;
|
|
5878
5877
|
toolChoice?: "none" | "required" | "auto" | {
|
|
5879
5878
|
type: "function";
|
|
5880
5879
|
name: string;
|
|
5881
5880
|
} | undefined;
|
|
5881
|
+
instructions?: string | undefined;
|
|
5882
5882
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
5883
5883
|
inputAudioTranscription?: {
|
|
5884
5884
|
language?: string | undefined;
|
|
@@ -5913,13 +5913,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5913
5913
|
} | undefined;
|
|
5914
5914
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
5915
5915
|
maxOutputTokens?: number | undefined;
|
|
5916
|
-
instructions?: string | undefined;
|
|
5917
5916
|
temperature?: number | undefined;
|
|
5918
5917
|
voice?: string | undefined;
|
|
5919
5918
|
toolChoice?: "none" | "required" | "auto" | {
|
|
5920
5919
|
type: "function";
|
|
5921
5920
|
name: string;
|
|
5922
5921
|
} | undefined;
|
|
5922
|
+
instructions?: string | undefined;
|
|
5923
5923
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
5924
5924
|
inputAudioTranscription?: {
|
|
5925
5925
|
language?: string | undefined;
|
|
@@ -5967,13 +5967,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5967
5967
|
} | undefined;
|
|
5968
5968
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
5969
5969
|
maxOutputTokens?: number | undefined;
|
|
5970
|
-
instructions?: string | undefined;
|
|
5971
5970
|
temperature?: number | undefined;
|
|
5972
5971
|
voice?: string | undefined;
|
|
5973
5972
|
toolChoice?: "none" | "required" | "auto" | {
|
|
5974
5973
|
type: "function";
|
|
5975
5974
|
name: string;
|
|
5976
5975
|
} | undefined;
|
|
5976
|
+
instructions?: string | undefined;
|
|
5977
5977
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
5978
5978
|
inputAudioTranscription?: {
|
|
5979
5979
|
language?: string | undefined;
|
|
@@ -6015,13 +6015,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
6015
6015
|
} | undefined;
|
|
6016
6016
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
6017
6017
|
maxOutputTokens?: number | undefined;
|
|
6018
|
-
instructions?: string | undefined;
|
|
6019
6018
|
temperature?: number | undefined;
|
|
6020
6019
|
voice?: string | undefined;
|
|
6021
6020
|
toolChoice?: "none" | "required" | "auto" | {
|
|
6022
6021
|
type: "function";
|
|
6023
6022
|
name: string;
|
|
6024
6023
|
} | undefined;
|
|
6024
|
+
instructions?: string | undefined;
|
|
6025
6025
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
6026
6026
|
inputAudioTranscription?: {
|
|
6027
6027
|
language?: string | undefined;
|
|
@@ -7048,12 +7048,12 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7048
7048
|
schemaVersion: 1;
|
|
7049
7049
|
requestId: string;
|
|
7050
7050
|
deploymentId: string;
|
|
7051
|
+
sequence: number;
|
|
7051
7052
|
units: {
|
|
7052
7053
|
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";
|
|
7053
7054
|
quantity: number;
|
|
7054
7055
|
}[];
|
|
7055
7056
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
7056
|
-
sequence: number;
|
|
7057
7057
|
responseId: string;
|
|
7058
7058
|
finishReason?: "length" | "cancelled" | "content_filter" | "refusal" | "stop" | "tool_calls" | undefined;
|
|
7059
7059
|
commandId?: string | undefined;
|
|
@@ -7063,12 +7063,12 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7063
7063
|
schemaVersion: 1;
|
|
7064
7064
|
requestId: string;
|
|
7065
7065
|
deploymentId: string;
|
|
7066
|
+
sequence: number;
|
|
7066
7067
|
units: {
|
|
7067
7068
|
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";
|
|
7068
7069
|
quantity: number;
|
|
7069
7070
|
}[];
|
|
7070
7071
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
7071
|
-
sequence: number;
|
|
7072
7072
|
responseId: string;
|
|
7073
7073
|
finishReason?: "length" | "cancelled" | "content_filter" | "refusal" | "stop" | "tool_calls" | undefined;
|
|
7074
7074
|
commandId?: string | undefined;
|
|
@@ -7242,12 +7242,12 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7242
7242
|
schemaVersion: 1;
|
|
7243
7243
|
reason: "no_route_available" | "client_closed" | "max_duration" | "idle_timeout" | "limit_exceeded" | "resume_expired" | "upstream_closed" | "upstream_error" | "server_shutdown";
|
|
7244
7244
|
requestId: string;
|
|
7245
|
+
sequence: number;
|
|
7245
7246
|
units: {
|
|
7246
7247
|
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";
|
|
7247
7248
|
quantity: number;
|
|
7248
7249
|
}[];
|
|
7249
7250
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
7250
|
-
sequence: number;
|
|
7251
7251
|
closedAt: string;
|
|
7252
7252
|
deploymentId?: string | undefined;
|
|
7253
7253
|
commandId?: string | undefined;
|
|
@@ -7256,12 +7256,12 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7256
7256
|
schemaVersion: 1;
|
|
7257
7257
|
reason: "no_route_available" | "client_closed" | "max_duration" | "idle_timeout" | "limit_exceeded" | "resume_expired" | "upstream_closed" | "upstream_error" | "server_shutdown";
|
|
7258
7258
|
requestId: string;
|
|
7259
|
+
sequence: number;
|
|
7259
7260
|
units: {
|
|
7260
7261
|
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";
|
|
7261
7262
|
quantity: number;
|
|
7262
7263
|
}[];
|
|
7263
7264
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
7264
|
-
sequence: number;
|
|
7265
7265
|
closedAt: string;
|
|
7266
7266
|
deploymentId?: string | undefined;
|
|
7267
7267
|
commandId?: string | undefined;
|
|
@@ -7281,8 +7281,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7281
7281
|
resolvedModelReference: string;
|
|
7282
7282
|
servingProvider: string;
|
|
7283
7283
|
deploymentId: string;
|
|
7284
|
-
startedAt: string;
|
|
7285
7284
|
sequence: number;
|
|
7285
|
+
startedAt: string;
|
|
7286
7286
|
config: {
|
|
7287
7287
|
inputAudioFormat: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
|
|
7288
7288
|
turnDetection: {
|
|
@@ -7312,13 +7312,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7312
7312
|
} | undefined;
|
|
7313
7313
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
7314
7314
|
maxOutputTokens?: number | undefined;
|
|
7315
|
-
instructions?: string | undefined;
|
|
7316
7315
|
temperature?: number | undefined;
|
|
7317
7316
|
voice?: string | undefined;
|
|
7318
7317
|
toolChoice?: "none" | "required" | "auto" | {
|
|
7319
7318
|
type: "function";
|
|
7320
7319
|
name: string;
|
|
7321
7320
|
} | undefined;
|
|
7321
|
+
instructions?: string | undefined;
|
|
7322
7322
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
7323
7323
|
inputAudioTranscription?: {
|
|
7324
7324
|
language?: string | undefined;
|
|
@@ -7361,13 +7361,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7361
7361
|
} | undefined;
|
|
7362
7362
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
7363
7363
|
maxOutputTokens?: number | undefined;
|
|
7364
|
-
instructions?: string | undefined;
|
|
7365
7364
|
temperature?: number | undefined;
|
|
7366
7365
|
voice?: string | undefined;
|
|
7367
7366
|
toolChoice?: "none" | "required" | "auto" | {
|
|
7368
7367
|
type: "function";
|
|
7369
7368
|
name: string;
|
|
7370
7369
|
} | undefined;
|
|
7370
|
+
instructions?: string | undefined;
|
|
7371
7371
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
7372
7372
|
inputAudioTranscription?: {
|
|
7373
7373
|
language?: string | undefined;
|
|
@@ -7591,12 +7591,12 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7591
7591
|
schemaVersion: 1;
|
|
7592
7592
|
requestId: string;
|
|
7593
7593
|
deploymentId: string;
|
|
7594
|
+
sequence: number;
|
|
7594
7595
|
units: {
|
|
7595
7596
|
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";
|
|
7596
7597
|
quantity: number;
|
|
7597
7598
|
}[];
|
|
7598
7599
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
7599
|
-
sequence: number;
|
|
7600
7600
|
responseId: string;
|
|
7601
7601
|
finishReason?: "length" | "cancelled" | "content_filter" | "refusal" | "stop" | "tool_calls" | undefined;
|
|
7602
7602
|
commandId?: string | undefined;
|
|
@@ -7628,12 +7628,12 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7628
7628
|
schemaVersion: 1;
|
|
7629
7629
|
reason: "no_route_available" | "client_closed" | "max_duration" | "idle_timeout" | "limit_exceeded" | "resume_expired" | "upstream_closed" | "upstream_error" | "server_shutdown";
|
|
7630
7630
|
requestId: string;
|
|
7631
|
+
sequence: number;
|
|
7631
7632
|
units: {
|
|
7632
7633
|
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";
|
|
7633
7634
|
quantity: number;
|
|
7634
7635
|
}[];
|
|
7635
7636
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
7636
|
-
sequence: number;
|
|
7637
7637
|
closedAt: string;
|
|
7638
7638
|
deploymentId?: string | undefined;
|
|
7639
7639
|
commandId?: string | undefined;
|
|
@@ -7653,8 +7653,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7653
7653
|
resolvedModelReference: string;
|
|
7654
7654
|
servingProvider: string;
|
|
7655
7655
|
deploymentId: string;
|
|
7656
|
-
startedAt: string;
|
|
7657
7656
|
sequence: number;
|
|
7657
|
+
startedAt: string;
|
|
7658
7658
|
config: {
|
|
7659
7659
|
inputAudioFormat: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
|
|
7660
7660
|
turnDetection: {
|
|
@@ -7684,13 +7684,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7684
7684
|
} | undefined;
|
|
7685
7685
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
7686
7686
|
maxOutputTokens?: number | undefined;
|
|
7687
|
-
instructions?: string | undefined;
|
|
7688
7687
|
temperature?: number | undefined;
|
|
7689
7688
|
voice?: string | undefined;
|
|
7690
7689
|
toolChoice?: "none" | "required" | "auto" | {
|
|
7691
7690
|
type: "function";
|
|
7692
7691
|
name: string;
|
|
7693
7692
|
} | undefined;
|
|
7693
|
+
instructions?: string | undefined;
|
|
7694
7694
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
7695
7695
|
inputAudioTranscription?: {
|
|
7696
7696
|
language?: string | undefined;
|
|
@@ -7733,13 +7733,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7733
7733
|
} | undefined;
|
|
7734
7734
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
7735
7735
|
maxOutputTokens?: number | undefined;
|
|
7736
|
-
instructions?: string | undefined;
|
|
7737
7736
|
temperature?: number | undefined;
|
|
7738
7737
|
voice?: string | undefined;
|
|
7739
7738
|
toolChoice?: "none" | "required" | "auto" | {
|
|
7740
7739
|
type: "function";
|
|
7741
7740
|
name: string;
|
|
7742
7741
|
} | undefined;
|
|
7742
|
+
instructions?: string | undefined;
|
|
7743
7743
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
7744
7744
|
inputAudioTranscription?: {
|
|
7745
7745
|
language?: string | undefined;
|
|
@@ -7963,12 +7963,12 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7963
7963
|
schemaVersion: 1;
|
|
7964
7964
|
requestId: string;
|
|
7965
7965
|
deploymentId: string;
|
|
7966
|
+
sequence: number;
|
|
7966
7967
|
units: {
|
|
7967
7968
|
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";
|
|
7968
7969
|
quantity: number;
|
|
7969
7970
|
}[];
|
|
7970
7971
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
7971
|
-
sequence: number;
|
|
7972
7972
|
responseId: string;
|
|
7973
7973
|
finishReason?: "length" | "cancelled" | "content_filter" | "refusal" | "stop" | "tool_calls" | undefined;
|
|
7974
7974
|
commandId?: string | undefined;
|
|
@@ -8000,12 +8000,12 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
8000
8000
|
schemaVersion: 1;
|
|
8001
8001
|
reason: "no_route_available" | "client_closed" | "max_duration" | "idle_timeout" | "limit_exceeded" | "resume_expired" | "upstream_closed" | "upstream_error" | "server_shutdown";
|
|
8002
8002
|
requestId: string;
|
|
8003
|
+
sequence: number;
|
|
8003
8004
|
units: {
|
|
8004
8005
|
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";
|
|
8005
8006
|
quantity: number;
|
|
8006
8007
|
}[];
|
|
8007
8008
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
8008
|
-
sequence: number;
|
|
8009
8009
|
closedAt: string;
|
|
8010
8010
|
deploymentId?: string | undefined;
|
|
8011
8011
|
commandId?: string | undefined;
|