@openrouter/sdk 0.0.0-beta.32 → 0.0.0-beta.37

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 (307) hide show
  1. package/FUNCTIONS.md +5 -3
  2. package/REACT_QUERY.md +6 -4
  3. package/README.md +21 -9
  4. package/dist/commonjs/funcs/betaResponsesSend.d.ts +26 -0
  5. package/dist/commonjs/funcs/betaResponsesSend.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/{betaResponsesSendRequest.js → betaResponsesSend.js} +5 -13
  7. package/dist/commonjs/funcs/betaResponsesSend.js.map +1 -0
  8. package/dist/commonjs/funcs/chatSend.d.ts +3 -13
  9. package/dist/commonjs/funcs/chatSend.d.ts.map +1 -1
  10. package/dist/commonjs/funcs/chatSend.js +1 -8
  11. package/dist/commonjs/funcs/chatSend.js.map +1 -1
  12. package/dist/commonjs/funcs/endpointsList.d.ts +1 -1
  13. package/dist/commonjs/funcs/endpointsList.d.ts.map +1 -1
  14. package/dist/commonjs/funcs/endpointsList.js +1 -1
  15. package/dist/commonjs/funcs/endpointsList.js.map +1 -1
  16. package/dist/commonjs/funcs/modelsList.d.ts +1 -7
  17. package/dist/commonjs/funcs/modelsList.d.ts.map +1 -1
  18. package/dist/commonjs/funcs/modelsList.js +2 -9
  19. package/dist/commonjs/funcs/modelsList.js.map +1 -1
  20. package/dist/commonjs/lib/config.d.ts +2 -2
  21. package/dist/commonjs/lib/config.js +2 -2
  22. package/dist/commonjs/models/endpointslist.d.ts +768 -0
  23. package/dist/commonjs/models/endpointslist.d.ts.map +1 -0
  24. package/dist/commonjs/models/endpointslist.js +625 -0
  25. package/dist/commonjs/models/endpointslist.js.map +1 -0
  26. package/dist/commonjs/models/index.d.ts +4 -4
  27. package/dist/commonjs/models/index.d.ts.map +1 -1
  28. package/dist/commonjs/models/index.js +4 -4
  29. package/dist/commonjs/models/index.js.map +1 -1
  30. package/dist/commonjs/models/keyinfo.d.ts +155 -0
  31. package/dist/commonjs/models/keyinfo.d.ts.map +1 -0
  32. package/dist/commonjs/models/keyinfo.js +163 -0
  33. package/dist/commonjs/models/keyinfo.js.map +1 -0
  34. package/dist/commonjs/models/modelslist.d.ts +854 -0
  35. package/dist/commonjs/models/modelslist.d.ts.map +1 -0
  36. package/dist/commonjs/models/modelslist.js +768 -0
  37. package/dist/commonjs/models/modelslist.js.map +1 -0
  38. package/dist/commonjs/models/operations/generate.d.ts +103 -103
  39. package/dist/commonjs/models/operations/generate.d.ts.map +1 -1
  40. package/dist/commonjs/models/operations/generate.js +142 -153
  41. package/dist/commonjs/models/operations/generate.js.map +1 -1
  42. package/dist/commonjs/models/operations/getcurrentkey.d.ts +3 -108
  43. package/dist/commonjs/models/operations/getcurrentkey.d.ts.map +1 -1
  44. package/dist/commonjs/models/operations/getcurrentkey.js +4 -88
  45. package/dist/commonjs/models/operations/getcurrentkey.js.map +1 -1
  46. package/dist/commonjs/models/operations/list.d.ts +63 -825
  47. package/dist/commonjs/models/operations/list.d.ts.map +1 -1
  48. package/dist/commonjs/models/operations/list.js +86 -667
  49. package/dist/commonjs/models/operations/list.js.map +1 -1
  50. package/dist/commonjs/models/operations/listmodels.d.ts +16 -865
  51. package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
  52. package/dist/commonjs/models/operations/listmodels.js +19 -742
  53. package/dist/commonjs/models/operations/listmodels.js.map +1 -1
  54. package/dist/commonjs/models/operations/listusermodels.d.ts +3 -852
  55. package/dist/commonjs/models/operations/listusermodels.d.ts.map +1 -1
  56. package/dist/commonjs/models/operations/listusermodels.js +4 -730
  57. package/dist/commonjs/models/operations/listusermodels.js.map +1 -1
  58. package/dist/commonjs/models/operations/previewzdr.d.ts +97 -97
  59. package/dist/commonjs/models/operations/previewzdr.d.ts.map +1 -1
  60. package/dist/commonjs/models/operations/previewzdr.js +134 -133
  61. package/dist/commonjs/models/operations/previewzdr.js.map +1 -1
  62. package/dist/commonjs/models/operations/sendresponsesrequest.d.ts +1693 -0
  63. package/dist/commonjs/models/operations/sendresponsesrequest.d.ts.map +1 -1
  64. package/dist/commonjs/models/operations/sendresponsesrequest.js +1156 -1
  65. package/dist/commonjs/models/operations/sendresponsesrequest.js.map +1 -1
  66. package/dist/commonjs/models/responsereasoningconfig.d.ts +4 -0
  67. package/dist/commonjs/models/responsereasoningconfig.d.ts.map +1 -1
  68. package/dist/commonjs/models/responsereasoningconfig.js +13 -0
  69. package/dist/commonjs/models/responsereasoningconfig.js.map +1 -1
  70. package/dist/commonjs/models/responsesnonstreamingresponse.d.ts +19 -19
  71. package/dist/commonjs/models/responsesnonstreamingresponse.d.ts.map +1 -1
  72. package/dist/commonjs/models/responsesnonstreamingresponse.js +30 -32
  73. package/dist/commonjs/models/responsesnonstreamingresponse.js.map +1 -1
  74. package/dist/commonjs/models/responsesusage.d.ts +41 -0
  75. package/dist/commonjs/models/responsesusage.d.ts.map +1 -1
  76. package/dist/commonjs/models/responsesusage.js +54 -1
  77. package/dist/commonjs/models/responsesusage.js.map +1 -1
  78. package/dist/commonjs/models/{toolchoice.d.ts → toolchoiceunion.d.ts} +95 -16
  79. package/dist/commonjs/models/toolchoiceunion.d.ts.map +1 -0
  80. package/dist/commonjs/models/{toolchoice.js → toolchoiceunion.js} +94 -21
  81. package/dist/commonjs/models/toolchoiceunion.js.map +1 -0
  82. package/dist/commonjs/react-query/betaResponsesSend.d.ts +23 -0
  83. package/dist/commonjs/react-query/betaResponsesSend.d.ts.map +1 -0
  84. package/dist/commonjs/react-query/betaResponsesSend.js +47 -0
  85. package/dist/commonjs/react-query/betaResponsesSend.js.map +1 -0
  86. package/dist/commonjs/react-query/chatSend.d.ts +1 -5
  87. package/dist/commonjs/react-query/chatSend.d.ts.map +1 -1
  88. package/dist/commonjs/react-query/chatSend.js +0 -3
  89. package/dist/commonjs/react-query/chatSend.js.map +1 -1
  90. package/dist/commonjs/react-query/endpointsList.d.ts +4 -4
  91. package/dist/commonjs/react-query/endpointsList.d.ts.map +1 -1
  92. package/dist/commonjs/react-query/endpointsList.js.map +1 -1
  93. package/dist/commonjs/react-query/index.d.ts +1 -1
  94. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  95. package/dist/commonjs/react-query/index.js +1 -1
  96. package/dist/commonjs/react-query/index.js.map +1 -1
  97. package/dist/commonjs/react-query/modelsList.d.ts +4 -8
  98. package/dist/commonjs/react-query/modelsList.d.ts.map +1 -1
  99. package/dist/commonjs/react-query/modelsList.js +0 -3
  100. package/dist/commonjs/react-query/modelsList.js.map +1 -1
  101. package/dist/commonjs/sdk/chat.d.ts +3 -11
  102. package/dist/commonjs/sdk/chat.d.ts.map +1 -1
  103. package/dist/commonjs/sdk/chat.js +1 -3
  104. package/dist/commonjs/sdk/chat.js.map +1 -1
  105. package/dist/commonjs/sdk/endpoints.d.ts +1 -1
  106. package/dist/commonjs/sdk/endpoints.d.ts.map +1 -1
  107. package/dist/commonjs/sdk/endpoints.js.map +1 -1
  108. package/dist/commonjs/sdk/models.d.ts +1 -5
  109. package/dist/commonjs/sdk/models.d.ts.map +1 -1
  110. package/dist/commonjs/sdk/models.js +1 -3
  111. package/dist/commonjs/sdk/models.js.map +1 -1
  112. package/dist/commonjs/sdk/responses.d.ts +6 -14
  113. package/dist/commonjs/sdk/responses.d.ts.map +1 -1
  114. package/dist/commonjs/sdk/responses.js +4 -6
  115. package/dist/commonjs/sdk/responses.js.map +1 -1
  116. package/dist/esm/funcs/betaResponsesSend.d.ts +26 -0
  117. package/dist/esm/funcs/betaResponsesSend.d.ts.map +1 -0
  118. package/dist/esm/funcs/{betaResponsesSendRequest.js → betaResponsesSend.js} +4 -11
  119. package/dist/esm/funcs/betaResponsesSend.js.map +1 -0
  120. package/dist/esm/funcs/chatSend.d.ts +3 -13
  121. package/dist/esm/funcs/chatSend.d.ts.map +1 -1
  122. package/dist/esm/funcs/chatSend.js +1 -7
  123. package/dist/esm/funcs/chatSend.js.map +1 -1
  124. package/dist/esm/funcs/endpointsList.d.ts +1 -1
  125. package/dist/esm/funcs/endpointsList.d.ts.map +1 -1
  126. package/dist/esm/funcs/endpointsList.js +1 -1
  127. package/dist/esm/funcs/endpointsList.js.map +1 -1
  128. package/dist/esm/funcs/modelsList.d.ts +1 -7
  129. package/dist/esm/funcs/modelsList.d.ts.map +1 -1
  130. package/dist/esm/funcs/modelsList.js +2 -8
  131. package/dist/esm/funcs/modelsList.js.map +1 -1
  132. package/dist/esm/lib/config.d.ts +2 -2
  133. package/dist/esm/lib/config.js +2 -2
  134. package/dist/esm/models/endpointslist.d.ts +768 -0
  135. package/dist/esm/models/endpointslist.d.ts.map +1 -0
  136. package/dist/esm/models/endpointslist.js +562 -0
  137. package/dist/esm/models/endpointslist.js.map +1 -0
  138. package/dist/esm/models/index.d.ts +4 -4
  139. package/dist/esm/models/index.d.ts.map +1 -1
  140. package/dist/esm/models/index.js +4 -4
  141. package/dist/esm/models/index.js.map +1 -1
  142. package/dist/esm/models/keyinfo.d.ts +155 -0
  143. package/dist/esm/models/keyinfo.d.ts.map +1 -0
  144. package/dist/esm/models/keyinfo.js +123 -0
  145. package/dist/esm/models/keyinfo.js.map +1 -0
  146. package/dist/esm/models/modelslist.d.ts +854 -0
  147. package/dist/esm/models/modelslist.d.ts.map +1 -0
  148. package/dist/esm/models/modelslist.js +697 -0
  149. package/dist/esm/models/modelslist.js.map +1 -0
  150. package/dist/esm/models/operations/generate.d.ts +103 -103
  151. package/dist/esm/models/operations/generate.d.ts.map +1 -1
  152. package/dist/esm/models/operations/generate.js +138 -149
  153. package/dist/esm/models/operations/generate.js.map +1 -1
  154. package/dist/esm/models/operations/getcurrentkey.d.ts +3 -108
  155. package/dist/esm/models/operations/getcurrentkey.d.ts.map +1 -1
  156. package/dist/esm/models/operations/getcurrentkey.js +3 -83
  157. package/dist/esm/models/operations/getcurrentkey.js.map +1 -1
  158. package/dist/esm/models/operations/list.d.ts +63 -825
  159. package/dist/esm/models/operations/list.d.ts.map +1 -1
  160. package/dist/esm/models/operations/list.js +81 -635
  161. package/dist/esm/models/operations/list.js.map +1 -1
  162. package/dist/esm/models/operations/listmodels.d.ts +16 -865
  163. package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
  164. package/dist/esm/models/operations/listmodels.js +16 -704
  165. package/dist/esm/models/operations/listmodels.js.map +1 -1
  166. package/dist/esm/models/operations/listusermodels.d.ts +3 -852
  167. package/dist/esm/models/operations/listusermodels.d.ts.map +1 -1
  168. package/dist/esm/models/operations/listusermodels.js +3 -694
  169. package/dist/esm/models/operations/listusermodels.js.map +1 -1
  170. package/dist/esm/models/operations/previewzdr.d.ts +97 -97
  171. package/dist/esm/models/operations/previewzdr.d.ts.map +1 -1
  172. package/dist/esm/models/operations/previewzdr.js +118 -117
  173. package/dist/esm/models/operations/previewzdr.js.map +1 -1
  174. package/dist/esm/models/operations/sendresponsesrequest.d.ts +1693 -0
  175. package/dist/esm/models/operations/sendresponsesrequest.d.ts.map +1 -1
  176. package/dist/esm/models/operations/sendresponsesrequest.js +1117 -0
  177. package/dist/esm/models/operations/sendresponsesrequest.js.map +1 -1
  178. package/dist/esm/models/responsereasoningconfig.d.ts +4 -0
  179. package/dist/esm/models/responsereasoningconfig.d.ts.map +1 -1
  180. package/dist/esm/models/responsereasoningconfig.js +13 -0
  181. package/dist/esm/models/responsereasoningconfig.js.map +1 -1
  182. package/dist/esm/models/responsesnonstreamingresponse.d.ts +19 -19
  183. package/dist/esm/models/responsesnonstreamingresponse.d.ts.map +1 -1
  184. package/dist/esm/models/responsesnonstreamingresponse.js +29 -31
  185. package/dist/esm/models/responsesnonstreamingresponse.js.map +1 -1
  186. package/dist/esm/models/responsesusage.d.ts +41 -0
  187. package/dist/esm/models/responsesusage.d.ts.map +1 -1
  188. package/dist/esm/models/responsesusage.js +51 -0
  189. package/dist/esm/models/responsesusage.js.map +1 -1
  190. package/dist/esm/models/{toolchoice.d.ts → toolchoiceunion.d.ts} +95 -16
  191. package/dist/esm/models/toolchoiceunion.d.ts.map +1 -0
  192. package/dist/esm/models/toolchoiceunion.js +164 -0
  193. package/dist/esm/models/toolchoiceunion.js.map +1 -0
  194. package/dist/esm/react-query/betaResponsesSend.d.ts +23 -0
  195. package/dist/esm/react-query/betaResponsesSend.d.ts.map +1 -0
  196. package/dist/esm/react-query/{betaResponsesSendRequest.js → betaResponsesSend.js} +10 -11
  197. package/dist/esm/react-query/betaResponsesSend.js.map +1 -0
  198. package/dist/esm/react-query/chatSend.d.ts +1 -5
  199. package/dist/esm/react-query/chatSend.d.ts.map +1 -1
  200. package/dist/esm/react-query/chatSend.js +0 -1
  201. package/dist/esm/react-query/chatSend.js.map +1 -1
  202. package/dist/esm/react-query/endpointsList.d.ts +4 -4
  203. package/dist/esm/react-query/endpointsList.d.ts.map +1 -1
  204. package/dist/esm/react-query/endpointsList.js.map +1 -1
  205. package/dist/esm/react-query/index.d.ts +1 -1
  206. package/dist/esm/react-query/index.d.ts.map +1 -1
  207. package/dist/esm/react-query/index.js +1 -1
  208. package/dist/esm/react-query/index.js.map +1 -1
  209. package/dist/esm/react-query/modelsList.d.ts +4 -8
  210. package/dist/esm/react-query/modelsList.d.ts.map +1 -1
  211. package/dist/esm/react-query/modelsList.js +0 -1
  212. package/dist/esm/react-query/modelsList.js.map +1 -1
  213. package/dist/esm/sdk/chat.d.ts +3 -11
  214. package/dist/esm/sdk/chat.d.ts.map +1 -1
  215. package/dist/esm/sdk/chat.js +0 -1
  216. package/dist/esm/sdk/chat.js.map +1 -1
  217. package/dist/esm/sdk/endpoints.d.ts +1 -1
  218. package/dist/esm/sdk/endpoints.d.ts.map +1 -1
  219. package/dist/esm/sdk/endpoints.js.map +1 -1
  220. package/dist/esm/sdk/models.d.ts +1 -5
  221. package/dist/esm/sdk/models.d.ts.map +1 -1
  222. package/dist/esm/sdk/models.js +0 -1
  223. package/dist/esm/sdk/models.js.map +1 -1
  224. package/dist/esm/sdk/responses.d.ts +6 -14
  225. package/dist/esm/sdk/responses.d.ts.map +1 -1
  226. package/dist/esm/sdk/responses.js +3 -4
  227. package/dist/esm/sdk/responses.js.map +1 -1
  228. package/docs/sdks/endpoints/README.md +1 -1
  229. package/docs/sdks/models/README.md +1 -1
  230. package/docs/sdks/responses/README.md +13 -9
  231. package/examples/{betaResponsesSendRequest.example.ts → betaResponsesSend.example.ts} +4 -2
  232. package/jsr.json +1 -1
  233. package/package.json +1 -1
  234. package/src/funcs/{betaResponsesSendRequest.ts → betaResponsesSend.ts} +19 -24
  235. package/src/funcs/chatSend.ts +6 -12
  236. package/src/funcs/endpointsList.ts +3 -3
  237. package/src/funcs/modelsList.ts +6 -14
  238. package/src/lib/config.ts +2 -2
  239. package/src/models/endpointslist.ts +1030 -0
  240. package/src/models/index.ts +4 -4
  241. package/src/models/keyinfo.ts +281 -0
  242. package/src/models/modelslist.ts +1394 -0
  243. package/src/models/operations/generate.ts +232 -188
  244. package/src/models/operations/getcurrentkey.ts +5 -203
  245. package/src/models/operations/list.ts +109 -1106
  246. package/src/models/operations/listmodels.ts +26 -1436
  247. package/src/models/operations/listusermodels.ts +5 -1440
  248. package/src/models/operations/previewzdr.ts +196 -225
  249. package/src/models/operations/sendresponsesrequest.ts +2005 -0
  250. package/src/models/responsereasoningconfig.ts +17 -0
  251. package/src/models/responsesnonstreamingresponse.ts +37 -55
  252. package/src/models/responsesusage.ts +96 -0
  253. package/src/models/{toolchoice.ts → toolchoiceunion.ts} +181 -37
  254. package/src/react-query/{betaResponsesSendRequest.ts → betaResponsesSend.ts} +20 -26
  255. package/src/react-query/chatSend.ts +2 -4
  256. package/src/react-query/endpointsList.ts +4 -4
  257. package/src/react-query/index.ts +1 -1
  258. package/src/react-query/modelsList.ts +6 -8
  259. package/src/sdk/chat.ts +5 -7
  260. package/src/sdk/endpoints.ts +1 -1
  261. package/src/sdk/models.ts +3 -5
  262. package/src/sdk/responses.ts +18 -21
  263. package/dist/commonjs/funcs/betaResponsesSendRequest.d.ts +0 -36
  264. package/dist/commonjs/funcs/betaResponsesSendRequest.d.ts.map +0 -1
  265. package/dist/commonjs/funcs/betaResponsesSendRequest.js.map +0 -1
  266. package/dist/commonjs/models/openairesponsesrequest.d.ts +0 -1704
  267. package/dist/commonjs/models/openairesponsesrequest.d.ts.map +0 -1
  268. package/dist/commonjs/models/openairesponsesrequest.js +0 -1212
  269. package/dist/commonjs/models/openairesponsesrequest.js.map +0 -1
  270. package/dist/commonjs/models/toolchoice.d.ts.map +0 -1
  271. package/dist/commonjs/models/toolchoice.js.map +0 -1
  272. package/dist/commonjs/models/toolchoicefunction.d.ts +0 -57
  273. package/dist/commonjs/models/toolchoicefunction.d.ts.map +0 -1
  274. package/dist/commonjs/models/toolchoicefunction.js +0 -89
  275. package/dist/commonjs/models/toolchoicefunction.js.map +0 -1
  276. package/dist/commonjs/models/toolchoicetypes.d.ts +0 -33
  277. package/dist/commonjs/models/toolchoicetypes.d.ts.map +0 -1
  278. package/dist/commonjs/models/toolchoicetypes.js +0 -70
  279. package/dist/commonjs/models/toolchoicetypes.js.map +0 -1
  280. package/dist/commonjs/react-query/betaResponsesSendRequest.d.ts +0 -28
  281. package/dist/commonjs/react-query/betaResponsesSendRequest.d.ts.map +0 -1
  282. package/dist/commonjs/react-query/betaResponsesSendRequest.js +0 -50
  283. package/dist/commonjs/react-query/betaResponsesSendRequest.js.map +0 -1
  284. package/dist/esm/funcs/betaResponsesSendRequest.d.ts +0 -36
  285. package/dist/esm/funcs/betaResponsesSendRequest.d.ts.map +0 -1
  286. package/dist/esm/funcs/betaResponsesSendRequest.js.map +0 -1
  287. package/dist/esm/models/openairesponsesrequest.d.ts +0 -1704
  288. package/dist/esm/models/openairesponsesrequest.d.ts.map +0 -1
  289. package/dist/esm/models/openairesponsesrequest.js +0 -1138
  290. package/dist/esm/models/openairesponsesrequest.js.map +0 -1
  291. package/dist/esm/models/toolchoice.d.ts.map +0 -1
  292. package/dist/esm/models/toolchoice.js +0 -95
  293. package/dist/esm/models/toolchoice.js.map +0 -1
  294. package/dist/esm/models/toolchoicefunction.d.ts +0 -57
  295. package/dist/esm/models/toolchoicefunction.d.ts.map +0 -1
  296. package/dist/esm/models/toolchoicefunction.js +0 -51
  297. package/dist/esm/models/toolchoicefunction.js.map +0 -1
  298. package/dist/esm/models/toolchoicetypes.d.ts +0 -33
  299. package/dist/esm/models/toolchoicetypes.d.ts.map +0 -1
  300. package/dist/esm/models/toolchoicetypes.js +0 -32
  301. package/dist/esm/models/toolchoicetypes.js.map +0 -1
  302. package/dist/esm/react-query/betaResponsesSendRequest.d.ts +0 -28
  303. package/dist/esm/react-query/betaResponsesSendRequest.d.ts.map +0 -1
  304. package/dist/esm/react-query/betaResponsesSendRequest.js.map +0 -1
  305. package/src/models/openairesponsesrequest.ts +0 -1935
  306. package/src/models/toolchoicefunction.ts +0 -100
  307. package/src/models/toolchoicetypes.ts +0 -73
@@ -1,1212 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.OpenAIResponsesRequestPrompt$ = exports.OpenAIResponsesRequestPrompt$outboundSchema = exports.OpenAIResponsesRequestPrompt$inboundSchema = exports.Sort$ = exports.Sort$outboundSchema = exports.Sort$inboundSchema = exports.Quantization$ = exports.Quantization$outboundSchema = exports.Quantization$inboundSchema = exports.Ignore$ = exports.Ignore$outboundSchema = exports.Ignore$inboundSchema = exports.IgnoreEnum$ = exports.IgnoreEnum$outboundSchema = exports.IgnoreEnum$inboundSchema = exports.Only$ = exports.Only$outboundSchema = exports.Only$inboundSchema = exports.OnlyEnum$ = exports.OnlyEnum$outboundSchema = exports.OnlyEnum$inboundSchema = exports.Order$ = exports.Order$outboundSchema = exports.Order$inboundSchema = exports.OrderEnum$ = exports.OrderEnum$outboundSchema = exports.OrderEnum$inboundSchema = exports.DataCollection$ = exports.DataCollection$outboundSchema = exports.DataCollection$inboundSchema = exports.OpenAIResponsesRequestTruncation$ = exports.OpenAIResponsesRequestTruncation$outboundSchema = exports.OpenAIResponsesRequestTruncation$inboundSchema = exports.OpenAIResponsesRequestServiceTier$ = exports.OpenAIResponsesRequestServiceTier$outboundSchema = exports.OpenAIResponsesRequestServiceTier$inboundSchema = exports.IdModeration = exports.Engine = exports.IdWeb = exports.IdChainOfThought = exports.PdfEngine = exports.IdFileParser = exports.Sort = exports.Quantization = exports.IgnoreEnum = exports.OnlyEnum = exports.OrderEnum = exports.DataCollection = exports.OpenAIResponsesRequestTruncation = exports.OpenAIResponsesRequestServiceTier = void 0;
40
- exports.IdModeration$outboundSchema = exports.IdModeration$inboundSchema = exports.PluginWeb$ = exports.PluginWeb$outboundSchema = exports.PluginWeb$inboundSchema = exports.Engine$ = exports.Engine$outboundSchema = exports.Engine$inboundSchema = exports.IdWeb$ = exports.IdWeb$outboundSchema = exports.IdWeb$inboundSchema = exports.PluginChainOfThought$ = exports.PluginChainOfThought$outboundSchema = exports.PluginChainOfThought$inboundSchema = exports.IdChainOfThought$ = exports.IdChainOfThought$outboundSchema = exports.IdChainOfThought$inboundSchema = exports.PluginFileParser$ = exports.PluginFileParser$outboundSchema = exports.PluginFileParser$inboundSchema = exports.Pdf$ = exports.Pdf$outboundSchema = exports.Pdf$inboundSchema = exports.PdfEngine$ = exports.PdfEngine$outboundSchema = exports.PdfEngine$inboundSchema = exports.IdFileParser$ = exports.IdFileParser$outboundSchema = exports.IdFileParser$inboundSchema = exports.Provider$ = exports.Provider$outboundSchema = exports.Provider$inboundSchema = exports.Experimental$ = exports.Experimental$outboundSchema = exports.Experimental$inboundSchema = exports.MaxPrice$ = exports.MaxPrice$outboundSchema = exports.MaxPrice$inboundSchema = exports.RequestT$ = exports.RequestT$outboundSchema = exports.RequestT$inboundSchema = exports.Audio$ = exports.Audio$outboundSchema = exports.Audio$inboundSchema = exports.Image$ = exports.Image$outboundSchema = exports.Image$inboundSchema = exports.Completion$ = exports.Completion$outboundSchema = exports.Completion$inboundSchema = void 0;
41
- exports.OpenAIResponsesRequest$ = exports.OpenAIResponsesRequest$outboundSchema = exports.OpenAIResponsesRequest$inboundSchema = exports.Plugin$ = exports.Plugin$outboundSchema = exports.Plugin$inboundSchema = exports.PluginModeration$ = exports.PluginModeration$outboundSchema = exports.PluginModeration$inboundSchema = exports.IdModeration$ = void 0;
42
- exports.orderToJSON = orderToJSON;
43
- exports.orderFromJSON = orderFromJSON;
44
- exports.onlyToJSON = onlyToJSON;
45
- exports.onlyFromJSON = onlyFromJSON;
46
- exports.ignoreToJSON = ignoreToJSON;
47
- exports.ignoreFromJSON = ignoreFromJSON;
48
- exports.openAIResponsesRequestPromptToJSON = openAIResponsesRequestPromptToJSON;
49
- exports.openAIResponsesRequestPromptFromJSON = openAIResponsesRequestPromptFromJSON;
50
- exports.completionToJSON = completionToJSON;
51
- exports.completionFromJSON = completionFromJSON;
52
- exports.imageToJSON = imageToJSON;
53
- exports.imageFromJSON = imageFromJSON;
54
- exports.audioToJSON = audioToJSON;
55
- exports.audioFromJSON = audioFromJSON;
56
- exports.requestToJSON = requestToJSON;
57
- exports.requestFromJSON = requestFromJSON;
58
- exports.maxPriceToJSON = maxPriceToJSON;
59
- exports.maxPriceFromJSON = maxPriceFromJSON;
60
- exports.experimentalToJSON = experimentalToJSON;
61
- exports.experimentalFromJSON = experimentalFromJSON;
62
- exports.providerToJSON = providerToJSON;
63
- exports.providerFromJSON = providerFromJSON;
64
- exports.pdfToJSON = pdfToJSON;
65
- exports.pdfFromJSON = pdfFromJSON;
66
- exports.pluginFileParserToJSON = pluginFileParserToJSON;
67
- exports.pluginFileParserFromJSON = pluginFileParserFromJSON;
68
- exports.pluginChainOfThoughtToJSON = pluginChainOfThoughtToJSON;
69
- exports.pluginChainOfThoughtFromJSON = pluginChainOfThoughtFromJSON;
70
- exports.pluginWebToJSON = pluginWebToJSON;
71
- exports.pluginWebFromJSON = pluginWebFromJSON;
72
- exports.pluginModerationToJSON = pluginModerationToJSON;
73
- exports.pluginModerationFromJSON = pluginModerationFromJSON;
74
- exports.pluginToJSON = pluginToJSON;
75
- exports.pluginFromJSON = pluginFromJSON;
76
- exports.openAIResponsesRequestToJSON = openAIResponsesRequestToJSON;
77
- exports.openAIResponsesRequestFromJSON = openAIResponsesRequestFromJSON;
78
- const z = __importStar(require("zod"));
79
- const primitives_js_1 = require("../lib/primitives.js");
80
- const schemas_js_1 = require("../lib/schemas.js");
81
- const responseincludable_js_1 = require("./responseincludable.js");
82
- const responseinput_js_1 = require("./responseinput.js");
83
- const responseprompt_js_1 = require("./responseprompt.js");
84
- const responsereasoningconfig_js_1 = require("./responsereasoningconfig.js");
85
- const responsetextconfig_js_1 = require("./responsetextconfig.js");
86
- const tool_js_1 = require("./tool.js");
87
- const toolchoice_js_1 = require("./toolchoice.js");
88
- exports.OpenAIResponsesRequestServiceTier = {
89
- Auto: "auto",
90
- Default: "default",
91
- Flex: "flex",
92
- Priority: "priority",
93
- Scale: "scale",
94
- };
95
- exports.OpenAIResponsesRequestTruncation = {
96
- Auto: "auto",
97
- Disabled: "disabled",
98
- };
99
- /**
100
- * Data collection setting. If no available model provider meets the requirement, your request will return an error.
101
- *
102
- * @remarks
103
- * - allow: (default) allow providers which store user data non-transiently and may train on it
104
- * - deny: use only providers which do not collect user data.
105
- */
106
- exports.DataCollection = {
107
- Deny: "deny",
108
- Allow: "allow",
109
- };
110
- exports.OrderEnum = {
111
- AnyScale: "AnyScale",
112
- CentML: "Cent-ML",
113
- HuggingFace: "HuggingFace",
114
- Hyperbolic2: "Hyperbolic 2",
115
- Lepton: "Lepton",
116
- Lynn2: "Lynn 2",
117
- Lynn: "Lynn",
118
- Mancer: "Mancer",
119
- Modal: "Modal",
120
- OctoAI: "OctoAI",
121
- Recursal: "Recursal",
122
- Reflection: "Reflection",
123
- Replicate: "Replicate",
124
- SambaNova2: "SambaNova 2",
125
- SFCompute: "SF Compute",
126
- Together2: "Together 2",
127
- OneDotAI: "01.AI",
128
- Ai21: "AI21",
129
- AionLabs: "AionLabs",
130
- Alibaba: "Alibaba",
131
- AmazonBedrock: "Amazon Bedrock",
132
- Anthropic: "Anthropic",
133
- AtlasCloud: "AtlasCloud",
134
- Atoma: "Atoma",
135
- Avian: "Avian",
136
- Azure: "Azure",
137
- BaseTen: "BaseTen",
138
- Cerebras: "Cerebras",
139
- Chutes: "Chutes",
140
- Cloudflare: "Cloudflare",
141
- Cohere: "Cohere",
142
- CrofAI: "CrofAI",
143
- Crusoe: "Crusoe",
144
- DeepInfra: "DeepInfra",
145
- DeepSeek: "DeepSeek",
146
- Enfer: "Enfer",
147
- Featherless: "Featherless",
148
- Fireworks: "Fireworks",
149
- Friendli: "Friendli",
150
- GMICloud: "GMICloud",
151
- Google: "Google",
152
- GoogleAIStudio: "Google AI Studio",
153
- Groq: "Groq",
154
- Hyperbolic: "Hyperbolic",
155
- Inception: "Inception",
156
- InferenceNet: "InferenceNet",
157
- Infermatic: "Infermatic",
158
- Inflection: "Inflection",
159
- InoCloud: "InoCloud",
160
- Kluster: "Kluster",
161
- Lambda: "Lambda",
162
- Liquid: "Liquid",
163
- Mancer2: "Mancer 2",
164
- Meta: "Meta",
165
- Minimax: "Minimax",
166
- Mistral: "Mistral",
167
- MoonshotAI: "Moonshot AI",
168
- Morph: "Morph",
169
- NCompass: "NCompass",
170
- Nebius: "Nebius",
171
- NextBit: "NextBit",
172
- Nineteen: "Nineteen",
173
- Novita: "Novita",
174
- Nvidia: "Nvidia",
175
- OpenAI: "OpenAI",
176
- OpenInference: "OpenInference",
177
- Parasail: "Parasail",
178
- Perplexity: "Perplexity",
179
- Phala: "Phala",
180
- Relace: "Relace",
181
- SambaNova: "SambaNova",
182
- SiliconFlow: "SiliconFlow",
183
- Stealth: "Stealth",
184
- Switchpoint: "Switchpoint",
185
- Targon: "Targon",
186
- Together: "Together",
187
- Ubicloud: "Ubicloud",
188
- Venice: "Venice",
189
- WandB: "WandB",
190
- XAI: "xAI",
191
- ZAi: "Z.AI",
192
- FakeProvider: "FakeProvider",
193
- };
194
- exports.OnlyEnum = {
195
- AnyScale: "AnyScale",
196
- CentML: "Cent-ML",
197
- HuggingFace: "HuggingFace",
198
- Hyperbolic2: "Hyperbolic 2",
199
- Lepton: "Lepton",
200
- Lynn2: "Lynn 2",
201
- Lynn: "Lynn",
202
- Mancer: "Mancer",
203
- Modal: "Modal",
204
- OctoAI: "OctoAI",
205
- Recursal: "Recursal",
206
- Reflection: "Reflection",
207
- Replicate: "Replicate",
208
- SambaNova2: "SambaNova 2",
209
- SFCompute: "SF Compute",
210
- Together2: "Together 2",
211
- OneDotAI: "01.AI",
212
- Ai21: "AI21",
213
- AionLabs: "AionLabs",
214
- Alibaba: "Alibaba",
215
- AmazonBedrock: "Amazon Bedrock",
216
- Anthropic: "Anthropic",
217
- AtlasCloud: "AtlasCloud",
218
- Atoma: "Atoma",
219
- Avian: "Avian",
220
- Azure: "Azure",
221
- BaseTen: "BaseTen",
222
- Cerebras: "Cerebras",
223
- Chutes: "Chutes",
224
- Cloudflare: "Cloudflare",
225
- Cohere: "Cohere",
226
- CrofAI: "CrofAI",
227
- Crusoe: "Crusoe",
228
- DeepInfra: "DeepInfra",
229
- DeepSeek: "DeepSeek",
230
- Enfer: "Enfer",
231
- Featherless: "Featherless",
232
- Fireworks: "Fireworks",
233
- Friendli: "Friendli",
234
- GMICloud: "GMICloud",
235
- Google: "Google",
236
- GoogleAIStudio: "Google AI Studio",
237
- Groq: "Groq",
238
- Hyperbolic: "Hyperbolic",
239
- Inception: "Inception",
240
- InferenceNet: "InferenceNet",
241
- Infermatic: "Infermatic",
242
- Inflection: "Inflection",
243
- InoCloud: "InoCloud",
244
- Kluster: "Kluster",
245
- Lambda: "Lambda",
246
- Liquid: "Liquid",
247
- Mancer2: "Mancer 2",
248
- Meta: "Meta",
249
- Minimax: "Minimax",
250
- Mistral: "Mistral",
251
- MoonshotAI: "Moonshot AI",
252
- Morph: "Morph",
253
- NCompass: "NCompass",
254
- Nebius: "Nebius",
255
- NextBit: "NextBit",
256
- Nineteen: "Nineteen",
257
- Novita: "Novita",
258
- Nvidia: "Nvidia",
259
- OpenAI: "OpenAI",
260
- OpenInference: "OpenInference",
261
- Parasail: "Parasail",
262
- Perplexity: "Perplexity",
263
- Phala: "Phala",
264
- Relace: "Relace",
265
- SambaNova: "SambaNova",
266
- SiliconFlow: "SiliconFlow",
267
- Stealth: "Stealth",
268
- Switchpoint: "Switchpoint",
269
- Targon: "Targon",
270
- Together: "Together",
271
- Ubicloud: "Ubicloud",
272
- Venice: "Venice",
273
- WandB: "WandB",
274
- XAI: "xAI",
275
- ZAi: "Z.AI",
276
- FakeProvider: "FakeProvider",
277
- };
278
- exports.IgnoreEnum = {
279
- AnyScale: "AnyScale",
280
- CentML: "Cent-ML",
281
- HuggingFace: "HuggingFace",
282
- Hyperbolic2: "Hyperbolic 2",
283
- Lepton: "Lepton",
284
- Lynn2: "Lynn 2",
285
- Lynn: "Lynn",
286
- Mancer: "Mancer",
287
- Modal: "Modal",
288
- OctoAI: "OctoAI",
289
- Recursal: "Recursal",
290
- Reflection: "Reflection",
291
- Replicate: "Replicate",
292
- SambaNova2: "SambaNova 2",
293
- SFCompute: "SF Compute",
294
- Together2: "Together 2",
295
- OneDotAI: "01.AI",
296
- Ai21: "AI21",
297
- AionLabs: "AionLabs",
298
- Alibaba: "Alibaba",
299
- AmazonBedrock: "Amazon Bedrock",
300
- Anthropic: "Anthropic",
301
- AtlasCloud: "AtlasCloud",
302
- Atoma: "Atoma",
303
- Avian: "Avian",
304
- Azure: "Azure",
305
- BaseTen: "BaseTen",
306
- Cerebras: "Cerebras",
307
- Chutes: "Chutes",
308
- Cloudflare: "Cloudflare",
309
- Cohere: "Cohere",
310
- CrofAI: "CrofAI",
311
- Crusoe: "Crusoe",
312
- DeepInfra: "DeepInfra",
313
- DeepSeek: "DeepSeek",
314
- Enfer: "Enfer",
315
- Featherless: "Featherless",
316
- Fireworks: "Fireworks",
317
- Friendli: "Friendli",
318
- GMICloud: "GMICloud",
319
- Google: "Google",
320
- GoogleAIStudio: "Google AI Studio",
321
- Groq: "Groq",
322
- Hyperbolic: "Hyperbolic",
323
- Inception: "Inception",
324
- InferenceNet: "InferenceNet",
325
- Infermatic: "Infermatic",
326
- Inflection: "Inflection",
327
- InoCloud: "InoCloud",
328
- Kluster: "Kluster",
329
- Lambda: "Lambda",
330
- Liquid: "Liquid",
331
- Mancer2: "Mancer 2",
332
- Meta: "Meta",
333
- Minimax: "Minimax",
334
- Mistral: "Mistral",
335
- MoonshotAI: "Moonshot AI",
336
- Morph: "Morph",
337
- NCompass: "NCompass",
338
- Nebius: "Nebius",
339
- NextBit: "NextBit",
340
- Nineteen: "Nineteen",
341
- Novita: "Novita",
342
- Nvidia: "Nvidia",
343
- OpenAI: "OpenAI",
344
- OpenInference: "OpenInference",
345
- Parasail: "Parasail",
346
- Perplexity: "Perplexity",
347
- Phala: "Phala",
348
- Relace: "Relace",
349
- SambaNova: "SambaNova",
350
- SiliconFlow: "SiliconFlow",
351
- Stealth: "Stealth",
352
- Switchpoint: "Switchpoint",
353
- Targon: "Targon",
354
- Together: "Together",
355
- Ubicloud: "Ubicloud",
356
- Venice: "Venice",
357
- WandB: "WandB",
358
- XAI: "xAI",
359
- ZAi: "Z.AI",
360
- FakeProvider: "FakeProvider",
361
- };
362
- exports.Quantization = {
363
- Int4: "int4",
364
- Int8: "int8",
365
- Fp4: "fp4",
366
- Fp6: "fp6",
367
- Fp8: "fp8",
368
- Fp16: "fp16",
369
- Bf16: "bf16",
370
- Fp32: "fp32",
371
- Unknown: "unknown",
372
- };
373
- /**
374
- * The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
375
- */
376
- exports.Sort = {
377
- Price: "price",
378
- Throughput: "throughput",
379
- Latency: "latency",
380
- };
381
- exports.IdFileParser = {
382
- FileParser: "file-parser",
383
- };
384
- exports.PdfEngine = {
385
- MistralOcr: "mistral-ocr",
386
- PdfText: "pdf-text",
387
- Native: "native",
388
- };
389
- exports.IdChainOfThought = {
390
- ChainOfThought: "chain-of-thought",
391
- };
392
- exports.IdWeb = {
393
- Web: "web",
394
- };
395
- exports.Engine = {
396
- Native: "native",
397
- Exa: "exa",
398
- };
399
- exports.IdModeration = {
400
- Moderation: "moderation",
401
- };
402
- /** @internal */
403
- exports.OpenAIResponsesRequestServiceTier$inboundSchema = z.nativeEnum(exports.OpenAIResponsesRequestServiceTier);
404
- /** @internal */
405
- exports.OpenAIResponsesRequestServiceTier$outboundSchema = exports.OpenAIResponsesRequestServiceTier$inboundSchema;
406
- /**
407
- * @internal
408
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
409
- */
410
- var OpenAIResponsesRequestServiceTier$;
411
- (function (OpenAIResponsesRequestServiceTier$) {
412
- /** @deprecated use `OpenAIResponsesRequestServiceTier$inboundSchema` instead. */
413
- OpenAIResponsesRequestServiceTier$.inboundSchema = exports.OpenAIResponsesRequestServiceTier$inboundSchema;
414
- /** @deprecated use `OpenAIResponsesRequestServiceTier$outboundSchema` instead. */
415
- OpenAIResponsesRequestServiceTier$.outboundSchema = exports.OpenAIResponsesRequestServiceTier$outboundSchema;
416
- })(OpenAIResponsesRequestServiceTier$ || (exports.OpenAIResponsesRequestServiceTier$ = OpenAIResponsesRequestServiceTier$ = {}));
417
- /** @internal */
418
- exports.OpenAIResponsesRequestTruncation$inboundSchema = z.nativeEnum(exports.OpenAIResponsesRequestTruncation);
419
- /** @internal */
420
- exports.OpenAIResponsesRequestTruncation$outboundSchema = exports.OpenAIResponsesRequestTruncation$inboundSchema;
421
- /**
422
- * @internal
423
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
424
- */
425
- var OpenAIResponsesRequestTruncation$;
426
- (function (OpenAIResponsesRequestTruncation$) {
427
- /** @deprecated use `OpenAIResponsesRequestTruncation$inboundSchema` instead. */
428
- OpenAIResponsesRequestTruncation$.inboundSchema = exports.OpenAIResponsesRequestTruncation$inboundSchema;
429
- /** @deprecated use `OpenAIResponsesRequestTruncation$outboundSchema` instead. */
430
- OpenAIResponsesRequestTruncation$.outboundSchema = exports.OpenAIResponsesRequestTruncation$outboundSchema;
431
- })(OpenAIResponsesRequestTruncation$ || (exports.OpenAIResponsesRequestTruncation$ = OpenAIResponsesRequestTruncation$ = {}));
432
- /** @internal */
433
- exports.DataCollection$inboundSchema = z.nativeEnum(exports.DataCollection);
434
- /** @internal */
435
- exports.DataCollection$outboundSchema = exports.DataCollection$inboundSchema;
436
- /**
437
- * @internal
438
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
439
- */
440
- var DataCollection$;
441
- (function (DataCollection$) {
442
- /** @deprecated use `DataCollection$inboundSchema` instead. */
443
- DataCollection$.inboundSchema = exports.DataCollection$inboundSchema;
444
- /** @deprecated use `DataCollection$outboundSchema` instead. */
445
- DataCollection$.outboundSchema = exports.DataCollection$outboundSchema;
446
- })(DataCollection$ || (exports.DataCollection$ = DataCollection$ = {}));
447
- /** @internal */
448
- exports.OrderEnum$inboundSchema = z
449
- .nativeEnum(exports.OrderEnum);
450
- /** @internal */
451
- exports.OrderEnum$outboundSchema = exports.OrderEnum$inboundSchema;
452
- /**
453
- * @internal
454
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
455
- */
456
- var OrderEnum$;
457
- (function (OrderEnum$) {
458
- /** @deprecated use `OrderEnum$inboundSchema` instead. */
459
- OrderEnum$.inboundSchema = exports.OrderEnum$inboundSchema;
460
- /** @deprecated use `OrderEnum$outboundSchema` instead. */
461
- OrderEnum$.outboundSchema = exports.OrderEnum$outboundSchema;
462
- })(OrderEnum$ || (exports.OrderEnum$ = OrderEnum$ = {}));
463
- /** @internal */
464
- exports.Order$inboundSchema = z
465
- .union([exports.OrderEnum$inboundSchema, z.string()]);
466
- /** @internal */
467
- exports.Order$outboundSchema = z.union([exports.OrderEnum$outboundSchema, z.string()]);
468
- /**
469
- * @internal
470
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
471
- */
472
- var Order$;
473
- (function (Order$) {
474
- /** @deprecated use `Order$inboundSchema` instead. */
475
- Order$.inboundSchema = exports.Order$inboundSchema;
476
- /** @deprecated use `Order$outboundSchema` instead. */
477
- Order$.outboundSchema = exports.Order$outboundSchema;
478
- })(Order$ || (exports.Order$ = Order$ = {}));
479
- function orderToJSON(order) {
480
- return JSON.stringify(exports.Order$outboundSchema.parse(order));
481
- }
482
- function orderFromJSON(jsonString) {
483
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Order$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Order' from JSON`);
484
- }
485
- /** @internal */
486
- exports.OnlyEnum$inboundSchema = z
487
- .nativeEnum(exports.OnlyEnum);
488
- /** @internal */
489
- exports.OnlyEnum$outboundSchema = exports.OnlyEnum$inboundSchema;
490
- /**
491
- * @internal
492
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
493
- */
494
- var OnlyEnum$;
495
- (function (OnlyEnum$) {
496
- /** @deprecated use `OnlyEnum$inboundSchema` instead. */
497
- OnlyEnum$.inboundSchema = exports.OnlyEnum$inboundSchema;
498
- /** @deprecated use `OnlyEnum$outboundSchema` instead. */
499
- OnlyEnum$.outboundSchema = exports.OnlyEnum$outboundSchema;
500
- })(OnlyEnum$ || (exports.OnlyEnum$ = OnlyEnum$ = {}));
501
- /** @internal */
502
- exports.Only$inboundSchema = z
503
- .union([exports.OnlyEnum$inboundSchema, z.string()]);
504
- /** @internal */
505
- exports.Only$outboundSchema = z.union([exports.OnlyEnum$outboundSchema, z.string()]);
506
- /**
507
- * @internal
508
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
509
- */
510
- var Only$;
511
- (function (Only$) {
512
- /** @deprecated use `Only$inboundSchema` instead. */
513
- Only$.inboundSchema = exports.Only$inboundSchema;
514
- /** @deprecated use `Only$outboundSchema` instead. */
515
- Only$.outboundSchema = exports.Only$outboundSchema;
516
- })(Only$ || (exports.Only$ = Only$ = {}));
517
- function onlyToJSON(only) {
518
- return JSON.stringify(exports.Only$outboundSchema.parse(only));
519
- }
520
- function onlyFromJSON(jsonString) {
521
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Only$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Only' from JSON`);
522
- }
523
- /** @internal */
524
- exports.IgnoreEnum$inboundSchema = z
525
- .nativeEnum(exports.IgnoreEnum);
526
- /** @internal */
527
- exports.IgnoreEnum$outboundSchema = exports.IgnoreEnum$inboundSchema;
528
- /**
529
- * @internal
530
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
531
- */
532
- var IgnoreEnum$;
533
- (function (IgnoreEnum$) {
534
- /** @deprecated use `IgnoreEnum$inboundSchema` instead. */
535
- IgnoreEnum$.inboundSchema = exports.IgnoreEnum$inboundSchema;
536
- /** @deprecated use `IgnoreEnum$outboundSchema` instead. */
537
- IgnoreEnum$.outboundSchema = exports.IgnoreEnum$outboundSchema;
538
- })(IgnoreEnum$ || (exports.IgnoreEnum$ = IgnoreEnum$ = {}));
539
- /** @internal */
540
- exports.Ignore$inboundSchema = z
541
- .union([exports.IgnoreEnum$inboundSchema, z.string()]);
542
- /** @internal */
543
- exports.Ignore$outboundSchema = z.union([exports.IgnoreEnum$outboundSchema, z.string()]);
544
- /**
545
- * @internal
546
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
547
- */
548
- var Ignore$;
549
- (function (Ignore$) {
550
- /** @deprecated use `Ignore$inboundSchema` instead. */
551
- Ignore$.inboundSchema = exports.Ignore$inboundSchema;
552
- /** @deprecated use `Ignore$outboundSchema` instead. */
553
- Ignore$.outboundSchema = exports.Ignore$outboundSchema;
554
- })(Ignore$ || (exports.Ignore$ = Ignore$ = {}));
555
- function ignoreToJSON(ignore) {
556
- return JSON.stringify(exports.Ignore$outboundSchema.parse(ignore));
557
- }
558
- function ignoreFromJSON(jsonString) {
559
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Ignore$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Ignore' from JSON`);
560
- }
561
- /** @internal */
562
- exports.Quantization$inboundSchema = z.nativeEnum(exports.Quantization);
563
- /** @internal */
564
- exports.Quantization$outboundSchema = exports.Quantization$inboundSchema;
565
- /**
566
- * @internal
567
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
568
- */
569
- var Quantization$;
570
- (function (Quantization$) {
571
- /** @deprecated use `Quantization$inboundSchema` instead. */
572
- Quantization$.inboundSchema = exports.Quantization$inboundSchema;
573
- /** @deprecated use `Quantization$outboundSchema` instead. */
574
- Quantization$.outboundSchema = exports.Quantization$outboundSchema;
575
- })(Quantization$ || (exports.Quantization$ = Quantization$ = {}));
576
- /** @internal */
577
- exports.Sort$inboundSchema = z.nativeEnum(exports.Sort);
578
- /** @internal */
579
- exports.Sort$outboundSchema = exports.Sort$inboundSchema;
580
- /**
581
- * @internal
582
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
583
- */
584
- var Sort$;
585
- (function (Sort$) {
586
- /** @deprecated use `Sort$inboundSchema` instead. */
587
- Sort$.inboundSchema = exports.Sort$inboundSchema;
588
- /** @deprecated use `Sort$outboundSchema` instead. */
589
- Sort$.outboundSchema = exports.Sort$outboundSchema;
590
- })(Sort$ || (exports.Sort$ = Sort$ = {}));
591
- /** @internal */
592
- exports.OpenAIResponsesRequestPrompt$inboundSchema = z.union([z.number(), z.string(), z.any()]);
593
- /** @internal */
594
- exports.OpenAIResponsesRequestPrompt$outboundSchema = z.union([z.number(), z.string(), z.any()]);
595
- /**
596
- * @internal
597
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
598
- */
599
- var OpenAIResponsesRequestPrompt$;
600
- (function (OpenAIResponsesRequestPrompt$) {
601
- /** @deprecated use `OpenAIResponsesRequestPrompt$inboundSchema` instead. */
602
- OpenAIResponsesRequestPrompt$.inboundSchema = exports.OpenAIResponsesRequestPrompt$inboundSchema;
603
- /** @deprecated use `OpenAIResponsesRequestPrompt$outboundSchema` instead. */
604
- OpenAIResponsesRequestPrompt$.outboundSchema = exports.OpenAIResponsesRequestPrompt$outboundSchema;
605
- })(OpenAIResponsesRequestPrompt$ || (exports.OpenAIResponsesRequestPrompt$ = OpenAIResponsesRequestPrompt$ = {}));
606
- function openAIResponsesRequestPromptToJSON(openAIResponsesRequestPrompt) {
607
- return JSON.stringify(exports.OpenAIResponsesRequestPrompt$outboundSchema.parse(openAIResponsesRequestPrompt));
608
- }
609
- function openAIResponsesRequestPromptFromJSON(jsonString) {
610
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OpenAIResponsesRequestPrompt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesRequestPrompt' from JSON`);
611
- }
612
- /** @internal */
613
- exports.Completion$inboundSchema = z.union([z.number(), z.string(), z.any()]);
614
- /** @internal */
615
- exports.Completion$outboundSchema = z.union([z.number(), z.string(), z.any()]);
616
- /**
617
- * @internal
618
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
619
- */
620
- var Completion$;
621
- (function (Completion$) {
622
- /** @deprecated use `Completion$inboundSchema` instead. */
623
- Completion$.inboundSchema = exports.Completion$inboundSchema;
624
- /** @deprecated use `Completion$outboundSchema` instead. */
625
- Completion$.outboundSchema = exports.Completion$outboundSchema;
626
- })(Completion$ || (exports.Completion$ = Completion$ = {}));
627
- function completionToJSON(completion) {
628
- return JSON.stringify(exports.Completion$outboundSchema.parse(completion));
629
- }
630
- function completionFromJSON(jsonString) {
631
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Completion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Completion' from JSON`);
632
- }
633
- /** @internal */
634
- exports.Image$inboundSchema = z
635
- .union([z.number(), z.string(), z.any()]);
636
- /** @internal */
637
- exports.Image$outboundSchema = z.union([z.number(), z.string(), z.any()]);
638
- /**
639
- * @internal
640
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
641
- */
642
- var Image$;
643
- (function (Image$) {
644
- /** @deprecated use `Image$inboundSchema` instead. */
645
- Image$.inboundSchema = exports.Image$inboundSchema;
646
- /** @deprecated use `Image$outboundSchema` instead. */
647
- Image$.outboundSchema = exports.Image$outboundSchema;
648
- })(Image$ || (exports.Image$ = Image$ = {}));
649
- function imageToJSON(image) {
650
- return JSON.stringify(exports.Image$outboundSchema.parse(image));
651
- }
652
- function imageFromJSON(jsonString) {
653
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Image$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Image' from JSON`);
654
- }
655
- /** @internal */
656
- exports.Audio$inboundSchema = z
657
- .union([z.number(), z.string(), z.any()]);
658
- /** @internal */
659
- exports.Audio$outboundSchema = z.union([z.number(), z.string(), z.any()]);
660
- /**
661
- * @internal
662
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
663
- */
664
- var Audio$;
665
- (function (Audio$) {
666
- /** @deprecated use `Audio$inboundSchema` instead. */
667
- Audio$.inboundSchema = exports.Audio$inboundSchema;
668
- /** @deprecated use `Audio$outboundSchema` instead. */
669
- Audio$.outboundSchema = exports.Audio$outboundSchema;
670
- })(Audio$ || (exports.Audio$ = Audio$ = {}));
671
- function audioToJSON(audio) {
672
- return JSON.stringify(exports.Audio$outboundSchema.parse(audio));
673
- }
674
- function audioFromJSON(jsonString) {
675
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Audio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Audio' from JSON`);
676
- }
677
- /** @internal */
678
- exports.RequestT$inboundSchema = z.union([z.number(), z.string(), z.any()]);
679
- /** @internal */
680
- exports.RequestT$outboundSchema = z.union([z.number(), z.string(), z.any()]);
681
- /**
682
- * @internal
683
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
684
- */
685
- var RequestT$;
686
- (function (RequestT$) {
687
- /** @deprecated use `RequestT$inboundSchema` instead. */
688
- RequestT$.inboundSchema = exports.RequestT$inboundSchema;
689
- /** @deprecated use `RequestT$outboundSchema` instead. */
690
- RequestT$.outboundSchema = exports.RequestT$outboundSchema;
691
- })(RequestT$ || (exports.RequestT$ = RequestT$ = {}));
692
- function requestToJSON(requestT) {
693
- return JSON.stringify(exports.RequestT$outboundSchema.parse(requestT));
694
- }
695
- function requestFromJSON(jsonString) {
696
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RequestT$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestT' from JSON`);
697
- }
698
- /** @internal */
699
- exports.MaxPrice$inboundSchema = z.object({
700
- prompt: z.union([z.number(), z.string(), z.any()]).optional(),
701
- completion: z.union([z.number(), z.string(), z.any()]).optional(),
702
- image: z.union([z.number(), z.string(), z.any()]).optional(),
703
- audio: z.union([z.number(), z.string(), z.any()]).optional(),
704
- request: z.union([z.number(), z.string(), z.any()]).optional(),
705
- });
706
- /** @internal */
707
- exports.MaxPrice$outboundSchema = z.object({
708
- prompt: z.union([z.number(), z.string(), z.any()]).optional(),
709
- completion: z.union([z.number(), z.string(), z.any()]).optional(),
710
- image: z.union([z.number(), z.string(), z.any()]).optional(),
711
- audio: z.union([z.number(), z.string(), z.any()]).optional(),
712
- request: z.union([z.number(), z.string(), z.any()]).optional(),
713
- });
714
- /**
715
- * @internal
716
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
717
- */
718
- var MaxPrice$;
719
- (function (MaxPrice$) {
720
- /** @deprecated use `MaxPrice$inboundSchema` instead. */
721
- MaxPrice$.inboundSchema = exports.MaxPrice$inboundSchema;
722
- /** @deprecated use `MaxPrice$outboundSchema` instead. */
723
- MaxPrice$.outboundSchema = exports.MaxPrice$outboundSchema;
724
- })(MaxPrice$ || (exports.MaxPrice$ = MaxPrice$ = {}));
725
- function maxPriceToJSON(maxPrice) {
726
- return JSON.stringify(exports.MaxPrice$outboundSchema.parse(maxPrice));
727
- }
728
- function maxPriceFromJSON(jsonString) {
729
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MaxPrice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MaxPrice' from JSON`);
730
- }
731
- /** @internal */
732
- exports.Experimental$inboundSchema = z.object({});
733
- /** @internal */
734
- exports.Experimental$outboundSchema = z.object({});
735
- /**
736
- * @internal
737
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
738
- */
739
- var Experimental$;
740
- (function (Experimental$) {
741
- /** @deprecated use `Experimental$inboundSchema` instead. */
742
- Experimental$.inboundSchema = exports.Experimental$inboundSchema;
743
- /** @deprecated use `Experimental$outboundSchema` instead. */
744
- Experimental$.outboundSchema = exports.Experimental$outboundSchema;
745
- })(Experimental$ || (exports.Experimental$ = Experimental$ = {}));
746
- function experimentalToJSON(experimental) {
747
- return JSON.stringify(exports.Experimental$outboundSchema.parse(experimental));
748
- }
749
- function experimentalFromJSON(jsonString) {
750
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Experimental$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Experimental' from JSON`);
751
- }
752
- /** @internal */
753
- exports.Provider$inboundSchema = z.object({
754
- allow_fallbacks: z.nullable(z.boolean()).optional(),
755
- require_parameters: z.nullable(z.boolean()).optional(),
756
- data_collection: z.nullable(exports.DataCollection$inboundSchema).optional(),
757
- zdr: z.nullable(z.boolean()).optional(),
758
- order: z.nullable(z.array(z.union([exports.OrderEnum$inboundSchema, z.string()])))
759
- .optional(),
760
- only: z.nullable(z.array(z.union([exports.OnlyEnum$inboundSchema, z.string()])))
761
- .optional(),
762
- ignore: z.nullable(z.array(z.union([exports.IgnoreEnum$inboundSchema, z.string()])))
763
- .optional(),
764
- quantizations: z.nullable(z.array(exports.Quantization$inboundSchema)).optional(),
765
- sort: z.nullable(exports.Sort$inboundSchema).optional(),
766
- max_price: z.lazy(() => exports.MaxPrice$inboundSchema).optional(),
767
- experimental: z.nullable(z.lazy(() => exports.Experimental$inboundSchema)).optional(),
768
- }).transform((v) => {
769
- return (0, primitives_js_1.remap)(v, {
770
- "allow_fallbacks": "allowFallbacks",
771
- "require_parameters": "requireParameters",
772
- "data_collection": "dataCollection",
773
- "max_price": "maxPrice",
774
- });
775
- });
776
- /** @internal */
777
- exports.Provider$outboundSchema = z.object({
778
- allowFallbacks: z.nullable(z.boolean()).optional(),
779
- requireParameters: z.nullable(z.boolean()).optional(),
780
- dataCollection: z.nullable(exports.DataCollection$outboundSchema).optional(),
781
- zdr: z.nullable(z.boolean()).optional(),
782
- order: z.nullable(z.array(z.union([exports.OrderEnum$outboundSchema, z.string()])))
783
- .optional(),
784
- only: z.nullable(z.array(z.union([exports.OnlyEnum$outboundSchema, z.string()])))
785
- .optional(),
786
- ignore: z.nullable(z.array(z.union([exports.IgnoreEnum$outboundSchema, z.string()])))
787
- .optional(),
788
- quantizations: z.nullable(z.array(exports.Quantization$outboundSchema)).optional(),
789
- sort: z.nullable(exports.Sort$outboundSchema).optional(),
790
- maxPrice: z.lazy(() => exports.MaxPrice$outboundSchema).optional(),
791
- experimental: z.nullable(z.lazy(() => exports.Experimental$outboundSchema))
792
- .optional(),
793
- }).transform((v) => {
794
- return (0, primitives_js_1.remap)(v, {
795
- allowFallbacks: "allow_fallbacks",
796
- requireParameters: "require_parameters",
797
- dataCollection: "data_collection",
798
- maxPrice: "max_price",
799
- });
800
- });
801
- /**
802
- * @internal
803
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
804
- */
805
- var Provider$;
806
- (function (Provider$) {
807
- /** @deprecated use `Provider$inboundSchema` instead. */
808
- Provider$.inboundSchema = exports.Provider$inboundSchema;
809
- /** @deprecated use `Provider$outboundSchema` instead. */
810
- Provider$.outboundSchema = exports.Provider$outboundSchema;
811
- })(Provider$ || (exports.Provider$ = Provider$ = {}));
812
- function providerToJSON(provider) {
813
- return JSON.stringify(exports.Provider$outboundSchema.parse(provider));
814
- }
815
- function providerFromJSON(jsonString) {
816
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Provider$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Provider' from JSON`);
817
- }
818
- /** @internal */
819
- exports.IdFileParser$inboundSchema = z.nativeEnum(exports.IdFileParser);
820
- /** @internal */
821
- exports.IdFileParser$outboundSchema = exports.IdFileParser$inboundSchema;
822
- /**
823
- * @internal
824
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
825
- */
826
- var IdFileParser$;
827
- (function (IdFileParser$) {
828
- /** @deprecated use `IdFileParser$inboundSchema` instead. */
829
- IdFileParser$.inboundSchema = exports.IdFileParser$inboundSchema;
830
- /** @deprecated use `IdFileParser$outboundSchema` instead. */
831
- IdFileParser$.outboundSchema = exports.IdFileParser$outboundSchema;
832
- })(IdFileParser$ || (exports.IdFileParser$ = IdFileParser$ = {}));
833
- /** @internal */
834
- exports.PdfEngine$inboundSchema = z
835
- .nativeEnum(exports.PdfEngine);
836
- /** @internal */
837
- exports.PdfEngine$outboundSchema = exports.PdfEngine$inboundSchema;
838
- /**
839
- * @internal
840
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
841
- */
842
- var PdfEngine$;
843
- (function (PdfEngine$) {
844
- /** @deprecated use `PdfEngine$inboundSchema` instead. */
845
- PdfEngine$.inboundSchema = exports.PdfEngine$inboundSchema;
846
- /** @deprecated use `PdfEngine$outboundSchema` instead. */
847
- PdfEngine$.outboundSchema = exports.PdfEngine$outboundSchema;
848
- })(PdfEngine$ || (exports.PdfEngine$ = PdfEngine$ = {}));
849
- /** @internal */
850
- exports.Pdf$inboundSchema = z
851
- .object({
852
- engine: exports.PdfEngine$inboundSchema.optional(),
853
- });
854
- /** @internal */
855
- exports.Pdf$outboundSchema = z
856
- .object({
857
- engine: exports.PdfEngine$outboundSchema.optional(),
858
- });
859
- /**
860
- * @internal
861
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
862
- */
863
- var Pdf$;
864
- (function (Pdf$) {
865
- /** @deprecated use `Pdf$inboundSchema` instead. */
866
- Pdf$.inboundSchema = exports.Pdf$inboundSchema;
867
- /** @deprecated use `Pdf$outboundSchema` instead. */
868
- Pdf$.outboundSchema = exports.Pdf$outboundSchema;
869
- })(Pdf$ || (exports.Pdf$ = Pdf$ = {}));
870
- function pdfToJSON(pdf) {
871
- return JSON.stringify(exports.Pdf$outboundSchema.parse(pdf));
872
- }
873
- function pdfFromJSON(jsonString) {
874
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Pdf$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Pdf' from JSON`);
875
- }
876
- /** @internal */
877
- exports.PluginFileParser$inboundSchema = z.object({
878
- id: exports.IdFileParser$inboundSchema,
879
- max_files: z.number().optional(),
880
- pdf: z.lazy(() => exports.Pdf$inboundSchema).optional(),
881
- }).transform((v) => {
882
- return (0, primitives_js_1.remap)(v, {
883
- "max_files": "maxFiles",
884
- });
885
- });
886
- /** @internal */
887
- exports.PluginFileParser$outboundSchema = z.object({
888
- id: exports.IdFileParser$outboundSchema,
889
- maxFiles: z.number().optional(),
890
- pdf: z.lazy(() => exports.Pdf$outboundSchema).optional(),
891
- }).transform((v) => {
892
- return (0, primitives_js_1.remap)(v, {
893
- maxFiles: "max_files",
894
- });
895
- });
896
- /**
897
- * @internal
898
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
899
- */
900
- var PluginFileParser$;
901
- (function (PluginFileParser$) {
902
- /** @deprecated use `PluginFileParser$inboundSchema` instead. */
903
- PluginFileParser$.inboundSchema = exports.PluginFileParser$inboundSchema;
904
- /** @deprecated use `PluginFileParser$outboundSchema` instead. */
905
- PluginFileParser$.outboundSchema = exports.PluginFileParser$outboundSchema;
906
- })(PluginFileParser$ || (exports.PluginFileParser$ = PluginFileParser$ = {}));
907
- function pluginFileParserToJSON(pluginFileParser) {
908
- return JSON.stringify(exports.PluginFileParser$outboundSchema.parse(pluginFileParser));
909
- }
910
- function pluginFileParserFromJSON(jsonString) {
911
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PluginFileParser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PluginFileParser' from JSON`);
912
- }
913
- /** @internal */
914
- exports.IdChainOfThought$inboundSchema = z.nativeEnum(exports.IdChainOfThought);
915
- /** @internal */
916
- exports.IdChainOfThought$outboundSchema = exports.IdChainOfThought$inboundSchema;
917
- /**
918
- * @internal
919
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
920
- */
921
- var IdChainOfThought$;
922
- (function (IdChainOfThought$) {
923
- /** @deprecated use `IdChainOfThought$inboundSchema` instead. */
924
- IdChainOfThought$.inboundSchema = exports.IdChainOfThought$inboundSchema;
925
- /** @deprecated use `IdChainOfThought$outboundSchema` instead. */
926
- IdChainOfThought$.outboundSchema = exports.IdChainOfThought$outboundSchema;
927
- })(IdChainOfThought$ || (exports.IdChainOfThought$ = IdChainOfThought$ = {}));
928
- /** @internal */
929
- exports.PluginChainOfThought$inboundSchema = z.object({
930
- id: exports.IdChainOfThought$inboundSchema,
931
- });
932
- /** @internal */
933
- exports.PluginChainOfThought$outboundSchema = z.object({
934
- id: exports.IdChainOfThought$outboundSchema,
935
- });
936
- /**
937
- * @internal
938
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
939
- */
940
- var PluginChainOfThought$;
941
- (function (PluginChainOfThought$) {
942
- /** @deprecated use `PluginChainOfThought$inboundSchema` instead. */
943
- PluginChainOfThought$.inboundSchema = exports.PluginChainOfThought$inboundSchema;
944
- /** @deprecated use `PluginChainOfThought$outboundSchema` instead. */
945
- PluginChainOfThought$.outboundSchema = exports.PluginChainOfThought$outboundSchema;
946
- })(PluginChainOfThought$ || (exports.PluginChainOfThought$ = PluginChainOfThought$ = {}));
947
- function pluginChainOfThoughtToJSON(pluginChainOfThought) {
948
- return JSON.stringify(exports.PluginChainOfThought$outboundSchema.parse(pluginChainOfThought));
949
- }
950
- function pluginChainOfThoughtFromJSON(jsonString) {
951
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PluginChainOfThought$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PluginChainOfThought' from JSON`);
952
- }
953
- /** @internal */
954
- exports.IdWeb$inboundSchema = z.nativeEnum(exports.IdWeb);
955
- /** @internal */
956
- exports.IdWeb$outboundSchema = exports.IdWeb$inboundSchema;
957
- /**
958
- * @internal
959
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
960
- */
961
- var IdWeb$;
962
- (function (IdWeb$) {
963
- /** @deprecated use `IdWeb$inboundSchema` instead. */
964
- IdWeb$.inboundSchema = exports.IdWeb$inboundSchema;
965
- /** @deprecated use `IdWeb$outboundSchema` instead. */
966
- IdWeb$.outboundSchema = exports.IdWeb$outboundSchema;
967
- })(IdWeb$ || (exports.IdWeb$ = IdWeb$ = {}));
968
- /** @internal */
969
- exports.Engine$inboundSchema = z
970
- .nativeEnum(exports.Engine);
971
- /** @internal */
972
- exports.Engine$outboundSchema = exports.Engine$inboundSchema;
973
- /**
974
- * @internal
975
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
976
- */
977
- var Engine$;
978
- (function (Engine$) {
979
- /** @deprecated use `Engine$inboundSchema` instead. */
980
- Engine$.inboundSchema = exports.Engine$inboundSchema;
981
- /** @deprecated use `Engine$outboundSchema` instead. */
982
- Engine$.outboundSchema = exports.Engine$outboundSchema;
983
- })(Engine$ || (exports.Engine$ = Engine$ = {}));
984
- /** @internal */
985
- exports.PluginWeb$inboundSchema = z.object({
986
- id: exports.IdWeb$inboundSchema,
987
- max_results: z.number().optional(),
988
- search_prompt: z.string().optional(),
989
- engine: exports.Engine$inboundSchema.optional(),
990
- }).transform((v) => {
991
- return (0, primitives_js_1.remap)(v, {
992
- "max_results": "maxResults",
993
- "search_prompt": "searchPrompt",
994
- });
995
- });
996
- /** @internal */
997
- exports.PluginWeb$outboundSchema = z.object({
998
- id: exports.IdWeb$outboundSchema,
999
- maxResults: z.number().optional(),
1000
- searchPrompt: z.string().optional(),
1001
- engine: exports.Engine$outboundSchema.optional(),
1002
- }).transform((v) => {
1003
- return (0, primitives_js_1.remap)(v, {
1004
- maxResults: "max_results",
1005
- searchPrompt: "search_prompt",
1006
- });
1007
- });
1008
- /**
1009
- * @internal
1010
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1011
- */
1012
- var PluginWeb$;
1013
- (function (PluginWeb$) {
1014
- /** @deprecated use `PluginWeb$inboundSchema` instead. */
1015
- PluginWeb$.inboundSchema = exports.PluginWeb$inboundSchema;
1016
- /** @deprecated use `PluginWeb$outboundSchema` instead. */
1017
- PluginWeb$.outboundSchema = exports.PluginWeb$outboundSchema;
1018
- })(PluginWeb$ || (exports.PluginWeb$ = PluginWeb$ = {}));
1019
- function pluginWebToJSON(pluginWeb) {
1020
- return JSON.stringify(exports.PluginWeb$outboundSchema.parse(pluginWeb));
1021
- }
1022
- function pluginWebFromJSON(jsonString) {
1023
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PluginWeb$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PluginWeb' from JSON`);
1024
- }
1025
- /** @internal */
1026
- exports.IdModeration$inboundSchema = z.nativeEnum(exports.IdModeration);
1027
- /** @internal */
1028
- exports.IdModeration$outboundSchema = exports.IdModeration$inboundSchema;
1029
- /**
1030
- * @internal
1031
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1032
- */
1033
- var IdModeration$;
1034
- (function (IdModeration$) {
1035
- /** @deprecated use `IdModeration$inboundSchema` instead. */
1036
- IdModeration$.inboundSchema = exports.IdModeration$inboundSchema;
1037
- /** @deprecated use `IdModeration$outboundSchema` instead. */
1038
- IdModeration$.outboundSchema = exports.IdModeration$outboundSchema;
1039
- })(IdModeration$ || (exports.IdModeration$ = IdModeration$ = {}));
1040
- /** @internal */
1041
- exports.PluginModeration$inboundSchema = z.object({
1042
- id: exports.IdModeration$inboundSchema,
1043
- });
1044
- /** @internal */
1045
- exports.PluginModeration$outboundSchema = z.object({
1046
- id: exports.IdModeration$outboundSchema,
1047
- });
1048
- /**
1049
- * @internal
1050
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1051
- */
1052
- var PluginModeration$;
1053
- (function (PluginModeration$) {
1054
- /** @deprecated use `PluginModeration$inboundSchema` instead. */
1055
- PluginModeration$.inboundSchema = exports.PluginModeration$inboundSchema;
1056
- /** @deprecated use `PluginModeration$outboundSchema` instead. */
1057
- PluginModeration$.outboundSchema = exports.PluginModeration$outboundSchema;
1058
- })(PluginModeration$ || (exports.PluginModeration$ = PluginModeration$ = {}));
1059
- function pluginModerationToJSON(pluginModeration) {
1060
- return JSON.stringify(exports.PluginModeration$outboundSchema.parse(pluginModeration));
1061
- }
1062
- function pluginModerationFromJSON(jsonString) {
1063
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PluginModeration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PluginModeration' from JSON`);
1064
- }
1065
- /** @internal */
1066
- exports.Plugin$inboundSchema = z
1067
- .union([
1068
- z.lazy(() => exports.PluginModeration$inboundSchema),
1069
- z.lazy(() => exports.PluginWeb$inboundSchema),
1070
- z.lazy(() => exports.PluginChainOfThought$inboundSchema),
1071
- z.lazy(() => exports.PluginFileParser$inboundSchema),
1072
- ]);
1073
- /** @internal */
1074
- exports.Plugin$outboundSchema = z.union([
1075
- z.lazy(() => exports.PluginModeration$outboundSchema),
1076
- z.lazy(() => exports.PluginWeb$outboundSchema),
1077
- z.lazy(() => exports.PluginChainOfThought$outboundSchema),
1078
- z.lazy(() => exports.PluginFileParser$outboundSchema),
1079
- ]);
1080
- /**
1081
- * @internal
1082
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1083
- */
1084
- var Plugin$;
1085
- (function (Plugin$) {
1086
- /** @deprecated use `Plugin$inboundSchema` instead. */
1087
- Plugin$.inboundSchema = exports.Plugin$inboundSchema;
1088
- /** @deprecated use `Plugin$outboundSchema` instead. */
1089
- Plugin$.outboundSchema = exports.Plugin$outboundSchema;
1090
- })(Plugin$ || (exports.Plugin$ = Plugin$ = {}));
1091
- function pluginToJSON(plugin) {
1092
- return JSON.stringify(exports.Plugin$outboundSchema.parse(plugin));
1093
- }
1094
- function pluginFromJSON(jsonString) {
1095
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Plugin$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Plugin' from JSON`);
1096
- }
1097
- /** @internal */
1098
- exports.OpenAIResponsesRequest$inboundSchema = z.object({
1099
- input: responseinput_js_1.ResponseInput$inboundSchema.optional(),
1100
- instructions: z.nullable(z.string()).optional(),
1101
- metadata: z.nullable(z.record(z.string())).optional(),
1102
- tools: z.array(tool_js_1.Tool$inboundSchema).optional(),
1103
- tool_choice: toolchoice_js_1.ToolChoice$inboundSchema.optional(),
1104
- parallel_tool_calls: z.nullable(z.boolean()).optional(),
1105
- model: z.string().optional(),
1106
- models: z.array(z.string()).optional(),
1107
- text: responsetextconfig_js_1.ResponseTextConfig$inboundSchema.optional(),
1108
- reasoning: z.nullable(responsereasoningconfig_js_1.ResponseReasoningConfig$inboundSchema).optional(),
1109
- max_output_tokens: z.nullable(z.number()).optional(),
1110
- temperature: z.nullable(z.number()).optional(),
1111
- top_p: z.nullable(z.number()).optional(),
1112
- top_k: z.number().optional(),
1113
- prompt_cache_key: z.string().optional(),
1114
- previous_response_id: z.nullable(z.string()).optional(),
1115
- prompt: z.nullable(responseprompt_js_1.ResponsePrompt$inboundSchema).optional(),
1116
- include: z.nullable(z.array(responseincludable_js_1.ResponseIncludable$inboundSchema)).optional(),
1117
- background: z.nullable(z.boolean()).optional(),
1118
- safety_identifier: z.string().optional(),
1119
- store: z.nullable(z.boolean()).optional(),
1120
- service_tier: z.nullable(exports.OpenAIResponsesRequestServiceTier$inboundSchema)
1121
- .optional(),
1122
- truncation: z.nullable(exports.OpenAIResponsesRequestTruncation$inboundSchema)
1123
- .optional(),
1124
- stream: z.nullable(z.boolean()).optional(),
1125
- provider: z.nullable(z.lazy(() => exports.Provider$inboundSchema)).optional(),
1126
- plugins: z.array(z.union([
1127
- z.lazy(() => exports.PluginModeration$inboundSchema),
1128
- z.lazy(() => exports.PluginWeb$inboundSchema),
1129
- z.lazy(() => exports.PluginChainOfThought$inboundSchema),
1130
- z.lazy(() => exports.PluginFileParser$inboundSchema),
1131
- ])).optional(),
1132
- user: z.string().optional(),
1133
- }).transform((v) => {
1134
- return (0, primitives_js_1.remap)(v, {
1135
- "tool_choice": "toolChoice",
1136
- "parallel_tool_calls": "parallelToolCalls",
1137
- "max_output_tokens": "maxOutputTokens",
1138
- "top_p": "topP",
1139
- "top_k": "topK",
1140
- "prompt_cache_key": "promptCacheKey",
1141
- "previous_response_id": "previousResponseId",
1142
- "safety_identifier": "safetyIdentifier",
1143
- "service_tier": "serviceTier",
1144
- });
1145
- });
1146
- /** @internal */
1147
- exports.OpenAIResponsesRequest$outboundSchema = z.object({
1148
- input: responseinput_js_1.ResponseInput$outboundSchema.optional(),
1149
- instructions: z.nullable(z.string()).optional(),
1150
- metadata: z.nullable(z.record(z.string())).optional(),
1151
- tools: z.array(tool_js_1.Tool$outboundSchema).optional(),
1152
- toolChoice: toolchoice_js_1.ToolChoice$outboundSchema.optional(),
1153
- parallelToolCalls: z.nullable(z.boolean()).optional(),
1154
- model: z.string().optional(),
1155
- models: z.array(z.string()).optional(),
1156
- text: responsetextconfig_js_1.ResponseTextConfig$outboundSchema.optional(),
1157
- reasoning: z.nullable(responsereasoningconfig_js_1.ResponseReasoningConfig$outboundSchema).optional(),
1158
- maxOutputTokens: z.nullable(z.number()).optional(),
1159
- temperature: z.nullable(z.number()).optional(),
1160
- topP: z.nullable(z.number()).optional(),
1161
- topK: z.number().optional(),
1162
- promptCacheKey: z.string().optional(),
1163
- previousResponseId: z.nullable(z.string()).optional(),
1164
- prompt: z.nullable(responseprompt_js_1.ResponsePrompt$outboundSchema).optional(),
1165
- include: z.nullable(z.array(responseincludable_js_1.ResponseIncludable$outboundSchema)).optional(),
1166
- background: z.nullable(z.boolean()).optional(),
1167
- safetyIdentifier: z.string().optional(),
1168
- store: z.nullable(z.boolean()).optional(),
1169
- serviceTier: z.nullable(exports.OpenAIResponsesRequestServiceTier$outboundSchema)
1170
- .optional(),
1171
- truncation: z.nullable(exports.OpenAIResponsesRequestTruncation$outboundSchema)
1172
- .optional(),
1173
- stream: z.nullable(z.boolean()).optional(),
1174
- provider: z.nullable(z.lazy(() => exports.Provider$outboundSchema)).optional(),
1175
- plugins: z.array(z.union([
1176
- z.lazy(() => exports.PluginModeration$outboundSchema),
1177
- z.lazy(() => exports.PluginWeb$outboundSchema),
1178
- z.lazy(() => exports.PluginChainOfThought$outboundSchema),
1179
- z.lazy(() => exports.PluginFileParser$outboundSchema),
1180
- ])).optional(),
1181
- user: z.string().optional(),
1182
- }).transform((v) => {
1183
- return (0, primitives_js_1.remap)(v, {
1184
- toolChoice: "tool_choice",
1185
- parallelToolCalls: "parallel_tool_calls",
1186
- maxOutputTokens: "max_output_tokens",
1187
- topP: "top_p",
1188
- topK: "top_k",
1189
- promptCacheKey: "prompt_cache_key",
1190
- previousResponseId: "previous_response_id",
1191
- safetyIdentifier: "safety_identifier",
1192
- serviceTier: "service_tier",
1193
- });
1194
- });
1195
- /**
1196
- * @internal
1197
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1198
- */
1199
- var OpenAIResponsesRequest$;
1200
- (function (OpenAIResponsesRequest$) {
1201
- /** @deprecated use `OpenAIResponsesRequest$inboundSchema` instead. */
1202
- OpenAIResponsesRequest$.inboundSchema = exports.OpenAIResponsesRequest$inboundSchema;
1203
- /** @deprecated use `OpenAIResponsesRequest$outboundSchema` instead. */
1204
- OpenAIResponsesRequest$.outboundSchema = exports.OpenAIResponsesRequest$outboundSchema;
1205
- })(OpenAIResponsesRequest$ || (exports.OpenAIResponsesRequest$ = OpenAIResponsesRequest$ = {}));
1206
- function openAIResponsesRequestToJSON(openAIResponsesRequest) {
1207
- return JSON.stringify(exports.OpenAIResponsesRequest$outboundSchema.parse(openAIResponsesRequest));
1208
- }
1209
- function openAIResponsesRequestFromJSON(jsonString) {
1210
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OpenAIResponsesRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesRequest' from JSON`);
1211
- }
1212
- //# sourceMappingURL=openairesponsesrequest.js.map