@orq-ai/node 4.0.0-rc.5 → 4.0.0-rc.7

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 (154) hide show
  1. package/bin/mcp-server.js +7487 -543
  2. package/bin/mcp-server.js.map +52 -52
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +2 -2
  6. package/lib/config.js +2 -2
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createagent.d.ts +4141 -865
  10. package/models/operations/createagent.d.ts.map +1 -1
  11. package/models/operations/createagent.js +3767 -768
  12. package/models/operations/createagent.js.map +1 -1
  13. package/models/operations/createbudget.js +2 -2
  14. package/models/operations/createcontact.js +2 -2
  15. package/models/operations/createdataset.js +2 -2
  16. package/models/operations/createdatasetitem.js +8 -8
  17. package/models/operations/createdatasource.js +2 -2
  18. package/models/operations/createeval.js +28 -28
  19. package/models/operations/creatememorystore.d.ts +42 -42
  20. package/models/operations/creatememorystore.d.ts.map +1 -1
  21. package/models/operations/creatememorystore.js +61 -63
  22. package/models/operations/creatememorystore.js.map +1 -1
  23. package/models/operations/createprompt.d.ts +263 -263
  24. package/models/operations/createprompt.d.ts.map +1 -1
  25. package/models/operations/createprompt.js +345 -345
  26. package/models/operations/createprompt.js.map +1 -1
  27. package/models/operations/createtool.js +10 -10
  28. package/models/operations/deploymentgetconfig.d.ts +19 -19
  29. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  30. package/models/operations/deploymentgetconfig.js +22 -22
  31. package/models/operations/deploymentgetconfig.js.map +1 -1
  32. package/models/operations/deployments.d.ts +4 -4
  33. package/models/operations/deployments.d.ts.map +1 -1
  34. package/models/operations/deployments.js +4 -4
  35. package/models/operations/deployments.js.map +1 -1
  36. package/models/operations/duplicatetool.js +10 -10
  37. package/models/operations/fileget.js +2 -2
  38. package/models/operations/filelist.js +2 -2
  39. package/models/operations/fileupload.js +2 -2
  40. package/models/operations/getagent.d.ts +1614 -11
  41. package/models/operations/getagent.d.ts.map +1 -1
  42. package/models/operations/getagent.js +1475 -9
  43. package/models/operations/getagent.js.map +1 -1
  44. package/models/operations/getallprompts.d.ts +4 -4
  45. package/models/operations/getallprompts.d.ts.map +1 -1
  46. package/models/operations/getallprompts.js +4 -4
  47. package/models/operations/getallprompts.js.map +1 -1
  48. package/models/operations/getalltools.js +10 -10
  49. package/models/operations/getbudget.js +2 -2
  50. package/models/operations/getevals.js +28 -28
  51. package/models/operations/getoneprompt.d.ts +4 -4
  52. package/models/operations/getoneprompt.d.ts.map +1 -1
  53. package/models/operations/getoneprompt.js +4 -4
  54. package/models/operations/getoneprompt.js.map +1 -1
  55. package/models/operations/getpromptversion.d.ts +4 -4
  56. package/models/operations/getpromptversion.d.ts.map +1 -1
  57. package/models/operations/getpromptversion.js +4 -4
  58. package/models/operations/getpromptversion.js.map +1 -1
  59. package/models/operations/listagents.d.ts +1614 -11
  60. package/models/operations/listagents.d.ts.map +1 -1
  61. package/models/operations/listagents.js +1481 -9
  62. package/models/operations/listagents.js.map +1 -1
  63. package/models/operations/listagenttasks.d.ts +1614 -11
  64. package/models/operations/listagenttasks.d.ts.map +1 -1
  65. package/models/operations/listagenttasks.js +1479 -9
  66. package/models/operations/listagenttasks.js.map +1 -1
  67. package/models/operations/listbudgets.js +2 -2
  68. package/models/operations/listcontacts.js +2 -2
  69. package/models/operations/listdatasetdatapoints.js +8 -8
  70. package/models/operations/listdatasets.js +2 -2
  71. package/models/operations/listdatasources.js +2 -2
  72. package/models/operations/listpromptversions.d.ts +4 -4
  73. package/models/operations/listpromptversions.d.ts.map +1 -1
  74. package/models/operations/listpromptversions.js +4 -4
  75. package/models/operations/listpromptversions.js.map +1 -1
  76. package/models/operations/retrievecontact.js +2 -2
  77. package/models/operations/retrievedatapoint.js +8 -8
  78. package/models/operations/retrievedataset.js +2 -2
  79. package/models/operations/retrievedatasource.js +2 -2
  80. package/models/operations/retrievetool.js +10 -10
  81. package/models/operations/runagent.d.ts +2176 -503
  82. package/models/operations/runagent.d.ts.map +1 -1
  83. package/models/operations/runagent.js +1534 -9
  84. package/models/operations/runagent.js.map +1 -1
  85. package/models/operations/streamrunagent.d.ts +2128 -455
  86. package/models/operations/streamrunagent.d.ts.map +1 -1
  87. package/models/operations/streamrunagent.js +1630 -89
  88. package/models/operations/streamrunagent.js.map +1 -1
  89. package/models/operations/updateagent.d.ts +4129 -853
  90. package/models/operations/updateagent.d.ts.map +1 -1
  91. package/models/operations/updateagent.js +3837 -825
  92. package/models/operations/updateagent.js.map +1 -1
  93. package/models/operations/updatebudget.js +2 -2
  94. package/models/operations/updatecontact.js +2 -2
  95. package/models/operations/updatedatapoint.js +8 -8
  96. package/models/operations/updatedataset.js +2 -2
  97. package/models/operations/updatedatasource.js +2 -2
  98. package/models/operations/updateeval.js +28 -28
  99. package/models/operations/updateprompt.d.ts +8 -8
  100. package/models/operations/updateprompt.d.ts.map +1 -1
  101. package/models/operations/updateprompt.js +8 -8
  102. package/models/operations/updateprompt.js.map +1 -1
  103. package/models/operations/updatetool.js +10 -10
  104. package/package.json +1 -1
  105. package/src/lib/config.ts +2 -2
  106. package/src/mcp-server/mcp-server.ts +1 -1
  107. package/src/mcp-server/server.ts +1 -1
  108. package/src/models/operations/createagent.ts +7853 -1626
  109. package/src/models/operations/createbudget.ts +2 -2
  110. package/src/models/operations/createcontact.ts +2 -2
  111. package/src/models/operations/createdataset.ts +2 -2
  112. package/src/models/operations/createdatasetitem.ts +8 -8
  113. package/src/models/operations/createdatasource.ts +2 -2
  114. package/src/models/operations/createeval.ts +28 -28
  115. package/src/models/operations/creatememorystore.ts +120 -103
  116. package/src/models/operations/createprompt.ts +742 -621
  117. package/src/models/operations/createtool.ts +10 -10
  118. package/src/models/operations/deploymentgetconfig.ts +60 -44
  119. package/src/models/operations/deployments.ts +25 -20
  120. package/src/models/operations/duplicatetool.ts +10 -10
  121. package/src/models/operations/fileget.ts +2 -2
  122. package/src/models/operations/filelist.ts +2 -2
  123. package/src/models/operations/fileupload.ts +2 -2
  124. package/src/models/operations/getagent.ts +3274 -246
  125. package/src/models/operations/getallprompts.ts +30 -20
  126. package/src/models/operations/getalltools.ts +10 -10
  127. package/src/models/operations/getbudget.ts +2 -2
  128. package/src/models/operations/getevals.ts +28 -28
  129. package/src/models/operations/getoneprompt.ts +28 -20
  130. package/src/models/operations/getpromptversion.ts +30 -20
  131. package/src/models/operations/listagents.ts +3351 -270
  132. package/src/models/operations/listagenttasks.ts +3347 -180
  133. package/src/models/operations/listbudgets.ts +2 -2
  134. package/src/models/operations/listcontacts.ts +2 -2
  135. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  136. package/src/models/operations/listdatasets.ts +2 -2
  137. package/src/models/operations/listdatasources.ts +2 -2
  138. package/src/models/operations/listpromptversions.ts +30 -20
  139. package/src/models/operations/retrievecontact.ts +2 -2
  140. package/src/models/operations/retrievedatapoint.ts +8 -8
  141. package/src/models/operations/retrievedataset.ts +2 -2
  142. package/src/models/operations/retrievedatasource.ts +2 -2
  143. package/src/models/operations/retrievetool.ts +10 -10
  144. package/src/models/operations/runagent.ts +3799 -610
  145. package/src/models/operations/streamrunagent.ts +3945 -605
  146. package/src/models/operations/updateagent.ts +8331 -1757
  147. package/src/models/operations/updatebudget.ts +2 -2
  148. package/src/models/operations/updatecontact.ts +2 -2
  149. package/src/models/operations/updatedatapoint.ts +8 -8
  150. package/src/models/operations/updatedataset.ts +2 -2
  151. package/src/models/operations/updatedatasource.ts +2 -2
  152. package/src/models/operations/updateeval.ts +28 -28
  153. package/src/models/operations/updateprompt.ts +58 -40
  154. package/src/models/operations/updatetool.ts +10 -10
@@ -36,9 +36,73 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.ListAgentTasksResponseBody$ = exports.ListAgentTasksResponseBody$outboundSchema = exports.ListAgentTasksResponseBody$inboundSchema = exports.Tasks$ = exports.Tasks$outboundSchema = exports.Tasks$inboundSchema = exports.ListAgentTasksMetrics$ = exports.ListAgentTasksMetrics$outboundSchema = exports.ListAgentTasksMetrics$inboundSchema = exports.ListAgentTasksState$ = exports.ListAgentTasksState$outboundSchema = exports.ListAgentTasksState$inboundSchema = exports.ListAgentTasksMemory$ = exports.ListAgentTasksMemory$outboundSchema = exports.ListAgentTasksMemory$inboundSchema = exports.AgentManifestSnapshot$ = exports.AgentManifestSnapshot$outboundSchema = exports.AgentManifestSnapshot$inboundSchema = exports.ListAgentTasksSettings$ = exports.ListAgentTasksSettings$outboundSchema = exports.ListAgentTasksSettings$inboundSchema = exports.ListAgentTasksTools$ = exports.ListAgentTasksTools$outboundSchema = exports.ListAgentTasksTools$inboundSchema = exports.ListAgentTasksConditions$ = exports.ListAgentTasksConditions$outboundSchema = exports.ListAgentTasksConditions$inboundSchema = exports.ListAgentTasksToolApprovalRequired$ = exports.ListAgentTasksToolApprovalRequired$outboundSchema = exports.ListAgentTasksToolApprovalRequired$inboundSchema = exports.ListAgentTasksModel$ = exports.ListAgentTasksModel$outboundSchema = exports.ListAgentTasksModel$inboundSchema = exports.ListAgentTasksRequest$ = exports.ListAgentTasksRequest$outboundSchema = exports.ListAgentTasksRequest$inboundSchema = exports.Status$ = exports.Status$outboundSchema = exports.Status$inboundSchema = exports.ListAgentTasksToolApprovalRequired = exports.Status = void 0;
39
+ exports.ListAgentTasksResponseFormat2$ = exports.ListAgentTasksResponseFormat2$outboundSchema = exports.ListAgentTasksResponseFormat2$inboundSchema = exports.ListAgentTasksResponseFormatAgentsType$ = exports.ListAgentTasksResponseFormatAgentsType$outboundSchema = exports.ListAgentTasksResponseFormatAgentsType$inboundSchema = exports.ListAgentTasksResponseFormat3$ = exports.ListAgentTasksResponseFormat3$outboundSchema = exports.ListAgentTasksResponseFormat3$inboundSchema = exports.ListAgentTasksResponseFormatJsonSchema$ = exports.ListAgentTasksResponseFormatJsonSchema$outboundSchema = exports.ListAgentTasksResponseFormatJsonSchema$inboundSchema = exports.ListAgentTasksResponseFormatAgentsResponseType$ = exports.ListAgentTasksResponseFormatAgentsResponseType$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponseType$inboundSchema = exports.ListAgentTasksAudio$ = exports.ListAgentTasksAudio$outboundSchema = exports.ListAgentTasksAudio$inboundSchema = exports.ListAgentTasksFormat$ = exports.ListAgentTasksFormat$outboundSchema = exports.ListAgentTasksFormat$inboundSchema = exports.ListAgentTasksVoice$ = exports.ListAgentTasksVoice$outboundSchema = exports.ListAgentTasksVoice$inboundSchema = exports.ListAgentTasksRequest$ = exports.ListAgentTasksRequest$outboundSchema = exports.ListAgentTasksRequest$inboundSchema = exports.Status$ = exports.Status$outboundSchema = exports.Status$inboundSchema = exports.ListAgentTasksToolApprovalRequired = exports.ListAgentTasksFallbackModelsModalities = exports.ListAgentTasksToolChoiceAgents1 = exports.ListAgentTasksToolChoiceAgentsType = exports.ListAgentTasksFallbackModelsType = exports.ListAgentTasksResponseFormatAgentsResponse200Type = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType = exports.ListAgentTasksFallbackModelsFormat = exports.ListAgentTasksFallbackModelsVoice = exports.ListAgentTasksModalities = exports.ListAgentTasksToolChoice1 = exports.ListAgentTasksToolChoiceType = exports.ListAgentTasksType = exports.ListAgentTasksResponseFormatType = exports.ListAgentTasksResponseFormatAgentsType = exports.ListAgentTasksResponseFormatAgentsResponseType = exports.ListAgentTasksFormat = exports.ListAgentTasksVoice = exports.Status = void 0;
40
+ exports.ListAgentTasksFallbackModelsFormat$outboundSchema = exports.ListAgentTasksFallbackModelsFormat$inboundSchema = exports.ListAgentTasksFallbackModelsVoice$ = exports.ListAgentTasksFallbackModelsVoice$outboundSchema = exports.ListAgentTasksFallbackModelsVoice$inboundSchema = exports.ListAgentTasksParameters$ = exports.ListAgentTasksParameters$outboundSchema = exports.ListAgentTasksParameters$inboundSchema = exports.ListAgentTasksWebSearchOptions$ = exports.ListAgentTasksWebSearchOptions$outboundSchema = exports.ListAgentTasksWebSearchOptions$inboundSchema = exports.ListAgentTasksModalities$ = exports.ListAgentTasksModalities$outboundSchema = exports.ListAgentTasksModalities$inboundSchema = exports.ListAgentTasksToolChoice$ = exports.ListAgentTasksToolChoice$outboundSchema = exports.ListAgentTasksToolChoice$inboundSchema = exports.ListAgentTasksToolChoice1$ = exports.ListAgentTasksToolChoice1$outboundSchema = exports.ListAgentTasksToolChoice1$inboundSchema = exports.ListAgentTasksToolChoice2$ = exports.ListAgentTasksToolChoice2$outboundSchema = exports.ListAgentTasksToolChoice2$inboundSchema = exports.ListAgentTasksToolChoiceFunction$ = exports.ListAgentTasksToolChoiceFunction$outboundSchema = exports.ListAgentTasksToolChoiceFunction$inboundSchema = exports.ListAgentTasksToolChoiceType$ = exports.ListAgentTasksToolChoiceType$outboundSchema = exports.ListAgentTasksToolChoiceType$inboundSchema = exports.ListAgentTasksThinking$ = exports.ListAgentTasksThinking$outboundSchema = exports.ListAgentTasksThinking$inboundSchema = exports.ListAgentTasksType$ = exports.ListAgentTasksType$outboundSchema = exports.ListAgentTasksType$inboundSchema = exports.ListAgentTasksStreamOptions$ = exports.ListAgentTasksStreamOptions$outboundSchema = exports.ListAgentTasksStreamOptions$inboundSchema = exports.ListAgentTasksStop$ = exports.ListAgentTasksStop$outboundSchema = exports.ListAgentTasksStop$inboundSchema = exports.ListAgentTasksResponseFormat$ = exports.ListAgentTasksResponseFormat$outboundSchema = exports.ListAgentTasksResponseFormat$inboundSchema = exports.ListAgentTasksResponseFormat1$ = exports.ListAgentTasksResponseFormat1$outboundSchema = exports.ListAgentTasksResponseFormat1$inboundSchema = exports.ListAgentTasksResponseFormatType$ = exports.ListAgentTasksResponseFormatType$outboundSchema = exports.ListAgentTasksResponseFormatType$inboundSchema = void 0;
41
+ exports.ListAgentTasksToolChoiceAgents1$inboundSchema = exports.ListAgentTasksToolChoiceAgents2$ = exports.ListAgentTasksToolChoiceAgents2$outboundSchema = exports.ListAgentTasksToolChoiceAgents2$inboundSchema = exports.ListAgentTasksToolChoiceAgentsFunction$ = exports.ListAgentTasksToolChoiceAgentsFunction$outboundSchema = exports.ListAgentTasksToolChoiceAgentsFunction$inboundSchema = exports.ListAgentTasksToolChoiceAgentsType$ = exports.ListAgentTasksToolChoiceAgentsType$outboundSchema = exports.ListAgentTasksToolChoiceAgentsType$inboundSchema = exports.ListAgentTasksFallbackModelsThinking$ = exports.ListAgentTasksFallbackModelsThinking$outboundSchema = exports.ListAgentTasksFallbackModelsThinking$inboundSchema = exports.ListAgentTasksFallbackModelsType$ = exports.ListAgentTasksFallbackModelsType$outboundSchema = exports.ListAgentTasksFallbackModelsType$inboundSchema = exports.ListAgentTasksFallbackModelsStreamOptions$ = exports.ListAgentTasksFallbackModelsStreamOptions$outboundSchema = exports.ListAgentTasksFallbackModelsStreamOptions$inboundSchema = exports.ListAgentTasksFallbackModelsStop$ = exports.ListAgentTasksFallbackModelsStop$outboundSchema = exports.ListAgentTasksFallbackModelsStop$inboundSchema = exports.ListAgentTasksFallbackModelsResponseFormat$ = exports.ListAgentTasksFallbackModelsResponseFormat$outboundSchema = exports.ListAgentTasksFallbackModelsResponseFormat$inboundSchema = exports.ListAgentTasksResponseFormatAgents1$ = exports.ListAgentTasksResponseFormatAgents1$outboundSchema = exports.ListAgentTasksResponseFormatAgents1$inboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200Type$ = exports.ListAgentTasksResponseFormatAgentsResponse200Type$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200Type$inboundSchema = exports.ListAgentTasksResponseFormatAgents2$ = exports.ListAgentTasksResponseFormatAgents2$outboundSchema = exports.ListAgentTasksResponseFormatAgents2$inboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$ = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema = exports.ListAgentTasksResponseFormatAgents3$ = exports.ListAgentTasksResponseFormatAgents3$outboundSchema = exports.ListAgentTasksResponseFormatAgents3$inboundSchema = exports.ListAgentTasksResponseFormatAgentsJsonSchema$ = exports.ListAgentTasksResponseFormatAgentsJsonSchema$outboundSchema = exports.ListAgentTasksResponseFormatAgentsJsonSchema$inboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$ = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.ListAgentTasksFallbackModelsAudio$ = exports.ListAgentTasksFallbackModelsAudio$outboundSchema = exports.ListAgentTasksFallbackModelsAudio$inboundSchema = exports.ListAgentTasksFallbackModelsFormat$ = void 0;
42
+ exports.Tasks$ = exports.Tasks$outboundSchema = exports.Tasks$inboundSchema = exports.ListAgentTasksMetrics$ = exports.ListAgentTasksMetrics$outboundSchema = exports.ListAgentTasksMetrics$inboundSchema = exports.ListAgentTasksState$ = exports.ListAgentTasksState$outboundSchema = exports.ListAgentTasksState$inboundSchema = exports.ListAgentTasksMemory$ = exports.ListAgentTasksMemory$outboundSchema = exports.ListAgentTasksMemory$inboundSchema = exports.AgentManifestSnapshot$ = exports.AgentManifestSnapshot$outboundSchema = exports.AgentManifestSnapshot$inboundSchema = exports.ListAgentTasksSettings$ = exports.ListAgentTasksSettings$outboundSchema = exports.ListAgentTasksSettings$inboundSchema = exports.ListAgentTasksTools$ = exports.ListAgentTasksTools$outboundSchema = exports.ListAgentTasksTools$inboundSchema = exports.ListAgentTasksConditions$ = exports.ListAgentTasksConditions$outboundSchema = exports.ListAgentTasksConditions$inboundSchema = exports.ListAgentTasksToolApprovalRequired$ = exports.ListAgentTasksToolApprovalRequired$outboundSchema = exports.ListAgentTasksToolApprovalRequired$inboundSchema = exports.ListAgentTasksModel$ = exports.ListAgentTasksModel$outboundSchema = exports.ListAgentTasksModel$inboundSchema = exports.ListAgentTasksFallbackModels$ = exports.ListAgentTasksFallbackModels$outboundSchema = exports.ListAgentTasksFallbackModels$inboundSchema = exports.ListAgentTasksFallbackModels2$ = exports.ListAgentTasksFallbackModels2$outboundSchema = exports.ListAgentTasksFallbackModels2$inboundSchema = exports.ListAgentTasksFallbackModelsParameters$ = exports.ListAgentTasksFallbackModelsParameters$outboundSchema = exports.ListAgentTasksFallbackModelsParameters$inboundSchema = exports.ListAgentTasksFallbackModelsWebSearchOptions$ = exports.ListAgentTasksFallbackModelsWebSearchOptions$outboundSchema = exports.ListAgentTasksFallbackModelsWebSearchOptions$inboundSchema = exports.ListAgentTasksFallbackModelsModalities$ = exports.ListAgentTasksFallbackModelsModalities$outboundSchema = exports.ListAgentTasksFallbackModelsModalities$inboundSchema = exports.ListAgentTasksFallbackModelsToolChoice$ = exports.ListAgentTasksFallbackModelsToolChoice$outboundSchema = exports.ListAgentTasksFallbackModelsToolChoice$inboundSchema = exports.ListAgentTasksToolChoiceAgents1$ = exports.ListAgentTasksToolChoiceAgents1$outboundSchema = void 0;
43
+ exports.ListAgentTasksResponseBody$ = exports.ListAgentTasksResponseBody$outboundSchema = exports.ListAgentTasksResponseBody$inboundSchema = void 0;
40
44
  exports.listAgentTasksRequestToJSON = listAgentTasksRequestToJSON;
41
45
  exports.listAgentTasksRequestFromJSON = listAgentTasksRequestFromJSON;
46
+ exports.listAgentTasksAudioToJSON = listAgentTasksAudioToJSON;
47
+ exports.listAgentTasksAudioFromJSON = listAgentTasksAudioFromJSON;
48
+ exports.listAgentTasksResponseFormatJsonSchemaToJSON = listAgentTasksResponseFormatJsonSchemaToJSON;
49
+ exports.listAgentTasksResponseFormatJsonSchemaFromJSON = listAgentTasksResponseFormatJsonSchemaFromJSON;
50
+ exports.listAgentTasksResponseFormat3ToJSON = listAgentTasksResponseFormat3ToJSON;
51
+ exports.listAgentTasksResponseFormat3FromJSON = listAgentTasksResponseFormat3FromJSON;
52
+ exports.listAgentTasksResponseFormat2ToJSON = listAgentTasksResponseFormat2ToJSON;
53
+ exports.listAgentTasksResponseFormat2FromJSON = listAgentTasksResponseFormat2FromJSON;
54
+ exports.listAgentTasksResponseFormat1ToJSON = listAgentTasksResponseFormat1ToJSON;
55
+ exports.listAgentTasksResponseFormat1FromJSON = listAgentTasksResponseFormat1FromJSON;
56
+ exports.listAgentTasksResponseFormatToJSON = listAgentTasksResponseFormatToJSON;
57
+ exports.listAgentTasksResponseFormatFromJSON = listAgentTasksResponseFormatFromJSON;
58
+ exports.listAgentTasksStopToJSON = listAgentTasksStopToJSON;
59
+ exports.listAgentTasksStopFromJSON = listAgentTasksStopFromJSON;
60
+ exports.listAgentTasksStreamOptionsToJSON = listAgentTasksStreamOptionsToJSON;
61
+ exports.listAgentTasksStreamOptionsFromJSON = listAgentTasksStreamOptionsFromJSON;
62
+ exports.listAgentTasksThinkingToJSON = listAgentTasksThinkingToJSON;
63
+ exports.listAgentTasksThinkingFromJSON = listAgentTasksThinkingFromJSON;
64
+ exports.listAgentTasksToolChoiceFunctionToJSON = listAgentTasksToolChoiceFunctionToJSON;
65
+ exports.listAgentTasksToolChoiceFunctionFromJSON = listAgentTasksToolChoiceFunctionFromJSON;
66
+ exports.listAgentTasksToolChoice2ToJSON = listAgentTasksToolChoice2ToJSON;
67
+ exports.listAgentTasksToolChoice2FromJSON = listAgentTasksToolChoice2FromJSON;
68
+ exports.listAgentTasksToolChoiceToJSON = listAgentTasksToolChoiceToJSON;
69
+ exports.listAgentTasksToolChoiceFromJSON = listAgentTasksToolChoiceFromJSON;
70
+ exports.listAgentTasksWebSearchOptionsToJSON = listAgentTasksWebSearchOptionsToJSON;
71
+ exports.listAgentTasksWebSearchOptionsFromJSON = listAgentTasksWebSearchOptionsFromJSON;
72
+ exports.listAgentTasksParametersToJSON = listAgentTasksParametersToJSON;
73
+ exports.listAgentTasksParametersFromJSON = listAgentTasksParametersFromJSON;
74
+ exports.listAgentTasksFallbackModelsAudioToJSON = listAgentTasksFallbackModelsAudioToJSON;
75
+ exports.listAgentTasksFallbackModelsAudioFromJSON = listAgentTasksFallbackModelsAudioFromJSON;
76
+ exports.listAgentTasksResponseFormatAgentsJsonSchemaToJSON = listAgentTasksResponseFormatAgentsJsonSchemaToJSON;
77
+ exports.listAgentTasksResponseFormatAgentsJsonSchemaFromJSON = listAgentTasksResponseFormatAgentsJsonSchemaFromJSON;
78
+ exports.listAgentTasksResponseFormatAgents3ToJSON = listAgentTasksResponseFormatAgents3ToJSON;
79
+ exports.listAgentTasksResponseFormatAgents3FromJSON = listAgentTasksResponseFormatAgents3FromJSON;
80
+ exports.listAgentTasksResponseFormatAgents2ToJSON = listAgentTasksResponseFormatAgents2ToJSON;
81
+ exports.listAgentTasksResponseFormatAgents2FromJSON = listAgentTasksResponseFormatAgents2FromJSON;
82
+ exports.listAgentTasksResponseFormatAgents1ToJSON = listAgentTasksResponseFormatAgents1ToJSON;
83
+ exports.listAgentTasksResponseFormatAgents1FromJSON = listAgentTasksResponseFormatAgents1FromJSON;
84
+ exports.listAgentTasksFallbackModelsResponseFormatToJSON = listAgentTasksFallbackModelsResponseFormatToJSON;
85
+ exports.listAgentTasksFallbackModelsResponseFormatFromJSON = listAgentTasksFallbackModelsResponseFormatFromJSON;
86
+ exports.listAgentTasksFallbackModelsStopToJSON = listAgentTasksFallbackModelsStopToJSON;
87
+ exports.listAgentTasksFallbackModelsStopFromJSON = listAgentTasksFallbackModelsStopFromJSON;
88
+ exports.listAgentTasksFallbackModelsStreamOptionsToJSON = listAgentTasksFallbackModelsStreamOptionsToJSON;
89
+ exports.listAgentTasksFallbackModelsStreamOptionsFromJSON = listAgentTasksFallbackModelsStreamOptionsFromJSON;
90
+ exports.listAgentTasksFallbackModelsThinkingToJSON = listAgentTasksFallbackModelsThinkingToJSON;
91
+ exports.listAgentTasksFallbackModelsThinkingFromJSON = listAgentTasksFallbackModelsThinkingFromJSON;
92
+ exports.listAgentTasksToolChoiceAgentsFunctionToJSON = listAgentTasksToolChoiceAgentsFunctionToJSON;
93
+ exports.listAgentTasksToolChoiceAgentsFunctionFromJSON = listAgentTasksToolChoiceAgentsFunctionFromJSON;
94
+ exports.listAgentTasksToolChoiceAgents2ToJSON = listAgentTasksToolChoiceAgents2ToJSON;
95
+ exports.listAgentTasksToolChoiceAgents2FromJSON = listAgentTasksToolChoiceAgents2FromJSON;
96
+ exports.listAgentTasksFallbackModelsToolChoiceToJSON = listAgentTasksFallbackModelsToolChoiceToJSON;
97
+ exports.listAgentTasksFallbackModelsToolChoiceFromJSON = listAgentTasksFallbackModelsToolChoiceFromJSON;
98
+ exports.listAgentTasksFallbackModelsWebSearchOptionsToJSON = listAgentTasksFallbackModelsWebSearchOptionsToJSON;
99
+ exports.listAgentTasksFallbackModelsWebSearchOptionsFromJSON = listAgentTasksFallbackModelsWebSearchOptionsFromJSON;
100
+ exports.listAgentTasksFallbackModelsParametersToJSON = listAgentTasksFallbackModelsParametersToJSON;
101
+ exports.listAgentTasksFallbackModelsParametersFromJSON = listAgentTasksFallbackModelsParametersFromJSON;
102
+ exports.listAgentTasksFallbackModels2ToJSON = listAgentTasksFallbackModels2ToJSON;
103
+ exports.listAgentTasksFallbackModels2FromJSON = listAgentTasksFallbackModels2FromJSON;
104
+ exports.listAgentTasksFallbackModelsToJSON = listAgentTasksFallbackModelsToJSON;
105
+ exports.listAgentTasksFallbackModelsFromJSON = listAgentTasksFallbackModelsFromJSON;
42
106
  exports.listAgentTasksModelToJSON = listAgentTasksModelToJSON;
43
107
  exports.listAgentTasksModelFromJSON = listAgentTasksModelFromJSON;
44
108
  exports.listAgentTasksConditionsToJSON = listAgentTasksConditionsToJSON;
@@ -71,6 +135,110 @@ exports.Status = {
71
135
  InProgress: "in_progress",
72
136
  Errored: "errored",
73
137
  };
138
+ /**
139
+ * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
140
+ */
141
+ exports.ListAgentTasksVoice = {
142
+ Alloy: "alloy",
143
+ Echo: "echo",
144
+ Fable: "fable",
145
+ Onyx: "onyx",
146
+ Nova: "nova",
147
+ Shimmer: "shimmer",
148
+ };
149
+ /**
150
+ * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
151
+ */
152
+ exports.ListAgentTasksFormat = {
153
+ Wav: "wav",
154
+ Mp3: "mp3",
155
+ Flac: "flac",
156
+ Opus: "opus",
157
+ Pcm16: "pcm16",
158
+ };
159
+ exports.ListAgentTasksResponseFormatAgentsResponseType = {
160
+ JsonSchema: "json_schema",
161
+ };
162
+ exports.ListAgentTasksResponseFormatAgentsType = {
163
+ JsonObject: "json_object",
164
+ };
165
+ exports.ListAgentTasksResponseFormatType = {
166
+ Text: "text",
167
+ };
168
+ /**
169
+ * Enables or disables the thinking mode capability
170
+ */
171
+ exports.ListAgentTasksType = {
172
+ Enabled: "enabled",
173
+ Disabled: "disabled",
174
+ };
175
+ /**
176
+ * The type of the tool. Currently, only function is supported.
177
+ */
178
+ exports.ListAgentTasksToolChoiceType = {
179
+ Function: "function",
180
+ };
181
+ exports.ListAgentTasksToolChoice1 = {
182
+ None: "none",
183
+ Auto: "auto",
184
+ Required: "required",
185
+ };
186
+ exports.ListAgentTasksModalities = {
187
+ Text: "text",
188
+ Audio: "audio",
189
+ };
190
+ /**
191
+ * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
192
+ */
193
+ exports.ListAgentTasksFallbackModelsVoice = {
194
+ Alloy: "alloy",
195
+ Echo: "echo",
196
+ Fable: "fable",
197
+ Onyx: "onyx",
198
+ Nova: "nova",
199
+ Shimmer: "shimmer",
200
+ };
201
+ /**
202
+ * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
203
+ */
204
+ exports.ListAgentTasksFallbackModelsFormat = {
205
+ Wav: "wav",
206
+ Mp3: "mp3",
207
+ Flac: "flac",
208
+ Opus: "opus",
209
+ Pcm16: "pcm16",
210
+ };
211
+ exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType = {
212
+ JsonSchema: "json_schema",
213
+ };
214
+ exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType = {
215
+ JsonObject: "json_object",
216
+ };
217
+ exports.ListAgentTasksResponseFormatAgentsResponse200Type = {
218
+ Text: "text",
219
+ };
220
+ /**
221
+ * Enables or disables the thinking mode capability
222
+ */
223
+ exports.ListAgentTasksFallbackModelsType = {
224
+ Enabled: "enabled",
225
+ Disabled: "disabled",
226
+ };
227
+ /**
228
+ * The type of the tool. Currently, only function is supported.
229
+ */
230
+ exports.ListAgentTasksToolChoiceAgentsType = {
231
+ Function: "function",
232
+ };
233
+ exports.ListAgentTasksToolChoiceAgents1 = {
234
+ None: "none",
235
+ Auto: "auto",
236
+ Required: "required",
237
+ };
238
+ exports.ListAgentTasksFallbackModelsModalities = {
239
+ Text: "text",
240
+ Audio: "audio",
241
+ };
74
242
  /**
75
243
  * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
76
244
  */
@@ -141,31 +309,1333 @@ function listAgentTasksRequestFromJSON(jsonString) {
141
309
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksRequest' from JSON`);
142
310
  }
143
311
  /** @internal */
312
+ exports.ListAgentTasksVoice$inboundSchema = z.nativeEnum(exports.ListAgentTasksVoice);
313
+ /** @internal */
314
+ exports.ListAgentTasksVoice$outboundSchema = exports.ListAgentTasksVoice$inboundSchema;
315
+ /**
316
+ * @internal
317
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
318
+ */
319
+ var ListAgentTasksVoice$;
320
+ (function (ListAgentTasksVoice$) {
321
+ /** @deprecated use `ListAgentTasksVoice$inboundSchema` instead. */
322
+ ListAgentTasksVoice$.inboundSchema = exports.ListAgentTasksVoice$inboundSchema;
323
+ /** @deprecated use `ListAgentTasksVoice$outboundSchema` instead. */
324
+ ListAgentTasksVoice$.outboundSchema = exports.ListAgentTasksVoice$outboundSchema;
325
+ })(ListAgentTasksVoice$ || (exports.ListAgentTasksVoice$ = ListAgentTasksVoice$ = {}));
326
+ /** @internal */
327
+ exports.ListAgentTasksFormat$inboundSchema = z.nativeEnum(exports.ListAgentTasksFormat);
328
+ /** @internal */
329
+ exports.ListAgentTasksFormat$outboundSchema = exports.ListAgentTasksFormat$inboundSchema;
330
+ /**
331
+ * @internal
332
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
333
+ */
334
+ var ListAgentTasksFormat$;
335
+ (function (ListAgentTasksFormat$) {
336
+ /** @deprecated use `ListAgentTasksFormat$inboundSchema` instead. */
337
+ ListAgentTasksFormat$.inboundSchema = exports.ListAgentTasksFormat$inboundSchema;
338
+ /** @deprecated use `ListAgentTasksFormat$outboundSchema` instead. */
339
+ ListAgentTasksFormat$.outboundSchema = exports.ListAgentTasksFormat$outboundSchema;
340
+ })(ListAgentTasksFormat$ || (exports.ListAgentTasksFormat$ = ListAgentTasksFormat$ = {}));
341
+ /** @internal */
342
+ exports.ListAgentTasksAudio$inboundSchema = z.object({
343
+ voice: exports.ListAgentTasksVoice$inboundSchema,
344
+ format: exports.ListAgentTasksFormat$inboundSchema,
345
+ });
346
+ /** @internal */
347
+ exports.ListAgentTasksAudio$outboundSchema = z.object({
348
+ voice: exports.ListAgentTasksVoice$outboundSchema,
349
+ format: exports.ListAgentTasksFormat$outboundSchema,
350
+ });
351
+ /**
352
+ * @internal
353
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
354
+ */
355
+ var ListAgentTasksAudio$;
356
+ (function (ListAgentTasksAudio$) {
357
+ /** @deprecated use `ListAgentTasksAudio$inboundSchema` instead. */
358
+ ListAgentTasksAudio$.inboundSchema = exports.ListAgentTasksAudio$inboundSchema;
359
+ /** @deprecated use `ListAgentTasksAudio$outboundSchema` instead. */
360
+ ListAgentTasksAudio$.outboundSchema = exports.ListAgentTasksAudio$outboundSchema;
361
+ })(ListAgentTasksAudio$ || (exports.ListAgentTasksAudio$ = ListAgentTasksAudio$ = {}));
362
+ function listAgentTasksAudioToJSON(listAgentTasksAudio) {
363
+ return JSON.stringify(exports.ListAgentTasksAudio$outboundSchema.parse(listAgentTasksAudio));
364
+ }
365
+ function listAgentTasksAudioFromJSON(jsonString) {
366
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksAudio' from JSON`);
367
+ }
368
+ /** @internal */
369
+ exports.ListAgentTasksResponseFormatAgentsResponseType$inboundSchema = z
370
+ .nativeEnum(exports.ListAgentTasksResponseFormatAgentsResponseType);
371
+ /** @internal */
372
+ exports.ListAgentTasksResponseFormatAgentsResponseType$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponseType$inboundSchema;
373
+ /**
374
+ * @internal
375
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
376
+ */
377
+ var ListAgentTasksResponseFormatAgentsResponseType$;
378
+ (function (ListAgentTasksResponseFormatAgentsResponseType$) {
379
+ /** @deprecated use `ListAgentTasksResponseFormatAgentsResponseType$inboundSchema` instead. */
380
+ ListAgentTasksResponseFormatAgentsResponseType$.inboundSchema = exports.ListAgentTasksResponseFormatAgentsResponseType$inboundSchema;
381
+ /** @deprecated use `ListAgentTasksResponseFormatAgentsResponseType$outboundSchema` instead. */
382
+ ListAgentTasksResponseFormatAgentsResponseType$.outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponseType$outboundSchema;
383
+ })(ListAgentTasksResponseFormatAgentsResponseType$ || (exports.ListAgentTasksResponseFormatAgentsResponseType$ = ListAgentTasksResponseFormatAgentsResponseType$ = {}));
384
+ /** @internal */
385
+ exports.ListAgentTasksResponseFormatJsonSchema$inboundSchema = z.object({
386
+ description: z.string().optional(),
387
+ name: z.string(),
388
+ schema: z.any().optional(),
389
+ strict: z.boolean().optional(),
390
+ });
391
+ /** @internal */
392
+ exports.ListAgentTasksResponseFormatJsonSchema$outboundSchema = z.object({
393
+ description: z.string().optional(),
394
+ name: z.string(),
395
+ schema: z.any().optional(),
396
+ strict: z.boolean().optional(),
397
+ });
398
+ /**
399
+ * @internal
400
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
401
+ */
402
+ var ListAgentTasksResponseFormatJsonSchema$;
403
+ (function (ListAgentTasksResponseFormatJsonSchema$) {
404
+ /** @deprecated use `ListAgentTasksResponseFormatJsonSchema$inboundSchema` instead. */
405
+ ListAgentTasksResponseFormatJsonSchema$.inboundSchema = exports.ListAgentTasksResponseFormatJsonSchema$inboundSchema;
406
+ /** @deprecated use `ListAgentTasksResponseFormatJsonSchema$outboundSchema` instead. */
407
+ ListAgentTasksResponseFormatJsonSchema$.outboundSchema = exports.ListAgentTasksResponseFormatJsonSchema$outboundSchema;
408
+ })(ListAgentTasksResponseFormatJsonSchema$ || (exports.ListAgentTasksResponseFormatJsonSchema$ = ListAgentTasksResponseFormatJsonSchema$ = {}));
409
+ function listAgentTasksResponseFormatJsonSchemaToJSON(listAgentTasksResponseFormatJsonSchema) {
410
+ return JSON.stringify(exports.ListAgentTasksResponseFormatJsonSchema$outboundSchema.parse(listAgentTasksResponseFormatJsonSchema));
411
+ }
412
+ function listAgentTasksResponseFormatJsonSchemaFromJSON(jsonString) {
413
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormatJsonSchema' from JSON`);
414
+ }
415
+ /** @internal */
416
+ exports.ListAgentTasksResponseFormat3$inboundSchema = z.object({
417
+ type: exports.ListAgentTasksResponseFormatAgentsResponseType$inboundSchema,
418
+ json_schema: z.lazy(() => exports.ListAgentTasksResponseFormatJsonSchema$inboundSchema),
419
+ }).transform((v) => {
420
+ return (0, primitives_js_1.remap)(v, {
421
+ "json_schema": "jsonSchema",
422
+ });
423
+ });
424
+ /** @internal */
425
+ exports.ListAgentTasksResponseFormat3$outboundSchema = z.object({
426
+ type: exports.ListAgentTasksResponseFormatAgentsResponseType$outboundSchema,
427
+ jsonSchema: z.lazy(() => exports.ListAgentTasksResponseFormatJsonSchema$outboundSchema),
428
+ }).transform((v) => {
429
+ return (0, primitives_js_1.remap)(v, {
430
+ jsonSchema: "json_schema",
431
+ });
432
+ });
433
+ /**
434
+ * @internal
435
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
436
+ */
437
+ var ListAgentTasksResponseFormat3$;
438
+ (function (ListAgentTasksResponseFormat3$) {
439
+ /** @deprecated use `ListAgentTasksResponseFormat3$inboundSchema` instead. */
440
+ ListAgentTasksResponseFormat3$.inboundSchema = exports.ListAgentTasksResponseFormat3$inboundSchema;
441
+ /** @deprecated use `ListAgentTasksResponseFormat3$outboundSchema` instead. */
442
+ ListAgentTasksResponseFormat3$.outboundSchema = exports.ListAgentTasksResponseFormat3$outboundSchema;
443
+ })(ListAgentTasksResponseFormat3$ || (exports.ListAgentTasksResponseFormat3$ = ListAgentTasksResponseFormat3$ = {}));
444
+ function listAgentTasksResponseFormat3ToJSON(listAgentTasksResponseFormat3) {
445
+ return JSON.stringify(exports.ListAgentTasksResponseFormat3$outboundSchema.parse(listAgentTasksResponseFormat3));
446
+ }
447
+ function listAgentTasksResponseFormat3FromJSON(jsonString) {
448
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormat3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormat3' from JSON`);
449
+ }
450
+ /** @internal */
451
+ exports.ListAgentTasksResponseFormatAgentsType$inboundSchema = z.nativeEnum(exports.ListAgentTasksResponseFormatAgentsType);
452
+ /** @internal */
453
+ exports.ListAgentTasksResponseFormatAgentsType$outboundSchema = exports.ListAgentTasksResponseFormatAgentsType$inboundSchema;
454
+ /**
455
+ * @internal
456
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
457
+ */
458
+ var ListAgentTasksResponseFormatAgentsType$;
459
+ (function (ListAgentTasksResponseFormatAgentsType$) {
460
+ /** @deprecated use `ListAgentTasksResponseFormatAgentsType$inboundSchema` instead. */
461
+ ListAgentTasksResponseFormatAgentsType$.inboundSchema = exports.ListAgentTasksResponseFormatAgentsType$inboundSchema;
462
+ /** @deprecated use `ListAgentTasksResponseFormatAgentsType$outboundSchema` instead. */
463
+ ListAgentTasksResponseFormatAgentsType$.outboundSchema = exports.ListAgentTasksResponseFormatAgentsType$outboundSchema;
464
+ })(ListAgentTasksResponseFormatAgentsType$ || (exports.ListAgentTasksResponseFormatAgentsType$ = ListAgentTasksResponseFormatAgentsType$ = {}));
465
+ /** @internal */
466
+ exports.ListAgentTasksResponseFormat2$inboundSchema = z.object({
467
+ type: exports.ListAgentTasksResponseFormatAgentsType$inboundSchema,
468
+ });
469
+ /** @internal */
470
+ exports.ListAgentTasksResponseFormat2$outboundSchema = z.object({
471
+ type: exports.ListAgentTasksResponseFormatAgentsType$outboundSchema,
472
+ });
473
+ /**
474
+ * @internal
475
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
476
+ */
477
+ var ListAgentTasksResponseFormat2$;
478
+ (function (ListAgentTasksResponseFormat2$) {
479
+ /** @deprecated use `ListAgentTasksResponseFormat2$inboundSchema` instead. */
480
+ ListAgentTasksResponseFormat2$.inboundSchema = exports.ListAgentTasksResponseFormat2$inboundSchema;
481
+ /** @deprecated use `ListAgentTasksResponseFormat2$outboundSchema` instead. */
482
+ ListAgentTasksResponseFormat2$.outboundSchema = exports.ListAgentTasksResponseFormat2$outboundSchema;
483
+ })(ListAgentTasksResponseFormat2$ || (exports.ListAgentTasksResponseFormat2$ = ListAgentTasksResponseFormat2$ = {}));
484
+ function listAgentTasksResponseFormat2ToJSON(listAgentTasksResponseFormat2) {
485
+ return JSON.stringify(exports.ListAgentTasksResponseFormat2$outboundSchema.parse(listAgentTasksResponseFormat2));
486
+ }
487
+ function listAgentTasksResponseFormat2FromJSON(jsonString) {
488
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormat2' from JSON`);
489
+ }
490
+ /** @internal */
491
+ exports.ListAgentTasksResponseFormatType$inboundSchema = z.nativeEnum(exports.ListAgentTasksResponseFormatType);
492
+ /** @internal */
493
+ exports.ListAgentTasksResponseFormatType$outboundSchema = exports.ListAgentTasksResponseFormatType$inboundSchema;
494
+ /**
495
+ * @internal
496
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
497
+ */
498
+ var ListAgentTasksResponseFormatType$;
499
+ (function (ListAgentTasksResponseFormatType$) {
500
+ /** @deprecated use `ListAgentTasksResponseFormatType$inboundSchema` instead. */
501
+ ListAgentTasksResponseFormatType$.inboundSchema = exports.ListAgentTasksResponseFormatType$inboundSchema;
502
+ /** @deprecated use `ListAgentTasksResponseFormatType$outboundSchema` instead. */
503
+ ListAgentTasksResponseFormatType$.outboundSchema = exports.ListAgentTasksResponseFormatType$outboundSchema;
504
+ })(ListAgentTasksResponseFormatType$ || (exports.ListAgentTasksResponseFormatType$ = ListAgentTasksResponseFormatType$ = {}));
505
+ /** @internal */
506
+ exports.ListAgentTasksResponseFormat1$inboundSchema = z.object({
507
+ type: exports.ListAgentTasksResponseFormatType$inboundSchema,
508
+ });
509
+ /** @internal */
510
+ exports.ListAgentTasksResponseFormat1$outboundSchema = z.object({
511
+ type: exports.ListAgentTasksResponseFormatType$outboundSchema,
512
+ });
513
+ /**
514
+ * @internal
515
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
516
+ */
517
+ var ListAgentTasksResponseFormat1$;
518
+ (function (ListAgentTasksResponseFormat1$) {
519
+ /** @deprecated use `ListAgentTasksResponseFormat1$inboundSchema` instead. */
520
+ ListAgentTasksResponseFormat1$.inboundSchema = exports.ListAgentTasksResponseFormat1$inboundSchema;
521
+ /** @deprecated use `ListAgentTasksResponseFormat1$outboundSchema` instead. */
522
+ ListAgentTasksResponseFormat1$.outboundSchema = exports.ListAgentTasksResponseFormat1$outboundSchema;
523
+ })(ListAgentTasksResponseFormat1$ || (exports.ListAgentTasksResponseFormat1$ = ListAgentTasksResponseFormat1$ = {}));
524
+ function listAgentTasksResponseFormat1ToJSON(listAgentTasksResponseFormat1) {
525
+ return JSON.stringify(exports.ListAgentTasksResponseFormat1$outboundSchema.parse(listAgentTasksResponseFormat1));
526
+ }
527
+ function listAgentTasksResponseFormat1FromJSON(jsonString) {
528
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormat1' from JSON`);
529
+ }
530
+ /** @internal */
531
+ exports.ListAgentTasksResponseFormat$inboundSchema = z.union([
532
+ z.lazy(() => exports.ListAgentTasksResponseFormat3$inboundSchema),
533
+ z.lazy(() => exports.ListAgentTasksResponseFormat1$inboundSchema),
534
+ z.lazy(() => exports.ListAgentTasksResponseFormat2$inboundSchema),
535
+ ]);
536
+ /** @internal */
537
+ exports.ListAgentTasksResponseFormat$outboundSchema = z.union([
538
+ z.lazy(() => exports.ListAgentTasksResponseFormat3$outboundSchema),
539
+ z.lazy(() => exports.ListAgentTasksResponseFormat1$outboundSchema),
540
+ z.lazy(() => exports.ListAgentTasksResponseFormat2$outboundSchema),
541
+ ]);
542
+ /**
543
+ * @internal
544
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
545
+ */
546
+ var ListAgentTasksResponseFormat$;
547
+ (function (ListAgentTasksResponseFormat$) {
548
+ /** @deprecated use `ListAgentTasksResponseFormat$inboundSchema` instead. */
549
+ ListAgentTasksResponseFormat$.inboundSchema = exports.ListAgentTasksResponseFormat$inboundSchema;
550
+ /** @deprecated use `ListAgentTasksResponseFormat$outboundSchema` instead. */
551
+ ListAgentTasksResponseFormat$.outboundSchema = exports.ListAgentTasksResponseFormat$outboundSchema;
552
+ })(ListAgentTasksResponseFormat$ || (exports.ListAgentTasksResponseFormat$ = ListAgentTasksResponseFormat$ = {}));
553
+ function listAgentTasksResponseFormatToJSON(listAgentTasksResponseFormat) {
554
+ return JSON.stringify(exports.ListAgentTasksResponseFormat$outboundSchema.parse(listAgentTasksResponseFormat));
555
+ }
556
+ function listAgentTasksResponseFormatFromJSON(jsonString) {
557
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormat' from JSON`);
558
+ }
559
+ /** @internal */
560
+ exports.ListAgentTasksStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
561
+ /** @internal */
562
+ exports.ListAgentTasksStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
563
+ /**
564
+ * @internal
565
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
566
+ */
567
+ var ListAgentTasksStop$;
568
+ (function (ListAgentTasksStop$) {
569
+ /** @deprecated use `ListAgentTasksStop$inboundSchema` instead. */
570
+ ListAgentTasksStop$.inboundSchema = exports.ListAgentTasksStop$inboundSchema;
571
+ /** @deprecated use `ListAgentTasksStop$outboundSchema` instead. */
572
+ ListAgentTasksStop$.outboundSchema = exports.ListAgentTasksStop$outboundSchema;
573
+ })(ListAgentTasksStop$ || (exports.ListAgentTasksStop$ = ListAgentTasksStop$ = {}));
574
+ function listAgentTasksStopToJSON(listAgentTasksStop) {
575
+ return JSON.stringify(exports.ListAgentTasksStop$outboundSchema.parse(listAgentTasksStop));
576
+ }
577
+ function listAgentTasksStopFromJSON(jsonString) {
578
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksStop' from JSON`);
579
+ }
580
+ /** @internal */
581
+ exports.ListAgentTasksStreamOptions$inboundSchema = z.object({
582
+ include_usage: z.boolean().optional(),
583
+ }).transform((v) => {
584
+ return (0, primitives_js_1.remap)(v, {
585
+ "include_usage": "includeUsage",
586
+ });
587
+ });
588
+ /** @internal */
589
+ exports.ListAgentTasksStreamOptions$outboundSchema = z.object({
590
+ includeUsage: z.boolean().optional(),
591
+ }).transform((v) => {
592
+ return (0, primitives_js_1.remap)(v, {
593
+ includeUsage: "include_usage",
594
+ });
595
+ });
596
+ /**
597
+ * @internal
598
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
599
+ */
600
+ var ListAgentTasksStreamOptions$;
601
+ (function (ListAgentTasksStreamOptions$) {
602
+ /** @deprecated use `ListAgentTasksStreamOptions$inboundSchema` instead. */
603
+ ListAgentTasksStreamOptions$.inboundSchema = exports.ListAgentTasksStreamOptions$inboundSchema;
604
+ /** @deprecated use `ListAgentTasksStreamOptions$outboundSchema` instead. */
605
+ ListAgentTasksStreamOptions$.outboundSchema = exports.ListAgentTasksStreamOptions$outboundSchema;
606
+ })(ListAgentTasksStreamOptions$ || (exports.ListAgentTasksStreamOptions$ = ListAgentTasksStreamOptions$ = {}));
607
+ function listAgentTasksStreamOptionsToJSON(listAgentTasksStreamOptions) {
608
+ return JSON.stringify(exports.ListAgentTasksStreamOptions$outboundSchema.parse(listAgentTasksStreamOptions));
609
+ }
610
+ function listAgentTasksStreamOptionsFromJSON(jsonString) {
611
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksStreamOptions' from JSON`);
612
+ }
613
+ /** @internal */
614
+ exports.ListAgentTasksType$inboundSchema = z.nativeEnum(exports.ListAgentTasksType);
615
+ /** @internal */
616
+ exports.ListAgentTasksType$outboundSchema = exports.ListAgentTasksType$inboundSchema;
617
+ /**
618
+ * @internal
619
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
620
+ */
621
+ var ListAgentTasksType$;
622
+ (function (ListAgentTasksType$) {
623
+ /** @deprecated use `ListAgentTasksType$inboundSchema` instead. */
624
+ ListAgentTasksType$.inboundSchema = exports.ListAgentTasksType$inboundSchema;
625
+ /** @deprecated use `ListAgentTasksType$outboundSchema` instead. */
626
+ ListAgentTasksType$.outboundSchema = exports.ListAgentTasksType$outboundSchema;
627
+ })(ListAgentTasksType$ || (exports.ListAgentTasksType$ = ListAgentTasksType$ = {}));
628
+ /** @internal */
629
+ exports.ListAgentTasksThinking$inboundSchema = z.object({
630
+ type: exports.ListAgentTasksType$inboundSchema,
631
+ budget_tokens: z.number(),
632
+ }).transform((v) => {
633
+ return (0, primitives_js_1.remap)(v, {
634
+ "budget_tokens": "budgetTokens",
635
+ });
636
+ });
637
+ /** @internal */
638
+ exports.ListAgentTasksThinking$outboundSchema = z.object({
639
+ type: exports.ListAgentTasksType$outboundSchema,
640
+ budgetTokens: z.number(),
641
+ }).transform((v) => {
642
+ return (0, primitives_js_1.remap)(v, {
643
+ budgetTokens: "budget_tokens",
644
+ });
645
+ });
646
+ /**
647
+ * @internal
648
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
649
+ */
650
+ var ListAgentTasksThinking$;
651
+ (function (ListAgentTasksThinking$) {
652
+ /** @deprecated use `ListAgentTasksThinking$inboundSchema` instead. */
653
+ ListAgentTasksThinking$.inboundSchema = exports.ListAgentTasksThinking$inboundSchema;
654
+ /** @deprecated use `ListAgentTasksThinking$outboundSchema` instead. */
655
+ ListAgentTasksThinking$.outboundSchema = exports.ListAgentTasksThinking$outboundSchema;
656
+ })(ListAgentTasksThinking$ || (exports.ListAgentTasksThinking$ = ListAgentTasksThinking$ = {}));
657
+ function listAgentTasksThinkingToJSON(listAgentTasksThinking) {
658
+ return JSON.stringify(exports.ListAgentTasksThinking$outboundSchema.parse(listAgentTasksThinking));
659
+ }
660
+ function listAgentTasksThinkingFromJSON(jsonString) {
661
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksThinking' from JSON`);
662
+ }
663
+ /** @internal */
664
+ exports.ListAgentTasksToolChoiceType$inboundSchema = z.nativeEnum(exports.ListAgentTasksToolChoiceType);
665
+ /** @internal */
666
+ exports.ListAgentTasksToolChoiceType$outboundSchema = exports.ListAgentTasksToolChoiceType$inboundSchema;
667
+ /**
668
+ * @internal
669
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
670
+ */
671
+ var ListAgentTasksToolChoiceType$;
672
+ (function (ListAgentTasksToolChoiceType$) {
673
+ /** @deprecated use `ListAgentTasksToolChoiceType$inboundSchema` instead. */
674
+ ListAgentTasksToolChoiceType$.inboundSchema = exports.ListAgentTasksToolChoiceType$inboundSchema;
675
+ /** @deprecated use `ListAgentTasksToolChoiceType$outboundSchema` instead. */
676
+ ListAgentTasksToolChoiceType$.outboundSchema = exports.ListAgentTasksToolChoiceType$outboundSchema;
677
+ })(ListAgentTasksToolChoiceType$ || (exports.ListAgentTasksToolChoiceType$ = ListAgentTasksToolChoiceType$ = {}));
678
+ /** @internal */
679
+ exports.ListAgentTasksToolChoiceFunction$inboundSchema = z.object({
680
+ name: z.string().optional(),
681
+ });
682
+ /** @internal */
683
+ exports.ListAgentTasksToolChoiceFunction$outboundSchema = z.object({
684
+ name: z.string().optional(),
685
+ });
686
+ /**
687
+ * @internal
688
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
689
+ */
690
+ var ListAgentTasksToolChoiceFunction$;
691
+ (function (ListAgentTasksToolChoiceFunction$) {
692
+ /** @deprecated use `ListAgentTasksToolChoiceFunction$inboundSchema` instead. */
693
+ ListAgentTasksToolChoiceFunction$.inboundSchema = exports.ListAgentTasksToolChoiceFunction$inboundSchema;
694
+ /** @deprecated use `ListAgentTasksToolChoiceFunction$outboundSchema` instead. */
695
+ ListAgentTasksToolChoiceFunction$.outboundSchema = exports.ListAgentTasksToolChoiceFunction$outboundSchema;
696
+ })(ListAgentTasksToolChoiceFunction$ || (exports.ListAgentTasksToolChoiceFunction$ = ListAgentTasksToolChoiceFunction$ = {}));
697
+ function listAgentTasksToolChoiceFunctionToJSON(listAgentTasksToolChoiceFunction) {
698
+ return JSON.stringify(exports.ListAgentTasksToolChoiceFunction$outboundSchema.parse(listAgentTasksToolChoiceFunction));
699
+ }
700
+ function listAgentTasksToolChoiceFunctionFromJSON(jsonString) {
701
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksToolChoiceFunction' from JSON`);
702
+ }
703
+ /** @internal */
704
+ exports.ListAgentTasksToolChoice2$inboundSchema = z.object({
705
+ type: exports.ListAgentTasksToolChoiceType$inboundSchema.optional(),
706
+ function: z.lazy(() => exports.ListAgentTasksToolChoiceFunction$inboundSchema),
707
+ });
708
+ /** @internal */
709
+ exports.ListAgentTasksToolChoice2$outboundSchema = z.object({
710
+ type: exports.ListAgentTasksToolChoiceType$outboundSchema.optional(),
711
+ function: z.lazy(() => exports.ListAgentTasksToolChoiceFunction$outboundSchema),
712
+ });
713
+ /**
714
+ * @internal
715
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
716
+ */
717
+ var ListAgentTasksToolChoice2$;
718
+ (function (ListAgentTasksToolChoice2$) {
719
+ /** @deprecated use `ListAgentTasksToolChoice2$inboundSchema` instead. */
720
+ ListAgentTasksToolChoice2$.inboundSchema = exports.ListAgentTasksToolChoice2$inboundSchema;
721
+ /** @deprecated use `ListAgentTasksToolChoice2$outboundSchema` instead. */
722
+ ListAgentTasksToolChoice2$.outboundSchema = exports.ListAgentTasksToolChoice2$outboundSchema;
723
+ })(ListAgentTasksToolChoice2$ || (exports.ListAgentTasksToolChoice2$ = ListAgentTasksToolChoice2$ = {}));
724
+ function listAgentTasksToolChoice2ToJSON(listAgentTasksToolChoice2) {
725
+ return JSON.stringify(exports.ListAgentTasksToolChoice2$outboundSchema.parse(listAgentTasksToolChoice2));
726
+ }
727
+ function listAgentTasksToolChoice2FromJSON(jsonString) {
728
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksToolChoice2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksToolChoice2' from JSON`);
729
+ }
730
+ /** @internal */
731
+ exports.ListAgentTasksToolChoice1$inboundSchema = z.nativeEnum(exports.ListAgentTasksToolChoice1);
732
+ /** @internal */
733
+ exports.ListAgentTasksToolChoice1$outboundSchema = exports.ListAgentTasksToolChoice1$inboundSchema;
734
+ /**
735
+ * @internal
736
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
737
+ */
738
+ var ListAgentTasksToolChoice1$;
739
+ (function (ListAgentTasksToolChoice1$) {
740
+ /** @deprecated use `ListAgentTasksToolChoice1$inboundSchema` instead. */
741
+ ListAgentTasksToolChoice1$.inboundSchema = exports.ListAgentTasksToolChoice1$inboundSchema;
742
+ /** @deprecated use `ListAgentTasksToolChoice1$outboundSchema` instead. */
743
+ ListAgentTasksToolChoice1$.outboundSchema = exports.ListAgentTasksToolChoice1$outboundSchema;
744
+ })(ListAgentTasksToolChoice1$ || (exports.ListAgentTasksToolChoice1$ = ListAgentTasksToolChoice1$ = {}));
745
+ /** @internal */
746
+ exports.ListAgentTasksToolChoice$inboundSchema = z.union([
747
+ z.lazy(() => exports.ListAgentTasksToolChoice2$inboundSchema),
748
+ exports.ListAgentTasksToolChoice1$inboundSchema,
749
+ ]);
750
+ /** @internal */
751
+ exports.ListAgentTasksToolChoice$outboundSchema = z.union([
752
+ z.lazy(() => exports.ListAgentTasksToolChoice2$outboundSchema),
753
+ exports.ListAgentTasksToolChoice1$outboundSchema,
754
+ ]);
755
+ /**
756
+ * @internal
757
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
758
+ */
759
+ var ListAgentTasksToolChoice$;
760
+ (function (ListAgentTasksToolChoice$) {
761
+ /** @deprecated use `ListAgentTasksToolChoice$inboundSchema` instead. */
762
+ ListAgentTasksToolChoice$.inboundSchema = exports.ListAgentTasksToolChoice$inboundSchema;
763
+ /** @deprecated use `ListAgentTasksToolChoice$outboundSchema` instead. */
764
+ ListAgentTasksToolChoice$.outboundSchema = exports.ListAgentTasksToolChoice$outboundSchema;
765
+ })(ListAgentTasksToolChoice$ || (exports.ListAgentTasksToolChoice$ = ListAgentTasksToolChoice$ = {}));
766
+ function listAgentTasksToolChoiceToJSON(listAgentTasksToolChoice) {
767
+ return JSON.stringify(exports.ListAgentTasksToolChoice$outboundSchema.parse(listAgentTasksToolChoice));
768
+ }
769
+ function listAgentTasksToolChoiceFromJSON(jsonString) {
770
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksToolChoice' from JSON`);
771
+ }
772
+ /** @internal */
773
+ exports.ListAgentTasksModalities$inboundSchema = z.nativeEnum(exports.ListAgentTasksModalities);
774
+ /** @internal */
775
+ exports.ListAgentTasksModalities$outboundSchema = exports.ListAgentTasksModalities$inboundSchema;
776
+ /**
777
+ * @internal
778
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
779
+ */
780
+ var ListAgentTasksModalities$;
781
+ (function (ListAgentTasksModalities$) {
782
+ /** @deprecated use `ListAgentTasksModalities$inboundSchema` instead. */
783
+ ListAgentTasksModalities$.inboundSchema = exports.ListAgentTasksModalities$inboundSchema;
784
+ /** @deprecated use `ListAgentTasksModalities$outboundSchema` instead. */
785
+ ListAgentTasksModalities$.outboundSchema = exports.ListAgentTasksModalities$outboundSchema;
786
+ })(ListAgentTasksModalities$ || (exports.ListAgentTasksModalities$ = ListAgentTasksModalities$ = {}));
787
+ /** @internal */
788
+ exports.ListAgentTasksWebSearchOptions$inboundSchema = z.object({
789
+ enabled: z.boolean().optional(),
790
+ });
791
+ /** @internal */
792
+ exports.ListAgentTasksWebSearchOptions$outboundSchema = z.object({
793
+ enabled: z.boolean().optional(),
794
+ });
795
+ /**
796
+ * @internal
797
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
798
+ */
799
+ var ListAgentTasksWebSearchOptions$;
800
+ (function (ListAgentTasksWebSearchOptions$) {
801
+ /** @deprecated use `ListAgentTasksWebSearchOptions$inboundSchema` instead. */
802
+ ListAgentTasksWebSearchOptions$.inboundSchema = exports.ListAgentTasksWebSearchOptions$inboundSchema;
803
+ /** @deprecated use `ListAgentTasksWebSearchOptions$outboundSchema` instead. */
804
+ ListAgentTasksWebSearchOptions$.outboundSchema = exports.ListAgentTasksWebSearchOptions$outboundSchema;
805
+ })(ListAgentTasksWebSearchOptions$ || (exports.ListAgentTasksWebSearchOptions$ = ListAgentTasksWebSearchOptions$ = {}));
806
+ function listAgentTasksWebSearchOptionsToJSON(listAgentTasksWebSearchOptions) {
807
+ return JSON.stringify(exports.ListAgentTasksWebSearchOptions$outboundSchema.parse(listAgentTasksWebSearchOptions));
808
+ }
809
+ function listAgentTasksWebSearchOptionsFromJSON(jsonString) {
810
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksWebSearchOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksWebSearchOptions' from JSON`);
811
+ }
812
+ /** @internal */
813
+ exports.ListAgentTasksParameters$inboundSchema = z.object({
814
+ audio: z.nullable(z.lazy(() => exports.ListAgentTasksAudio$inboundSchema)).optional(),
815
+ frequency_penalty: z.nullable(z.number()).optional(),
816
+ max_tokens: z.nullable(z.number().int()).optional(),
817
+ max_completion_tokens: z.nullable(z.number().int()).optional(),
818
+ logprobs: z.nullable(z.boolean()).optional(),
819
+ top_logprobs: z.nullable(z.number().int()).optional(),
820
+ n: z.nullable(z.number().int()).optional(),
821
+ presence_penalty: z.nullable(z.number()).optional(),
822
+ response_format: z.union([
823
+ z.lazy(() => exports.ListAgentTasksResponseFormat3$inboundSchema),
824
+ z.lazy(() => exports.ListAgentTasksResponseFormat1$inboundSchema),
825
+ z.lazy(() => exports.ListAgentTasksResponseFormat2$inboundSchema),
826
+ ]).optional(),
827
+ reasoning_effort: z.string().optional(),
828
+ verbosity: z.string().optional(),
829
+ seed: z.nullable(z.number()).optional(),
830
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
831
+ stream_options: z.nullable(z.lazy(() => exports.ListAgentTasksStreamOptions$inboundSchema)).optional(),
832
+ thinking: z.lazy(() => exports.ListAgentTasksThinking$inboundSchema).optional(),
833
+ temperature: z.nullable(z.number()).optional(),
834
+ top_p: z.nullable(z.number()).optional(),
835
+ top_k: z.nullable(z.number()).optional(),
836
+ tool_choice: z.union([
837
+ z.lazy(() => exports.ListAgentTasksToolChoice2$inboundSchema),
838
+ exports.ListAgentTasksToolChoice1$inboundSchema,
839
+ ]).optional(),
840
+ parallel_tool_calls: z.boolean().optional(),
841
+ modalities: z.nullable(z.array(exports.ListAgentTasksModalities$inboundSchema))
842
+ .optional(),
843
+ web_search_options: z.lazy(() => exports.ListAgentTasksWebSearchOptions$inboundSchema)
844
+ .optional(),
845
+ }).transform((v) => {
846
+ return (0, primitives_js_1.remap)(v, {
847
+ "frequency_penalty": "frequencyPenalty",
848
+ "max_tokens": "maxTokens",
849
+ "max_completion_tokens": "maxCompletionTokens",
850
+ "top_logprobs": "topLogprobs",
851
+ "presence_penalty": "presencePenalty",
852
+ "response_format": "responseFormat",
853
+ "reasoning_effort": "reasoningEffort",
854
+ "stream_options": "streamOptions",
855
+ "top_p": "topP",
856
+ "top_k": "topK",
857
+ "tool_choice": "toolChoice",
858
+ "parallel_tool_calls": "parallelToolCalls",
859
+ "web_search_options": "webSearchOptions",
860
+ });
861
+ });
862
+ /** @internal */
863
+ exports.ListAgentTasksParameters$outboundSchema = z.object({
864
+ audio: z.nullable(z.lazy(() => exports.ListAgentTasksAudio$outboundSchema))
865
+ .optional(),
866
+ frequencyPenalty: z.nullable(z.number()).optional(),
867
+ maxTokens: z.nullable(z.number().int()).optional(),
868
+ maxCompletionTokens: z.nullable(z.number().int()).optional(),
869
+ logprobs: z.nullable(z.boolean()).optional(),
870
+ topLogprobs: z.nullable(z.number().int()).optional(),
871
+ n: z.nullable(z.number().int()).optional(),
872
+ presencePenalty: z.nullable(z.number()).optional(),
873
+ responseFormat: z.union([
874
+ z.lazy(() => exports.ListAgentTasksResponseFormat3$outboundSchema),
875
+ z.lazy(() => exports.ListAgentTasksResponseFormat1$outboundSchema),
876
+ z.lazy(() => exports.ListAgentTasksResponseFormat2$outboundSchema),
877
+ ]).optional(),
878
+ reasoningEffort: z.string().optional(),
879
+ verbosity: z.string().optional(),
880
+ seed: z.nullable(z.number()).optional(),
881
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
882
+ streamOptions: z.nullable(z.lazy(() => exports.ListAgentTasksStreamOptions$outboundSchema)).optional(),
883
+ thinking: z.lazy(() => exports.ListAgentTasksThinking$outboundSchema).optional(),
884
+ temperature: z.nullable(z.number()).optional(),
885
+ topP: z.nullable(z.number()).optional(),
886
+ topK: z.nullable(z.number()).optional(),
887
+ toolChoice: z.union([
888
+ z.lazy(() => exports.ListAgentTasksToolChoice2$outboundSchema),
889
+ exports.ListAgentTasksToolChoice1$outboundSchema,
890
+ ]).optional(),
891
+ parallelToolCalls: z.boolean().optional(),
892
+ modalities: z.nullable(z.array(exports.ListAgentTasksModalities$outboundSchema))
893
+ .optional(),
894
+ webSearchOptions: z.lazy(() => exports.ListAgentTasksWebSearchOptions$outboundSchema)
895
+ .optional(),
896
+ }).transform((v) => {
897
+ return (0, primitives_js_1.remap)(v, {
898
+ frequencyPenalty: "frequency_penalty",
899
+ maxTokens: "max_tokens",
900
+ maxCompletionTokens: "max_completion_tokens",
901
+ topLogprobs: "top_logprobs",
902
+ presencePenalty: "presence_penalty",
903
+ responseFormat: "response_format",
904
+ reasoningEffort: "reasoning_effort",
905
+ streamOptions: "stream_options",
906
+ topP: "top_p",
907
+ topK: "top_k",
908
+ toolChoice: "tool_choice",
909
+ parallelToolCalls: "parallel_tool_calls",
910
+ webSearchOptions: "web_search_options",
911
+ });
912
+ });
913
+ /**
914
+ * @internal
915
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
916
+ */
917
+ var ListAgentTasksParameters$;
918
+ (function (ListAgentTasksParameters$) {
919
+ /** @deprecated use `ListAgentTasksParameters$inboundSchema` instead. */
920
+ ListAgentTasksParameters$.inboundSchema = exports.ListAgentTasksParameters$inboundSchema;
921
+ /** @deprecated use `ListAgentTasksParameters$outboundSchema` instead. */
922
+ ListAgentTasksParameters$.outboundSchema = exports.ListAgentTasksParameters$outboundSchema;
923
+ })(ListAgentTasksParameters$ || (exports.ListAgentTasksParameters$ = ListAgentTasksParameters$ = {}));
924
+ function listAgentTasksParametersToJSON(listAgentTasksParameters) {
925
+ return JSON.stringify(exports.ListAgentTasksParameters$outboundSchema.parse(listAgentTasksParameters));
926
+ }
927
+ function listAgentTasksParametersFromJSON(jsonString) {
928
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksParameters' from JSON`);
929
+ }
930
+ /** @internal */
931
+ exports.ListAgentTasksFallbackModelsVoice$inboundSchema = z.nativeEnum(exports.ListAgentTasksFallbackModelsVoice);
932
+ /** @internal */
933
+ exports.ListAgentTasksFallbackModelsVoice$outboundSchema = exports.ListAgentTasksFallbackModelsVoice$inboundSchema;
934
+ /**
935
+ * @internal
936
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
937
+ */
938
+ var ListAgentTasksFallbackModelsVoice$;
939
+ (function (ListAgentTasksFallbackModelsVoice$) {
940
+ /** @deprecated use `ListAgentTasksFallbackModelsVoice$inboundSchema` instead. */
941
+ ListAgentTasksFallbackModelsVoice$.inboundSchema = exports.ListAgentTasksFallbackModelsVoice$inboundSchema;
942
+ /** @deprecated use `ListAgentTasksFallbackModelsVoice$outboundSchema` instead. */
943
+ ListAgentTasksFallbackModelsVoice$.outboundSchema = exports.ListAgentTasksFallbackModelsVoice$outboundSchema;
944
+ })(ListAgentTasksFallbackModelsVoice$ || (exports.ListAgentTasksFallbackModelsVoice$ = ListAgentTasksFallbackModelsVoice$ = {}));
945
+ /** @internal */
946
+ exports.ListAgentTasksFallbackModelsFormat$inboundSchema = z.nativeEnum(exports.ListAgentTasksFallbackModelsFormat);
947
+ /** @internal */
948
+ exports.ListAgentTasksFallbackModelsFormat$outboundSchema = exports.ListAgentTasksFallbackModelsFormat$inboundSchema;
949
+ /**
950
+ * @internal
951
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
952
+ */
953
+ var ListAgentTasksFallbackModelsFormat$;
954
+ (function (ListAgentTasksFallbackModelsFormat$) {
955
+ /** @deprecated use `ListAgentTasksFallbackModelsFormat$inboundSchema` instead. */
956
+ ListAgentTasksFallbackModelsFormat$.inboundSchema = exports.ListAgentTasksFallbackModelsFormat$inboundSchema;
957
+ /** @deprecated use `ListAgentTasksFallbackModelsFormat$outboundSchema` instead. */
958
+ ListAgentTasksFallbackModelsFormat$.outboundSchema = exports.ListAgentTasksFallbackModelsFormat$outboundSchema;
959
+ })(ListAgentTasksFallbackModelsFormat$ || (exports.ListAgentTasksFallbackModelsFormat$ = ListAgentTasksFallbackModelsFormat$ = {}));
960
+ /** @internal */
961
+ exports.ListAgentTasksFallbackModelsAudio$inboundSchema = z.object({
962
+ voice: exports.ListAgentTasksFallbackModelsVoice$inboundSchema,
963
+ format: exports.ListAgentTasksFallbackModelsFormat$inboundSchema,
964
+ });
965
+ /** @internal */
966
+ exports.ListAgentTasksFallbackModelsAudio$outboundSchema = z.object({
967
+ voice: exports.ListAgentTasksFallbackModelsVoice$outboundSchema,
968
+ format: exports.ListAgentTasksFallbackModelsFormat$outboundSchema,
969
+ });
970
+ /**
971
+ * @internal
972
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
973
+ */
974
+ var ListAgentTasksFallbackModelsAudio$;
975
+ (function (ListAgentTasksFallbackModelsAudio$) {
976
+ /** @deprecated use `ListAgentTasksFallbackModelsAudio$inboundSchema` instead. */
977
+ ListAgentTasksFallbackModelsAudio$.inboundSchema = exports.ListAgentTasksFallbackModelsAudio$inboundSchema;
978
+ /** @deprecated use `ListAgentTasksFallbackModelsAudio$outboundSchema` instead. */
979
+ ListAgentTasksFallbackModelsAudio$.outboundSchema = exports.ListAgentTasksFallbackModelsAudio$outboundSchema;
980
+ })(ListAgentTasksFallbackModelsAudio$ || (exports.ListAgentTasksFallbackModelsAudio$ = ListAgentTasksFallbackModelsAudio$ = {}));
981
+ function listAgentTasksFallbackModelsAudioToJSON(listAgentTasksFallbackModelsAudio) {
982
+ return JSON.stringify(exports.ListAgentTasksFallbackModelsAudio$outboundSchema.parse(listAgentTasksFallbackModelsAudio));
983
+ }
984
+ function listAgentTasksFallbackModelsAudioFromJSON(jsonString) {
985
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModelsAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModelsAudio' from JSON`);
986
+ }
987
+ /** @internal */
988
+ exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType);
989
+ /** @internal */
990
+ exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema;
991
+ /**
992
+ * @internal
993
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
994
+ */
995
+ var ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$;
996
+ (function (ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$) {
997
+ /** @deprecated use `ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
998
+ ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$.inboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema;
999
+ /** @deprecated use `ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
1000
+ ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$.outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema;
1001
+ })(ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$ || (exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$ = ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$ = {}));
1002
+ /** @internal */
1003
+ exports.ListAgentTasksResponseFormatAgentsJsonSchema$inboundSchema = z.object({
1004
+ description: z.string().optional(),
1005
+ name: z.string(),
1006
+ schema: z.any().optional(),
1007
+ strict: z.boolean().optional(),
1008
+ });
1009
+ /** @internal */
1010
+ exports.ListAgentTasksResponseFormatAgentsJsonSchema$outboundSchema = z.object({
1011
+ description: z.string().optional(),
1012
+ name: z.string(),
1013
+ schema: z.any().optional(),
1014
+ strict: z.boolean().optional(),
1015
+ });
1016
+ /**
1017
+ * @internal
1018
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1019
+ */
1020
+ var ListAgentTasksResponseFormatAgentsJsonSchema$;
1021
+ (function (ListAgentTasksResponseFormatAgentsJsonSchema$) {
1022
+ /** @deprecated use `ListAgentTasksResponseFormatAgentsJsonSchema$inboundSchema` instead. */
1023
+ ListAgentTasksResponseFormatAgentsJsonSchema$.inboundSchema = exports.ListAgentTasksResponseFormatAgentsJsonSchema$inboundSchema;
1024
+ /** @deprecated use `ListAgentTasksResponseFormatAgentsJsonSchema$outboundSchema` instead. */
1025
+ ListAgentTasksResponseFormatAgentsJsonSchema$.outboundSchema = exports.ListAgentTasksResponseFormatAgentsJsonSchema$outboundSchema;
1026
+ })(ListAgentTasksResponseFormatAgentsJsonSchema$ || (exports.ListAgentTasksResponseFormatAgentsJsonSchema$ = ListAgentTasksResponseFormatAgentsJsonSchema$ = {}));
1027
+ function listAgentTasksResponseFormatAgentsJsonSchemaToJSON(listAgentTasksResponseFormatAgentsJsonSchema) {
1028
+ return JSON.stringify(exports.ListAgentTasksResponseFormatAgentsJsonSchema$outboundSchema.parse(listAgentTasksResponseFormatAgentsJsonSchema));
1029
+ }
1030
+ function listAgentTasksResponseFormatAgentsJsonSchemaFromJSON(jsonString) {
1031
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormatAgentsJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormatAgentsJsonSchema' from JSON`);
1032
+ }
1033
+ /** @internal */
1034
+ exports.ListAgentTasksResponseFormatAgents3$inboundSchema = z.object({
1035
+ type: exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema,
1036
+ json_schema: z.lazy(() => exports.ListAgentTasksResponseFormatAgentsJsonSchema$inboundSchema),
1037
+ }).transform((v) => {
1038
+ return (0, primitives_js_1.remap)(v, {
1039
+ "json_schema": "jsonSchema",
1040
+ });
1041
+ });
1042
+ /** @internal */
1043
+ exports.ListAgentTasksResponseFormatAgents3$outboundSchema = z.object({
1044
+ type: exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema,
1045
+ jsonSchema: z.lazy(() => exports.ListAgentTasksResponseFormatAgentsJsonSchema$outboundSchema),
1046
+ }).transform((v) => {
1047
+ return (0, primitives_js_1.remap)(v, {
1048
+ jsonSchema: "json_schema",
1049
+ });
1050
+ });
1051
+ /**
1052
+ * @internal
1053
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1054
+ */
1055
+ var ListAgentTasksResponseFormatAgents3$;
1056
+ (function (ListAgentTasksResponseFormatAgents3$) {
1057
+ /** @deprecated use `ListAgentTasksResponseFormatAgents3$inboundSchema` instead. */
1058
+ ListAgentTasksResponseFormatAgents3$.inboundSchema = exports.ListAgentTasksResponseFormatAgents3$inboundSchema;
1059
+ /** @deprecated use `ListAgentTasksResponseFormatAgents3$outboundSchema` instead. */
1060
+ ListAgentTasksResponseFormatAgents3$.outboundSchema = exports.ListAgentTasksResponseFormatAgents3$outboundSchema;
1061
+ })(ListAgentTasksResponseFormatAgents3$ || (exports.ListAgentTasksResponseFormatAgents3$ = ListAgentTasksResponseFormatAgents3$ = {}));
1062
+ function listAgentTasksResponseFormatAgents3ToJSON(listAgentTasksResponseFormatAgents3) {
1063
+ return JSON.stringify(exports.ListAgentTasksResponseFormatAgents3$outboundSchema.parse(listAgentTasksResponseFormatAgents3));
1064
+ }
1065
+ function listAgentTasksResponseFormatAgents3FromJSON(jsonString) {
1066
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormatAgents3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormatAgents3' from JSON`);
1067
+ }
1068
+ /** @internal */
1069
+ exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType);
1070
+ /** @internal */
1071
+ exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema;
1072
+ /**
1073
+ * @internal
1074
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1075
+ */
1076
+ var ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$;
1077
+ (function (ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$) {
1078
+ /** @deprecated use `ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema` instead. */
1079
+ ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$.inboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema;
1080
+ /** @deprecated use `ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema` instead. */
1081
+ ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$.outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema;
1082
+ })(ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$ || (exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$ = ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$ = {}));
1083
+ /** @internal */
1084
+ exports.ListAgentTasksResponseFormatAgents2$inboundSchema = z.object({
1085
+ type: exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema,
1086
+ });
1087
+ /** @internal */
1088
+ exports.ListAgentTasksResponseFormatAgents2$outboundSchema = z.object({
1089
+ type: exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema,
1090
+ });
1091
+ /**
1092
+ * @internal
1093
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1094
+ */
1095
+ var ListAgentTasksResponseFormatAgents2$;
1096
+ (function (ListAgentTasksResponseFormatAgents2$) {
1097
+ /** @deprecated use `ListAgentTasksResponseFormatAgents2$inboundSchema` instead. */
1098
+ ListAgentTasksResponseFormatAgents2$.inboundSchema = exports.ListAgentTasksResponseFormatAgents2$inboundSchema;
1099
+ /** @deprecated use `ListAgentTasksResponseFormatAgents2$outboundSchema` instead. */
1100
+ ListAgentTasksResponseFormatAgents2$.outboundSchema = exports.ListAgentTasksResponseFormatAgents2$outboundSchema;
1101
+ })(ListAgentTasksResponseFormatAgents2$ || (exports.ListAgentTasksResponseFormatAgents2$ = ListAgentTasksResponseFormatAgents2$ = {}));
1102
+ function listAgentTasksResponseFormatAgents2ToJSON(listAgentTasksResponseFormatAgents2) {
1103
+ return JSON.stringify(exports.ListAgentTasksResponseFormatAgents2$outboundSchema.parse(listAgentTasksResponseFormatAgents2));
1104
+ }
1105
+ function listAgentTasksResponseFormatAgents2FromJSON(jsonString) {
1106
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormatAgents2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormatAgents2' from JSON`);
1107
+ }
1108
+ /** @internal */
1109
+ exports.ListAgentTasksResponseFormatAgentsResponse200Type$inboundSchema = z
1110
+ .nativeEnum(exports.ListAgentTasksResponseFormatAgentsResponse200Type);
1111
+ /** @internal */
1112
+ exports.ListAgentTasksResponseFormatAgentsResponse200Type$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200Type$inboundSchema;
1113
+ /**
1114
+ * @internal
1115
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1116
+ */
1117
+ var ListAgentTasksResponseFormatAgentsResponse200Type$;
1118
+ (function (ListAgentTasksResponseFormatAgentsResponse200Type$) {
1119
+ /** @deprecated use `ListAgentTasksResponseFormatAgentsResponse200Type$inboundSchema` instead. */
1120
+ ListAgentTasksResponseFormatAgentsResponse200Type$.inboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200Type$inboundSchema;
1121
+ /** @deprecated use `ListAgentTasksResponseFormatAgentsResponse200Type$outboundSchema` instead. */
1122
+ ListAgentTasksResponseFormatAgentsResponse200Type$.outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200Type$outboundSchema;
1123
+ })(ListAgentTasksResponseFormatAgentsResponse200Type$ || (exports.ListAgentTasksResponseFormatAgentsResponse200Type$ = ListAgentTasksResponseFormatAgentsResponse200Type$ = {}));
1124
+ /** @internal */
1125
+ exports.ListAgentTasksResponseFormatAgents1$inboundSchema = z.object({
1126
+ type: exports.ListAgentTasksResponseFormatAgentsResponse200Type$inboundSchema,
1127
+ });
1128
+ /** @internal */
1129
+ exports.ListAgentTasksResponseFormatAgents1$outboundSchema = z.object({
1130
+ type: exports.ListAgentTasksResponseFormatAgentsResponse200Type$outboundSchema,
1131
+ });
1132
+ /**
1133
+ * @internal
1134
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1135
+ */
1136
+ var ListAgentTasksResponseFormatAgents1$;
1137
+ (function (ListAgentTasksResponseFormatAgents1$) {
1138
+ /** @deprecated use `ListAgentTasksResponseFormatAgents1$inboundSchema` instead. */
1139
+ ListAgentTasksResponseFormatAgents1$.inboundSchema = exports.ListAgentTasksResponseFormatAgents1$inboundSchema;
1140
+ /** @deprecated use `ListAgentTasksResponseFormatAgents1$outboundSchema` instead. */
1141
+ ListAgentTasksResponseFormatAgents1$.outboundSchema = exports.ListAgentTasksResponseFormatAgents1$outboundSchema;
1142
+ })(ListAgentTasksResponseFormatAgents1$ || (exports.ListAgentTasksResponseFormatAgents1$ = ListAgentTasksResponseFormatAgents1$ = {}));
1143
+ function listAgentTasksResponseFormatAgents1ToJSON(listAgentTasksResponseFormatAgents1) {
1144
+ return JSON.stringify(exports.ListAgentTasksResponseFormatAgents1$outboundSchema.parse(listAgentTasksResponseFormatAgents1));
1145
+ }
1146
+ function listAgentTasksResponseFormatAgents1FromJSON(jsonString) {
1147
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormatAgents1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormatAgents1' from JSON`);
1148
+ }
1149
+ /** @internal */
1150
+ exports.ListAgentTasksFallbackModelsResponseFormat$inboundSchema = z.union([
1151
+ z.lazy(() => exports.ListAgentTasksResponseFormatAgents3$inboundSchema),
1152
+ z.lazy(() => exports.ListAgentTasksResponseFormatAgents1$inboundSchema),
1153
+ z.lazy(() => exports.ListAgentTasksResponseFormatAgents2$inboundSchema),
1154
+ ]);
1155
+ /** @internal */
1156
+ exports.ListAgentTasksFallbackModelsResponseFormat$outboundSchema = z.union([
1157
+ z.lazy(() => exports.ListAgentTasksResponseFormatAgents3$outboundSchema),
1158
+ z.lazy(() => exports.ListAgentTasksResponseFormatAgents1$outboundSchema),
1159
+ z.lazy(() => exports.ListAgentTasksResponseFormatAgents2$outboundSchema),
1160
+ ]);
1161
+ /**
1162
+ * @internal
1163
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1164
+ */
1165
+ var ListAgentTasksFallbackModelsResponseFormat$;
1166
+ (function (ListAgentTasksFallbackModelsResponseFormat$) {
1167
+ /** @deprecated use `ListAgentTasksFallbackModelsResponseFormat$inboundSchema` instead. */
1168
+ ListAgentTasksFallbackModelsResponseFormat$.inboundSchema = exports.ListAgentTasksFallbackModelsResponseFormat$inboundSchema;
1169
+ /** @deprecated use `ListAgentTasksFallbackModelsResponseFormat$outboundSchema` instead. */
1170
+ ListAgentTasksFallbackModelsResponseFormat$.outboundSchema = exports.ListAgentTasksFallbackModelsResponseFormat$outboundSchema;
1171
+ })(ListAgentTasksFallbackModelsResponseFormat$ || (exports.ListAgentTasksFallbackModelsResponseFormat$ = ListAgentTasksFallbackModelsResponseFormat$ = {}));
1172
+ function listAgentTasksFallbackModelsResponseFormatToJSON(listAgentTasksFallbackModelsResponseFormat) {
1173
+ return JSON.stringify(exports.ListAgentTasksFallbackModelsResponseFormat$outboundSchema.parse(listAgentTasksFallbackModelsResponseFormat));
1174
+ }
1175
+ function listAgentTasksFallbackModelsResponseFormatFromJSON(jsonString) {
1176
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModelsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModelsResponseFormat' from JSON`);
1177
+ }
1178
+ /** @internal */
1179
+ exports.ListAgentTasksFallbackModelsStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
1180
+ /** @internal */
1181
+ exports.ListAgentTasksFallbackModelsStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
1182
+ /**
1183
+ * @internal
1184
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1185
+ */
1186
+ var ListAgentTasksFallbackModelsStop$;
1187
+ (function (ListAgentTasksFallbackModelsStop$) {
1188
+ /** @deprecated use `ListAgentTasksFallbackModelsStop$inboundSchema` instead. */
1189
+ ListAgentTasksFallbackModelsStop$.inboundSchema = exports.ListAgentTasksFallbackModelsStop$inboundSchema;
1190
+ /** @deprecated use `ListAgentTasksFallbackModelsStop$outboundSchema` instead. */
1191
+ ListAgentTasksFallbackModelsStop$.outboundSchema = exports.ListAgentTasksFallbackModelsStop$outboundSchema;
1192
+ })(ListAgentTasksFallbackModelsStop$ || (exports.ListAgentTasksFallbackModelsStop$ = ListAgentTasksFallbackModelsStop$ = {}));
1193
+ function listAgentTasksFallbackModelsStopToJSON(listAgentTasksFallbackModelsStop) {
1194
+ return JSON.stringify(exports.ListAgentTasksFallbackModelsStop$outboundSchema.parse(listAgentTasksFallbackModelsStop));
1195
+ }
1196
+ function listAgentTasksFallbackModelsStopFromJSON(jsonString) {
1197
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModelsStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModelsStop' from JSON`);
1198
+ }
1199
+ /** @internal */
1200
+ exports.ListAgentTasksFallbackModelsStreamOptions$inboundSchema = z.object({
1201
+ include_usage: z.boolean().optional(),
1202
+ }).transform((v) => {
1203
+ return (0, primitives_js_1.remap)(v, {
1204
+ "include_usage": "includeUsage",
1205
+ });
1206
+ });
1207
+ /** @internal */
1208
+ exports.ListAgentTasksFallbackModelsStreamOptions$outboundSchema = z.object({
1209
+ includeUsage: z.boolean().optional(),
1210
+ }).transform((v) => {
1211
+ return (0, primitives_js_1.remap)(v, {
1212
+ includeUsage: "include_usage",
1213
+ });
1214
+ });
1215
+ /**
1216
+ * @internal
1217
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1218
+ */
1219
+ var ListAgentTasksFallbackModelsStreamOptions$;
1220
+ (function (ListAgentTasksFallbackModelsStreamOptions$) {
1221
+ /** @deprecated use `ListAgentTasksFallbackModelsStreamOptions$inboundSchema` instead. */
1222
+ ListAgentTasksFallbackModelsStreamOptions$.inboundSchema = exports.ListAgentTasksFallbackModelsStreamOptions$inboundSchema;
1223
+ /** @deprecated use `ListAgentTasksFallbackModelsStreamOptions$outboundSchema` instead. */
1224
+ ListAgentTasksFallbackModelsStreamOptions$.outboundSchema = exports.ListAgentTasksFallbackModelsStreamOptions$outboundSchema;
1225
+ })(ListAgentTasksFallbackModelsStreamOptions$ || (exports.ListAgentTasksFallbackModelsStreamOptions$ = ListAgentTasksFallbackModelsStreamOptions$ = {}));
1226
+ function listAgentTasksFallbackModelsStreamOptionsToJSON(listAgentTasksFallbackModelsStreamOptions) {
1227
+ return JSON.stringify(exports.ListAgentTasksFallbackModelsStreamOptions$outboundSchema.parse(listAgentTasksFallbackModelsStreamOptions));
1228
+ }
1229
+ function listAgentTasksFallbackModelsStreamOptionsFromJSON(jsonString) {
1230
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModelsStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModelsStreamOptions' from JSON`);
1231
+ }
1232
+ /** @internal */
1233
+ exports.ListAgentTasksFallbackModelsType$inboundSchema = z.nativeEnum(exports.ListAgentTasksFallbackModelsType);
1234
+ /** @internal */
1235
+ exports.ListAgentTasksFallbackModelsType$outboundSchema = exports.ListAgentTasksFallbackModelsType$inboundSchema;
1236
+ /**
1237
+ * @internal
1238
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1239
+ */
1240
+ var ListAgentTasksFallbackModelsType$;
1241
+ (function (ListAgentTasksFallbackModelsType$) {
1242
+ /** @deprecated use `ListAgentTasksFallbackModelsType$inboundSchema` instead. */
1243
+ ListAgentTasksFallbackModelsType$.inboundSchema = exports.ListAgentTasksFallbackModelsType$inboundSchema;
1244
+ /** @deprecated use `ListAgentTasksFallbackModelsType$outboundSchema` instead. */
1245
+ ListAgentTasksFallbackModelsType$.outboundSchema = exports.ListAgentTasksFallbackModelsType$outboundSchema;
1246
+ })(ListAgentTasksFallbackModelsType$ || (exports.ListAgentTasksFallbackModelsType$ = ListAgentTasksFallbackModelsType$ = {}));
1247
+ /** @internal */
1248
+ exports.ListAgentTasksFallbackModelsThinking$inboundSchema = z.object({
1249
+ type: exports.ListAgentTasksFallbackModelsType$inboundSchema,
1250
+ budget_tokens: z.number(),
1251
+ }).transform((v) => {
1252
+ return (0, primitives_js_1.remap)(v, {
1253
+ "budget_tokens": "budgetTokens",
1254
+ });
1255
+ });
1256
+ /** @internal */
1257
+ exports.ListAgentTasksFallbackModelsThinking$outboundSchema = z.object({
1258
+ type: exports.ListAgentTasksFallbackModelsType$outboundSchema,
1259
+ budgetTokens: z.number(),
1260
+ }).transform((v) => {
1261
+ return (0, primitives_js_1.remap)(v, {
1262
+ budgetTokens: "budget_tokens",
1263
+ });
1264
+ });
1265
+ /**
1266
+ * @internal
1267
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1268
+ */
1269
+ var ListAgentTasksFallbackModelsThinking$;
1270
+ (function (ListAgentTasksFallbackModelsThinking$) {
1271
+ /** @deprecated use `ListAgentTasksFallbackModelsThinking$inboundSchema` instead. */
1272
+ ListAgentTasksFallbackModelsThinking$.inboundSchema = exports.ListAgentTasksFallbackModelsThinking$inboundSchema;
1273
+ /** @deprecated use `ListAgentTasksFallbackModelsThinking$outboundSchema` instead. */
1274
+ ListAgentTasksFallbackModelsThinking$.outboundSchema = exports.ListAgentTasksFallbackModelsThinking$outboundSchema;
1275
+ })(ListAgentTasksFallbackModelsThinking$ || (exports.ListAgentTasksFallbackModelsThinking$ = ListAgentTasksFallbackModelsThinking$ = {}));
1276
+ function listAgentTasksFallbackModelsThinkingToJSON(listAgentTasksFallbackModelsThinking) {
1277
+ return JSON.stringify(exports.ListAgentTasksFallbackModelsThinking$outboundSchema.parse(listAgentTasksFallbackModelsThinking));
1278
+ }
1279
+ function listAgentTasksFallbackModelsThinkingFromJSON(jsonString) {
1280
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModelsThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModelsThinking' from JSON`);
1281
+ }
1282
+ /** @internal */
1283
+ exports.ListAgentTasksToolChoiceAgentsType$inboundSchema = z.nativeEnum(exports.ListAgentTasksToolChoiceAgentsType);
1284
+ /** @internal */
1285
+ exports.ListAgentTasksToolChoiceAgentsType$outboundSchema = exports.ListAgentTasksToolChoiceAgentsType$inboundSchema;
1286
+ /**
1287
+ * @internal
1288
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1289
+ */
1290
+ var ListAgentTasksToolChoiceAgentsType$;
1291
+ (function (ListAgentTasksToolChoiceAgentsType$) {
1292
+ /** @deprecated use `ListAgentTasksToolChoiceAgentsType$inboundSchema` instead. */
1293
+ ListAgentTasksToolChoiceAgentsType$.inboundSchema = exports.ListAgentTasksToolChoiceAgentsType$inboundSchema;
1294
+ /** @deprecated use `ListAgentTasksToolChoiceAgentsType$outboundSchema` instead. */
1295
+ ListAgentTasksToolChoiceAgentsType$.outboundSchema = exports.ListAgentTasksToolChoiceAgentsType$outboundSchema;
1296
+ })(ListAgentTasksToolChoiceAgentsType$ || (exports.ListAgentTasksToolChoiceAgentsType$ = ListAgentTasksToolChoiceAgentsType$ = {}));
1297
+ /** @internal */
1298
+ exports.ListAgentTasksToolChoiceAgentsFunction$inboundSchema = z.object({
1299
+ name: z.string().optional(),
1300
+ });
1301
+ /** @internal */
1302
+ exports.ListAgentTasksToolChoiceAgentsFunction$outboundSchema = z.object({
1303
+ name: z.string().optional(),
1304
+ });
1305
+ /**
1306
+ * @internal
1307
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1308
+ */
1309
+ var ListAgentTasksToolChoiceAgentsFunction$;
1310
+ (function (ListAgentTasksToolChoiceAgentsFunction$) {
1311
+ /** @deprecated use `ListAgentTasksToolChoiceAgentsFunction$inboundSchema` instead. */
1312
+ ListAgentTasksToolChoiceAgentsFunction$.inboundSchema = exports.ListAgentTasksToolChoiceAgentsFunction$inboundSchema;
1313
+ /** @deprecated use `ListAgentTasksToolChoiceAgentsFunction$outboundSchema` instead. */
1314
+ ListAgentTasksToolChoiceAgentsFunction$.outboundSchema = exports.ListAgentTasksToolChoiceAgentsFunction$outboundSchema;
1315
+ })(ListAgentTasksToolChoiceAgentsFunction$ || (exports.ListAgentTasksToolChoiceAgentsFunction$ = ListAgentTasksToolChoiceAgentsFunction$ = {}));
1316
+ function listAgentTasksToolChoiceAgentsFunctionToJSON(listAgentTasksToolChoiceAgentsFunction) {
1317
+ return JSON.stringify(exports.ListAgentTasksToolChoiceAgentsFunction$outboundSchema.parse(listAgentTasksToolChoiceAgentsFunction));
1318
+ }
1319
+ function listAgentTasksToolChoiceAgentsFunctionFromJSON(jsonString) {
1320
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksToolChoiceAgentsFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksToolChoiceAgentsFunction' from JSON`);
1321
+ }
1322
+ /** @internal */
1323
+ exports.ListAgentTasksToolChoiceAgents2$inboundSchema = z.object({
1324
+ type: exports.ListAgentTasksToolChoiceAgentsType$inboundSchema.optional(),
1325
+ function: z.lazy(() => exports.ListAgentTasksToolChoiceAgentsFunction$inboundSchema),
1326
+ });
1327
+ /** @internal */
1328
+ exports.ListAgentTasksToolChoiceAgents2$outboundSchema = z.object({
1329
+ type: exports.ListAgentTasksToolChoiceAgentsType$outboundSchema.optional(),
1330
+ function: z.lazy(() => exports.ListAgentTasksToolChoiceAgentsFunction$outboundSchema),
1331
+ });
1332
+ /**
1333
+ * @internal
1334
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1335
+ */
1336
+ var ListAgentTasksToolChoiceAgents2$;
1337
+ (function (ListAgentTasksToolChoiceAgents2$) {
1338
+ /** @deprecated use `ListAgentTasksToolChoiceAgents2$inboundSchema` instead. */
1339
+ ListAgentTasksToolChoiceAgents2$.inboundSchema = exports.ListAgentTasksToolChoiceAgents2$inboundSchema;
1340
+ /** @deprecated use `ListAgentTasksToolChoiceAgents2$outboundSchema` instead. */
1341
+ ListAgentTasksToolChoiceAgents2$.outboundSchema = exports.ListAgentTasksToolChoiceAgents2$outboundSchema;
1342
+ })(ListAgentTasksToolChoiceAgents2$ || (exports.ListAgentTasksToolChoiceAgents2$ = ListAgentTasksToolChoiceAgents2$ = {}));
1343
+ function listAgentTasksToolChoiceAgents2ToJSON(listAgentTasksToolChoiceAgents2) {
1344
+ return JSON.stringify(exports.ListAgentTasksToolChoiceAgents2$outboundSchema.parse(listAgentTasksToolChoiceAgents2));
1345
+ }
1346
+ function listAgentTasksToolChoiceAgents2FromJSON(jsonString) {
1347
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksToolChoiceAgents2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksToolChoiceAgents2' from JSON`);
1348
+ }
1349
+ /** @internal */
1350
+ exports.ListAgentTasksToolChoiceAgents1$inboundSchema = z.nativeEnum(exports.ListAgentTasksToolChoiceAgents1);
1351
+ /** @internal */
1352
+ exports.ListAgentTasksToolChoiceAgents1$outboundSchema = exports.ListAgentTasksToolChoiceAgents1$inboundSchema;
1353
+ /**
1354
+ * @internal
1355
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1356
+ */
1357
+ var ListAgentTasksToolChoiceAgents1$;
1358
+ (function (ListAgentTasksToolChoiceAgents1$) {
1359
+ /** @deprecated use `ListAgentTasksToolChoiceAgents1$inboundSchema` instead. */
1360
+ ListAgentTasksToolChoiceAgents1$.inboundSchema = exports.ListAgentTasksToolChoiceAgents1$inboundSchema;
1361
+ /** @deprecated use `ListAgentTasksToolChoiceAgents1$outboundSchema` instead. */
1362
+ ListAgentTasksToolChoiceAgents1$.outboundSchema = exports.ListAgentTasksToolChoiceAgents1$outboundSchema;
1363
+ })(ListAgentTasksToolChoiceAgents1$ || (exports.ListAgentTasksToolChoiceAgents1$ = ListAgentTasksToolChoiceAgents1$ = {}));
1364
+ /** @internal */
1365
+ exports.ListAgentTasksFallbackModelsToolChoice$inboundSchema = z.union([
1366
+ z.lazy(() => exports.ListAgentTasksToolChoiceAgents2$inboundSchema),
1367
+ exports.ListAgentTasksToolChoiceAgents1$inboundSchema,
1368
+ ]);
1369
+ /** @internal */
1370
+ exports.ListAgentTasksFallbackModelsToolChoice$outboundSchema = z.union([
1371
+ z.lazy(() => exports.ListAgentTasksToolChoiceAgents2$outboundSchema),
1372
+ exports.ListAgentTasksToolChoiceAgents1$outboundSchema,
1373
+ ]);
1374
+ /**
1375
+ * @internal
1376
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1377
+ */
1378
+ var ListAgentTasksFallbackModelsToolChoice$;
1379
+ (function (ListAgentTasksFallbackModelsToolChoice$) {
1380
+ /** @deprecated use `ListAgentTasksFallbackModelsToolChoice$inboundSchema` instead. */
1381
+ ListAgentTasksFallbackModelsToolChoice$.inboundSchema = exports.ListAgentTasksFallbackModelsToolChoice$inboundSchema;
1382
+ /** @deprecated use `ListAgentTasksFallbackModelsToolChoice$outboundSchema` instead. */
1383
+ ListAgentTasksFallbackModelsToolChoice$.outboundSchema = exports.ListAgentTasksFallbackModelsToolChoice$outboundSchema;
1384
+ })(ListAgentTasksFallbackModelsToolChoice$ || (exports.ListAgentTasksFallbackModelsToolChoice$ = ListAgentTasksFallbackModelsToolChoice$ = {}));
1385
+ function listAgentTasksFallbackModelsToolChoiceToJSON(listAgentTasksFallbackModelsToolChoice) {
1386
+ return JSON.stringify(exports.ListAgentTasksFallbackModelsToolChoice$outboundSchema.parse(listAgentTasksFallbackModelsToolChoice));
1387
+ }
1388
+ function listAgentTasksFallbackModelsToolChoiceFromJSON(jsonString) {
1389
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModelsToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModelsToolChoice' from JSON`);
1390
+ }
1391
+ /** @internal */
1392
+ exports.ListAgentTasksFallbackModelsModalities$inboundSchema = z.nativeEnum(exports.ListAgentTasksFallbackModelsModalities);
1393
+ /** @internal */
1394
+ exports.ListAgentTasksFallbackModelsModalities$outboundSchema = exports.ListAgentTasksFallbackModelsModalities$inboundSchema;
1395
+ /**
1396
+ * @internal
1397
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1398
+ */
1399
+ var ListAgentTasksFallbackModelsModalities$;
1400
+ (function (ListAgentTasksFallbackModelsModalities$) {
1401
+ /** @deprecated use `ListAgentTasksFallbackModelsModalities$inboundSchema` instead. */
1402
+ ListAgentTasksFallbackModelsModalities$.inboundSchema = exports.ListAgentTasksFallbackModelsModalities$inboundSchema;
1403
+ /** @deprecated use `ListAgentTasksFallbackModelsModalities$outboundSchema` instead. */
1404
+ ListAgentTasksFallbackModelsModalities$.outboundSchema = exports.ListAgentTasksFallbackModelsModalities$outboundSchema;
1405
+ })(ListAgentTasksFallbackModelsModalities$ || (exports.ListAgentTasksFallbackModelsModalities$ = ListAgentTasksFallbackModelsModalities$ = {}));
1406
+ /** @internal */
1407
+ exports.ListAgentTasksFallbackModelsWebSearchOptions$inboundSchema = z.object({
1408
+ enabled: z.boolean().optional(),
1409
+ });
1410
+ /** @internal */
1411
+ exports.ListAgentTasksFallbackModelsWebSearchOptions$outboundSchema = z.object({
1412
+ enabled: z.boolean().optional(),
1413
+ });
1414
+ /**
1415
+ * @internal
1416
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1417
+ */
1418
+ var ListAgentTasksFallbackModelsWebSearchOptions$;
1419
+ (function (ListAgentTasksFallbackModelsWebSearchOptions$) {
1420
+ /** @deprecated use `ListAgentTasksFallbackModelsWebSearchOptions$inboundSchema` instead. */
1421
+ ListAgentTasksFallbackModelsWebSearchOptions$.inboundSchema = exports.ListAgentTasksFallbackModelsWebSearchOptions$inboundSchema;
1422
+ /** @deprecated use `ListAgentTasksFallbackModelsWebSearchOptions$outboundSchema` instead. */
1423
+ ListAgentTasksFallbackModelsWebSearchOptions$.outboundSchema = exports.ListAgentTasksFallbackModelsWebSearchOptions$outboundSchema;
1424
+ })(ListAgentTasksFallbackModelsWebSearchOptions$ || (exports.ListAgentTasksFallbackModelsWebSearchOptions$ = ListAgentTasksFallbackModelsWebSearchOptions$ = {}));
1425
+ function listAgentTasksFallbackModelsWebSearchOptionsToJSON(listAgentTasksFallbackModelsWebSearchOptions) {
1426
+ return JSON.stringify(exports.ListAgentTasksFallbackModelsWebSearchOptions$outboundSchema.parse(listAgentTasksFallbackModelsWebSearchOptions));
1427
+ }
1428
+ function listAgentTasksFallbackModelsWebSearchOptionsFromJSON(jsonString) {
1429
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModelsWebSearchOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModelsWebSearchOptions' from JSON`);
1430
+ }
1431
+ /** @internal */
1432
+ exports.ListAgentTasksFallbackModelsParameters$inboundSchema = z.object({
1433
+ audio: z.nullable(z.lazy(() => exports.ListAgentTasksFallbackModelsAudio$inboundSchema)).optional(),
1434
+ frequency_penalty: z.nullable(z.number()).optional(),
1435
+ max_tokens: z.nullable(z.number().int()).optional(),
1436
+ max_completion_tokens: z.nullable(z.number().int()).optional(),
1437
+ logprobs: z.nullable(z.boolean()).optional(),
1438
+ top_logprobs: z.nullable(z.number().int()).optional(),
1439
+ n: z.nullable(z.number().int()).optional(),
1440
+ presence_penalty: z.nullable(z.number()).optional(),
1441
+ response_format: z.union([
1442
+ z.lazy(() => exports.ListAgentTasksResponseFormatAgents3$inboundSchema),
1443
+ z.lazy(() => exports.ListAgentTasksResponseFormatAgents1$inboundSchema),
1444
+ z.lazy(() => exports.ListAgentTasksResponseFormatAgents2$inboundSchema),
1445
+ ]).optional(),
1446
+ reasoning_effort: z.string().optional(),
1447
+ verbosity: z.string().optional(),
1448
+ seed: z.nullable(z.number()).optional(),
1449
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
1450
+ stream_options: z.nullable(z.lazy(() => exports.ListAgentTasksFallbackModelsStreamOptions$inboundSchema)).optional(),
1451
+ thinking: z.lazy(() => exports.ListAgentTasksFallbackModelsThinking$inboundSchema)
1452
+ .optional(),
1453
+ temperature: z.nullable(z.number()).optional(),
1454
+ top_p: z.nullable(z.number()).optional(),
1455
+ top_k: z.nullable(z.number()).optional(),
1456
+ tool_choice: z.union([
1457
+ z.lazy(() => exports.ListAgentTasksToolChoiceAgents2$inboundSchema),
1458
+ exports.ListAgentTasksToolChoiceAgents1$inboundSchema,
1459
+ ]).optional(),
1460
+ parallel_tool_calls: z.boolean().optional(),
1461
+ modalities: z.nullable(z.array(exports.ListAgentTasksFallbackModelsModalities$inboundSchema)).optional(),
1462
+ web_search_options: z.lazy(() => exports.ListAgentTasksFallbackModelsWebSearchOptions$inboundSchema).optional(),
1463
+ }).transform((v) => {
1464
+ return (0, primitives_js_1.remap)(v, {
1465
+ "frequency_penalty": "frequencyPenalty",
1466
+ "max_tokens": "maxTokens",
1467
+ "max_completion_tokens": "maxCompletionTokens",
1468
+ "top_logprobs": "topLogprobs",
1469
+ "presence_penalty": "presencePenalty",
1470
+ "response_format": "responseFormat",
1471
+ "reasoning_effort": "reasoningEffort",
1472
+ "stream_options": "streamOptions",
1473
+ "top_p": "topP",
1474
+ "top_k": "topK",
1475
+ "tool_choice": "toolChoice",
1476
+ "parallel_tool_calls": "parallelToolCalls",
1477
+ "web_search_options": "webSearchOptions",
1478
+ });
1479
+ });
1480
+ /** @internal */
1481
+ exports.ListAgentTasksFallbackModelsParameters$outboundSchema = z.object({
1482
+ audio: z.nullable(z.lazy(() => exports.ListAgentTasksFallbackModelsAudio$outboundSchema)).optional(),
1483
+ frequencyPenalty: z.nullable(z.number()).optional(),
1484
+ maxTokens: z.nullable(z.number().int()).optional(),
1485
+ maxCompletionTokens: z.nullable(z.number().int()).optional(),
1486
+ logprobs: z.nullable(z.boolean()).optional(),
1487
+ topLogprobs: z.nullable(z.number().int()).optional(),
1488
+ n: z.nullable(z.number().int()).optional(),
1489
+ presencePenalty: z.nullable(z.number()).optional(),
1490
+ responseFormat: z.union([
1491
+ z.lazy(() => exports.ListAgentTasksResponseFormatAgents3$outboundSchema),
1492
+ z.lazy(() => exports.ListAgentTasksResponseFormatAgents1$outboundSchema),
1493
+ z.lazy(() => exports.ListAgentTasksResponseFormatAgents2$outboundSchema),
1494
+ ]).optional(),
1495
+ reasoningEffort: z.string().optional(),
1496
+ verbosity: z.string().optional(),
1497
+ seed: z.nullable(z.number()).optional(),
1498
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
1499
+ streamOptions: z.nullable(z.lazy(() => exports.ListAgentTasksFallbackModelsStreamOptions$outboundSchema)).optional(),
1500
+ thinking: z.lazy(() => exports.ListAgentTasksFallbackModelsThinking$outboundSchema)
1501
+ .optional(),
1502
+ temperature: z.nullable(z.number()).optional(),
1503
+ topP: z.nullable(z.number()).optional(),
1504
+ topK: z.nullable(z.number()).optional(),
1505
+ toolChoice: z.union([
1506
+ z.lazy(() => exports.ListAgentTasksToolChoiceAgents2$outboundSchema),
1507
+ exports.ListAgentTasksToolChoiceAgents1$outboundSchema,
1508
+ ]).optional(),
1509
+ parallelToolCalls: z.boolean().optional(),
1510
+ modalities: z.nullable(z.array(exports.ListAgentTasksFallbackModelsModalities$outboundSchema)).optional(),
1511
+ webSearchOptions: z.lazy(() => exports.ListAgentTasksFallbackModelsWebSearchOptions$outboundSchema).optional(),
1512
+ }).transform((v) => {
1513
+ return (0, primitives_js_1.remap)(v, {
1514
+ frequencyPenalty: "frequency_penalty",
1515
+ maxTokens: "max_tokens",
1516
+ maxCompletionTokens: "max_completion_tokens",
1517
+ topLogprobs: "top_logprobs",
1518
+ presencePenalty: "presence_penalty",
1519
+ responseFormat: "response_format",
1520
+ reasoningEffort: "reasoning_effort",
1521
+ streamOptions: "stream_options",
1522
+ topP: "top_p",
1523
+ topK: "top_k",
1524
+ toolChoice: "tool_choice",
1525
+ parallelToolCalls: "parallel_tool_calls",
1526
+ webSearchOptions: "web_search_options",
1527
+ });
1528
+ });
1529
+ /**
1530
+ * @internal
1531
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1532
+ */
1533
+ var ListAgentTasksFallbackModelsParameters$;
1534
+ (function (ListAgentTasksFallbackModelsParameters$) {
1535
+ /** @deprecated use `ListAgentTasksFallbackModelsParameters$inboundSchema` instead. */
1536
+ ListAgentTasksFallbackModelsParameters$.inboundSchema = exports.ListAgentTasksFallbackModelsParameters$inboundSchema;
1537
+ /** @deprecated use `ListAgentTasksFallbackModelsParameters$outboundSchema` instead. */
1538
+ ListAgentTasksFallbackModelsParameters$.outboundSchema = exports.ListAgentTasksFallbackModelsParameters$outboundSchema;
1539
+ })(ListAgentTasksFallbackModelsParameters$ || (exports.ListAgentTasksFallbackModelsParameters$ = ListAgentTasksFallbackModelsParameters$ = {}));
1540
+ function listAgentTasksFallbackModelsParametersToJSON(listAgentTasksFallbackModelsParameters) {
1541
+ return JSON.stringify(exports.ListAgentTasksFallbackModelsParameters$outboundSchema.parse(listAgentTasksFallbackModelsParameters));
1542
+ }
1543
+ function listAgentTasksFallbackModelsParametersFromJSON(jsonString) {
1544
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModelsParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModelsParameters' from JSON`);
1545
+ }
1546
+ /** @internal */
1547
+ exports.ListAgentTasksFallbackModels2$inboundSchema = z.object({
1548
+ id: z.string(),
1549
+ integration_id: z.nullable(z.string()).optional(),
1550
+ parameters: z.lazy(() => exports.ListAgentTasksFallbackModelsParameters$inboundSchema)
1551
+ .optional(),
1552
+ }).transform((v) => {
1553
+ return (0, primitives_js_1.remap)(v, {
1554
+ "integration_id": "integrationId",
1555
+ });
1556
+ });
1557
+ /** @internal */
1558
+ exports.ListAgentTasksFallbackModels2$outboundSchema = z.object({
1559
+ id: z.string(),
1560
+ integrationId: z.nullable(z.string()).optional(),
1561
+ parameters: z.lazy(() => exports.ListAgentTasksFallbackModelsParameters$outboundSchema).optional(),
1562
+ }).transform((v) => {
1563
+ return (0, primitives_js_1.remap)(v, {
1564
+ integrationId: "integration_id",
1565
+ });
1566
+ });
1567
+ /**
1568
+ * @internal
1569
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1570
+ */
1571
+ var ListAgentTasksFallbackModels2$;
1572
+ (function (ListAgentTasksFallbackModels2$) {
1573
+ /** @deprecated use `ListAgentTasksFallbackModels2$inboundSchema` instead. */
1574
+ ListAgentTasksFallbackModels2$.inboundSchema = exports.ListAgentTasksFallbackModels2$inboundSchema;
1575
+ /** @deprecated use `ListAgentTasksFallbackModels2$outboundSchema` instead. */
1576
+ ListAgentTasksFallbackModels2$.outboundSchema = exports.ListAgentTasksFallbackModels2$outboundSchema;
1577
+ })(ListAgentTasksFallbackModels2$ || (exports.ListAgentTasksFallbackModels2$ = ListAgentTasksFallbackModels2$ = {}));
1578
+ function listAgentTasksFallbackModels2ToJSON(listAgentTasksFallbackModels2) {
1579
+ return JSON.stringify(exports.ListAgentTasksFallbackModels2$outboundSchema.parse(listAgentTasksFallbackModels2));
1580
+ }
1581
+ function listAgentTasksFallbackModels2FromJSON(jsonString) {
1582
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModels2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModels2' from JSON`);
1583
+ }
1584
+ /** @internal */
1585
+ exports.ListAgentTasksFallbackModels$inboundSchema = z.union([
1586
+ z.lazy(() => exports.ListAgentTasksFallbackModels2$inboundSchema),
1587
+ z.string(),
1588
+ ]);
1589
+ /** @internal */
1590
+ exports.ListAgentTasksFallbackModels$outboundSchema = z.union([
1591
+ z.lazy(() => exports.ListAgentTasksFallbackModels2$outboundSchema),
1592
+ z.string(),
1593
+ ]);
1594
+ /**
1595
+ * @internal
1596
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1597
+ */
1598
+ var ListAgentTasksFallbackModels$;
1599
+ (function (ListAgentTasksFallbackModels$) {
1600
+ /** @deprecated use `ListAgentTasksFallbackModels$inboundSchema` instead. */
1601
+ ListAgentTasksFallbackModels$.inboundSchema = exports.ListAgentTasksFallbackModels$inboundSchema;
1602
+ /** @deprecated use `ListAgentTasksFallbackModels$outboundSchema` instead. */
1603
+ ListAgentTasksFallbackModels$.outboundSchema = exports.ListAgentTasksFallbackModels$outboundSchema;
1604
+ })(ListAgentTasksFallbackModels$ || (exports.ListAgentTasksFallbackModels$ = ListAgentTasksFallbackModels$ = {}));
1605
+ function listAgentTasksFallbackModelsToJSON(listAgentTasksFallbackModels) {
1606
+ return JSON.stringify(exports.ListAgentTasksFallbackModels$outboundSchema.parse(listAgentTasksFallbackModels));
1607
+ }
1608
+ function listAgentTasksFallbackModelsFromJSON(jsonString) {
1609
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModels$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModels' from JSON`);
1610
+ }
1611
+ /** @internal */
144
1612
  exports.ListAgentTasksModel$inboundSchema = z.object({
145
1613
  id: z.string(),
146
1614
  integration_id: z.nullable(z.string()).optional(),
147
- fallback_models: z.nullable(z.array(z.string())).optional(),
148
- max_tokens: z.number().int().optional(),
149
- temperature: z.number().optional(),
1615
+ parameters: z.lazy(() => exports.ListAgentTasksParameters$inboundSchema).optional(),
1616
+ fallback_models: z.nullable(z.array(z.union([
1617
+ z.lazy(() => exports.ListAgentTasksFallbackModels2$inboundSchema),
1618
+ z.string(),
1619
+ ]))).optional(),
150
1620
  }).transform((v) => {
151
1621
  return (0, primitives_js_1.remap)(v, {
152
1622
  "integration_id": "integrationId",
153
1623
  "fallback_models": "fallbackModels",
154
- "max_tokens": "maxTokens",
155
1624
  });
156
1625
  });
157
1626
  /** @internal */
158
1627
  exports.ListAgentTasksModel$outboundSchema = z.object({
159
1628
  id: z.string(),
160
1629
  integrationId: z.nullable(z.string()).optional(),
161
- fallbackModels: z.nullable(z.array(z.string())).optional(),
162
- maxTokens: z.number().int().optional(),
163
- temperature: z.number().optional(),
1630
+ parameters: z.lazy(() => exports.ListAgentTasksParameters$outboundSchema).optional(),
1631
+ fallbackModels: z.nullable(z.array(z.union([
1632
+ z.lazy(() => exports.ListAgentTasksFallbackModels2$outboundSchema),
1633
+ z.string(),
1634
+ ]))).optional(),
164
1635
  }).transform((v) => {
165
1636
  return (0, primitives_js_1.remap)(v, {
166
1637
  integrationId: "integration_id",
167
1638
  fallbackModels: "fallback_models",
168
- maxTokens: "max_tokens",
169
1639
  });
170
1640
  });
171
1641
  /**