@perplexity-ai/perplexity_ai 0.38.6 → 0.38.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/generated/api.d.ts +220 -12
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js.map +1 -1
- package/dist/resources/client.d.ts +3 -0
- package/dist/resources/client.d.ts.map +1 -1
- package/dist/resources/index.d.ts +1 -1
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/responses/index.d.ts +1 -1
- package/dist/resources/responses/index.d.ts.map +1 -1
- package/dist/resources/responses/index.js.map +1 -1
- package/dist/resources/responses/responses.d.ts +3 -0
- package/dist/resources/responses/responses.d.ts.map +1 -1
- package/dist/resources/shared.d.ts +3 -0
- package/dist/resources/shared.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/generated/api.ts +220 -12
- package/src/resources/client.ts +3 -0
- package/src/resources/index.ts +1 -1
- package/src/resources/responses/index.ts +1 -1
- package/src/resources/responses/responses.ts +3 -0
- package/src/resources/shared.ts +3 -0
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.38.8](https://github.com/perplexityai/perplexity-node/compare/v0.38.7...v0.38.8) (2026-10-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Chores
|
|
7
|
+
|
|
8
|
+
* sync generated API SDKs ([#101](https://github.com/perplexityai/perplexity-node/issues/101)) ([45faff8](https://github.com/perplexityai/perplexity-node/commit/45faff8f308c7b6465c09fc569b1c680fca33532))
|
|
9
|
+
|
|
10
|
+
## [0.38.7](https://github.com/perplexityai/perplexity-node/compare/v0.38.6...v0.38.7) (2026-10-02)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Chores
|
|
14
|
+
|
|
15
|
+
* sync generated API SDKs ([#99](https://github.com/perplexityai/perplexity-node/issues/99)) ([1fcad78](https://github.com/perplexityai/perplexity-node/commit/1fcad78c214a4e77d621dfcc6d98a1b9d9130825))
|
|
16
|
+
|
|
3
17
|
## [0.38.6](https://github.com/perplexityai/perplexity-node/compare/v0.38.5...v0.38.6) (2026-09-25)
|
|
4
18
|
|
|
5
19
|
|
package/dist/generated/api.d.ts
CHANGED
|
@@ -234,6 +234,22 @@ export type ApiSearchResponseOutput = {
|
|
|
234
234
|
results: ApiSearchPageOutput[];
|
|
235
235
|
server_time?: string | null;
|
|
236
236
|
};
|
|
237
|
+
export type ApprovalFilterInput = {
|
|
238
|
+
read_only?: boolean | null;
|
|
239
|
+
tool_names?: string[] | null;
|
|
240
|
+
};
|
|
241
|
+
export type ApprovalFilterOutput = {
|
|
242
|
+
read_only?: boolean | null;
|
|
243
|
+
tool_names?: string[] | null;
|
|
244
|
+
};
|
|
245
|
+
export type ApprovalFiltersInput = {
|
|
246
|
+
always?: (ApprovalFilterInput) | null;
|
|
247
|
+
never?: (ApprovalFilterInput) | null;
|
|
248
|
+
};
|
|
249
|
+
export type ApprovalFiltersOutput = {
|
|
250
|
+
always?: (ApprovalFilterOutput) | null;
|
|
251
|
+
never?: (ApprovalFilterOutput) | null;
|
|
252
|
+
};
|
|
237
253
|
export type AsyncApiChatCompletionsRequestInput = {
|
|
238
254
|
idempotency_key?: string | null;
|
|
239
255
|
request: ApiChatCompletionsRequestInput;
|
|
@@ -415,6 +431,7 @@ export type CompletionResponseTypeOutput = "message" | "info" | "end_of_stream";
|
|
|
415
431
|
export type ConnectorToolInput = {
|
|
416
432
|
allowed_tools?: string[];
|
|
417
433
|
id: string;
|
|
434
|
+
require_approval?: RequireApprovalInput;
|
|
418
435
|
server_description?: string;
|
|
419
436
|
server_label: string;
|
|
420
437
|
type: "connector";
|
|
@@ -422,6 +439,7 @@ export type ConnectorToolInput = {
|
|
|
422
439
|
export type ConnectorToolOutput = {
|
|
423
440
|
allowed_tools?: string[];
|
|
424
441
|
id: string;
|
|
442
|
+
require_approval?: RequireApprovalOutput;
|
|
425
443
|
server_description?: string;
|
|
426
444
|
server_label: string;
|
|
427
445
|
type: "connector";
|
|
@@ -582,8 +600,8 @@ export type ErrorInfoOutput = {
|
|
|
582
600
|
message: string;
|
|
583
601
|
type?: string;
|
|
584
602
|
};
|
|
585
|
-
export type EventTypeInput = "response.created" | "response.in_progress" | "response.completed" | "response.failed" | "response.output_item.added" | "response.output_item.done" | "response.output_text.delta" | "response.output_text.done" | "response.reasoning.started" | "response.reasoning.search_queries" | "response.reasoning.search_results" | "response.reasoning.fetch_url_queries" | "response.reasoning.fetch_url_results" | "response.reasoning.stopped" | "response.skill.loaded";
|
|
586
|
-
export type EventTypeOutput = "response.created" | "response.in_progress" | "response.completed" | "response.failed" | "response.output_item.added" | "response.output_item.done" | "response.output_text.delta" | "response.output_text.done" | "response.reasoning.started" | "response.reasoning.search_queries" | "response.reasoning.search_results" | "response.reasoning.fetch_url_queries" | "response.reasoning.fetch_url_results" | "response.reasoning.stopped" | "response.skill.loaded";
|
|
603
|
+
export type EventTypeInput = "response.created" | "response.in_progress" | "response.completed" | "response.failed" | "response.output_item.added" | "response.output_item.done" | "response.output_text.delta" | "response.output_text.done" | "response.reasoning.started" | "response.reasoning.search_queries" | "response.reasoning.search_results" | "response.reasoning.image_search_queries" | "response.reasoning.image_search_results" | "response.reasoning.fetch_url_queries" | "response.reasoning.fetch_url_results" | "response.reasoning.stopped" | "response.skill.loaded";
|
|
604
|
+
export type EventTypeOutput = "response.created" | "response.in_progress" | "response.completed" | "response.failed" | "response.output_item.added" | "response.output_item.done" | "response.output_text.delta" | "response.output_text.done" | "response.reasoning.started" | "response.reasoning.search_queries" | "response.reasoning.search_results" | "response.reasoning.image_search_queries" | "response.reasoning.image_search_results" | "response.reasoning.fetch_url_queries" | "response.reasoning.fetch_url_results" | "response.reasoning.stopped" | "response.skill.loaded";
|
|
587
605
|
export type ExecutePythonStepDetailsInput = {
|
|
588
606
|
code: string;
|
|
589
607
|
result: string;
|
|
@@ -744,6 +762,82 @@ export type HTTPValidationErrorInput = {
|
|
|
744
762
|
export type HTTPValidationErrorOutput = {
|
|
745
763
|
detail?: ValidationErrorOutput[];
|
|
746
764
|
};
|
|
765
|
+
export type ImageResultInput = {
|
|
766
|
+
height: number;
|
|
767
|
+
image_url: string;
|
|
768
|
+
origin_url: string;
|
|
769
|
+
title?: string;
|
|
770
|
+
width: number;
|
|
771
|
+
};
|
|
772
|
+
export type ImageResultOutput = {
|
|
773
|
+
height: number;
|
|
774
|
+
image_url: string;
|
|
775
|
+
origin_url: string;
|
|
776
|
+
title?: string;
|
|
777
|
+
width: number;
|
|
778
|
+
};
|
|
779
|
+
export type ImageSearchFiltersInput = {
|
|
780
|
+
domain_filter?: string[];
|
|
781
|
+
format_filter?: ("bmp" | "gif" | "jpeg" | "png" | "webp" | "svg")[];
|
|
782
|
+
safe_search?: boolean;
|
|
783
|
+
};
|
|
784
|
+
export type ImageSearchFiltersOutput = {
|
|
785
|
+
domain_filter?: string[];
|
|
786
|
+
format_filter?: ("bmp" | "gif" | "jpeg" | "png" | "webp" | "svg")[];
|
|
787
|
+
safe_search?: boolean;
|
|
788
|
+
};
|
|
789
|
+
export type ImageSearchQueriesEventInput = {
|
|
790
|
+
call_id: string;
|
|
791
|
+
queries: string[];
|
|
792
|
+
sequence_number: number;
|
|
793
|
+
thought?: string;
|
|
794
|
+
type: "response.reasoning.image_search_queries";
|
|
795
|
+
};
|
|
796
|
+
export type ImageSearchQueriesEventOutput = {
|
|
797
|
+
call_id: string;
|
|
798
|
+
queries: string[];
|
|
799
|
+
sequence_number: number;
|
|
800
|
+
thought?: string;
|
|
801
|
+
type: "response.reasoning.image_search_queries";
|
|
802
|
+
};
|
|
803
|
+
export type ImageSearchResultsEventInput = {
|
|
804
|
+
call_id: string;
|
|
805
|
+
results: ImageResultInput[];
|
|
806
|
+
sequence_number: number;
|
|
807
|
+
thought?: string;
|
|
808
|
+
type: "response.reasoning.image_search_results";
|
|
809
|
+
usage?: ResponsesUsageInput;
|
|
810
|
+
};
|
|
811
|
+
export type ImageSearchResultsEventOutput = {
|
|
812
|
+
call_id: string;
|
|
813
|
+
results: ImageResultOutput[];
|
|
814
|
+
sequence_number: number;
|
|
815
|
+
thought?: string;
|
|
816
|
+
type: "response.reasoning.image_search_results";
|
|
817
|
+
usage?: ResponsesUsageOutput;
|
|
818
|
+
};
|
|
819
|
+
export type ImageSearchResultsOutputItemInput = {
|
|
820
|
+
error?: string;
|
|
821
|
+
queries?: string[];
|
|
822
|
+
results: ImageResultInput[];
|
|
823
|
+
type: "image_search_results";
|
|
824
|
+
};
|
|
825
|
+
export type ImageSearchResultsOutputItemOutput = {
|
|
826
|
+
error?: string;
|
|
827
|
+
queries?: string[];
|
|
828
|
+
results: ImageResultOutput[];
|
|
829
|
+
type: "image_search_results";
|
|
830
|
+
};
|
|
831
|
+
export type ImageSearchToolInput = {
|
|
832
|
+
filters?: ImageSearchFiltersInput;
|
|
833
|
+
max_results?: number;
|
|
834
|
+
type: "image_search";
|
|
835
|
+
};
|
|
836
|
+
export type ImageSearchToolOutput = {
|
|
837
|
+
filters?: ImageSearchFiltersOutput;
|
|
838
|
+
max_results?: number;
|
|
839
|
+
type: "image_search";
|
|
840
|
+
};
|
|
747
841
|
export type InlineSkillInput = {
|
|
748
842
|
description: string;
|
|
749
843
|
instructions: string;
|
|
@@ -761,17 +855,23 @@ export type InputOutput = string | InputItemOutput[];
|
|
|
761
855
|
export type InputContentInput = string | InputContentPartInput[];
|
|
762
856
|
export type InputContentOutput = string | InputContentPartOutput[];
|
|
763
857
|
export type InputContentPartInput = {
|
|
858
|
+
file_data?: string;
|
|
859
|
+
file_url?: string;
|
|
860
|
+
filename?: string;
|
|
764
861
|
image_url?: string;
|
|
765
862
|
text?: string;
|
|
766
|
-
type: "input_text" | "input_image";
|
|
863
|
+
type: "input_text" | "input_image" | "input_file";
|
|
767
864
|
};
|
|
768
865
|
export type InputContentPartOutput = {
|
|
866
|
+
file_data?: string;
|
|
867
|
+
file_url?: string;
|
|
868
|
+
filename?: string;
|
|
769
869
|
image_url?: string;
|
|
770
870
|
text?: string;
|
|
771
|
-
type: "input_text" | "input_image";
|
|
871
|
+
type: "input_text" | "input_image" | "input_file";
|
|
772
872
|
};
|
|
773
|
-
export type InputItemInput = InputMessageInput | FunctionCallOutputInputInput | FunctionCallInputInput | ReasoningInputItemInput;
|
|
774
|
-
export type InputItemOutput = InputMessageOutput | FunctionCallOutputInputOutput | FunctionCallInputOutput | ReasoningInputItemOutput;
|
|
873
|
+
export type InputItemInput = InputMessageInput | FunctionCallOutputInputInput | FunctionCallInputInput | ReasoningInputItemInput | McpApprovalResponseInputInput | McpApprovalRequestInputInput | McpCallInputInput | McpListToolsInputInput;
|
|
874
|
+
export type InputItemOutput = InputMessageOutput | FunctionCallOutputInputOutput | FunctionCallInputOutput | ReasoningInputItemOutput | McpApprovalResponseInputOutput | McpApprovalRequestInputOutput | McpCallInputOutput | McpListToolsInputOutput;
|
|
775
875
|
export type InputMessageInput = {
|
|
776
876
|
content: InputContentInput;
|
|
777
877
|
role: "user" | "assistant" | "system" | "developer";
|
|
@@ -814,7 +914,80 @@ export type ListAsyncApiChatCompletionsResponseOutput = {
|
|
|
814
914
|
next_token?: string | null;
|
|
815
915
|
requests: AsyncApiChatCompletionsResponseSummaryOutput[];
|
|
816
916
|
};
|
|
917
|
+
export type McpApprovalRequestInputInput = {
|
|
918
|
+
arguments: string;
|
|
919
|
+
connector_id?: string;
|
|
920
|
+
id: string;
|
|
921
|
+
name: string;
|
|
922
|
+
server_label: string;
|
|
923
|
+
thought_signature?: string;
|
|
924
|
+
type: "mcp_approval_request";
|
|
925
|
+
};
|
|
926
|
+
export type McpApprovalRequestInputOutput = {
|
|
927
|
+
arguments: string;
|
|
928
|
+
connector_id?: string;
|
|
929
|
+
id: string;
|
|
930
|
+
name: string;
|
|
931
|
+
server_label: string;
|
|
932
|
+
thought_signature?: string;
|
|
933
|
+
type: "mcp_approval_request";
|
|
934
|
+
};
|
|
935
|
+
export type McpApprovalRequestOutputItemInput = {
|
|
936
|
+
arguments: string;
|
|
937
|
+
connector_id?: string;
|
|
938
|
+
id: string;
|
|
939
|
+
name: string;
|
|
940
|
+
server_label: string;
|
|
941
|
+
thought_signature?: string;
|
|
942
|
+
type: "mcp_approval_request";
|
|
943
|
+
};
|
|
944
|
+
export type McpApprovalRequestOutputItemOutput = {
|
|
945
|
+
arguments: string;
|
|
946
|
+
connector_id?: string;
|
|
947
|
+
id: string;
|
|
948
|
+
name: string;
|
|
949
|
+
server_label: string;
|
|
950
|
+
thought_signature?: string;
|
|
951
|
+
type: "mcp_approval_request";
|
|
952
|
+
};
|
|
953
|
+
export type McpApprovalResponseInputInput = {
|
|
954
|
+
approval_request_id: string;
|
|
955
|
+
approve: boolean;
|
|
956
|
+
id?: string | null;
|
|
957
|
+
reason?: string | null;
|
|
958
|
+
type: "mcp_approval_response";
|
|
959
|
+
};
|
|
960
|
+
export type McpApprovalResponseInputOutput = {
|
|
961
|
+
approval_request_id: string;
|
|
962
|
+
approve: boolean;
|
|
963
|
+
id?: string | null;
|
|
964
|
+
reason?: string | null;
|
|
965
|
+
type: "mcp_approval_response";
|
|
966
|
+
};
|
|
967
|
+
export type McpCallInputInput = {
|
|
968
|
+
approval_request_id?: string | null;
|
|
969
|
+
arguments: string;
|
|
970
|
+
connector_id?: string;
|
|
971
|
+
error?: string | null;
|
|
972
|
+
id: string;
|
|
973
|
+
name: string;
|
|
974
|
+
output?: string;
|
|
975
|
+
server_label: string;
|
|
976
|
+
type: "mcp_call";
|
|
977
|
+
};
|
|
978
|
+
export type McpCallInputOutput = {
|
|
979
|
+
approval_request_id?: string | null;
|
|
980
|
+
arguments: string;
|
|
981
|
+
connector_id?: string;
|
|
982
|
+
error?: string | null;
|
|
983
|
+
id: string;
|
|
984
|
+
name: string;
|
|
985
|
+
output?: string;
|
|
986
|
+
server_label: string;
|
|
987
|
+
type: "mcp_call";
|
|
988
|
+
};
|
|
817
989
|
export type McpCallOutputItemInput = {
|
|
990
|
+
approval_request_id?: string | null;
|
|
818
991
|
arguments: string;
|
|
819
992
|
connector_id?: string;
|
|
820
993
|
error?: string | null;
|
|
@@ -825,6 +998,7 @@ export type McpCallOutputItemInput = {
|
|
|
825
998
|
type: "mcp_call";
|
|
826
999
|
};
|
|
827
1000
|
export type McpCallOutputItemOutput = {
|
|
1001
|
+
approval_request_id?: string | null;
|
|
828
1002
|
arguments: string;
|
|
829
1003
|
connector_id?: string;
|
|
830
1004
|
error?: string | null;
|
|
@@ -834,6 +1008,20 @@ export type McpCallOutputItemOutput = {
|
|
|
834
1008
|
server_label: string;
|
|
835
1009
|
type: "mcp_call";
|
|
836
1010
|
};
|
|
1011
|
+
export type McpListToolsInputInput = {
|
|
1012
|
+
error?: string | null;
|
|
1013
|
+
id?: string;
|
|
1014
|
+
server_label?: string;
|
|
1015
|
+
tools?: McpToolDefInput[];
|
|
1016
|
+
type: "mcp_list_tools";
|
|
1017
|
+
};
|
|
1018
|
+
export type McpListToolsInputOutput = {
|
|
1019
|
+
error?: string | null;
|
|
1020
|
+
id?: string;
|
|
1021
|
+
server_label?: string;
|
|
1022
|
+
tools?: McpToolDefOutput[];
|
|
1023
|
+
type: "mcp_list_tools";
|
|
1024
|
+
};
|
|
837
1025
|
export type McpListToolsOutputItemInput = {
|
|
838
1026
|
connector_id?: string;
|
|
839
1027
|
error?: string;
|
|
@@ -855,6 +1043,7 @@ export type McpToolInput = {
|
|
|
855
1043
|
authorization?: string;
|
|
856
1044
|
defer_loading?: boolean;
|
|
857
1045
|
headers?: {} & Record<string, string>;
|
|
1046
|
+
require_approval?: RequireApprovalInput;
|
|
858
1047
|
server_label: string;
|
|
859
1048
|
server_url: string;
|
|
860
1049
|
type: "mcp";
|
|
@@ -864,16 +1053,23 @@ export type McpToolOutput = {
|
|
|
864
1053
|
authorization?: string;
|
|
865
1054
|
defer_loading?: boolean;
|
|
866
1055
|
headers?: {} & Record<string, string>;
|
|
1056
|
+
require_approval?: RequireApprovalOutput;
|
|
867
1057
|
server_label: string;
|
|
868
1058
|
server_url: string;
|
|
869
1059
|
type: "mcp";
|
|
870
1060
|
};
|
|
871
1061
|
export type McpToolDefInput = {
|
|
1062
|
+
annotations?: ({
|
|
1063
|
+
read_only?: boolean;
|
|
1064
|
+
} & Record<string, unknown>) | null;
|
|
872
1065
|
description?: string;
|
|
873
1066
|
input_schema: {} & Record<string, unknown>;
|
|
874
1067
|
name: string;
|
|
875
1068
|
};
|
|
876
1069
|
export type McpToolDefOutput = {
|
|
1070
|
+
annotations?: ({
|
|
1071
|
+
read_only?: boolean;
|
|
1072
|
+
} & Record<string, unknown>) | null;
|
|
877
1073
|
description?: string;
|
|
878
1074
|
input_schema: {} & Record<string, unknown>;
|
|
879
1075
|
name: string;
|
|
@@ -916,8 +1112,8 @@ export type NamespaceToolDefOutput = {
|
|
|
916
1112
|
parameters?: {} & Record<string, unknown>;
|
|
917
1113
|
type: "function";
|
|
918
1114
|
};
|
|
919
|
-
export type OutputItemInput = MessageOutputItemInput | SearchResultsOutputItemInput | FetchUrlResultsOutputItemInput | FunctionCallOutputItemInput | McpListToolsOutputItemInput | McpCallOutputItemInput | ToolSearchOutputItemInput | SkillLoadedOutputItemInput | AdvisorResultOutputItemInput | SandboxResultsOutputItemInput | SandboxWriteFileOutputItemInput | SandboxReadFileOutputItemInput | SandboxEditFileOutputItemInput | SandboxGrepOutputItemInput | SandboxGlobOutputItemInput | SandboxApplyPatchOutputItemInput | ShareFileOutputItemInput | UnknownOutputItemInput;
|
|
920
|
-
export type OutputItemOutput = MessageOutputItemOutput | SearchResultsOutputItemOutput | FetchUrlResultsOutputItemOutput | FunctionCallOutputItemOutput | McpListToolsOutputItemOutput | McpCallOutputItemOutput | ToolSearchOutputItemOutput | SkillLoadedOutputItemOutput | AdvisorResultOutputItemOutput | SandboxResultsOutputItemOutput | SandboxWriteFileOutputItemOutput | SandboxReadFileOutputItemOutput | SandboxEditFileOutputItemOutput | SandboxGrepOutputItemOutput | SandboxGlobOutputItemOutput | SandboxApplyPatchOutputItemOutput | ShareFileOutputItemOutput | UnknownOutputItemOutput;
|
|
1115
|
+
export type OutputItemInput = MessageOutputItemInput | SearchResultsOutputItemInput | ImageSearchResultsOutputItemInput | FetchUrlResultsOutputItemInput | FunctionCallOutputItemInput | McpListToolsOutputItemInput | McpCallOutputItemInput | McpApprovalRequestOutputItemInput | ToolSearchOutputItemInput | SkillLoadedOutputItemInput | AdvisorResultOutputItemInput | SandboxResultsOutputItemInput | SandboxWriteFileOutputItemInput | SandboxReadFileOutputItemInput | SandboxEditFileOutputItemInput | SandboxGrepOutputItemInput | SandboxGlobOutputItemInput | SandboxApplyPatchOutputItemInput | ShareFileOutputItemInput | UnknownOutputItemInput;
|
|
1116
|
+
export type OutputItemOutput = MessageOutputItemOutput | SearchResultsOutputItemOutput | ImageSearchResultsOutputItemOutput | FetchUrlResultsOutputItemOutput | FunctionCallOutputItemOutput | McpListToolsOutputItemOutput | McpCallOutputItemOutput | McpApprovalRequestOutputItemOutput | ToolSearchOutputItemOutput | SkillLoadedOutputItemOutput | AdvisorResultOutputItemOutput | SandboxResultsOutputItemOutput | SandboxWriteFileOutputItemOutput | SandboxReadFileOutputItemOutput | SandboxEditFileOutputItemOutput | SandboxGrepOutputItemOutput | SandboxGlobOutputItemOutput | SandboxApplyPatchOutputItemOutput | ShareFileOutputItemOutput | UnknownOutputItemOutput;
|
|
921
1117
|
export type OutputItemAddedEventInput = {
|
|
922
1118
|
item: OutputItemInput;
|
|
923
1119
|
output_index: number;
|
|
@@ -1068,6 +1264,8 @@ export type RegexSchemaOutput = {
|
|
|
1068
1264
|
regex: string;
|
|
1069
1265
|
strict?: boolean | null;
|
|
1070
1266
|
};
|
|
1267
|
+
export type RequireApprovalInput = ("always" | "never") | ApprovalFiltersInput;
|
|
1268
|
+
export type RequireApprovalOutput = ("always" | "never") | ApprovalFiltersOutput;
|
|
1071
1269
|
export type ResponseCompletedEventInput = {
|
|
1072
1270
|
response?: ResponsesResponseInput;
|
|
1073
1271
|
sequence_number: number;
|
|
@@ -1208,6 +1406,7 @@ export type ResponsesRequestInput = {
|
|
|
1208
1406
|
store?: boolean;
|
|
1209
1407
|
stream?: boolean;
|
|
1210
1408
|
temperature?: number;
|
|
1409
|
+
tool_choice?: ToolChoiceInput;
|
|
1211
1410
|
tools?: ToolInput[];
|
|
1212
1411
|
top_p?: number;
|
|
1213
1412
|
};
|
|
@@ -1229,6 +1428,7 @@ export type ResponsesRequestOutput = {
|
|
|
1229
1428
|
store?: boolean;
|
|
1230
1429
|
stream?: boolean;
|
|
1231
1430
|
temperature?: number;
|
|
1431
|
+
tool_choice?: ToolChoiceOutput;
|
|
1232
1432
|
tools?: ToolOutput[];
|
|
1233
1433
|
top_p?: number;
|
|
1234
1434
|
};
|
|
@@ -1258,8 +1458,8 @@ export type ResponsesResponseOutput = {
|
|
|
1258
1458
|
store?: boolean;
|
|
1259
1459
|
usage?: ResponsesUsageOutput;
|
|
1260
1460
|
};
|
|
1261
|
-
export type ResponseStreamEventInput = ResponseCreatedEventInput | ResponseInProgressEventInput | ResponseCompletedEventInput | ResponseFailedEventInput | OutputItemAddedEventInput | OutputItemDoneEventInput | TextDeltaEventInput | TextDoneEventInput | ReasoningStartedEventInput | SearchQueriesEventInput | SearchResultsEventInput | FetchUrlQueriesEventInput | FetchUrlResultsEventInput | ReasoningStoppedEventInput | ResponseSkillLoadedEventInput;
|
|
1262
|
-
export type ResponseStreamEventOutput = ResponseCreatedEventOutput | ResponseInProgressEventOutput | ResponseCompletedEventOutput | ResponseFailedEventOutput | OutputItemAddedEventOutput | OutputItemDoneEventOutput | TextDeltaEventOutput | TextDoneEventOutput | ReasoningStartedEventOutput | SearchQueriesEventOutput | SearchResultsEventOutput | FetchUrlQueriesEventOutput | FetchUrlResultsEventOutput | ReasoningStoppedEventOutput | ResponseSkillLoadedEventOutput;
|
|
1461
|
+
export type ResponseStreamEventInput = ResponseCreatedEventInput | ResponseInProgressEventInput | ResponseCompletedEventInput | ResponseFailedEventInput | OutputItemAddedEventInput | OutputItemDoneEventInput | TextDeltaEventInput | TextDoneEventInput | ReasoningStartedEventInput | SearchQueriesEventInput | SearchResultsEventInput | ImageSearchQueriesEventInput | ImageSearchResultsEventInput | FetchUrlQueriesEventInput | FetchUrlResultsEventInput | ReasoningStoppedEventInput | ResponseSkillLoadedEventInput;
|
|
1462
|
+
export type ResponseStreamEventOutput = ResponseCreatedEventOutput | ResponseInProgressEventOutput | ResponseCompletedEventOutput | ResponseFailedEventOutput | OutputItemAddedEventOutput | OutputItemDoneEventOutput | TextDeltaEventOutput | TextDoneEventOutput | ReasoningStartedEventOutput | SearchQueriesEventOutput | SearchResultsEventOutput | ImageSearchQueriesEventOutput | ImageSearchResultsEventOutput | FetchUrlQueriesEventOutput | FetchUrlResultsEventOutput | ReasoningStoppedEventOutput | ResponseSkillLoadedEventOutput;
|
|
1263
1463
|
export type ResponsesUsageInput = {
|
|
1264
1464
|
cost?: ResponsesCostInput;
|
|
1265
1465
|
input_tokens: number;
|
|
@@ -1542,8 +1742,8 @@ export type TextDoneEventOutput = {
|
|
|
1542
1742
|
text: string;
|
|
1543
1743
|
type: "response.output_text.done";
|
|
1544
1744
|
};
|
|
1545
|
-
export type ToolInput = WebSearchToolInput | FetchUrlToolInput | PeopleSearchToolInput | FunctionToolInput | FinanceSearchToolInput | SandboxToolInput | McpToolInput | ConnectorToolInput;
|
|
1546
|
-
export type ToolOutput = WebSearchToolOutput | FetchUrlToolOutput | PeopleSearchToolOutput | FunctionToolOutput | FinanceSearchToolOutput | SandboxToolOutput | McpToolOutput | ConnectorToolOutput;
|
|
1745
|
+
export type ToolInput = WebSearchToolInput | ImageSearchToolInput | FetchUrlToolInput | PeopleSearchToolInput | FunctionToolInput | FinanceSearchToolInput | SandboxToolInput | McpToolInput | ConnectorToolInput;
|
|
1746
|
+
export type ToolOutput = WebSearchToolOutput | ImageSearchToolOutput | FetchUrlToolOutput | PeopleSearchToolOutput | FunctionToolOutput | FinanceSearchToolOutput | SandboxToolOutput | McpToolOutput | ConnectorToolOutput;
|
|
1547
1747
|
export type ToolCallInput = {
|
|
1548
1748
|
function?: ToolCallFunctionInput | null;
|
|
1549
1749
|
id?: string | null;
|
|
@@ -1568,6 +1768,8 @@ export type ToolCallFunctionOutput = {
|
|
|
1568
1768
|
arguments?: string | null;
|
|
1569
1769
|
name?: string | null;
|
|
1570
1770
|
};
|
|
1771
|
+
export type ToolChoiceInput = ("none" | "auto" | "required") | ({} & Record<string, unknown>);
|
|
1772
|
+
export type ToolChoiceOutput = ("none" | "auto" | "required") | ({} & Record<string, unknown>);
|
|
1571
1773
|
export type ToolSearchOutputItemInput = {
|
|
1572
1774
|
arguments?: string;
|
|
1573
1775
|
call_id: string | null;
|
|
@@ -1861,6 +2063,9 @@ export type EmbeddingsUsage = EmbeddingsUsageOutput;
|
|
|
1861
2063
|
export type ErrorInfo = ErrorInfoOutput;
|
|
1862
2064
|
export type FunctionCallOutputItem = FunctionCallOutputItemOutput;
|
|
1863
2065
|
export type FunctionTool = FunctionToolInput;
|
|
2066
|
+
export type ImageResult = ImageResultOutput;
|
|
2067
|
+
export type ImageSearchResultsOutputItem = ImageSearchResultsOutputItemOutput;
|
|
2068
|
+
export type ImageSearchTool = ImageSearchToolInput;
|
|
1864
2069
|
export type InputItem = InputItemInput;
|
|
1865
2070
|
export type JsonSchemaFormat = JSONSchemaFormatInput;
|
|
1866
2071
|
export type OutputItem = OutputItemOutput;
|
|
@@ -1951,6 +2156,9 @@ export declare namespace Responses {
|
|
|
1951
2156
|
type FileContentParams = NonNullable<Parameters<ResponsesFilesResource["content"]>[1]>;
|
|
1952
2157
|
type FunctionCallOutputItem = FunctionCallOutputItemOutput;
|
|
1953
2158
|
type FunctionTool = FunctionToolInput;
|
|
2159
|
+
type ImageResult = ImageResultOutput;
|
|
2160
|
+
type ImageSearchResultsOutputItem = ImageSearchResultsOutputItemOutput;
|
|
2161
|
+
type ImageSearchTool = ImageSearchToolInput;
|
|
1954
2162
|
type InputItem = InputItemInput;
|
|
1955
2163
|
type OutputItem = OutputItemOutput;
|
|
1956
2164
|
type ResponseCancelResponse = Awaited<ReturnType<ResponsesResource["cancel"]>>;
|