@openrouter/sdk 0.0.0-beta.33 → 0.0.0-beta.38

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