@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,1210 +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.OpenAIResponsesRequestQuantization$ = exports.OpenAIResponsesRequestQuantization$outboundSchema = exports.OpenAIResponsesRequestQuantization$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.OpenAIResponsesRequestQuantization = 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.OpenAIResponsesRequestRequest$ = exports.OpenAIResponsesRequestRequest$outboundSchema = exports.OpenAIResponsesRequestRequest$inboundSchema = exports.OpenAIResponsesRequestAudio$ = exports.OpenAIResponsesRequestAudio$outboundSchema = exports.OpenAIResponsesRequestAudio$inboundSchema = exports.OpenAIResponsesRequestImage$ = exports.OpenAIResponsesRequestImage$outboundSchema = exports.OpenAIResponsesRequestImage$inboundSchema = exports.OpenAIResponsesRequestCompletion$ = exports.OpenAIResponsesRequestCompletion$outboundSchema = exports.OpenAIResponsesRequestCompletion$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.openAIResponsesRequestCompletionToJSON = openAIResponsesRequestCompletionToJSON;
51
- exports.openAIResponsesRequestCompletionFromJSON = openAIResponsesRequestCompletionFromJSON;
52
- exports.openAIResponsesRequestImageToJSON = openAIResponsesRequestImageToJSON;
53
- exports.openAIResponsesRequestImageFromJSON = openAIResponsesRequestImageFromJSON;
54
- exports.openAIResponsesRequestAudioToJSON = openAIResponsesRequestAudioToJSON;
55
- exports.openAIResponsesRequestAudioFromJSON = openAIResponsesRequestAudioFromJSON;
56
- exports.openAIResponsesRequestRequestToJSON = openAIResponsesRequestRequestToJSON;
57
- exports.openAIResponsesRequestRequestFromJSON = openAIResponsesRequestRequestFromJSON;
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.OpenAIResponsesRequestQuantization = {
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.OpenAIResponsesRequestQuantization$inboundSchema = z.nativeEnum(exports.OpenAIResponsesRequestQuantization);
563
- /** @internal */
564
- exports.OpenAIResponsesRequestQuantization$outboundSchema = exports.OpenAIResponsesRequestQuantization$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 OpenAIResponsesRequestQuantization$;
570
- (function (OpenAIResponsesRequestQuantization$) {
571
- /** @deprecated use `OpenAIResponsesRequestQuantization$inboundSchema` instead. */
572
- OpenAIResponsesRequestQuantization$.inboundSchema = exports.OpenAIResponsesRequestQuantization$inboundSchema;
573
- /** @deprecated use `OpenAIResponsesRequestQuantization$outboundSchema` instead. */
574
- OpenAIResponsesRequestQuantization$.outboundSchema = exports.OpenAIResponsesRequestQuantization$outboundSchema;
575
- })(OpenAIResponsesRequestQuantization$ || (exports.OpenAIResponsesRequestQuantization$ = OpenAIResponsesRequestQuantization$ = {}));
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.OpenAIResponsesRequestCompletion$inboundSchema = z.union([z.number(), z.string(), z.any()]);
614
- /** @internal */
615
- exports.OpenAIResponsesRequestCompletion$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 OpenAIResponsesRequestCompletion$;
621
- (function (OpenAIResponsesRequestCompletion$) {
622
- /** @deprecated use `OpenAIResponsesRequestCompletion$inboundSchema` instead. */
623
- OpenAIResponsesRequestCompletion$.inboundSchema = exports.OpenAIResponsesRequestCompletion$inboundSchema;
624
- /** @deprecated use `OpenAIResponsesRequestCompletion$outboundSchema` instead. */
625
- OpenAIResponsesRequestCompletion$.outboundSchema = exports.OpenAIResponsesRequestCompletion$outboundSchema;
626
- })(OpenAIResponsesRequestCompletion$ || (exports.OpenAIResponsesRequestCompletion$ = OpenAIResponsesRequestCompletion$ = {}));
627
- function openAIResponsesRequestCompletionToJSON(openAIResponsesRequestCompletion) {
628
- return JSON.stringify(exports.OpenAIResponsesRequestCompletion$outboundSchema.parse(openAIResponsesRequestCompletion));
629
- }
630
- function openAIResponsesRequestCompletionFromJSON(jsonString) {
631
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OpenAIResponsesRequestCompletion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesRequestCompletion' from JSON`);
632
- }
633
- /** @internal */
634
- exports.OpenAIResponsesRequestImage$inboundSchema = z.union([z.number(), z.string(), z.any()]);
635
- /** @internal */
636
- exports.OpenAIResponsesRequestImage$outboundSchema = z.union([z.number(), z.string(), z.any()]);
637
- /**
638
- * @internal
639
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
640
- */
641
- var OpenAIResponsesRequestImage$;
642
- (function (OpenAIResponsesRequestImage$) {
643
- /** @deprecated use `OpenAIResponsesRequestImage$inboundSchema` instead. */
644
- OpenAIResponsesRequestImage$.inboundSchema = exports.OpenAIResponsesRequestImage$inboundSchema;
645
- /** @deprecated use `OpenAIResponsesRequestImage$outboundSchema` instead. */
646
- OpenAIResponsesRequestImage$.outboundSchema = exports.OpenAIResponsesRequestImage$outboundSchema;
647
- })(OpenAIResponsesRequestImage$ || (exports.OpenAIResponsesRequestImage$ = OpenAIResponsesRequestImage$ = {}));
648
- function openAIResponsesRequestImageToJSON(openAIResponsesRequestImage) {
649
- return JSON.stringify(exports.OpenAIResponsesRequestImage$outboundSchema.parse(openAIResponsesRequestImage));
650
- }
651
- function openAIResponsesRequestImageFromJSON(jsonString) {
652
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OpenAIResponsesRequestImage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesRequestImage' from JSON`);
653
- }
654
- /** @internal */
655
- exports.OpenAIResponsesRequestAudio$inboundSchema = z.union([z.number(), z.string(), z.any()]);
656
- /** @internal */
657
- exports.OpenAIResponsesRequestAudio$outboundSchema = z.union([z.number(), z.string(), z.any()]);
658
- /**
659
- * @internal
660
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
661
- */
662
- var OpenAIResponsesRequestAudio$;
663
- (function (OpenAIResponsesRequestAudio$) {
664
- /** @deprecated use `OpenAIResponsesRequestAudio$inboundSchema` instead. */
665
- OpenAIResponsesRequestAudio$.inboundSchema = exports.OpenAIResponsesRequestAudio$inboundSchema;
666
- /** @deprecated use `OpenAIResponsesRequestAudio$outboundSchema` instead. */
667
- OpenAIResponsesRequestAudio$.outboundSchema = exports.OpenAIResponsesRequestAudio$outboundSchema;
668
- })(OpenAIResponsesRequestAudio$ || (exports.OpenAIResponsesRequestAudio$ = OpenAIResponsesRequestAudio$ = {}));
669
- function openAIResponsesRequestAudioToJSON(openAIResponsesRequestAudio) {
670
- return JSON.stringify(exports.OpenAIResponsesRequestAudio$outboundSchema.parse(openAIResponsesRequestAudio));
671
- }
672
- function openAIResponsesRequestAudioFromJSON(jsonString) {
673
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OpenAIResponsesRequestAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesRequestAudio' from JSON`);
674
- }
675
- /** @internal */
676
- exports.OpenAIResponsesRequestRequest$inboundSchema = z.union([z.number(), z.string(), z.any()]);
677
- /** @internal */
678
- exports.OpenAIResponsesRequestRequest$outboundSchema = z.union([z.number(), z.string(), z.any()]);
679
- /**
680
- * @internal
681
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
682
- */
683
- var OpenAIResponsesRequestRequest$;
684
- (function (OpenAIResponsesRequestRequest$) {
685
- /** @deprecated use `OpenAIResponsesRequestRequest$inboundSchema` instead. */
686
- OpenAIResponsesRequestRequest$.inboundSchema = exports.OpenAIResponsesRequestRequest$inboundSchema;
687
- /** @deprecated use `OpenAIResponsesRequestRequest$outboundSchema` instead. */
688
- OpenAIResponsesRequestRequest$.outboundSchema = exports.OpenAIResponsesRequestRequest$outboundSchema;
689
- })(OpenAIResponsesRequestRequest$ || (exports.OpenAIResponsesRequestRequest$ = OpenAIResponsesRequestRequest$ = {}));
690
- function openAIResponsesRequestRequestToJSON(openAIResponsesRequestRequest) {
691
- return JSON.stringify(exports.OpenAIResponsesRequestRequest$outboundSchema.parse(openAIResponsesRequestRequest));
692
- }
693
- function openAIResponsesRequestRequestFromJSON(jsonString) {
694
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OpenAIResponsesRequestRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesRequestRequest' from JSON`);
695
- }
696
- /** @internal */
697
- exports.MaxPrice$inboundSchema = z.object({
698
- prompt: z.union([z.number(), z.string(), z.any()]).optional(),
699
- completion: z.union([z.number(), z.string(), z.any()]).optional(),
700
- image: z.union([z.number(), z.string(), z.any()]).optional(),
701
- audio: z.union([z.number(), z.string(), z.any()]).optional(),
702
- request: z.union([z.number(), z.string(), z.any()]).optional(),
703
- });
704
- /** @internal */
705
- exports.MaxPrice$outboundSchema = z.object({
706
- prompt: z.union([z.number(), z.string(), z.any()]).optional(),
707
- completion: z.union([z.number(), z.string(), z.any()]).optional(),
708
- image: z.union([z.number(), z.string(), z.any()]).optional(),
709
- audio: z.union([z.number(), z.string(), z.any()]).optional(),
710
- request: z.union([z.number(), z.string(), z.any()]).optional(),
711
- });
712
- /**
713
- * @internal
714
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
715
- */
716
- var MaxPrice$;
717
- (function (MaxPrice$) {
718
- /** @deprecated use `MaxPrice$inboundSchema` instead. */
719
- MaxPrice$.inboundSchema = exports.MaxPrice$inboundSchema;
720
- /** @deprecated use `MaxPrice$outboundSchema` instead. */
721
- MaxPrice$.outboundSchema = exports.MaxPrice$outboundSchema;
722
- })(MaxPrice$ || (exports.MaxPrice$ = MaxPrice$ = {}));
723
- function maxPriceToJSON(maxPrice) {
724
- return JSON.stringify(exports.MaxPrice$outboundSchema.parse(maxPrice));
725
- }
726
- function maxPriceFromJSON(jsonString) {
727
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MaxPrice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MaxPrice' from JSON`);
728
- }
729
- /** @internal */
730
- exports.Experimental$inboundSchema = z.object({});
731
- /** @internal */
732
- exports.Experimental$outboundSchema = z.object({});
733
- /**
734
- * @internal
735
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
736
- */
737
- var Experimental$;
738
- (function (Experimental$) {
739
- /** @deprecated use `Experimental$inboundSchema` instead. */
740
- Experimental$.inboundSchema = exports.Experimental$inboundSchema;
741
- /** @deprecated use `Experimental$outboundSchema` instead. */
742
- Experimental$.outboundSchema = exports.Experimental$outboundSchema;
743
- })(Experimental$ || (exports.Experimental$ = Experimental$ = {}));
744
- function experimentalToJSON(experimental) {
745
- return JSON.stringify(exports.Experimental$outboundSchema.parse(experimental));
746
- }
747
- function experimentalFromJSON(jsonString) {
748
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Experimental$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Experimental' from JSON`);
749
- }
750
- /** @internal */
751
- exports.Provider$inboundSchema = z.object({
752
- allow_fallbacks: z.nullable(z.boolean()).optional(),
753
- require_parameters: z.nullable(z.boolean()).optional(),
754
- data_collection: z.nullable(exports.DataCollection$inboundSchema).optional(),
755
- zdr: z.nullable(z.boolean()).optional(),
756
- order: z.nullable(z.array(z.union([exports.OrderEnum$inboundSchema, z.string()])))
757
- .optional(),
758
- only: z.nullable(z.array(z.union([exports.OnlyEnum$inboundSchema, z.string()])))
759
- .optional(),
760
- ignore: z.nullable(z.array(z.union([exports.IgnoreEnum$inboundSchema, z.string()])))
761
- .optional(),
762
- quantizations: z.nullable(z.array(exports.OpenAIResponsesRequestQuantization$inboundSchema)).optional(),
763
- sort: z.nullable(exports.Sort$inboundSchema).optional(),
764
- max_price: z.lazy(() => exports.MaxPrice$inboundSchema).optional(),
765
- experimental: z.nullable(z.lazy(() => exports.Experimental$inboundSchema)).optional(),
766
- }).transform((v) => {
767
- return (0, primitives_js_1.remap)(v, {
768
- "allow_fallbacks": "allowFallbacks",
769
- "require_parameters": "requireParameters",
770
- "data_collection": "dataCollection",
771
- "max_price": "maxPrice",
772
- });
773
- });
774
- /** @internal */
775
- exports.Provider$outboundSchema = z.object({
776
- allowFallbacks: z.nullable(z.boolean()).optional(),
777
- requireParameters: z.nullable(z.boolean()).optional(),
778
- dataCollection: z.nullable(exports.DataCollection$outboundSchema).optional(),
779
- zdr: z.nullable(z.boolean()).optional(),
780
- order: z.nullable(z.array(z.union([exports.OrderEnum$outboundSchema, z.string()])))
781
- .optional(),
782
- only: z.nullable(z.array(z.union([exports.OnlyEnum$outboundSchema, z.string()])))
783
- .optional(),
784
- ignore: z.nullable(z.array(z.union([exports.IgnoreEnum$outboundSchema, z.string()])))
785
- .optional(),
786
- quantizations: z.nullable(z.array(exports.OpenAIResponsesRequestQuantization$outboundSchema)).optional(),
787
- sort: z.nullable(exports.Sort$outboundSchema).optional(),
788
- maxPrice: z.lazy(() => exports.MaxPrice$outboundSchema).optional(),
789
- experimental: z.nullable(z.lazy(() => exports.Experimental$outboundSchema))
790
- .optional(),
791
- }).transform((v) => {
792
- return (0, primitives_js_1.remap)(v, {
793
- allowFallbacks: "allow_fallbacks",
794
- requireParameters: "require_parameters",
795
- dataCollection: "data_collection",
796
- maxPrice: "max_price",
797
- });
798
- });
799
- /**
800
- * @internal
801
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
802
- */
803
- var Provider$;
804
- (function (Provider$) {
805
- /** @deprecated use `Provider$inboundSchema` instead. */
806
- Provider$.inboundSchema = exports.Provider$inboundSchema;
807
- /** @deprecated use `Provider$outboundSchema` instead. */
808
- Provider$.outboundSchema = exports.Provider$outboundSchema;
809
- })(Provider$ || (exports.Provider$ = Provider$ = {}));
810
- function providerToJSON(provider) {
811
- return JSON.stringify(exports.Provider$outboundSchema.parse(provider));
812
- }
813
- function providerFromJSON(jsonString) {
814
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Provider$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Provider' from JSON`);
815
- }
816
- /** @internal */
817
- exports.IdFileParser$inboundSchema = z.nativeEnum(exports.IdFileParser);
818
- /** @internal */
819
- exports.IdFileParser$outboundSchema = exports.IdFileParser$inboundSchema;
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
- var IdFileParser$;
825
- (function (IdFileParser$) {
826
- /** @deprecated use `IdFileParser$inboundSchema` instead. */
827
- IdFileParser$.inboundSchema = exports.IdFileParser$inboundSchema;
828
- /** @deprecated use `IdFileParser$outboundSchema` instead. */
829
- IdFileParser$.outboundSchema = exports.IdFileParser$outboundSchema;
830
- })(IdFileParser$ || (exports.IdFileParser$ = IdFileParser$ = {}));
831
- /** @internal */
832
- exports.PdfEngine$inboundSchema = z
833
- .nativeEnum(exports.PdfEngine);
834
- /** @internal */
835
- exports.PdfEngine$outboundSchema = exports.PdfEngine$inboundSchema;
836
- /**
837
- * @internal
838
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
839
- */
840
- var PdfEngine$;
841
- (function (PdfEngine$) {
842
- /** @deprecated use `PdfEngine$inboundSchema` instead. */
843
- PdfEngine$.inboundSchema = exports.PdfEngine$inboundSchema;
844
- /** @deprecated use `PdfEngine$outboundSchema` instead. */
845
- PdfEngine$.outboundSchema = exports.PdfEngine$outboundSchema;
846
- })(PdfEngine$ || (exports.PdfEngine$ = PdfEngine$ = {}));
847
- /** @internal */
848
- exports.Pdf$inboundSchema = z
849
- .object({
850
- engine: exports.PdfEngine$inboundSchema.optional(),
851
- });
852
- /** @internal */
853
- exports.Pdf$outboundSchema = z
854
- .object({
855
- engine: exports.PdfEngine$outboundSchema.optional(),
856
- });
857
- /**
858
- * @internal
859
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
860
- */
861
- var Pdf$;
862
- (function (Pdf$) {
863
- /** @deprecated use `Pdf$inboundSchema` instead. */
864
- Pdf$.inboundSchema = exports.Pdf$inboundSchema;
865
- /** @deprecated use `Pdf$outboundSchema` instead. */
866
- Pdf$.outboundSchema = exports.Pdf$outboundSchema;
867
- })(Pdf$ || (exports.Pdf$ = Pdf$ = {}));
868
- function pdfToJSON(pdf) {
869
- return JSON.stringify(exports.Pdf$outboundSchema.parse(pdf));
870
- }
871
- function pdfFromJSON(jsonString) {
872
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Pdf$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Pdf' from JSON`);
873
- }
874
- /** @internal */
875
- exports.PluginFileParser$inboundSchema = z.object({
876
- id: exports.IdFileParser$inboundSchema,
877
- max_files: z.number().optional(),
878
- pdf: z.lazy(() => exports.Pdf$inboundSchema).optional(),
879
- }).transform((v) => {
880
- return (0, primitives_js_1.remap)(v, {
881
- "max_files": "maxFiles",
882
- });
883
- });
884
- /** @internal */
885
- exports.PluginFileParser$outboundSchema = z.object({
886
- id: exports.IdFileParser$outboundSchema,
887
- maxFiles: z.number().optional(),
888
- pdf: z.lazy(() => exports.Pdf$outboundSchema).optional(),
889
- }).transform((v) => {
890
- return (0, primitives_js_1.remap)(v, {
891
- maxFiles: "max_files",
892
- });
893
- });
894
- /**
895
- * @internal
896
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
897
- */
898
- var PluginFileParser$;
899
- (function (PluginFileParser$) {
900
- /** @deprecated use `PluginFileParser$inboundSchema` instead. */
901
- PluginFileParser$.inboundSchema = exports.PluginFileParser$inboundSchema;
902
- /** @deprecated use `PluginFileParser$outboundSchema` instead. */
903
- PluginFileParser$.outboundSchema = exports.PluginFileParser$outboundSchema;
904
- })(PluginFileParser$ || (exports.PluginFileParser$ = PluginFileParser$ = {}));
905
- function pluginFileParserToJSON(pluginFileParser) {
906
- return JSON.stringify(exports.PluginFileParser$outboundSchema.parse(pluginFileParser));
907
- }
908
- function pluginFileParserFromJSON(jsonString) {
909
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PluginFileParser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PluginFileParser' from JSON`);
910
- }
911
- /** @internal */
912
- exports.IdChainOfThought$inboundSchema = z.nativeEnum(exports.IdChainOfThought);
913
- /** @internal */
914
- exports.IdChainOfThought$outboundSchema = exports.IdChainOfThought$inboundSchema;
915
- /**
916
- * @internal
917
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
918
- */
919
- var IdChainOfThought$;
920
- (function (IdChainOfThought$) {
921
- /** @deprecated use `IdChainOfThought$inboundSchema` instead. */
922
- IdChainOfThought$.inboundSchema = exports.IdChainOfThought$inboundSchema;
923
- /** @deprecated use `IdChainOfThought$outboundSchema` instead. */
924
- IdChainOfThought$.outboundSchema = exports.IdChainOfThought$outboundSchema;
925
- })(IdChainOfThought$ || (exports.IdChainOfThought$ = IdChainOfThought$ = {}));
926
- /** @internal */
927
- exports.PluginChainOfThought$inboundSchema = z.object({
928
- id: exports.IdChainOfThought$inboundSchema,
929
- });
930
- /** @internal */
931
- exports.PluginChainOfThought$outboundSchema = z.object({
932
- id: exports.IdChainOfThought$outboundSchema,
933
- });
934
- /**
935
- * @internal
936
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
937
- */
938
- var PluginChainOfThought$;
939
- (function (PluginChainOfThought$) {
940
- /** @deprecated use `PluginChainOfThought$inboundSchema` instead. */
941
- PluginChainOfThought$.inboundSchema = exports.PluginChainOfThought$inboundSchema;
942
- /** @deprecated use `PluginChainOfThought$outboundSchema` instead. */
943
- PluginChainOfThought$.outboundSchema = exports.PluginChainOfThought$outboundSchema;
944
- })(PluginChainOfThought$ || (exports.PluginChainOfThought$ = PluginChainOfThought$ = {}));
945
- function pluginChainOfThoughtToJSON(pluginChainOfThought) {
946
- return JSON.stringify(exports.PluginChainOfThought$outboundSchema.parse(pluginChainOfThought));
947
- }
948
- function pluginChainOfThoughtFromJSON(jsonString) {
949
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PluginChainOfThought$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PluginChainOfThought' from JSON`);
950
- }
951
- /** @internal */
952
- exports.IdWeb$inboundSchema = z.nativeEnum(exports.IdWeb);
953
- /** @internal */
954
- exports.IdWeb$outboundSchema = exports.IdWeb$inboundSchema;
955
- /**
956
- * @internal
957
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
958
- */
959
- var IdWeb$;
960
- (function (IdWeb$) {
961
- /** @deprecated use `IdWeb$inboundSchema` instead. */
962
- IdWeb$.inboundSchema = exports.IdWeb$inboundSchema;
963
- /** @deprecated use `IdWeb$outboundSchema` instead. */
964
- IdWeb$.outboundSchema = exports.IdWeb$outboundSchema;
965
- })(IdWeb$ || (exports.IdWeb$ = IdWeb$ = {}));
966
- /** @internal */
967
- exports.Engine$inboundSchema = z
968
- .nativeEnum(exports.Engine);
969
- /** @internal */
970
- exports.Engine$outboundSchema = exports.Engine$inboundSchema;
971
- /**
972
- * @internal
973
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
974
- */
975
- var Engine$;
976
- (function (Engine$) {
977
- /** @deprecated use `Engine$inboundSchema` instead. */
978
- Engine$.inboundSchema = exports.Engine$inboundSchema;
979
- /** @deprecated use `Engine$outboundSchema` instead. */
980
- Engine$.outboundSchema = exports.Engine$outboundSchema;
981
- })(Engine$ || (exports.Engine$ = Engine$ = {}));
982
- /** @internal */
983
- exports.PluginWeb$inboundSchema = z.object({
984
- id: exports.IdWeb$inboundSchema,
985
- max_results: z.number().optional(),
986
- search_prompt: z.string().optional(),
987
- engine: exports.Engine$inboundSchema.optional(),
988
- }).transform((v) => {
989
- return (0, primitives_js_1.remap)(v, {
990
- "max_results": "maxResults",
991
- "search_prompt": "searchPrompt",
992
- });
993
- });
994
- /** @internal */
995
- exports.PluginWeb$outboundSchema = z.object({
996
- id: exports.IdWeb$outboundSchema,
997
- maxResults: z.number().optional(),
998
- searchPrompt: z.string().optional(),
999
- engine: exports.Engine$outboundSchema.optional(),
1000
- }).transform((v) => {
1001
- return (0, primitives_js_1.remap)(v, {
1002
- maxResults: "max_results",
1003
- searchPrompt: "search_prompt",
1004
- });
1005
- });
1006
- /**
1007
- * @internal
1008
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1009
- */
1010
- var PluginWeb$;
1011
- (function (PluginWeb$) {
1012
- /** @deprecated use `PluginWeb$inboundSchema` instead. */
1013
- PluginWeb$.inboundSchema = exports.PluginWeb$inboundSchema;
1014
- /** @deprecated use `PluginWeb$outboundSchema` instead. */
1015
- PluginWeb$.outboundSchema = exports.PluginWeb$outboundSchema;
1016
- })(PluginWeb$ || (exports.PluginWeb$ = PluginWeb$ = {}));
1017
- function pluginWebToJSON(pluginWeb) {
1018
- return JSON.stringify(exports.PluginWeb$outboundSchema.parse(pluginWeb));
1019
- }
1020
- function pluginWebFromJSON(jsonString) {
1021
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PluginWeb$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PluginWeb' from JSON`);
1022
- }
1023
- /** @internal */
1024
- exports.IdModeration$inboundSchema = z.nativeEnum(exports.IdModeration);
1025
- /** @internal */
1026
- exports.IdModeration$outboundSchema = exports.IdModeration$inboundSchema;
1027
- /**
1028
- * @internal
1029
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1030
- */
1031
- var IdModeration$;
1032
- (function (IdModeration$) {
1033
- /** @deprecated use `IdModeration$inboundSchema` instead. */
1034
- IdModeration$.inboundSchema = exports.IdModeration$inboundSchema;
1035
- /** @deprecated use `IdModeration$outboundSchema` instead. */
1036
- IdModeration$.outboundSchema = exports.IdModeration$outboundSchema;
1037
- })(IdModeration$ || (exports.IdModeration$ = IdModeration$ = {}));
1038
- /** @internal */
1039
- exports.PluginModeration$inboundSchema = z.object({
1040
- id: exports.IdModeration$inboundSchema,
1041
- });
1042
- /** @internal */
1043
- exports.PluginModeration$outboundSchema = z.object({
1044
- id: exports.IdModeration$outboundSchema,
1045
- });
1046
- /**
1047
- * @internal
1048
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1049
- */
1050
- var PluginModeration$;
1051
- (function (PluginModeration$) {
1052
- /** @deprecated use `PluginModeration$inboundSchema` instead. */
1053
- PluginModeration$.inboundSchema = exports.PluginModeration$inboundSchema;
1054
- /** @deprecated use `PluginModeration$outboundSchema` instead. */
1055
- PluginModeration$.outboundSchema = exports.PluginModeration$outboundSchema;
1056
- })(PluginModeration$ || (exports.PluginModeration$ = PluginModeration$ = {}));
1057
- function pluginModerationToJSON(pluginModeration) {
1058
- return JSON.stringify(exports.PluginModeration$outboundSchema.parse(pluginModeration));
1059
- }
1060
- function pluginModerationFromJSON(jsonString) {
1061
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PluginModeration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PluginModeration' from JSON`);
1062
- }
1063
- /** @internal */
1064
- exports.Plugin$inboundSchema = z
1065
- .union([
1066
- z.lazy(() => exports.PluginModeration$inboundSchema),
1067
- z.lazy(() => exports.PluginWeb$inboundSchema),
1068
- z.lazy(() => exports.PluginChainOfThought$inboundSchema),
1069
- z.lazy(() => exports.PluginFileParser$inboundSchema),
1070
- ]);
1071
- /** @internal */
1072
- exports.Plugin$outboundSchema = z.union([
1073
- z.lazy(() => exports.PluginModeration$outboundSchema),
1074
- z.lazy(() => exports.PluginWeb$outboundSchema),
1075
- z.lazy(() => exports.PluginChainOfThought$outboundSchema),
1076
- z.lazy(() => exports.PluginFileParser$outboundSchema),
1077
- ]);
1078
- /**
1079
- * @internal
1080
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1081
- */
1082
- var Plugin$;
1083
- (function (Plugin$) {
1084
- /** @deprecated use `Plugin$inboundSchema` instead. */
1085
- Plugin$.inboundSchema = exports.Plugin$inboundSchema;
1086
- /** @deprecated use `Plugin$outboundSchema` instead. */
1087
- Plugin$.outboundSchema = exports.Plugin$outboundSchema;
1088
- })(Plugin$ || (exports.Plugin$ = Plugin$ = {}));
1089
- function pluginToJSON(plugin) {
1090
- return JSON.stringify(exports.Plugin$outboundSchema.parse(plugin));
1091
- }
1092
- function pluginFromJSON(jsonString) {
1093
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Plugin$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Plugin' from JSON`);
1094
- }
1095
- /** @internal */
1096
- exports.OpenAIResponsesRequest$inboundSchema = z.object({
1097
- input: responseinput_js_1.ResponseInput$inboundSchema.optional(),
1098
- instructions: z.nullable(z.string()).optional(),
1099
- metadata: z.nullable(z.record(z.string())).optional(),
1100
- tools: z.array(tool_js_1.Tool$inboundSchema).optional(),
1101
- tool_choice: toolchoice_js_1.ToolChoice$inboundSchema.optional(),
1102
- parallel_tool_calls: z.nullable(z.boolean()).optional(),
1103
- model: z.string().optional(),
1104
- models: z.array(z.string()).optional(),
1105
- text: responsetextconfig_js_1.ResponseTextConfig$inboundSchema.optional(),
1106
- reasoning: z.nullable(responsereasoningconfig_js_1.ResponseReasoningConfig$inboundSchema).optional(),
1107
- max_output_tokens: z.nullable(z.number()).optional(),
1108
- temperature: z.nullable(z.number()).optional(),
1109
- top_p: z.nullable(z.number()).optional(),
1110
- top_k: z.number().optional(),
1111
- prompt_cache_key: z.string().optional(),
1112
- previous_response_id: z.nullable(z.string()).optional(),
1113
- prompt: z.nullable(responseprompt_js_1.ResponsePrompt$inboundSchema).optional(),
1114
- include: z.nullable(z.array(responseincludable_js_1.ResponseIncludable$inboundSchema)).optional(),
1115
- background: z.nullable(z.boolean()).optional(),
1116
- safety_identifier: z.string().optional(),
1117
- store: z.nullable(z.boolean()).optional(),
1118
- service_tier: z.nullable(exports.OpenAIResponsesRequestServiceTier$inboundSchema)
1119
- .optional(),
1120
- truncation: z.nullable(exports.OpenAIResponsesRequestTruncation$inboundSchema)
1121
- .optional(),
1122
- stream: z.nullable(z.boolean()).optional(),
1123
- provider: z.nullable(z.lazy(() => exports.Provider$inboundSchema)).optional(),
1124
- plugins: z.array(z.union([
1125
- z.lazy(() => exports.PluginModeration$inboundSchema),
1126
- z.lazy(() => exports.PluginWeb$inboundSchema),
1127
- z.lazy(() => exports.PluginChainOfThought$inboundSchema),
1128
- z.lazy(() => exports.PluginFileParser$inboundSchema),
1129
- ])).optional(),
1130
- user: z.string().optional(),
1131
- }).transform((v) => {
1132
- return (0, primitives_js_1.remap)(v, {
1133
- "tool_choice": "toolChoice",
1134
- "parallel_tool_calls": "parallelToolCalls",
1135
- "max_output_tokens": "maxOutputTokens",
1136
- "top_p": "topP",
1137
- "top_k": "topK",
1138
- "prompt_cache_key": "promptCacheKey",
1139
- "previous_response_id": "previousResponseId",
1140
- "safety_identifier": "safetyIdentifier",
1141
- "service_tier": "serviceTier",
1142
- });
1143
- });
1144
- /** @internal */
1145
- exports.OpenAIResponsesRequest$outboundSchema = z.object({
1146
- input: responseinput_js_1.ResponseInput$outboundSchema.optional(),
1147
- instructions: z.nullable(z.string()).optional(),
1148
- metadata: z.nullable(z.record(z.string())).optional(),
1149
- tools: z.array(tool_js_1.Tool$outboundSchema).optional(),
1150
- toolChoice: toolchoice_js_1.ToolChoice$outboundSchema.optional(),
1151
- parallelToolCalls: z.nullable(z.boolean()).optional(),
1152
- model: z.string().optional(),
1153
- models: z.array(z.string()).optional(),
1154
- text: responsetextconfig_js_1.ResponseTextConfig$outboundSchema.optional(),
1155
- reasoning: z.nullable(responsereasoningconfig_js_1.ResponseReasoningConfig$outboundSchema).optional(),
1156
- maxOutputTokens: z.nullable(z.number()).optional(),
1157
- temperature: z.nullable(z.number()).optional(),
1158
- topP: z.nullable(z.number()).optional(),
1159
- topK: z.number().optional(),
1160
- promptCacheKey: z.string().optional(),
1161
- previousResponseId: z.nullable(z.string()).optional(),
1162
- prompt: z.nullable(responseprompt_js_1.ResponsePrompt$outboundSchema).optional(),
1163
- include: z.nullable(z.array(responseincludable_js_1.ResponseIncludable$outboundSchema)).optional(),
1164
- background: z.nullable(z.boolean()).optional(),
1165
- safetyIdentifier: z.string().optional(),
1166
- store: z.nullable(z.boolean()).optional(),
1167
- serviceTier: z.nullable(exports.OpenAIResponsesRequestServiceTier$outboundSchema)
1168
- .optional(),
1169
- truncation: z.nullable(exports.OpenAIResponsesRequestTruncation$outboundSchema)
1170
- .optional(),
1171
- stream: z.nullable(z.boolean()).optional(),
1172
- provider: z.nullable(z.lazy(() => exports.Provider$outboundSchema)).optional(),
1173
- plugins: z.array(z.union([
1174
- z.lazy(() => exports.PluginModeration$outboundSchema),
1175
- z.lazy(() => exports.PluginWeb$outboundSchema),
1176
- z.lazy(() => exports.PluginChainOfThought$outboundSchema),
1177
- z.lazy(() => exports.PluginFileParser$outboundSchema),
1178
- ])).optional(),
1179
- user: z.string().optional(),
1180
- }).transform((v) => {
1181
- return (0, primitives_js_1.remap)(v, {
1182
- toolChoice: "tool_choice",
1183
- parallelToolCalls: "parallel_tool_calls",
1184
- maxOutputTokens: "max_output_tokens",
1185
- topP: "top_p",
1186
- topK: "top_k",
1187
- promptCacheKey: "prompt_cache_key",
1188
- previousResponseId: "previous_response_id",
1189
- safetyIdentifier: "safety_identifier",
1190
- serviceTier: "service_tier",
1191
- });
1192
- });
1193
- /**
1194
- * @internal
1195
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1196
- */
1197
- var OpenAIResponsesRequest$;
1198
- (function (OpenAIResponsesRequest$) {
1199
- /** @deprecated use `OpenAIResponsesRequest$inboundSchema` instead. */
1200
- OpenAIResponsesRequest$.inboundSchema = exports.OpenAIResponsesRequest$inboundSchema;
1201
- /** @deprecated use `OpenAIResponsesRequest$outboundSchema` instead. */
1202
- OpenAIResponsesRequest$.outboundSchema = exports.OpenAIResponsesRequest$outboundSchema;
1203
- })(OpenAIResponsesRequest$ || (exports.OpenAIResponsesRequest$ = OpenAIResponsesRequest$ = {}));
1204
- function openAIResponsesRequestToJSON(openAIResponsesRequest) {
1205
- return JSON.stringify(exports.OpenAIResponsesRequest$outboundSchema.parse(openAIResponsesRequest));
1206
- }
1207
- function openAIResponsesRequestFromJSON(jsonString) {
1208
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OpenAIResponsesRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesRequest' from JSON`);
1209
- }
1210
- //# sourceMappingURL=openairesponsesrequest.js.map