@effect/ai-openai 0.15.2 → 0.15.4

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.
@@ -41,11 +41,11 @@ export declare class AssistantToolsCode extends AssistantToolsCode_base {
41
41
  declare const AssistantToolsFileSearchType_base: S.Literal<["file_search"]>;
42
42
  export declare class AssistantToolsFileSearchType extends AssistantToolsFileSearchType_base {
43
43
  }
44
- declare const FileSearchRankingOptionsRanker_base: S.Literal<["auto", "default_2024_08_21"]>;
45
- export declare class FileSearchRankingOptionsRanker extends FileSearchRankingOptionsRanker_base {
44
+ declare const FileSearchRanker_base: S.Literal<["auto", "default_2024_08_21"]>;
45
+ export declare class FileSearchRanker extends FileSearchRanker_base {
46
46
  }
47
47
  declare const FileSearchRankingOptions_base: S.Struct<{
48
- ranker: S.optionalWith<typeof FileSearchRankingOptionsRanker, {
48
+ ranker: S.optionalWith<typeof FileSearchRanker, {
49
49
  nullable: true;
50
50
  }>;
51
51
  score_threshold: S.filter<S.filter<typeof S.Number>>;
@@ -311,7 +311,7 @@ declare const ListAssistantsResponse_base: S.Class<ListAssistantsResponse, {
311
311
  }, {}, {}>;
312
312
  export declare class ListAssistantsResponse extends ListAssistantsResponse_base {
313
313
  }
314
- declare const AssistantSupportedModels_base: S.Literal<["o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613"]>;
314
+ declare const AssistantSupportedModels_base: S.Literal<["o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4.5-preview", "gpt-4.5-preview-2025-02-27", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613"]>;
315
315
  export declare class AssistantSupportedModels extends AssistantSupportedModels_base {
316
316
  }
317
317
  declare const ReasoningEffort_base: S.Literal<["low", "medium", "high"]>;
@@ -1023,6 +1023,275 @@ declare const CreateBatchRequest_base: S.Class<CreateBatchRequest, {
1023
1023
  }, {}, {}>;
1024
1024
  export declare class CreateBatchRequest extends CreateBatchRequest_base {
1025
1025
  }
1026
+ declare const ListChatCompletionsParamsOrder_base: S.Literal<["asc", "desc"]>;
1027
+ export declare class ListChatCompletionsParamsOrder extends ListChatCompletionsParamsOrder_base {
1028
+ }
1029
+ declare const ListChatCompletionsParams_base: S.Struct<{
1030
+ model: S.optionalWith<typeof S.String, {
1031
+ nullable: true;
1032
+ }>;
1033
+ metadata: S.optionalWith<typeof Metadata, {
1034
+ nullable: true;
1035
+ }>;
1036
+ after: S.optionalWith<typeof S.String, {
1037
+ nullable: true;
1038
+ }>;
1039
+ limit: S.optionalWith<typeof S.Int, {
1040
+ nullable: true;
1041
+ default: () => 20;
1042
+ }>;
1043
+ order: S.optionalWith<typeof ListChatCompletionsParamsOrder, {
1044
+ nullable: true;
1045
+ default: () => "asc";
1046
+ }>;
1047
+ }>;
1048
+ export declare class ListChatCompletionsParams extends ListChatCompletionsParams_base {
1049
+ }
1050
+ declare const ChatCompletionListObject_base: S.Literal<["list"]>;
1051
+ export declare class ChatCompletionListObject extends ChatCompletionListObject_base {
1052
+ }
1053
+ declare const ChatCompletionMessageToolCallType_base: S.Literal<["function"]>;
1054
+ export declare class ChatCompletionMessageToolCallType extends ChatCompletionMessageToolCallType_base {
1055
+ }
1056
+ declare const ChatCompletionMessageToolCall_base: S.Struct<{
1057
+ id: typeof S.String;
1058
+ type: typeof ChatCompletionMessageToolCallType;
1059
+ function: S.Struct<{
1060
+ name: typeof S.String;
1061
+ arguments: typeof S.String;
1062
+ }>;
1063
+ }>;
1064
+ export declare class ChatCompletionMessageToolCall extends ChatCompletionMessageToolCall_base {
1065
+ }
1066
+ declare const ChatCompletionMessageToolCalls_base: S.Array$<typeof ChatCompletionMessageToolCall>;
1067
+ export declare class ChatCompletionMessageToolCalls extends ChatCompletionMessageToolCalls_base {
1068
+ }
1069
+ declare const ChatCompletionResponseMessageRole_base: S.Literal<["assistant"]>;
1070
+ export declare class ChatCompletionResponseMessageRole extends ChatCompletionResponseMessageRole_base {
1071
+ }
1072
+ declare const ChatCompletionResponseMessage_base: S.Struct<{
1073
+ content: S.NullOr<typeof S.String>;
1074
+ refusal: S.NullOr<typeof S.String>;
1075
+ tool_calls: S.optionalWith<typeof ChatCompletionMessageToolCalls, {
1076
+ nullable: true;
1077
+ }>;
1078
+ annotations: S.optionalWith<S.Array$<S.Struct<{
1079
+ type: S.Literal<["url_citation"]>;
1080
+ url_citation: S.Struct<{
1081
+ end_index: typeof S.Int;
1082
+ start_index: typeof S.Int;
1083
+ url: typeof S.String;
1084
+ title: typeof S.String;
1085
+ }>;
1086
+ }>>, {
1087
+ nullable: true;
1088
+ }>;
1089
+ role: typeof ChatCompletionResponseMessageRole;
1090
+ function_call: S.optionalWith<S.Struct<{
1091
+ arguments: typeof S.String;
1092
+ name: typeof S.String;
1093
+ }>, {
1094
+ nullable: true;
1095
+ }>;
1096
+ audio: S.optionalWith<S.Struct<{
1097
+ id: typeof S.String;
1098
+ expires_at: typeof S.Int;
1099
+ data: typeof S.String;
1100
+ transcript: typeof S.String;
1101
+ }>, {
1102
+ nullable: true;
1103
+ }>;
1104
+ }>;
1105
+ export declare class ChatCompletionResponseMessage extends ChatCompletionResponseMessage_base {
1106
+ }
1107
+ declare const ChatCompletionTokenLogprob_base: S.Struct<{
1108
+ token: typeof S.String;
1109
+ logprob: typeof S.Number;
1110
+ bytes: S.NullOr<S.Array$<typeof S.Int>>;
1111
+ top_logprobs: S.Array$<S.Struct<{
1112
+ token: typeof S.String;
1113
+ logprob: typeof S.Number;
1114
+ bytes: S.NullOr<S.Array$<typeof S.Int>>;
1115
+ }>>;
1116
+ }>;
1117
+ export declare class ChatCompletionTokenLogprob extends ChatCompletionTokenLogprob_base {
1118
+ }
1119
+ declare const CreateChatCompletionResponseServiceTier_base: S.Literal<["scale", "default"]>;
1120
+ export declare class CreateChatCompletionResponseServiceTier extends CreateChatCompletionResponseServiceTier_base {
1121
+ }
1122
+ declare const CreateChatCompletionResponseObject_base: S.Literal<["chat.completion"]>;
1123
+ export declare class CreateChatCompletionResponseObject extends CreateChatCompletionResponseObject_base {
1124
+ }
1125
+ declare const CompletionUsage_base: S.Struct<{
1126
+ completion_tokens: S.PropertySignature<":", number, never, ":", number, true, never>;
1127
+ prompt_tokens: S.PropertySignature<":", number, never, ":", number, true, never>;
1128
+ total_tokens: S.PropertySignature<":", number, never, ":", number, true, never>;
1129
+ completion_tokens_details: S.optionalWith<S.Struct<{
1130
+ accepted_prediction_tokens: S.optionalWith<typeof S.Int, {
1131
+ nullable: true;
1132
+ default: () => 0;
1133
+ }>;
1134
+ audio_tokens: S.optionalWith<typeof S.Int, {
1135
+ nullable: true;
1136
+ default: () => 0;
1137
+ }>;
1138
+ reasoning_tokens: S.optionalWith<typeof S.Int, {
1139
+ nullable: true;
1140
+ default: () => 0;
1141
+ }>;
1142
+ rejected_prediction_tokens: S.optionalWith<typeof S.Int, {
1143
+ nullable: true;
1144
+ default: () => 0;
1145
+ }>;
1146
+ }>, {
1147
+ nullable: true;
1148
+ }>;
1149
+ prompt_tokens_details: S.optionalWith<S.Struct<{
1150
+ audio_tokens: S.optionalWith<typeof S.Int, {
1151
+ nullable: true;
1152
+ default: () => 0;
1153
+ }>;
1154
+ cached_tokens: S.optionalWith<typeof S.Int, {
1155
+ nullable: true;
1156
+ default: () => 0;
1157
+ }>;
1158
+ }>, {
1159
+ nullable: true;
1160
+ }>;
1161
+ }>;
1162
+ export declare class CompletionUsage extends CompletionUsage_base {
1163
+ }
1164
+ declare const CreateChatCompletionResponse_base: S.Struct<{
1165
+ id: typeof S.String;
1166
+ choices: S.Array$<S.Struct<{
1167
+ finish_reason: S.Literal<["stop", "length", "tool_calls", "content_filter", "function_call"]>;
1168
+ index: typeof S.Int;
1169
+ message: typeof ChatCompletionResponseMessage;
1170
+ logprobs: S.NullOr<S.Struct<{
1171
+ content: S.NullOr<S.Array$<typeof ChatCompletionTokenLogprob>>;
1172
+ refusal: S.NullOr<S.Array$<typeof ChatCompletionTokenLogprob>>;
1173
+ }>>;
1174
+ }>>;
1175
+ created: typeof S.Int;
1176
+ model: typeof S.String;
1177
+ service_tier: S.optionalWith<typeof CreateChatCompletionResponseServiceTier, {
1178
+ nullable: true;
1179
+ }>;
1180
+ system_fingerprint: S.optionalWith<typeof S.String, {
1181
+ nullable: true;
1182
+ }>;
1183
+ object: typeof CreateChatCompletionResponseObject;
1184
+ usage: S.optionalWith<typeof CompletionUsage, {
1185
+ nullable: true;
1186
+ }>;
1187
+ }>;
1188
+ export declare class CreateChatCompletionResponse extends CreateChatCompletionResponse_base {
1189
+ }
1190
+ declare const ChatCompletionList_base: S.Class<ChatCompletionList, {
1191
+ object: S.PropertySignature<":", "list", never, ":", "list", true, never>;
1192
+ data: S.Array$<typeof CreateChatCompletionResponse>;
1193
+ first_id: typeof S.String;
1194
+ last_id: typeof S.String;
1195
+ has_more: typeof S.Boolean;
1196
+ }, S.Struct.Encoded<{
1197
+ object: S.PropertySignature<":", "list", never, ":", "list", true, never>;
1198
+ data: S.Array$<typeof CreateChatCompletionResponse>;
1199
+ first_id: typeof S.String;
1200
+ last_id: typeof S.String;
1201
+ has_more: typeof S.Boolean;
1202
+ }>, never, {
1203
+ readonly object?: "list" | undefined;
1204
+ } & {
1205
+ readonly first_id: string;
1206
+ } & {
1207
+ readonly last_id: string;
1208
+ } & {
1209
+ readonly has_more: boolean;
1210
+ } & {
1211
+ readonly data: readonly {
1212
+ readonly object: "chat.completion";
1213
+ readonly id: string;
1214
+ readonly model: string;
1215
+ readonly choices: readonly {
1216
+ readonly message: {
1217
+ readonly annotations?: readonly {
1218
+ readonly type: "url_citation";
1219
+ readonly url_citation: {
1220
+ readonly end_index: number;
1221
+ readonly start_index: number;
1222
+ readonly url: string;
1223
+ readonly title: string;
1224
+ };
1225
+ }[] | undefined;
1226
+ readonly content: string | null;
1227
+ readonly refusal: string | null;
1228
+ readonly tool_calls?: readonly {
1229
+ readonly function: {
1230
+ readonly name: string;
1231
+ readonly arguments: string;
1232
+ };
1233
+ readonly type: "function";
1234
+ readonly id: string;
1235
+ }[] | undefined;
1236
+ readonly role: "assistant";
1237
+ readonly function_call?: {
1238
+ readonly name: string;
1239
+ readonly arguments: string;
1240
+ } | undefined;
1241
+ readonly audio?: {
1242
+ readonly id: string;
1243
+ readonly data: string;
1244
+ readonly expires_at: number;
1245
+ readonly transcript: string;
1246
+ } | undefined;
1247
+ };
1248
+ readonly finish_reason: "length" | "tool_calls" | "function_call" | "stop" | "content_filter";
1249
+ readonly index: number;
1250
+ readonly logprobs: {
1251
+ readonly content: readonly {
1252
+ readonly token: string;
1253
+ readonly logprob: number;
1254
+ readonly bytes: readonly number[] | null;
1255
+ readonly top_logprobs: readonly {
1256
+ readonly token: string;
1257
+ readonly logprob: number;
1258
+ readonly bytes: readonly number[] | null;
1259
+ }[];
1260
+ }[] | null;
1261
+ readonly refusal: readonly {
1262
+ readonly token: string;
1263
+ readonly logprob: number;
1264
+ readonly bytes: readonly number[] | null;
1265
+ readonly top_logprobs: readonly {
1266
+ readonly token: string;
1267
+ readonly logprob: number;
1268
+ readonly bytes: readonly number[] | null;
1269
+ }[];
1270
+ }[] | null;
1271
+ } | null;
1272
+ }[];
1273
+ readonly created: number;
1274
+ readonly service_tier?: "default" | "scale" | undefined;
1275
+ readonly system_fingerprint?: string | undefined;
1276
+ readonly usage?: {
1277
+ readonly completion_tokens: number;
1278
+ readonly prompt_tokens: number;
1279
+ readonly total_tokens: number;
1280
+ readonly completion_tokens_details?: {
1281
+ readonly accepted_prediction_tokens: number;
1282
+ readonly audio_tokens: number;
1283
+ readonly reasoning_tokens: number;
1284
+ readonly rejected_prediction_tokens: number;
1285
+ } | undefined;
1286
+ readonly prompt_tokens_details?: {
1287
+ readonly audio_tokens: number;
1288
+ readonly cached_tokens: number;
1289
+ } | undefined;
1290
+ } | undefined;
1291
+ }[];
1292
+ }, {}, {}>;
1293
+ export declare class ChatCompletionList extends ChatCompletionList_base {
1294
+ }
1026
1295
  declare const ChatCompletionRequestMessageContentPartTextType_base: S.Literal<["text"]>;
1027
1296
  export declare class ChatCompletionRequestMessageContentPartTextType extends ChatCompletionRequestMessageContentPartTextType_base {
1028
1297
  }
@@ -1091,7 +1360,26 @@ declare const ChatCompletionRequestMessageContentPartAudio_base: S.Struct<{
1091
1360
  }>;
1092
1361
  export declare class ChatCompletionRequestMessageContentPartAudio extends ChatCompletionRequestMessageContentPartAudio_base {
1093
1362
  }
1094
- declare const ChatCompletionRequestUserMessageContentPart_base: S.Union<[typeof ChatCompletionRequestMessageContentPartText, typeof ChatCompletionRequestMessageContentPartImage, typeof ChatCompletionRequestMessageContentPartAudio]>;
1363
+ declare const ChatCompletionRequestMessageContentPartFileType_base: S.Literal<["file"]>;
1364
+ export declare class ChatCompletionRequestMessageContentPartFileType extends ChatCompletionRequestMessageContentPartFileType_base {
1365
+ }
1366
+ declare const ChatCompletionRequestMessageContentPartFile_base: S.Struct<{
1367
+ type: typeof ChatCompletionRequestMessageContentPartFileType;
1368
+ file: S.Struct<{
1369
+ file_name: S.optionalWith<typeof S.String, {
1370
+ nullable: true;
1371
+ }>;
1372
+ file_data: S.optionalWith<typeof S.String, {
1373
+ nullable: true;
1374
+ }>;
1375
+ file_id: S.optionalWith<typeof S.String, {
1376
+ nullable: true;
1377
+ }>;
1378
+ }>;
1379
+ }>;
1380
+ export declare class ChatCompletionRequestMessageContentPartFile extends ChatCompletionRequestMessageContentPartFile_base {
1381
+ }
1382
+ declare const ChatCompletionRequestUserMessageContentPart_base: S.Union<[typeof ChatCompletionRequestMessageContentPartText, typeof ChatCompletionRequestMessageContentPartImage, typeof ChatCompletionRequestMessageContentPartAudio, typeof ChatCompletionRequestMessageContentPartFile]>;
1095
1383
  export declare class ChatCompletionRequestUserMessageContentPart extends ChatCompletionRequestUserMessageContentPart_base {
1096
1384
  }
1097
1385
  declare const ChatCompletionRequestUserMessageRole_base: S.Literal<["user"]>;
@@ -1121,22 +1409,6 @@ export declare class ChatCompletionRequestAssistantMessageContentPart extends Ch
1121
1409
  declare const ChatCompletionRequestAssistantMessageRole_base: S.Literal<["assistant"]>;
1122
1410
  export declare class ChatCompletionRequestAssistantMessageRole extends ChatCompletionRequestAssistantMessageRole_base {
1123
1411
  }
1124
- declare const ChatCompletionMessageToolCallType_base: S.Literal<["function"]>;
1125
- export declare class ChatCompletionMessageToolCallType extends ChatCompletionMessageToolCallType_base {
1126
- }
1127
- declare const ChatCompletionMessageToolCall_base: S.Struct<{
1128
- id: typeof S.String;
1129
- type: typeof ChatCompletionMessageToolCallType;
1130
- function: S.Struct<{
1131
- name: typeof S.String;
1132
- arguments: typeof S.String;
1133
- }>;
1134
- }>;
1135
- export declare class ChatCompletionMessageToolCall extends ChatCompletionMessageToolCall_base {
1136
- }
1137
- declare const ChatCompletionMessageToolCalls_base: S.Array$<typeof ChatCompletionMessageToolCall>;
1138
- export declare class ChatCompletionMessageToolCalls extends ChatCompletionMessageToolCalls_base {
1139
- }
1140
1412
  declare const ChatCompletionRequestAssistantMessage_base: S.Struct<{
1141
1413
  content: S.optionalWith<S.Union<[typeof S.String, S.NonEmptyArray<typeof ChatCompletionRequestAssistantMessageContentPart>]>, {
1142
1414
  nullable: true;
@@ -1190,20 +1462,33 @@ export declare class ChatCompletionRequestFunctionMessage extends ChatCompletion
1190
1462
  declare const ChatCompletionRequestMessage_base: S.Union<[typeof ChatCompletionRequestDeveloperMessage, typeof ChatCompletionRequestSystemMessage, typeof ChatCompletionRequestUserMessage, typeof ChatCompletionRequestAssistantMessage, typeof ChatCompletionRequestToolMessage, typeof ChatCompletionRequestFunctionMessage]>;
1191
1463
  export declare class ChatCompletionRequestMessage extends ChatCompletionRequestMessage_base {
1192
1464
  }
1193
- declare const CreateChatCompletionRequestModelEnum_base: S.Literal<["o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "o1-preview", "o1-preview-2024-09-12", "o1-mini", "o1-mini-2024-09-12", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01", "gpt-4o-audio-preview-2024-12-17", "gpt-4o-mini-audio-preview", "gpt-4o-mini-audio-preview-2024-12-17", "chatgpt-4o-latest", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613"]>;
1194
- export declare class CreateChatCompletionRequestModelEnum extends CreateChatCompletionRequestModelEnum_base {
1195
- }
1196
- declare const ChatCompletionModalities_base: S.Array$<S.Literal<["text", "audio"]>>;
1197
- export declare class ChatCompletionModalities extends ChatCompletionModalities_base {
1465
+ declare const ResponseModalities_base: S.Array$<S.Literal<["text", "audio"]>>;
1466
+ export declare class ResponseModalities extends ResponseModalities_base {
1198
1467
  }
1199
- declare const PredictionContentType_base: S.Literal<["content"]>;
1200
- export declare class PredictionContentType extends PredictionContentType_base {
1468
+ declare const CreateChatCompletionRequestWebSearchOptionsUserLocationType_base: S.Literal<["approximate"]>;
1469
+ export declare class CreateChatCompletionRequestWebSearchOptionsUserLocationType extends CreateChatCompletionRequestWebSearchOptionsUserLocationType_base {
1201
1470
  }
1202
- declare const PredictionContent_base: S.Struct<{
1203
- type: typeof PredictionContentType;
1204
- content: S.Union<[typeof S.String, S.NonEmptyArray<typeof ChatCompletionRequestMessageContentPartText>]>;
1471
+ declare const WebSearchLocation_base: S.Struct<{
1472
+ country: S.optionalWith<typeof S.String, {
1473
+ nullable: true;
1474
+ }>;
1475
+ region: S.optionalWith<typeof S.String, {
1476
+ nullable: true;
1477
+ }>;
1478
+ city: S.optionalWith<typeof S.String, {
1479
+ nullable: true;
1480
+ }>;
1481
+ timezone: S.optionalWith<typeof S.String, {
1482
+ nullable: true;
1483
+ }>;
1205
1484
  }>;
1206
- export declare class PredictionContent extends PredictionContent_base {
1485
+ export declare class WebSearchLocation extends WebSearchLocation_base {
1486
+ }
1487
+ declare const WebSearchContextSize_base: S.Literal<["low", "medium", "high"]>;
1488
+ export declare class WebSearchContextSize extends WebSearchContextSize_base {
1489
+ }
1490
+ declare const CreateChatCompletionRequestServiceTier_base: S.Literal<["auto", "default"]>;
1491
+ export declare class CreateChatCompletionRequestServiceTier extends CreateChatCompletionRequestServiceTier_base {
1207
1492
  }
1208
1493
  declare const CreateChatCompletionRequestAudioVoice_base: S.Literal<["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse"]>;
1209
1494
  export declare class CreateChatCompletionRequestAudioVoice extends CreateChatCompletionRequestAudioVoice_base {
@@ -1211,8 +1496,17 @@ export declare class CreateChatCompletionRequestAudioVoice extends CreateChatCom
1211
1496
  declare const CreateChatCompletionRequestAudioFormat_base: S.Literal<["wav", "mp3", "flac", "opus", "pcm16"]>;
1212
1497
  export declare class CreateChatCompletionRequestAudioFormat extends CreateChatCompletionRequestAudioFormat_base {
1213
1498
  }
1214
- declare const CreateChatCompletionRequestServiceTier_base: S.Literal<["auto", "default"]>;
1215
- export declare class CreateChatCompletionRequestServiceTier extends CreateChatCompletionRequestServiceTier_base {
1499
+ declare const StopConfiguration_base: S.Union<[typeof S.String, S.filter<S.filter<S.Array$<typeof S.String>>>]>;
1500
+ export declare class StopConfiguration extends StopConfiguration_base {
1501
+ }
1502
+ declare const PredictionContentType_base: S.Literal<["content"]>;
1503
+ export declare class PredictionContentType extends PredictionContentType_base {
1504
+ }
1505
+ declare const PredictionContent_base: S.Struct<{
1506
+ type: typeof PredictionContentType;
1507
+ content: S.Union<[typeof S.String, S.NonEmptyArray<typeof ChatCompletionRequestMessageContentPartText>]>;
1508
+ }>;
1509
+ export declare class PredictionContent extends PredictionContent_base {
1216
1510
  }
1217
1511
  declare const ChatCompletionStreamOptions_base: S.Struct<{
1218
1512
  include_usage: S.optionalWith<typeof S.Boolean, {
@@ -1268,49 +1562,52 @@ declare const ChatCompletionFunctions_base: S.Struct<{
1268
1562
  }>;
1269
1563
  export declare class ChatCompletionFunctions extends ChatCompletionFunctions_base {
1270
1564
  }
1565
+ declare const CreateChatCompletionRequestModelEnum_base: S.Literal<["o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "o1-preview", "o1-preview-2024-09-12", "o1-mini", "o1-mini-2024-09-12", "computer-use-preview", "computer-use-preview-2025-02-04", "computer-use-preview-2025-03-11", "gpt-4.5-preview", "gpt-4.5-preview-2025-02-27", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01", "gpt-4o-audio-preview-2024-12-17", "gpt-4o-mini-audio-preview", "gpt-4o-mini-audio-preview-2024-12-17", "chatgpt-4o-latest", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613"]>;
1566
+ export declare class CreateChatCompletionRequestModelEnum extends CreateChatCompletionRequestModelEnum_base {
1567
+ }
1271
1568
  declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequest, {
1272
1569
  messages: S.NonEmptyArray<typeof ChatCompletionRequestMessage>;
1273
- model: S.Union<[typeof S.String, typeof CreateChatCompletionRequestModelEnum]>;
1274
- store: S.optionalWith<typeof S.Boolean, {
1570
+ modalities: S.optionalWith<typeof ResponseModalities, {
1275
1571
  nullable: true;
1276
- default: () => false;
1277
1572
  }>;
1278
1573
  reasoning_effort: S.optionalWith<typeof ReasoningEffort, {
1279
1574
  nullable: true;
1280
1575
  default: () => "medium";
1281
1576
  }>;
1282
- metadata: S.optionalWith<typeof Metadata, {
1577
+ max_completion_tokens: S.optionalWith<typeof S.Int, {
1283
1578
  nullable: true;
1284
1579
  }>;
1285
1580
  frequency_penalty: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
1286
1581
  nullable: true;
1287
1582
  default: () => 0;
1288
1583
  }>;
1289
- logit_bias: S.optionalWith<S.NullOr<S.Record$<typeof S.String, typeof S.Unknown>>, {
1290
- default: () => null;
1291
- }>;
1292
- logprobs: S.optionalWith<typeof S.Boolean, {
1293
- nullable: true;
1294
- default: () => false;
1295
- }>;
1296
- top_logprobs: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
1297
- nullable: true;
1298
- }>;
1299
- max_tokens: S.optionalWith<typeof S.Int, {
1584
+ presence_penalty: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
1300
1585
  nullable: true;
1586
+ default: () => 0;
1301
1587
  }>;
1302
- max_completion_tokens: S.optionalWith<typeof S.Int, {
1588
+ web_search_options: S.optionalWith<S.Struct<{
1589
+ user_location: S.optionalWith<S.Struct<{
1590
+ type: typeof CreateChatCompletionRequestWebSearchOptionsUserLocationType;
1591
+ approximate: typeof WebSearchLocation;
1592
+ }>, {
1593
+ nullable: true;
1594
+ }>;
1595
+ search_context_size: S.optionalWith<typeof WebSearchContextSize, {
1596
+ nullable: true;
1597
+ default: () => "medium";
1598
+ }>;
1599
+ }>, {
1303
1600
  nullable: true;
1304
1601
  }>;
1305
- n: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
1602
+ top_logprobs: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
1306
1603
  nullable: true;
1307
- default: () => 1;
1308
1604
  }>;
1309
- modalities: S.optionalWith<typeof ChatCompletionModalities, {
1605
+ response_format: S.optionalWith<S.Union<[typeof ResponseFormatText, typeof ResponseFormatJsonSchema, typeof ResponseFormatJsonObject]>, {
1310
1606
  nullable: true;
1311
1607
  }>;
1312
- prediction: S.optionalWith<typeof PredictionContent, {
1608
+ service_tier: S.optionalWith<typeof CreateChatCompletionRequestServiceTier, {
1313
1609
  nullable: true;
1610
+ default: () => "auto";
1314
1611
  }>;
1315
1612
  audio: S.optionalWith<S.Struct<{
1316
1613
  voice: typeof CreateChatCompletionRequestAudioVoice;
@@ -1318,37 +1615,39 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
1318
1615
  }>, {
1319
1616
  nullable: true;
1320
1617
  }>;
1321
- presence_penalty: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
1322
- nullable: true;
1323
- default: () => 0;
1324
- }>;
1325
- response_format: S.optionalWith<S.Union<[typeof ResponseFormatText, typeof ResponseFormatJsonObject, typeof ResponseFormatJsonSchema]>, {
1618
+ store: S.optionalWith<typeof S.Boolean, {
1326
1619
  nullable: true;
1620
+ default: () => false;
1327
1621
  }>;
1328
- seed: S.optionalWith<typeof S.Int, {
1622
+ stream: S.optionalWith<typeof S.Boolean, {
1329
1623
  nullable: true;
1624
+ default: () => false;
1330
1625
  }>;
1331
- service_tier: S.optionalWith<typeof CreateChatCompletionRequestServiceTier, {
1332
- nullable: true;
1333
- default: () => "auto";
1626
+ stop: S.optionalWith<S.NullOr<typeof StopConfiguration>, {
1627
+ default: () => null;
1334
1628
  }>;
1335
- stop: S.optionalWith<S.NullOr<S.Union<[typeof S.String, S.filter<S.filter<S.Array$<typeof S.String>>>]>>, {
1629
+ logit_bias: S.optionalWith<S.NullOr<S.Record$<typeof S.String, typeof S.Unknown>>, {
1336
1630
  default: () => null;
1337
1631
  }>;
1338
- stream: S.optionalWith<typeof S.Boolean, {
1632
+ logprobs: S.optionalWith<typeof S.Boolean, {
1339
1633
  nullable: true;
1340
1634
  default: () => false;
1341
1635
  }>;
1342
- stream_options: S.optionalWith<S.NullOr<typeof ChatCompletionStreamOptions>, {
1343
- default: () => null;
1636
+ max_tokens: S.optionalWith<typeof S.Int, {
1637
+ nullable: true;
1344
1638
  }>;
1345
- temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
1639
+ n: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
1346
1640
  nullable: true;
1347
1641
  default: () => 1;
1348
1642
  }>;
1349
- top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
1643
+ prediction: S.optionalWith<typeof PredictionContent, {
1350
1644
  nullable: true;
1351
- default: () => 1;
1645
+ }>;
1646
+ seed: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
1647
+ nullable: true;
1648
+ }>;
1649
+ stream_options: S.optionalWith<S.NullOr<typeof ChatCompletionStreamOptions>, {
1650
+ default: () => null;
1352
1651
  }>;
1353
1652
  tools: S.optionalWith<S.Array$<typeof ChatCompletionTool>, {
1354
1653
  nullable: true;
@@ -1360,58 +1659,70 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
1360
1659
  nullable: true;
1361
1660
  default: () => true;
1362
1661
  }>;
1363
- user: S.optionalWith<typeof S.String, {
1364
- nullable: true;
1365
- }>;
1366
1662
  function_call: S.optionalWith<S.Union<[typeof CreateChatCompletionRequestFunctionCallEnum, typeof ChatCompletionFunctionCallOption]>, {
1367
1663
  nullable: true;
1368
1664
  }>;
1369
1665
  functions: S.optionalWith<S.filter<S.filter<S.Array$<typeof ChatCompletionFunctions>>>, {
1370
1666
  nullable: true;
1371
1667
  }>;
1372
- }, S.Struct.Encoded<{
1373
- messages: S.NonEmptyArray<typeof ChatCompletionRequestMessage>;
1374
1668
  model: S.Union<[typeof S.String, typeof CreateChatCompletionRequestModelEnum]>;
1375
- store: S.optionalWith<typeof S.Boolean, {
1669
+ metadata: S.optionalWith<typeof Metadata, {
1376
1670
  nullable: true;
1377
- default: () => false;
1378
1671
  }>;
1379
- reasoning_effort: S.optionalWith<typeof ReasoningEffort, {
1672
+ temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
1380
1673
  nullable: true;
1381
- default: () => "medium";
1674
+ default: () => 1;
1382
1675
  }>;
1383
- metadata: S.optionalWith<typeof Metadata, {
1676
+ top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
1384
1677
  nullable: true;
1678
+ default: () => 1;
1385
1679
  }>;
1386
- frequency_penalty: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
1680
+ user: S.optionalWith<typeof S.String, {
1387
1681
  nullable: true;
1388
- default: () => 0;
1389
1682
  }>;
1390
- logit_bias: S.optionalWith<S.NullOr<S.Record$<typeof S.String, typeof S.Unknown>>, {
1391
- default: () => null;
1683
+ }, S.Struct.Encoded<{
1684
+ messages: S.NonEmptyArray<typeof ChatCompletionRequestMessage>;
1685
+ modalities: S.optionalWith<typeof ResponseModalities, {
1686
+ nullable: true;
1392
1687
  }>;
1393
- logprobs: S.optionalWith<typeof S.Boolean, {
1688
+ reasoning_effort: S.optionalWith<typeof ReasoningEffort, {
1394
1689
  nullable: true;
1395
- default: () => false;
1690
+ default: () => "medium";
1396
1691
  }>;
1397
- top_logprobs: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
1692
+ max_completion_tokens: S.optionalWith<typeof S.Int, {
1398
1693
  nullable: true;
1399
1694
  }>;
1400
- max_tokens: S.optionalWith<typeof S.Int, {
1695
+ frequency_penalty: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
1401
1696
  nullable: true;
1697
+ default: () => 0;
1402
1698
  }>;
1403
- max_completion_tokens: S.optionalWith<typeof S.Int, {
1699
+ presence_penalty: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
1404
1700
  nullable: true;
1701
+ default: () => 0;
1405
1702
  }>;
1406
- n: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
1703
+ web_search_options: S.optionalWith<S.Struct<{
1704
+ user_location: S.optionalWith<S.Struct<{
1705
+ type: typeof CreateChatCompletionRequestWebSearchOptionsUserLocationType;
1706
+ approximate: typeof WebSearchLocation;
1707
+ }>, {
1708
+ nullable: true;
1709
+ }>;
1710
+ search_context_size: S.optionalWith<typeof WebSearchContextSize, {
1711
+ nullable: true;
1712
+ default: () => "medium";
1713
+ }>;
1714
+ }>, {
1407
1715
  nullable: true;
1408
- default: () => 1;
1409
1716
  }>;
1410
- modalities: S.optionalWith<typeof ChatCompletionModalities, {
1717
+ top_logprobs: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
1411
1718
  nullable: true;
1412
1719
  }>;
1413
- prediction: S.optionalWith<typeof PredictionContent, {
1720
+ response_format: S.optionalWith<S.Union<[typeof ResponseFormatText, typeof ResponseFormatJsonSchema, typeof ResponseFormatJsonObject]>, {
1721
+ nullable: true;
1722
+ }>;
1723
+ service_tier: S.optionalWith<typeof CreateChatCompletionRequestServiceTier, {
1414
1724
  nullable: true;
1725
+ default: () => "auto";
1415
1726
  }>;
1416
1727
  audio: S.optionalWith<S.Struct<{
1417
1728
  voice: typeof CreateChatCompletionRequestAudioVoice;
@@ -1419,37 +1730,39 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
1419
1730
  }>, {
1420
1731
  nullable: true;
1421
1732
  }>;
1422
- presence_penalty: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
1423
- nullable: true;
1424
- default: () => 0;
1425
- }>;
1426
- response_format: S.optionalWith<S.Union<[typeof ResponseFormatText, typeof ResponseFormatJsonObject, typeof ResponseFormatJsonSchema]>, {
1733
+ store: S.optionalWith<typeof S.Boolean, {
1427
1734
  nullable: true;
1735
+ default: () => false;
1428
1736
  }>;
1429
- seed: S.optionalWith<typeof S.Int, {
1737
+ stream: S.optionalWith<typeof S.Boolean, {
1430
1738
  nullable: true;
1739
+ default: () => false;
1431
1740
  }>;
1432
- service_tier: S.optionalWith<typeof CreateChatCompletionRequestServiceTier, {
1433
- nullable: true;
1434
- default: () => "auto";
1741
+ stop: S.optionalWith<S.NullOr<typeof StopConfiguration>, {
1742
+ default: () => null;
1435
1743
  }>;
1436
- stop: S.optionalWith<S.NullOr<S.Union<[typeof S.String, S.filter<S.filter<S.Array$<typeof S.String>>>]>>, {
1744
+ logit_bias: S.optionalWith<S.NullOr<S.Record$<typeof S.String, typeof S.Unknown>>, {
1437
1745
  default: () => null;
1438
1746
  }>;
1439
- stream: S.optionalWith<typeof S.Boolean, {
1747
+ logprobs: S.optionalWith<typeof S.Boolean, {
1440
1748
  nullable: true;
1441
1749
  default: () => false;
1442
1750
  }>;
1443
- stream_options: S.optionalWith<S.NullOr<typeof ChatCompletionStreamOptions>, {
1444
- default: () => null;
1751
+ max_tokens: S.optionalWith<typeof S.Int, {
1752
+ nullable: true;
1445
1753
  }>;
1446
- temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
1754
+ n: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
1447
1755
  nullable: true;
1448
1756
  default: () => 1;
1449
1757
  }>;
1450
- top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
1758
+ prediction: S.optionalWith<typeof PredictionContent, {
1451
1759
  nullable: true;
1452
- default: () => 1;
1760
+ }>;
1761
+ seed: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
1762
+ nullable: true;
1763
+ }>;
1764
+ stream_options: S.optionalWith<S.NullOr<typeof ChatCompletionStreamOptions>, {
1765
+ default: () => null;
1453
1766
  }>;
1454
1767
  tools: S.optionalWith<S.Array$<typeof ChatCompletionTool>, {
1455
1768
  nullable: true;
@@ -1461,15 +1774,27 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
1461
1774
  nullable: true;
1462
1775
  default: () => true;
1463
1776
  }>;
1464
- user: S.optionalWith<typeof S.String, {
1465
- nullable: true;
1466
- }>;
1467
1777
  function_call: S.optionalWith<S.Union<[typeof CreateChatCompletionRequestFunctionCallEnum, typeof ChatCompletionFunctionCallOption]>, {
1468
1778
  nullable: true;
1469
1779
  }>;
1470
1780
  functions: S.optionalWith<S.filter<S.filter<S.Array$<typeof ChatCompletionFunctions>>>, {
1471
1781
  nullable: true;
1472
1782
  }>;
1783
+ model: S.Union<[typeof S.String, typeof CreateChatCompletionRequestModelEnum]>;
1784
+ metadata: S.optionalWith<typeof Metadata, {
1785
+ nullable: true;
1786
+ }>;
1787
+ temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
1788
+ nullable: true;
1789
+ default: () => 1;
1790
+ }>;
1791
+ top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
1792
+ nullable: true;
1793
+ default: () => 1;
1794
+ }>;
1795
+ user: S.optionalWith<typeof S.String, {
1796
+ nullable: true;
1797
+ }>;
1473
1798
  }>, never, {
1474
1799
  readonly model: string;
1475
1800
  } & {
@@ -1511,16 +1836,24 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
1511
1836
  } & {
1512
1837
  readonly reasoning_effort?: "low" | "medium" | "high" | undefined;
1513
1838
  } & {
1514
- readonly user?: string | undefined;
1839
+ readonly function_call?: "auto" | "none" | {
1840
+ readonly name: string;
1841
+ } | undefined;
1515
1842
  } & {
1516
1843
  readonly audio?: {
1517
1844
  readonly voice: "alloy" | "ash" | "coral" | "echo" | "sage" | "shimmer" | "ballad" | "verse";
1518
1845
  readonly format: "mp3" | "opus" | "flac" | "wav" | "pcm16";
1519
1846
  } | undefined;
1520
1847
  } & {
1521
- readonly function_call?: "auto" | "none" | {
1522
- readonly name: string;
1523
- } | undefined;
1848
+ readonly top_logprobs?: number | undefined;
1849
+ } & {
1850
+ readonly stop?: string | readonly string[] | null | undefined;
1851
+ } & {
1852
+ readonly logprobs?: boolean | undefined;
1853
+ } & {
1854
+ readonly service_tier?: "default" | "auto" | undefined;
1855
+ } & {
1856
+ readonly user?: string | undefined;
1524
1857
  } & {
1525
1858
  readonly messages: readonly [{
1526
1859
  readonly name?: string | undefined;
@@ -1559,6 +1892,13 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
1559
1892
  readonly data: string;
1560
1893
  readonly format: "mp3" | "wav";
1561
1894
  };
1895
+ } | {
1896
+ readonly type: "file";
1897
+ readonly file: {
1898
+ readonly file_name?: string | undefined;
1899
+ readonly file_data?: string | undefined;
1900
+ readonly file_id?: string | undefined;
1901
+ };
1562
1902
  }, ...({
1563
1903
  readonly type: "text";
1564
1904
  readonly text: string;
@@ -1574,6 +1914,13 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
1574
1914
  readonly data: string;
1575
1915
  readonly format: "mp3" | "wav";
1576
1916
  };
1917
+ } | {
1918
+ readonly type: "file";
1919
+ readonly file: {
1920
+ readonly file_name?: string | undefined;
1921
+ readonly file_data?: string | undefined;
1922
+ readonly file_id?: string | undefined;
1923
+ };
1577
1924
  })[]];
1578
1925
  readonly role: "user";
1579
1926
  } | {
@@ -1591,11 +1938,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
1591
1938
  readonly type: "refusal";
1592
1939
  readonly refusal: string;
1593
1940
  })[]] | undefined;
1594
- readonly role: "assistant";
1595
1941
  readonly refusal?: string | undefined;
1596
- readonly audio?: {
1597
- readonly id: string;
1598
- } | undefined;
1599
1942
  readonly tool_calls?: readonly {
1600
1943
  readonly function: {
1601
1944
  readonly name: string;
@@ -1604,10 +1947,14 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
1604
1947
  readonly type: "function";
1605
1948
  readonly id: string;
1606
1949
  }[] | undefined;
1950
+ readonly role: "assistant";
1607
1951
  readonly function_call?: {
1608
1952
  readonly name: string;
1609
1953
  readonly arguments: string;
1610
1954
  } | undefined;
1955
+ readonly audio?: {
1956
+ readonly id: string;
1957
+ } | undefined;
1611
1958
  } | {
1612
1959
  readonly content: string | readonly [{
1613
1960
  readonly type: "text";
@@ -1659,6 +2006,13 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
1659
2006
  readonly data: string;
1660
2007
  readonly format: "mp3" | "wav";
1661
2008
  };
2009
+ } | {
2010
+ readonly type: "file";
2011
+ readonly file: {
2012
+ readonly file_name?: string | undefined;
2013
+ readonly file_data?: string | undefined;
2014
+ readonly file_id?: string | undefined;
2015
+ };
1662
2016
  }, ...({
1663
2017
  readonly type: "text";
1664
2018
  readonly text: string;
@@ -1674,6 +2028,13 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
1674
2028
  readonly data: string;
1675
2029
  readonly format: "mp3" | "wav";
1676
2030
  };
2031
+ } | {
2032
+ readonly type: "file";
2033
+ readonly file: {
2034
+ readonly file_name?: string | undefined;
2035
+ readonly file_data?: string | undefined;
2036
+ readonly file_id?: string | undefined;
2037
+ };
1677
2038
  })[]];
1678
2039
  readonly role: "user";
1679
2040
  } | {
@@ -1691,11 +2052,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
1691
2052
  readonly type: "refusal";
1692
2053
  readonly refusal: string;
1693
2054
  })[]] | undefined;
1694
- readonly role: "assistant";
1695
2055
  readonly refusal?: string | undefined;
1696
- readonly audio?: {
1697
- readonly id: string;
1698
- } | undefined;
1699
2056
  readonly tool_calls?: readonly {
1700
2057
  readonly function: {
1701
2058
  readonly name: string;
@@ -1704,10 +2061,14 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
1704
2061
  readonly type: "function";
1705
2062
  readonly id: string;
1706
2063
  }[] | undefined;
2064
+ readonly role: "assistant";
1707
2065
  readonly function_call?: {
1708
2066
  readonly name: string;
1709
2067
  readonly arguments: string;
1710
2068
  } | undefined;
2069
+ readonly audio?: {
2070
+ readonly id: string;
2071
+ } | undefined;
1711
2072
  } | {
1712
2073
  readonly content: string | readonly [{
1713
2074
  readonly type: "text";
@@ -1724,25 +2085,38 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
1724
2085
  readonly role: "function";
1725
2086
  })[]];
1726
2087
  } & {
1727
- readonly store?: boolean | undefined;
2088
+ readonly modalities?: readonly ("text" | "audio")[] | undefined;
2089
+ } & {
2090
+ readonly max_completion_tokens?: number | undefined;
1728
2091
  } & {
1729
2092
  readonly frequency_penalty?: number | undefined;
2093
+ } & {
2094
+ readonly presence_penalty?: number | undefined;
2095
+ } & {
2096
+ readonly web_search_options?: {
2097
+ readonly user_location?: {
2098
+ readonly type: "approximate";
2099
+ readonly approximate: {
2100
+ readonly country?: string | undefined;
2101
+ readonly region?: string | undefined;
2102
+ readonly city?: string | undefined;
2103
+ readonly timezone?: string | undefined;
2104
+ };
2105
+ } | undefined;
2106
+ readonly search_context_size: "low" | "medium" | "high";
2107
+ } | undefined;
2108
+ } & {
2109
+ readonly store?: boolean | undefined;
2110
+ } & {
2111
+ readonly stream?: boolean | undefined;
1730
2112
  } & {
1731
2113
  readonly logit_bias?: {
1732
2114
  readonly [x: string]: unknown;
1733
2115
  } | null | undefined;
1734
- } & {
1735
- readonly logprobs?: boolean | undefined;
1736
- } & {
1737
- readonly top_logprobs?: number | undefined;
1738
2116
  } & {
1739
2117
  readonly max_tokens?: number | undefined;
1740
- } & {
1741
- readonly max_completion_tokens?: number | undefined;
1742
2118
  } & {
1743
2119
  readonly n?: number | undefined;
1744
- } & {
1745
- readonly modalities?: readonly ("text" | "audio")[] | undefined;
1746
2120
  } & {
1747
2121
  readonly prediction?: {
1748
2122
  readonly type: "content";
@@ -1754,16 +2128,8 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
1754
2128
  readonly text: string;
1755
2129
  }[]];
1756
2130
  } | undefined;
1757
- } & {
1758
- readonly presence_penalty?: number | undefined;
1759
2131
  } & {
1760
2132
  readonly seed?: number | undefined;
1761
- } & {
1762
- readonly service_tier?: "default" | "auto" | undefined;
1763
- } & {
1764
- readonly stop?: string | readonly string[] | null | undefined;
1765
- } & {
1766
- readonly stream?: boolean | undefined;
1767
2133
  } & {
1768
2134
  readonly stream_options?: {
1769
2135
  readonly include_usage?: boolean | undefined;
@@ -1788,216 +2154,180 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
1788
2154
  }, {}, {}>;
1789
2155
  export declare class CreateChatCompletionRequest extends CreateChatCompletionRequest_base {
1790
2156
  }
1791
- declare const ChatCompletionResponseMessageRole_base: S.Literal<["assistant"]>;
1792
- export declare class ChatCompletionResponseMessageRole extends ChatCompletionResponseMessageRole_base {
2157
+ declare const UpdateChatCompletionRequest_base: S.Class<UpdateChatCompletionRequest, {
2158
+ metadata: S.NullOr<typeof Metadata>;
2159
+ }, S.Struct.Encoded<{
2160
+ metadata: S.NullOr<typeof Metadata>;
2161
+ }>, never, {
2162
+ readonly metadata: {
2163
+ readonly [x: string]: unknown;
2164
+ } | null;
2165
+ }, {}, {}>;
2166
+ export declare class UpdateChatCompletionRequest extends UpdateChatCompletionRequest_base {
1793
2167
  }
1794
- declare const ChatCompletionResponseMessage_base: S.Struct<{
1795
- content: S.NullOr<typeof S.String>;
1796
- refusal: S.NullOr<typeof S.String>;
1797
- tool_calls: S.optionalWith<typeof ChatCompletionMessageToolCalls, {
2168
+ declare const ChatCompletionDeletedObject_base: S.Literal<["chat.completion.deleted"]>;
2169
+ export declare class ChatCompletionDeletedObject extends ChatCompletionDeletedObject_base {
2170
+ }
2171
+ declare const ChatCompletionDeleted_base: S.Class<ChatCompletionDeleted, {
2172
+ object: typeof ChatCompletionDeletedObject;
2173
+ id: typeof S.String;
2174
+ deleted: typeof S.Boolean;
2175
+ }, S.Struct.Encoded<{
2176
+ object: typeof ChatCompletionDeletedObject;
2177
+ id: typeof S.String;
2178
+ deleted: typeof S.Boolean;
2179
+ }>, never, {
2180
+ readonly object: "chat.completion.deleted";
2181
+ } & {
2182
+ readonly id: string;
2183
+ } & {
2184
+ readonly deleted: boolean;
2185
+ }, {}, {}>;
2186
+ export declare class ChatCompletionDeleted extends ChatCompletionDeleted_base {
2187
+ }
2188
+ declare const GetChatCompletionMessagesParamsOrder_base: S.Literal<["asc", "desc"]>;
2189
+ export declare class GetChatCompletionMessagesParamsOrder extends GetChatCompletionMessagesParamsOrder_base {
2190
+ }
2191
+ declare const GetChatCompletionMessagesParams_base: S.Struct<{
2192
+ after: S.optionalWith<typeof S.String, {
1798
2193
  nullable: true;
1799
2194
  }>;
1800
- role: typeof ChatCompletionResponseMessageRole;
1801
- function_call: S.optionalWith<S.Struct<{
1802
- arguments: typeof S.String;
1803
- name: typeof S.String;
1804
- }>, {
2195
+ limit: S.optionalWith<typeof S.Int, {
1805
2196
  nullable: true;
2197
+ default: () => 20;
1806
2198
  }>;
1807
- audio: S.optionalWith<S.Struct<{
1808
- id: typeof S.String;
1809
- expires_at: typeof S.Int;
1810
- data: typeof S.String;
1811
- transcript: typeof S.String;
1812
- }>, {
2199
+ order: S.optionalWith<typeof GetChatCompletionMessagesParamsOrder, {
1813
2200
  nullable: true;
2201
+ default: () => "asc";
1814
2202
  }>;
1815
2203
  }>;
1816
- export declare class ChatCompletionResponseMessage extends ChatCompletionResponseMessage_base {
1817
- }
1818
- declare const ChatCompletionTokenLogprob_base: S.Struct<{
1819
- token: typeof S.String;
1820
- logprob: typeof S.Number;
1821
- bytes: S.NullOr<S.Array$<typeof S.Int>>;
1822
- top_logprobs: S.Array$<S.Struct<{
1823
- token: typeof S.String;
1824
- logprob: typeof S.Number;
1825
- bytes: S.NullOr<S.Array$<typeof S.Int>>;
1826
- }>>;
1827
- }>;
1828
- export declare class ChatCompletionTokenLogprob extends ChatCompletionTokenLogprob_base {
1829
- }
1830
- declare const CreateChatCompletionResponseServiceTier_base: S.Literal<["scale", "default"]>;
1831
- export declare class CreateChatCompletionResponseServiceTier extends CreateChatCompletionResponseServiceTier_base {
2204
+ export declare class GetChatCompletionMessagesParams extends GetChatCompletionMessagesParams_base {
1832
2205
  }
1833
- declare const CreateChatCompletionResponseObject_base: S.Literal<["chat.completion"]>;
1834
- export declare class CreateChatCompletionResponseObject extends CreateChatCompletionResponseObject_base {
2206
+ declare const ChatCompletionMessageListObject_base: S.Literal<["list"]>;
2207
+ export declare class ChatCompletionMessageListObject extends ChatCompletionMessageListObject_base {
1835
2208
  }
1836
- declare const CompletionUsage_base: S.Struct<{
1837
- completion_tokens: S.PropertySignature<":", number, never, ":", number, true, never>;
1838
- prompt_tokens: S.PropertySignature<":", number, never, ":", number, true, never>;
1839
- total_tokens: S.PropertySignature<":", number, never, ":", number, true, never>;
1840
- completion_tokens_details: S.optionalWith<S.Struct<{
1841
- accepted_prediction_tokens: S.optionalWith<typeof S.Int, {
2209
+ declare const ChatCompletionMessageList_base: S.Class<ChatCompletionMessageList, {
2210
+ object: S.PropertySignature<":", "list", never, ":", "list", true, never>;
2211
+ data: S.Array$<S.Struct<{
2212
+ id: typeof S.String;
2213
+ content: S.NullOr<typeof S.String>;
2214
+ refusal: S.NullOr<typeof S.String>;
2215
+ tool_calls: S.optionalWith<typeof ChatCompletionMessageToolCalls, {
2216
+ nullable: true;
2217
+ }>;
2218
+ annotations: S.optionalWith<S.Array$<S.Struct<{
2219
+ type: S.Literal<["url_citation"]>;
2220
+ url_citation: S.Struct<{
2221
+ end_index: typeof S.Int;
2222
+ start_index: typeof S.Int;
2223
+ url: typeof S.String;
2224
+ title: typeof S.String;
2225
+ }>;
2226
+ }>>, {
1842
2227
  nullable: true;
1843
- default: () => 0;
1844
2228
  }>;
1845
- audio_tokens: S.optionalWith<typeof S.Int, {
2229
+ role: S.Literal<["assistant"]>;
2230
+ function_call: S.optionalWith<S.Struct<{
2231
+ arguments: typeof S.String;
2232
+ name: typeof S.String;
2233
+ }>, {
1846
2234
  nullable: true;
1847
- default: () => 0;
1848
2235
  }>;
1849
- reasoning_tokens: S.optionalWith<typeof S.Int, {
2236
+ audio: S.optionalWith<S.Struct<{
2237
+ id: typeof S.String;
2238
+ expires_at: typeof S.Int;
2239
+ data: typeof S.String;
2240
+ transcript: typeof S.String;
2241
+ }>, {
1850
2242
  nullable: true;
1851
- default: () => 0;
1852
2243
  }>;
1853
- rejected_prediction_tokens: S.optionalWith<typeof S.Int, {
2244
+ }>>;
2245
+ first_id: typeof S.String;
2246
+ last_id: typeof S.String;
2247
+ has_more: typeof S.Boolean;
2248
+ }, S.Struct.Encoded<{
2249
+ object: S.PropertySignature<":", "list", never, ":", "list", true, never>;
2250
+ data: S.Array$<S.Struct<{
2251
+ id: typeof S.String;
2252
+ content: S.NullOr<typeof S.String>;
2253
+ refusal: S.NullOr<typeof S.String>;
2254
+ tool_calls: S.optionalWith<typeof ChatCompletionMessageToolCalls, {
2255
+ nullable: true;
2256
+ }>;
2257
+ annotations: S.optionalWith<S.Array$<S.Struct<{
2258
+ type: S.Literal<["url_citation"]>;
2259
+ url_citation: S.Struct<{
2260
+ end_index: typeof S.Int;
2261
+ start_index: typeof S.Int;
2262
+ url: typeof S.String;
2263
+ title: typeof S.String;
2264
+ }>;
2265
+ }>>, {
1854
2266
  nullable: true;
1855
- default: () => 0;
1856
2267
  }>;
1857
- }>, {
1858
- nullable: true;
1859
- }>;
1860
- prompt_tokens_details: S.optionalWith<S.Struct<{
1861
- audio_tokens: S.optionalWith<typeof S.Int, {
2268
+ role: S.Literal<["assistant"]>;
2269
+ function_call: S.optionalWith<S.Struct<{
2270
+ arguments: typeof S.String;
2271
+ name: typeof S.String;
2272
+ }>, {
1862
2273
  nullable: true;
1863
- default: () => 0;
1864
2274
  }>;
1865
- cached_tokens: S.optionalWith<typeof S.Int, {
2275
+ audio: S.optionalWith<S.Struct<{
2276
+ id: typeof S.String;
2277
+ expires_at: typeof S.Int;
2278
+ data: typeof S.String;
2279
+ transcript: typeof S.String;
2280
+ }>, {
1866
2281
  nullable: true;
1867
- default: () => 0;
1868
2282
  }>;
1869
- }>, {
1870
- nullable: true;
1871
- }>;
1872
- }>;
1873
- export declare class CompletionUsage extends CompletionUsage_base {
1874
- }
1875
- declare const CreateChatCompletionResponse_base: S.Class<CreateChatCompletionResponse, {
1876
- id: typeof S.String;
1877
- choices: S.Array$<S.Struct<{
1878
- finish_reason: S.Literal<["stop", "length", "tool_calls", "content_filter", "function_call"]>;
1879
- index: typeof S.Int;
1880
- message: typeof ChatCompletionResponseMessage;
1881
- logprobs: S.NullOr<S.Struct<{
1882
- content: S.NullOr<S.Array$<typeof ChatCompletionTokenLogprob>>;
1883
- refusal: S.NullOr<S.Array$<typeof ChatCompletionTokenLogprob>>;
1884
- }>>;
1885
- }>>;
1886
- created: typeof S.Int;
1887
- model: typeof S.String;
1888
- service_tier: S.optionalWith<typeof CreateChatCompletionResponseServiceTier, {
1889
- nullable: true;
1890
- }>;
1891
- system_fingerprint: S.optionalWith<typeof S.String, {
1892
- nullable: true;
1893
- }>;
1894
- object: typeof CreateChatCompletionResponseObject;
1895
- usage: S.optionalWith<typeof CompletionUsage, {
1896
- nullable: true;
1897
- }>;
1898
- }, S.Struct.Encoded<{
1899
- id: typeof S.String;
1900
- choices: S.Array$<S.Struct<{
1901
- finish_reason: S.Literal<["stop", "length", "tool_calls", "content_filter", "function_call"]>;
1902
- index: typeof S.Int;
1903
- message: typeof ChatCompletionResponseMessage;
1904
- logprobs: S.NullOr<S.Struct<{
1905
- content: S.NullOr<S.Array$<typeof ChatCompletionTokenLogprob>>;
1906
- refusal: S.NullOr<S.Array$<typeof ChatCompletionTokenLogprob>>;
1907
- }>>;
1908
2283
  }>>;
1909
- created: typeof S.Int;
1910
- model: typeof S.String;
1911
- service_tier: S.optionalWith<typeof CreateChatCompletionResponseServiceTier, {
1912
- nullable: true;
1913
- }>;
1914
- system_fingerprint: S.optionalWith<typeof S.String, {
1915
- nullable: true;
1916
- }>;
1917
- object: typeof CreateChatCompletionResponseObject;
1918
- usage: S.optionalWith<typeof CompletionUsage, {
1919
- nullable: true;
1920
- }>;
2284
+ first_id: typeof S.String;
2285
+ last_id: typeof S.String;
2286
+ has_more: typeof S.Boolean;
1921
2287
  }>, never, {
1922
- readonly object: "chat.completion";
1923
- } & {
1924
- readonly id: string;
2288
+ readonly object?: "list" | undefined;
1925
2289
  } & {
1926
- readonly model: string;
2290
+ readonly first_id: string;
1927
2291
  } & {
1928
- readonly service_tier?: "default" | "scale" | undefined;
2292
+ readonly last_id: string;
1929
2293
  } & {
1930
- readonly created: number;
2294
+ readonly has_more: boolean;
1931
2295
  } & {
1932
- readonly choices: readonly {
1933
- readonly message: {
1934
- readonly content: string | null;
1935
- readonly role: "assistant";
1936
- readonly refusal: string | null;
1937
- readonly audio?: {
1938
- readonly id: string;
1939
- readonly data: string;
1940
- readonly expires_at: number;
1941
- readonly transcript: string;
1942
- } | undefined;
1943
- readonly tool_calls?: readonly {
1944
- readonly function: {
1945
- readonly name: string;
1946
- readonly arguments: string;
1947
- };
1948
- readonly type: "function";
1949
- readonly id: string;
1950
- }[] | undefined;
1951
- readonly function_call?: {
2296
+ readonly data: readonly {
2297
+ readonly id: string;
2298
+ readonly annotations?: readonly {
2299
+ readonly type: "url_citation";
2300
+ readonly url_citation: {
2301
+ readonly end_index: number;
2302
+ readonly start_index: number;
2303
+ readonly url: string;
2304
+ readonly title: string;
2305
+ };
2306
+ }[] | undefined;
2307
+ readonly content: string | null;
2308
+ readonly refusal: string | null;
2309
+ readonly tool_calls?: readonly {
2310
+ readonly function: {
1952
2311
  readonly name: string;
1953
2312
  readonly arguments: string;
1954
- } | undefined;
1955
- };
1956
- readonly logprobs: {
1957
- readonly content: readonly {
1958
- readonly top_logprobs: readonly {
1959
- readonly token: string;
1960
- readonly logprob: number;
1961
- readonly bytes: readonly number[] | null;
1962
- }[];
1963
- readonly token: string;
1964
- readonly logprob: number;
1965
- readonly bytes: readonly number[] | null;
1966
- }[] | null;
1967
- readonly refusal: readonly {
1968
- readonly top_logprobs: readonly {
1969
- readonly token: string;
1970
- readonly logprob: number;
1971
- readonly bytes: readonly number[] | null;
1972
- }[];
1973
- readonly token: string;
1974
- readonly logprob: number;
1975
- readonly bytes: readonly number[] | null;
1976
- }[] | null;
1977
- } | null;
1978
- readonly finish_reason: "length" | "tool_calls" | "function_call" | "stop" | "content_filter";
1979
- readonly index: number;
1980
- }[];
1981
- } & {
1982
- readonly system_fingerprint?: string | undefined;
1983
- } & {
1984
- readonly usage?: {
1985
- readonly completion_tokens: number;
1986
- readonly prompt_tokens: number;
1987
- readonly total_tokens: number;
1988
- readonly completion_tokens_details?: {
1989
- readonly accepted_prediction_tokens: number;
1990
- readonly audio_tokens: number;
1991
- readonly reasoning_tokens: number;
1992
- readonly rejected_prediction_tokens: number;
2313
+ };
2314
+ readonly type: "function";
2315
+ readonly id: string;
2316
+ }[] | undefined;
2317
+ readonly role: "assistant";
2318
+ readonly function_call?: {
2319
+ readonly name: string;
2320
+ readonly arguments: string;
1993
2321
  } | undefined;
1994
- readonly prompt_tokens_details?: {
1995
- readonly audio_tokens: number;
1996
- readonly cached_tokens: number;
2322
+ readonly audio?: {
2323
+ readonly id: string;
2324
+ readonly data: string;
2325
+ readonly expires_at: number;
2326
+ readonly transcript: string;
1997
2327
  } | undefined;
1998
- } | undefined;
2328
+ }[];
1999
2329
  }, {}, {}>;
2000
- export declare class CreateChatCompletionResponse extends CreateChatCompletionResponse_base {
2330
+ export declare class ChatCompletionMessageList extends ChatCompletionMessageList_base {
2001
2331
  }
2002
2332
  declare const CreateCompletionRequestModelEnum_base: S.Literal<["gpt-3.5-turbo-instruct", "davinci-002", "babbage-002"]>;
2003
2333
  export declare class CreateCompletionRequestModelEnum extends CreateCompletionRequestModelEnum_base {
@@ -2038,7 +2368,7 @@ declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
2038
2368
  seed: S.optionalWith<typeof S.Int, {
2039
2369
  nullable: true;
2040
2370
  }>;
2041
- stop: S.optionalWith<S.NullOr<S.Union<[typeof S.String, S.filter<S.filter<S.Array$<typeof S.String>>>]>>, {
2371
+ stop: S.optionalWith<S.NullOr<typeof StopConfiguration>, {
2042
2372
  default: () => null;
2043
2373
  }>;
2044
2374
  stream: S.optionalWith<typeof S.Boolean, {
@@ -2098,7 +2428,7 @@ declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
2098
2428
  seed: S.optionalWith<typeof S.Int, {
2099
2429
  nullable: true;
2100
2430
  }>;
2101
- stop: S.optionalWith<S.NullOr<S.Union<[typeof S.String, S.filter<S.filter<S.Array$<typeof S.String>>>]>>, {
2431
+ stop: S.optionalWith<S.NullOr<typeof StopConfiguration>, {
2102
2432
  default: () => null;
2103
2433
  }>;
2104
2434
  stream: S.optionalWith<typeof S.Boolean, {
@@ -2130,28 +2460,28 @@ declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
2130
2460
  readonly top_p?: number | undefined;
2131
2461
  } & {
2132
2462
  readonly echo?: boolean | undefined;
2463
+ } & {
2464
+ readonly stop?: string | readonly string[] | null | undefined;
2465
+ } & {
2466
+ readonly logprobs?: number | null | undefined;
2133
2467
  } & {
2134
2468
  readonly user?: string | undefined;
2135
2469
  } & {
2136
2470
  readonly frequency_penalty?: number | undefined;
2471
+ } & {
2472
+ readonly presence_penalty?: number | undefined;
2473
+ } & {
2474
+ readonly stream?: boolean | undefined;
2137
2475
  } & {
2138
2476
  readonly logit_bias?: {
2139
2477
  readonly [x: string]: unknown;
2140
2478
  } | null | undefined;
2141
- } & {
2142
- readonly logprobs?: number | null | undefined;
2143
2479
  } & {
2144
2480
  readonly max_tokens?: number | undefined;
2145
2481
  } & {
2146
2482
  readonly n?: number | undefined;
2147
- } & {
2148
- readonly presence_penalty?: number | undefined;
2149
2483
  } & {
2150
2484
  readonly seed?: number | undefined;
2151
- } & {
2152
- readonly stop?: string | readonly string[] | null | undefined;
2153
- } & {
2154
- readonly stream?: boolean | undefined;
2155
2485
  } & {
2156
2486
  readonly stream_options?: {
2157
2487
  readonly include_usage?: boolean | undefined;
@@ -2234,11 +2564,11 @@ declare const CreateCompletionResponse_base: S.Class<CreateCompletionResponse, {
2234
2564
  readonly id: string;
2235
2565
  } & {
2236
2566
  readonly model: string;
2237
- } & {
2238
- readonly created: number;
2239
2567
  } & {
2240
2568
  readonly choices: readonly {
2241
2569
  readonly text: string;
2570
+ readonly finish_reason: "length" | "stop" | "content_filter";
2571
+ readonly index: number;
2242
2572
  readonly logprobs: {
2243
2573
  readonly tokens?: readonly string[] | undefined;
2244
2574
  readonly top_logprobs?: readonly {
@@ -2247,9 +2577,9 @@ declare const CreateCompletionResponse_base: S.Class<CreateCompletionResponse, {
2247
2577
  readonly text_offset?: readonly number[] | undefined;
2248
2578
  readonly token_logprobs?: readonly number[] | undefined;
2249
2579
  } | null;
2250
- readonly finish_reason: "length" | "stop" | "content_filter";
2251
- readonly index: number;
2252
2580
  }[];
2581
+ } & {
2582
+ readonly created: number;
2253
2583
  } & {
2254
2584
  readonly system_fingerprint?: string | undefined;
2255
2585
  } & {
@@ -2397,6 +2727,9 @@ declare const OpenAIFile_base: S.Struct<{
2397
2727
  id: typeof S.String;
2398
2728
  bytes: typeof S.Int;
2399
2729
  created_at: typeof S.Int;
2730
+ expires_at: S.optionalWith<typeof S.Int, {
2731
+ nullable: true;
2732
+ }>;
2400
2733
  filename: typeof S.String;
2401
2734
  object: typeof OpenAIFileObject;
2402
2735
  purpose: typeof OpenAIFilePurpose;
@@ -2433,6 +2766,7 @@ declare const ListFilesResponse_base: S.Class<ListFilesResponse, {
2433
2766
  readonly id: string;
2434
2767
  readonly created_at: number;
2435
2768
  readonly status: "uploaded" | "processed" | "error";
2769
+ readonly expires_at?: number | undefined;
2436
2770
  readonly bytes: number;
2437
2771
  readonly purpose: "batch" | "assistants" | "assistants_output" | "batch_output" | "fine-tune" | "fine-tune-results" | "vision";
2438
2772
  readonly filename: string;
@@ -2471,6 +2805,9 @@ declare const ListPaginatedFineTuningJobsParams_base: S.Struct<{
2471
2805
  nullable: true;
2472
2806
  default: () => 20;
2473
2807
  }>;
2808
+ metadata: S.optionalWith<S.Record$<typeof S.String, typeof S.Unknown>, {
2809
+ nullable: true;
2810
+ }>;
2474
2811
  }>;
2475
2812
  export declare class ListPaginatedFineTuningJobsParams extends ListPaginatedFineTuningJobsParams_base {
2476
2813
  }
@@ -2632,6 +2969,9 @@ declare const FineTuningJob_base: S.Struct<{
2632
2969
  method: S.optionalWith<typeof FineTuneMethod, {
2633
2970
  nullable: true;
2634
2971
  }>;
2972
+ metadata: S.optionalWith<typeof Metadata, {
2973
+ nullable: true;
2974
+ }>;
2635
2975
  }>;
2636
2976
  export declare class FineTuningJob extends FineTuningJob_base {
2637
2977
  }
@@ -2656,6 +2996,9 @@ declare const ListPaginatedFineTuningJobsResponse_base: S.Class<ListPaginatedFin
2656
2996
  readonly id: string;
2657
2997
  readonly created_at: number;
2658
2998
  readonly model: string;
2999
+ readonly metadata?: {
3000
+ readonly [x: string]: unknown;
3001
+ } | undefined;
2659
3002
  readonly status: "failed" | "cancelled" | "validating_files" | "queued" | "running" | "succeeded";
2660
3003
  readonly seed: number;
2661
3004
  readonly error: {
@@ -2767,6 +3110,9 @@ declare const CreateFineTuningJobRequest_base: S.Class<CreateFineTuningJobReques
2767
3110
  method: S.optionalWith<typeof FineTuneMethod, {
2768
3111
  nullable: true;
2769
3112
  }>;
3113
+ metadata: S.optionalWith<typeof Metadata, {
3114
+ nullable: true;
3115
+ }>;
2770
3116
  }, S.Struct.Encoded<{
2771
3117
  model: S.Union<[typeof S.String, typeof CreateFineTuningJobRequestModelEnum]>;
2772
3118
  training_file: typeof S.String;
@@ -2815,8 +3161,15 @@ declare const CreateFineTuningJobRequest_base: S.Class<CreateFineTuningJobReques
2815
3161
  method: S.optionalWith<typeof FineTuneMethod, {
2816
3162
  nullable: true;
2817
3163
  }>;
3164
+ metadata: S.optionalWith<typeof Metadata, {
3165
+ nullable: true;
3166
+ }>;
2818
3167
  }>, never, {
2819
3168
  readonly model: string;
3169
+ } & {
3170
+ readonly metadata?: {
3171
+ readonly [x: string]: unknown;
3172
+ } | undefined;
2820
3173
  } & {
2821
3174
  readonly seed?: number | undefined;
2822
3175
  } & {
@@ -5613,6 +5966,10 @@ declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRe
5613
5966
  nullable: true;
5614
5967
  default: () => true;
5615
5968
  }>;
5969
+ interrupt_response: S.optionalWith<typeof S.Boolean, {
5970
+ nullable: true;
5971
+ default: () => true;
5972
+ }>;
5616
5973
  }>, {
5617
5974
  nullable: true;
5618
5975
  }>;
@@ -5687,6 +6044,10 @@ declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRe
5687
6044
  nullable: true;
5688
6045
  default: () => true;
5689
6046
  }>;
6047
+ interrupt_response: S.optionalWith<typeof S.Boolean, {
6048
+ nullable: true;
6049
+ default: () => true;
6050
+ }>;
5690
6051
  }>, {
5691
6052
  nullable: true;
5692
6053
  }>;
@@ -5751,6 +6112,7 @@ declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRe
5751
6112
  readonly prefix_padding_ms?: number | undefined;
5752
6113
  readonly silence_duration_ms?: number | undefined;
5753
6114
  readonly create_response: boolean;
6115
+ readonly interrupt_response: boolean;
5754
6116
  } | undefined;
5755
6117
  } & {
5756
6118
  readonly max_response_output_tokens?: number | "inf" | undefined;
@@ -5933,7 +6295,1500 @@ declare const RealtimeSessionCreateResponse_base: S.Class<RealtimeSessionCreateR
5933
6295
  readonly expires_at: number;
5934
6296
  };
5935
6297
  }, {}, {}>;
5936
- export declare class RealtimeSessionCreateResponse extends RealtimeSessionCreateResponse_base {
6298
+ export declare class RealtimeSessionCreateResponse extends RealtimeSessionCreateResponse_base {
6299
+ }
6300
+ declare const EasyInputMessageRole_base: S.Literal<["user", "assistant", "system", "developer"]>;
6301
+ export declare class EasyInputMessageRole extends EasyInputMessageRole_base {
6302
+ }
6303
+ declare const InputTextType_base: S.Literal<["input_text"]>;
6304
+ export declare class InputTextType extends InputTextType_base {
6305
+ }
6306
+ declare const InputText_base: S.Struct<{
6307
+ type: typeof InputTextType;
6308
+ text: typeof S.String;
6309
+ }>;
6310
+ export declare class InputText extends InputText_base {
6311
+ }
6312
+ declare const InputImageType_base: S.Literal<["input_image"]>;
6313
+ export declare class InputImageType extends InputImageType_base {
6314
+ }
6315
+ declare const InputImageDetail_base: S.Literal<["high", "low", "auto"]>;
6316
+ export declare class InputImageDetail extends InputImageDetail_base {
6317
+ }
6318
+ declare const InputImage_base: S.Struct<{
6319
+ type: typeof InputImageType;
6320
+ image_url: S.optionalWith<typeof S.String, {
6321
+ nullable: true;
6322
+ }>;
6323
+ file_id: S.optionalWith<typeof S.String, {
6324
+ nullable: true;
6325
+ }>;
6326
+ detail: S.PropertySignature<":", "auto" | "low" | "high", never, ":", "auto" | "low" | "high", true, never>;
6327
+ }>;
6328
+ export declare class InputImage extends InputImage_base {
6329
+ }
6330
+ declare const InputFileType_base: S.Literal<["input_file"]>;
6331
+ export declare class InputFileType extends InputFileType_base {
6332
+ }
6333
+ declare const InputFile_base: S.Struct<{
6334
+ type: typeof InputFileType;
6335
+ file_id: S.optionalWith<typeof S.String, {
6336
+ nullable: true;
6337
+ }>;
6338
+ filename: S.optionalWith<typeof S.String, {
6339
+ nullable: true;
6340
+ }>;
6341
+ file_data: S.optionalWith<typeof S.String, {
6342
+ nullable: true;
6343
+ }>;
6344
+ }>;
6345
+ export declare class InputFile extends InputFile_base {
6346
+ }
6347
+ declare const InputContent_base: S.Union<[typeof InputText, typeof InputImage, typeof InputFile]>;
6348
+ export declare class InputContent extends InputContent_base {
6349
+ }
6350
+ declare const InputMessageContentList_base: S.Array$<typeof InputContent>;
6351
+ export declare class InputMessageContentList extends InputMessageContentList_base {
6352
+ }
6353
+ declare const EasyInputMessageType_base: S.Literal<["message"]>;
6354
+ export declare class EasyInputMessageType extends EasyInputMessageType_base {
6355
+ }
6356
+ declare const EasyInputMessage_base: S.Struct<{
6357
+ role: typeof EasyInputMessageRole;
6358
+ content: S.Union<[typeof S.String, typeof InputMessageContentList]>;
6359
+ type: S.optionalWith<typeof EasyInputMessageType, {
6360
+ nullable: true;
6361
+ }>;
6362
+ }>;
6363
+ export declare class EasyInputMessage extends EasyInputMessage_base {
6364
+ }
6365
+ declare const InputMessageType_base: S.Literal<["message"]>;
6366
+ export declare class InputMessageType extends InputMessageType_base {
6367
+ }
6368
+ declare const InputMessageRole_base: S.Literal<["user", "system", "developer"]>;
6369
+ export declare class InputMessageRole extends InputMessageRole_base {
6370
+ }
6371
+ declare const InputMessageStatus_base: S.Literal<["in_progress", "completed", "incomplete"]>;
6372
+ export declare class InputMessageStatus extends InputMessageStatus_base {
6373
+ }
6374
+ declare const InputMessage_base: S.Struct<{
6375
+ type: S.optionalWith<typeof InputMessageType, {
6376
+ nullable: true;
6377
+ }>;
6378
+ role: typeof InputMessageRole;
6379
+ status: S.optionalWith<typeof InputMessageStatus, {
6380
+ nullable: true;
6381
+ }>;
6382
+ content: typeof InputMessageContentList;
6383
+ }>;
6384
+ export declare class InputMessage extends InputMessage_base {
6385
+ }
6386
+ declare const OutputMessageType_base: S.Literal<["message"]>;
6387
+ export declare class OutputMessageType extends OutputMessageType_base {
6388
+ }
6389
+ declare const OutputMessageRole_base: S.Literal<["assistant"]>;
6390
+ export declare class OutputMessageRole extends OutputMessageRole_base {
6391
+ }
6392
+ declare const OutputTextType_base: S.Literal<["output_text"]>;
6393
+ export declare class OutputTextType extends OutputTextType_base {
6394
+ }
6395
+ declare const FileCitationType_base: S.Literal<["file_citation"]>;
6396
+ export declare class FileCitationType extends FileCitationType_base {
6397
+ }
6398
+ declare const FileCitation_base: S.Struct<{
6399
+ type: typeof FileCitationType;
6400
+ index: typeof S.Int;
6401
+ file_id: typeof S.String;
6402
+ }>;
6403
+ export declare class FileCitation extends FileCitation_base {
6404
+ }
6405
+ declare const UrlCitationType_base: S.Literal<["url_citation"]>;
6406
+ export declare class UrlCitationType extends UrlCitationType_base {
6407
+ }
6408
+ declare const UrlCitation_base: S.Struct<{
6409
+ url: typeof S.String;
6410
+ title: typeof S.String;
6411
+ type: typeof UrlCitationType;
6412
+ start_index: typeof S.Int;
6413
+ end_index: typeof S.Int;
6414
+ }>;
6415
+ export declare class UrlCitation extends UrlCitation_base {
6416
+ }
6417
+ declare const FilePathType_base: S.Literal<["file_path"]>;
6418
+ export declare class FilePathType extends FilePathType_base {
6419
+ }
6420
+ declare const FilePath_base: S.Struct<{
6421
+ type: typeof FilePathType;
6422
+ file_id: typeof S.String;
6423
+ index: typeof S.Int;
6424
+ }>;
6425
+ export declare class FilePath extends FilePath_base {
6426
+ }
6427
+ declare const Annotation_base: S.Union<[typeof FileCitation, typeof UrlCitation, typeof FilePath]>;
6428
+ export declare class Annotation extends Annotation_base {
6429
+ }
6430
+ declare const OutputText_base: S.Struct<{
6431
+ type: typeof OutputTextType;
6432
+ text: typeof S.String;
6433
+ annotations: S.Array$<typeof Annotation>;
6434
+ }>;
6435
+ export declare class OutputText extends OutputText_base {
6436
+ }
6437
+ declare const RefusalType_base: S.Literal<["refusal"]>;
6438
+ export declare class RefusalType extends RefusalType_base {
6439
+ }
6440
+ declare const Refusal_base: S.Struct<{
6441
+ type: typeof RefusalType;
6442
+ refusal: typeof S.String;
6443
+ }>;
6444
+ export declare class Refusal extends Refusal_base {
6445
+ }
6446
+ declare const OutputContent_base: S.Union<[typeof OutputText, typeof Refusal]>;
6447
+ export declare class OutputContent extends OutputContent_base {
6448
+ }
6449
+ declare const OutputMessageStatus_base: S.Literal<["in_progress", "completed", "incomplete"]>;
6450
+ export declare class OutputMessageStatus extends OutputMessageStatus_base {
6451
+ }
6452
+ declare const OutputMessage_base: S.Struct<{
6453
+ id: typeof S.String;
6454
+ type: typeof OutputMessageType;
6455
+ role: typeof OutputMessageRole;
6456
+ content: S.Array$<typeof OutputContent>;
6457
+ status: typeof OutputMessageStatus;
6458
+ }>;
6459
+ export declare class OutputMessage extends OutputMessage_base {
6460
+ }
6461
+ declare const FileSearchToolCallType_base: S.Literal<["file_search_call"]>;
6462
+ export declare class FileSearchToolCallType extends FileSearchToolCallType_base {
6463
+ }
6464
+ declare const FileSearchToolCallStatus_base: S.Literal<["in_progress", "searching", "completed", "incomplete", "failed"]>;
6465
+ export declare class FileSearchToolCallStatus extends FileSearchToolCallStatus_base {
6466
+ }
6467
+ declare const VectorStoreFileAttributes_base: S.Record$<typeof S.String, typeof S.Unknown>;
6468
+ export declare class VectorStoreFileAttributes extends VectorStoreFileAttributes_base {
6469
+ }
6470
+ declare const FileSearchToolCall_base: S.Struct<{
6471
+ id: typeof S.String;
6472
+ type: typeof FileSearchToolCallType;
6473
+ status: typeof FileSearchToolCallStatus;
6474
+ queries: S.Array$<typeof S.String>;
6475
+ results: S.optionalWith<S.Array$<S.Struct<{
6476
+ file_id: S.optionalWith<typeof S.String, {
6477
+ nullable: true;
6478
+ }>;
6479
+ text: S.optionalWith<typeof S.String, {
6480
+ nullable: true;
6481
+ }>;
6482
+ filename: S.optionalWith<typeof S.String, {
6483
+ nullable: true;
6484
+ }>;
6485
+ attributes: S.optionalWith<typeof VectorStoreFileAttributes, {
6486
+ nullable: true;
6487
+ }>;
6488
+ score: S.optionalWith<typeof S.Number, {
6489
+ nullable: true;
6490
+ }>;
6491
+ }>>, {
6492
+ nullable: true;
6493
+ }>;
6494
+ }>;
6495
+ export declare class FileSearchToolCall extends FileSearchToolCall_base {
6496
+ }
6497
+ declare const ComputerToolCallType_base: S.Literal<["computer_call"]>;
6498
+ export declare class ComputerToolCallType extends ComputerToolCallType_base {
6499
+ }
6500
+ declare const ClickType_base: S.Literal<["click"]>;
6501
+ export declare class ClickType extends ClickType_base {
6502
+ }
6503
+ declare const ClickButton_base: S.Literal<["left", "right", "wheel", "back", "forward"]>;
6504
+ export declare class ClickButton extends ClickButton_base {
6505
+ }
6506
+ declare const Click_base: S.Struct<{
6507
+ type: S.PropertySignature<":", "click", never, ":", "click", true, never>;
6508
+ button: typeof ClickButton;
6509
+ x: typeof S.Int;
6510
+ y: typeof S.Int;
6511
+ }>;
6512
+ export declare class Click extends Click_base {
6513
+ }
6514
+ declare const DoubleClickType_base: S.Literal<["double_click"]>;
6515
+ export declare class DoubleClickType extends DoubleClickType_base {
6516
+ }
6517
+ declare const DoubleClick_base: S.Struct<{
6518
+ type: S.PropertySignature<":", "double_click", never, ":", "double_click", true, never>;
6519
+ x: typeof S.Int;
6520
+ y: typeof S.Int;
6521
+ }>;
6522
+ export declare class DoubleClick extends DoubleClick_base {
6523
+ }
6524
+ declare const DragType_base: S.Literal<["drag"]>;
6525
+ export declare class DragType extends DragType_base {
6526
+ }
6527
+ declare const Coordinate_base: S.Struct<{
6528
+ x: typeof S.Int;
6529
+ y: typeof S.Int;
6530
+ }>;
6531
+ export declare class Coordinate extends Coordinate_base {
6532
+ }
6533
+ declare const Drag_base: S.Struct<{
6534
+ type: S.PropertySignature<":", "drag", never, ":", "drag", true, never>;
6535
+ path: S.Array$<typeof Coordinate>;
6536
+ }>;
6537
+ export declare class Drag extends Drag_base {
6538
+ }
6539
+ declare const KeyPressType_base: S.Literal<["keypress"]>;
6540
+ export declare class KeyPressType extends KeyPressType_base {
6541
+ }
6542
+ declare const KeyPress_base: S.Struct<{
6543
+ type: S.PropertySignature<":", "keypress", never, ":", "keypress", true, never>;
6544
+ keys: S.Array$<typeof S.String>;
6545
+ }>;
6546
+ export declare class KeyPress extends KeyPress_base {
6547
+ }
6548
+ declare const MoveType_base: S.Literal<["move"]>;
6549
+ export declare class MoveType extends MoveType_base {
6550
+ }
6551
+ declare const Move_base: S.Struct<{
6552
+ type: S.PropertySignature<":", "move", never, ":", "move", true, never>;
6553
+ x: typeof S.Int;
6554
+ y: typeof S.Int;
6555
+ }>;
6556
+ export declare class Move extends Move_base {
6557
+ }
6558
+ declare const ScreenshotType_base: S.Literal<["screenshot"]>;
6559
+ export declare class ScreenshotType extends ScreenshotType_base {
6560
+ }
6561
+ declare const Screenshot_base: S.Struct<{
6562
+ type: S.PropertySignature<":", "screenshot", never, ":", "screenshot", true, never>;
6563
+ }>;
6564
+ export declare class Screenshot extends Screenshot_base {
6565
+ }
6566
+ declare const ScrollType_base: S.Literal<["scroll"]>;
6567
+ export declare class ScrollType extends ScrollType_base {
6568
+ }
6569
+ declare const Scroll_base: S.Struct<{
6570
+ type: S.PropertySignature<":", "scroll", never, ":", "scroll", true, never>;
6571
+ x: typeof S.Int;
6572
+ y: typeof S.Int;
6573
+ scroll_x: typeof S.Int;
6574
+ scroll_y: typeof S.Int;
6575
+ }>;
6576
+ export declare class Scroll extends Scroll_base {
6577
+ }
6578
+ declare const TypeType_base: S.Literal<["type"]>;
6579
+ export declare class TypeType extends TypeType_base {
6580
+ }
6581
+ declare const Type_base: S.Struct<{
6582
+ type: S.PropertySignature<":", "type", never, ":", "type", true, never>;
6583
+ text: typeof S.String;
6584
+ }>;
6585
+ export declare class Type extends Type_base {
6586
+ }
6587
+ declare const WaitType_base: S.Literal<["wait"]>;
6588
+ export declare class WaitType extends WaitType_base {
6589
+ }
6590
+ declare const Wait_base: S.Struct<{
6591
+ type: S.PropertySignature<":", "wait", never, ":", "wait", true, never>;
6592
+ }>;
6593
+ export declare class Wait extends Wait_base {
6594
+ }
6595
+ declare const ComputerAction_base: S.Union<[typeof Click, typeof DoubleClick, typeof Drag, typeof KeyPress, typeof Move, typeof Screenshot, typeof Scroll, typeof Type, typeof Wait]>;
6596
+ export declare class ComputerAction extends ComputerAction_base {
6597
+ }
6598
+ declare const ComputerToolCallSafetyCheck_base: S.Struct<{
6599
+ id: typeof S.String;
6600
+ code: typeof S.String;
6601
+ message: typeof S.String;
6602
+ }>;
6603
+ export declare class ComputerToolCallSafetyCheck extends ComputerToolCallSafetyCheck_base {
6604
+ }
6605
+ declare const ComputerToolCallStatus_base: S.Literal<["in_progress", "completed", "incomplete"]>;
6606
+ export declare class ComputerToolCallStatus extends ComputerToolCallStatus_base {
6607
+ }
6608
+ declare const ComputerToolCall_base: S.Struct<{
6609
+ type: S.PropertySignature<":", "computer_call", never, ":", "computer_call", true, never>;
6610
+ id: typeof S.String;
6611
+ call_id: typeof S.String;
6612
+ action: typeof ComputerAction;
6613
+ pending_safety_checks: S.Array$<typeof ComputerToolCallSafetyCheck>;
6614
+ status: typeof ComputerToolCallStatus;
6615
+ }>;
6616
+ export declare class ComputerToolCall extends ComputerToolCall_base {
6617
+ }
6618
+ declare const ComputerToolCallOutputType_base: S.Literal<["computer_call_output"]>;
6619
+ export declare class ComputerToolCallOutputType extends ComputerToolCallOutputType_base {
6620
+ }
6621
+ declare const ComputerScreenshotImageType_base: S.Literal<["computer_screenshot"]>;
6622
+ export declare class ComputerScreenshotImageType extends ComputerScreenshotImageType_base {
6623
+ }
6624
+ declare const ComputerScreenshotImage_base: S.Struct<{
6625
+ type: S.PropertySignature<":", "computer_screenshot", never, ":", "computer_screenshot", true, never>;
6626
+ image_url: S.optionalWith<typeof S.String, {
6627
+ nullable: true;
6628
+ }>;
6629
+ file_id: S.optionalWith<typeof S.String, {
6630
+ nullable: true;
6631
+ }>;
6632
+ }>;
6633
+ export declare class ComputerScreenshotImage extends ComputerScreenshotImage_base {
6634
+ }
6635
+ declare const ComputerToolCallOutputStatus_base: S.Literal<["in_progress", "completed", "incomplete"]>;
6636
+ export declare class ComputerToolCallOutputStatus extends ComputerToolCallOutputStatus_base {
6637
+ }
6638
+ declare const ComputerToolCallOutput_base: S.Struct<{
6639
+ type: S.PropertySignature<":", "computer_call_output", never, ":", "computer_call_output", true, never>;
6640
+ id: S.optionalWith<typeof S.String, {
6641
+ nullable: true;
6642
+ }>;
6643
+ call_id: typeof S.String;
6644
+ acknowledged_safety_checks: S.optionalWith<S.Array$<typeof ComputerToolCallSafetyCheck>, {
6645
+ nullable: true;
6646
+ }>;
6647
+ output: typeof ComputerScreenshotImage;
6648
+ status: S.optionalWith<typeof ComputerToolCallOutputStatus, {
6649
+ nullable: true;
6650
+ }>;
6651
+ }>;
6652
+ export declare class ComputerToolCallOutput extends ComputerToolCallOutput_base {
6653
+ }
6654
+ declare const WebSearchToolCallType_base: S.Literal<["web_search_call"]>;
6655
+ export declare class WebSearchToolCallType extends WebSearchToolCallType_base {
6656
+ }
6657
+ declare const WebSearchToolCallStatus_base: S.Literal<["in_progress", "searching", "completed", "failed"]>;
6658
+ export declare class WebSearchToolCallStatus extends WebSearchToolCallStatus_base {
6659
+ }
6660
+ declare const WebSearchToolCall_base: S.Struct<{
6661
+ id: typeof S.String;
6662
+ type: typeof WebSearchToolCallType;
6663
+ status: typeof WebSearchToolCallStatus;
6664
+ }>;
6665
+ export declare class WebSearchToolCall extends WebSearchToolCall_base {
6666
+ }
6667
+ declare const FunctionToolCallType_base: S.Literal<["function_call"]>;
6668
+ export declare class FunctionToolCallType extends FunctionToolCallType_base {
6669
+ }
6670
+ declare const FunctionToolCallStatus_base: S.Literal<["in_progress", "completed", "incomplete"]>;
6671
+ export declare class FunctionToolCallStatus extends FunctionToolCallStatus_base {
6672
+ }
6673
+ declare const FunctionToolCall_base: S.Struct<{
6674
+ id: typeof S.String;
6675
+ type: typeof FunctionToolCallType;
6676
+ call_id: typeof S.String;
6677
+ name: typeof S.String;
6678
+ arguments: typeof S.String;
6679
+ status: S.optionalWith<typeof FunctionToolCallStatus, {
6680
+ nullable: true;
6681
+ }>;
6682
+ }>;
6683
+ export declare class FunctionToolCall extends FunctionToolCall_base {
6684
+ }
6685
+ declare const FunctionToolCallOutputType_base: S.Literal<["function_call_output"]>;
6686
+ export declare class FunctionToolCallOutputType extends FunctionToolCallOutputType_base {
6687
+ }
6688
+ declare const FunctionToolCallOutputStatus_base: S.Literal<["in_progress", "completed", "incomplete"]>;
6689
+ export declare class FunctionToolCallOutputStatus extends FunctionToolCallOutputStatus_base {
6690
+ }
6691
+ declare const FunctionToolCallOutput_base: S.Struct<{
6692
+ id: S.optionalWith<typeof S.String, {
6693
+ nullable: true;
6694
+ }>;
6695
+ type: typeof FunctionToolCallOutputType;
6696
+ call_id: typeof S.String;
6697
+ output: typeof S.String;
6698
+ status: S.optionalWith<typeof FunctionToolCallOutputStatus, {
6699
+ nullable: true;
6700
+ }>;
6701
+ }>;
6702
+ export declare class FunctionToolCallOutput extends FunctionToolCallOutput_base {
6703
+ }
6704
+ declare const ReasoningItemType_base: S.Literal<["reasoning"]>;
6705
+ export declare class ReasoningItemType extends ReasoningItemType_base {
6706
+ }
6707
+ declare const ReasoningItemStatus_base: S.Literal<["in_progress", "completed", "incomplete"]>;
6708
+ export declare class ReasoningItemStatus extends ReasoningItemStatus_base {
6709
+ }
6710
+ declare const ReasoningItem_base: S.Struct<{
6711
+ type: typeof ReasoningItemType;
6712
+ id: typeof S.String;
6713
+ content: S.Array$<S.Struct<{
6714
+ type: S.Literal<["reasoning_summary"]>;
6715
+ text: typeof S.String;
6716
+ }>>;
6717
+ status: S.optionalWith<typeof ReasoningItemStatus, {
6718
+ nullable: true;
6719
+ }>;
6720
+ }>;
6721
+ export declare class ReasoningItem extends ReasoningItem_base {
6722
+ }
6723
+ declare const Item_base: S.Record$<typeof S.String, typeof S.Unknown>;
6724
+ export declare class Item extends Item_base {
6725
+ }
6726
+ declare const ItemReferenceType_base: S.Literal<["item_reference"]>;
6727
+ export declare class ItemReferenceType extends ItemReferenceType_base {
6728
+ }
6729
+ declare const ItemReference_base: S.Struct<{
6730
+ id: typeof S.String;
6731
+ type: typeof ItemReferenceType;
6732
+ }>;
6733
+ export declare class ItemReference extends ItemReference_base {
6734
+ }
6735
+ declare const InputItem_base: S.Union<[typeof EasyInputMessage, S.Record$<typeof S.String, typeof S.Unknown>, typeof ItemReference]>;
6736
+ export declare class InputItem extends InputItem_base {
6737
+ }
6738
+ declare const Includable_base: S.Literal<["file_search_call.results", "message.input_image.image_url", "computer_call_output.output.image_url"]>;
6739
+ export declare class Includable extends Includable_base {
6740
+ }
6741
+ declare const ReasoningGenerateSummary_base: S.Literal<["concise", "detailed"]>;
6742
+ export declare class ReasoningGenerateSummary extends ReasoningGenerateSummary_base {
6743
+ }
6744
+ declare const Reasoning_base: S.Struct<{
6745
+ effort: S.PropertySignature<":", "low" | "medium" | "high" | null, never, ":", "low" | "medium" | "high" | null, true, never>;
6746
+ generate_summary: S.optionalWith<typeof ReasoningGenerateSummary, {
6747
+ nullable: true;
6748
+ }>;
6749
+ }>;
6750
+ export declare class Reasoning extends Reasoning_base {
6751
+ }
6752
+ declare const TextResponseFormatJsonSchemaType_base: S.Literal<["json_schema"]>;
6753
+ export declare class TextResponseFormatJsonSchemaType extends TextResponseFormatJsonSchemaType_base {
6754
+ }
6755
+ declare const TextResponseFormatJsonSchema_base: S.Struct<{
6756
+ type: typeof TextResponseFormatJsonSchemaType;
6757
+ description: S.optionalWith<typeof S.String, {
6758
+ nullable: true;
6759
+ }>;
6760
+ name: S.optionalWith<typeof S.String, {
6761
+ nullable: true;
6762
+ }>;
6763
+ schema: typeof ResponseFormatJsonSchemaSchema;
6764
+ strict: S.optionalWith<typeof S.Boolean, {
6765
+ nullable: true;
6766
+ default: () => false;
6767
+ }>;
6768
+ }>;
6769
+ export declare class TextResponseFormatJsonSchema extends TextResponseFormatJsonSchema_base {
6770
+ }
6771
+ declare const TextResponseFormatConfiguration_base: S.Union<[typeof ResponseFormatText, typeof TextResponseFormatJsonSchema, typeof ResponseFormatJsonObject]>;
6772
+ export declare class TextResponseFormatConfiguration extends TextResponseFormatConfiguration_base {
6773
+ }
6774
+ declare const FileSearchToolType_base: S.Literal<["file_search"]>;
6775
+ export declare class FileSearchToolType extends FileSearchToolType_base {
6776
+ }
6777
+ declare const ComparisonFilterType_base: S.Literal<["eq", "ne", "gt", "gte", "lt", "lte"]>;
6778
+ export declare class ComparisonFilterType extends ComparisonFilterType_base {
6779
+ }
6780
+ declare const ComparisonFilter_base: S.Struct<{
6781
+ type: S.PropertySignature<":", "eq" | "ne" | "gt" | "gte" | "lt" | "lte", never, ":", "eq" | "ne" | "gt" | "gte" | "lt" | "lte", true, never>;
6782
+ key: typeof S.String;
6783
+ value: S.Union<[typeof S.String, typeof S.Number, typeof S.Boolean]>;
6784
+ }>;
6785
+ export declare class ComparisonFilter extends ComparisonFilter_base {
6786
+ }
6787
+ declare const CompoundFilterType_base: S.Literal<["and", "or"]>;
6788
+ export declare class CompoundFilterType extends CompoundFilterType_base {
6789
+ }
6790
+ declare const CompoundFilter_base: S.Struct<{
6791
+ type: typeof CompoundFilterType;
6792
+ filters: S.Array$<typeof ComparisonFilter>;
6793
+ }>;
6794
+ export declare class CompoundFilter extends CompoundFilter_base {
6795
+ }
6796
+ declare const FileSearchToolRankingOptionsRanker_base: S.Literal<["auto", "default-2024-11-15"]>;
6797
+ export declare class FileSearchToolRankingOptionsRanker extends FileSearchToolRankingOptionsRanker_base {
6798
+ }
6799
+ declare const FileSearchTool_base: S.Struct<{
6800
+ type: typeof FileSearchToolType;
6801
+ vector_store_ids: S.Array$<typeof S.String>;
6802
+ max_num_results: S.optionalWith<typeof S.Int, {
6803
+ nullable: true;
6804
+ }>;
6805
+ filters: S.optionalWith<S.Union<[typeof ComparisonFilter, typeof CompoundFilter]>, {
6806
+ nullable: true;
6807
+ }>;
6808
+ ranking_options: S.optionalWith<S.Struct<{
6809
+ ranker: S.optionalWith<typeof FileSearchToolRankingOptionsRanker, {
6810
+ nullable: true;
6811
+ default: () => "auto";
6812
+ }>;
6813
+ score_threshold: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
6814
+ nullable: true;
6815
+ default: () => 0;
6816
+ }>;
6817
+ }>, {
6818
+ nullable: true;
6819
+ }>;
6820
+ }>;
6821
+ export declare class FileSearchTool extends FileSearchTool_base {
6822
+ }
6823
+ declare const FunctionToolType_base: S.Literal<["function"]>;
6824
+ export declare class FunctionToolType extends FunctionToolType_base {
6825
+ }
6826
+ declare const FunctionTool_base: S.Struct<{
6827
+ type: typeof FunctionToolType;
6828
+ name: typeof S.String;
6829
+ description: S.optionalWith<typeof S.String, {
6830
+ nullable: true;
6831
+ }>;
6832
+ parameters: S.Record$<typeof S.String, typeof S.Unknown>;
6833
+ strict: typeof S.Boolean;
6834
+ }>;
6835
+ export declare class FunctionTool extends FunctionTool_base {
6836
+ }
6837
+ declare const ComputerToolType_base: S.Literal<["computer-preview"]>;
6838
+ export declare class ComputerToolType extends ComputerToolType_base {
6839
+ }
6840
+ declare const ComputerToolEnvironment_base: S.Literal<["mac", "windows", "ubuntu", "browser"]>;
6841
+ export declare class ComputerToolEnvironment extends ComputerToolEnvironment_base {
6842
+ }
6843
+ declare const ComputerTool_base: S.Struct<{
6844
+ type: typeof ComputerToolType;
6845
+ display_width: typeof S.Number;
6846
+ display_height: typeof S.Number;
6847
+ environment: typeof ComputerToolEnvironment;
6848
+ }>;
6849
+ export declare class ComputerTool extends ComputerTool_base {
6850
+ }
6851
+ declare const WebSearchToolType_base: S.Literal<["web_search_preview", "web_search_preview_2025_03_11"]>;
6852
+ export declare class WebSearchToolType extends WebSearchToolType_base {
6853
+ }
6854
+ declare const WebSearchToolUserLocationEnumType_base: S.Literal<["approximate"]>;
6855
+ export declare class WebSearchToolUserLocationEnumType extends WebSearchToolUserLocationEnumType_base {
6856
+ }
6857
+ declare const WebSearchToolUserLocation_base: S.Struct<{
6858
+ type: S.Literal<["approximate"]>;
6859
+ country: S.optionalWith<typeof S.String, {
6860
+ nullable: true;
6861
+ }>;
6862
+ region: S.optionalWith<typeof S.String, {
6863
+ nullable: true;
6864
+ }>;
6865
+ city: S.optionalWith<typeof S.String, {
6866
+ nullable: true;
6867
+ }>;
6868
+ timezone: S.optionalWith<typeof S.String, {
6869
+ nullable: true;
6870
+ }>;
6871
+ }>;
6872
+ export declare class WebSearchToolUserLocation extends WebSearchToolUserLocation_base {
6873
+ }
6874
+ declare const WebSearchTool_base: S.Struct<{
6875
+ type: typeof WebSearchToolType;
6876
+ user_location: S.optionalWith<typeof WebSearchToolUserLocation, {
6877
+ nullable: true;
6878
+ }>;
6879
+ search_context_size: S.optionalWith<typeof WebSearchContextSize, {
6880
+ nullable: true;
6881
+ default: () => "medium";
6882
+ }>;
6883
+ }>;
6884
+ export declare class WebSearchTool extends WebSearchTool_base {
6885
+ }
6886
+ declare const Tool_base: S.Union<[typeof FileSearchTool, typeof FunctionTool, typeof ComputerTool, typeof WebSearchTool]>;
6887
+ export declare class Tool extends Tool_base {
6888
+ }
6889
+ declare const ToolChoiceOptions_base: S.Literal<["none", "auto", "required"]>;
6890
+ export declare class ToolChoiceOptions extends ToolChoiceOptions_base {
6891
+ }
6892
+ declare const ToolChoiceTypesType_base: S.Literal<["file_search", "web_search_preview", "computer_use_preview", "web_search_preview_2025_03_11"]>;
6893
+ export declare class ToolChoiceTypesType extends ToolChoiceTypesType_base {
6894
+ }
6895
+ declare const ToolChoiceTypes_base: S.Struct<{
6896
+ type: typeof ToolChoiceTypesType;
6897
+ }>;
6898
+ export declare class ToolChoiceTypes extends ToolChoiceTypes_base {
6899
+ }
6900
+ declare const ToolChoiceFunctionType_base: S.Literal<["function"]>;
6901
+ export declare class ToolChoiceFunctionType extends ToolChoiceFunctionType_base {
6902
+ }
6903
+ declare const ToolChoiceFunction_base: S.Struct<{
6904
+ type: typeof ToolChoiceFunctionType;
6905
+ name: typeof S.String;
6906
+ }>;
6907
+ export declare class ToolChoiceFunction extends ToolChoiceFunction_base {
6908
+ }
6909
+ declare const CreateResponseTruncation_base: S.Literal<["auto", "disabled"]>;
6910
+ export declare class CreateResponseTruncation extends CreateResponseTruncation_base {
6911
+ }
6912
+ declare const CreateResponseModelEnum_base: S.Literal<["o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "o1-preview", "o1-preview-2024-09-12", "o1-mini", "o1-mini-2024-09-12", "computer-use-preview", "computer-use-preview-2025-02-04", "computer-use-preview-2025-03-11", "gpt-4.5-preview", "gpt-4.5-preview-2025-02-27", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01", "gpt-4o-audio-preview-2024-12-17", "gpt-4o-mini-audio-preview", "gpt-4o-mini-audio-preview-2024-12-17", "chatgpt-4o-latest", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613"]>;
6913
+ export declare class CreateResponseModelEnum extends CreateResponseModelEnum_base {
6914
+ }
6915
+ declare const CreateResponse_base: S.Class<CreateResponse, {
6916
+ input: S.Union<[typeof S.String, S.Array$<typeof InputItem>]>;
6917
+ include: S.optionalWith<S.Array$<typeof Includable>, {
6918
+ nullable: true;
6919
+ }>;
6920
+ parallel_tool_calls: S.optionalWith<typeof S.Boolean, {
6921
+ nullable: true;
6922
+ default: () => true;
6923
+ }>;
6924
+ store: S.optionalWith<typeof S.Boolean, {
6925
+ nullable: true;
6926
+ default: () => true;
6927
+ }>;
6928
+ stream: S.optionalWith<typeof S.Boolean, {
6929
+ nullable: true;
6930
+ default: () => false;
6931
+ }>;
6932
+ previous_response_id: S.optionalWith<typeof S.String, {
6933
+ nullable: true;
6934
+ }>;
6935
+ reasoning: S.optionalWith<typeof Reasoning, {
6936
+ nullable: true;
6937
+ }>;
6938
+ max_output_tokens: S.optionalWith<typeof S.Int, {
6939
+ nullable: true;
6940
+ }>;
6941
+ instructions: S.optionalWith<typeof S.String, {
6942
+ nullable: true;
6943
+ }>;
6944
+ text: S.optionalWith<S.Struct<{
6945
+ format: S.optionalWith<typeof TextResponseFormatConfiguration, {
6946
+ nullable: true;
6947
+ }>;
6948
+ }>, {
6949
+ nullable: true;
6950
+ }>;
6951
+ tools: S.optionalWith<S.Array$<typeof Tool>, {
6952
+ nullable: true;
6953
+ }>;
6954
+ tool_choice: S.optionalWith<S.Union<[typeof ToolChoiceOptions, typeof ToolChoiceTypes, typeof ToolChoiceFunction]>, {
6955
+ nullable: true;
6956
+ }>;
6957
+ truncation: S.optionalWith<typeof CreateResponseTruncation, {
6958
+ nullable: true;
6959
+ default: () => "disabled";
6960
+ }>;
6961
+ model: S.Union<[typeof S.String, typeof CreateResponseModelEnum]>;
6962
+ metadata: S.optionalWith<typeof Metadata, {
6963
+ nullable: true;
6964
+ }>;
6965
+ temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
6966
+ nullable: true;
6967
+ default: () => 1;
6968
+ }>;
6969
+ top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
6970
+ nullable: true;
6971
+ default: () => 1;
6972
+ }>;
6973
+ user: S.optionalWith<typeof S.String, {
6974
+ nullable: true;
6975
+ }>;
6976
+ }, S.Struct.Encoded<{
6977
+ input: S.Union<[typeof S.String, S.Array$<typeof InputItem>]>;
6978
+ include: S.optionalWith<S.Array$<typeof Includable>, {
6979
+ nullable: true;
6980
+ }>;
6981
+ parallel_tool_calls: S.optionalWith<typeof S.Boolean, {
6982
+ nullable: true;
6983
+ default: () => true;
6984
+ }>;
6985
+ store: S.optionalWith<typeof S.Boolean, {
6986
+ nullable: true;
6987
+ default: () => true;
6988
+ }>;
6989
+ stream: S.optionalWith<typeof S.Boolean, {
6990
+ nullable: true;
6991
+ default: () => false;
6992
+ }>;
6993
+ previous_response_id: S.optionalWith<typeof S.String, {
6994
+ nullable: true;
6995
+ }>;
6996
+ reasoning: S.optionalWith<typeof Reasoning, {
6997
+ nullable: true;
6998
+ }>;
6999
+ max_output_tokens: S.optionalWith<typeof S.Int, {
7000
+ nullable: true;
7001
+ }>;
7002
+ instructions: S.optionalWith<typeof S.String, {
7003
+ nullable: true;
7004
+ }>;
7005
+ text: S.optionalWith<S.Struct<{
7006
+ format: S.optionalWith<typeof TextResponseFormatConfiguration, {
7007
+ nullable: true;
7008
+ }>;
7009
+ }>, {
7010
+ nullable: true;
7011
+ }>;
7012
+ tools: S.optionalWith<S.Array$<typeof Tool>, {
7013
+ nullable: true;
7014
+ }>;
7015
+ tool_choice: S.optionalWith<S.Union<[typeof ToolChoiceOptions, typeof ToolChoiceTypes, typeof ToolChoiceFunction]>, {
7016
+ nullable: true;
7017
+ }>;
7018
+ truncation: S.optionalWith<typeof CreateResponseTruncation, {
7019
+ nullable: true;
7020
+ default: () => "disabled";
7021
+ }>;
7022
+ model: S.Union<[typeof S.String, typeof CreateResponseModelEnum]>;
7023
+ metadata: S.optionalWith<typeof Metadata, {
7024
+ nullable: true;
7025
+ }>;
7026
+ temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
7027
+ nullable: true;
7028
+ default: () => 1;
7029
+ }>;
7030
+ top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
7031
+ nullable: true;
7032
+ default: () => 1;
7033
+ }>;
7034
+ user: S.optionalWith<typeof S.String, {
7035
+ nullable: true;
7036
+ }>;
7037
+ }>, never, {
7038
+ readonly text?: {
7039
+ readonly format?: {
7040
+ readonly type: "text";
7041
+ } | {
7042
+ readonly type: "json_object";
7043
+ } | {
7044
+ readonly type: "json_schema";
7045
+ readonly description?: string | undefined;
7046
+ readonly name?: string | undefined;
7047
+ readonly strict: boolean;
7048
+ readonly schema: {
7049
+ readonly [x: string]: unknown;
7050
+ };
7051
+ } | undefined;
7052
+ } | undefined;
7053
+ } & {
7054
+ readonly model: string;
7055
+ } & {
7056
+ readonly instructions?: string | undefined;
7057
+ } & {
7058
+ readonly tools?: readonly ({
7059
+ readonly type: "file_search";
7060
+ readonly max_num_results?: number | undefined;
7061
+ readonly ranking_options?: {
7062
+ readonly ranker: "auto" | "default-2024-11-15";
7063
+ readonly score_threshold: number;
7064
+ } | undefined;
7065
+ readonly vector_store_ids: readonly string[];
7066
+ readonly filters?: {
7067
+ readonly type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
7068
+ readonly key: string;
7069
+ readonly value: string | number | boolean;
7070
+ } | {
7071
+ readonly type: "and" | "or";
7072
+ readonly filters: readonly {
7073
+ readonly type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
7074
+ readonly key: string;
7075
+ readonly value: string | number | boolean;
7076
+ }[];
7077
+ } | undefined;
7078
+ } | {
7079
+ readonly type: "function";
7080
+ readonly description?: string | undefined;
7081
+ readonly name: string;
7082
+ readonly parameters: {
7083
+ readonly [x: string]: unknown;
7084
+ };
7085
+ readonly strict: boolean;
7086
+ } | {
7087
+ readonly type: "computer-preview";
7088
+ readonly display_width: number;
7089
+ readonly display_height: number;
7090
+ readonly environment: "mac" | "windows" | "ubuntu" | "browser";
7091
+ } | {
7092
+ readonly type: "web_search_preview" | "web_search_preview_2025_03_11";
7093
+ readonly user_location?: {
7094
+ readonly type: "approximate";
7095
+ readonly country?: string | undefined;
7096
+ readonly region?: string | undefined;
7097
+ readonly city?: string | undefined;
7098
+ readonly timezone?: string | undefined;
7099
+ } | undefined;
7100
+ readonly search_context_size: "low" | "medium" | "high";
7101
+ })[] | undefined;
7102
+ } & {
7103
+ readonly metadata?: {
7104
+ readonly [x: string]: unknown;
7105
+ } | undefined;
7106
+ } & {
7107
+ readonly temperature?: number | undefined;
7108
+ } & {
7109
+ readonly top_p?: number | undefined;
7110
+ } & {
7111
+ readonly input: string | readonly ({
7112
+ readonly [x: string]: unknown;
7113
+ } | {
7114
+ readonly type?: "message" | undefined;
7115
+ readonly content: string | readonly ({
7116
+ readonly type: "input_text";
7117
+ readonly text: string;
7118
+ } | {
7119
+ readonly type: "input_image";
7120
+ readonly image_url?: string | undefined;
7121
+ readonly detail: "auto" | "low" | "high";
7122
+ readonly file_id?: string | undefined;
7123
+ } | {
7124
+ readonly type: "input_file";
7125
+ readonly file_data?: string | undefined;
7126
+ readonly file_id?: string | undefined;
7127
+ readonly filename?: string | undefined;
7128
+ })[];
7129
+ readonly role: "assistant" | "developer" | "system" | "user";
7130
+ } | {
7131
+ readonly type: "item_reference";
7132
+ readonly id: string;
7133
+ })[];
7134
+ } & {
7135
+ readonly user?: string | undefined;
7136
+ } & {
7137
+ readonly store?: boolean | undefined;
7138
+ } & {
7139
+ readonly stream?: boolean | undefined;
7140
+ } & {
7141
+ readonly tool_choice?: "auto" | "none" | "required" | {
7142
+ readonly type: "file_search" | "web_search_preview" | "web_search_preview_2025_03_11" | "computer_use_preview";
7143
+ } | {
7144
+ readonly type: "function";
7145
+ readonly name: string;
7146
+ } | undefined;
7147
+ } & {
7148
+ readonly parallel_tool_calls?: boolean | undefined;
7149
+ } & {
7150
+ readonly reasoning?: {
7151
+ readonly effort: "low" | "medium" | "high" | null;
7152
+ readonly generate_summary?: "concise" | "detailed" | undefined;
7153
+ } | undefined;
7154
+ } & {
7155
+ readonly include?: readonly ("file_search_call.results" | "message.input_image.image_url" | "computer_call_output.output.image_url")[] | undefined;
7156
+ } & {
7157
+ readonly previous_response_id?: string | undefined;
7158
+ } & {
7159
+ readonly max_output_tokens?: number | undefined;
7160
+ } & {
7161
+ readonly truncation?: "auto" | "disabled" | undefined;
7162
+ }, {}, {}>;
7163
+ export declare class CreateResponse extends CreateResponse_base {
7164
+ }
7165
+ declare const ResponseObject_base: S.Literal<["response"]>;
7166
+ export declare class ResponseObject extends ResponseObject_base {
7167
+ }
7168
+ declare const ResponseStatus_base: S.Literal<["completed", "failed", "in_progress", "incomplete"]>;
7169
+ export declare class ResponseStatus extends ResponseStatus_base {
7170
+ }
7171
+ declare const ResponseErrorCode_base: S.Literal<["server_error", "rate_limit_exceeded", "invalid_prompt", "vector_store_timeout", "invalid_image", "invalid_image_format", "invalid_base64_image", "invalid_image_url", "image_too_large", "image_too_small", "image_parse_error", "image_content_policy_violation", "invalid_image_mode", "image_file_too_large", "unsupported_image_media_type", "empty_image_file", "failed_to_download_image", "image_file_not_found"]>;
7172
+ export declare class ResponseErrorCode extends ResponseErrorCode_base {
7173
+ }
7174
+ declare const ResponseError_base: S.Struct<{
7175
+ code: typeof ResponseErrorCode;
7176
+ message: typeof S.String;
7177
+ }>;
7178
+ export declare class ResponseError extends ResponseError_base {
7179
+ }
7180
+ declare const ResponseIncompleteDetailsReason_base: S.Literal<["max_output_tokens", "content_filter"]>;
7181
+ export declare class ResponseIncompleteDetailsReason extends ResponseIncompleteDetailsReason_base {
7182
+ }
7183
+ declare const OutputItem_base: S.Union<[typeof OutputMessage, typeof FileSearchToolCall, typeof FunctionToolCall, typeof WebSearchToolCall, typeof ComputerToolCall, typeof ReasoningItem]>;
7184
+ export declare class OutputItem extends OutputItem_base {
7185
+ }
7186
+ declare const ResponseUsage_base: S.Struct<{
7187
+ input_tokens: typeof S.Int;
7188
+ output_tokens: typeof S.Int;
7189
+ output_tokens_details: S.Struct<{
7190
+ reasoning_tokens: typeof S.Int;
7191
+ }>;
7192
+ total_tokens: typeof S.Int;
7193
+ }>;
7194
+ export declare class ResponseUsage extends ResponseUsage_base {
7195
+ }
7196
+ declare const ResponseTruncation_base: S.Literal<["auto", "disabled"]>;
7197
+ export declare class ResponseTruncation extends ResponseTruncation_base {
7198
+ }
7199
+ declare const ResponseModelEnum_base: S.Literal<["o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "o1-preview", "o1-preview-2024-09-12", "o1-mini", "o1-mini-2024-09-12", "computer-use-preview", "computer-use-preview-2025-02-04", "computer-use-preview-2025-03-11", "gpt-4.5-preview", "gpt-4.5-preview-2025-02-27", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01", "gpt-4o-audio-preview-2024-12-17", "gpt-4o-mini-audio-preview", "gpt-4o-mini-audio-preview-2024-12-17", "chatgpt-4o-latest", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613"]>;
7200
+ export declare class ResponseModelEnum extends ResponseModelEnum_base {
7201
+ }
7202
+ declare const Response_base: S.Class<Response, {
7203
+ id: typeof S.String;
7204
+ object: typeof ResponseObject;
7205
+ status: S.optionalWith<typeof ResponseStatus, {
7206
+ nullable: true;
7207
+ }>;
7208
+ created_at: typeof S.Number;
7209
+ error: S.NullOr<typeof ResponseError>;
7210
+ incomplete_details: S.NullOr<S.Struct<{
7211
+ reason: S.optionalWith<typeof ResponseIncompleteDetailsReason, {
7212
+ nullable: true;
7213
+ }>;
7214
+ }>>;
7215
+ output: S.Array$<typeof OutputItem>;
7216
+ output_text: S.optionalWith<typeof S.String, {
7217
+ nullable: true;
7218
+ }>;
7219
+ usage: S.optionalWith<typeof ResponseUsage, {
7220
+ nullable: true;
7221
+ }>;
7222
+ parallel_tool_calls: S.PropertySignature<":", boolean, never, ":", boolean, true, never>;
7223
+ previous_response_id: S.optionalWith<typeof S.String, {
7224
+ nullable: true;
7225
+ }>;
7226
+ reasoning: S.optionalWith<typeof Reasoning, {
7227
+ nullable: true;
7228
+ }>;
7229
+ max_output_tokens: S.optionalWith<typeof S.Int, {
7230
+ nullable: true;
7231
+ }>;
7232
+ instructions: S.NullOr<typeof S.String>;
7233
+ text: S.optionalWith<S.Struct<{
7234
+ format: S.optionalWith<typeof TextResponseFormatConfiguration, {
7235
+ nullable: true;
7236
+ }>;
7237
+ }>, {
7238
+ nullable: true;
7239
+ }>;
7240
+ tools: S.Array$<typeof Tool>;
7241
+ tool_choice: S.Union<[typeof ToolChoiceOptions, typeof ToolChoiceTypes, typeof ToolChoiceFunction]>;
7242
+ truncation: S.optionalWith<typeof ResponseTruncation, {
7243
+ nullable: true;
7244
+ default: () => "disabled";
7245
+ }>;
7246
+ model: S.Union<[typeof S.String, typeof ResponseModelEnum]>;
7247
+ metadata: S.NullOr<typeof Metadata>;
7248
+ temperature: S.PropertySignature<":", number | null, never, ":", number | null, true, never>;
7249
+ top_p: S.PropertySignature<":", number | null, never, ":", number | null, true, never>;
7250
+ user: S.optionalWith<typeof S.String, {
7251
+ nullable: true;
7252
+ }>;
7253
+ }, S.Struct.Encoded<{
7254
+ id: typeof S.String;
7255
+ object: typeof ResponseObject;
7256
+ status: S.optionalWith<typeof ResponseStatus, {
7257
+ nullable: true;
7258
+ }>;
7259
+ created_at: typeof S.Number;
7260
+ error: S.NullOr<typeof ResponseError>;
7261
+ incomplete_details: S.NullOr<S.Struct<{
7262
+ reason: S.optionalWith<typeof ResponseIncompleteDetailsReason, {
7263
+ nullable: true;
7264
+ }>;
7265
+ }>>;
7266
+ output: S.Array$<typeof OutputItem>;
7267
+ output_text: S.optionalWith<typeof S.String, {
7268
+ nullable: true;
7269
+ }>;
7270
+ usage: S.optionalWith<typeof ResponseUsage, {
7271
+ nullable: true;
7272
+ }>;
7273
+ parallel_tool_calls: S.PropertySignature<":", boolean, never, ":", boolean, true, never>;
7274
+ previous_response_id: S.optionalWith<typeof S.String, {
7275
+ nullable: true;
7276
+ }>;
7277
+ reasoning: S.optionalWith<typeof Reasoning, {
7278
+ nullable: true;
7279
+ }>;
7280
+ max_output_tokens: S.optionalWith<typeof S.Int, {
7281
+ nullable: true;
7282
+ }>;
7283
+ instructions: S.NullOr<typeof S.String>;
7284
+ text: S.optionalWith<S.Struct<{
7285
+ format: S.optionalWith<typeof TextResponseFormatConfiguration, {
7286
+ nullable: true;
7287
+ }>;
7288
+ }>, {
7289
+ nullable: true;
7290
+ }>;
7291
+ tools: S.Array$<typeof Tool>;
7292
+ tool_choice: S.Union<[typeof ToolChoiceOptions, typeof ToolChoiceTypes, typeof ToolChoiceFunction]>;
7293
+ truncation: S.optionalWith<typeof ResponseTruncation, {
7294
+ nullable: true;
7295
+ default: () => "disabled";
7296
+ }>;
7297
+ model: S.Union<[typeof S.String, typeof ResponseModelEnum]>;
7298
+ metadata: S.NullOr<typeof Metadata>;
7299
+ temperature: S.PropertySignature<":", number | null, never, ":", number | null, true, never>;
7300
+ top_p: S.PropertySignature<":", number | null, never, ":", number | null, true, never>;
7301
+ user: S.optionalWith<typeof S.String, {
7302
+ nullable: true;
7303
+ }>;
7304
+ }>, never, {
7305
+ readonly object: "response";
7306
+ } & {
7307
+ readonly text?: {
7308
+ readonly format?: {
7309
+ readonly type: "text";
7310
+ } | {
7311
+ readonly type: "json_object";
7312
+ } | {
7313
+ readonly type: "json_schema";
7314
+ readonly description?: string | undefined;
7315
+ readonly name?: string | undefined;
7316
+ readonly strict: boolean;
7317
+ readonly schema: {
7318
+ readonly [x: string]: unknown;
7319
+ };
7320
+ } | undefined;
7321
+ } | undefined;
7322
+ } & {
7323
+ readonly id: string;
7324
+ } & {
7325
+ readonly created_at: number;
7326
+ } & {
7327
+ readonly model: string;
7328
+ } & {
7329
+ readonly instructions: string | null;
7330
+ } & {
7331
+ readonly tools: readonly ({
7332
+ readonly type: "file_search";
7333
+ readonly max_num_results?: number | undefined;
7334
+ readonly ranking_options?: {
7335
+ readonly ranker: "auto" | "default-2024-11-15";
7336
+ readonly score_threshold: number;
7337
+ } | undefined;
7338
+ readonly vector_store_ids: readonly string[];
7339
+ readonly filters?: {
7340
+ readonly type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
7341
+ readonly key: string;
7342
+ readonly value: string | number | boolean;
7343
+ } | {
7344
+ readonly type: "and" | "or";
7345
+ readonly filters: readonly {
7346
+ readonly type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
7347
+ readonly key: string;
7348
+ readonly value: string | number | boolean;
7349
+ }[];
7350
+ } | undefined;
7351
+ } | {
7352
+ readonly type: "function";
7353
+ readonly description?: string | undefined;
7354
+ readonly name: string;
7355
+ readonly parameters: {
7356
+ readonly [x: string]: unknown;
7357
+ };
7358
+ readonly strict: boolean;
7359
+ } | {
7360
+ readonly type: "computer-preview";
7361
+ readonly display_width: number;
7362
+ readonly display_height: number;
7363
+ readonly environment: "mac" | "windows" | "ubuntu" | "browser";
7364
+ } | {
7365
+ readonly type: "web_search_preview" | "web_search_preview_2025_03_11";
7366
+ readonly user_location?: {
7367
+ readonly type: "approximate";
7368
+ readonly country?: string | undefined;
7369
+ readonly region?: string | undefined;
7370
+ readonly city?: string | undefined;
7371
+ readonly timezone?: string | undefined;
7372
+ } | undefined;
7373
+ readonly search_context_size: "low" | "medium" | "high";
7374
+ })[];
7375
+ } & {
7376
+ readonly metadata: {
7377
+ readonly [x: string]: unknown;
7378
+ } | null;
7379
+ } & {
7380
+ readonly temperature?: number | null | undefined;
7381
+ } & {
7382
+ readonly top_p?: number | null | undefined;
7383
+ } & {
7384
+ readonly status?: "failed" | "in_progress" | "completed" | "incomplete" | undefined;
7385
+ } & {
7386
+ readonly usage?: {
7387
+ readonly total_tokens: number;
7388
+ readonly input_tokens: number;
7389
+ readonly output_tokens: number;
7390
+ readonly output_tokens_details: {
7391
+ readonly reasoning_tokens: number;
7392
+ };
7393
+ } | undefined;
7394
+ } & {
7395
+ readonly user?: string | undefined;
7396
+ } & {
7397
+ readonly tool_choice: "auto" | "none" | "required" | {
7398
+ readonly type: "file_search" | "web_search_preview" | "web_search_preview_2025_03_11" | "computer_use_preview";
7399
+ } | {
7400
+ readonly type: "function";
7401
+ readonly name: string;
7402
+ };
7403
+ } & {
7404
+ readonly parallel_tool_calls?: boolean | undefined;
7405
+ } & {
7406
+ readonly error: {
7407
+ readonly code: "server_error" | "rate_limit_exceeded" | "invalid_prompt" | "vector_store_timeout" | "invalid_image" | "invalid_image_format" | "invalid_base64_image" | "invalid_image_url" | "image_too_large" | "image_too_small" | "image_parse_error" | "image_content_policy_violation" | "invalid_image_mode" | "image_file_too_large" | "unsupported_image_media_type" | "empty_image_file" | "failed_to_download_image" | "image_file_not_found";
7408
+ readonly message: string;
7409
+ } | null;
7410
+ } & {
7411
+ readonly output_text?: string | undefined;
7412
+ } & {
7413
+ readonly output: readonly ({
7414
+ readonly type: "message";
7415
+ readonly id: string;
7416
+ readonly status: "in_progress" | "completed" | "incomplete";
7417
+ readonly content: readonly ({
7418
+ readonly type: "output_text";
7419
+ readonly text: string;
7420
+ readonly annotations: readonly ({
7421
+ readonly type: "file_citation";
7422
+ readonly index: number;
7423
+ readonly file_id: string;
7424
+ } | {
7425
+ readonly type: "url_citation";
7426
+ readonly end_index: number;
7427
+ readonly start_index: number;
7428
+ readonly url: string;
7429
+ readonly title: string;
7430
+ } | {
7431
+ readonly type: "file_path";
7432
+ readonly index: number;
7433
+ readonly file_id: string;
7434
+ })[];
7435
+ } | {
7436
+ readonly type: "refusal";
7437
+ readonly refusal: string;
7438
+ })[];
7439
+ readonly role: "assistant";
7440
+ } | {
7441
+ readonly type: "file_search_call";
7442
+ readonly id: string;
7443
+ readonly status: "failed" | "in_progress" | "completed" | "incomplete" | "searching";
7444
+ readonly results?: readonly {
7445
+ readonly text?: string | undefined;
7446
+ readonly file_id?: string | undefined;
7447
+ readonly filename?: string | undefined;
7448
+ readonly attributes?: {
7449
+ readonly [x: string]: unknown;
7450
+ } | undefined;
7451
+ readonly score?: number | undefined;
7452
+ }[] | undefined;
7453
+ readonly queries: readonly string[];
7454
+ } | {
7455
+ readonly type: "computer_call";
7456
+ readonly id: string;
7457
+ readonly status: "in_progress" | "completed" | "incomplete";
7458
+ readonly call_id: string;
7459
+ readonly action: {
7460
+ readonly type: "click";
7461
+ readonly button: "left" | "right" | "wheel" | "back" | "forward";
7462
+ readonly x: number;
7463
+ readonly y: number;
7464
+ } | {
7465
+ readonly type: "double_click";
7466
+ readonly x: number;
7467
+ readonly y: number;
7468
+ } | {
7469
+ readonly type: "drag";
7470
+ readonly path: readonly {
7471
+ readonly x: number;
7472
+ readonly y: number;
7473
+ }[];
7474
+ } | {
7475
+ readonly keys: readonly string[];
7476
+ readonly type: "keypress";
7477
+ } | {
7478
+ readonly type: "move";
7479
+ readonly x: number;
7480
+ readonly y: number;
7481
+ } | {
7482
+ readonly type: "screenshot";
7483
+ } | {
7484
+ readonly type: "scroll";
7485
+ readonly x: number;
7486
+ readonly y: number;
7487
+ readonly scroll_x: number;
7488
+ readonly scroll_y: number;
7489
+ } | {
7490
+ readonly type: "type";
7491
+ readonly text: string;
7492
+ } | {
7493
+ readonly type: "wait";
7494
+ };
7495
+ readonly pending_safety_checks: readonly {
7496
+ readonly id: string;
7497
+ readonly code: string;
7498
+ readonly message: string;
7499
+ }[];
7500
+ } | {
7501
+ readonly type: "web_search_call";
7502
+ readonly id: string;
7503
+ readonly status: "failed" | "in_progress" | "completed" | "searching";
7504
+ } | {
7505
+ readonly type: "function_call";
7506
+ readonly name: string;
7507
+ readonly id: string;
7508
+ readonly status?: "in_progress" | "completed" | "incomplete" | undefined;
7509
+ readonly arguments: string;
7510
+ readonly call_id: string;
7511
+ } | {
7512
+ readonly type: "reasoning";
7513
+ readonly id: string;
7514
+ readonly status?: "in_progress" | "completed" | "incomplete" | undefined;
7515
+ readonly content: readonly {
7516
+ readonly type: "reasoning_summary";
7517
+ readonly text: string;
7518
+ }[];
7519
+ })[];
7520
+ } & {
7521
+ readonly reasoning?: {
7522
+ readonly effort: "low" | "medium" | "high" | null;
7523
+ readonly generate_summary?: "concise" | "detailed" | undefined;
7524
+ } | undefined;
7525
+ } & {
7526
+ readonly previous_response_id?: string | undefined;
7527
+ } & {
7528
+ readonly max_output_tokens?: number | undefined;
7529
+ } & {
7530
+ readonly truncation?: "auto" | "disabled" | undefined;
7531
+ } & {
7532
+ readonly incomplete_details: {
7533
+ readonly reason?: "content_filter" | "max_output_tokens" | undefined;
7534
+ } | null;
7535
+ }, {}, {}>;
7536
+ export declare class Response extends Response_base {
7537
+ }
7538
+ declare const GetResponseParams_base: S.Struct<{
7539
+ include: S.optionalWith<S.Array$<typeof Includable>, {
7540
+ nullable: true;
7541
+ }>;
7542
+ }>;
7543
+ export declare class GetResponseParams extends GetResponseParams_base {
7544
+ }
7545
+ declare const ListInputItemsParamsOrder_base: S.Literal<["asc", "desc"]>;
7546
+ export declare class ListInputItemsParamsOrder extends ListInputItemsParamsOrder_base {
7547
+ }
7548
+ declare const ListInputItemsParams_base: S.Struct<{
7549
+ limit: S.optionalWith<typeof S.Int, {
7550
+ nullable: true;
7551
+ default: () => 20;
7552
+ }>;
7553
+ order: S.optionalWith<typeof ListInputItemsParamsOrder, {
7554
+ nullable: true;
7555
+ }>;
7556
+ after: S.optionalWith<typeof S.String, {
7557
+ nullable: true;
7558
+ }>;
7559
+ before: S.optionalWith<typeof S.String, {
7560
+ nullable: true;
7561
+ }>;
7562
+ }>;
7563
+ export declare class ListInputItemsParams extends ListInputItemsParams_base {
7564
+ }
7565
+ declare const ResponseItemListObject_base: S.Literal<["list"]>;
7566
+ export declare class ResponseItemListObject extends ResponseItemListObject_base {
7567
+ }
7568
+ declare const InputMessageResourceType_base: S.Literal<["message"]>;
7569
+ export declare class InputMessageResourceType extends InputMessageResourceType_base {
7570
+ }
7571
+ declare const InputMessageResourceRole_base: S.Literal<["user", "system", "developer"]>;
7572
+ export declare class InputMessageResourceRole extends InputMessageResourceRole_base {
7573
+ }
7574
+ declare const InputMessageResourceStatus_base: S.Literal<["in_progress", "completed", "incomplete"]>;
7575
+ export declare class InputMessageResourceStatus extends InputMessageResourceStatus_base {
7576
+ }
7577
+ declare const InputMessageResource_base: S.Struct<{
7578
+ id: typeof S.String;
7579
+ type: S.optionalWith<typeof InputMessageResourceType, {
7580
+ nullable: true;
7581
+ }>;
7582
+ role: typeof InputMessageResourceRole;
7583
+ status: S.optionalWith<typeof InputMessageResourceStatus, {
7584
+ nullable: true;
7585
+ }>;
7586
+ content: typeof InputMessageContentList;
7587
+ }>;
7588
+ export declare class InputMessageResource extends InputMessageResource_base {
7589
+ }
7590
+ declare const ComputerToolCallOutputResourceType_base: S.Literal<["computer_call_output"]>;
7591
+ export declare class ComputerToolCallOutputResourceType extends ComputerToolCallOutputResourceType_base {
7592
+ }
7593
+ declare const ComputerToolCallOutputResourceStatus_base: S.Literal<["in_progress", "completed", "incomplete"]>;
7594
+ export declare class ComputerToolCallOutputResourceStatus extends ComputerToolCallOutputResourceStatus_base {
7595
+ }
7596
+ declare const ComputerToolCallOutputResource_base: S.Struct<{
7597
+ id: typeof S.String;
7598
+ type: S.PropertySignature<":", "computer_call_output", never, ":", "computer_call_output", true, never>;
7599
+ call_id: typeof S.String;
7600
+ acknowledged_safety_checks: S.optionalWith<S.Array$<typeof ComputerToolCallSafetyCheck>, {
7601
+ nullable: true;
7602
+ }>;
7603
+ output: typeof ComputerScreenshotImage;
7604
+ status: S.optionalWith<typeof ComputerToolCallOutputResourceStatus, {
7605
+ nullable: true;
7606
+ }>;
7607
+ }>;
7608
+ export declare class ComputerToolCallOutputResource extends ComputerToolCallOutputResource_base {
7609
+ }
7610
+ declare const FunctionToolCallOutputResourceType_base: S.Literal<["function_call_output"]>;
7611
+ export declare class FunctionToolCallOutputResourceType extends FunctionToolCallOutputResourceType_base {
7612
+ }
7613
+ declare const FunctionToolCallOutputResourceStatus_base: S.Literal<["in_progress", "completed", "incomplete"]>;
7614
+ export declare class FunctionToolCallOutputResourceStatus extends FunctionToolCallOutputResourceStatus_base {
7615
+ }
7616
+ declare const FunctionToolCallOutputResource_base: S.Struct<{
7617
+ id: typeof S.String;
7618
+ type: typeof FunctionToolCallOutputResourceType;
7619
+ call_id: typeof S.String;
7620
+ output: typeof S.String;
7621
+ status: S.optionalWith<typeof FunctionToolCallOutputResourceStatus, {
7622
+ nullable: true;
7623
+ }>;
7624
+ }>;
7625
+ export declare class FunctionToolCallOutputResource extends FunctionToolCallOutputResource_base {
7626
+ }
7627
+ declare const ItemResource_base: S.Union<[typeof InputMessageResource, typeof OutputMessage, typeof FileSearchToolCall, typeof ComputerToolCall, typeof ComputerToolCallOutputResource, typeof WebSearchToolCall, typeof FunctionToolCall, typeof FunctionToolCallOutputResource]>;
7628
+ export declare class ItemResource extends ItemResource_base {
7629
+ }
7630
+ declare const ResponseItemList_base: S.Class<ResponseItemList, {
7631
+ object: typeof ResponseItemListObject;
7632
+ data: S.Array$<typeof ItemResource>;
7633
+ has_more: typeof S.Boolean;
7634
+ first_id: typeof S.String;
7635
+ last_id: typeof S.String;
7636
+ }, S.Struct.Encoded<{
7637
+ object: typeof ResponseItemListObject;
7638
+ data: S.Array$<typeof ItemResource>;
7639
+ has_more: typeof S.Boolean;
7640
+ first_id: typeof S.String;
7641
+ last_id: typeof S.String;
7642
+ }>, never, {
7643
+ readonly object: "list";
7644
+ } & {
7645
+ readonly first_id: string;
7646
+ } & {
7647
+ readonly last_id: string;
7648
+ } & {
7649
+ readonly has_more: boolean;
7650
+ } & {
7651
+ readonly data: readonly ({
7652
+ readonly type: "message";
7653
+ readonly id: string;
7654
+ readonly status: "in_progress" | "completed" | "incomplete";
7655
+ readonly content: readonly ({
7656
+ readonly type: "output_text";
7657
+ readonly text: string;
7658
+ readonly annotations: readonly ({
7659
+ readonly type: "file_citation";
7660
+ readonly index: number;
7661
+ readonly file_id: string;
7662
+ } | {
7663
+ readonly type: "url_citation";
7664
+ readonly end_index: number;
7665
+ readonly start_index: number;
7666
+ readonly url: string;
7667
+ readonly title: string;
7668
+ } | {
7669
+ readonly type: "file_path";
7670
+ readonly index: number;
7671
+ readonly file_id: string;
7672
+ })[];
7673
+ } | {
7674
+ readonly type: "refusal";
7675
+ readonly refusal: string;
7676
+ })[];
7677
+ readonly role: "assistant";
7678
+ } | {
7679
+ readonly type: "file_search_call";
7680
+ readonly id: string;
7681
+ readonly status: "failed" | "in_progress" | "completed" | "incomplete" | "searching";
7682
+ readonly results?: readonly {
7683
+ readonly text?: string | undefined;
7684
+ readonly file_id?: string | undefined;
7685
+ readonly filename?: string | undefined;
7686
+ readonly attributes?: {
7687
+ readonly [x: string]: unknown;
7688
+ } | undefined;
7689
+ readonly score?: number | undefined;
7690
+ }[] | undefined;
7691
+ readonly queries: readonly string[];
7692
+ } | {
7693
+ readonly type: "computer_call";
7694
+ readonly id: string;
7695
+ readonly status: "in_progress" | "completed" | "incomplete";
7696
+ readonly call_id: string;
7697
+ readonly action: {
7698
+ readonly type: "click";
7699
+ readonly button: "left" | "right" | "wheel" | "back" | "forward";
7700
+ readonly x: number;
7701
+ readonly y: number;
7702
+ } | {
7703
+ readonly type: "double_click";
7704
+ readonly x: number;
7705
+ readonly y: number;
7706
+ } | {
7707
+ readonly type: "drag";
7708
+ readonly path: readonly {
7709
+ readonly x: number;
7710
+ readonly y: number;
7711
+ }[];
7712
+ } | {
7713
+ readonly keys: readonly string[];
7714
+ readonly type: "keypress";
7715
+ } | {
7716
+ readonly type: "move";
7717
+ readonly x: number;
7718
+ readonly y: number;
7719
+ } | {
7720
+ readonly type: "screenshot";
7721
+ } | {
7722
+ readonly type: "scroll";
7723
+ readonly x: number;
7724
+ readonly y: number;
7725
+ readonly scroll_x: number;
7726
+ readonly scroll_y: number;
7727
+ } | {
7728
+ readonly type: "type";
7729
+ readonly text: string;
7730
+ } | {
7731
+ readonly type: "wait";
7732
+ };
7733
+ readonly pending_safety_checks: readonly {
7734
+ readonly id: string;
7735
+ readonly code: string;
7736
+ readonly message: string;
7737
+ }[];
7738
+ } | {
7739
+ readonly type: "web_search_call";
7740
+ readonly id: string;
7741
+ readonly status: "failed" | "in_progress" | "completed" | "searching";
7742
+ } | {
7743
+ readonly type: "function_call";
7744
+ readonly name: string;
7745
+ readonly id: string;
7746
+ readonly status?: "in_progress" | "completed" | "incomplete" | undefined;
7747
+ readonly arguments: string;
7748
+ readonly call_id: string;
7749
+ } | {
7750
+ readonly type?: "message" | undefined;
7751
+ readonly id: string;
7752
+ readonly status?: "in_progress" | "completed" | "incomplete" | undefined;
7753
+ readonly content: readonly ({
7754
+ readonly type: "input_text";
7755
+ readonly text: string;
7756
+ } | {
7757
+ readonly type: "input_image";
7758
+ readonly image_url?: string | undefined;
7759
+ readonly detail: "auto" | "low" | "high";
7760
+ readonly file_id?: string | undefined;
7761
+ } | {
7762
+ readonly type: "input_file";
7763
+ readonly file_data?: string | undefined;
7764
+ readonly file_id?: string | undefined;
7765
+ readonly filename?: string | undefined;
7766
+ })[];
7767
+ readonly role: "developer" | "system" | "user";
7768
+ } | {
7769
+ readonly type: "computer_call_output";
7770
+ readonly id: string;
7771
+ readonly status?: "in_progress" | "completed" | "incomplete" | undefined;
7772
+ readonly call_id: string;
7773
+ readonly acknowledged_safety_checks?: readonly {
7774
+ readonly id: string;
7775
+ readonly code: string;
7776
+ readonly message: string;
7777
+ }[] | undefined;
7778
+ readonly output: {
7779
+ readonly type: "computer_screenshot";
7780
+ readonly image_url?: string | undefined;
7781
+ readonly file_id?: string | undefined;
7782
+ };
7783
+ } | {
7784
+ readonly type: "function_call_output";
7785
+ readonly id: string;
7786
+ readonly status?: "in_progress" | "completed" | "incomplete" | undefined;
7787
+ readonly call_id: string;
7788
+ readonly output: string;
7789
+ })[];
7790
+ }, {}, {}>;
7791
+ export declare class ResponseItemList extends ResponseItemList_base {
5937
7792
  }
5938
7793
  declare const CreateMessageRequestRole_base: S.Literal<["user", "assistant"]>;
5939
7794
  export declare class CreateMessageRequestRole extends CreateMessageRequestRole_base {
@@ -6228,22 +8083,22 @@ declare const ThreadObject_base: S.Class<ThreadObject, {
6228
8083
  }, {}, {}>;
6229
8084
  export declare class ThreadObject extends ThreadObject_base {
6230
8085
  }
6231
- declare const CreateThreadAndRunRequestModelEnum_base: S.Literal<["gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613"]>;
8086
+ declare const CreateThreadAndRunRequestModelEnum_base: S.Literal<["gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4.5-preview", "gpt-4.5-preview-2025-02-27", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613"]>;
6232
8087
  export declare class CreateThreadAndRunRequestModelEnum extends CreateThreadAndRunRequestModelEnum_base {
6233
8088
  }
6234
- declare const TruncationObjectType_base: S.Literal<["auto", "last_messages"]>;
6235
- export declare class TruncationObjectType extends TruncationObjectType_base {
8089
+ declare const CreateThreadAndRunRequestTruncationStrategyEnumType_base: S.Literal<["auto", "last_messages"]>;
8090
+ export declare class CreateThreadAndRunRequestTruncationStrategyEnumType extends CreateThreadAndRunRequestTruncationStrategyEnumType_base {
6236
8091
  }
6237
- declare const TruncationObject_base: S.Struct<{
6238
- type: typeof TruncationObjectType;
8092
+ declare const CreateThreadAndRunRequestTruncationStrategy_base: S.Struct<{
8093
+ type: S.Literal<["auto", "last_messages"]>;
6239
8094
  last_messages: S.optionalWith<S.filter<typeof S.Int>, {
6240
8095
  nullable: true;
6241
8096
  }>;
6242
8097
  }>;
6243
- export declare class TruncationObject extends TruncationObject_base {
8098
+ export declare class CreateThreadAndRunRequestTruncationStrategy extends CreateThreadAndRunRequestTruncationStrategy_base {
6244
8099
  }
6245
- declare const AssistantsApiToolChoiceOptionEnum_base: S.Literal<["none", "auto", "required"]>;
6246
- export declare class AssistantsApiToolChoiceOptionEnum extends AssistantsApiToolChoiceOptionEnum_base {
8100
+ declare const CreateThreadAndRunRequestToolChoiceEnumEnum_base: S.Literal<["none", "auto", "required"]>;
8101
+ export declare class CreateThreadAndRunRequestToolChoiceEnumEnum extends CreateThreadAndRunRequestToolChoiceEnumEnum_base {
6247
8102
  }
6248
8103
  declare const AssistantsNamedToolChoiceType_base: S.Literal<["function", "code_interpreter", "file_search"]>;
6249
8104
  export declare class AssistantsNamedToolChoiceType extends AssistantsNamedToolChoiceType_base {
@@ -6258,8 +8113,8 @@ declare const AssistantsNamedToolChoice_base: S.Struct<{
6258
8113
  }>;
6259
8114
  export declare class AssistantsNamedToolChoice extends AssistantsNamedToolChoice_base {
6260
8115
  }
6261
- declare const AssistantsApiToolChoiceOption_base: S.Union<[typeof AssistantsApiToolChoiceOptionEnum, typeof AssistantsNamedToolChoice]>;
6262
- export declare class AssistantsApiToolChoiceOption extends AssistantsApiToolChoiceOption_base {
8116
+ declare const CreateThreadAndRunRequestToolChoice_base: S.Union<[S.Literal<["none", "auto", "required"]>, typeof AssistantsNamedToolChoice]>;
8117
+ export declare class CreateThreadAndRunRequestToolChoice extends CreateThreadAndRunRequestToolChoice_base {
6263
8118
  }
6264
8119
  declare const CreateThreadAndRunRequest_base: S.Class<CreateThreadAndRunRequest, {
6265
8120
  assistant_id: typeof S.String;
@@ -6314,10 +8169,10 @@ declare const CreateThreadAndRunRequest_base: S.Class<CreateThreadAndRunRequest,
6314
8169
  max_completion_tokens: S.optionalWith<S.filter<typeof S.Int>, {
6315
8170
  nullable: true;
6316
8171
  }>;
6317
- truncation_strategy: S.optionalWith<typeof TruncationObject, {
8172
+ truncation_strategy: S.optionalWith<typeof CreateThreadAndRunRequestTruncationStrategy, {
6318
8173
  nullable: true;
6319
8174
  }>;
6320
- tool_choice: S.optionalWith<typeof AssistantsApiToolChoiceOption, {
8175
+ tool_choice: S.optionalWith<typeof CreateThreadAndRunRequestToolChoice, {
6321
8176
  nullable: true;
6322
8177
  }>;
6323
8178
  parallel_tool_calls: S.optionalWith<typeof ParallelToolCalls, {
@@ -6380,10 +8235,10 @@ declare const CreateThreadAndRunRequest_base: S.Class<CreateThreadAndRunRequest,
6380
8235
  max_completion_tokens: S.optionalWith<S.filter<typeof S.Int>, {
6381
8236
  nullable: true;
6382
8237
  }>;
6383
- truncation_strategy: S.optionalWith<typeof TruncationObject, {
8238
+ truncation_strategy: S.optionalWith<typeof CreateThreadAndRunRequestTruncationStrategy, {
6384
8239
  nullable: true;
6385
8240
  }>;
6386
- tool_choice: S.optionalWith<typeof AssistantsApiToolChoiceOption, {
8241
+ tool_choice: S.optionalWith<typeof CreateThreadAndRunRequestToolChoice, {
6387
8242
  nullable: true;
6388
8243
  }>;
6389
8244
  parallel_tool_calls: S.optionalWith<typeof ParallelToolCalls, {
@@ -6515,6 +8370,23 @@ declare const RunCompletionUsage_base: S.Struct<{
6515
8370
  }>;
6516
8371
  export declare class RunCompletionUsage extends RunCompletionUsage_base {
6517
8372
  }
8373
+ declare const RunObjectTruncationStrategyEnumType_base: S.Literal<["auto", "last_messages"]>;
8374
+ export declare class RunObjectTruncationStrategyEnumType extends RunObjectTruncationStrategyEnumType_base {
8375
+ }
8376
+ declare const RunObjectTruncationStrategy_base: S.Struct<{
8377
+ type: S.Literal<["auto", "last_messages"]>;
8378
+ last_messages: S.optionalWith<S.filter<typeof S.Int>, {
8379
+ nullable: true;
8380
+ }>;
8381
+ }>;
8382
+ export declare class RunObjectTruncationStrategy extends RunObjectTruncationStrategy_base {
8383
+ }
8384
+ declare const RunObjectToolChoiceEnumEnum_base: S.Literal<["none", "auto", "required"]>;
8385
+ export declare class RunObjectToolChoiceEnumEnum extends RunObjectToolChoiceEnumEnum_base {
8386
+ }
8387
+ declare const RunObjectToolChoice_base: S.Union<[S.Literal<["none", "auto", "required"]>, typeof AssistantsNamedToolChoice]>;
8388
+ export declare class RunObjectToolChoice extends RunObjectToolChoice_base {
8389
+ }
6518
8390
  declare const RunObject_base: S.Class<RunObject, {
6519
8391
  id: typeof S.String;
6520
8392
  object: typeof RunObjectObject;
@@ -6597,8 +8469,8 @@ declare const RunObject_base: S.Class<RunObject, {
6597
8469
  }>;
6598
8470
  max_prompt_tokens: S.NullOr<S.filter<typeof S.Int>>;
6599
8471
  max_completion_tokens: S.NullOr<S.filter<typeof S.Int>>;
6600
- truncation_strategy: typeof TruncationObject;
6601
- tool_choice: typeof AssistantsApiToolChoiceOption;
8472
+ truncation_strategy: typeof RunObjectTruncationStrategy;
8473
+ tool_choice: typeof RunObjectToolChoice;
6602
8474
  parallel_tool_calls: S.PropertySignature<":", boolean, never, ":", boolean, true, never>;
6603
8475
  response_format: typeof AssistantsApiResponseFormatOption;
6604
8476
  }, S.Struct.Encoded<{
@@ -6683,8 +8555,8 @@ declare const RunObject_base: S.Class<RunObject, {
6683
8555
  }>;
6684
8556
  max_prompt_tokens: S.NullOr<S.filter<typeof S.Int>>;
6685
8557
  max_completion_tokens: S.NullOr<S.filter<typeof S.Int>>;
6686
- truncation_strategy: typeof TruncationObject;
6687
- tool_choice: typeof AssistantsApiToolChoiceOption;
8558
+ truncation_strategy: typeof RunObjectTruncationStrategy;
8559
+ tool_choice: typeof RunObjectToolChoice;
6688
8560
  parallel_tool_calls: S.PropertySignature<":", boolean, never, ":", boolean, true, never>;
6689
8561
  response_format: typeof AssistantsApiResponseFormatOption;
6690
8562
  }>, never, {
@@ -6745,7 +8617,7 @@ declare const RunObject_base: S.Class<RunObject, {
6745
8617
  };
6746
8618
  };
6747
8619
  } & {
6748
- readonly status: "failed" | "in_progress" | "completed" | "expired" | "cancelling" | "cancelled" | "queued" | "requires_action" | "incomplete";
8620
+ readonly status: "failed" | "in_progress" | "completed" | "expired" | "cancelling" | "cancelled" | "queued" | "incomplete" | "requires_action";
6749
8621
  } & {
6750
8622
  readonly expires_at: number | null;
6751
8623
  } & {
@@ -6754,6 +8626,12 @@ declare const RunObject_base: S.Class<RunObject, {
6754
8626
  readonly failed_at: number | null;
6755
8627
  } & {
6756
8628
  readonly cancelled_at: number | null;
8629
+ } & {
8630
+ readonly usage: {
8631
+ readonly completion_tokens: number;
8632
+ readonly prompt_tokens: number;
8633
+ readonly total_tokens: number;
8634
+ } | null;
6757
8635
  } & {
6758
8636
  readonly max_completion_tokens: number | null;
6759
8637
  } & {
@@ -6766,10 +8644,8 @@ declare const RunObject_base: S.Class<RunObject, {
6766
8644
  } & {
6767
8645
  readonly parallel_tool_calls?: boolean | undefined;
6768
8646
  } & {
6769
- readonly usage: {
6770
- readonly completion_tokens: number;
6771
- readonly prompt_tokens: number;
6772
- readonly total_tokens: number;
8647
+ readonly incomplete_details: {
8648
+ readonly reason?: "max_completion_tokens" | "max_prompt_tokens" | undefined;
6773
8649
  } | null;
6774
8650
  } & {
6775
8651
  readonly assistant_id: string;
@@ -6803,10 +8679,6 @@ declare const RunObject_base: S.Class<RunObject, {
6803
8679
  } | null;
6804
8680
  } & {
6805
8681
  readonly started_at: number | null;
6806
- } & {
6807
- readonly incomplete_details: {
6808
- readonly reason?: "max_completion_tokens" | "max_prompt_tokens" | undefined;
6809
- } | null;
6810
8682
  }, {}, {}>;
6811
8683
  export declare class RunObject extends RunObject_base {
6812
8684
  }
@@ -7053,16 +8925,16 @@ declare const ListMessagesResponse_base: S.Class<ListMessagesResponse, {
7053
8925
  readonly annotations: readonly ({
7054
8926
  readonly type: "file_citation";
7055
8927
  readonly text: string;
8928
+ readonly end_index: number;
8929
+ readonly start_index: number;
7056
8930
  readonly file_citation: {
7057
8931
  readonly file_id: string;
7058
8932
  };
7059
- readonly start_index: number;
7060
- readonly end_index: number;
7061
8933
  } | {
7062
8934
  readonly type: "file_path";
7063
8935
  readonly text: string;
7064
- readonly start_index: number;
7065
8936
  readonly end_index: number;
8937
+ readonly start_index: number;
7066
8938
  readonly file_path: {
7067
8939
  readonly file_id: string;
7068
8940
  };
@@ -7073,6 +8945,9 @@ declare const ListMessagesResponse_base: S.Class<ListMessagesResponse, {
7073
8945
  readonly refusal: string;
7074
8946
  })[];
7075
8947
  readonly role: "assistant" | "user";
8948
+ readonly incomplete_details: {
8949
+ readonly reason: "content_filter" | "max_tokens" | "run_cancelled" | "run_expired" | "run_failed";
8950
+ } | null;
7076
8951
  readonly attachments: readonly {
7077
8952
  readonly tools?: readonly ({
7078
8953
  readonly type: "code_interpreter";
@@ -7083,9 +8958,6 @@ declare const ListMessagesResponse_base: S.Class<ListMessagesResponse, {
7083
8958
  }[] | null;
7084
8959
  readonly assistant_id: string | null;
7085
8960
  readonly thread_id: string;
7086
- readonly incomplete_details: {
7087
- readonly reason: "max_tokens" | "content_filter" | "run_cancelled" | "run_expired" | "run_failed";
7088
- } | null;
7089
8961
  readonly run_id: string | null;
7090
8962
  readonly incomplete_at: number | null;
7091
8963
  }[];
@@ -7180,6 +9052,23 @@ declare const CreateRunParams_base: S.Struct<{
7180
9052
  }>;
7181
9053
  export declare class CreateRunParams extends CreateRunParams_base {
7182
9054
  }
9055
+ declare const CreateRunRequestTruncationStrategyEnumType_base: S.Literal<["auto", "last_messages"]>;
9056
+ export declare class CreateRunRequestTruncationStrategyEnumType extends CreateRunRequestTruncationStrategyEnumType_base {
9057
+ }
9058
+ declare const CreateRunRequestTruncationStrategy_base: S.Struct<{
9059
+ type: S.Literal<["auto", "last_messages"]>;
9060
+ last_messages: S.optionalWith<S.filter<typeof S.Int>, {
9061
+ nullable: true;
9062
+ }>;
9063
+ }>;
9064
+ export declare class CreateRunRequestTruncationStrategy extends CreateRunRequestTruncationStrategy_base {
9065
+ }
9066
+ declare const CreateRunRequestToolChoiceEnumEnum_base: S.Literal<["none", "auto", "required"]>;
9067
+ export declare class CreateRunRequestToolChoiceEnumEnum extends CreateRunRequestToolChoiceEnumEnum_base {
9068
+ }
9069
+ declare const CreateRunRequestToolChoice_base: S.Union<[S.Literal<["none", "auto", "required"]>, typeof AssistantsNamedToolChoice]>;
9070
+ export declare class CreateRunRequestToolChoice extends CreateRunRequestToolChoice_base {
9071
+ }
7183
9072
  declare const CreateRunRequest_base: S.Class<CreateRunRequest, {
7184
9073
  assistant_id: typeof S.String;
7185
9074
  model: S.optionalWith<S.Union<[typeof S.String, typeof AssistantSupportedModels]>, {
@@ -7221,10 +9110,10 @@ declare const CreateRunRequest_base: S.Class<CreateRunRequest, {
7221
9110
  max_completion_tokens: S.optionalWith<S.filter<typeof S.Int>, {
7222
9111
  nullable: true;
7223
9112
  }>;
7224
- truncation_strategy: S.optionalWith<typeof TruncationObject, {
9113
+ truncation_strategy: S.optionalWith<typeof CreateRunRequestTruncationStrategy, {
7225
9114
  nullable: true;
7226
9115
  }>;
7227
- tool_choice: S.optionalWith<typeof AssistantsApiToolChoiceOption, {
9116
+ tool_choice: S.optionalWith<typeof CreateRunRequestToolChoice, {
7228
9117
  nullable: true;
7229
9118
  }>;
7230
9119
  parallel_tool_calls: S.optionalWith<typeof ParallelToolCalls, {
@@ -7275,10 +9164,10 @@ declare const CreateRunRequest_base: S.Class<CreateRunRequest, {
7275
9164
  max_completion_tokens: S.optionalWith<S.filter<typeof S.Int>, {
7276
9165
  nullable: true;
7277
9166
  }>;
7278
- truncation_strategy: S.optionalWith<typeof TruncationObject, {
9167
+ truncation_strategy: S.optionalWith<typeof CreateRunRequestTruncationStrategy, {
7279
9168
  nullable: true;
7280
9169
  }>;
7281
- tool_choice: S.optionalWith<typeof AssistantsApiToolChoiceOption, {
9170
+ tool_choice: S.optionalWith<typeof CreateRunRequestToolChoice, {
7282
9171
  nullable: true;
7283
9172
  }>;
7284
9173
  parallel_tool_calls: S.optionalWith<typeof ParallelToolCalls, {
@@ -7512,11 +9401,8 @@ export declare class RunStepDetailsToolCallsCodeObject extends RunStepDetailsToo
7512
9401
  declare const RunStepDetailsToolCallsFileSearchObjectType_base: S.Literal<["file_search"]>;
7513
9402
  export declare class RunStepDetailsToolCallsFileSearchObjectType extends RunStepDetailsToolCallsFileSearchObjectType_base {
7514
9403
  }
7515
- declare const RunStepDetailsToolCallsFileSearchRankingOptionsObjectRanker_base: S.Literal<["default_2024_08_21"]>;
7516
- export declare class RunStepDetailsToolCallsFileSearchRankingOptionsObjectRanker extends RunStepDetailsToolCallsFileSearchRankingOptionsObjectRanker_base {
7517
- }
7518
9404
  declare const RunStepDetailsToolCallsFileSearchRankingOptionsObject_base: S.Struct<{
7519
- ranker: typeof RunStepDetailsToolCallsFileSearchRankingOptionsObjectRanker;
9405
+ ranker: typeof FileSearchRanker;
7520
9406
  score_threshold: S.filter<S.filter<typeof S.Number>>;
7521
9407
  }>;
7522
9408
  export declare class RunStepDetailsToolCallsFileSearchRankingOptionsObject extends RunStepDetailsToolCallsFileSearchRankingOptionsObject_base {
@@ -7729,6 +9615,32 @@ export declare class UploadStatus extends UploadStatus_base {
7729
9615
  declare const UploadObject_base: S.Literal<["upload"]>;
7730
9616
  export declare class UploadObject extends UploadObject_base {
7731
9617
  }
9618
+ declare const UploadFileEnumObject_base: S.Literal<["file"]>;
9619
+ export declare class UploadFileEnumObject extends UploadFileEnumObject_base {
9620
+ }
9621
+ declare const UploadFileEnumPurpose_base: S.Literal<["assistants", "assistants_output", "batch", "batch_output", "fine-tune", "fine-tune-results", "vision"]>;
9622
+ export declare class UploadFileEnumPurpose extends UploadFileEnumPurpose_base {
9623
+ }
9624
+ declare const UploadFileEnumStatus_base: S.Literal<["uploaded", "processed", "error"]>;
9625
+ export declare class UploadFileEnumStatus extends UploadFileEnumStatus_base {
9626
+ }
9627
+ declare const UploadFile_base: S.Struct<{
9628
+ id: typeof S.String;
9629
+ bytes: typeof S.Int;
9630
+ created_at: typeof S.Int;
9631
+ expires_at: S.optionalWith<typeof S.Int, {
9632
+ nullable: true;
9633
+ }>;
9634
+ filename: typeof S.String;
9635
+ object: S.Literal<["file"]>;
9636
+ purpose: S.Literal<["assistants", "assistants_output", "batch", "batch_output", "fine-tune", "fine-tune-results", "vision"]>;
9637
+ status: S.Literal<["uploaded", "processed", "error"]>;
9638
+ status_details: S.optionalWith<typeof S.String, {
9639
+ nullable: true;
9640
+ }>;
9641
+ }>;
9642
+ export declare class UploadFile extends UploadFile_base {
9643
+ }
7732
9644
  declare const Upload_base: S.Class<Upload, {
7733
9645
  id: typeof S.String;
7734
9646
  created_at: typeof S.Int;
@@ -7740,7 +9652,7 @@ declare const Upload_base: S.Class<Upload, {
7740
9652
  object: S.optionalWith<typeof UploadObject, {
7741
9653
  nullable: true;
7742
9654
  }>;
7743
- file: S.optionalWith<typeof OpenAIFile, {
9655
+ file: S.optionalWith<typeof UploadFile, {
7744
9656
  nullable: true;
7745
9657
  }>;
7746
9658
  }, S.Struct.Encoded<{
@@ -7754,7 +9666,7 @@ declare const Upload_base: S.Class<Upload, {
7754
9666
  object: S.optionalWith<typeof UploadObject, {
7755
9667
  nullable: true;
7756
9668
  }>;
7757
- file: S.optionalWith<typeof OpenAIFile, {
9669
+ file: S.optionalWith<typeof UploadFile, {
7758
9670
  nullable: true;
7759
9671
  }>;
7760
9672
  }>, never, {
@@ -7769,19 +9681,20 @@ declare const Upload_base: S.Class<Upload, {
7769
9681
  readonly expires_at: number;
7770
9682
  } & {
7771
9683
  readonly bytes: number;
7772
- } & {
7773
- readonly purpose: string;
7774
9684
  } & {
7775
9685
  readonly file?: {
7776
9686
  readonly object: "file";
7777
9687
  readonly id: string;
7778
9688
  readonly created_at: number;
7779
9689
  readonly status: "uploaded" | "processed" | "error";
9690
+ readonly expires_at?: number | undefined;
7780
9691
  readonly bytes: number;
7781
9692
  readonly purpose: "batch" | "assistants" | "assistants_output" | "batch_output" | "fine-tune" | "fine-tune-results" | "vision";
7782
9693
  readonly filename: string;
7783
9694
  readonly status_details?: string | undefined;
7784
9695
  } | undefined;
9696
+ } & {
9697
+ readonly purpose: string;
7785
9698
  } & {
7786
9699
  readonly filename: string;
7787
9700
  }, {}, {}>;
@@ -8012,11 +9925,20 @@ declare const CreateVectorStoreRequest_base: S.Class<CreateVectorStoreRequest, {
8012
9925
  }, {}, {}>;
8013
9926
  export declare class CreateVectorStoreRequest extends CreateVectorStoreRequest_base {
8014
9927
  }
9928
+ declare const UpdateVectorStoreRequestExpiresAfterEnumAnchor_base: S.Literal<["last_active_at"]>;
9929
+ export declare class UpdateVectorStoreRequestExpiresAfterEnumAnchor extends UpdateVectorStoreRequestExpiresAfterEnumAnchor_base {
9930
+ }
9931
+ declare const UpdateVectorStoreRequestExpiresAfter_base: S.Struct<{
9932
+ anchor: S.Literal<["last_active_at"]>;
9933
+ days: S.filter<S.filter<typeof S.Int>>;
9934
+ }>;
9935
+ export declare class UpdateVectorStoreRequestExpiresAfter extends UpdateVectorStoreRequestExpiresAfter_base {
9936
+ }
8015
9937
  declare const UpdateVectorStoreRequest_base: S.Class<UpdateVectorStoreRequest, {
8016
9938
  name: S.optionalWith<typeof S.String, {
8017
9939
  nullable: true;
8018
9940
  }>;
8019
- expires_after: S.optionalWith<typeof VectorStoreExpirationAfter, {
9941
+ expires_after: S.optionalWith<typeof UpdateVectorStoreRequestExpiresAfter, {
8020
9942
  nullable: true;
8021
9943
  }>;
8022
9944
  metadata: S.optionalWith<typeof Metadata, {
@@ -8026,7 +9948,7 @@ declare const UpdateVectorStoreRequest_base: S.Class<UpdateVectorStoreRequest, {
8026
9948
  name: S.optionalWith<typeof S.String, {
8027
9949
  nullable: true;
8028
9950
  }>;
8029
- expires_after: S.optionalWith<typeof VectorStoreExpirationAfter, {
9951
+ expires_after: S.optionalWith<typeof UpdateVectorStoreRequestExpiresAfter, {
8030
9952
  nullable: true;
8031
9953
  }>;
8032
9954
  metadata: S.optionalWith<typeof Metadata, {
@@ -8074,17 +9996,27 @@ declare const CreateVectorStoreFileBatchRequest_base: S.Class<CreateVectorStoreF
8074
9996
  chunking_strategy: S.optionalWith<typeof ChunkingStrategyRequestParam, {
8075
9997
  nullable: true;
8076
9998
  }>;
9999
+ attributes: S.optionalWith<typeof VectorStoreFileAttributes, {
10000
+ nullable: true;
10001
+ }>;
8077
10002
  }, S.Struct.Encoded<{
8078
10003
  file_ids: S.filter<S.filter<S.Array$<typeof S.String>>>;
8079
10004
  chunking_strategy: S.optionalWith<typeof ChunkingStrategyRequestParam, {
8080
10005
  nullable: true;
8081
10006
  }>;
10007
+ attributes: S.optionalWith<typeof VectorStoreFileAttributes, {
10008
+ nullable: true;
10009
+ }>;
8082
10010
  }>, never, {
8083
10011
  readonly file_ids: readonly string[];
8084
10012
  } & {
8085
10013
  readonly chunking_strategy?: {
8086
10014
  readonly [x: string]: unknown;
8087
10015
  } | undefined;
10016
+ } & {
10017
+ readonly attributes?: {
10018
+ readonly [x: string]: unknown;
10019
+ } | undefined;
8088
10020
  }, {}, {}>;
8089
10021
  export declare class CreateVectorStoreFileBatchRequest extends CreateVectorStoreFileBatchRequest_base {
8090
10022
  }
@@ -8208,6 +10140,9 @@ declare const VectorStoreFileObject_base: S.Struct<{
8208
10140
  chunking_strategy: S.optionalWith<S.Record$<typeof S.String, typeof S.Unknown>, {
8209
10141
  nullable: true;
8210
10142
  }>;
10143
+ attributes: S.optionalWith<typeof VectorStoreFileAttributes, {
10144
+ nullable: true;
10145
+ }>;
8211
10146
  }>;
8212
10147
  export declare class VectorStoreFileObject extends VectorStoreFileObject_base {
8213
10148
  }
@@ -8241,6 +10176,9 @@ declare const ListVectorStoreFilesResponse_base: S.Class<ListVectorStoreFilesRes
8241
10176
  } | undefined;
8242
10177
  readonly status: "failed" | "in_progress" | "completed" | "cancelled";
8243
10178
  readonly usage_bytes: number;
10179
+ readonly attributes?: {
10180
+ readonly [x: string]: unknown;
10181
+ } | undefined;
8244
10182
  readonly last_error: {
8245
10183
  readonly code: "server_error" | "unsupported_file" | "invalid_file";
8246
10184
  readonly message: string;
@@ -8282,20 +10220,41 @@ declare const CreateVectorStoreFileRequest_base: S.Class<CreateVectorStoreFileRe
8282
10220
  chunking_strategy: S.optionalWith<typeof ChunkingStrategyRequestParam, {
8283
10221
  nullable: true;
8284
10222
  }>;
10223
+ attributes: S.optionalWith<typeof VectorStoreFileAttributes, {
10224
+ nullable: true;
10225
+ }>;
8285
10226
  }, S.Struct.Encoded<{
8286
10227
  file_id: typeof S.String;
8287
10228
  chunking_strategy: S.optionalWith<typeof ChunkingStrategyRequestParam, {
8288
10229
  nullable: true;
8289
10230
  }>;
10231
+ attributes: S.optionalWith<typeof VectorStoreFileAttributes, {
10232
+ nullable: true;
10233
+ }>;
8290
10234
  }>, never, {
8291
10235
  readonly chunking_strategy?: {
8292
10236
  readonly [x: string]: unknown;
8293
10237
  } | undefined;
8294
10238
  } & {
8295
10239
  readonly file_id: string;
10240
+ } & {
10241
+ readonly attributes?: {
10242
+ readonly [x: string]: unknown;
10243
+ } | undefined;
8296
10244
  }, {}, {}>;
8297
10245
  export declare class CreateVectorStoreFileRequest extends CreateVectorStoreFileRequest_base {
8298
10246
  }
10247
+ declare const UpdateVectorStoreFileAttributesRequest_base: S.Class<UpdateVectorStoreFileAttributesRequest, {
10248
+ attributes: S.NullOr<typeof VectorStoreFileAttributes>;
10249
+ }, S.Struct.Encoded<{
10250
+ attributes: S.NullOr<typeof VectorStoreFileAttributes>;
10251
+ }>, never, {
10252
+ readonly attributes: {
10253
+ readonly [x: string]: unknown;
10254
+ } | null;
10255
+ }, {}, {}>;
10256
+ export declare class UpdateVectorStoreFileAttributesRequest extends UpdateVectorStoreFileAttributesRequest_base {
10257
+ }
8299
10258
  declare const DeleteVectorStoreFileResponseObject_base: S.Literal<["vector_store.file.deleted"]>;
8300
10259
  export declare class DeleteVectorStoreFileResponseObject extends DeleteVectorStoreFileResponseObject_base {
8301
10260
  }
@@ -8316,6 +10275,184 @@ declare const DeleteVectorStoreFileResponse_base: S.Class<DeleteVectorStoreFileR
8316
10275
  }, {}, {}>;
8317
10276
  export declare class DeleteVectorStoreFileResponse extends DeleteVectorStoreFileResponse_base {
8318
10277
  }
10278
+ declare const VectorStoreFileContentResponseObject_base: S.Literal<["vector_store.file_content.page"]>;
10279
+ export declare class VectorStoreFileContentResponseObject extends VectorStoreFileContentResponseObject_base {
10280
+ }
10281
+ declare const VectorStoreFileContentResponse_base: S.Class<VectorStoreFileContentResponse, {
10282
+ object: typeof VectorStoreFileContentResponseObject;
10283
+ data: S.Array$<S.Struct<{
10284
+ type: S.optionalWith<typeof S.String, {
10285
+ nullable: true;
10286
+ }>;
10287
+ text: S.optionalWith<typeof S.String, {
10288
+ nullable: true;
10289
+ }>;
10290
+ }>>;
10291
+ has_more: typeof S.Boolean;
10292
+ next_page: S.NullOr<typeof S.String>;
10293
+ }, S.Struct.Encoded<{
10294
+ object: typeof VectorStoreFileContentResponseObject;
10295
+ data: S.Array$<S.Struct<{
10296
+ type: S.optionalWith<typeof S.String, {
10297
+ nullable: true;
10298
+ }>;
10299
+ text: S.optionalWith<typeof S.String, {
10300
+ nullable: true;
10301
+ }>;
10302
+ }>>;
10303
+ has_more: typeof S.Boolean;
10304
+ next_page: S.NullOr<typeof S.String>;
10305
+ }>, never, {
10306
+ readonly object: "vector_store.file_content.page";
10307
+ } & {
10308
+ readonly has_more: boolean;
10309
+ } & {
10310
+ readonly data: readonly {
10311
+ readonly type?: string | undefined;
10312
+ readonly text?: string | undefined;
10313
+ }[];
10314
+ } & {
10315
+ readonly next_page: string | null;
10316
+ }, {}, {}>;
10317
+ export declare class VectorStoreFileContentResponse extends VectorStoreFileContentResponse_base {
10318
+ }
10319
+ declare const VectorStoreSearchRequestRankingOptionsRanker_base: S.Literal<["auto", "default-2024-11-15"]>;
10320
+ export declare class VectorStoreSearchRequestRankingOptionsRanker extends VectorStoreSearchRequestRankingOptionsRanker_base {
10321
+ }
10322
+ declare const VectorStoreSearchRequest_base: S.Class<VectorStoreSearchRequest, {
10323
+ query: S.Union<[typeof S.String, S.Array$<typeof S.String>]>;
10324
+ rewrite_query: S.optionalWith<typeof S.Boolean, {
10325
+ nullable: true;
10326
+ default: () => false;
10327
+ }>;
10328
+ max_num_results: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
10329
+ nullable: true;
10330
+ default: () => 10;
10331
+ }>;
10332
+ filters: S.optionalWith<S.Union<[typeof ComparisonFilter, typeof CompoundFilter]>, {
10333
+ nullable: true;
10334
+ }>;
10335
+ ranking_options: S.optionalWith<S.Struct<{
10336
+ ranker: S.optionalWith<typeof VectorStoreSearchRequestRankingOptionsRanker, {
10337
+ nullable: true;
10338
+ default: () => "auto";
10339
+ }>;
10340
+ score_threshold: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
10341
+ nullable: true;
10342
+ default: () => 0;
10343
+ }>;
10344
+ }>, {
10345
+ nullable: true;
10346
+ }>;
10347
+ }, S.Struct.Encoded<{
10348
+ query: S.Union<[typeof S.String, S.Array$<typeof S.String>]>;
10349
+ rewrite_query: S.optionalWith<typeof S.Boolean, {
10350
+ nullable: true;
10351
+ default: () => false;
10352
+ }>;
10353
+ max_num_results: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
10354
+ nullable: true;
10355
+ default: () => 10;
10356
+ }>;
10357
+ filters: S.optionalWith<S.Union<[typeof ComparisonFilter, typeof CompoundFilter]>, {
10358
+ nullable: true;
10359
+ }>;
10360
+ ranking_options: S.optionalWith<S.Struct<{
10361
+ ranker: S.optionalWith<typeof VectorStoreSearchRequestRankingOptionsRanker, {
10362
+ nullable: true;
10363
+ default: () => "auto";
10364
+ }>;
10365
+ score_threshold: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
10366
+ nullable: true;
10367
+ default: () => 0;
10368
+ }>;
10369
+ }>, {
10370
+ nullable: true;
10371
+ }>;
10372
+ }>, never, {
10373
+ readonly max_num_results?: number | undefined;
10374
+ } & {
10375
+ readonly ranking_options?: {
10376
+ readonly ranker: "auto" | "default-2024-11-15";
10377
+ readonly score_threshold: number;
10378
+ } | undefined;
10379
+ } & {
10380
+ readonly filters?: {
10381
+ readonly type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
10382
+ readonly key: string;
10383
+ readonly value: string | number | boolean;
10384
+ } | {
10385
+ readonly type: "and" | "or";
10386
+ readonly filters: readonly {
10387
+ readonly type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
10388
+ readonly key: string;
10389
+ readonly value: string | number | boolean;
10390
+ }[];
10391
+ } | undefined;
10392
+ } & {
10393
+ readonly query: string | readonly string[];
10394
+ } & {
10395
+ readonly rewrite_query?: boolean | undefined;
10396
+ }, {}, {}>;
10397
+ export declare class VectorStoreSearchRequest extends VectorStoreSearchRequest_base {
10398
+ }
10399
+ declare const VectorStoreSearchResultsPageObject_base: S.Literal<["vector_store.search_results.page"]>;
10400
+ export declare class VectorStoreSearchResultsPageObject extends VectorStoreSearchResultsPageObject_base {
10401
+ }
10402
+ declare const VectorStoreSearchResultContentObjectType_base: S.Literal<["text"]>;
10403
+ export declare class VectorStoreSearchResultContentObjectType extends VectorStoreSearchResultContentObjectType_base {
10404
+ }
10405
+ declare const VectorStoreSearchResultContentObject_base: S.Struct<{
10406
+ type: typeof VectorStoreSearchResultContentObjectType;
10407
+ text: typeof S.String;
10408
+ }>;
10409
+ export declare class VectorStoreSearchResultContentObject extends VectorStoreSearchResultContentObject_base {
10410
+ }
10411
+ declare const VectorStoreSearchResultItem_base: S.Struct<{
10412
+ file_id: typeof S.String;
10413
+ filename: typeof S.String;
10414
+ score: S.filter<S.filter<typeof S.Number>>;
10415
+ attributes: S.NullOr<typeof VectorStoreFileAttributes>;
10416
+ content: S.Array$<typeof VectorStoreSearchResultContentObject>;
10417
+ }>;
10418
+ export declare class VectorStoreSearchResultItem extends VectorStoreSearchResultItem_base {
10419
+ }
10420
+ declare const VectorStoreSearchResultsPage_base: S.Class<VectorStoreSearchResultsPage, {
10421
+ object: typeof VectorStoreSearchResultsPageObject;
10422
+ search_query: S.Array$<typeof S.String>;
10423
+ data: S.Array$<typeof VectorStoreSearchResultItem>;
10424
+ has_more: typeof S.Boolean;
10425
+ next_page: S.NullOr<typeof S.String>;
10426
+ }, S.Struct.Encoded<{
10427
+ object: typeof VectorStoreSearchResultsPageObject;
10428
+ search_query: S.Array$<typeof S.String>;
10429
+ data: S.Array$<typeof VectorStoreSearchResultItem>;
10430
+ has_more: typeof S.Boolean;
10431
+ next_page: S.NullOr<typeof S.String>;
10432
+ }>, never, {
10433
+ readonly object: "vector_store.search_results.page";
10434
+ } & {
10435
+ readonly has_more: boolean;
10436
+ } & {
10437
+ readonly data: readonly {
10438
+ readonly content: readonly {
10439
+ readonly type: "text";
10440
+ readonly text: string;
10441
+ }[];
10442
+ readonly file_id: string;
10443
+ readonly filename: string;
10444
+ readonly attributes: {
10445
+ readonly [x: string]: unknown;
10446
+ } | null;
10447
+ readonly score: number;
10448
+ }[];
10449
+ } & {
10450
+ readonly next_page: string | null;
10451
+ } & {
10452
+ readonly search_query: readonly string[];
10453
+ }, {}, {}>;
10454
+ export declare class VectorStoreSearchResultsPage extends VectorStoreSearchResultsPage_base {
10455
+ }
8319
10456
  export declare const make: (httpClient: HttpClient.HttpClient, options?: {
8320
10457
  readonly transformClient?: ((client: HttpClient.HttpClient) => Effect.Effect<HttpClient.HttpClient>) | undefined;
8321
10458
  }) => Client;
@@ -8332,7 +10469,12 @@ export interface Client {
8332
10469
  readonly "createBatch": (options: typeof CreateBatchRequest.Encoded) => Effect.Effect<typeof Batch.Type, HttpClientError.HttpClientError | ParseError>;
8333
10470
  readonly "retrieveBatch": (batchId: string) => Effect.Effect<typeof Batch.Type, HttpClientError.HttpClientError | ParseError>;
8334
10471
  readonly "cancelBatch": (batchId: string) => Effect.Effect<typeof Batch.Type, HttpClientError.HttpClientError | ParseError>;
10472
+ readonly "listChatCompletions": (options: typeof ListChatCompletionsParams.Encoded) => Effect.Effect<typeof ChatCompletionList.Type, HttpClientError.HttpClientError | ParseError>;
8335
10473
  readonly "createChatCompletion": (options: typeof CreateChatCompletionRequest.Encoded) => Effect.Effect<typeof CreateChatCompletionResponse.Type, HttpClientError.HttpClientError | ParseError>;
10474
+ readonly "getChatCompletion": (completionId: string) => Effect.Effect<typeof CreateChatCompletionResponse.Type, HttpClientError.HttpClientError | ParseError>;
10475
+ readonly "updateChatCompletion": (completionId: string, options: typeof UpdateChatCompletionRequest.Encoded) => Effect.Effect<typeof CreateChatCompletionResponse.Type, HttpClientError.HttpClientError | ParseError>;
10476
+ readonly "deleteChatCompletion": (completionId: string) => Effect.Effect<typeof ChatCompletionDeleted.Type, HttpClientError.HttpClientError | ParseError>;
10477
+ readonly "getChatCompletionMessages": (completionId: string, options: typeof GetChatCompletionMessagesParams.Encoded) => Effect.Effect<typeof ChatCompletionMessageList.Type, HttpClientError.HttpClientError | ParseError>;
8336
10478
  readonly "createCompletion": (options: typeof CreateCompletionRequest.Encoded) => Effect.Effect<typeof CreateCompletionResponse.Type, HttpClientError.HttpClientError | ParseError>;
8337
10479
  readonly "createEmbedding": (options: typeof CreateEmbeddingRequest.Encoded) => Effect.Effect<typeof CreateEmbeddingResponse.Type, HttpClientError.HttpClientError | ParseError>;
8338
10480
  readonly "listFiles": (options: typeof ListFilesParams.Encoded) => Effect.Effect<typeof ListFilesResponse.Type, HttpClientError.HttpClientError | ParseError>;
@@ -8395,6 +10537,10 @@ export interface Client {
8395
10537
  readonly "modifyUser": (userId: string, options: typeof UserRoleUpdateRequest.Encoded) => Effect.Effect<typeof User.Type, HttpClientError.HttpClientError | ParseError>;
8396
10538
  readonly "deleteUser": (userId: string) => Effect.Effect<typeof UserDeleteResponse.Type, HttpClientError.HttpClientError | ParseError>;
8397
10539
  readonly "createRealtimeSession": (options: typeof RealtimeSessionCreateRequest.Encoded) => Effect.Effect<typeof RealtimeSessionCreateResponse.Type, HttpClientError.HttpClientError | ParseError>;
10540
+ readonly "createResponse": (options: typeof CreateResponse.Encoded) => Effect.Effect<typeof Response.Type, HttpClientError.HttpClientError | ParseError>;
10541
+ readonly "getResponse": (responseId: string, options: typeof GetResponseParams.Encoded) => Effect.Effect<typeof Response.Type, HttpClientError.HttpClientError | ParseError>;
10542
+ readonly "deleteResponse": (responseId: string) => Effect.Effect<void, HttpClientError.HttpClientError | ParseError | typeof Error.Type>;
10543
+ readonly "listInputItems": (responseId: string, options: typeof ListInputItemsParams.Encoded) => Effect.Effect<typeof ResponseItemList.Type, HttpClientError.HttpClientError | ParseError>;
8398
10544
  readonly "createThread": (options: typeof CreateThreadRequest.Encoded) => Effect.Effect<typeof ThreadObject.Type, HttpClientError.HttpClientError | ParseError>;
8399
10545
  readonly "createThreadAndRun": (options: typeof CreateThreadAndRunRequest.Encoded) => Effect.Effect<typeof RunObject.Type, HttpClientError.HttpClientError | ParseError>;
8400
10546
  readonly "getThread": (threadId: string) => Effect.Effect<typeof ThreadObject.Type, HttpClientError.HttpClientError | ParseError>;
@@ -8432,7 +10578,10 @@ export interface Client {
8432
10578
  readonly "listVectorStoreFiles": (vectorStoreId: string, options: typeof ListVectorStoreFilesParams.Encoded) => Effect.Effect<typeof ListVectorStoreFilesResponse.Type, HttpClientError.HttpClientError | ParseError>;
8433
10579
  readonly "createVectorStoreFile": (vectorStoreId: string, options: typeof CreateVectorStoreFileRequest.Encoded) => Effect.Effect<typeof VectorStoreFileObject.Type, HttpClientError.HttpClientError | ParseError>;
8434
10580
  readonly "getVectorStoreFile": (vectorStoreId: string, fileId: string) => Effect.Effect<typeof VectorStoreFileObject.Type, HttpClientError.HttpClientError | ParseError>;
10581
+ readonly "updateVectorStoreFileAttributes": (vectorStoreId: string, fileId: string, options: typeof UpdateVectorStoreFileAttributesRequest.Encoded) => Effect.Effect<typeof VectorStoreFileObject.Type, HttpClientError.HttpClientError | ParseError>;
8435
10582
  readonly "deleteVectorStoreFile": (vectorStoreId: string, fileId: string) => Effect.Effect<typeof DeleteVectorStoreFileResponse.Type, HttpClientError.HttpClientError | ParseError>;
10583
+ readonly "retrieveVectorStoreFileContent": (vectorStoreId: string, fileId: string) => Effect.Effect<typeof VectorStoreFileContentResponse.Type, HttpClientError.HttpClientError | ParseError>;
10584
+ readonly "searchVectorStore": (vectorStoreId: string, options: typeof VectorStoreSearchRequest.Encoded) => Effect.Effect<typeof VectorStoreSearchResultsPage.Type, HttpClientError.HttpClientError | ParseError>;
8436
10585
  }
8437
10586
  export {};
8438
10587
  //# sourceMappingURL=Generated.d.ts.map