@perplexity-ai/perplexity_ai 0.38.7 → 0.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/generated/api.d.ts +478 -9
  3. package/dist/generated/api.d.ts.map +1 -1
  4. package/dist/generated/api.js +144 -18
  5. package/dist/generated/api.js.map +1 -1
  6. package/dist/generated/runtime.d.ts +7 -0
  7. package/dist/generated/runtime.d.ts.map +1 -1
  8. package/dist/generated/runtime.js +113 -0
  9. package/dist/generated/runtime.js.map +1 -1
  10. package/dist/resources/client.d.ts +21 -0
  11. package/dist/resources/client.d.ts.map +1 -1
  12. package/dist/resources/client.js +8 -2
  13. package/dist/resources/client.js.map +1 -1
  14. package/dist/resources/decisions.d.ts +7 -0
  15. package/dist/resources/decisions.d.ts.map +1 -0
  16. package/dist/resources/decisions.js +3 -0
  17. package/dist/resources/decisions.js.map +1 -0
  18. package/dist/resources/index.d.ts +3 -0
  19. package/dist/resources/index.d.ts.map +1 -1
  20. package/dist/resources/index.js +3 -0
  21. package/dist/resources/index.js.map +1 -1
  22. package/dist/resources/models.d.ts +5 -0
  23. package/dist/resources/models.d.ts.map +1 -0
  24. package/dist/resources/models.js +3 -0
  25. package/dist/resources/models.js.map +1 -0
  26. package/dist/resources/shared.d.ts +12 -0
  27. package/dist/resources/shared.d.ts.map +1 -1
  28. package/dist/resources/skills/index.d.ts +3 -0
  29. package/dist/resources/skills/index.d.ts.map +1 -0
  30. package/dist/resources/skills/index.js +3 -0
  31. package/dist/resources/skills/index.js.map +1 -0
  32. package/dist/resources/skills/revisions.d.ts +5 -0
  33. package/dist/resources/skills/revisions.d.ts.map +1 -0
  34. package/dist/resources/skills/revisions.js +3 -0
  35. package/dist/resources/skills/revisions.js.map +1 -0
  36. package/dist/resources/skills/skills.d.ts +9 -0
  37. package/dist/resources/skills/skills.d.ts.map +1 -0
  38. package/dist/resources/skills/skills.js +3 -0
  39. package/dist/resources/skills/skills.js.map +1 -0
  40. package/dist/resources/skills.d.ts +2 -0
  41. package/dist/resources/skills.d.ts.map +1 -0
  42. package/dist/resources/skills.js +2 -0
  43. package/dist/resources/skills.js.map +1 -0
  44. package/dist/version.d.ts +1 -1
  45. package/dist/version.js +1 -1
  46. package/package.json +1 -1
  47. package/src/generated/api.ts +596 -31
  48. package/src/generated/runtime.ts +129 -0
  49. package/src/resources/client.ts +26 -2
  50. package/src/resources/decisions.ts +6 -0
  51. package/src/resources/index.ts +3 -0
  52. package/src/resources/models.ts +4 -0
  53. package/src/resources/shared.ts +12 -0
  54. package/src/resources/skills/index.ts +2 -0
  55. package/src/resources/skills/revisions.ts +4 -0
  56. package/src/resources/skills/skills.ts +8 -0
  57. package/src/resources/skills.ts +1 -0
  58. package/src/version.ts +1 -1
@@ -1,4 +1,4 @@
1
- import { addOutputText, normalizeHeaders } from "./runtime.js";
1
+ import { addOutputText, legacyQuery, legacyRequestOptions, ownBoolean, ownCursor, normalizeHeaders, multipartBody, pathSegment } from "./runtime.js";
2
2
  import type { APIPromise, RequestOptions, SdkTransport, Stream } from "./runtime.js";
3
3
  export type { APIPromise, HeaderValue, HeadersLike, RequestOptions, SdkTransport, Stream } from "./runtime.js";
4
4
  export type AdvisorResultOutputItemInput = {
@@ -235,6 +235,22 @@ export type ApiSearchResponseOutput = {
235
235
  results: ApiSearchPageOutput[];
236
236
  server_time?: string | null;
237
237
  };
238
+ export type ApprovalFilterInput = {
239
+ read_only?: boolean | null;
240
+ tool_names?: string[] | null;
241
+ };
242
+ export type ApprovalFilterOutput = {
243
+ read_only?: boolean | null;
244
+ tool_names?: string[] | null;
245
+ };
246
+ export type ApprovalFiltersInput = {
247
+ always?: (ApprovalFilterInput) | null;
248
+ never?: (ApprovalFilterInput) | null;
249
+ };
250
+ export type ApprovalFiltersOutput = {
251
+ always?: (ApprovalFilterOutput) | null;
252
+ never?: (ApprovalFilterOutput) | null;
253
+ };
238
254
  export type AsyncApiChatCompletionsRequestInput = {
239
255
  idempotency_key?: string | null;
240
256
  request: ApiChatCompletionsRequestInput;
@@ -416,6 +432,7 @@ export type CompletionResponseTypeOutput = "message" | "info" | "end_of_stream";
416
432
  export type ConnectorToolInput = {
417
433
  allowed_tools?: string[];
418
434
  id: string;
435
+ require_approval?: RequireApprovalInput;
419
436
  server_description?: string;
420
437
  server_label: string;
421
438
  type: "connector";
@@ -423,6 +440,7 @@ export type ConnectorToolInput = {
423
440
  export type ConnectorToolOutput = {
424
441
  allowed_tools?: string[];
425
442
  id: string;
443
+ require_approval?: RequireApprovalOutput;
426
444
  server_description?: string;
427
445
  server_label: string;
428
446
  type: "connector";
@@ -521,6 +539,110 @@ export type DateFiltersOutput = {
521
539
  search_before_date_filter?: DateOutput;
522
540
  search_recency_filter?: SearchRecencyFilterOutput;
523
541
  };
542
+ export type DecisionAnswerInput = DecisionNoulAnswerInput | DecisionScoreAnswerInput | DecisionChoiceAnswerInput;
543
+ export type DecisionAnswerOutput = DecisionNoulAnswerOutput | DecisionScoreAnswerOutput | DecisionChoiceAnswerOutput;
544
+ export type DecisionChoiceAnswerInput = {
545
+ choice: string;
546
+ confidence: number;
547
+ probabilities: {} & Record<string, number>;
548
+ type: "choice";
549
+ };
550
+ export type DecisionChoiceAnswerOutput = {
551
+ choice: string;
552
+ confidence: number;
553
+ probabilities: {} & Record<string, number>;
554
+ type: "choice";
555
+ };
556
+ export type DecisionChoiceQuestionInput = {
557
+ criteria: {} & Record<string, string | ({} & Record<string, unknown>) | unknown[] | null>;
558
+ instructions?: string | ({} & Record<string, unknown>) | unknown[] | null;
559
+ type: "choice";
560
+ };
561
+ export type DecisionChoiceQuestionOutput = {
562
+ criteria: {} & Record<string, string | ({} & Record<string, unknown>) | unknown[] | null>;
563
+ instructions?: string | ({} & Record<string, unknown>) | unknown[] | null;
564
+ type: "choice";
565
+ };
566
+ export type DecisionNoulAnswerInput = {
567
+ noul: number;
568
+ type: "noul";
569
+ };
570
+ export type DecisionNoulAnswerOutput = {
571
+ noul: number;
572
+ type: "noul";
573
+ };
574
+ export type DecisionNoulCriteriaInput = {
575
+ false?: string | ({} & Record<string, unknown>) | unknown[] | null;
576
+ true?: string | ({} & Record<string, unknown>) | unknown[] | null;
577
+ } | null;
578
+ export type DecisionNoulCriteriaOutput = {
579
+ false?: string | ({} & Record<string, unknown>) | unknown[] | null;
580
+ true?: string | ({} & Record<string, unknown>) | unknown[] | null;
581
+ } | null;
582
+ export type DecisionNoulQuestionInput = {
583
+ criteria?: DecisionNoulCriteriaInput;
584
+ instructions?: string | ({} & Record<string, unknown>) | unknown[] | null;
585
+ type: "noul";
586
+ };
587
+ export type DecisionNoulQuestionOutput = {
588
+ criteria?: DecisionNoulCriteriaOutput;
589
+ instructions?: string | ({} & Record<string, unknown>) | unknown[] | null;
590
+ type: "noul";
591
+ };
592
+ export type DecisionQuestionInput = DecisionNoulQuestionInput | DecisionChoiceQuestionInput | DecisionScoreQuestionInput;
593
+ export type DecisionQuestionOutput = DecisionNoulQuestionOutput | DecisionChoiceQuestionOutput | DecisionScoreQuestionOutput;
594
+ export type DecisionScoreAnswerInput = {
595
+ confidence: number;
596
+ legend: {} & Record<string, string | ({} & Record<string, unknown>) | unknown[]>;
597
+ probabilities: {} & Record<string, number>;
598
+ score: number;
599
+ type: "score";
600
+ };
601
+ export type DecisionScoreAnswerOutput = {
602
+ confidence: number;
603
+ legend: {} & Record<string, string | ({} & Record<string, unknown>) | unknown[]>;
604
+ probabilities: {} & Record<string, number>;
605
+ score: number;
606
+ type: "score";
607
+ };
608
+ export type DecisionScoreQuestionInput = {
609
+ criteria: (string | ({} & Record<string, unknown>) | unknown[])[];
610
+ instructions?: string | ({} & Record<string, unknown>) | unknown[] | null;
611
+ type: "score";
612
+ };
613
+ export type DecisionScoreQuestionOutput = {
614
+ criteria: (string | ({} & Record<string, unknown>) | unknown[])[];
615
+ instructions?: string | ({} & Record<string, unknown>) | unknown[] | null;
616
+ type: "score";
617
+ };
618
+ export type DecisionsRequestInput = {
619
+ model: string;
620
+ questions: {} & Record<string, DecisionQuestionInput>;
621
+ state: string | ({} & Record<string, unknown>) | unknown[];
622
+ };
623
+ export type DecisionsRequestOutput = {
624
+ model: string;
625
+ questions: {} & Record<string, DecisionQuestionOutput>;
626
+ state: string | ({} & Record<string, unknown>) | unknown[];
627
+ };
628
+ export type DecisionsResponseInput = {
629
+ answers: {} & Record<string, DecisionAnswerInput>;
630
+ model: string;
631
+ usage: DecisionUsageInput;
632
+ };
633
+ export type DecisionsResponseOutput = {
634
+ answers: {} & Record<string, DecisionAnswerOutput>;
635
+ model: string;
636
+ usage: DecisionUsageOutput;
637
+ };
638
+ export type DecisionUsageInput = {
639
+ input_tokens: number;
640
+ output_tokens: number;
641
+ };
642
+ export type DecisionUsageOutput = {
643
+ input_tokens: number;
644
+ output_tokens: number;
645
+ };
524
646
  export type EmbeddingObjectInput = {
525
647
  embedding?: string;
526
648
  index?: number;
@@ -853,17 +975,27 @@ export type InputContentPartOutput = {
853
975
  text?: string;
854
976
  type: "input_text" | "input_image" | "input_file";
855
977
  };
856
- export type InputItemInput = InputMessageInput | FunctionCallOutputInputInput | FunctionCallInputInput | ReasoningInputItemInput;
857
- export type InputItemOutput = InputMessageOutput | FunctionCallOutputInputOutput | FunctionCallInputOutput | ReasoningInputItemOutput;
978
+ export type InputItemInput = InputMessageInput | FunctionCallOutputInputInput | FunctionCallInputInput | ReasoningInputItemInput | McpApprovalResponseInputInput | McpApprovalRequestInputInput | McpCallInputInput | McpListToolsInputInput;
979
+ export type InputItemOutput = InputMessageOutput | FunctionCallOutputInputOutput | FunctionCallInputOutput | ReasoningInputItemOutput | McpApprovalResponseInputOutput | McpApprovalRequestInputOutput | McpCallInputOutput | McpListToolsInputOutput;
858
980
  export type InputMessageInput = {
859
981
  content: InputContentInput;
860
982
  role: "user" | "assistant" | "system" | "developer";
861
- type: "message";
983
+ type?: "message";
862
984
  };
863
985
  export type InputMessageOutput = {
864
986
  content: InputContentOutput;
865
987
  role: "user" | "assistant" | "system" | "developer";
866
- type: "message";
988
+ type?: "message";
989
+ };
990
+ export type InputTokensDetailsInput = {
991
+ cache_creation_input_tokens?: number;
992
+ cache_read_input_tokens?: number;
993
+ cached_tokens: number;
994
+ };
995
+ export type InputTokensDetailsOutput = {
996
+ cache_creation_input_tokens?: number;
997
+ cache_read_input_tokens?: number;
998
+ cached_tokens: number;
867
999
  };
868
1000
  export type JSONSchemaInput = {
869
1001
  description?: string | null;
@@ -897,7 +1029,98 @@ export type ListAsyncApiChatCompletionsResponseOutput = {
897
1029
  next_token?: string | null;
898
1030
  requests: AsyncApiChatCompletionsResponseSummaryOutput[];
899
1031
  };
1032
+ export type ManagedSkillInput = {
1033
+ created_at?: string;
1034
+ description?: string;
1035
+ latest_revision?: string;
1036
+ name?: string;
1037
+ revision?: string;
1038
+ skill_id: string;
1039
+ updated_at?: string;
1040
+ };
1041
+ export type ManagedSkillOutput = {
1042
+ created_at?: string;
1043
+ description?: string;
1044
+ latest_revision?: string;
1045
+ name?: string;
1046
+ revision?: string;
1047
+ skill_id: string;
1048
+ updated_at?: string;
1049
+ };
1050
+ export type McpApprovalRequestInputInput = {
1051
+ arguments: string;
1052
+ connector_id?: string;
1053
+ id: string;
1054
+ name: string;
1055
+ server_label: string;
1056
+ thought_signature?: string;
1057
+ type: "mcp_approval_request";
1058
+ };
1059
+ export type McpApprovalRequestInputOutput = {
1060
+ arguments: string;
1061
+ connector_id?: string;
1062
+ id: string;
1063
+ name: string;
1064
+ server_label: string;
1065
+ thought_signature?: string;
1066
+ type: "mcp_approval_request";
1067
+ };
1068
+ export type McpApprovalRequestOutputItemInput = {
1069
+ arguments: string;
1070
+ connector_id?: string;
1071
+ id: string;
1072
+ name: string;
1073
+ server_label: string;
1074
+ thought_signature?: string;
1075
+ type: "mcp_approval_request";
1076
+ };
1077
+ export type McpApprovalRequestOutputItemOutput = {
1078
+ arguments: string;
1079
+ connector_id?: string;
1080
+ id: string;
1081
+ name: string;
1082
+ server_label: string;
1083
+ thought_signature?: string;
1084
+ type: "mcp_approval_request";
1085
+ };
1086
+ export type McpApprovalResponseInputInput = {
1087
+ approval_request_id: string;
1088
+ approve: boolean;
1089
+ id?: string | null;
1090
+ reason?: string | null;
1091
+ type: "mcp_approval_response";
1092
+ };
1093
+ export type McpApprovalResponseInputOutput = {
1094
+ approval_request_id: string;
1095
+ approve: boolean;
1096
+ id?: string | null;
1097
+ reason?: string | null;
1098
+ type: "mcp_approval_response";
1099
+ };
1100
+ export type McpCallInputInput = {
1101
+ approval_request_id?: string | null;
1102
+ arguments: string;
1103
+ connector_id?: string;
1104
+ error?: string | null;
1105
+ id: string;
1106
+ name: string;
1107
+ output?: string;
1108
+ server_label: string;
1109
+ type: "mcp_call";
1110
+ };
1111
+ export type McpCallInputOutput = {
1112
+ approval_request_id?: string | null;
1113
+ arguments: string;
1114
+ connector_id?: string;
1115
+ error?: string | null;
1116
+ id: string;
1117
+ name: string;
1118
+ output?: string;
1119
+ server_label: string;
1120
+ type: "mcp_call";
1121
+ };
900
1122
  export type McpCallOutputItemInput = {
1123
+ approval_request_id?: string | null;
901
1124
  arguments: string;
902
1125
  connector_id?: string;
903
1126
  error?: string | null;
@@ -908,6 +1131,7 @@ export type McpCallOutputItemInput = {
908
1131
  type: "mcp_call";
909
1132
  };
910
1133
  export type McpCallOutputItemOutput = {
1134
+ approval_request_id?: string | null;
911
1135
  arguments: string;
912
1136
  connector_id?: string;
913
1137
  error?: string | null;
@@ -917,6 +1141,20 @@ export type McpCallOutputItemOutput = {
917
1141
  server_label: string;
918
1142
  type: "mcp_call";
919
1143
  };
1144
+ export type McpListToolsInputInput = {
1145
+ error?: string | null;
1146
+ id?: string;
1147
+ server_label?: string;
1148
+ tools?: McpToolDefInput[];
1149
+ type: "mcp_list_tools";
1150
+ };
1151
+ export type McpListToolsInputOutput = {
1152
+ error?: string | null;
1153
+ id?: string;
1154
+ server_label?: string;
1155
+ tools?: McpToolDefOutput[];
1156
+ type: "mcp_list_tools";
1157
+ };
920
1158
  export type McpListToolsOutputItemInput = {
921
1159
  connector_id?: string;
922
1160
  error?: string;
@@ -938,6 +1176,7 @@ export type McpToolInput = {
938
1176
  authorization?: string;
939
1177
  defer_loading?: boolean;
940
1178
  headers?: {} & Record<string, string>;
1179
+ require_approval?: RequireApprovalInput;
941
1180
  server_label: string;
942
1181
  server_url: string;
943
1182
  type: "mcp";
@@ -947,16 +1186,23 @@ export type McpToolOutput = {
947
1186
  authorization?: string;
948
1187
  defer_loading?: boolean;
949
1188
  headers?: {} & Record<string, string>;
1189
+ require_approval?: RequireApprovalOutput;
950
1190
  server_label: string;
951
1191
  server_url: string;
952
1192
  type: "mcp";
953
1193
  };
954
1194
  export type McpToolDefInput = {
1195
+ annotations?: ({
1196
+ read_only?: boolean;
1197
+ } & Record<string, unknown>) | null;
955
1198
  description?: string;
956
1199
  input_schema: {} & Record<string, unknown>;
957
1200
  name: string;
958
1201
  };
959
1202
  export type McpToolDefOutput = {
1203
+ annotations?: ({
1204
+ read_only?: boolean;
1205
+ } & Record<string, unknown>) | null;
960
1206
  description?: string;
961
1207
  input_schema: {} & Record<string, unknown>;
962
1208
  name: string;
@@ -975,6 +1221,26 @@ export type MessageOutputItemOutput = {
975
1221
  status: StatusOutput;
976
1222
  type: "message";
977
1223
  };
1224
+ export type ModelInput = {
1225
+ created: number;
1226
+ id: string;
1227
+ object: "model";
1228
+ owned_by: string;
1229
+ };
1230
+ export type ModelOutput = {
1231
+ created: number;
1232
+ id: string;
1233
+ object: "model";
1234
+ owned_by: string;
1235
+ };
1236
+ export type ModelListInput = {
1237
+ data: ModelInput[];
1238
+ object: "list";
1239
+ };
1240
+ export type ModelListOutput = {
1241
+ data: ModelOutput[];
1242
+ object: "list";
1243
+ };
978
1244
  export type NamespaceToolInput = {
979
1245
  description: string;
980
1246
  name: string;
@@ -999,8 +1265,8 @@ export type NamespaceToolDefOutput = {
999
1265
  parameters?: {} & Record<string, unknown>;
1000
1266
  type: "function";
1001
1267
  };
1002
- export type OutputItemInput = MessageOutputItemInput | SearchResultsOutputItemInput | ImageSearchResultsOutputItemInput | FetchUrlResultsOutputItemInput | FunctionCallOutputItemInput | McpListToolsOutputItemInput | McpCallOutputItemInput | ToolSearchOutputItemInput | SkillLoadedOutputItemInput | AdvisorResultOutputItemInput | SandboxResultsOutputItemInput | SandboxWriteFileOutputItemInput | SandboxReadFileOutputItemInput | SandboxEditFileOutputItemInput | SandboxGrepOutputItemInput | SandboxGlobOutputItemInput | SandboxApplyPatchOutputItemInput | ShareFileOutputItemInput | UnknownOutputItemInput;
1003
- export type OutputItemOutput = MessageOutputItemOutput | SearchResultsOutputItemOutput | ImageSearchResultsOutputItemOutput | FetchUrlResultsOutputItemOutput | FunctionCallOutputItemOutput | McpListToolsOutputItemOutput | McpCallOutputItemOutput | ToolSearchOutputItemOutput | SkillLoadedOutputItemOutput | AdvisorResultOutputItemOutput | SandboxResultsOutputItemOutput | SandboxWriteFileOutputItemOutput | SandboxReadFileOutputItemOutput | SandboxEditFileOutputItemOutput | SandboxGrepOutputItemOutput | SandboxGlobOutputItemOutput | SandboxApplyPatchOutputItemOutput | ShareFileOutputItemOutput | UnknownOutputItemOutput;
1268
+ export type OutputItemInput = MessageOutputItemInput | SearchResultsOutputItemInput | ImageSearchResultsOutputItemInput | FetchUrlResultsOutputItemInput | FunctionCallOutputItemInput | McpListToolsOutputItemInput | McpCallOutputItemInput | McpApprovalRequestOutputItemInput | ToolSearchOutputItemInput | SkillLoadedOutputItemInput | AdvisorResultOutputItemInput | SandboxResultsOutputItemInput | SandboxWriteFileOutputItemInput | SandboxReadFileOutputItemInput | SandboxEditFileOutputItemInput | SandboxGrepOutputItemInput | SandboxGlobOutputItemInput | SandboxApplyPatchOutputItemInput | ShareFileOutputItemInput | UnknownOutputItemInput;
1269
+ export type OutputItemOutput = MessageOutputItemOutput | SearchResultsOutputItemOutput | ImageSearchResultsOutputItemOutput | FetchUrlResultsOutputItemOutput | FunctionCallOutputItemOutput | McpListToolsOutputItemOutput | McpCallOutputItemOutput | McpApprovalRequestOutputItemOutput | ToolSearchOutputItemOutput | SkillLoadedOutputItemOutput | AdvisorResultOutputItemOutput | SandboxResultsOutputItemOutput | SandboxWriteFileOutputItemOutput | SandboxReadFileOutputItemOutput | SandboxEditFileOutputItemOutput | SandboxGrepOutputItemOutput | SandboxGlobOutputItemOutput | SandboxApplyPatchOutputItemOutput | ShareFileOutputItemOutput | UnknownOutputItemOutput;
1004
1270
  export type OutputItemAddedEventInput = {
1005
1271
  item: OutputItemInput;
1006
1272
  output_index: number;
@@ -1025,6 +1291,12 @@ export type OutputItemDoneEventOutput = {
1025
1291
  sequence_number: number;
1026
1292
  type: "response.output_item.done";
1027
1293
  };
1294
+ export type OutputTokensDetailsInput = {
1295
+ reasoning_tokens: number;
1296
+ };
1297
+ export type OutputTokensDetailsOutput = {
1298
+ reasoning_tokens: number;
1299
+ };
1028
1300
  export type ParameterSpecInput = {
1029
1301
  additional_properties?: boolean | null;
1030
1302
  properties: {} & Record<string, unknown>;
@@ -1151,6 +1423,8 @@ export type RegexSchemaOutput = {
1151
1423
  regex: string;
1152
1424
  strict?: boolean | null;
1153
1425
  };
1426
+ export type RequireApprovalInput = ("always" | "never") | ApprovalFiltersInput;
1427
+ export type RequireApprovalOutput = ("always" | "never") | ApprovalFiltersOutput;
1154
1428
  export type ResponseCompletedEventInput = {
1155
1429
  response?: ResponsesResponseInput;
1156
1430
  sequence_number: number;
@@ -1285,10 +1559,11 @@ export type ResponsesRequestInput = {
1285
1559
  preset?: string;
1286
1560
  previous_response_id?: string;
1287
1561
  profile?: ProfileReferenceInput;
1562
+ prompt_cache_key?: string;
1288
1563
  reasoning?: ReasoningConfigInput;
1289
1564
  response_format?: ResponseFormatInput;
1565
+ service_tier?: "auto" | "default" | "flex" | "priority" | "fast";
1290
1566
  skills?: SkillInput[];
1291
- step_budget_reminder?: boolean;
1292
1567
  store?: boolean;
1293
1568
  stream?: boolean;
1294
1569
  temperature?: number;
@@ -1308,10 +1583,11 @@ export type ResponsesRequestOutput = {
1308
1583
  preset?: string;
1309
1584
  previous_response_id?: string;
1310
1585
  profile?: ProfileReferenceOutput;
1586
+ prompt_cache_key?: string;
1311
1587
  reasoning?: ReasoningConfigOutput;
1312
1588
  response_format?: ResponseFormatOutput;
1589
+ service_tier?: "auto" | "default" | "flex" | "priority" | "fast";
1313
1590
  skills?: SkillOutput[];
1314
- step_budget_reminder?: boolean;
1315
1591
  store?: boolean;
1316
1592
  stream?: boolean;
1317
1593
  temperature?: number;
@@ -1328,6 +1604,8 @@ export type ResponsesResponseInput = {
1328
1604
  object: ResponsesObjectTypeInput;
1329
1605
  output: OutputItemInput[];
1330
1606
  previous_response_id?: string | null;
1607
+ prompt_cache_key?: string | null;
1608
+ service_tier?: string;
1331
1609
  status: StatusInput;
1332
1610
  store?: boolean;
1333
1611
  usage?: ResponsesUsageInput;
@@ -1341,6 +1619,8 @@ export type ResponsesResponseOutput = {
1341
1619
  object: ResponsesObjectTypeOutput;
1342
1620
  output: OutputItemOutput[];
1343
1621
  previous_response_id?: string | null;
1622
+ prompt_cache_key?: string | null;
1623
+ service_tier?: string;
1344
1624
  status: StatusOutput;
1345
1625
  store?: boolean;
1346
1626
  usage?: ResponsesUsageOutput;
@@ -1587,6 +1867,30 @@ export type ShareFileOutputItemOutput = {
1587
1867
  };
1588
1868
  export type SkillInput = BuiltinSkillInput | InlineSkillInput | CustomSkillInput;
1589
1869
  export type SkillOutput = BuiltinSkillOutput | InlineSkillOutput | CustomSkillOutput;
1870
+ export type SkillBundleInput = {
1871
+ file: Blob;
1872
+ };
1873
+ export type SkillBundleOutput = {
1874
+ file: string;
1875
+ };
1876
+ export type SkillDownloadInput = {
1877
+ download_url: string;
1878
+ name?: string;
1879
+ revision?: string;
1880
+ };
1881
+ export type SkillDownloadOutput = {
1882
+ download_url: string;
1883
+ name?: string;
1884
+ revision?: string;
1885
+ };
1886
+ export type SkillListInput = {
1887
+ next_page_token?: string;
1888
+ skills: SkillSummaryInput[];
1889
+ };
1890
+ export type SkillListOutput = {
1891
+ next_page_token?: string;
1892
+ skills: SkillSummaryOutput[];
1893
+ };
1590
1894
  export type SkillLoadedOutputItemInput = {
1591
1895
  name: string;
1592
1896
  type: "skill_loaded";
@@ -1595,6 +1899,38 @@ export type SkillLoadedOutputItemOutput = {
1595
1899
  name: string;
1596
1900
  type: "skill_loaded";
1597
1901
  };
1902
+ export type SkillRevisionInput = {
1903
+ created_at?: string;
1904
+ name?: string;
1905
+ revision: string;
1906
+ };
1907
+ export type SkillRevisionOutput = {
1908
+ created_at?: string;
1909
+ name?: string;
1910
+ revision: string;
1911
+ };
1912
+ export type SkillRevisionListInput = {
1913
+ next_page_token?: string;
1914
+ revisions: SkillRevisionInput[];
1915
+ };
1916
+ export type SkillRevisionListOutput = {
1917
+ next_page_token?: string;
1918
+ revisions: SkillRevisionOutput[];
1919
+ };
1920
+ export type SkillSummaryInput = {
1921
+ created_at?: string;
1922
+ name?: string;
1923
+ revision?: string;
1924
+ skill_id: string;
1925
+ updated_at?: string;
1926
+ };
1927
+ export type SkillSummaryOutput = {
1928
+ created_at?: string;
1929
+ name?: string;
1930
+ revision?: string;
1931
+ skill_id: string;
1932
+ updated_at?: string;
1933
+ };
1598
1934
  export type StatusInput = "completed" | "failed" | "in_progress" | "queued" | "cancelled" | "requires_action";
1599
1935
  export type StatusOutput = "completed" | "failed" | "in_progress" | "queued" | "cancelled" | "requires_action";
1600
1936
  export type TextDeltaEventInput = {
@@ -1642,10 +1978,14 @@ export type ToolCallOutput = {
1642
1978
  type?: "function" | null;
1643
1979
  };
1644
1980
  export type ToolCallDetailsInput = {
1981
+ cost_usd?: number;
1645
1982
  invocation?: number;
1983
+ token_usage?: ToolCallTokenUsageInput[];
1646
1984
  };
1647
1985
  export type ToolCallDetailsOutput = {
1986
+ cost_usd?: number;
1648
1987
  invocation?: number;
1988
+ token_usage?: ToolCallTokenUsageOutput[];
1649
1989
  };
1650
1990
  export type ToolCallFunctionInput = {
1651
1991
  arguments?: string | null;
@@ -1655,6 +1995,20 @@ export type ToolCallFunctionOutput = {
1655
1995
  arguments?: string | null;
1656
1996
  name?: string | null;
1657
1997
  };
1998
+ export type ToolCallTokenUsageInput = {
1999
+ input_tokens: number;
2000
+ input_tokens_details: InputTokensDetailsInput;
2001
+ model?: string;
2002
+ output_tokens: number;
2003
+ output_tokens_details: OutputTokensDetailsInput;
2004
+ };
2005
+ export type ToolCallTokenUsageOutput = {
2006
+ input_tokens: number;
2007
+ input_tokens_details: InputTokensDetailsOutput;
2008
+ model?: string;
2009
+ output_tokens: number;
2010
+ output_tokens_details: OutputTokensDetailsOutput;
2011
+ };
1658
2012
  export type ToolChoiceInput = ("none" | "auto" | "required") | ({} & Record<string, unknown>);
1659
2013
  export type ToolChoiceOutput = ("none" | "auto" | "required") | ({} & Record<string, unknown>);
1660
2014
  export type ToolSearchOutputItemInput = {
@@ -1835,7 +2189,7 @@ export class AsyncChatCompletionsResource {
1835
2189
  "x-usage-tier"?: string;
1836
2190
  "x-user-id"?: string;
1837
2191
  }, options?: RequestOptions): APIPromise<AsyncApiChatCompletionsResponseOutput> {
1838
- return this._client.get<AsyncApiChatCompletionsResponseOutput>(`/async/chat/completions/${encodeURIComponent(String(apiRequest))}`, {
2192
+ return this._client.get<AsyncApiChatCompletionsResponseOutput>(`/async/chat/completions/${pathSegment(apiRequest)}`, {
1839
2193
  ...options,
1840
2194
  query: {
1841
2195
  local_mode: params?.local_mode,
@@ -1876,7 +2230,7 @@ export class BrowserSessionsResource {
1876
2230
  });
1877
2231
  }
1878
2232
  delete(sessionID: string, options?: RequestOptions): APIPromise<void> {
1879
- return this._client.delete<void>(`/v1/browser/sessions/${encodeURIComponent(String(sessionID))}`, {
2233
+ return this._client.delete<void>(`/v1/browser/sessions/${pathSegment(sessionID)}`, {
1880
2234
  ...options,
1881
2235
  headers: {
1882
2236
  "Accept": "*/*",
@@ -1901,7 +2255,7 @@ export class ChatCompletionsResource {
1901
2255
  return this._client.post<CompletionResponseOutput | Stream<CompletionResponseOutput>>("/chat/completions", {
1902
2256
  ...options,
1903
2257
  body: body,
1904
- stream: body?.stream ?? false
2258
+ stream: body?.stream === true
1905
2259
  });
1906
2260
  }
1907
2261
  }
@@ -1913,7 +2267,7 @@ export class ResponsesFilesResource {
1913
2267
  content(fileID: string, params: {
1914
2268
  response_id: string;
1915
2269
  }, options?: RequestOptions): APIPromise<Response> {
1916
- return this._client.get<Response>(`/v1/responses/${encodeURIComponent(String(params.response_id))}/files/${encodeURIComponent(String(fileID))}/content`, {
2270
+ return this._client.get<Response>(`/v1/responses/${pathSegment(params.response_id)}/files/${pathSegment(fileID)}/content`, {
1917
2271
  ...options,
1918
2272
  headers: {
1919
2273
  "Accept": "application/octet-stream",
@@ -1923,11 +2277,30 @@ export class ResponsesFilesResource {
1923
2277
  });
1924
2278
  }
1925
2279
  list(responseID: string, options?: RequestOptions): APIPromise<ResponseFileListOutput> {
1926
- return this._client.get<ResponseFileListOutput>(`/v1/responses/${encodeURIComponent(String(responseID))}/files`, {
2280
+ return this._client.get<ResponseFileListOutput>(`/v1/responses/${pathSegment(responseID)}/files`, {
1927
2281
  ...options
1928
2282
  });
1929
2283
  }
1930
2284
  }
2285
+ export class SkillsRevisionsResource {
2286
+ private readonly _client: SdkTransport;
2287
+ constructor(client: SdkTransport) {
2288
+ this._client = client;
2289
+ }
2290
+ list(skillID: string, params?: {
2291
+ limit?: number;
2292
+ page_token?: string;
2293
+ }, options?: RequestOptions): APIPromise<SkillRevisionListOutput> {
2294
+ return this._client.get<SkillRevisionListOutput>(`/v1/skills/${pathSegment(skillID)}/revisions`, {
2295
+ ...options,
2296
+ query: {
2297
+ limit: params?.limit,
2298
+ page_token: params?.page_token,
2299
+ ...options?.query
2300
+ }
2301
+ });
2302
+ }
2303
+ }
1931
2304
  export class AsyncResource {
1932
2305
  readonly chat: AsyncChatResource;
1933
2306
  constructor(client: SdkTransport) {
@@ -1958,6 +2331,18 @@ export class ContextualizedEmbeddingsResource {
1958
2331
  });
1959
2332
  }
1960
2333
  }
2334
+ export class DecisionsResource {
2335
+ private readonly _client: SdkTransport;
2336
+ constructor(client: SdkTransport) {
2337
+ this._client = client;
2338
+ }
2339
+ create(body: DecisionsRequestInput, options?: RequestOptions): APIPromise<DecisionsResponseOutput> {
2340
+ return this._client.post<DecisionsResponseOutput>("/v1/decisions", {
2341
+ ...options,
2342
+ body: body
2343
+ });
2344
+ }
2345
+ }
1961
2346
  export class EmbeddingsResource {
1962
2347
  private readonly _client: SdkTransport;
1963
2348
  constructor(client: SdkTransport) {
@@ -1970,6 +2355,17 @@ export class EmbeddingsResource {
1970
2355
  });
1971
2356
  }
1972
2357
  }
2358
+ export class ModelsResource {
2359
+ private readonly _client: SdkTransport;
2360
+ constructor(client: SdkTransport) {
2361
+ this._client = client;
2362
+ }
2363
+ list(options?: RequestOptions): APIPromise<ModelListOutput> {
2364
+ return this._client.get<ModelListOutput>("/v1/models", {
2365
+ ...options
2366
+ });
2367
+ }
2368
+ }
1973
2369
  export class ResponsesResource {
1974
2370
  private readonly _client: SdkTransport;
1975
2371
  readonly files: ResponsesFilesResource;
@@ -1984,7 +2380,7 @@ export class ResponsesResource {
1984
2380
  return this._client.post<{
1985
2381
  response_id: string;
1986
2382
  status: "cancelling";
1987
- }>(`/v1/responses/${encodeURIComponent(String(responseID))}/cancel`, {
2383
+ }>(`/v1/responses/${pathSegment(responseID)}/cancel`, {
1988
2384
  ...options
1989
2385
  });
1990
2386
  }
@@ -2003,9 +2399,9 @@ export class ResponsesResource {
2003
2399
  const promise = this._client.post<ResponsesResponseOutput | Stream<ResponseStreamEventOutput>>("/v1/responses", {
2004
2400
  ...options,
2005
2401
  body: body,
2006
- stream: body?.stream ?? false
2402
+ stream: body?.stream === true
2007
2403
  });
2008
- if (!body?.stream) {
2404
+ if (body?.stream !== true) {
2009
2405
  return promise._thenUnwrap(response => {
2010
2406
  if ("object" in response && response.object === "response") {
2011
2407
  addOutputText(response as ResponsesResponseOutput & {
@@ -2017,22 +2413,67 @@ export class ResponsesResource {
2017
2413
  }
2018
2414
  return promise;
2019
2415
  }
2020
- retrieve(responseID: string, options?: RequestOptions): APIPromise<ResponsesResponseOutput & {
2416
+ retrieve(responseID: string, params?: Omit<{
2417
+ starting_after?: number;
2418
+ stream?: boolean;
2419
+ }, "stream"> & {
2420
+ stream?: false;
2421
+ }, options?: RequestOptions): APIPromise<ResponsesResponseOutput & {
2021
2422
  output_text: string;
2022
- }> {
2023
- const promise = this._client.get<ResponsesResponseOutput>(`/v1/responses/${encodeURIComponent(String(responseID))}`, {
2024
- ...options
2423
+ }>;
2424
+ retrieve(responseID: string, params: Omit<Required<{
2425
+ starting_after?: number;
2426
+ stream?: boolean;
2427
+ }>, "stream"> & {
2428
+ stream: true;
2429
+ }, options?: RequestOptions): APIPromise<Stream<ResponseStreamEventOutput>>;
2430
+ retrieve(responseID: string, params: Omit<Required<{
2431
+ starting_after?: number;
2432
+ stream?: boolean;
2433
+ }>, "stream"> & {
2434
+ stream: boolean;
2435
+ }, options?: RequestOptions): APIPromise<(ResponsesResponseOutput & {
2436
+ output_text: string;
2437
+ }) | Stream<ResponseStreamEventOutput>>;
2438
+ retrieve(responseID: string, params?: Omit<RequestOptions, "__binaryResponse" | "body" | "defaultBaseURL" | "method" | "path"> & {
2439
+ starting_after?: never;
2440
+ }, options?: RequestOptions): APIPromise<ResponsesResponseOutput & {
2441
+ output_text: string;
2442
+ }>;
2443
+ retrieve(responseID: string, params?: {
2444
+ starting_after?: number;
2445
+ stream?: boolean;
2446
+ }, options?: RequestOptions): APIPromise<(ResponsesResponseOutput & {
2447
+ output_text: string;
2448
+ }) | Stream<ResponseStreamEventOutput>>;
2449
+ retrieve(responseID: string, params?: {
2450
+ starting_after?: number;
2451
+ stream?: boolean;
2452
+ } & RequestOptions, options?: RequestOptions): APIPromise<ResponsesResponseOutput | Stream<ResponseStreamEventOutput>> {
2453
+ const streamFlag = ownBoolean(params, "stream");
2454
+ const cursor = ownCursor(params, "starting_after");
2455
+ const promise = this._client.get<ResponsesResponseOutput | Stream<ResponseStreamEventOutput>>(`/v1/responses/${pathSegment(responseID)}`, {
2456
+ ...legacyRequestOptions(params, cursor, streamFlag),
2457
+ ...options,
2458
+ query: {
2459
+ ...legacyQuery(params, ["starting_after", "stream"], cursor),
2460
+ ...options?.query,
2461
+ starting_after: cursor,
2462
+ stream: streamFlag
2463
+ },
2464
+ stream: streamFlag === true
2025
2465
  });
2026
- return promise._thenUnwrap(response => {
2027
- if ("object" in response && response.object === "response") {
2028
- addOutputText(response as ResponsesResponseOutput & {
2029
- output_text: string;
2030
- });
2031
- }
2032
- return response;
2033
- }) as APIPromise<ResponsesResponseOutput & {
2034
- output_text: string;
2035
- }>;
2466
+ if (streamFlag !== true) {
2467
+ return promise._thenUnwrap(response => {
2468
+ if ("object" in response && response.object === "response") {
2469
+ addOutputText(response as ResponsesResponseOutput & {
2470
+ output_text: string;
2471
+ });
2472
+ }
2473
+ return response;
2474
+ });
2475
+ }
2476
+ return promise;
2036
2477
  }
2037
2478
  }
2038
2479
  export class SearchResource {
@@ -2047,22 +2488,104 @@ export class SearchResource {
2047
2488
  });
2048
2489
  }
2049
2490
  }
2491
+ export class SkillsResource {
2492
+ private readonly _client: SdkTransport;
2493
+ readonly revisions: SkillsRevisionsResource;
2494
+ constructor(client: SdkTransport) {
2495
+ this._client = client;
2496
+ this.revisions = new SkillsRevisionsResource(client);
2497
+ }
2498
+ create(body: SkillBundleInput, options?: RequestOptions): APIPromise<ManagedSkillOutput> {
2499
+ return this._client.post<ManagedSkillOutput>("/v1/skills", {
2500
+ ...options,
2501
+ body: multipartBody(body, ["file"])
2502
+ });
2503
+ }
2504
+ delete(skillID: string, params: {
2505
+ expected_revision: string;
2506
+ }, options?: RequestOptions): APIPromise<void> {
2507
+ return this._client.delete<void>(`/v1/skills/${pathSegment(skillID)}`, {
2508
+ ...options,
2509
+ query: {
2510
+ expected_revision: params.expected_revision,
2511
+ ...options?.query
2512
+ },
2513
+ headers: {
2514
+ "Accept": "*/*",
2515
+ ...normalizeHeaders(options?.headers)
2516
+ }
2517
+ });
2518
+ }
2519
+ download(skillID: string, params?: {
2520
+ revision?: string;
2521
+ }, options?: RequestOptions): APIPromise<SkillDownloadOutput> {
2522
+ return this._client.get<SkillDownloadOutput>(`/v1/skills/${pathSegment(skillID)}/download`, {
2523
+ ...options,
2524
+ query: {
2525
+ revision: params?.revision,
2526
+ ...options?.query
2527
+ }
2528
+ });
2529
+ }
2530
+ list(params?: {
2531
+ limit?: number;
2532
+ page_token?: string;
2533
+ }, options?: RequestOptions): APIPromise<SkillListOutput> {
2534
+ return this._client.get<SkillListOutput>("/v1/skills", {
2535
+ ...options,
2536
+ query: {
2537
+ limit: params?.limit,
2538
+ page_token: params?.page_token,
2539
+ ...options?.query
2540
+ }
2541
+ });
2542
+ }
2543
+ retrieve(skillID: string, params?: {
2544
+ revision?: string;
2545
+ }, options?: RequestOptions): APIPromise<ManagedSkillOutput> {
2546
+ return this._client.get<ManagedSkillOutput>(`/v1/skills/${pathSegment(skillID)}`, {
2547
+ ...options,
2548
+ query: {
2549
+ revision: params?.revision,
2550
+ ...options?.query
2551
+ }
2552
+ });
2553
+ }
2554
+ update(skillID: string, body: SkillBundleInput, params: {
2555
+ expected_revision: string;
2556
+ }, options?: RequestOptions): APIPromise<ManagedSkillOutput> {
2557
+ return this._client.put<ManagedSkillOutput>(`/v1/skills/${pathSegment(skillID)}`, {
2558
+ ...options,
2559
+ body: multipartBody(body, ["file"]),
2560
+ query: {
2561
+ expected_revision: params.expected_revision,
2562
+ ...options?.query
2563
+ }
2564
+ });
2565
+ }
2566
+ }
2050
2567
  export class PerplexitySdk {
2051
2568
  readonly async: AsyncResource;
2052
2569
  readonly browser: BrowserResource;
2053
2570
  readonly chat: ChatResource;
2054
2571
  readonly contextualizedEmbeddings: ContextualizedEmbeddingsResource;
2572
+ readonly decisions: DecisionsResource;
2055
2573
  readonly embeddings: EmbeddingsResource;
2574
+ readonly models: ModelsResource;
2056
2575
  readonly responses: ResponsesResource;
2057
2576
  readonly search: SearchResource;
2577
+ readonly skills: SkillsResource;
2058
2578
  constructor(client: SdkTransport) {
2059
2579
  this.async = new AsyncResource(client);
2060
2580
  this.browser = new BrowserResource(client);
2061
2581
  this.chat = new ChatResource(client);
2062
2582
  this.contextualizedEmbeddings = new ContextualizedEmbeddingsResource(client);
2583
+ this.decisions = new DecisionsResource(client);
2063
2584
  this.embeddings = new EmbeddingsResource(client);
2585
+ this.models = new ModelsResource(client);
2064
2586
  this.responses = new ResponsesResource(client);
2065
2587
  this.search = new SearchResource(client);
2588
+ this.skills = new SkillsResource(client);
2066
2589
  }
2067
2590
  }
2068
2591
  export class Async extends AsyncResource {
@@ -2073,12 +2596,18 @@ export class Chat extends ChatResource {
2073
2596
  }
2074
2597
  export class ContextualizedEmbeddings extends ContextualizedEmbeddingsResource {
2075
2598
  }
2599
+ export class Decisions extends DecisionsResource {
2600
+ }
2076
2601
  export class Embeddings extends EmbeddingsResource {
2077
2602
  }
2603
+ export class Models extends ModelsResource {
2604
+ }
2078
2605
  export class Responses extends ResponsesResource {
2079
2606
  }
2080
2607
  export class Search extends SearchResource {
2081
2608
  }
2609
+ export class Skills extends SkillsResource {
2610
+ }
2082
2611
  export type Annotation = AnnotationOutput;
2083
2612
  export type APIPublicSearchResult = ApiPublicSearchResultOutput;
2084
2613
  export type BrowserSessionResponse = BrowserSessionResponseOutput;
@@ -2089,6 +2618,10 @@ export type ContentPart = ContentPartOutput;
2089
2618
  export type ContextualizedEmbeddingCreateParams = ContextualizedEmbeddingsRequestInput;
2090
2619
  export type ContextualizedEmbeddingCreateResponse = ContextualizedEmbeddingsResponseOutput;
2091
2620
  export type ContextualizedEmbeddingObject = ContextualizedEmbeddingObjectOutput;
2621
+ export type DecisionAnswer = DecisionAnswerOutput;
2622
+ export type DecisionCreateParams = DecisionsRequestInput;
2623
+ export type DecisionCreateResponse = Awaited<ReturnType<DecisionsResource["create"]>>;
2624
+ export type DecisionQuestion = DecisionQuestionInput;
2092
2625
  export type EmbeddingCreateParams = EmbeddingsRequestInput;
2093
2626
  export type EmbeddingCreateResponse = EmbeddingsResponseOutput;
2094
2627
  export type EmbeddingObject = EmbeddingObjectOutput;
@@ -2101,6 +2634,9 @@ export type ImageSearchResultsOutputItem = ImageSearchResultsOutputItemOutput;
2101
2634
  export type ImageSearchTool = ImageSearchToolInput;
2102
2635
  export type InputItem = InputItemInput;
2103
2636
  export type JsonSchemaFormat = JSONSchemaFormatInput;
2637
+ export type ManagedSkill = ManagedSkillOutput;
2638
+ export type Model = ModelOutput;
2639
+ export type ModelListResponse = Awaited<ReturnType<ModelsResource["list"]>>;
2104
2640
  export type OutputItem = OutputItemOutput;
2105
2641
  export type ResponseCancelResponse = Awaited<ReturnType<ResponsesResource["cancel"]>>;
2106
2642
  export type ResponseCreateParams = ResponsesRequestInput;
@@ -2119,6 +2655,11 @@ export type ResponsesUsage = ResponsesUsageOutput;
2119
2655
  export type SearchCreateParams = ApiSearchRequestInput;
2120
2656
  export type SearchCreateResponse = ApiSearchResponseOutput;
2121
2657
  export type SearchResult = SearchResultOutput;
2658
+ export type SkillDownloadResponse = SkillDownloadOutput;
2659
+ export type SkillListResponse = SkillListOutput;
2660
+ export type SkillRevision = SkillRevisionOutput;
2661
+ export type SkillRevisionListResponse = SkillRevisionListOutput;
2662
+ export type SkillUploadParams = SkillBundleInput;
2122
2663
  export type StreamChunk = CompletionResponseOutput;
2123
2664
  export type UsageInfo = UsageInfoOutput;
2124
2665
  export type UserLocation = UserLocationInput;
@@ -2176,10 +2717,20 @@ export namespace ContextualizedEmbeddings {
2176
2717
  export type ContextualizedEmbeddingCreateParams = ContextualizedEmbeddingsRequestInput;
2177
2718
  export type ContextualizedEmbeddingCreateResponse = ContextualizedEmbeddingsResponseOutput;
2178
2719
  }
2720
+ export namespace Decisions {
2721
+ export type DecisionAnswer = DecisionAnswerOutput;
2722
+ export type DecisionCreateParams = DecisionsRequestInput;
2723
+ export type DecisionCreateResponse = Awaited<ReturnType<DecisionsResource["create"]>>;
2724
+ export type DecisionQuestion = DecisionQuestionInput;
2725
+ }
2179
2726
  export namespace Embeddings {
2180
2727
  export type EmbeddingCreateParams = EmbeddingsRequestInput;
2181
2728
  export type EmbeddingCreateResponse = EmbeddingsResponseOutput;
2182
2729
  }
2730
+ export namespace Models {
2731
+ export type Model = ModelOutput;
2732
+ export type ModelListResponse = Awaited<ReturnType<ModelsResource["list"]>>;
2733
+ }
2183
2734
  export namespace Responses {
2184
2735
  export class Files extends ResponsesFilesResource {
2185
2736
  }
@@ -2221,3 +2772,17 @@ export namespace Search {
2221
2772
  export type SearchCreateParams = ApiSearchRequestInput;
2222
2773
  export type SearchCreateResponse = ApiSearchResponseOutput;
2223
2774
  }
2775
+ export namespace Skills {
2776
+ export class Revisions extends SkillsRevisionsResource {
2777
+ }
2778
+ export type ManagedSkill = ManagedSkillOutput;
2779
+ export type SkillDownloadResponse = SkillDownloadOutput;
2780
+ export type SkillListResponse = SkillListOutput;
2781
+ export type SkillRevision = SkillRevisionOutput;
2782
+ export type SkillRevisionListResponse = SkillRevisionListOutput;
2783
+ export type SkillUploadParams = SkillBundleInput;
2784
+ export namespace Revisions {
2785
+ export type SkillRevision = SkillRevisionOutput;
2786
+ export type SkillRevisionListResponse = SkillRevisionListOutput;
2787
+ }
2788
+ }