@apicity/openai 0.6.7 → 0.7.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/README.md +118 -1
- package/dist/src/chat-fragments-types.d.ts +23 -0
- package/dist/src/chat-fragments-types.d.ts.map +1 -0
- package/dist/src/chat-fragments-types.js +2 -0
- package/dist/src/chat-fragments-types.js.map +1 -0
- package/dist/src/chat-fragments-zod.d.ts +53 -0
- package/dist/src/chat-fragments-zod.d.ts.map +1 -0
- package/dist/src/chat-fragments-zod.js +35 -0
- package/dist/src/chat-fragments-zod.js.map +1 -0
- package/dist/src/example.d.ts.map +1 -1
- package/dist/src/example.js +101 -0
- package/dist/src/example.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/middleware.d.ts +2 -0
- package/dist/src/middleware.d.ts.map +1 -1
- package/dist/src/middleware.js +85 -1
- package/dist/src/middleware.js.map +1 -1
- package/dist/src/openai.d.ts.map +1 -1
- package/dist/src/openai.js +129 -288
- package/dist/src/openai.js.map +1 -1
- package/dist/src/transport.d.ts +40 -0
- package/dist/src/transport.d.ts.map +1 -0
- package/dist/src/transport.js +136 -0
- package/dist/src/transport.js.map +1 -0
- package/dist/src/types.d.ts +198 -22
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js.map +1 -1
- package/dist/src/zod.d.ts +1729 -16
- package/dist/src/zod.d.ts.map +1 -1
- package/dist/src/zod.js +445 -33
- package/dist/src/zod.js.map +1 -1
- package/package.json +1 -1
package/dist/src/zod.d.ts
CHANGED
|
@@ -120,6 +120,34 @@ export declare const OpenAiChatRequestSchema: z.ZodObject<{
|
|
|
120
120
|
export declare const OpenAiStoredCompletionUpdateRequestSchema: z.ZodObject<{
|
|
121
121
|
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
122
122
|
}, z.core.$strip>;
|
|
123
|
+
export declare const OpenAiCompletionPromptSchema: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodArray<z.ZodNumber>>]>;
|
|
124
|
+
export declare const OpenAiCompletionStreamOptionsSchema: z.ZodObject<{
|
|
125
|
+
include_obfuscation: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
include_usage: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
export declare const OpenAiCompletionRequestSchema: z.ZodObject<{
|
|
129
|
+
model: z.ZodString;
|
|
130
|
+
prompt: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodArray<z.ZodNumber>>]>;
|
|
131
|
+
best_of: z.ZodOptional<z.ZodNumber>;
|
|
132
|
+
echo: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
frequency_penalty: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
logit_bias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
135
|
+
logprobs: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
n: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
presence_penalty: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
stop: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
141
|
+
stream: z.ZodOptional<z.ZodBoolean>;
|
|
142
|
+
stream_options: z.ZodOptional<z.ZodObject<{
|
|
143
|
+
include_obfuscation: z.ZodOptional<z.ZodBoolean>;
|
|
144
|
+
include_usage: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
+
}, z.core.$strip>>;
|
|
146
|
+
suffix: z.ZodOptional<z.ZodString>;
|
|
147
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
148
|
+
top_p: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
user: z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, z.core.$strip>;
|
|
123
151
|
export declare const OpenAiEmbeddingRequestSchema: z.ZodObject<{
|
|
124
152
|
input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodArray<z.ZodNumber>>]>;
|
|
125
153
|
model: z.ZodString;
|
|
@@ -137,8 +165,8 @@ export declare const OpenAiImageEditRequestSchema: z.ZodObject<{
|
|
|
137
165
|
model: z.ZodOptional<z.ZodString>;
|
|
138
166
|
n: z.ZodOptional<z.ZodNumber>;
|
|
139
167
|
size: z.ZodOptional<z.ZodEnum<{
|
|
140
|
-
"256x256": "256x256";
|
|
141
168
|
auto: "auto";
|
|
169
|
+
"256x256": "256x256";
|
|
142
170
|
"512x512": "512x512";
|
|
143
171
|
"1024x1024": "1024x1024";
|
|
144
172
|
"1536x1024": "1536x1024";
|
|
@@ -223,9 +251,9 @@ export declare const OpenAiSpeechRequestSchema: z.ZodObject<{
|
|
|
223
251
|
input: z.ZodString;
|
|
224
252
|
voice: z.ZodEnum<{
|
|
225
253
|
alloy: "alloy";
|
|
254
|
+
echo: "echo";
|
|
226
255
|
ash: "ash";
|
|
227
256
|
coral: "coral";
|
|
228
|
-
echo: "echo";
|
|
229
257
|
fable: "fable";
|
|
230
258
|
onyx: "onyx";
|
|
231
259
|
nova: "nova";
|
|
@@ -292,9 +320,9 @@ export declare const OpenAiModerationRequestSchema: z.ZodObject<{
|
|
|
292
320
|
export declare const OpenAiFileUploadRequestSchema: z.ZodObject<{
|
|
293
321
|
file: z.ZodCustom<Blob, Blob>;
|
|
294
322
|
purpose: z.ZodEnum<{
|
|
323
|
+
"fine-tune": "fine-tune";
|
|
295
324
|
assistants: "assistants";
|
|
296
325
|
batch: "batch";
|
|
297
|
-
"fine-tune": "fine-tune";
|
|
298
326
|
vision: "vision";
|
|
299
327
|
user_data: "user_data";
|
|
300
328
|
evals: "evals";
|
|
@@ -304,6 +332,128 @@ export declare const OpenAiFileUploadRequestSchema: z.ZodObject<{
|
|
|
304
332
|
seconds: z.ZodNumber;
|
|
305
333
|
}, z.core.$strip>>;
|
|
306
334
|
}, z.core.$strip>;
|
|
335
|
+
export declare const OpenAiContainerMemoryLimitSchema: z.ZodEnum<{
|
|
336
|
+
"1g": "1g";
|
|
337
|
+
"4g": "4g";
|
|
338
|
+
"16g": "16g";
|
|
339
|
+
"64g": "64g";
|
|
340
|
+
}>;
|
|
341
|
+
export declare const OpenAiContainerNetworkPolicyDomainSecretSchema: z.ZodObject<{
|
|
342
|
+
domain: z.ZodString;
|
|
343
|
+
name: z.ZodString;
|
|
344
|
+
value: z.ZodString;
|
|
345
|
+
}, z.core.$strip>;
|
|
346
|
+
export declare const OpenAiContainerNetworkPolicyDisabledSchema: z.ZodObject<{
|
|
347
|
+
type: z.ZodLiteral<"disabled">;
|
|
348
|
+
}, z.core.$strip>;
|
|
349
|
+
export declare const OpenAiContainerNetworkPolicyAllowlistSchema: z.ZodObject<{
|
|
350
|
+
allowed_domains: z.ZodArray<z.ZodString>;
|
|
351
|
+
type: z.ZodLiteral<"allowlist">;
|
|
352
|
+
domain_secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
353
|
+
domain: z.ZodString;
|
|
354
|
+
name: z.ZodString;
|
|
355
|
+
value: z.ZodString;
|
|
356
|
+
}, z.core.$strip>>>;
|
|
357
|
+
}, z.core.$strip>;
|
|
358
|
+
export declare const OpenAiContainerNetworkPolicySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
359
|
+
type: z.ZodLiteral<"disabled">;
|
|
360
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
361
|
+
allowed_domains: z.ZodArray<z.ZodString>;
|
|
362
|
+
type: z.ZodLiteral<"allowlist">;
|
|
363
|
+
domain_secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
364
|
+
domain: z.ZodString;
|
|
365
|
+
name: z.ZodString;
|
|
366
|
+
value: z.ZodString;
|
|
367
|
+
}, z.core.$strip>>>;
|
|
368
|
+
}, z.core.$strip>], "type">;
|
|
369
|
+
export declare const OpenAiContainerSkillReferenceSchema: z.ZodObject<{
|
|
370
|
+
skill_id: z.ZodString;
|
|
371
|
+
type: z.ZodLiteral<"skill_reference">;
|
|
372
|
+
version: z.ZodOptional<z.ZodString>;
|
|
373
|
+
}, z.core.$strip>;
|
|
374
|
+
export declare const OpenAiContainerInlineSkillSourceSchema: z.ZodObject<{
|
|
375
|
+
data: z.ZodString;
|
|
376
|
+
media_type: z.ZodLiteral<"application/zip">;
|
|
377
|
+
type: z.ZodLiteral<"base64">;
|
|
378
|
+
}, z.core.$strip>;
|
|
379
|
+
export declare const OpenAiContainerInlineSkillSchema: z.ZodObject<{
|
|
380
|
+
description: z.ZodString;
|
|
381
|
+
name: z.ZodString;
|
|
382
|
+
source: z.ZodObject<{
|
|
383
|
+
data: z.ZodString;
|
|
384
|
+
media_type: z.ZodLiteral<"application/zip">;
|
|
385
|
+
type: z.ZodLiteral<"base64">;
|
|
386
|
+
}, z.core.$strip>;
|
|
387
|
+
type: z.ZodLiteral<"inline">;
|
|
388
|
+
}, z.core.$strip>;
|
|
389
|
+
export declare const OpenAiContainerSkillSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
390
|
+
skill_id: z.ZodString;
|
|
391
|
+
type: z.ZodLiteral<"skill_reference">;
|
|
392
|
+
version: z.ZodOptional<z.ZodString>;
|
|
393
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
394
|
+
description: z.ZodString;
|
|
395
|
+
name: z.ZodString;
|
|
396
|
+
source: z.ZodObject<{
|
|
397
|
+
data: z.ZodString;
|
|
398
|
+
media_type: z.ZodLiteral<"application/zip">;
|
|
399
|
+
type: z.ZodLiteral<"base64">;
|
|
400
|
+
}, z.core.$strip>;
|
|
401
|
+
type: z.ZodLiteral<"inline">;
|
|
402
|
+
}, z.core.$strip>], "type">;
|
|
403
|
+
export declare const OpenAiContainerCreateRequestSchema: z.ZodObject<{
|
|
404
|
+
name: z.ZodString;
|
|
405
|
+
expires_after: z.ZodOptional<z.ZodObject<{
|
|
406
|
+
anchor: z.ZodLiteral<"last_active_at">;
|
|
407
|
+
minutes: z.ZodNumber;
|
|
408
|
+
}, z.core.$strip>>;
|
|
409
|
+
file_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
410
|
+
memory_limit: z.ZodOptional<z.ZodEnum<{
|
|
411
|
+
"1g": "1g";
|
|
412
|
+
"4g": "4g";
|
|
413
|
+
"16g": "16g";
|
|
414
|
+
"64g": "64g";
|
|
415
|
+
}>>;
|
|
416
|
+
network_policy: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
417
|
+
type: z.ZodLiteral<"disabled">;
|
|
418
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
419
|
+
allowed_domains: z.ZodArray<z.ZodString>;
|
|
420
|
+
type: z.ZodLiteral<"allowlist">;
|
|
421
|
+
domain_secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
422
|
+
domain: z.ZodString;
|
|
423
|
+
name: z.ZodString;
|
|
424
|
+
value: z.ZodString;
|
|
425
|
+
}, z.core.$strip>>>;
|
|
426
|
+
}, z.core.$strip>], "type">>;
|
|
427
|
+
skills: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
428
|
+
skill_id: z.ZodString;
|
|
429
|
+
type: z.ZodLiteral<"skill_reference">;
|
|
430
|
+
version: z.ZodOptional<z.ZodString>;
|
|
431
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
432
|
+
description: z.ZodString;
|
|
433
|
+
name: z.ZodString;
|
|
434
|
+
source: z.ZodObject<{
|
|
435
|
+
data: z.ZodString;
|
|
436
|
+
media_type: z.ZodLiteral<"application/zip">;
|
|
437
|
+
type: z.ZodLiteral<"base64">;
|
|
438
|
+
}, z.core.$strip>;
|
|
439
|
+
type: z.ZodLiteral<"inline">;
|
|
440
|
+
}, z.core.$strip>], "type">>>;
|
|
441
|
+
}, z.core.$strip>;
|
|
442
|
+
export declare const OpenAiUploadCreateRequestSchema: z.ZodObject<{
|
|
443
|
+
bytes: z.ZodNumber;
|
|
444
|
+
filename: z.ZodString;
|
|
445
|
+
mime_type: z.ZodString;
|
|
446
|
+
purpose: z.ZodEnum<{
|
|
447
|
+
"fine-tune": "fine-tune";
|
|
448
|
+
assistants: "assistants";
|
|
449
|
+
batch: "batch";
|
|
450
|
+
vision: "vision";
|
|
451
|
+
}>;
|
|
452
|
+
expires_after: z.ZodOptional<z.ZodObject<{
|
|
453
|
+
anchor: z.ZodLiteral<"created_at">;
|
|
454
|
+
seconds: z.ZodNumber;
|
|
455
|
+
}, z.core.$strip>>;
|
|
456
|
+
}, z.core.$strip>;
|
|
307
457
|
export declare const OpenAiBatchCreateRequestSchema: z.ZodObject<{
|
|
308
458
|
input_file_id: z.ZodString;
|
|
309
459
|
endpoint: z.ZodString;
|
|
@@ -828,21 +978,266 @@ export declare const OpenAiResponseInputTokensRequestSchema: z.ZodObject<{
|
|
|
828
978
|
disabled: "disabled";
|
|
829
979
|
}>>;
|
|
830
980
|
}, z.core.$strip>;
|
|
831
|
-
export declare const
|
|
832
|
-
|
|
981
|
+
export declare const OpenAiEvalCustomDataSourceConfigSchema: z.ZodObject<{
|
|
982
|
+
type: z.ZodLiteral<"custom">;
|
|
983
|
+
item_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
984
|
+
include_sample_schema: z.ZodOptional<z.ZodBoolean>;
|
|
985
|
+
}, z.core.$strip>;
|
|
986
|
+
export declare const OpenAiEvalLogsDataSourceConfigSchema: z.ZodObject<{
|
|
987
|
+
type: z.ZodLiteral<"logs">;
|
|
988
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
989
|
+
}, z.core.$strip>;
|
|
990
|
+
export declare const OpenAiEvalStoredCompletionsDataSourceConfigSchema: z.ZodObject<{
|
|
991
|
+
type: z.ZodLiteral<"stored_completions">;
|
|
992
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
993
|
+
}, z.core.$strip>;
|
|
994
|
+
export declare const OpenAiEvalDataSourceConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
995
|
+
type: z.ZodLiteral<"custom">;
|
|
996
|
+
item_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
997
|
+
include_sample_schema: z.ZodOptional<z.ZodBoolean>;
|
|
998
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
999
|
+
type: z.ZodLiteral<"logs">;
|
|
1000
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1001
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1002
|
+
type: z.ZodLiteral<"stored_completions">;
|
|
1003
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1004
|
+
}, z.core.$strip>], "type">;
|
|
1005
|
+
export declare const OpenAiEvalOutputTextContentSchema: z.ZodObject<{
|
|
1006
|
+
type: z.ZodLiteral<"output_text">;
|
|
1007
|
+
text: z.ZodString;
|
|
1008
|
+
}, z.core.$strip>;
|
|
1009
|
+
export declare const OpenAiEvalInputImageContentSchema: z.ZodObject<{
|
|
1010
|
+
type: z.ZodLiteral<"input_image">;
|
|
1011
|
+
image_url: z.ZodString;
|
|
1012
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1013
|
+
auto: "auto";
|
|
1014
|
+
low: "low";
|
|
1015
|
+
high: "high";
|
|
1016
|
+
}>>;
|
|
1017
|
+
}, z.core.$strip>;
|
|
1018
|
+
export declare const OpenAiEvalInputAudioContentSchema: z.ZodObject<{
|
|
1019
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1020
|
+
input_audio: z.ZodObject<{
|
|
1021
|
+
data: z.ZodString;
|
|
1022
|
+
format: z.ZodEnum<{
|
|
1023
|
+
mp3: "mp3";
|
|
1024
|
+
wav: "wav";
|
|
1025
|
+
}>;
|
|
1026
|
+
}, z.core.$strip>;
|
|
1027
|
+
}, z.core.$strip>;
|
|
1028
|
+
export declare const OpenAiEvalMessageContentPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1029
|
+
type: z.ZodLiteral<"input_text">;
|
|
1030
|
+
text: z.ZodString;
|
|
1031
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1032
|
+
type: z.ZodLiteral<"output_text">;
|
|
1033
|
+
text: z.ZodString;
|
|
1034
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1035
|
+
type: z.ZodLiteral<"input_image">;
|
|
1036
|
+
image_url: z.ZodString;
|
|
1037
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1038
|
+
auto: "auto";
|
|
1039
|
+
low: "low";
|
|
1040
|
+
high: "high";
|
|
1041
|
+
}>>;
|
|
1042
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1043
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1044
|
+
input_audio: z.ZodObject<{
|
|
1045
|
+
data: z.ZodString;
|
|
1046
|
+
format: z.ZodEnum<{
|
|
1047
|
+
mp3: "mp3";
|
|
1048
|
+
wav: "wav";
|
|
1049
|
+
}>;
|
|
1050
|
+
}, z.core.$strip>;
|
|
1051
|
+
}, z.core.$strip>], "type">;
|
|
1052
|
+
export declare const OpenAiEvalMessageContentSchema: z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1053
|
+
type: z.ZodLiteral<"input_text">;
|
|
1054
|
+
text: z.ZodString;
|
|
1055
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1056
|
+
type: z.ZodLiteral<"output_text">;
|
|
1057
|
+
text: z.ZodString;
|
|
1058
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1059
|
+
type: z.ZodLiteral<"input_image">;
|
|
1060
|
+
image_url: z.ZodString;
|
|
1061
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1062
|
+
auto: "auto";
|
|
1063
|
+
low: "low";
|
|
1064
|
+
high: "high";
|
|
1065
|
+
}>>;
|
|
1066
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1067
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1068
|
+
input_audio: z.ZodObject<{
|
|
1069
|
+
data: z.ZodString;
|
|
1070
|
+
format: z.ZodEnum<{
|
|
1071
|
+
mp3: "mp3";
|
|
1072
|
+
wav: "wav";
|
|
1073
|
+
}>;
|
|
1074
|
+
}, z.core.$strip>;
|
|
1075
|
+
}, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1076
|
+
type: z.ZodLiteral<"input_text">;
|
|
1077
|
+
text: z.ZodString;
|
|
1078
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1079
|
+
type: z.ZodLiteral<"output_text">;
|
|
1080
|
+
text: z.ZodString;
|
|
1081
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1082
|
+
type: z.ZodLiteral<"input_image">;
|
|
1083
|
+
image_url: z.ZodString;
|
|
1084
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1085
|
+
auto: "auto";
|
|
1086
|
+
low: "low";
|
|
1087
|
+
high: "high";
|
|
1088
|
+
}>>;
|
|
1089
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1090
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1091
|
+
input_audio: z.ZodObject<{
|
|
1092
|
+
data: z.ZodString;
|
|
1093
|
+
format: z.ZodEnum<{
|
|
1094
|
+
mp3: "mp3";
|
|
1095
|
+
wav: "wav";
|
|
1096
|
+
}>;
|
|
1097
|
+
}, z.core.$strip>;
|
|
1098
|
+
}, z.core.$strip>], "type">>]>;
|
|
1099
|
+
export declare const OpenAiEvalSimpleInputMessageSchema: z.ZodObject<{
|
|
1100
|
+
role: z.ZodString;
|
|
1101
|
+
content: z.ZodString;
|
|
1102
|
+
}, z.core.$strip>;
|
|
1103
|
+
export declare const OpenAiEvalMessageObjectSchema: z.ZodObject<{
|
|
1104
|
+
role: z.ZodEnum<{
|
|
1105
|
+
user: "user";
|
|
1106
|
+
assistant: "assistant";
|
|
1107
|
+
system: "system";
|
|
1108
|
+
developer: "developer";
|
|
1109
|
+
}>;
|
|
1110
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1111
|
+
type: z.ZodLiteral<"input_text">;
|
|
1112
|
+
text: z.ZodString;
|
|
1113
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1114
|
+
type: z.ZodLiteral<"output_text">;
|
|
1115
|
+
text: z.ZodString;
|
|
1116
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1117
|
+
type: z.ZodLiteral<"input_image">;
|
|
1118
|
+
image_url: z.ZodString;
|
|
1119
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1120
|
+
auto: "auto";
|
|
1121
|
+
low: "low";
|
|
1122
|
+
high: "high";
|
|
1123
|
+
}>>;
|
|
1124
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1125
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1126
|
+
input_audio: z.ZodObject<{
|
|
1127
|
+
data: z.ZodString;
|
|
1128
|
+
format: z.ZodEnum<{
|
|
1129
|
+
mp3: "mp3";
|
|
1130
|
+
wav: "wav";
|
|
1131
|
+
}>;
|
|
1132
|
+
}, z.core.$strip>;
|
|
1133
|
+
}, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1134
|
+
type: z.ZodLiteral<"input_text">;
|
|
1135
|
+
text: z.ZodString;
|
|
1136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1137
|
+
type: z.ZodLiteral<"output_text">;
|
|
1138
|
+
text: z.ZodString;
|
|
1139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1140
|
+
type: z.ZodLiteral<"input_image">;
|
|
1141
|
+
image_url: z.ZodString;
|
|
1142
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1143
|
+
auto: "auto";
|
|
1144
|
+
low: "low";
|
|
1145
|
+
high: "high";
|
|
1146
|
+
}>>;
|
|
1147
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1148
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1149
|
+
input_audio: z.ZodObject<{
|
|
1150
|
+
data: z.ZodString;
|
|
1151
|
+
format: z.ZodEnum<{
|
|
1152
|
+
mp3: "mp3";
|
|
1153
|
+
wav: "wav";
|
|
1154
|
+
}>;
|
|
1155
|
+
}, z.core.$strip>;
|
|
1156
|
+
}, z.core.$strip>], "type">>]>;
|
|
1157
|
+
type: z.ZodOptional<z.ZodLiteral<"message">>;
|
|
1158
|
+
}, z.core.$strip>;
|
|
1159
|
+
export declare const OpenAiEvalInputMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1160
|
+
role: z.ZodString;
|
|
1161
|
+
content: z.ZodString;
|
|
1162
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1163
|
+
role: z.ZodEnum<{
|
|
1164
|
+
user: "user";
|
|
1165
|
+
assistant: "assistant";
|
|
1166
|
+
system: "system";
|
|
1167
|
+
developer: "developer";
|
|
1168
|
+
}>;
|
|
1169
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1170
|
+
type: z.ZodLiteral<"input_text">;
|
|
1171
|
+
text: z.ZodString;
|
|
1172
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1173
|
+
type: z.ZodLiteral<"output_text">;
|
|
1174
|
+
text: z.ZodString;
|
|
1175
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1176
|
+
type: z.ZodLiteral<"input_image">;
|
|
1177
|
+
image_url: z.ZodString;
|
|
1178
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1179
|
+
auto: "auto";
|
|
1180
|
+
low: "low";
|
|
1181
|
+
high: "high";
|
|
1182
|
+
}>>;
|
|
1183
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1184
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1185
|
+
input_audio: z.ZodObject<{
|
|
1186
|
+
data: z.ZodString;
|
|
1187
|
+
format: z.ZodEnum<{
|
|
1188
|
+
mp3: "mp3";
|
|
1189
|
+
wav: "wav";
|
|
1190
|
+
}>;
|
|
1191
|
+
}, z.core.$strip>;
|
|
1192
|
+
}, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1193
|
+
type: z.ZodLiteral<"input_text">;
|
|
1194
|
+
text: z.ZodString;
|
|
1195
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1196
|
+
type: z.ZodLiteral<"output_text">;
|
|
1197
|
+
text: z.ZodString;
|
|
1198
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1199
|
+
type: z.ZodLiteral<"input_image">;
|
|
1200
|
+
image_url: z.ZodString;
|
|
1201
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1202
|
+
auto: "auto";
|
|
1203
|
+
low: "low";
|
|
1204
|
+
high: "high";
|
|
1205
|
+
}>>;
|
|
1206
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1207
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1208
|
+
input_audio: z.ZodObject<{
|
|
1209
|
+
data: z.ZodString;
|
|
1210
|
+
format: z.ZodEnum<{
|
|
1211
|
+
mp3: "mp3";
|
|
1212
|
+
wav: "wav";
|
|
1213
|
+
}>;
|
|
1214
|
+
}, z.core.$strip>;
|
|
1215
|
+
}, z.core.$strip>], "type">>]>;
|
|
1216
|
+
type: z.ZodOptional<z.ZodLiteral<"message">>;
|
|
1217
|
+
}, z.core.$strip>]>;
|
|
1218
|
+
export declare const OpenAiEvalLabelModelGraderSchema: z.ZodObject<{
|
|
1219
|
+
type: z.ZodLiteral<"label_model">;
|
|
1220
|
+
name: z.ZodString;
|
|
1221
|
+
model: z.ZodString;
|
|
1222
|
+
input: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1223
|
+
role: z.ZodString;
|
|
1224
|
+
content: z.ZodString;
|
|
1225
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
833
1226
|
role: z.ZodEnum<{
|
|
834
1227
|
user: "user";
|
|
835
1228
|
assistant: "assistant";
|
|
836
1229
|
system: "system";
|
|
837
1230
|
developer: "developer";
|
|
838
1231
|
}>;
|
|
839
|
-
content: z.ZodUnion<readonly [z.ZodString, z.
|
|
1232
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
840
1233
|
type: z.ZodLiteral<"input_text">;
|
|
841
1234
|
text: z.ZodString;
|
|
1235
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1236
|
+
type: z.ZodLiteral<"output_text">;
|
|
1237
|
+
text: z.ZodString;
|
|
842
1238
|
}, z.core.$strip>, z.ZodObject<{
|
|
843
1239
|
type: z.ZodLiteral<"input_image">;
|
|
844
|
-
image_url: z.
|
|
845
|
-
file_id: z.ZodOptional<z.ZodString>;
|
|
1240
|
+
image_url: z.ZodString;
|
|
846
1241
|
detail: z.ZodOptional<z.ZodEnum<{
|
|
847
1242
|
auto: "auto";
|
|
848
1243
|
low: "low";
|
|
@@ -850,14 +1245,493 @@ export declare const OpenAiConversationCreateRequestSchema: z.ZodObject<{
|
|
|
850
1245
|
}>>;
|
|
851
1246
|
}, z.core.$strip>, z.ZodObject<{
|
|
852
1247
|
type: z.ZodLiteral<"input_audio">;
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
1248
|
+
input_audio: z.ZodObject<{
|
|
1249
|
+
data: z.ZodString;
|
|
1250
|
+
format: z.ZodEnum<{
|
|
1251
|
+
mp3: "mp3";
|
|
1252
|
+
wav: "wav";
|
|
1253
|
+
}>;
|
|
1254
|
+
}, z.core.$strip>;
|
|
1255
|
+
}, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1256
|
+
type: z.ZodLiteral<"input_text">;
|
|
1257
|
+
text: z.ZodString;
|
|
1258
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1259
|
+
type: z.ZodLiteral<"output_text">;
|
|
1260
|
+
text: z.ZodString;
|
|
1261
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1262
|
+
type: z.ZodLiteral<"input_image">;
|
|
1263
|
+
image_url: z.ZodString;
|
|
1264
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1265
|
+
auto: "auto";
|
|
1266
|
+
low: "low";
|
|
1267
|
+
high: "high";
|
|
1268
|
+
}>>;
|
|
1269
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1270
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1271
|
+
input_audio: z.ZodObject<{
|
|
1272
|
+
data: z.ZodString;
|
|
1273
|
+
format: z.ZodEnum<{
|
|
1274
|
+
mp3: "mp3";
|
|
1275
|
+
wav: "wav";
|
|
1276
|
+
}>;
|
|
1277
|
+
}, z.core.$strip>;
|
|
1278
|
+
}, z.core.$strip>], "type">>]>;
|
|
1279
|
+
type: z.ZodOptional<z.ZodLiteral<"message">>;
|
|
1280
|
+
}, z.core.$strip>]>>;
|
|
1281
|
+
labels: z.ZodArray<z.ZodString>;
|
|
1282
|
+
passing_labels: z.ZodArray<z.ZodString>;
|
|
1283
|
+
}, z.core.$strip>;
|
|
1284
|
+
export declare const OpenAiEvalStringCheckGraderSchema: z.ZodObject<{
|
|
1285
|
+
type: z.ZodLiteral<"string_check">;
|
|
1286
|
+
name: z.ZodString;
|
|
1287
|
+
input: z.ZodString;
|
|
1288
|
+
operation: z.ZodEnum<{
|
|
1289
|
+
eq: "eq";
|
|
1290
|
+
ne: "ne";
|
|
1291
|
+
like: "like";
|
|
1292
|
+
ilike: "ilike";
|
|
1293
|
+
}>;
|
|
1294
|
+
reference: z.ZodString;
|
|
1295
|
+
}, z.core.$strip>;
|
|
1296
|
+
export declare const OpenAiEvalTextSimilarityGraderSchema: z.ZodObject<{
|
|
1297
|
+
type: z.ZodLiteral<"text_similarity">;
|
|
1298
|
+
name: z.ZodString;
|
|
1299
|
+
input: z.ZodString;
|
|
1300
|
+
reference: z.ZodString;
|
|
1301
|
+
evaluation_metric: z.ZodString;
|
|
1302
|
+
pass_threshold: z.ZodNumber;
|
|
1303
|
+
}, z.core.$strip>;
|
|
1304
|
+
export declare const OpenAiEvalPythonGraderSchema: z.ZodObject<{
|
|
1305
|
+
type: z.ZodLiteral<"python">;
|
|
1306
|
+
name: z.ZodString;
|
|
1307
|
+
source: z.ZodString;
|
|
1308
|
+
image_tag: z.ZodOptional<z.ZodString>;
|
|
1309
|
+
pass_threshold: z.ZodOptional<z.ZodNumber>;
|
|
1310
|
+
}, z.core.$strip>;
|
|
1311
|
+
export declare const OpenAiEvalScoreModelGraderSchema: z.ZodObject<{
|
|
1312
|
+
type: z.ZodLiteral<"score_model">;
|
|
1313
|
+
name: z.ZodString;
|
|
1314
|
+
model: z.ZodString;
|
|
1315
|
+
input: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1316
|
+
role: z.ZodString;
|
|
1317
|
+
content: z.ZodString;
|
|
1318
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1319
|
+
role: z.ZodEnum<{
|
|
1320
|
+
user: "user";
|
|
1321
|
+
assistant: "assistant";
|
|
1322
|
+
system: "system";
|
|
1323
|
+
developer: "developer";
|
|
1324
|
+
}>;
|
|
1325
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1326
|
+
type: z.ZodLiteral<"input_text">;
|
|
1327
|
+
text: z.ZodString;
|
|
1328
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1329
|
+
type: z.ZodLiteral<"output_text">;
|
|
1330
|
+
text: z.ZodString;
|
|
1331
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1332
|
+
type: z.ZodLiteral<"input_image">;
|
|
1333
|
+
image_url: z.ZodString;
|
|
1334
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1335
|
+
auto: "auto";
|
|
1336
|
+
low: "low";
|
|
1337
|
+
high: "high";
|
|
1338
|
+
}>>;
|
|
1339
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1340
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1341
|
+
input_audio: z.ZodObject<{
|
|
1342
|
+
data: z.ZodString;
|
|
1343
|
+
format: z.ZodEnum<{
|
|
1344
|
+
mp3: "mp3";
|
|
1345
|
+
wav: "wav";
|
|
1346
|
+
}>;
|
|
1347
|
+
}, z.core.$strip>;
|
|
1348
|
+
}, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1349
|
+
type: z.ZodLiteral<"input_text">;
|
|
1350
|
+
text: z.ZodString;
|
|
1351
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1352
|
+
type: z.ZodLiteral<"output_text">;
|
|
1353
|
+
text: z.ZodString;
|
|
1354
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1355
|
+
type: z.ZodLiteral<"input_image">;
|
|
1356
|
+
image_url: z.ZodString;
|
|
1357
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1358
|
+
auto: "auto";
|
|
1359
|
+
low: "low";
|
|
1360
|
+
high: "high";
|
|
1361
|
+
}>>;
|
|
1362
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1363
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1364
|
+
input_audio: z.ZodObject<{
|
|
1365
|
+
data: z.ZodString;
|
|
1366
|
+
format: z.ZodEnum<{
|
|
1367
|
+
mp3: "mp3";
|
|
1368
|
+
wav: "wav";
|
|
1369
|
+
}>;
|
|
1370
|
+
}, z.core.$strip>;
|
|
1371
|
+
}, z.core.$strip>], "type">>]>;
|
|
1372
|
+
type: z.ZodOptional<z.ZodLiteral<"message">>;
|
|
1373
|
+
}, z.core.$strip>]>>;
|
|
1374
|
+
pass_threshold: z.ZodOptional<z.ZodNumber>;
|
|
1375
|
+
range: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1376
|
+
sampling_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1377
|
+
}, z.core.$strip>;
|
|
1378
|
+
export declare const OpenAiEvalGraderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1379
|
+
type: z.ZodLiteral<"label_model">;
|
|
1380
|
+
name: z.ZodString;
|
|
1381
|
+
model: z.ZodString;
|
|
1382
|
+
input: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1383
|
+
role: z.ZodString;
|
|
1384
|
+
content: z.ZodString;
|
|
1385
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1386
|
+
role: z.ZodEnum<{
|
|
1387
|
+
user: "user";
|
|
1388
|
+
assistant: "assistant";
|
|
1389
|
+
system: "system";
|
|
1390
|
+
developer: "developer";
|
|
1391
|
+
}>;
|
|
1392
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1393
|
+
type: z.ZodLiteral<"input_text">;
|
|
1394
|
+
text: z.ZodString;
|
|
1395
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1396
|
+
type: z.ZodLiteral<"output_text">;
|
|
1397
|
+
text: z.ZodString;
|
|
1398
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1399
|
+
type: z.ZodLiteral<"input_image">;
|
|
1400
|
+
image_url: z.ZodString;
|
|
1401
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1402
|
+
auto: "auto";
|
|
1403
|
+
low: "low";
|
|
1404
|
+
high: "high";
|
|
1405
|
+
}>>;
|
|
1406
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1407
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1408
|
+
input_audio: z.ZodObject<{
|
|
1409
|
+
data: z.ZodString;
|
|
1410
|
+
format: z.ZodEnum<{
|
|
1411
|
+
mp3: "mp3";
|
|
1412
|
+
wav: "wav";
|
|
1413
|
+
}>;
|
|
1414
|
+
}, z.core.$strip>;
|
|
1415
|
+
}, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1416
|
+
type: z.ZodLiteral<"input_text">;
|
|
1417
|
+
text: z.ZodString;
|
|
1418
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1419
|
+
type: z.ZodLiteral<"output_text">;
|
|
1420
|
+
text: z.ZodString;
|
|
1421
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1422
|
+
type: z.ZodLiteral<"input_image">;
|
|
1423
|
+
image_url: z.ZodString;
|
|
1424
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1425
|
+
auto: "auto";
|
|
1426
|
+
low: "low";
|
|
1427
|
+
high: "high";
|
|
1428
|
+
}>>;
|
|
1429
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1430
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1431
|
+
input_audio: z.ZodObject<{
|
|
1432
|
+
data: z.ZodString;
|
|
1433
|
+
format: z.ZodEnum<{
|
|
1434
|
+
mp3: "mp3";
|
|
1435
|
+
wav: "wav";
|
|
1436
|
+
}>;
|
|
1437
|
+
}, z.core.$strip>;
|
|
1438
|
+
}, z.core.$strip>], "type">>]>;
|
|
1439
|
+
type: z.ZodOptional<z.ZodLiteral<"message">>;
|
|
1440
|
+
}, z.core.$strip>]>>;
|
|
1441
|
+
labels: z.ZodArray<z.ZodString>;
|
|
1442
|
+
passing_labels: z.ZodArray<z.ZodString>;
|
|
1443
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1444
|
+
type: z.ZodLiteral<"string_check">;
|
|
1445
|
+
name: z.ZodString;
|
|
1446
|
+
input: z.ZodString;
|
|
1447
|
+
operation: z.ZodEnum<{
|
|
1448
|
+
eq: "eq";
|
|
1449
|
+
ne: "ne";
|
|
1450
|
+
like: "like";
|
|
1451
|
+
ilike: "ilike";
|
|
1452
|
+
}>;
|
|
1453
|
+
reference: z.ZodString;
|
|
1454
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1455
|
+
type: z.ZodLiteral<"text_similarity">;
|
|
1456
|
+
name: z.ZodString;
|
|
1457
|
+
input: z.ZodString;
|
|
1458
|
+
reference: z.ZodString;
|
|
1459
|
+
evaluation_metric: z.ZodString;
|
|
1460
|
+
pass_threshold: z.ZodNumber;
|
|
1461
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1462
|
+
type: z.ZodLiteral<"python">;
|
|
1463
|
+
name: z.ZodString;
|
|
1464
|
+
source: z.ZodString;
|
|
1465
|
+
image_tag: z.ZodOptional<z.ZodString>;
|
|
1466
|
+
pass_threshold: z.ZodOptional<z.ZodNumber>;
|
|
1467
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1468
|
+
type: z.ZodLiteral<"score_model">;
|
|
1469
|
+
name: z.ZodString;
|
|
1470
|
+
model: z.ZodString;
|
|
1471
|
+
input: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1472
|
+
role: z.ZodString;
|
|
1473
|
+
content: z.ZodString;
|
|
1474
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1475
|
+
role: z.ZodEnum<{
|
|
1476
|
+
user: "user";
|
|
1477
|
+
assistant: "assistant";
|
|
1478
|
+
system: "system";
|
|
1479
|
+
developer: "developer";
|
|
1480
|
+
}>;
|
|
1481
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1482
|
+
type: z.ZodLiteral<"input_text">;
|
|
1483
|
+
text: z.ZodString;
|
|
1484
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1485
|
+
type: z.ZodLiteral<"output_text">;
|
|
1486
|
+
text: z.ZodString;
|
|
1487
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1488
|
+
type: z.ZodLiteral<"input_image">;
|
|
1489
|
+
image_url: z.ZodString;
|
|
1490
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1491
|
+
auto: "auto";
|
|
1492
|
+
low: "low";
|
|
1493
|
+
high: "high";
|
|
1494
|
+
}>>;
|
|
1495
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1496
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1497
|
+
input_audio: z.ZodObject<{
|
|
1498
|
+
data: z.ZodString;
|
|
1499
|
+
format: z.ZodEnum<{
|
|
1500
|
+
mp3: "mp3";
|
|
1501
|
+
wav: "wav";
|
|
1502
|
+
}>;
|
|
1503
|
+
}, z.core.$strip>;
|
|
1504
|
+
}, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1505
|
+
type: z.ZodLiteral<"input_text">;
|
|
1506
|
+
text: z.ZodString;
|
|
1507
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1508
|
+
type: z.ZodLiteral<"output_text">;
|
|
1509
|
+
text: z.ZodString;
|
|
1510
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1511
|
+
type: z.ZodLiteral<"input_image">;
|
|
1512
|
+
image_url: z.ZodString;
|
|
1513
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1514
|
+
auto: "auto";
|
|
1515
|
+
low: "low";
|
|
1516
|
+
high: "high";
|
|
1517
|
+
}>>;
|
|
1518
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1519
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1520
|
+
input_audio: z.ZodObject<{
|
|
1521
|
+
data: z.ZodString;
|
|
1522
|
+
format: z.ZodEnum<{
|
|
1523
|
+
mp3: "mp3";
|
|
1524
|
+
wav: "wav";
|
|
1525
|
+
}>;
|
|
1526
|
+
}, z.core.$strip>;
|
|
1527
|
+
}, z.core.$strip>], "type">>]>;
|
|
1528
|
+
type: z.ZodOptional<z.ZodLiteral<"message">>;
|
|
1529
|
+
}, z.core.$strip>]>>;
|
|
1530
|
+
pass_threshold: z.ZodOptional<z.ZodNumber>;
|
|
1531
|
+
range: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1532
|
+
sampling_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1533
|
+
}, z.core.$strip>], "type">;
|
|
1534
|
+
export declare const OpenAiEvalCreateRequestSchema: z.ZodObject<{
|
|
1535
|
+
data_source_config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1536
|
+
type: z.ZodLiteral<"custom">;
|
|
1537
|
+
item_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1538
|
+
include_sample_schema: z.ZodOptional<z.ZodBoolean>;
|
|
1539
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1540
|
+
type: z.ZodLiteral<"logs">;
|
|
1541
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1542
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1543
|
+
type: z.ZodLiteral<"stored_completions">;
|
|
1544
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1545
|
+
}, z.core.$strip>], "type">;
|
|
1546
|
+
testing_criteria: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1547
|
+
type: z.ZodLiteral<"label_model">;
|
|
1548
|
+
name: z.ZodString;
|
|
1549
|
+
model: z.ZodString;
|
|
1550
|
+
input: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1551
|
+
role: z.ZodString;
|
|
1552
|
+
content: z.ZodString;
|
|
1553
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1554
|
+
role: z.ZodEnum<{
|
|
1555
|
+
user: "user";
|
|
1556
|
+
assistant: "assistant";
|
|
1557
|
+
system: "system";
|
|
1558
|
+
developer: "developer";
|
|
1559
|
+
}>;
|
|
1560
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1561
|
+
type: z.ZodLiteral<"input_text">;
|
|
1562
|
+
text: z.ZodString;
|
|
1563
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1564
|
+
type: z.ZodLiteral<"output_text">;
|
|
1565
|
+
text: z.ZodString;
|
|
1566
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1567
|
+
type: z.ZodLiteral<"input_image">;
|
|
1568
|
+
image_url: z.ZodString;
|
|
1569
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1570
|
+
auto: "auto";
|
|
1571
|
+
low: "low";
|
|
1572
|
+
high: "high";
|
|
1573
|
+
}>>;
|
|
1574
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1575
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1576
|
+
input_audio: z.ZodObject<{
|
|
1577
|
+
data: z.ZodString;
|
|
1578
|
+
format: z.ZodEnum<{
|
|
1579
|
+
mp3: "mp3";
|
|
1580
|
+
wav: "wav";
|
|
1581
|
+
}>;
|
|
1582
|
+
}, z.core.$strip>;
|
|
1583
|
+
}, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1584
|
+
type: z.ZodLiteral<"input_text">;
|
|
1585
|
+
text: z.ZodString;
|
|
1586
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1587
|
+
type: z.ZodLiteral<"output_text">;
|
|
1588
|
+
text: z.ZodString;
|
|
1589
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1590
|
+
type: z.ZodLiteral<"input_image">;
|
|
1591
|
+
image_url: z.ZodString;
|
|
1592
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1593
|
+
auto: "auto";
|
|
1594
|
+
low: "low";
|
|
1595
|
+
high: "high";
|
|
1596
|
+
}>>;
|
|
1597
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1598
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1599
|
+
input_audio: z.ZodObject<{
|
|
1600
|
+
data: z.ZodString;
|
|
1601
|
+
format: z.ZodEnum<{
|
|
1602
|
+
mp3: "mp3";
|
|
1603
|
+
wav: "wav";
|
|
1604
|
+
}>;
|
|
1605
|
+
}, z.core.$strip>;
|
|
1606
|
+
}, z.core.$strip>], "type">>]>;
|
|
1607
|
+
type: z.ZodOptional<z.ZodLiteral<"message">>;
|
|
1608
|
+
}, z.core.$strip>]>>;
|
|
1609
|
+
labels: z.ZodArray<z.ZodString>;
|
|
1610
|
+
passing_labels: z.ZodArray<z.ZodString>;
|
|
1611
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1612
|
+
type: z.ZodLiteral<"string_check">;
|
|
1613
|
+
name: z.ZodString;
|
|
1614
|
+
input: z.ZodString;
|
|
1615
|
+
operation: z.ZodEnum<{
|
|
1616
|
+
eq: "eq";
|
|
1617
|
+
ne: "ne";
|
|
1618
|
+
like: "like";
|
|
1619
|
+
ilike: "ilike";
|
|
1620
|
+
}>;
|
|
1621
|
+
reference: z.ZodString;
|
|
1622
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1623
|
+
type: z.ZodLiteral<"text_similarity">;
|
|
1624
|
+
name: z.ZodString;
|
|
1625
|
+
input: z.ZodString;
|
|
1626
|
+
reference: z.ZodString;
|
|
1627
|
+
evaluation_metric: z.ZodString;
|
|
1628
|
+
pass_threshold: z.ZodNumber;
|
|
1629
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1630
|
+
type: z.ZodLiteral<"python">;
|
|
1631
|
+
name: z.ZodString;
|
|
1632
|
+
source: z.ZodString;
|
|
1633
|
+
image_tag: z.ZodOptional<z.ZodString>;
|
|
1634
|
+
pass_threshold: z.ZodOptional<z.ZodNumber>;
|
|
1635
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1636
|
+
type: z.ZodLiteral<"score_model">;
|
|
1637
|
+
name: z.ZodString;
|
|
1638
|
+
model: z.ZodString;
|
|
1639
|
+
input: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1640
|
+
role: z.ZodString;
|
|
1641
|
+
content: z.ZodString;
|
|
1642
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1643
|
+
role: z.ZodEnum<{
|
|
1644
|
+
user: "user";
|
|
1645
|
+
assistant: "assistant";
|
|
1646
|
+
system: "system";
|
|
1647
|
+
developer: "developer";
|
|
1648
|
+
}>;
|
|
1649
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1650
|
+
type: z.ZodLiteral<"input_text">;
|
|
1651
|
+
text: z.ZodString;
|
|
1652
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1653
|
+
type: z.ZodLiteral<"output_text">;
|
|
1654
|
+
text: z.ZodString;
|
|
1655
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1656
|
+
type: z.ZodLiteral<"input_image">;
|
|
1657
|
+
image_url: z.ZodString;
|
|
1658
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1659
|
+
auto: "auto";
|
|
1660
|
+
low: "low";
|
|
1661
|
+
high: "high";
|
|
1662
|
+
}>>;
|
|
1663
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1664
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1665
|
+
input_audio: z.ZodObject<{
|
|
1666
|
+
data: z.ZodString;
|
|
1667
|
+
format: z.ZodEnum<{
|
|
1668
|
+
mp3: "mp3";
|
|
1669
|
+
wav: "wav";
|
|
1670
|
+
}>;
|
|
1671
|
+
}, z.core.$strip>;
|
|
1672
|
+
}, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1673
|
+
type: z.ZodLiteral<"input_text">;
|
|
1674
|
+
text: z.ZodString;
|
|
1675
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1676
|
+
type: z.ZodLiteral<"output_text">;
|
|
1677
|
+
text: z.ZodString;
|
|
1678
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1679
|
+
type: z.ZodLiteral<"input_image">;
|
|
1680
|
+
image_url: z.ZodString;
|
|
1681
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1682
|
+
auto: "auto";
|
|
1683
|
+
low: "low";
|
|
1684
|
+
high: "high";
|
|
1685
|
+
}>>;
|
|
1686
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1687
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1688
|
+
input_audio: z.ZodObject<{
|
|
1689
|
+
data: z.ZodString;
|
|
1690
|
+
format: z.ZodEnum<{
|
|
1691
|
+
mp3: "mp3";
|
|
1692
|
+
wav: "wav";
|
|
1693
|
+
}>;
|
|
1694
|
+
}, z.core.$strip>;
|
|
1695
|
+
}, z.core.$strip>], "type">>]>;
|
|
1696
|
+
type: z.ZodOptional<z.ZodLiteral<"message">>;
|
|
1697
|
+
}, z.core.$strip>]>>;
|
|
1698
|
+
pass_threshold: z.ZodOptional<z.ZodNumber>;
|
|
1699
|
+
range: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1700
|
+
sampling_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1701
|
+
}, z.core.$strip>], "type">>;
|
|
1702
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1703
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1704
|
+
}, z.core.$strip>;
|
|
1705
|
+
export declare const OpenAiConversationCreateRequestSchema: z.ZodObject<{
|
|
1706
|
+
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1707
|
+
role: z.ZodEnum<{
|
|
1708
|
+
user: "user";
|
|
1709
|
+
assistant: "assistant";
|
|
1710
|
+
system: "system";
|
|
1711
|
+
developer: "developer";
|
|
1712
|
+
}>;
|
|
1713
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1714
|
+
type: z.ZodLiteral<"input_text">;
|
|
1715
|
+
text: z.ZodString;
|
|
1716
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1717
|
+
type: z.ZodLiteral<"input_image">;
|
|
1718
|
+
image_url: z.ZodOptional<z.ZodString>;
|
|
1719
|
+
file_id: z.ZodOptional<z.ZodString>;
|
|
1720
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
1721
|
+
auto: "auto";
|
|
1722
|
+
low: "low";
|
|
1723
|
+
high: "high";
|
|
1724
|
+
}>>;
|
|
1725
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1726
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1727
|
+
data: z.ZodString;
|
|
1728
|
+
format: z.ZodEnum<{
|
|
1729
|
+
mp3: "mp3";
|
|
1730
|
+
wav: "wav";
|
|
1731
|
+
}>;
|
|
1732
|
+
}, z.core.$strip>], "type">>]>;
|
|
1733
|
+
type: z.ZodOptional<z.ZodLiteral<"message">>;
|
|
1734
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
861
1735
|
type: z.ZodLiteral<"function_call_output">;
|
|
862
1736
|
call_id: z.ZodString;
|
|
863
1737
|
output: z.ZodString;
|
|
@@ -867,6 +1741,774 @@ export declare const OpenAiConversationCreateRequestSchema: z.ZodObject<{
|
|
|
867
1741
|
}, z.core.$strip>], "type">>>>;
|
|
868
1742
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
869
1743
|
}, z.core.$strip>;
|
|
1744
|
+
export declare const OpenAiRealtimeAudioFormatSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1745
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcm">>;
|
|
1746
|
+
rate: z.ZodOptional<z.ZodLiteral<24000>>;
|
|
1747
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1748
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcmu">>;
|
|
1749
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1750
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcma">>;
|
|
1751
|
+
}, z.core.$strip>]>;
|
|
1752
|
+
export declare const OpenAiRealtimeNoiseReductionSchema: z.ZodNullable<z.ZodObject<{
|
|
1753
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1754
|
+
near_field: "near_field";
|
|
1755
|
+
far_field: "far_field";
|
|
1756
|
+
}>>;
|
|
1757
|
+
}, z.core.$strip>>;
|
|
1758
|
+
export declare const OpenAiRealtimeAudioTranscriptionSchema: z.ZodNullable<z.ZodObject<{
|
|
1759
|
+
delay: z.ZodOptional<z.ZodEnum<{
|
|
1760
|
+
low: "low";
|
|
1761
|
+
high: "high";
|
|
1762
|
+
medium: "medium";
|
|
1763
|
+
minimal: "minimal";
|
|
1764
|
+
xhigh: "xhigh";
|
|
1765
|
+
}>>;
|
|
1766
|
+
language: z.ZodOptional<z.ZodString>;
|
|
1767
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1768
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
1769
|
+
}, z.core.$strip>>;
|
|
1770
|
+
export declare const OpenAiRealtimeServerVadSchema: z.ZodObject<{
|
|
1771
|
+
type: z.ZodLiteral<"server_vad">;
|
|
1772
|
+
create_response: z.ZodOptional<z.ZodBoolean>;
|
|
1773
|
+
idle_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
1774
|
+
interrupt_response: z.ZodOptional<z.ZodBoolean>;
|
|
1775
|
+
prefix_padding_ms: z.ZodOptional<z.ZodNumber>;
|
|
1776
|
+
silence_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1777
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
1778
|
+
}, z.core.$strip>;
|
|
1779
|
+
export declare const OpenAiRealtimeSemanticVadSchema: z.ZodObject<{
|
|
1780
|
+
type: z.ZodLiteral<"semantic_vad">;
|
|
1781
|
+
create_response: z.ZodOptional<z.ZodBoolean>;
|
|
1782
|
+
eagerness: z.ZodOptional<z.ZodEnum<{
|
|
1783
|
+
auto: "auto";
|
|
1784
|
+
low: "low";
|
|
1785
|
+
high: "high";
|
|
1786
|
+
medium: "medium";
|
|
1787
|
+
}>>;
|
|
1788
|
+
interrupt_response: z.ZodOptional<z.ZodBoolean>;
|
|
1789
|
+
}, z.core.$strip>;
|
|
1790
|
+
export declare const OpenAiRealtimeTurnDetectionSchema: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1791
|
+
type: z.ZodLiteral<"server_vad">;
|
|
1792
|
+
create_response: z.ZodOptional<z.ZodBoolean>;
|
|
1793
|
+
idle_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
1794
|
+
interrupt_response: z.ZodOptional<z.ZodBoolean>;
|
|
1795
|
+
prefix_padding_ms: z.ZodOptional<z.ZodNumber>;
|
|
1796
|
+
silence_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1797
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
1798
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1799
|
+
type: z.ZodLiteral<"semantic_vad">;
|
|
1800
|
+
create_response: z.ZodOptional<z.ZodBoolean>;
|
|
1801
|
+
eagerness: z.ZodOptional<z.ZodEnum<{
|
|
1802
|
+
auto: "auto";
|
|
1803
|
+
low: "low";
|
|
1804
|
+
high: "high";
|
|
1805
|
+
medium: "medium";
|
|
1806
|
+
}>>;
|
|
1807
|
+
interrupt_response: z.ZodOptional<z.ZodBoolean>;
|
|
1808
|
+
}, z.core.$strip>], "type">>;
|
|
1809
|
+
export declare const OpenAiRealtimeAudioInputSchema: z.ZodObject<{
|
|
1810
|
+
format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1811
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcm">>;
|
|
1812
|
+
rate: z.ZodOptional<z.ZodLiteral<24000>>;
|
|
1813
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1814
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcmu">>;
|
|
1815
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1816
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcma">>;
|
|
1817
|
+
}, z.core.$strip>]>>;
|
|
1818
|
+
noise_reduction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1819
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1820
|
+
near_field: "near_field";
|
|
1821
|
+
far_field: "far_field";
|
|
1822
|
+
}>>;
|
|
1823
|
+
}, z.core.$strip>>>;
|
|
1824
|
+
transcription: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1825
|
+
delay: z.ZodOptional<z.ZodEnum<{
|
|
1826
|
+
low: "low";
|
|
1827
|
+
high: "high";
|
|
1828
|
+
medium: "medium";
|
|
1829
|
+
minimal: "minimal";
|
|
1830
|
+
xhigh: "xhigh";
|
|
1831
|
+
}>>;
|
|
1832
|
+
language: z.ZodOptional<z.ZodString>;
|
|
1833
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1834
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
1835
|
+
}, z.core.$strip>>>;
|
|
1836
|
+
turn_detection: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1837
|
+
type: z.ZodLiteral<"server_vad">;
|
|
1838
|
+
create_response: z.ZodOptional<z.ZodBoolean>;
|
|
1839
|
+
idle_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
1840
|
+
interrupt_response: z.ZodOptional<z.ZodBoolean>;
|
|
1841
|
+
prefix_padding_ms: z.ZodOptional<z.ZodNumber>;
|
|
1842
|
+
silence_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1843
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
1844
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1845
|
+
type: z.ZodLiteral<"semantic_vad">;
|
|
1846
|
+
create_response: z.ZodOptional<z.ZodBoolean>;
|
|
1847
|
+
eagerness: z.ZodOptional<z.ZodEnum<{
|
|
1848
|
+
auto: "auto";
|
|
1849
|
+
low: "low";
|
|
1850
|
+
high: "high";
|
|
1851
|
+
medium: "medium";
|
|
1852
|
+
}>>;
|
|
1853
|
+
interrupt_response: z.ZodOptional<z.ZodBoolean>;
|
|
1854
|
+
}, z.core.$strip>], "type">>>;
|
|
1855
|
+
}, z.core.$strip>;
|
|
1856
|
+
export declare const OpenAiRealtimeVoiceSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1857
|
+
id: z.ZodString;
|
|
1858
|
+
}, z.core.$strip>]>;
|
|
1859
|
+
export declare const OpenAiRealtimeAudioOutputSchema: z.ZodObject<{
|
|
1860
|
+
format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1861
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcm">>;
|
|
1862
|
+
rate: z.ZodOptional<z.ZodLiteral<24000>>;
|
|
1863
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1864
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcmu">>;
|
|
1865
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1866
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcma">>;
|
|
1867
|
+
}, z.core.$strip>]>>;
|
|
1868
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
1869
|
+
voice: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1870
|
+
id: z.ZodString;
|
|
1871
|
+
}, z.core.$strip>]>>;
|
|
1872
|
+
}, z.core.$strip>;
|
|
1873
|
+
export declare const OpenAiRealtimeAudioConfigSchema: z.ZodObject<{
|
|
1874
|
+
input: z.ZodOptional<z.ZodObject<{
|
|
1875
|
+
format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1876
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcm">>;
|
|
1877
|
+
rate: z.ZodOptional<z.ZodLiteral<24000>>;
|
|
1878
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1879
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcmu">>;
|
|
1880
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1881
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcma">>;
|
|
1882
|
+
}, z.core.$strip>]>>;
|
|
1883
|
+
noise_reduction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1884
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1885
|
+
near_field: "near_field";
|
|
1886
|
+
far_field: "far_field";
|
|
1887
|
+
}>>;
|
|
1888
|
+
}, z.core.$strip>>>;
|
|
1889
|
+
transcription: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1890
|
+
delay: z.ZodOptional<z.ZodEnum<{
|
|
1891
|
+
low: "low";
|
|
1892
|
+
high: "high";
|
|
1893
|
+
medium: "medium";
|
|
1894
|
+
minimal: "minimal";
|
|
1895
|
+
xhigh: "xhigh";
|
|
1896
|
+
}>>;
|
|
1897
|
+
language: z.ZodOptional<z.ZodString>;
|
|
1898
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1899
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
1900
|
+
}, z.core.$strip>>>;
|
|
1901
|
+
turn_detection: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1902
|
+
type: z.ZodLiteral<"server_vad">;
|
|
1903
|
+
create_response: z.ZodOptional<z.ZodBoolean>;
|
|
1904
|
+
idle_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
1905
|
+
interrupt_response: z.ZodOptional<z.ZodBoolean>;
|
|
1906
|
+
prefix_padding_ms: z.ZodOptional<z.ZodNumber>;
|
|
1907
|
+
silence_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1908
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
1909
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1910
|
+
type: z.ZodLiteral<"semantic_vad">;
|
|
1911
|
+
create_response: z.ZodOptional<z.ZodBoolean>;
|
|
1912
|
+
eagerness: z.ZodOptional<z.ZodEnum<{
|
|
1913
|
+
auto: "auto";
|
|
1914
|
+
low: "low";
|
|
1915
|
+
high: "high";
|
|
1916
|
+
medium: "medium";
|
|
1917
|
+
}>>;
|
|
1918
|
+
interrupt_response: z.ZodOptional<z.ZodBoolean>;
|
|
1919
|
+
}, z.core.$strip>], "type">>>;
|
|
1920
|
+
}, z.core.$strip>>;
|
|
1921
|
+
output: z.ZodOptional<z.ZodObject<{
|
|
1922
|
+
format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1923
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcm">>;
|
|
1924
|
+
rate: z.ZodOptional<z.ZodLiteral<24000>>;
|
|
1925
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1926
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcmu">>;
|
|
1927
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1928
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcma">>;
|
|
1929
|
+
}, z.core.$strip>]>>;
|
|
1930
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
1931
|
+
voice: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1932
|
+
id: z.ZodString;
|
|
1933
|
+
}, z.core.$strip>]>>;
|
|
1934
|
+
}, z.core.$strip>>;
|
|
1935
|
+
}, z.core.$strip>;
|
|
1936
|
+
export declare const OpenAiRealtimePromptSchema: z.ZodObject<{
|
|
1937
|
+
id: z.ZodString;
|
|
1938
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1939
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1940
|
+
}, z.core.$strip>;
|
|
1941
|
+
export declare const OpenAiRealtimeReasoningSchema: z.ZodObject<{
|
|
1942
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
1943
|
+
low: "low";
|
|
1944
|
+
high: "high";
|
|
1945
|
+
medium: "medium";
|
|
1946
|
+
minimal: "minimal";
|
|
1947
|
+
xhigh: "xhigh";
|
|
1948
|
+
}>>;
|
|
1949
|
+
}, z.core.$strip>;
|
|
1950
|
+
export declare const OpenAiRealtimeToolChoiceSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1951
|
+
auto: "auto";
|
|
1952
|
+
none: "none";
|
|
1953
|
+
required: "required";
|
|
1954
|
+
}>, z.ZodObject<{
|
|
1955
|
+
type: z.ZodLiteral<"function">;
|
|
1956
|
+
name: z.ZodString;
|
|
1957
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1958
|
+
type: z.ZodLiteral<"mcp">;
|
|
1959
|
+
server_label: z.ZodString;
|
|
1960
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1961
|
+
}, z.core.$strip>]>;
|
|
1962
|
+
export declare const OpenAiRealtimeFunctionToolSchema: z.ZodObject<{
|
|
1963
|
+
type: z.ZodOptional<z.ZodLiteral<"function">>;
|
|
1964
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1965
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1966
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1967
|
+
}, z.core.$strip>;
|
|
1968
|
+
export declare const OpenAiRealtimeMcpToolFilterSchema: z.ZodObject<{
|
|
1969
|
+
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
1970
|
+
tool_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1971
|
+
}, z.core.$strip>;
|
|
1972
|
+
export declare const OpenAiRealtimeMcpApprovalSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1973
|
+
never: "never";
|
|
1974
|
+
always: "always";
|
|
1975
|
+
}>, z.ZodObject<{
|
|
1976
|
+
always: z.ZodOptional<z.ZodObject<{
|
|
1977
|
+
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
1978
|
+
tool_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1979
|
+
}, z.core.$strip>>;
|
|
1980
|
+
never: z.ZodOptional<z.ZodObject<{
|
|
1981
|
+
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
1982
|
+
tool_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1983
|
+
}, z.core.$strip>>;
|
|
1984
|
+
}, z.core.$strip>]>;
|
|
1985
|
+
export declare const OpenAiRealtimeMcpToolSchema: z.ZodObject<{
|
|
1986
|
+
type: z.ZodLiteral<"mcp">;
|
|
1987
|
+
server_label: z.ZodString;
|
|
1988
|
+
allowed_tools: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
1989
|
+
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
1990
|
+
tool_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1991
|
+
}, z.core.$strip>]>>;
|
|
1992
|
+
authorization: z.ZodOptional<z.ZodString>;
|
|
1993
|
+
connector_id: z.ZodOptional<z.ZodString>;
|
|
1994
|
+
defer_loading: z.ZodOptional<z.ZodBoolean>;
|
|
1995
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1996
|
+
require_approval: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1997
|
+
never: "never";
|
|
1998
|
+
always: "always";
|
|
1999
|
+
}>, z.ZodObject<{
|
|
2000
|
+
always: z.ZodOptional<z.ZodObject<{
|
|
2001
|
+
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
2002
|
+
tool_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2003
|
+
}, z.core.$strip>>;
|
|
2004
|
+
never: z.ZodOptional<z.ZodObject<{
|
|
2005
|
+
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
2006
|
+
tool_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2007
|
+
}, z.core.$strip>>;
|
|
2008
|
+
}, z.core.$strip>]>>;
|
|
2009
|
+
server_description: z.ZodOptional<z.ZodString>;
|
|
2010
|
+
server_url: z.ZodOptional<z.ZodString>;
|
|
2011
|
+
tunnel_id: z.ZodOptional<z.ZodString>;
|
|
2012
|
+
}, z.core.$strip>;
|
|
2013
|
+
export declare const OpenAiRealtimeToolSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2014
|
+
type: z.ZodOptional<z.ZodLiteral<"function">>;
|
|
2015
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2016
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2017
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2018
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2019
|
+
type: z.ZodLiteral<"mcp">;
|
|
2020
|
+
server_label: z.ZodString;
|
|
2021
|
+
allowed_tools: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
2022
|
+
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
2023
|
+
tool_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2024
|
+
}, z.core.$strip>]>>;
|
|
2025
|
+
authorization: z.ZodOptional<z.ZodString>;
|
|
2026
|
+
connector_id: z.ZodOptional<z.ZodString>;
|
|
2027
|
+
defer_loading: z.ZodOptional<z.ZodBoolean>;
|
|
2028
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2029
|
+
require_approval: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2030
|
+
never: "never";
|
|
2031
|
+
always: "always";
|
|
2032
|
+
}>, z.ZodObject<{
|
|
2033
|
+
always: z.ZodOptional<z.ZodObject<{
|
|
2034
|
+
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
2035
|
+
tool_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2036
|
+
}, z.core.$strip>>;
|
|
2037
|
+
never: z.ZodOptional<z.ZodObject<{
|
|
2038
|
+
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
2039
|
+
tool_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2040
|
+
}, z.core.$strip>>;
|
|
2041
|
+
}, z.core.$strip>]>>;
|
|
2042
|
+
server_description: z.ZodOptional<z.ZodString>;
|
|
2043
|
+
server_url: z.ZodOptional<z.ZodString>;
|
|
2044
|
+
tunnel_id: z.ZodOptional<z.ZodString>;
|
|
2045
|
+
}, z.core.$strip>]>;
|
|
2046
|
+
export declare const OpenAiRealtimeTracingSchema: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodObject<{
|
|
2047
|
+
group_id: z.ZodOptional<z.ZodString>;
|
|
2048
|
+
metadata: z.ZodOptional<z.ZodUnknown>;
|
|
2049
|
+
workflow_name: z.ZodOptional<z.ZodString>;
|
|
2050
|
+
}, z.core.$strip>]>>;
|
|
2051
|
+
export declare const OpenAiRealtimeTruncationSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
2052
|
+
auto: "auto";
|
|
2053
|
+
disabled: "disabled";
|
|
2054
|
+
}>, z.ZodObject<{
|
|
2055
|
+
type: z.ZodLiteral<"retention_ratio">;
|
|
2056
|
+
retention_ratio: z.ZodNumber;
|
|
2057
|
+
token_limits: z.ZodOptional<z.ZodObject<{
|
|
2058
|
+
post_instructions: z.ZodOptional<z.ZodNumber>;
|
|
2059
|
+
}, z.core.$strip>>;
|
|
2060
|
+
}, z.core.$strip>]>;
|
|
2061
|
+
export declare const OpenAiRealtimeSessionCreateRequestSchema: z.ZodObject<{
|
|
2062
|
+
type: z.ZodLiteral<"realtime">;
|
|
2063
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
2064
|
+
input: z.ZodOptional<z.ZodObject<{
|
|
2065
|
+
format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2066
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcm">>;
|
|
2067
|
+
rate: z.ZodOptional<z.ZodLiteral<24000>>;
|
|
2068
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2069
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcmu">>;
|
|
2070
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2071
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcma">>;
|
|
2072
|
+
}, z.core.$strip>]>>;
|
|
2073
|
+
noise_reduction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2074
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
2075
|
+
near_field: "near_field";
|
|
2076
|
+
far_field: "far_field";
|
|
2077
|
+
}>>;
|
|
2078
|
+
}, z.core.$strip>>>;
|
|
2079
|
+
transcription: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2080
|
+
delay: z.ZodOptional<z.ZodEnum<{
|
|
2081
|
+
low: "low";
|
|
2082
|
+
high: "high";
|
|
2083
|
+
medium: "medium";
|
|
2084
|
+
minimal: "minimal";
|
|
2085
|
+
xhigh: "xhigh";
|
|
2086
|
+
}>>;
|
|
2087
|
+
language: z.ZodOptional<z.ZodString>;
|
|
2088
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2089
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
2090
|
+
}, z.core.$strip>>>;
|
|
2091
|
+
turn_detection: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2092
|
+
type: z.ZodLiteral<"server_vad">;
|
|
2093
|
+
create_response: z.ZodOptional<z.ZodBoolean>;
|
|
2094
|
+
idle_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
2095
|
+
interrupt_response: z.ZodOptional<z.ZodBoolean>;
|
|
2096
|
+
prefix_padding_ms: z.ZodOptional<z.ZodNumber>;
|
|
2097
|
+
silence_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
2098
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
2099
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2100
|
+
type: z.ZodLiteral<"semantic_vad">;
|
|
2101
|
+
create_response: z.ZodOptional<z.ZodBoolean>;
|
|
2102
|
+
eagerness: z.ZodOptional<z.ZodEnum<{
|
|
2103
|
+
auto: "auto";
|
|
2104
|
+
low: "low";
|
|
2105
|
+
high: "high";
|
|
2106
|
+
medium: "medium";
|
|
2107
|
+
}>>;
|
|
2108
|
+
interrupt_response: z.ZodOptional<z.ZodBoolean>;
|
|
2109
|
+
}, z.core.$strip>], "type">>>;
|
|
2110
|
+
}, z.core.$strip>>;
|
|
2111
|
+
output: z.ZodOptional<z.ZodObject<{
|
|
2112
|
+
format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2113
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcm">>;
|
|
2114
|
+
rate: z.ZodOptional<z.ZodLiteral<24000>>;
|
|
2115
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2116
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcmu">>;
|
|
2117
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2118
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcma">>;
|
|
2119
|
+
}, z.core.$strip>]>>;
|
|
2120
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
2121
|
+
voice: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2122
|
+
id: z.ZodString;
|
|
2123
|
+
}, z.core.$strip>]>>;
|
|
2124
|
+
}, z.core.$strip>>;
|
|
2125
|
+
}, z.core.$strip>>;
|
|
2126
|
+
include: z.ZodOptional<z.ZodArray<z.ZodLiteral<"item.input_audio_transcription.logprobs">>>;
|
|
2127
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
2128
|
+
max_output_tokens: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"inf">]>>;
|
|
2129
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2130
|
+
output_modalities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2131
|
+
text: "text";
|
|
2132
|
+
audio: "audio";
|
|
2133
|
+
}>>>;
|
|
2134
|
+
parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
|
|
2135
|
+
prompt: z.ZodOptional<z.ZodObject<{
|
|
2136
|
+
id: z.ZodString;
|
|
2137
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2138
|
+
version: z.ZodOptional<z.ZodString>;
|
|
2139
|
+
}, z.core.$strip>>;
|
|
2140
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
2141
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
2142
|
+
low: "low";
|
|
2143
|
+
high: "high";
|
|
2144
|
+
medium: "medium";
|
|
2145
|
+
minimal: "minimal";
|
|
2146
|
+
xhigh: "xhigh";
|
|
2147
|
+
}>>;
|
|
2148
|
+
}, z.core.$strip>>;
|
|
2149
|
+
tool_choice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2150
|
+
auto: "auto";
|
|
2151
|
+
none: "none";
|
|
2152
|
+
required: "required";
|
|
2153
|
+
}>, z.ZodObject<{
|
|
2154
|
+
type: z.ZodLiteral<"function">;
|
|
2155
|
+
name: z.ZodString;
|
|
2156
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2157
|
+
type: z.ZodLiteral<"mcp">;
|
|
2158
|
+
server_label: z.ZodString;
|
|
2159
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2160
|
+
}, z.core.$strip>]>>;
|
|
2161
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2162
|
+
type: z.ZodOptional<z.ZodLiteral<"function">>;
|
|
2163
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2164
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2165
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2166
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2167
|
+
type: z.ZodLiteral<"mcp">;
|
|
2168
|
+
server_label: z.ZodString;
|
|
2169
|
+
allowed_tools: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
2170
|
+
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
2171
|
+
tool_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2172
|
+
}, z.core.$strip>]>>;
|
|
2173
|
+
authorization: z.ZodOptional<z.ZodString>;
|
|
2174
|
+
connector_id: z.ZodOptional<z.ZodString>;
|
|
2175
|
+
defer_loading: z.ZodOptional<z.ZodBoolean>;
|
|
2176
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2177
|
+
require_approval: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2178
|
+
never: "never";
|
|
2179
|
+
always: "always";
|
|
2180
|
+
}>, z.ZodObject<{
|
|
2181
|
+
always: z.ZodOptional<z.ZodObject<{
|
|
2182
|
+
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
2183
|
+
tool_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2184
|
+
}, z.core.$strip>>;
|
|
2185
|
+
never: z.ZodOptional<z.ZodObject<{
|
|
2186
|
+
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
2187
|
+
tool_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2188
|
+
}, z.core.$strip>>;
|
|
2189
|
+
}, z.core.$strip>]>>;
|
|
2190
|
+
server_description: z.ZodOptional<z.ZodString>;
|
|
2191
|
+
server_url: z.ZodOptional<z.ZodString>;
|
|
2192
|
+
tunnel_id: z.ZodOptional<z.ZodString>;
|
|
2193
|
+
}, z.core.$strip>]>>>;
|
|
2194
|
+
tracing: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodObject<{
|
|
2195
|
+
group_id: z.ZodOptional<z.ZodString>;
|
|
2196
|
+
metadata: z.ZodOptional<z.ZodUnknown>;
|
|
2197
|
+
workflow_name: z.ZodOptional<z.ZodString>;
|
|
2198
|
+
}, z.core.$strip>]>>>;
|
|
2199
|
+
truncation: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2200
|
+
auto: "auto";
|
|
2201
|
+
disabled: "disabled";
|
|
2202
|
+
}>, z.ZodObject<{
|
|
2203
|
+
type: z.ZodLiteral<"retention_ratio">;
|
|
2204
|
+
retention_ratio: z.ZodNumber;
|
|
2205
|
+
token_limits: z.ZodOptional<z.ZodObject<{
|
|
2206
|
+
post_instructions: z.ZodOptional<z.ZodNumber>;
|
|
2207
|
+
}, z.core.$strip>>;
|
|
2208
|
+
}, z.core.$strip>]>>;
|
|
2209
|
+
}, z.core.$strip>;
|
|
2210
|
+
export declare const OpenAiRealtimeTranscriptionSessionCreateRequestSchema: z.ZodObject<{
|
|
2211
|
+
type: z.ZodLiteral<"transcription">;
|
|
2212
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
2213
|
+
input: z.ZodOptional<z.ZodObject<{
|
|
2214
|
+
format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2215
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcm">>;
|
|
2216
|
+
rate: z.ZodOptional<z.ZodLiteral<24000>>;
|
|
2217
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2218
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcmu">>;
|
|
2219
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2220
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcma">>;
|
|
2221
|
+
}, z.core.$strip>]>>;
|
|
2222
|
+
noise_reduction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2223
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
2224
|
+
near_field: "near_field";
|
|
2225
|
+
far_field: "far_field";
|
|
2226
|
+
}>>;
|
|
2227
|
+
}, z.core.$strip>>>;
|
|
2228
|
+
transcription: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2229
|
+
delay: z.ZodOptional<z.ZodEnum<{
|
|
2230
|
+
low: "low";
|
|
2231
|
+
high: "high";
|
|
2232
|
+
medium: "medium";
|
|
2233
|
+
minimal: "minimal";
|
|
2234
|
+
xhigh: "xhigh";
|
|
2235
|
+
}>>;
|
|
2236
|
+
language: z.ZodOptional<z.ZodString>;
|
|
2237
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2238
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
2239
|
+
}, z.core.$strip>>>;
|
|
2240
|
+
turn_detection: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2241
|
+
type: z.ZodLiteral<"server_vad">;
|
|
2242
|
+
create_response: z.ZodOptional<z.ZodBoolean>;
|
|
2243
|
+
idle_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
2244
|
+
interrupt_response: z.ZodOptional<z.ZodBoolean>;
|
|
2245
|
+
prefix_padding_ms: z.ZodOptional<z.ZodNumber>;
|
|
2246
|
+
silence_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
2247
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
2248
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2249
|
+
type: z.ZodLiteral<"semantic_vad">;
|
|
2250
|
+
create_response: z.ZodOptional<z.ZodBoolean>;
|
|
2251
|
+
eagerness: z.ZodOptional<z.ZodEnum<{
|
|
2252
|
+
auto: "auto";
|
|
2253
|
+
low: "low";
|
|
2254
|
+
high: "high";
|
|
2255
|
+
medium: "medium";
|
|
2256
|
+
}>>;
|
|
2257
|
+
interrupt_response: z.ZodOptional<z.ZodBoolean>;
|
|
2258
|
+
}, z.core.$strip>], "type">>>;
|
|
2259
|
+
}, z.core.$strip>>;
|
|
2260
|
+
}, z.core.$strip>>;
|
|
2261
|
+
include: z.ZodOptional<z.ZodArray<z.ZodLiteral<"item.input_audio_transcription.logprobs">>>;
|
|
2262
|
+
}, z.core.$strip>;
|
|
2263
|
+
export declare const OpenAiRealtimeClientSecretRequestSchema: z.ZodObject<{
|
|
2264
|
+
expires_after: z.ZodOptional<z.ZodObject<{
|
|
2265
|
+
anchor: z.ZodOptional<z.ZodLiteral<"created_at">>;
|
|
2266
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
2267
|
+
}, z.core.$strip>>;
|
|
2268
|
+
session: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2269
|
+
type: z.ZodLiteral<"realtime">;
|
|
2270
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
2271
|
+
input: z.ZodOptional<z.ZodObject<{
|
|
2272
|
+
format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2273
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcm">>;
|
|
2274
|
+
rate: z.ZodOptional<z.ZodLiteral<24000>>;
|
|
2275
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2276
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcmu">>;
|
|
2277
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2278
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcma">>;
|
|
2279
|
+
}, z.core.$strip>]>>;
|
|
2280
|
+
noise_reduction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2281
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
2282
|
+
near_field: "near_field";
|
|
2283
|
+
far_field: "far_field";
|
|
2284
|
+
}>>;
|
|
2285
|
+
}, z.core.$strip>>>;
|
|
2286
|
+
transcription: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2287
|
+
delay: z.ZodOptional<z.ZodEnum<{
|
|
2288
|
+
low: "low";
|
|
2289
|
+
high: "high";
|
|
2290
|
+
medium: "medium";
|
|
2291
|
+
minimal: "minimal";
|
|
2292
|
+
xhigh: "xhigh";
|
|
2293
|
+
}>>;
|
|
2294
|
+
language: z.ZodOptional<z.ZodString>;
|
|
2295
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2296
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
2297
|
+
}, z.core.$strip>>>;
|
|
2298
|
+
turn_detection: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2299
|
+
type: z.ZodLiteral<"server_vad">;
|
|
2300
|
+
create_response: z.ZodOptional<z.ZodBoolean>;
|
|
2301
|
+
idle_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
2302
|
+
interrupt_response: z.ZodOptional<z.ZodBoolean>;
|
|
2303
|
+
prefix_padding_ms: z.ZodOptional<z.ZodNumber>;
|
|
2304
|
+
silence_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
2305
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
2306
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2307
|
+
type: z.ZodLiteral<"semantic_vad">;
|
|
2308
|
+
create_response: z.ZodOptional<z.ZodBoolean>;
|
|
2309
|
+
eagerness: z.ZodOptional<z.ZodEnum<{
|
|
2310
|
+
auto: "auto";
|
|
2311
|
+
low: "low";
|
|
2312
|
+
high: "high";
|
|
2313
|
+
medium: "medium";
|
|
2314
|
+
}>>;
|
|
2315
|
+
interrupt_response: z.ZodOptional<z.ZodBoolean>;
|
|
2316
|
+
}, z.core.$strip>], "type">>>;
|
|
2317
|
+
}, z.core.$strip>>;
|
|
2318
|
+
output: z.ZodOptional<z.ZodObject<{
|
|
2319
|
+
format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2320
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcm">>;
|
|
2321
|
+
rate: z.ZodOptional<z.ZodLiteral<24000>>;
|
|
2322
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2323
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcmu">>;
|
|
2324
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2325
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcma">>;
|
|
2326
|
+
}, z.core.$strip>]>>;
|
|
2327
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
2328
|
+
voice: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2329
|
+
id: z.ZodString;
|
|
2330
|
+
}, z.core.$strip>]>>;
|
|
2331
|
+
}, z.core.$strip>>;
|
|
2332
|
+
}, z.core.$strip>>;
|
|
2333
|
+
include: z.ZodOptional<z.ZodArray<z.ZodLiteral<"item.input_audio_transcription.logprobs">>>;
|
|
2334
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
2335
|
+
max_output_tokens: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"inf">]>>;
|
|
2336
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2337
|
+
output_modalities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2338
|
+
text: "text";
|
|
2339
|
+
audio: "audio";
|
|
2340
|
+
}>>>;
|
|
2341
|
+
parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
|
|
2342
|
+
prompt: z.ZodOptional<z.ZodObject<{
|
|
2343
|
+
id: z.ZodString;
|
|
2344
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2345
|
+
version: z.ZodOptional<z.ZodString>;
|
|
2346
|
+
}, z.core.$strip>>;
|
|
2347
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
2348
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
2349
|
+
low: "low";
|
|
2350
|
+
high: "high";
|
|
2351
|
+
medium: "medium";
|
|
2352
|
+
minimal: "minimal";
|
|
2353
|
+
xhigh: "xhigh";
|
|
2354
|
+
}>>;
|
|
2355
|
+
}, z.core.$strip>>;
|
|
2356
|
+
tool_choice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2357
|
+
auto: "auto";
|
|
2358
|
+
none: "none";
|
|
2359
|
+
required: "required";
|
|
2360
|
+
}>, z.ZodObject<{
|
|
2361
|
+
type: z.ZodLiteral<"function">;
|
|
2362
|
+
name: z.ZodString;
|
|
2363
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2364
|
+
type: z.ZodLiteral<"mcp">;
|
|
2365
|
+
server_label: z.ZodString;
|
|
2366
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2367
|
+
}, z.core.$strip>]>>;
|
|
2368
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2369
|
+
type: z.ZodOptional<z.ZodLiteral<"function">>;
|
|
2370
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2371
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2372
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2373
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2374
|
+
type: z.ZodLiteral<"mcp">;
|
|
2375
|
+
server_label: z.ZodString;
|
|
2376
|
+
allowed_tools: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
2377
|
+
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
2378
|
+
tool_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2379
|
+
}, z.core.$strip>]>>;
|
|
2380
|
+
authorization: z.ZodOptional<z.ZodString>;
|
|
2381
|
+
connector_id: z.ZodOptional<z.ZodString>;
|
|
2382
|
+
defer_loading: z.ZodOptional<z.ZodBoolean>;
|
|
2383
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2384
|
+
require_approval: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2385
|
+
never: "never";
|
|
2386
|
+
always: "always";
|
|
2387
|
+
}>, z.ZodObject<{
|
|
2388
|
+
always: z.ZodOptional<z.ZodObject<{
|
|
2389
|
+
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
2390
|
+
tool_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2391
|
+
}, z.core.$strip>>;
|
|
2392
|
+
never: z.ZodOptional<z.ZodObject<{
|
|
2393
|
+
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
2394
|
+
tool_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2395
|
+
}, z.core.$strip>>;
|
|
2396
|
+
}, z.core.$strip>]>>;
|
|
2397
|
+
server_description: z.ZodOptional<z.ZodString>;
|
|
2398
|
+
server_url: z.ZodOptional<z.ZodString>;
|
|
2399
|
+
tunnel_id: z.ZodOptional<z.ZodString>;
|
|
2400
|
+
}, z.core.$strip>]>>>;
|
|
2401
|
+
tracing: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodObject<{
|
|
2402
|
+
group_id: z.ZodOptional<z.ZodString>;
|
|
2403
|
+
metadata: z.ZodOptional<z.ZodUnknown>;
|
|
2404
|
+
workflow_name: z.ZodOptional<z.ZodString>;
|
|
2405
|
+
}, z.core.$strip>]>>>;
|
|
2406
|
+
truncation: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2407
|
+
auto: "auto";
|
|
2408
|
+
disabled: "disabled";
|
|
2409
|
+
}>, z.ZodObject<{
|
|
2410
|
+
type: z.ZodLiteral<"retention_ratio">;
|
|
2411
|
+
retention_ratio: z.ZodNumber;
|
|
2412
|
+
token_limits: z.ZodOptional<z.ZodObject<{
|
|
2413
|
+
post_instructions: z.ZodOptional<z.ZodNumber>;
|
|
2414
|
+
}, z.core.$strip>>;
|
|
2415
|
+
}, z.core.$strip>]>>;
|
|
2416
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2417
|
+
type: z.ZodLiteral<"transcription">;
|
|
2418
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
2419
|
+
input: z.ZodOptional<z.ZodObject<{
|
|
2420
|
+
format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2421
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcm">>;
|
|
2422
|
+
rate: z.ZodOptional<z.ZodLiteral<24000>>;
|
|
2423
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2424
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcmu">>;
|
|
2425
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2426
|
+
type: z.ZodOptional<z.ZodLiteral<"audio/pcma">>;
|
|
2427
|
+
}, z.core.$strip>]>>;
|
|
2428
|
+
noise_reduction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2429
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
2430
|
+
near_field: "near_field";
|
|
2431
|
+
far_field: "far_field";
|
|
2432
|
+
}>>;
|
|
2433
|
+
}, z.core.$strip>>>;
|
|
2434
|
+
transcription: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2435
|
+
delay: z.ZodOptional<z.ZodEnum<{
|
|
2436
|
+
low: "low";
|
|
2437
|
+
high: "high";
|
|
2438
|
+
medium: "medium";
|
|
2439
|
+
minimal: "minimal";
|
|
2440
|
+
xhigh: "xhigh";
|
|
2441
|
+
}>>;
|
|
2442
|
+
language: z.ZodOptional<z.ZodString>;
|
|
2443
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2444
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
2445
|
+
}, z.core.$strip>>>;
|
|
2446
|
+
turn_detection: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2447
|
+
type: z.ZodLiteral<"server_vad">;
|
|
2448
|
+
create_response: z.ZodOptional<z.ZodBoolean>;
|
|
2449
|
+
idle_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
2450
|
+
interrupt_response: z.ZodOptional<z.ZodBoolean>;
|
|
2451
|
+
prefix_padding_ms: z.ZodOptional<z.ZodNumber>;
|
|
2452
|
+
silence_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
2453
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
2454
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2455
|
+
type: z.ZodLiteral<"semantic_vad">;
|
|
2456
|
+
create_response: z.ZodOptional<z.ZodBoolean>;
|
|
2457
|
+
eagerness: z.ZodOptional<z.ZodEnum<{
|
|
2458
|
+
auto: "auto";
|
|
2459
|
+
low: "low";
|
|
2460
|
+
high: "high";
|
|
2461
|
+
medium: "medium";
|
|
2462
|
+
}>>;
|
|
2463
|
+
interrupt_response: z.ZodOptional<z.ZodBoolean>;
|
|
2464
|
+
}, z.core.$strip>], "type">>>;
|
|
2465
|
+
}, z.core.$strip>>;
|
|
2466
|
+
}, z.core.$strip>>;
|
|
2467
|
+
include: z.ZodOptional<z.ZodArray<z.ZodLiteral<"item.input_audio_transcription.logprobs">>>;
|
|
2468
|
+
}, z.core.$strip>], "type">>;
|
|
2469
|
+
}, z.core.$strip>;
|
|
2470
|
+
export declare const OpenAiVectorStoreExpirationPolicySchema: z.ZodObject<{
|
|
2471
|
+
anchor: z.ZodLiteral<"last_active_at">;
|
|
2472
|
+
days: z.ZodNumber;
|
|
2473
|
+
}, z.core.$strip>;
|
|
2474
|
+
export declare const OpenAiVectorStoreAutoChunkingStrategySchema: z.ZodObject<{
|
|
2475
|
+
type: z.ZodLiteral<"auto">;
|
|
2476
|
+
}, z.core.$strip>;
|
|
2477
|
+
export declare const OpenAiVectorStoreStaticChunkingStrategySchema: z.ZodObject<{
|
|
2478
|
+
static: z.ZodObject<{
|
|
2479
|
+
chunk_overlap_tokens: z.ZodNumber;
|
|
2480
|
+
max_chunk_size_tokens: z.ZodNumber;
|
|
2481
|
+
}, z.core.$strip>;
|
|
2482
|
+
type: z.ZodLiteral<"static">;
|
|
2483
|
+
}, z.core.$strip>;
|
|
2484
|
+
export declare const OpenAiVectorStoreChunkingStrategySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2485
|
+
type: z.ZodLiteral<"auto">;
|
|
2486
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2487
|
+
static: z.ZodObject<{
|
|
2488
|
+
chunk_overlap_tokens: z.ZodNumber;
|
|
2489
|
+
max_chunk_size_tokens: z.ZodNumber;
|
|
2490
|
+
}, z.core.$strip>;
|
|
2491
|
+
type: z.ZodLiteral<"static">;
|
|
2492
|
+
}, z.core.$strip>], "type">;
|
|
2493
|
+
export declare const OpenAiVectorStoreCreateRequestSchema: z.ZodObject<{
|
|
2494
|
+
chunking_strategy: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2495
|
+
type: z.ZodLiteral<"auto">;
|
|
2496
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2497
|
+
static: z.ZodObject<{
|
|
2498
|
+
chunk_overlap_tokens: z.ZodNumber;
|
|
2499
|
+
max_chunk_size_tokens: z.ZodNumber;
|
|
2500
|
+
}, z.core.$strip>;
|
|
2501
|
+
type: z.ZodLiteral<"static">;
|
|
2502
|
+
}, z.core.$strip>], "type">>;
|
|
2503
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2504
|
+
expires_after: z.ZodOptional<z.ZodObject<{
|
|
2505
|
+
anchor: z.ZodLiteral<"last_active_at">;
|
|
2506
|
+
days: z.ZodNumber;
|
|
2507
|
+
}, z.core.$strip>>;
|
|
2508
|
+
file_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2509
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2510
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2511
|
+
}, z.core.$strip>;
|
|
870
2512
|
export declare const OpenAiFineTuningHyperparametersSchema: z.ZodObject<{
|
|
871
2513
|
batch_size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>>;
|
|
872
2514
|
learning_rate_multiplier: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>>;
|
|
@@ -1080,6 +2722,9 @@ export type OpenAiChatParsedRequest = z.output<typeof OpenAiChatRequestSchema>;
|
|
|
1080
2722
|
export type OpenAiStoredCompletionUpdateRequest = z.input<typeof OpenAiStoredCompletionUpdateRequestSchema>;
|
|
1081
2723
|
export type OpenAiStoredCompletionUpdateRequestInput = OpenAiStoredCompletionUpdateRequest;
|
|
1082
2724
|
export type OpenAiStoredCompletionUpdateParsedRequest = z.output<typeof OpenAiStoredCompletionUpdateRequestSchema>;
|
|
2725
|
+
export type OpenAiCompletionRequest = z.input<typeof OpenAiCompletionRequestSchema>;
|
|
2726
|
+
export type OpenAiCompletionRequestInput = OpenAiCompletionRequest;
|
|
2727
|
+
export type OpenAiCompletionParsedRequest = z.output<typeof OpenAiCompletionRequestSchema>;
|
|
1083
2728
|
export type OpenAiEmbeddingRequest = z.input<typeof OpenAiEmbeddingRequestSchema>;
|
|
1084
2729
|
export type OpenAiEmbeddingRequestInput = OpenAiEmbeddingRequest;
|
|
1085
2730
|
export type OpenAiEmbeddingParsedRequest = z.output<typeof OpenAiEmbeddingRequestSchema>;
|
|
@@ -1110,6 +2755,21 @@ export type OpenAiModerationParsedRequest = z.output<typeof OpenAiModerationRequ
|
|
|
1110
2755
|
export type OpenAiFileUploadRequest = z.input<typeof OpenAiFileUploadRequestSchema>;
|
|
1111
2756
|
export type OpenAiFileUploadRequestInput = OpenAiFileUploadRequest;
|
|
1112
2757
|
export type OpenAiFileUploadParsedRequest = z.output<typeof OpenAiFileUploadRequestSchema>;
|
|
2758
|
+
export type OpenAiContainerMemoryLimit = z.infer<typeof OpenAiContainerMemoryLimitSchema>;
|
|
2759
|
+
export type OpenAiContainerNetworkPolicyDomainSecret = z.infer<typeof OpenAiContainerNetworkPolicyDomainSecretSchema>;
|
|
2760
|
+
export type OpenAiContainerNetworkPolicyDisabled = z.infer<typeof OpenAiContainerNetworkPolicyDisabledSchema>;
|
|
2761
|
+
export type OpenAiContainerNetworkPolicyAllowlist = z.infer<typeof OpenAiContainerNetworkPolicyAllowlistSchema>;
|
|
2762
|
+
export type OpenAiContainerNetworkPolicy = z.infer<typeof OpenAiContainerNetworkPolicySchema>;
|
|
2763
|
+
export type OpenAiContainerSkillReference = z.infer<typeof OpenAiContainerSkillReferenceSchema>;
|
|
2764
|
+
export type OpenAiContainerInlineSkillSource = z.infer<typeof OpenAiContainerInlineSkillSourceSchema>;
|
|
2765
|
+
export type OpenAiContainerInlineSkill = z.infer<typeof OpenAiContainerInlineSkillSchema>;
|
|
2766
|
+
export type OpenAiContainerSkill = z.infer<typeof OpenAiContainerSkillSchema>;
|
|
2767
|
+
export type OpenAiContainerCreateRequest = z.input<typeof OpenAiContainerCreateRequestSchema>;
|
|
2768
|
+
export type OpenAiContainerCreateRequestInput = OpenAiContainerCreateRequest;
|
|
2769
|
+
export type OpenAiContainerCreateParsedRequest = z.output<typeof OpenAiContainerCreateRequestSchema>;
|
|
2770
|
+
export type OpenAiUploadCreateRequest = z.input<typeof OpenAiUploadCreateRequestSchema>;
|
|
2771
|
+
export type OpenAiUploadCreateRequestInput = OpenAiUploadCreateRequest;
|
|
2772
|
+
export type OpenAiUploadCreateParsedRequest = z.output<typeof OpenAiUploadCreateRequestSchema>;
|
|
1113
2773
|
export type OpenAiBatchCreateRequest = z.input<typeof OpenAiBatchCreateRequestSchema>;
|
|
1114
2774
|
export type OpenAiBatchCreateRequestInput = OpenAiBatchCreateRequest;
|
|
1115
2775
|
export type OpenAiBatchCreateParsedRequest = z.output<typeof OpenAiBatchCreateRequestSchema>;
|
|
@@ -1137,9 +2797,62 @@ export type OpenAiResponseCompactParsedRequest = z.output<typeof OpenAiResponseC
|
|
|
1137
2797
|
export type OpenAiResponseInputTokensRequest = z.input<typeof OpenAiResponseInputTokensRequestSchema>;
|
|
1138
2798
|
export type OpenAiResponseInputTokensRequestInput = OpenAiResponseInputTokensRequest;
|
|
1139
2799
|
export type OpenAiResponseInputTokensParsedRequest = z.output<typeof OpenAiResponseInputTokensRequestSchema>;
|
|
2800
|
+
export type OpenAiEvalCustomDataSourceConfig = z.infer<typeof OpenAiEvalCustomDataSourceConfigSchema>;
|
|
2801
|
+
export type OpenAiEvalLogsDataSourceConfig = z.infer<typeof OpenAiEvalLogsDataSourceConfigSchema>;
|
|
2802
|
+
export type OpenAiEvalStoredCompletionsDataSourceConfig = z.infer<typeof OpenAiEvalStoredCompletionsDataSourceConfigSchema>;
|
|
2803
|
+
export type OpenAiEvalDataSourceConfig = z.infer<typeof OpenAiEvalDataSourceConfigSchema>;
|
|
2804
|
+
export type OpenAiEvalOutputTextContent = z.infer<typeof OpenAiEvalOutputTextContentSchema>;
|
|
2805
|
+
export type OpenAiEvalInputImageContent = z.infer<typeof OpenAiEvalInputImageContentSchema>;
|
|
2806
|
+
export type OpenAiEvalInputAudioContent = z.infer<typeof OpenAiEvalInputAudioContentSchema>;
|
|
2807
|
+
export type OpenAiEvalMessageContentPart = z.infer<typeof OpenAiEvalMessageContentPartSchema>;
|
|
2808
|
+
export type OpenAiEvalMessageContent = z.infer<typeof OpenAiEvalMessageContentSchema>;
|
|
2809
|
+
export type OpenAiEvalSimpleInputMessage = z.infer<typeof OpenAiEvalSimpleInputMessageSchema>;
|
|
2810
|
+
export type OpenAiEvalMessageObject = z.infer<typeof OpenAiEvalMessageObjectSchema>;
|
|
2811
|
+
export type OpenAiEvalInputMessage = z.infer<typeof OpenAiEvalInputMessageSchema>;
|
|
2812
|
+
export type OpenAiEvalLabelModelGrader = z.infer<typeof OpenAiEvalLabelModelGraderSchema>;
|
|
2813
|
+
export type OpenAiEvalStringCheckGrader = z.infer<typeof OpenAiEvalStringCheckGraderSchema>;
|
|
2814
|
+
export type OpenAiEvalTextSimilarityGrader = z.infer<typeof OpenAiEvalTextSimilarityGraderSchema>;
|
|
2815
|
+
export type OpenAiEvalPythonGrader = z.infer<typeof OpenAiEvalPythonGraderSchema>;
|
|
2816
|
+
export type OpenAiEvalScoreModelGrader = z.infer<typeof OpenAiEvalScoreModelGraderSchema>;
|
|
2817
|
+
export type OpenAiEvalGrader = z.infer<typeof OpenAiEvalGraderSchema>;
|
|
2818
|
+
export type OpenAiEvalCreateRequest = z.input<typeof OpenAiEvalCreateRequestSchema>;
|
|
2819
|
+
export type OpenAiEvalCreateRequestInput = OpenAiEvalCreateRequest;
|
|
2820
|
+
export type OpenAiEvalCreateParsedRequest = z.output<typeof OpenAiEvalCreateRequestSchema>;
|
|
1140
2821
|
export type OpenAiConversationCreateRequest = z.input<typeof OpenAiConversationCreateRequestSchema>;
|
|
1141
2822
|
export type OpenAiConversationCreateRequestInput = OpenAiConversationCreateRequest;
|
|
1142
2823
|
export type OpenAiConversationCreateParsedRequest = z.output<typeof OpenAiConversationCreateRequestSchema>;
|
|
2824
|
+
export type OpenAiRealtimeAudioFormat = z.infer<typeof OpenAiRealtimeAudioFormatSchema>;
|
|
2825
|
+
export type OpenAiRealtimeNoiseReduction = z.infer<typeof OpenAiRealtimeNoiseReductionSchema>;
|
|
2826
|
+
export type OpenAiRealtimeAudioTranscription = z.infer<typeof OpenAiRealtimeAudioTranscriptionSchema>;
|
|
2827
|
+
export type OpenAiRealtimeServerVad = z.infer<typeof OpenAiRealtimeServerVadSchema>;
|
|
2828
|
+
export type OpenAiRealtimeSemanticVad = z.infer<typeof OpenAiRealtimeSemanticVadSchema>;
|
|
2829
|
+
export type OpenAiRealtimeTurnDetection = z.infer<typeof OpenAiRealtimeTurnDetectionSchema>;
|
|
2830
|
+
export type OpenAiRealtimeAudioInput = z.infer<typeof OpenAiRealtimeAudioInputSchema>;
|
|
2831
|
+
export type OpenAiRealtimeVoice = z.infer<typeof OpenAiRealtimeVoiceSchema>;
|
|
2832
|
+
export type OpenAiRealtimeAudioOutput = z.infer<typeof OpenAiRealtimeAudioOutputSchema>;
|
|
2833
|
+
export type OpenAiRealtimeAudioConfig = z.infer<typeof OpenAiRealtimeAudioConfigSchema>;
|
|
2834
|
+
export type OpenAiRealtimePrompt = z.infer<typeof OpenAiRealtimePromptSchema>;
|
|
2835
|
+
export type OpenAiRealtimeReasoning = z.infer<typeof OpenAiRealtimeReasoningSchema>;
|
|
2836
|
+
export type OpenAiRealtimeToolChoice = z.infer<typeof OpenAiRealtimeToolChoiceSchema>;
|
|
2837
|
+
export type OpenAiRealtimeFunctionTool = z.infer<typeof OpenAiRealtimeFunctionToolSchema>;
|
|
2838
|
+
export type OpenAiRealtimeMcpTool = z.infer<typeof OpenAiRealtimeMcpToolSchema>;
|
|
2839
|
+
export type OpenAiRealtimeTool = z.infer<typeof OpenAiRealtimeToolSchema>;
|
|
2840
|
+
export type OpenAiRealtimeTracing = z.infer<typeof OpenAiRealtimeTracingSchema>;
|
|
2841
|
+
export type OpenAiRealtimeTruncation = z.infer<typeof OpenAiRealtimeTruncationSchema>;
|
|
2842
|
+
export type OpenAiRealtimeSessionCreateRequest = z.input<typeof OpenAiRealtimeSessionCreateRequestSchema>;
|
|
2843
|
+
export type OpenAiRealtimeSessionCreateParsedRequest = z.output<typeof OpenAiRealtimeSessionCreateRequestSchema>;
|
|
2844
|
+
export type OpenAiRealtimeTranscriptionSessionCreateRequest = z.input<typeof OpenAiRealtimeTranscriptionSessionCreateRequestSchema>;
|
|
2845
|
+
export type OpenAiRealtimeTranscriptionSessionCreateParsedRequest = z.output<typeof OpenAiRealtimeTranscriptionSessionCreateRequestSchema>;
|
|
2846
|
+
export type OpenAiRealtimeClientSecretRequest = z.input<typeof OpenAiRealtimeClientSecretRequestSchema>;
|
|
2847
|
+
export type OpenAiRealtimeClientSecretRequestInput = OpenAiRealtimeClientSecretRequest;
|
|
2848
|
+
export type OpenAiRealtimeClientSecretParsedRequest = z.output<typeof OpenAiRealtimeClientSecretRequestSchema>;
|
|
2849
|
+
export type OpenAiVectorStoreExpirationPolicy = z.infer<typeof OpenAiVectorStoreExpirationPolicySchema>;
|
|
2850
|
+
export type OpenAiVectorStoreAutoChunkingStrategy = z.infer<typeof OpenAiVectorStoreAutoChunkingStrategySchema>;
|
|
2851
|
+
export type OpenAiVectorStoreStaticChunkingStrategy = z.infer<typeof OpenAiVectorStoreStaticChunkingStrategySchema>;
|
|
2852
|
+
export type OpenAiVectorStoreChunkingStrategy = z.infer<typeof OpenAiVectorStoreChunkingStrategySchema>;
|
|
2853
|
+
export type OpenAiVectorStoreCreateRequest = z.input<typeof OpenAiVectorStoreCreateRequestSchema>;
|
|
2854
|
+
export type OpenAiVectorStoreCreateRequestInput = OpenAiVectorStoreCreateRequest;
|
|
2855
|
+
export type OpenAiVectorStoreCreateParsedRequest = z.output<typeof OpenAiVectorStoreCreateRequestSchema>;
|
|
1143
2856
|
export type OpenAiFineTuningHyperparameters = z.infer<typeof OpenAiFineTuningHyperparametersSchema>;
|
|
1144
2857
|
export type OpenAiFineTuningSupervisedHyperparameters = z.infer<typeof OpenAiFineTuningSupervisedMethodSchema>["hyperparameters"];
|
|
1145
2858
|
export type OpenAiFineTuningSupervisedMethod = z.infer<typeof OpenAiFineTuningSupervisedMethodSchema>;
|