@orq-ai/node 3.6.2 → 3.7.0-rc.2

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 (443) hide show
  1. package/bin/mcp-server.js +144 -47
  2. package/bin/mcp-server.js.map +75 -75
  3. package/funcs/contactsCreate.js +2 -0
  4. package/funcs/contactsCreate.js.map +1 -1
  5. package/funcs/datasetsClear.js +2 -0
  6. package/funcs/datasetsClear.js.map +1 -1
  7. package/funcs/datasetsCreate.js +2 -0
  8. package/funcs/datasetsCreate.js.map +1 -1
  9. package/funcs/datasetsCreateDatapoint.js +2 -0
  10. package/funcs/datasetsCreateDatapoint.js.map +1 -1
  11. package/funcs/datasetsCreateDatapoints.js +2 -0
  12. package/funcs/datasetsCreateDatapoints.js.map +1 -1
  13. package/funcs/datasetsCreateExperiment.js +2 -0
  14. package/funcs/datasetsCreateExperiment.js.map +1 -1
  15. package/funcs/datasetsDelete.js +2 -0
  16. package/funcs/datasetsDelete.js.map +1 -1
  17. package/funcs/datasetsDeleteDatapoint.js +2 -0
  18. package/funcs/datasetsDeleteDatapoint.js.map +1 -1
  19. package/funcs/datasetsList.js +2 -0
  20. package/funcs/datasetsList.js.map +1 -1
  21. package/funcs/datasetsListDatapoints.js +2 -0
  22. package/funcs/datasetsListDatapoints.js.map +1 -1
  23. package/funcs/datasetsRetrieve.js +2 -0
  24. package/funcs/datasetsRetrieve.js.map +1 -1
  25. package/funcs/datasetsRetrieveDatapoint.js +2 -0
  26. package/funcs/datasetsRetrieveDatapoint.js.map +1 -1
  27. package/funcs/datasetsUpdate.js +2 -0
  28. package/funcs/datasetsUpdate.js.map +1 -1
  29. package/funcs/datasetsUpdateDatapoint.js +2 -0
  30. package/funcs/datasetsUpdateDatapoint.js.map +1 -1
  31. package/funcs/deploymentsCreateExperiment.js +2 -0
  32. package/funcs/deploymentsCreateExperiment.js.map +1 -1
  33. package/funcs/deploymentsGetConfig.js +2 -0
  34. package/funcs/deploymentsGetConfig.js.map +1 -1
  35. package/funcs/deploymentsInvoke.js +2 -0
  36. package/funcs/deploymentsInvoke.js.map +1 -1
  37. package/funcs/deploymentsList.js +2 -0
  38. package/funcs/deploymentsList.js.map +1 -1
  39. package/funcs/deploymentsMetricsCreate.js +2 -0
  40. package/funcs/deploymentsMetricsCreate.js.map +1 -1
  41. package/funcs/deploymentsStream.js +2 -0
  42. package/funcs/deploymentsStream.js.map +1 -1
  43. package/funcs/feedbackCreate.js +2 -0
  44. package/funcs/feedbackCreate.js.map +1 -1
  45. package/funcs/filesCreate.js +2 -0
  46. package/funcs/filesCreate.js.map +1 -1
  47. package/funcs/filesDelete.js +2 -0
  48. package/funcs/filesDelete.js.map +1 -1
  49. package/funcs/filesGet.js +2 -0
  50. package/funcs/filesGet.js.map +1 -1
  51. package/funcs/filesList.js +2 -0
  52. package/funcs/filesList.js.map +1 -1
  53. package/funcs/knowledgeCreate.js +2 -0
  54. package/funcs/knowledgeCreate.js.map +1 -1
  55. package/funcs/knowledgeCreateChunks.js +2 -0
  56. package/funcs/knowledgeCreateChunks.js.map +1 -1
  57. package/funcs/knowledgeCreateDatasource.js +2 -0
  58. package/funcs/knowledgeCreateDatasource.js.map +1 -1
  59. package/funcs/knowledgeDelete.js +2 -0
  60. package/funcs/knowledgeDelete.js.map +1 -1
  61. package/funcs/knowledgeDeleteChunk.js +2 -0
  62. package/funcs/knowledgeDeleteChunk.js.map +1 -1
  63. package/funcs/knowledgeDeleteDatasource.js +2 -0
  64. package/funcs/knowledgeDeleteDatasource.js.map +1 -1
  65. package/funcs/knowledgeList.js +2 -0
  66. package/funcs/knowledgeList.js.map +1 -1
  67. package/funcs/knowledgeListChunks.js +2 -0
  68. package/funcs/knowledgeListChunks.js.map +1 -1
  69. package/funcs/knowledgeListDatasources.js +2 -0
  70. package/funcs/knowledgeListDatasources.js.map +1 -1
  71. package/funcs/knowledgeRetrieve.js +2 -0
  72. package/funcs/knowledgeRetrieve.js.map +1 -1
  73. package/funcs/knowledgeRetrieveChunk.js +2 -0
  74. package/funcs/knowledgeRetrieveChunk.js.map +1 -1
  75. package/funcs/knowledgeRetrieveDatasource.js +2 -0
  76. package/funcs/knowledgeRetrieveDatasource.js.map +1 -1
  77. package/funcs/knowledgeSearch.js +2 -0
  78. package/funcs/knowledgeSearch.js.map +1 -1
  79. package/funcs/knowledgeUpdate.js +2 -0
  80. package/funcs/knowledgeUpdate.js.map +1 -1
  81. package/funcs/knowledgeUpdateChunk.js +2 -0
  82. package/funcs/knowledgeUpdateChunk.js.map +1 -1
  83. package/funcs/knowledgeUpdateDatasource.js +2 -0
  84. package/funcs/knowledgeUpdateDatasource.js.map +1 -1
  85. package/funcs/modelsList.js +2 -0
  86. package/funcs/modelsList.js.map +1 -1
  87. package/funcs/promptsCreate.js +2 -0
  88. package/funcs/promptsCreate.js.map +1 -1
  89. package/funcs/promptsDelete.js +2 -0
  90. package/funcs/promptsDelete.js.map +1 -1
  91. package/funcs/promptsGetVersion.js +2 -0
  92. package/funcs/promptsGetVersion.js.map +1 -1
  93. package/funcs/promptsList.js +2 -0
  94. package/funcs/promptsList.js.map +1 -1
  95. package/funcs/promptsListVersions.js +2 -0
  96. package/funcs/promptsListVersions.js.map +1 -1
  97. package/funcs/promptsRetrieve.js +2 -0
  98. package/funcs/promptsRetrieve.js.map +1 -1
  99. package/funcs/promptsUpdate.js +2 -0
  100. package/funcs/promptsUpdate.js.map +1 -1
  101. package/funcs/remoteconfigsRetrieve.js +2 -0
  102. package/funcs/remoteconfigsRetrieve.js.map +1 -1
  103. package/hooks/types.d.ts +2 -0
  104. package/hooks/types.d.ts.map +1 -1
  105. package/jsr.json +1 -1
  106. package/lib/config.d.ts +7 -3
  107. package/lib/config.d.ts.map +1 -1
  108. package/lib/config.js +3 -3
  109. package/lib/config.js.map +1 -1
  110. package/lib/sdks.d.ts +1 -0
  111. package/lib/sdks.d.ts.map +1 -1
  112. package/lib/sdks.js +3 -3
  113. package/lib/sdks.js.map +1 -1
  114. package/mcp-server/mcp-server.js +1 -1
  115. package/mcp-server/mcp-server.js.map +1 -1
  116. package/mcp-server/server.js +1 -1
  117. package/mcp-server/server.js.map +1 -1
  118. package/models/operations/bulkcreatedatapoints.js +2 -2
  119. package/models/operations/createcontact.js +2 -2
  120. package/models/operations/createdataset.js +2 -2
  121. package/models/operations/createdatasetitem.js +2 -2
  122. package/models/operations/createdatasource.js +2 -2
  123. package/models/operations/fileget.js +2 -2
  124. package/models/operations/filelist.js +2 -2
  125. package/models/operations/fileupload.js +2 -2
  126. package/models/operations/listdatasetdatapoints.js +2 -2
  127. package/models/operations/listdatasets.js +2 -2
  128. package/models/operations/listdatasources.js +2 -2
  129. package/models/operations/retrievedatapoint.js +2 -2
  130. package/models/operations/retrievedataset.js +2 -2
  131. package/models/operations/retrievedatasource.js +2 -2
  132. package/models/operations/updatedatapoint.js +2 -2
  133. package/models/operations/updatedataset.js +2 -2
  134. package/models/operations/updatedatasource.js +2 -2
  135. package/package.json +3 -2
  136. package/src/funcs/contactsCreate.ts +2 -0
  137. package/src/funcs/datasetsClear.ts +2 -0
  138. package/src/funcs/datasetsCreate.ts +2 -0
  139. package/src/funcs/datasetsCreateDatapoint.ts +2 -0
  140. package/src/funcs/datasetsCreateDatapoints.ts +2 -0
  141. package/src/funcs/datasetsCreateExperiment.ts +2 -0
  142. package/src/funcs/datasetsDelete.ts +2 -0
  143. package/src/funcs/datasetsDeleteDatapoint.ts +2 -0
  144. package/src/funcs/datasetsList.ts +2 -0
  145. package/src/funcs/datasetsListDatapoints.ts +2 -0
  146. package/src/funcs/datasetsRetrieve.ts +2 -0
  147. package/src/funcs/datasetsRetrieveDatapoint.ts +2 -0
  148. package/src/funcs/datasetsUpdate.ts +2 -0
  149. package/src/funcs/datasetsUpdateDatapoint.ts +2 -0
  150. package/src/funcs/deploymentsCreateExperiment.ts +2 -0
  151. package/src/funcs/deploymentsGetConfig.ts +2 -0
  152. package/src/funcs/deploymentsInvoke.ts +2 -0
  153. package/src/funcs/deploymentsList.ts +2 -0
  154. package/src/funcs/deploymentsMetricsCreate.ts +2 -0
  155. package/src/funcs/deploymentsStream.ts +2 -0
  156. package/src/funcs/feedbackCreate.ts +2 -0
  157. package/src/funcs/filesCreate.ts +2 -0
  158. package/src/funcs/filesDelete.ts +2 -0
  159. package/src/funcs/filesGet.ts +2 -0
  160. package/src/funcs/filesList.ts +2 -0
  161. package/src/funcs/knowledgeCreate.ts +2 -0
  162. package/src/funcs/knowledgeCreateChunks.ts +2 -0
  163. package/src/funcs/knowledgeCreateDatasource.ts +2 -0
  164. package/src/funcs/knowledgeDelete.ts +2 -0
  165. package/src/funcs/knowledgeDeleteChunk.ts +2 -0
  166. package/src/funcs/knowledgeDeleteDatasource.ts +2 -0
  167. package/src/funcs/knowledgeList.ts +2 -0
  168. package/src/funcs/knowledgeListChunks.ts +2 -0
  169. package/src/funcs/knowledgeListDatasources.ts +2 -0
  170. package/src/funcs/knowledgeRetrieve.ts +2 -0
  171. package/src/funcs/knowledgeRetrieveChunk.ts +2 -0
  172. package/src/funcs/knowledgeRetrieveDatasource.ts +2 -0
  173. package/src/funcs/knowledgeSearch.ts +2 -0
  174. package/src/funcs/knowledgeUpdate.ts +2 -0
  175. package/src/funcs/knowledgeUpdateChunk.ts +2 -0
  176. package/src/funcs/knowledgeUpdateDatasource.ts +2 -0
  177. package/src/funcs/modelsList.ts +2 -0
  178. package/src/funcs/promptsCreate.ts +2 -0
  179. package/src/funcs/promptsDelete.ts +2 -0
  180. package/src/funcs/promptsGetVersion.ts +2 -0
  181. package/src/funcs/promptsList.ts +2 -0
  182. package/src/funcs/promptsListVersions.ts +2 -0
  183. package/src/funcs/promptsRetrieve.ts +2 -0
  184. package/src/funcs/promptsUpdate.ts +2 -0
  185. package/src/funcs/remoteconfigsRetrieve.ts +2 -0
  186. package/src/hooks/types.ts +2 -0
  187. package/src/lib/config.ts +7 -3
  188. package/src/lib/sdks.ts +10 -4
  189. package/src/mcp-server/mcp-server.ts +1 -1
  190. package/src/mcp-server/server.ts +1 -1
  191. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  192. package/src/models/operations/createcontact.ts +2 -2
  193. package/src/models/operations/createdataset.ts +2 -2
  194. package/src/models/operations/createdatasetitem.ts +2 -2
  195. package/src/models/operations/createdatasource.ts +2 -2
  196. package/src/models/operations/fileget.ts +2 -2
  197. package/src/models/operations/filelist.ts +2 -2
  198. package/src/models/operations/fileupload.ts +2 -2
  199. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  200. package/src/models/operations/listdatasets.ts +2 -2
  201. package/src/models/operations/listdatasources.ts +2 -2
  202. package/src/models/operations/retrievedatapoint.ts +2 -2
  203. package/src/models/operations/retrievedataset.ts +2 -2
  204. package/src/models/operations/retrievedatasource.ts +2 -2
  205. package/src/models/operations/updatedatapoint.ts +2 -2
  206. package/src/models/operations/updatedataset.ts +2 -2
  207. package/src/models/operations/updatedatasource.ts +2 -2
  208. package/packages/orq-rc/FUNCTIONS.md +0 -106
  209. package/packages/orq-rc/README.md +0 -707
  210. package/packages/orq-rc/RUNTIMES.md +0 -48
  211. package/packages/orq-rc/docs/sdks/contacts/README.md +0 -84
  212. package/packages/orq-rc/docs/sdks/datasets/README.md +0 -1027
  213. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -405
  214. package/packages/orq-rc/docs/sdks/feedback/README.md +0 -92
  215. package/packages/orq-rc/docs/sdks/files/README.md +0 -311
  216. package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1285
  217. package/packages/orq-rc/docs/sdks/metrics/README.md +0 -86
  218. package/packages/orq-rc/docs/sdks/models/README.md +0 -79
  219. package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
  220. package/packages/orq-rc/docs/sdks/prompts/README.md +0 -576
  221. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -80
  222. package/packages/orq-rc/jsr.json +0 -28
  223. package/packages/orq-rc/package-lock.json +0 -3217
  224. package/packages/orq-rc/package.json +0 -45
  225. package/packages/orq-rc/src/core.ts +0 -13
  226. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -154
  227. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -161
  228. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -159
  229. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -161
  230. package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +0 -165
  231. package/packages/orq-rc/src/funcs/datasetsCreateExperiment.ts +0 -162
  232. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -161
  233. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -176
  234. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -161
  235. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -168
  236. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -169
  237. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -175
  238. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -170
  239. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -173
  240. package/packages/orq-rc/src/funcs/deploymentsCreateExperiment.ts +0 -167
  241. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -162
  242. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -170
  243. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -170
  244. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -162
  245. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -178
  246. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -154
  247. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -174
  248. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -158
  249. package/packages/orq-rc/src/funcs/filesGet.ts +0 -160
  250. package/packages/orq-rc/src/funcs/filesList.ts +0 -161
  251. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -152
  252. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -165
  253. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -160
  254. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -161
  255. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -168
  256. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -167
  257. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -163
  258. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -172
  259. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -168
  260. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -160
  261. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -167
  262. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -163
  263. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -161
  264. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -158
  265. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -168
  266. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -164
  267. package/packages/orq-rc/src/funcs/modelsList.ts +0 -136
  268. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -154
  269. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -158
  270. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -175
  271. package/packages/orq-rc/src/funcs/promptsList.ts +0 -161
  272. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -167
  273. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -160
  274. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -167
  275. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -155
  276. package/packages/orq-rc/src/hooks/global.ts +0 -44
  277. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  278. package/packages/orq-rc/src/hooks/index.ts +0 -6
  279. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  280. package/packages/orq-rc/src/hooks/types.ts +0 -110
  281. package/packages/orq-rc/src/index.ts +0 -7
  282. package/packages/orq-rc/src/lib/base64.ts +0 -37
  283. package/packages/orq-rc/src/lib/config.ts +0 -70
  284. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  285. package/packages/orq-rc/src/lib/encodings.ts +0 -483
  286. package/packages/orq-rc/src/lib/env.ts +0 -73
  287. package/packages/orq-rc/src/lib/event-streams.ts +0 -264
  288. package/packages/orq-rc/src/lib/files.ts +0 -40
  289. package/packages/orq-rc/src/lib/http.ts +0 -323
  290. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  291. package/packages/orq-rc/src/lib/logger.ts +0 -9
  292. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  293. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  294. package/packages/orq-rc/src/lib/retries.ts +0 -218
  295. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  296. package/packages/orq-rc/src/lib/sdks.ts +0 -401
  297. package/packages/orq-rc/src/lib/security.ts +0 -261
  298. package/packages/orq-rc/src/lib/url.ts +0 -33
  299. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -125
  300. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -140
  301. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  302. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  303. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  304. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  305. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
  306. package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
  307. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  308. package/packages/orq-rc/src/mcp-server/server.ts +0 -163
  309. package/packages/orq-rc/src/mcp-server/shared.ts +0 -75
  310. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  311. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  312. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  313. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  314. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +0 -37
  315. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateExperiment.ts +0 -37
  316. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  317. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  318. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  319. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  320. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  321. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  322. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  323. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  324. package/packages/orq-rc/src/mcp-server/tools/deploymentsCreateExperiment.ts +0 -37
  325. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  326. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  327. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  328. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  329. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  330. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  331. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  332. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  333. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  334. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  335. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  336. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  337. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  338. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  339. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  340. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  341. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  342. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  343. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  344. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  345. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  346. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  347. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
  348. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  349. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  350. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  351. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  352. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  353. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  354. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  355. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  356. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  357. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  358. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  359. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  360. package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
  361. package/packages/orq-rc/src/models/components/deployments.ts +0 -7289
  362. package/packages/orq-rc/src/models/components/index.ts +0 -6
  363. package/packages/orq-rc/src/models/components/security.ts +0 -71
  364. package/packages/orq-rc/src/models/errors/apierror.ts +0 -27
  365. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -71
  366. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -82
  367. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  368. package/packages/orq-rc/src/models/errors/index.ts +0 -10
  369. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -97
  370. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -71
  371. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +0 -2232
  372. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -75
  373. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -432
  374. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -256
  375. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -296
  376. package/packages/orq-rc/src/models/operations/createdatasetexperiment.ts +0 -307
  377. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -2149
  378. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
  379. package/packages/orq-rc/src/models/operations/createdeploymentexperiment.ts +0 -321
  380. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
  381. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -846
  382. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -4079
  383. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
  384. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -81
  385. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -75
  386. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -87
  387. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -78
  388. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
  389. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -5435
  390. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -9378
  391. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1255
  392. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2316
  393. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -9499
  394. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
  395. package/packages/orq-rc/src/models/operations/fileget.ts +0 -223
  396. package/packages/orq-rc/src/models/operations/filelist.ts +0 -337
  397. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -327
  398. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2294
  399. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -315
  400. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -537
  401. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -2155
  402. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2160
  403. package/packages/orq-rc/src/models/operations/index.ts +0 -54
  404. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
  405. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1276
  406. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -406
  407. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -447
  408. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -663
  409. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -273
  410. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2292
  411. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
  412. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -1126
  413. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -288
  414. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -273
  415. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -3367
  416. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -448
  417. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -2139
  418. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -393
  419. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -345
  420. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -980
  421. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -4261
  422. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  423. package/packages/orq-rc/src/sdk/datasets.ts +0 -240
  424. package/packages/orq-rc/src/sdk/deployments.ts +0 -107
  425. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  426. package/packages/orq-rc/src/sdk/files.ts +0 -78
  427. package/packages/orq-rc/src/sdk/index.ts +0 -5
  428. package/packages/orq-rc/src/sdk/knowledge.ts +0 -264
  429. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  430. package/packages/orq-rc/src/sdk/models.ts +0 -25
  431. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  432. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  433. package/packages/orq-rc/src/sdk/sdk.ts +0 -61
  434. package/packages/orq-rc/src/types/async.ts +0 -68
  435. package/packages/orq-rc/src/types/blobs.ts +0 -31
  436. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  437. package/packages/orq-rc/src/types/enums.ts +0 -16
  438. package/packages/orq-rc/src/types/fp.ts +0 -50
  439. package/packages/orq-rc/src/types/index.ts +0 -11
  440. package/packages/orq-rc/src/types/operations.ts +0 -105
  441. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  442. package/packages/orq-rc/src/types/streams.ts +0 -21
  443. package/packages/orq-rc/tsconfig.json +0 -41
@@ -1,2292 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- export type ListPromptVersionsRequest = {
13
- promptId: string;
14
- /**
15
- * A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
16
- */
17
- limit?: number | undefined;
18
- /**
19
- * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
20
- */
21
- startingAfter?: string | undefined;
22
- /**
23
- * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
24
- */
25
- endingBefore?: string | undefined;
26
- };
27
-
28
- export const ListPromptVersionsObject = {
29
- List: "list",
30
- } as const;
31
- export type ListPromptVersionsObject = ClosedEnum<
32
- typeof ListPromptVersionsObject
33
- >;
34
-
35
- /**
36
- * The modality of the model
37
- */
38
- export const ListPromptVersionsModelType = {
39
- Chat: "chat",
40
- Completion: "completion",
41
- Embedding: "embedding",
42
- Vision: "vision",
43
- Image: "image",
44
- Tts: "tts",
45
- Stt: "stt",
46
- Rerank: "rerank",
47
- Moderations: "moderations",
48
- } as const;
49
- /**
50
- * The modality of the model
51
- */
52
- export type ListPromptVersionsModelType = ClosedEnum<
53
- typeof ListPromptVersionsModelType
54
- >;
55
-
56
- /**
57
- * Only supported on `image` models.
58
- */
59
- export const ListPromptVersionsFormat = {
60
- Url: "url",
61
- B64Json: "b64_json",
62
- Text: "text",
63
- JsonObject: "json_object",
64
- } as const;
65
- /**
66
- * Only supported on `image` models.
67
- */
68
- export type ListPromptVersionsFormat = ClosedEnum<
69
- typeof ListPromptVersionsFormat
70
- >;
71
-
72
- export const ListPromptVersionsResponseFormatPromptsType = {
73
- JsonObject: "json_object",
74
- } as const;
75
- export type ListPromptVersionsResponseFormatPromptsType = ClosedEnum<
76
- typeof ListPromptVersionsResponseFormatPromptsType
77
- >;
78
-
79
- export type ListPromptVersionsResponseFormat2 = {
80
- type: ListPromptVersionsResponseFormatPromptsType;
81
- };
82
-
83
- export const ListPromptVersionsResponseFormatType = {
84
- JsonSchema: "json_schema",
85
- } as const;
86
- export type ListPromptVersionsResponseFormatType = ClosedEnum<
87
- typeof ListPromptVersionsResponseFormatType
88
- >;
89
-
90
- export type ListPromptVersionsResponseFormatJsonSchema = {
91
- name: string;
92
- strict: boolean;
93
- schema: { [k: string]: any };
94
- };
95
-
96
- export type ListPromptVersionsResponseFormat1 = {
97
- type: ListPromptVersionsResponseFormatType;
98
- jsonSchema: ListPromptVersionsResponseFormatJsonSchema;
99
- };
100
-
101
- /**
102
- * An object specifying the format that the model must output.
103
- *
104
- * @remarks
105
- *
106
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
107
- *
108
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
109
- *
110
- * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
111
- */
112
- export type ListPromptVersionsResponseFormat =
113
- | ListPromptVersionsResponseFormat2
114
- | ListPromptVersionsResponseFormat1;
115
-
116
- /**
117
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
118
- */
119
- export const ListPromptVersionsPhotoRealVersion = {
120
- V1: "v1",
121
- V2: "v2",
122
- } as const;
123
- /**
124
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
125
- */
126
- export type ListPromptVersionsPhotoRealVersion = ClosedEnum<
127
- typeof ListPromptVersionsPhotoRealVersion
128
- >;
129
-
130
- /**
131
- * The format to return the embeddings
132
- */
133
- export const ListPromptVersionsEncodingFormat = {
134
- Float: "float",
135
- Base64: "base64",
136
- } as const;
137
- /**
138
- * The format to return the embeddings
139
- */
140
- export type ListPromptVersionsEncodingFormat = ClosedEnum<
141
- typeof ListPromptVersionsEncodingFormat
142
- >;
143
-
144
- /**
145
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
146
- */
147
- export const ListPromptVersionsReasoningEffort = {
148
- Low: "low",
149
- Medium: "medium",
150
- High: "high",
151
- } as const;
152
- /**
153
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
154
- */
155
- export type ListPromptVersionsReasoningEffort = ClosedEnum<
156
- typeof ListPromptVersionsReasoningEffort
157
- >;
158
-
159
- /**
160
- * Model Parameters: Not all parameters apply to every model
161
- */
162
- export type ListPromptVersionsModelParameters = {
163
- /**
164
- * Only supported on `chat` and `completion` models.
165
- */
166
- temperature?: number | undefined;
167
- /**
168
- * Only supported on `chat` and `completion` models.
169
- */
170
- maxTokens?: number | undefined;
171
- /**
172
- * Only supported on `chat` and `completion` models.
173
- */
174
- topK?: number | undefined;
175
- /**
176
- * Only supported on `chat` and `completion` models.
177
- */
178
- topP?: number | undefined;
179
- /**
180
- * Only supported on `chat` and `completion` models.
181
- */
182
- frequencyPenalty?: number | undefined;
183
- /**
184
- * Only supported on `chat` and `completion` models.
185
- */
186
- presencePenalty?: number | undefined;
187
- /**
188
- * Only supported on `image` models.
189
- */
190
- numImages?: number | undefined;
191
- /**
192
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
193
- */
194
- seed?: number | undefined;
195
- /**
196
- * Only supported on `image` models.
197
- */
198
- format?: ListPromptVersionsFormat | undefined;
199
- /**
200
- * Only supported on `image` models.
201
- */
202
- dimensions?: string | undefined;
203
- /**
204
- * Only supported on `image` models.
205
- */
206
- quality?: string | undefined;
207
- /**
208
- * Only supported on `image` models.
209
- */
210
- style?: string | undefined;
211
- /**
212
- * An object specifying the format that the model must output.
213
- *
214
- * @remarks
215
- *
216
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
217
- *
218
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
219
- *
220
- * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
221
- */
222
- responseFormat?:
223
- | ListPromptVersionsResponseFormat2
224
- | ListPromptVersionsResponseFormat1
225
- | null
226
- | undefined;
227
- /**
228
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
229
- */
230
- photoRealVersion?: ListPromptVersionsPhotoRealVersion | undefined;
231
- /**
232
- * The format to return the embeddings
233
- */
234
- encodingFormat?: ListPromptVersionsEncodingFormat | undefined;
235
- /**
236
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
237
- */
238
- reasoningEffort?: ListPromptVersionsReasoningEffort | undefined;
239
- /**
240
- * Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
241
- */
242
- budgetTokens?: number | undefined;
243
- };
244
-
245
- export const ListPromptVersionsProvider = {
246
- Cohere: "cohere",
247
- Openai: "openai",
248
- Anthropic: "anthropic",
249
- Huggingface: "huggingface",
250
- Replicate: "replicate",
251
- Google: "google",
252
- GoogleAi: "google-ai",
253
- Azure: "azure",
254
- Aws: "aws",
255
- Anyscale: "anyscale",
256
- Perplexity: "perplexity",
257
- Groq: "groq",
258
- Fal: "fal",
259
- Leonardoai: "leonardoai",
260
- Nvidia: "nvidia",
261
- Jina: "jina",
262
- Togetherai: "togetherai",
263
- Elevenlabs: "elevenlabs",
264
- } as const;
265
- export type ListPromptVersionsProvider = ClosedEnum<
266
- typeof ListPromptVersionsProvider
267
- >;
268
-
269
- /**
270
- * The role of the prompt message
271
- */
272
- export const ListPromptVersionsRole = {
273
- System: "system",
274
- Assistant: "assistant",
275
- User: "user",
276
- Exception: "exception",
277
- Tool: "tool",
278
- Prompt: "prompt",
279
- Correction: "correction",
280
- ExpectedOutput: "expected_output",
281
- } as const;
282
- /**
283
- * The role of the prompt message
284
- */
285
- export type ListPromptVersionsRole = ClosedEnum<typeof ListPromptVersionsRole>;
286
-
287
- /**
288
- * The type of the content part. Always `file`.
289
- */
290
- export const ListPromptVersions2PromptsResponseType = {
291
- File: "file",
292
- } as const;
293
- /**
294
- * The type of the content part. Always `file`.
295
- */
296
- export type ListPromptVersions2PromptsResponseType = ClosedEnum<
297
- typeof ListPromptVersions2PromptsResponseType
298
- >;
299
-
300
- export type ListPromptVersions2File = {
301
- /**
302
- * The base64 encoded file data, used when passing the file to the model as a string.
303
- */
304
- fileData: string;
305
- /**
306
- * The name of the file, used when passing the file to the model as a string.
307
- */
308
- filename?: string | undefined;
309
- };
310
-
311
- export type ListPromptVersions23 = {
312
- /**
313
- * The type of the content part. Always `file`.
314
- */
315
- type: ListPromptVersions2PromptsResponseType;
316
- file: ListPromptVersions2File;
317
- };
318
-
319
- export const ListPromptVersions2PromptsType = {
320
- ImageUrl: "image_url",
321
- } as const;
322
- export type ListPromptVersions2PromptsType = ClosedEnum<
323
- typeof ListPromptVersions2PromptsType
324
- >;
325
-
326
- export type ListPromptVersions2ImageUrl = {
327
- /**
328
- * The orq.ai id of the image
329
- */
330
- id?: string | undefined;
331
- /**
332
- * Either a URL of the image or the base64 encoded data URI.
333
- */
334
- url: string;
335
- /**
336
- * Specifies the detail level of the image. Currently only supported with OpenAI models
337
- */
338
- detail?: string | undefined;
339
- };
340
-
341
- /**
342
- * The image part of the prompt message. Only supported with vision models.
343
- */
344
- export type ListPromptVersions22 = {
345
- type: ListPromptVersions2PromptsType;
346
- imageUrl: ListPromptVersions2ImageUrl;
347
- };
348
-
349
- export const ListPromptVersions2Type = {
350
- Text: "text",
351
- } as const;
352
- export type ListPromptVersions2Type = ClosedEnum<
353
- typeof ListPromptVersions2Type
354
- >;
355
-
356
- /**
357
- * Text content part of a prompt message
358
- */
359
- export type ListPromptVersions21 = {
360
- type: ListPromptVersions2Type;
361
- text: string;
362
- };
363
-
364
- export type ListPromptVersionsContent2 =
365
- | ListPromptVersions21
366
- | ListPromptVersions22
367
- | ListPromptVersions23;
368
-
369
- /**
370
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
371
- */
372
- export type ListPromptVersionsContent =
373
- | string
374
- | Array<ListPromptVersions21 | ListPromptVersions22 | ListPromptVersions23>;
375
-
376
- export const ListPromptVersionsType = {
377
- Function: "function",
378
- } as const;
379
- export type ListPromptVersionsType = ClosedEnum<typeof ListPromptVersionsType>;
380
-
381
- export type ListPromptVersionsFunction = {
382
- name: string;
383
- /**
384
- * JSON string arguments for the functions
385
- */
386
- arguments: string;
387
- };
388
-
389
- export type ListPromptVersionsToolCalls = {
390
- id?: string | undefined;
391
- index?: number | undefined;
392
- type: ListPromptVersionsType;
393
- function: ListPromptVersionsFunction;
394
- };
395
-
396
- export type ListPromptVersionsMessages = {
397
- /**
398
- * The role of the prompt message
399
- */
400
- role: ListPromptVersionsRole;
401
- /**
402
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
403
- */
404
- content:
405
- | string
406
- | Array<ListPromptVersions21 | ListPromptVersions22 | ListPromptVersions23>;
407
- toolCalls?: Array<ListPromptVersionsToolCalls> | undefined;
408
- toolCallId?: string | undefined;
409
- };
410
-
411
- /**
412
- * A list of messages compatible with the openAI schema
413
- */
414
- export type ListPromptVersionsPromptConfig = {
415
- stream?: boolean | undefined;
416
- model?: string | undefined;
417
- /**
418
- * The id of the resource
419
- */
420
- modelDbId?: string | undefined;
421
- /**
422
- * The modality of the model
423
- */
424
- modelType?: ListPromptVersionsModelType | undefined;
425
- /**
426
- * Model Parameters: Not all parameters apply to every model
427
- */
428
- modelParameters?: ListPromptVersionsModelParameters | undefined;
429
- provider?: ListPromptVersionsProvider | undefined;
430
- /**
431
- * The id of the resource
432
- */
433
- integrationId?: string | null | undefined;
434
- version?: string | undefined;
435
- messages: Array<ListPromptVersionsMessages>;
436
- };
437
-
438
- export const ListPromptVersionsUseCases = {
439
- AgentsSimulations: "Agents simulations",
440
- Agents: "Agents",
441
- APIInteraction: "API interaction",
442
- AutonomousAgents: "Autonomous Agents",
443
- Chatbots: "Chatbots",
444
- Classification: "Classification",
445
- CodeUnderstanding: "Code understanding",
446
- CodeWriting: "Code writing",
447
- Conversation: "Conversation",
448
- DocumentsQA: "Documents QA",
449
- Evaluation: "Evaluation",
450
- Extraction: "Extraction",
451
- MultiModal: "Multi-modal",
452
- SelfChecking: "Self-checking",
453
- SentimentAnalysis: "Sentiment analysis",
454
- Sql: "SQL",
455
- Summarization: "Summarization",
456
- Tagging: "Tagging",
457
- TranslationDocument: "Translation (document)",
458
- TranslationSentences: "Translation (sentences)",
459
- } as const;
460
- export type ListPromptVersionsUseCases = ClosedEnum<
461
- typeof ListPromptVersionsUseCases
462
- >;
463
-
464
- /**
465
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
466
- */
467
- export const ListPromptVersionsLanguage = {
468
- Chinese: "Chinese",
469
- Dutch: "Dutch",
470
- English: "English",
471
- French: "French",
472
- German: "German",
473
- Russian: "Russian",
474
- Spanish: "Spanish",
475
- } as const;
476
- /**
477
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
478
- */
479
- export type ListPromptVersionsLanguage = ClosedEnum<
480
- typeof ListPromptVersionsLanguage
481
- >;
482
-
483
- export type ListPromptVersionsMetadata = {
484
- /**
485
- * A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
486
- */
487
- useCases?: Array<ListPromptVersionsUseCases> | undefined;
488
- /**
489
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
490
- */
491
- language?: ListPromptVersionsLanguage | null | undefined;
492
- };
493
-
494
- export type ListPromptVersionsData = {
495
- id: string;
496
- createdById?: string | null | undefined;
497
- updatedById?: string | null | undefined;
498
- /**
499
- * The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
500
- */
501
- description?: string | null | undefined;
502
- /**
503
- * A list of messages compatible with the openAI schema
504
- */
505
- promptConfig: ListPromptVersionsPromptConfig;
506
- metadata?: ListPromptVersionsMetadata | undefined;
507
- timestamp: string;
508
- };
509
-
510
- /**
511
- * Prompt versions retrieved.
512
- */
513
- export type ListPromptVersionsResponseBody = {
514
- object: ListPromptVersionsObject;
515
- data: Array<ListPromptVersionsData>;
516
- hasMore: boolean;
517
- };
518
-
519
- /** @internal */
520
- export const ListPromptVersionsRequest$inboundSchema: z.ZodType<
521
- ListPromptVersionsRequest,
522
- z.ZodTypeDef,
523
- unknown
524
- > = z.object({
525
- prompt_id: z.string(),
526
- limit: z.number().default(10),
527
- starting_after: z.string().optional(),
528
- ending_before: z.string().optional(),
529
- }).transform((v) => {
530
- return remap$(v, {
531
- "prompt_id": "promptId",
532
- "starting_after": "startingAfter",
533
- "ending_before": "endingBefore",
534
- });
535
- });
536
-
537
- /** @internal */
538
- export type ListPromptVersionsRequest$Outbound = {
539
- prompt_id: string;
540
- limit: number;
541
- starting_after?: string | undefined;
542
- ending_before?: string | undefined;
543
- };
544
-
545
- /** @internal */
546
- export const ListPromptVersionsRequest$outboundSchema: z.ZodType<
547
- ListPromptVersionsRequest$Outbound,
548
- z.ZodTypeDef,
549
- ListPromptVersionsRequest
550
- > = z.object({
551
- promptId: z.string(),
552
- limit: z.number().default(10),
553
- startingAfter: z.string().optional(),
554
- endingBefore: z.string().optional(),
555
- }).transform((v) => {
556
- return remap$(v, {
557
- promptId: "prompt_id",
558
- startingAfter: "starting_after",
559
- endingBefore: "ending_before",
560
- });
561
- });
562
-
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 namespace ListPromptVersionsRequest$ {
568
- /** @deprecated use `ListPromptVersionsRequest$inboundSchema` instead. */
569
- export const inboundSchema = ListPromptVersionsRequest$inboundSchema;
570
- /** @deprecated use `ListPromptVersionsRequest$outboundSchema` instead. */
571
- export const outboundSchema = ListPromptVersionsRequest$outboundSchema;
572
- /** @deprecated use `ListPromptVersionsRequest$Outbound` instead. */
573
- export type Outbound = ListPromptVersionsRequest$Outbound;
574
- }
575
-
576
- export function listPromptVersionsRequestToJSON(
577
- listPromptVersionsRequest: ListPromptVersionsRequest,
578
- ): string {
579
- return JSON.stringify(
580
- ListPromptVersionsRequest$outboundSchema.parse(listPromptVersionsRequest),
581
- );
582
- }
583
-
584
- export function listPromptVersionsRequestFromJSON(
585
- jsonString: string,
586
- ): SafeParseResult<ListPromptVersionsRequest, SDKValidationError> {
587
- return safeParse(
588
- jsonString,
589
- (x) => ListPromptVersionsRequest$inboundSchema.parse(JSON.parse(x)),
590
- `Failed to parse 'ListPromptVersionsRequest' from JSON`,
591
- );
592
- }
593
-
594
- /** @internal */
595
- export const ListPromptVersionsObject$inboundSchema: z.ZodNativeEnum<
596
- typeof ListPromptVersionsObject
597
- > = z.nativeEnum(ListPromptVersionsObject);
598
-
599
- /** @internal */
600
- export const ListPromptVersionsObject$outboundSchema: z.ZodNativeEnum<
601
- typeof ListPromptVersionsObject
602
- > = ListPromptVersionsObject$inboundSchema;
603
-
604
- /**
605
- * @internal
606
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
607
- */
608
- export namespace ListPromptVersionsObject$ {
609
- /** @deprecated use `ListPromptVersionsObject$inboundSchema` instead. */
610
- export const inboundSchema = ListPromptVersionsObject$inboundSchema;
611
- /** @deprecated use `ListPromptVersionsObject$outboundSchema` instead. */
612
- export const outboundSchema = ListPromptVersionsObject$outboundSchema;
613
- }
614
-
615
- /** @internal */
616
- export const ListPromptVersionsModelType$inboundSchema: z.ZodNativeEnum<
617
- typeof ListPromptVersionsModelType
618
- > = z.nativeEnum(ListPromptVersionsModelType);
619
-
620
- /** @internal */
621
- export const ListPromptVersionsModelType$outboundSchema: z.ZodNativeEnum<
622
- typeof ListPromptVersionsModelType
623
- > = ListPromptVersionsModelType$inboundSchema;
624
-
625
- /**
626
- * @internal
627
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
628
- */
629
- export namespace ListPromptVersionsModelType$ {
630
- /** @deprecated use `ListPromptVersionsModelType$inboundSchema` instead. */
631
- export const inboundSchema = ListPromptVersionsModelType$inboundSchema;
632
- /** @deprecated use `ListPromptVersionsModelType$outboundSchema` instead. */
633
- export const outboundSchema = ListPromptVersionsModelType$outboundSchema;
634
- }
635
-
636
- /** @internal */
637
- export const ListPromptVersionsFormat$inboundSchema: z.ZodNativeEnum<
638
- typeof ListPromptVersionsFormat
639
- > = z.nativeEnum(ListPromptVersionsFormat);
640
-
641
- /** @internal */
642
- export const ListPromptVersionsFormat$outboundSchema: z.ZodNativeEnum<
643
- typeof ListPromptVersionsFormat
644
- > = ListPromptVersionsFormat$inboundSchema;
645
-
646
- /**
647
- * @internal
648
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
649
- */
650
- export namespace ListPromptVersionsFormat$ {
651
- /** @deprecated use `ListPromptVersionsFormat$inboundSchema` instead. */
652
- export const inboundSchema = ListPromptVersionsFormat$inboundSchema;
653
- /** @deprecated use `ListPromptVersionsFormat$outboundSchema` instead. */
654
- export const outboundSchema = ListPromptVersionsFormat$outboundSchema;
655
- }
656
-
657
- /** @internal */
658
- export const ListPromptVersionsResponseFormatPromptsType$inboundSchema:
659
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsType> = z
660
- .nativeEnum(ListPromptVersionsResponseFormatPromptsType);
661
-
662
- /** @internal */
663
- export const ListPromptVersionsResponseFormatPromptsType$outboundSchema:
664
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsType> =
665
- ListPromptVersionsResponseFormatPromptsType$inboundSchema;
666
-
667
- /**
668
- * @internal
669
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
670
- */
671
- export namespace ListPromptVersionsResponseFormatPromptsType$ {
672
- /** @deprecated use `ListPromptVersionsResponseFormatPromptsType$inboundSchema` instead. */
673
- export const inboundSchema =
674
- ListPromptVersionsResponseFormatPromptsType$inboundSchema;
675
- /** @deprecated use `ListPromptVersionsResponseFormatPromptsType$outboundSchema` instead. */
676
- export const outboundSchema =
677
- ListPromptVersionsResponseFormatPromptsType$outboundSchema;
678
- }
679
-
680
- /** @internal */
681
- export const ListPromptVersionsResponseFormat2$inboundSchema: z.ZodType<
682
- ListPromptVersionsResponseFormat2,
683
- z.ZodTypeDef,
684
- unknown
685
- > = z.object({
686
- type: ListPromptVersionsResponseFormatPromptsType$inboundSchema,
687
- });
688
-
689
- /** @internal */
690
- export type ListPromptVersionsResponseFormat2$Outbound = {
691
- type: string;
692
- };
693
-
694
- /** @internal */
695
- export const ListPromptVersionsResponseFormat2$outboundSchema: z.ZodType<
696
- ListPromptVersionsResponseFormat2$Outbound,
697
- z.ZodTypeDef,
698
- ListPromptVersionsResponseFormat2
699
- > = z.object({
700
- type: ListPromptVersionsResponseFormatPromptsType$outboundSchema,
701
- });
702
-
703
- /**
704
- * @internal
705
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
706
- */
707
- export namespace ListPromptVersionsResponseFormat2$ {
708
- /** @deprecated use `ListPromptVersionsResponseFormat2$inboundSchema` instead. */
709
- export const inboundSchema = ListPromptVersionsResponseFormat2$inboundSchema;
710
- /** @deprecated use `ListPromptVersionsResponseFormat2$outboundSchema` instead. */
711
- export const outboundSchema =
712
- ListPromptVersionsResponseFormat2$outboundSchema;
713
- /** @deprecated use `ListPromptVersionsResponseFormat2$Outbound` instead. */
714
- export type Outbound = ListPromptVersionsResponseFormat2$Outbound;
715
- }
716
-
717
- export function listPromptVersionsResponseFormat2ToJSON(
718
- listPromptVersionsResponseFormat2: ListPromptVersionsResponseFormat2,
719
- ): string {
720
- return JSON.stringify(
721
- ListPromptVersionsResponseFormat2$outboundSchema.parse(
722
- listPromptVersionsResponseFormat2,
723
- ),
724
- );
725
- }
726
-
727
- export function listPromptVersionsResponseFormat2FromJSON(
728
- jsonString: string,
729
- ): SafeParseResult<ListPromptVersionsResponseFormat2, SDKValidationError> {
730
- return safeParse(
731
- jsonString,
732
- (x) => ListPromptVersionsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
733
- `Failed to parse 'ListPromptVersionsResponseFormat2' from JSON`,
734
- );
735
- }
736
-
737
- /** @internal */
738
- export const ListPromptVersionsResponseFormatType$inboundSchema:
739
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatType> = z.nativeEnum(
740
- ListPromptVersionsResponseFormatType,
741
- );
742
-
743
- /** @internal */
744
- export const ListPromptVersionsResponseFormatType$outboundSchema:
745
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatType> =
746
- ListPromptVersionsResponseFormatType$inboundSchema;
747
-
748
- /**
749
- * @internal
750
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
751
- */
752
- export namespace ListPromptVersionsResponseFormatType$ {
753
- /** @deprecated use `ListPromptVersionsResponseFormatType$inboundSchema` instead. */
754
- export const inboundSchema =
755
- ListPromptVersionsResponseFormatType$inboundSchema;
756
- /** @deprecated use `ListPromptVersionsResponseFormatType$outboundSchema` instead. */
757
- export const outboundSchema =
758
- ListPromptVersionsResponseFormatType$outboundSchema;
759
- }
760
-
761
- /** @internal */
762
- export const ListPromptVersionsResponseFormatJsonSchema$inboundSchema:
763
- z.ZodType<ListPromptVersionsResponseFormatJsonSchema, z.ZodTypeDef, unknown> =
764
- z.object({
765
- name: z.string(),
766
- strict: z.boolean(),
767
- schema: z.record(z.any()),
768
- });
769
-
770
- /** @internal */
771
- export type ListPromptVersionsResponseFormatJsonSchema$Outbound = {
772
- name: string;
773
- strict: boolean;
774
- schema: { [k: string]: any };
775
- };
776
-
777
- /** @internal */
778
- export const ListPromptVersionsResponseFormatJsonSchema$outboundSchema:
779
- z.ZodType<
780
- ListPromptVersionsResponseFormatJsonSchema$Outbound,
781
- z.ZodTypeDef,
782
- ListPromptVersionsResponseFormatJsonSchema
783
- > = z.object({
784
- name: z.string(),
785
- strict: z.boolean(),
786
- schema: z.record(z.any()),
787
- });
788
-
789
- /**
790
- * @internal
791
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
792
- */
793
- export namespace ListPromptVersionsResponseFormatJsonSchema$ {
794
- /** @deprecated use `ListPromptVersionsResponseFormatJsonSchema$inboundSchema` instead. */
795
- export const inboundSchema =
796
- ListPromptVersionsResponseFormatJsonSchema$inboundSchema;
797
- /** @deprecated use `ListPromptVersionsResponseFormatJsonSchema$outboundSchema` instead. */
798
- export const outboundSchema =
799
- ListPromptVersionsResponseFormatJsonSchema$outboundSchema;
800
- /** @deprecated use `ListPromptVersionsResponseFormatJsonSchema$Outbound` instead. */
801
- export type Outbound = ListPromptVersionsResponseFormatJsonSchema$Outbound;
802
- }
803
-
804
- export function listPromptVersionsResponseFormatJsonSchemaToJSON(
805
- listPromptVersionsResponseFormatJsonSchema:
806
- ListPromptVersionsResponseFormatJsonSchema,
807
- ): string {
808
- return JSON.stringify(
809
- ListPromptVersionsResponseFormatJsonSchema$outboundSchema.parse(
810
- listPromptVersionsResponseFormatJsonSchema,
811
- ),
812
- );
813
- }
814
-
815
- export function listPromptVersionsResponseFormatJsonSchemaFromJSON(
816
- jsonString: string,
817
- ): SafeParseResult<
818
- ListPromptVersionsResponseFormatJsonSchema,
819
- SDKValidationError
820
- > {
821
- return safeParse(
822
- jsonString,
823
- (x) =>
824
- ListPromptVersionsResponseFormatJsonSchema$inboundSchema.parse(
825
- JSON.parse(x),
826
- ),
827
- `Failed to parse 'ListPromptVersionsResponseFormatJsonSchema' from JSON`,
828
- );
829
- }
830
-
831
- /** @internal */
832
- export const ListPromptVersionsResponseFormat1$inboundSchema: z.ZodType<
833
- ListPromptVersionsResponseFormat1,
834
- z.ZodTypeDef,
835
- unknown
836
- > = z.object({
837
- type: ListPromptVersionsResponseFormatType$inboundSchema,
838
- json_schema: z.lazy(() =>
839
- ListPromptVersionsResponseFormatJsonSchema$inboundSchema
840
- ),
841
- }).transform((v) => {
842
- return remap$(v, {
843
- "json_schema": "jsonSchema",
844
- });
845
- });
846
-
847
- /** @internal */
848
- export type ListPromptVersionsResponseFormat1$Outbound = {
849
- type: string;
850
- json_schema: ListPromptVersionsResponseFormatJsonSchema$Outbound;
851
- };
852
-
853
- /** @internal */
854
- export const ListPromptVersionsResponseFormat1$outboundSchema: z.ZodType<
855
- ListPromptVersionsResponseFormat1$Outbound,
856
- z.ZodTypeDef,
857
- ListPromptVersionsResponseFormat1
858
- > = z.object({
859
- type: ListPromptVersionsResponseFormatType$outboundSchema,
860
- jsonSchema: z.lazy(() =>
861
- ListPromptVersionsResponseFormatJsonSchema$outboundSchema
862
- ),
863
- }).transform((v) => {
864
- return remap$(v, {
865
- jsonSchema: "json_schema",
866
- });
867
- });
868
-
869
- /**
870
- * @internal
871
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
872
- */
873
- export namespace ListPromptVersionsResponseFormat1$ {
874
- /** @deprecated use `ListPromptVersionsResponseFormat1$inboundSchema` instead. */
875
- export const inboundSchema = ListPromptVersionsResponseFormat1$inboundSchema;
876
- /** @deprecated use `ListPromptVersionsResponseFormat1$outboundSchema` instead. */
877
- export const outboundSchema =
878
- ListPromptVersionsResponseFormat1$outboundSchema;
879
- /** @deprecated use `ListPromptVersionsResponseFormat1$Outbound` instead. */
880
- export type Outbound = ListPromptVersionsResponseFormat1$Outbound;
881
- }
882
-
883
- export function listPromptVersionsResponseFormat1ToJSON(
884
- listPromptVersionsResponseFormat1: ListPromptVersionsResponseFormat1,
885
- ): string {
886
- return JSON.stringify(
887
- ListPromptVersionsResponseFormat1$outboundSchema.parse(
888
- listPromptVersionsResponseFormat1,
889
- ),
890
- );
891
- }
892
-
893
- export function listPromptVersionsResponseFormat1FromJSON(
894
- jsonString: string,
895
- ): SafeParseResult<ListPromptVersionsResponseFormat1, SDKValidationError> {
896
- return safeParse(
897
- jsonString,
898
- (x) => ListPromptVersionsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
899
- `Failed to parse 'ListPromptVersionsResponseFormat1' from JSON`,
900
- );
901
- }
902
-
903
- /** @internal */
904
- export const ListPromptVersionsResponseFormat$inboundSchema: z.ZodType<
905
- ListPromptVersionsResponseFormat,
906
- z.ZodTypeDef,
907
- unknown
908
- > = z.union([
909
- z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
910
- z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
911
- ]);
912
-
913
- /** @internal */
914
- export type ListPromptVersionsResponseFormat$Outbound =
915
- | ListPromptVersionsResponseFormat2$Outbound
916
- | ListPromptVersionsResponseFormat1$Outbound;
917
-
918
- /** @internal */
919
- export const ListPromptVersionsResponseFormat$outboundSchema: z.ZodType<
920
- ListPromptVersionsResponseFormat$Outbound,
921
- z.ZodTypeDef,
922
- ListPromptVersionsResponseFormat
923
- > = z.union([
924
- z.lazy(() => ListPromptVersionsResponseFormat2$outboundSchema),
925
- z.lazy(() => ListPromptVersionsResponseFormat1$outboundSchema),
926
- ]);
927
-
928
- /**
929
- * @internal
930
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
931
- */
932
- export namespace ListPromptVersionsResponseFormat$ {
933
- /** @deprecated use `ListPromptVersionsResponseFormat$inboundSchema` instead. */
934
- export const inboundSchema = ListPromptVersionsResponseFormat$inboundSchema;
935
- /** @deprecated use `ListPromptVersionsResponseFormat$outboundSchema` instead. */
936
- export const outboundSchema = ListPromptVersionsResponseFormat$outboundSchema;
937
- /** @deprecated use `ListPromptVersionsResponseFormat$Outbound` instead. */
938
- export type Outbound = ListPromptVersionsResponseFormat$Outbound;
939
- }
940
-
941
- export function listPromptVersionsResponseFormatToJSON(
942
- listPromptVersionsResponseFormat: ListPromptVersionsResponseFormat,
943
- ): string {
944
- return JSON.stringify(
945
- ListPromptVersionsResponseFormat$outboundSchema.parse(
946
- listPromptVersionsResponseFormat,
947
- ),
948
- );
949
- }
950
-
951
- export function listPromptVersionsResponseFormatFromJSON(
952
- jsonString: string,
953
- ): SafeParseResult<ListPromptVersionsResponseFormat, SDKValidationError> {
954
- return safeParse(
955
- jsonString,
956
- (x) => ListPromptVersionsResponseFormat$inboundSchema.parse(JSON.parse(x)),
957
- `Failed to parse 'ListPromptVersionsResponseFormat' from JSON`,
958
- );
959
- }
960
-
961
- /** @internal */
962
- export const ListPromptVersionsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
963
- typeof ListPromptVersionsPhotoRealVersion
964
- > = z.nativeEnum(ListPromptVersionsPhotoRealVersion);
965
-
966
- /** @internal */
967
- export const ListPromptVersionsPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
968
- typeof ListPromptVersionsPhotoRealVersion
969
- > = ListPromptVersionsPhotoRealVersion$inboundSchema;
970
-
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
- export namespace ListPromptVersionsPhotoRealVersion$ {
976
- /** @deprecated use `ListPromptVersionsPhotoRealVersion$inboundSchema` instead. */
977
- export const inboundSchema = ListPromptVersionsPhotoRealVersion$inboundSchema;
978
- /** @deprecated use `ListPromptVersionsPhotoRealVersion$outboundSchema` instead. */
979
- export const outboundSchema =
980
- ListPromptVersionsPhotoRealVersion$outboundSchema;
981
- }
982
-
983
- /** @internal */
984
- export const ListPromptVersionsEncodingFormat$inboundSchema: z.ZodNativeEnum<
985
- typeof ListPromptVersionsEncodingFormat
986
- > = z.nativeEnum(ListPromptVersionsEncodingFormat);
987
-
988
- /** @internal */
989
- export const ListPromptVersionsEncodingFormat$outboundSchema: z.ZodNativeEnum<
990
- typeof ListPromptVersionsEncodingFormat
991
- > = ListPromptVersionsEncodingFormat$inboundSchema;
992
-
993
- /**
994
- * @internal
995
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
996
- */
997
- export namespace ListPromptVersionsEncodingFormat$ {
998
- /** @deprecated use `ListPromptVersionsEncodingFormat$inboundSchema` instead. */
999
- export const inboundSchema = ListPromptVersionsEncodingFormat$inboundSchema;
1000
- /** @deprecated use `ListPromptVersionsEncodingFormat$outboundSchema` instead. */
1001
- export const outboundSchema = ListPromptVersionsEncodingFormat$outboundSchema;
1002
- }
1003
-
1004
- /** @internal */
1005
- export const ListPromptVersionsReasoningEffort$inboundSchema: z.ZodNativeEnum<
1006
- typeof ListPromptVersionsReasoningEffort
1007
- > = z.nativeEnum(ListPromptVersionsReasoningEffort);
1008
-
1009
- /** @internal */
1010
- export const ListPromptVersionsReasoningEffort$outboundSchema: z.ZodNativeEnum<
1011
- typeof ListPromptVersionsReasoningEffort
1012
- > = ListPromptVersionsReasoningEffort$inboundSchema;
1013
-
1014
- /**
1015
- * @internal
1016
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1017
- */
1018
- export namespace ListPromptVersionsReasoningEffort$ {
1019
- /** @deprecated use `ListPromptVersionsReasoningEffort$inboundSchema` instead. */
1020
- export const inboundSchema = ListPromptVersionsReasoningEffort$inboundSchema;
1021
- /** @deprecated use `ListPromptVersionsReasoningEffort$outboundSchema` instead. */
1022
- export const outboundSchema =
1023
- ListPromptVersionsReasoningEffort$outboundSchema;
1024
- }
1025
-
1026
- /** @internal */
1027
- export const ListPromptVersionsModelParameters$inboundSchema: z.ZodType<
1028
- ListPromptVersionsModelParameters,
1029
- z.ZodTypeDef,
1030
- unknown
1031
- > = z.object({
1032
- temperature: z.number().optional(),
1033
- maxTokens: z.number().optional(),
1034
- topK: z.number().optional(),
1035
- topP: z.number().optional(),
1036
- frequencyPenalty: z.number().optional(),
1037
- presencePenalty: z.number().optional(),
1038
- numImages: z.number().optional(),
1039
- seed: z.number().optional(),
1040
- format: ListPromptVersionsFormat$inboundSchema.optional(),
1041
- dimensions: z.string().optional(),
1042
- quality: z.string().optional(),
1043
- style: z.string().optional(),
1044
- responseFormat: z.nullable(
1045
- z.union([
1046
- z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
1047
- z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
1048
- ]),
1049
- ).optional(),
1050
- photoRealVersion: ListPromptVersionsPhotoRealVersion$inboundSchema.optional(),
1051
- encoding_format: ListPromptVersionsEncodingFormat$inboundSchema.optional(),
1052
- reasoningEffort: ListPromptVersionsReasoningEffort$inboundSchema.optional(),
1053
- budgetTokens: z.number().optional(),
1054
- }).transform((v) => {
1055
- return remap$(v, {
1056
- "encoding_format": "encodingFormat",
1057
- });
1058
- });
1059
-
1060
- /** @internal */
1061
- export type ListPromptVersionsModelParameters$Outbound = {
1062
- temperature?: number | undefined;
1063
- maxTokens?: number | undefined;
1064
- topK?: number | undefined;
1065
- topP?: number | undefined;
1066
- frequencyPenalty?: number | undefined;
1067
- presencePenalty?: number | undefined;
1068
- numImages?: number | undefined;
1069
- seed?: number | undefined;
1070
- format?: string | undefined;
1071
- dimensions?: string | undefined;
1072
- quality?: string | undefined;
1073
- style?: string | undefined;
1074
- responseFormat?:
1075
- | ListPromptVersionsResponseFormat2$Outbound
1076
- | ListPromptVersionsResponseFormat1$Outbound
1077
- | null
1078
- | undefined;
1079
- photoRealVersion?: string | undefined;
1080
- encoding_format?: string | undefined;
1081
- reasoningEffort?: string | undefined;
1082
- budgetTokens?: number | undefined;
1083
- };
1084
-
1085
- /** @internal */
1086
- export const ListPromptVersionsModelParameters$outboundSchema: z.ZodType<
1087
- ListPromptVersionsModelParameters$Outbound,
1088
- z.ZodTypeDef,
1089
- ListPromptVersionsModelParameters
1090
- > = z.object({
1091
- temperature: z.number().optional(),
1092
- maxTokens: z.number().optional(),
1093
- topK: z.number().optional(),
1094
- topP: z.number().optional(),
1095
- frequencyPenalty: z.number().optional(),
1096
- presencePenalty: z.number().optional(),
1097
- numImages: z.number().optional(),
1098
- seed: z.number().optional(),
1099
- format: ListPromptVersionsFormat$outboundSchema.optional(),
1100
- dimensions: z.string().optional(),
1101
- quality: z.string().optional(),
1102
- style: z.string().optional(),
1103
- responseFormat: z.nullable(
1104
- z.union([
1105
- z.lazy(() => ListPromptVersionsResponseFormat2$outboundSchema),
1106
- z.lazy(() => ListPromptVersionsResponseFormat1$outboundSchema),
1107
- ]),
1108
- ).optional(),
1109
- photoRealVersion: ListPromptVersionsPhotoRealVersion$outboundSchema
1110
- .optional(),
1111
- encodingFormat: ListPromptVersionsEncodingFormat$outboundSchema.optional(),
1112
- reasoningEffort: ListPromptVersionsReasoningEffort$outboundSchema.optional(),
1113
- budgetTokens: z.number().optional(),
1114
- }).transform((v) => {
1115
- return remap$(v, {
1116
- encodingFormat: "encoding_format",
1117
- });
1118
- });
1119
-
1120
- /**
1121
- * @internal
1122
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1123
- */
1124
- export namespace ListPromptVersionsModelParameters$ {
1125
- /** @deprecated use `ListPromptVersionsModelParameters$inboundSchema` instead. */
1126
- export const inboundSchema = ListPromptVersionsModelParameters$inboundSchema;
1127
- /** @deprecated use `ListPromptVersionsModelParameters$outboundSchema` instead. */
1128
- export const outboundSchema =
1129
- ListPromptVersionsModelParameters$outboundSchema;
1130
- /** @deprecated use `ListPromptVersionsModelParameters$Outbound` instead. */
1131
- export type Outbound = ListPromptVersionsModelParameters$Outbound;
1132
- }
1133
-
1134
- export function listPromptVersionsModelParametersToJSON(
1135
- listPromptVersionsModelParameters: ListPromptVersionsModelParameters,
1136
- ): string {
1137
- return JSON.stringify(
1138
- ListPromptVersionsModelParameters$outboundSchema.parse(
1139
- listPromptVersionsModelParameters,
1140
- ),
1141
- );
1142
- }
1143
-
1144
- export function listPromptVersionsModelParametersFromJSON(
1145
- jsonString: string,
1146
- ): SafeParseResult<ListPromptVersionsModelParameters, SDKValidationError> {
1147
- return safeParse(
1148
- jsonString,
1149
- (x) => ListPromptVersionsModelParameters$inboundSchema.parse(JSON.parse(x)),
1150
- `Failed to parse 'ListPromptVersionsModelParameters' from JSON`,
1151
- );
1152
- }
1153
-
1154
- /** @internal */
1155
- export const ListPromptVersionsProvider$inboundSchema: z.ZodNativeEnum<
1156
- typeof ListPromptVersionsProvider
1157
- > = z.nativeEnum(ListPromptVersionsProvider);
1158
-
1159
- /** @internal */
1160
- export const ListPromptVersionsProvider$outboundSchema: z.ZodNativeEnum<
1161
- typeof ListPromptVersionsProvider
1162
- > = ListPromptVersionsProvider$inboundSchema;
1163
-
1164
- /**
1165
- * @internal
1166
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1167
- */
1168
- export namespace ListPromptVersionsProvider$ {
1169
- /** @deprecated use `ListPromptVersionsProvider$inboundSchema` instead. */
1170
- export const inboundSchema = ListPromptVersionsProvider$inboundSchema;
1171
- /** @deprecated use `ListPromptVersionsProvider$outboundSchema` instead. */
1172
- export const outboundSchema = ListPromptVersionsProvider$outboundSchema;
1173
- }
1174
-
1175
- /** @internal */
1176
- export const ListPromptVersionsRole$inboundSchema: z.ZodNativeEnum<
1177
- typeof ListPromptVersionsRole
1178
- > = z.nativeEnum(ListPromptVersionsRole);
1179
-
1180
- /** @internal */
1181
- export const ListPromptVersionsRole$outboundSchema: z.ZodNativeEnum<
1182
- typeof ListPromptVersionsRole
1183
- > = ListPromptVersionsRole$inboundSchema;
1184
-
1185
- /**
1186
- * @internal
1187
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1188
- */
1189
- export namespace ListPromptVersionsRole$ {
1190
- /** @deprecated use `ListPromptVersionsRole$inboundSchema` instead. */
1191
- export const inboundSchema = ListPromptVersionsRole$inboundSchema;
1192
- /** @deprecated use `ListPromptVersionsRole$outboundSchema` instead. */
1193
- export const outboundSchema = ListPromptVersionsRole$outboundSchema;
1194
- }
1195
-
1196
- /** @internal */
1197
- export const ListPromptVersions2PromptsResponseType$inboundSchema:
1198
- z.ZodNativeEnum<typeof ListPromptVersions2PromptsResponseType> = z.nativeEnum(
1199
- ListPromptVersions2PromptsResponseType,
1200
- );
1201
-
1202
- /** @internal */
1203
- export const ListPromptVersions2PromptsResponseType$outboundSchema:
1204
- z.ZodNativeEnum<typeof ListPromptVersions2PromptsResponseType> =
1205
- ListPromptVersions2PromptsResponseType$inboundSchema;
1206
-
1207
- /**
1208
- * @internal
1209
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1210
- */
1211
- export namespace ListPromptVersions2PromptsResponseType$ {
1212
- /** @deprecated use `ListPromptVersions2PromptsResponseType$inboundSchema` instead. */
1213
- export const inboundSchema =
1214
- ListPromptVersions2PromptsResponseType$inboundSchema;
1215
- /** @deprecated use `ListPromptVersions2PromptsResponseType$outboundSchema` instead. */
1216
- export const outboundSchema =
1217
- ListPromptVersions2PromptsResponseType$outboundSchema;
1218
- }
1219
-
1220
- /** @internal */
1221
- export const ListPromptVersions2File$inboundSchema: z.ZodType<
1222
- ListPromptVersions2File,
1223
- z.ZodTypeDef,
1224
- unknown
1225
- > = z.object({
1226
- file_data: z.string(),
1227
- filename: z.string().optional(),
1228
- }).transform((v) => {
1229
- return remap$(v, {
1230
- "file_data": "fileData",
1231
- });
1232
- });
1233
-
1234
- /** @internal */
1235
- export type ListPromptVersions2File$Outbound = {
1236
- file_data: string;
1237
- filename?: string | undefined;
1238
- };
1239
-
1240
- /** @internal */
1241
- export const ListPromptVersions2File$outboundSchema: z.ZodType<
1242
- ListPromptVersions2File$Outbound,
1243
- z.ZodTypeDef,
1244
- ListPromptVersions2File
1245
- > = z.object({
1246
- fileData: z.string(),
1247
- filename: z.string().optional(),
1248
- }).transform((v) => {
1249
- return remap$(v, {
1250
- fileData: "file_data",
1251
- });
1252
- });
1253
-
1254
- /**
1255
- * @internal
1256
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1257
- */
1258
- export namespace ListPromptVersions2File$ {
1259
- /** @deprecated use `ListPromptVersions2File$inboundSchema` instead. */
1260
- export const inboundSchema = ListPromptVersions2File$inboundSchema;
1261
- /** @deprecated use `ListPromptVersions2File$outboundSchema` instead. */
1262
- export const outboundSchema = ListPromptVersions2File$outboundSchema;
1263
- /** @deprecated use `ListPromptVersions2File$Outbound` instead. */
1264
- export type Outbound = ListPromptVersions2File$Outbound;
1265
- }
1266
-
1267
- export function listPromptVersions2FileToJSON(
1268
- listPromptVersions2File: ListPromptVersions2File,
1269
- ): string {
1270
- return JSON.stringify(
1271
- ListPromptVersions2File$outboundSchema.parse(listPromptVersions2File),
1272
- );
1273
- }
1274
-
1275
- export function listPromptVersions2FileFromJSON(
1276
- jsonString: string,
1277
- ): SafeParseResult<ListPromptVersions2File, SDKValidationError> {
1278
- return safeParse(
1279
- jsonString,
1280
- (x) => ListPromptVersions2File$inboundSchema.parse(JSON.parse(x)),
1281
- `Failed to parse 'ListPromptVersions2File' from JSON`,
1282
- );
1283
- }
1284
-
1285
- /** @internal */
1286
- export const ListPromptVersions23$inboundSchema: z.ZodType<
1287
- ListPromptVersions23,
1288
- z.ZodTypeDef,
1289
- unknown
1290
- > = z.object({
1291
- type: ListPromptVersions2PromptsResponseType$inboundSchema,
1292
- file: z.lazy(() => ListPromptVersions2File$inboundSchema),
1293
- });
1294
-
1295
- /** @internal */
1296
- export type ListPromptVersions23$Outbound = {
1297
- type: string;
1298
- file: ListPromptVersions2File$Outbound;
1299
- };
1300
-
1301
- /** @internal */
1302
- export const ListPromptVersions23$outboundSchema: z.ZodType<
1303
- ListPromptVersions23$Outbound,
1304
- z.ZodTypeDef,
1305
- ListPromptVersions23
1306
- > = z.object({
1307
- type: ListPromptVersions2PromptsResponseType$outboundSchema,
1308
- file: z.lazy(() => ListPromptVersions2File$outboundSchema),
1309
- });
1310
-
1311
- /**
1312
- * @internal
1313
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1314
- */
1315
- export namespace ListPromptVersions23$ {
1316
- /** @deprecated use `ListPromptVersions23$inboundSchema` instead. */
1317
- export const inboundSchema = ListPromptVersions23$inboundSchema;
1318
- /** @deprecated use `ListPromptVersions23$outboundSchema` instead. */
1319
- export const outboundSchema = ListPromptVersions23$outboundSchema;
1320
- /** @deprecated use `ListPromptVersions23$Outbound` instead. */
1321
- export type Outbound = ListPromptVersions23$Outbound;
1322
- }
1323
-
1324
- export function listPromptVersions23ToJSON(
1325
- listPromptVersions23: ListPromptVersions23,
1326
- ): string {
1327
- return JSON.stringify(
1328
- ListPromptVersions23$outboundSchema.parse(listPromptVersions23),
1329
- );
1330
- }
1331
-
1332
- export function listPromptVersions23FromJSON(
1333
- jsonString: string,
1334
- ): SafeParseResult<ListPromptVersions23, SDKValidationError> {
1335
- return safeParse(
1336
- jsonString,
1337
- (x) => ListPromptVersions23$inboundSchema.parse(JSON.parse(x)),
1338
- `Failed to parse 'ListPromptVersions23' from JSON`,
1339
- );
1340
- }
1341
-
1342
- /** @internal */
1343
- export const ListPromptVersions2PromptsType$inboundSchema: z.ZodNativeEnum<
1344
- typeof ListPromptVersions2PromptsType
1345
- > = z.nativeEnum(ListPromptVersions2PromptsType);
1346
-
1347
- /** @internal */
1348
- export const ListPromptVersions2PromptsType$outboundSchema: z.ZodNativeEnum<
1349
- typeof ListPromptVersions2PromptsType
1350
- > = ListPromptVersions2PromptsType$inboundSchema;
1351
-
1352
- /**
1353
- * @internal
1354
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1355
- */
1356
- export namespace ListPromptVersions2PromptsType$ {
1357
- /** @deprecated use `ListPromptVersions2PromptsType$inboundSchema` instead. */
1358
- export const inboundSchema = ListPromptVersions2PromptsType$inboundSchema;
1359
- /** @deprecated use `ListPromptVersions2PromptsType$outboundSchema` instead. */
1360
- export const outboundSchema = ListPromptVersions2PromptsType$outboundSchema;
1361
- }
1362
-
1363
- /** @internal */
1364
- export const ListPromptVersions2ImageUrl$inboundSchema: z.ZodType<
1365
- ListPromptVersions2ImageUrl,
1366
- z.ZodTypeDef,
1367
- unknown
1368
- > = z.object({
1369
- id: z.string().optional(),
1370
- url: z.string(),
1371
- detail: z.string().optional(),
1372
- });
1373
-
1374
- /** @internal */
1375
- export type ListPromptVersions2ImageUrl$Outbound = {
1376
- id?: string | undefined;
1377
- url: string;
1378
- detail?: string | undefined;
1379
- };
1380
-
1381
- /** @internal */
1382
- export const ListPromptVersions2ImageUrl$outboundSchema: z.ZodType<
1383
- ListPromptVersions2ImageUrl$Outbound,
1384
- z.ZodTypeDef,
1385
- ListPromptVersions2ImageUrl
1386
- > = z.object({
1387
- id: z.string().optional(),
1388
- url: z.string(),
1389
- detail: z.string().optional(),
1390
- });
1391
-
1392
- /**
1393
- * @internal
1394
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1395
- */
1396
- export namespace ListPromptVersions2ImageUrl$ {
1397
- /** @deprecated use `ListPromptVersions2ImageUrl$inboundSchema` instead. */
1398
- export const inboundSchema = ListPromptVersions2ImageUrl$inboundSchema;
1399
- /** @deprecated use `ListPromptVersions2ImageUrl$outboundSchema` instead. */
1400
- export const outboundSchema = ListPromptVersions2ImageUrl$outboundSchema;
1401
- /** @deprecated use `ListPromptVersions2ImageUrl$Outbound` instead. */
1402
- export type Outbound = ListPromptVersions2ImageUrl$Outbound;
1403
- }
1404
-
1405
- export function listPromptVersions2ImageUrlToJSON(
1406
- listPromptVersions2ImageUrl: ListPromptVersions2ImageUrl,
1407
- ): string {
1408
- return JSON.stringify(
1409
- ListPromptVersions2ImageUrl$outboundSchema.parse(
1410
- listPromptVersions2ImageUrl,
1411
- ),
1412
- );
1413
- }
1414
-
1415
- export function listPromptVersions2ImageUrlFromJSON(
1416
- jsonString: string,
1417
- ): SafeParseResult<ListPromptVersions2ImageUrl, SDKValidationError> {
1418
- return safeParse(
1419
- jsonString,
1420
- (x) => ListPromptVersions2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1421
- `Failed to parse 'ListPromptVersions2ImageUrl' from JSON`,
1422
- );
1423
- }
1424
-
1425
- /** @internal */
1426
- export const ListPromptVersions22$inboundSchema: z.ZodType<
1427
- ListPromptVersions22,
1428
- z.ZodTypeDef,
1429
- unknown
1430
- > = z.object({
1431
- type: ListPromptVersions2PromptsType$inboundSchema,
1432
- image_url: z.lazy(() => ListPromptVersions2ImageUrl$inboundSchema),
1433
- }).transform((v) => {
1434
- return remap$(v, {
1435
- "image_url": "imageUrl",
1436
- });
1437
- });
1438
-
1439
- /** @internal */
1440
- export type ListPromptVersions22$Outbound = {
1441
- type: string;
1442
- image_url: ListPromptVersions2ImageUrl$Outbound;
1443
- };
1444
-
1445
- /** @internal */
1446
- export const ListPromptVersions22$outboundSchema: z.ZodType<
1447
- ListPromptVersions22$Outbound,
1448
- z.ZodTypeDef,
1449
- ListPromptVersions22
1450
- > = z.object({
1451
- type: ListPromptVersions2PromptsType$outboundSchema,
1452
- imageUrl: z.lazy(() => ListPromptVersions2ImageUrl$outboundSchema),
1453
- }).transform((v) => {
1454
- return remap$(v, {
1455
- imageUrl: "image_url",
1456
- });
1457
- });
1458
-
1459
- /**
1460
- * @internal
1461
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1462
- */
1463
- export namespace ListPromptVersions22$ {
1464
- /** @deprecated use `ListPromptVersions22$inboundSchema` instead. */
1465
- export const inboundSchema = ListPromptVersions22$inboundSchema;
1466
- /** @deprecated use `ListPromptVersions22$outboundSchema` instead. */
1467
- export const outboundSchema = ListPromptVersions22$outboundSchema;
1468
- /** @deprecated use `ListPromptVersions22$Outbound` instead. */
1469
- export type Outbound = ListPromptVersions22$Outbound;
1470
- }
1471
-
1472
- export function listPromptVersions22ToJSON(
1473
- listPromptVersions22: ListPromptVersions22,
1474
- ): string {
1475
- return JSON.stringify(
1476
- ListPromptVersions22$outboundSchema.parse(listPromptVersions22),
1477
- );
1478
- }
1479
-
1480
- export function listPromptVersions22FromJSON(
1481
- jsonString: string,
1482
- ): SafeParseResult<ListPromptVersions22, SDKValidationError> {
1483
- return safeParse(
1484
- jsonString,
1485
- (x) => ListPromptVersions22$inboundSchema.parse(JSON.parse(x)),
1486
- `Failed to parse 'ListPromptVersions22' from JSON`,
1487
- );
1488
- }
1489
-
1490
- /** @internal */
1491
- export const ListPromptVersions2Type$inboundSchema: z.ZodNativeEnum<
1492
- typeof ListPromptVersions2Type
1493
- > = z.nativeEnum(ListPromptVersions2Type);
1494
-
1495
- /** @internal */
1496
- export const ListPromptVersions2Type$outboundSchema: z.ZodNativeEnum<
1497
- typeof ListPromptVersions2Type
1498
- > = ListPromptVersions2Type$inboundSchema;
1499
-
1500
- /**
1501
- * @internal
1502
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1503
- */
1504
- export namespace ListPromptVersions2Type$ {
1505
- /** @deprecated use `ListPromptVersions2Type$inboundSchema` instead. */
1506
- export const inboundSchema = ListPromptVersions2Type$inboundSchema;
1507
- /** @deprecated use `ListPromptVersions2Type$outboundSchema` instead. */
1508
- export const outboundSchema = ListPromptVersions2Type$outboundSchema;
1509
- }
1510
-
1511
- /** @internal */
1512
- export const ListPromptVersions21$inboundSchema: z.ZodType<
1513
- ListPromptVersions21,
1514
- z.ZodTypeDef,
1515
- unknown
1516
- > = z.object({
1517
- type: ListPromptVersions2Type$inboundSchema,
1518
- text: z.string(),
1519
- });
1520
-
1521
- /** @internal */
1522
- export type ListPromptVersions21$Outbound = {
1523
- type: string;
1524
- text: string;
1525
- };
1526
-
1527
- /** @internal */
1528
- export const ListPromptVersions21$outboundSchema: z.ZodType<
1529
- ListPromptVersions21$Outbound,
1530
- z.ZodTypeDef,
1531
- ListPromptVersions21
1532
- > = z.object({
1533
- type: ListPromptVersions2Type$outboundSchema,
1534
- text: z.string(),
1535
- });
1536
-
1537
- /**
1538
- * @internal
1539
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1540
- */
1541
- export namespace ListPromptVersions21$ {
1542
- /** @deprecated use `ListPromptVersions21$inboundSchema` instead. */
1543
- export const inboundSchema = ListPromptVersions21$inboundSchema;
1544
- /** @deprecated use `ListPromptVersions21$outboundSchema` instead. */
1545
- export const outboundSchema = ListPromptVersions21$outboundSchema;
1546
- /** @deprecated use `ListPromptVersions21$Outbound` instead. */
1547
- export type Outbound = ListPromptVersions21$Outbound;
1548
- }
1549
-
1550
- export function listPromptVersions21ToJSON(
1551
- listPromptVersions21: ListPromptVersions21,
1552
- ): string {
1553
- return JSON.stringify(
1554
- ListPromptVersions21$outboundSchema.parse(listPromptVersions21),
1555
- );
1556
- }
1557
-
1558
- export function listPromptVersions21FromJSON(
1559
- jsonString: string,
1560
- ): SafeParseResult<ListPromptVersions21, SDKValidationError> {
1561
- return safeParse(
1562
- jsonString,
1563
- (x) => ListPromptVersions21$inboundSchema.parse(JSON.parse(x)),
1564
- `Failed to parse 'ListPromptVersions21' from JSON`,
1565
- );
1566
- }
1567
-
1568
- /** @internal */
1569
- export const ListPromptVersionsContent2$inboundSchema: z.ZodType<
1570
- ListPromptVersionsContent2,
1571
- z.ZodTypeDef,
1572
- unknown
1573
- > = z.union([
1574
- z.lazy(() => ListPromptVersions21$inboundSchema),
1575
- z.lazy(() => ListPromptVersions22$inboundSchema),
1576
- z.lazy(() => ListPromptVersions23$inboundSchema),
1577
- ]);
1578
-
1579
- /** @internal */
1580
- export type ListPromptVersionsContent2$Outbound =
1581
- | ListPromptVersions21$Outbound
1582
- | ListPromptVersions22$Outbound
1583
- | ListPromptVersions23$Outbound;
1584
-
1585
- /** @internal */
1586
- export const ListPromptVersionsContent2$outboundSchema: z.ZodType<
1587
- ListPromptVersionsContent2$Outbound,
1588
- z.ZodTypeDef,
1589
- ListPromptVersionsContent2
1590
- > = z.union([
1591
- z.lazy(() => ListPromptVersions21$outboundSchema),
1592
- z.lazy(() => ListPromptVersions22$outboundSchema),
1593
- z.lazy(() => ListPromptVersions23$outboundSchema),
1594
- ]);
1595
-
1596
- /**
1597
- * @internal
1598
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1599
- */
1600
- export namespace ListPromptVersionsContent2$ {
1601
- /** @deprecated use `ListPromptVersionsContent2$inboundSchema` instead. */
1602
- export const inboundSchema = ListPromptVersionsContent2$inboundSchema;
1603
- /** @deprecated use `ListPromptVersionsContent2$outboundSchema` instead. */
1604
- export const outboundSchema = ListPromptVersionsContent2$outboundSchema;
1605
- /** @deprecated use `ListPromptVersionsContent2$Outbound` instead. */
1606
- export type Outbound = ListPromptVersionsContent2$Outbound;
1607
- }
1608
-
1609
- export function listPromptVersionsContent2ToJSON(
1610
- listPromptVersionsContent2: ListPromptVersionsContent2,
1611
- ): string {
1612
- return JSON.stringify(
1613
- ListPromptVersionsContent2$outboundSchema.parse(listPromptVersionsContent2),
1614
- );
1615
- }
1616
-
1617
- export function listPromptVersionsContent2FromJSON(
1618
- jsonString: string,
1619
- ): SafeParseResult<ListPromptVersionsContent2, SDKValidationError> {
1620
- return safeParse(
1621
- jsonString,
1622
- (x) => ListPromptVersionsContent2$inboundSchema.parse(JSON.parse(x)),
1623
- `Failed to parse 'ListPromptVersionsContent2' from JSON`,
1624
- );
1625
- }
1626
-
1627
- /** @internal */
1628
- export const ListPromptVersionsContent$inboundSchema: z.ZodType<
1629
- ListPromptVersionsContent,
1630
- z.ZodTypeDef,
1631
- unknown
1632
- > = z.union([
1633
- z.string(),
1634
- z.array(z.union([
1635
- z.lazy(() => ListPromptVersions21$inboundSchema),
1636
- z.lazy(() => ListPromptVersions22$inboundSchema),
1637
- z.lazy(() => ListPromptVersions23$inboundSchema),
1638
- ])),
1639
- ]);
1640
-
1641
- /** @internal */
1642
- export type ListPromptVersionsContent$Outbound =
1643
- | string
1644
- | Array<
1645
- | ListPromptVersions21$Outbound
1646
- | ListPromptVersions22$Outbound
1647
- | ListPromptVersions23$Outbound
1648
- >;
1649
-
1650
- /** @internal */
1651
- export const ListPromptVersionsContent$outboundSchema: z.ZodType<
1652
- ListPromptVersionsContent$Outbound,
1653
- z.ZodTypeDef,
1654
- ListPromptVersionsContent
1655
- > = z.union([
1656
- z.string(),
1657
- z.array(z.union([
1658
- z.lazy(() => ListPromptVersions21$outboundSchema),
1659
- z.lazy(() => ListPromptVersions22$outboundSchema),
1660
- z.lazy(() => ListPromptVersions23$outboundSchema),
1661
- ])),
1662
- ]);
1663
-
1664
- /**
1665
- * @internal
1666
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1667
- */
1668
- export namespace ListPromptVersionsContent$ {
1669
- /** @deprecated use `ListPromptVersionsContent$inboundSchema` instead. */
1670
- export const inboundSchema = ListPromptVersionsContent$inboundSchema;
1671
- /** @deprecated use `ListPromptVersionsContent$outboundSchema` instead. */
1672
- export const outboundSchema = ListPromptVersionsContent$outboundSchema;
1673
- /** @deprecated use `ListPromptVersionsContent$Outbound` instead. */
1674
- export type Outbound = ListPromptVersionsContent$Outbound;
1675
- }
1676
-
1677
- export function listPromptVersionsContentToJSON(
1678
- listPromptVersionsContent: ListPromptVersionsContent,
1679
- ): string {
1680
- return JSON.stringify(
1681
- ListPromptVersionsContent$outboundSchema.parse(listPromptVersionsContent),
1682
- );
1683
- }
1684
-
1685
- export function listPromptVersionsContentFromJSON(
1686
- jsonString: string,
1687
- ): SafeParseResult<ListPromptVersionsContent, SDKValidationError> {
1688
- return safeParse(
1689
- jsonString,
1690
- (x) => ListPromptVersionsContent$inboundSchema.parse(JSON.parse(x)),
1691
- `Failed to parse 'ListPromptVersionsContent' from JSON`,
1692
- );
1693
- }
1694
-
1695
- /** @internal */
1696
- export const ListPromptVersionsType$inboundSchema: z.ZodNativeEnum<
1697
- typeof ListPromptVersionsType
1698
- > = z.nativeEnum(ListPromptVersionsType);
1699
-
1700
- /** @internal */
1701
- export const ListPromptVersionsType$outboundSchema: z.ZodNativeEnum<
1702
- typeof ListPromptVersionsType
1703
- > = ListPromptVersionsType$inboundSchema;
1704
-
1705
- /**
1706
- * @internal
1707
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1708
- */
1709
- export namespace ListPromptVersionsType$ {
1710
- /** @deprecated use `ListPromptVersionsType$inboundSchema` instead. */
1711
- export const inboundSchema = ListPromptVersionsType$inboundSchema;
1712
- /** @deprecated use `ListPromptVersionsType$outboundSchema` instead. */
1713
- export const outboundSchema = ListPromptVersionsType$outboundSchema;
1714
- }
1715
-
1716
- /** @internal */
1717
- export const ListPromptVersionsFunction$inboundSchema: z.ZodType<
1718
- ListPromptVersionsFunction,
1719
- z.ZodTypeDef,
1720
- unknown
1721
- > = z.object({
1722
- name: z.string(),
1723
- arguments: z.string(),
1724
- });
1725
-
1726
- /** @internal */
1727
- export type ListPromptVersionsFunction$Outbound = {
1728
- name: string;
1729
- arguments: string;
1730
- };
1731
-
1732
- /** @internal */
1733
- export const ListPromptVersionsFunction$outboundSchema: z.ZodType<
1734
- ListPromptVersionsFunction$Outbound,
1735
- z.ZodTypeDef,
1736
- ListPromptVersionsFunction
1737
- > = z.object({
1738
- name: z.string(),
1739
- arguments: z.string(),
1740
- });
1741
-
1742
- /**
1743
- * @internal
1744
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1745
- */
1746
- export namespace ListPromptVersionsFunction$ {
1747
- /** @deprecated use `ListPromptVersionsFunction$inboundSchema` instead. */
1748
- export const inboundSchema = ListPromptVersionsFunction$inboundSchema;
1749
- /** @deprecated use `ListPromptVersionsFunction$outboundSchema` instead. */
1750
- export const outboundSchema = ListPromptVersionsFunction$outboundSchema;
1751
- /** @deprecated use `ListPromptVersionsFunction$Outbound` instead. */
1752
- export type Outbound = ListPromptVersionsFunction$Outbound;
1753
- }
1754
-
1755
- export function listPromptVersionsFunctionToJSON(
1756
- listPromptVersionsFunction: ListPromptVersionsFunction,
1757
- ): string {
1758
- return JSON.stringify(
1759
- ListPromptVersionsFunction$outboundSchema.parse(listPromptVersionsFunction),
1760
- );
1761
- }
1762
-
1763
- export function listPromptVersionsFunctionFromJSON(
1764
- jsonString: string,
1765
- ): SafeParseResult<ListPromptVersionsFunction, SDKValidationError> {
1766
- return safeParse(
1767
- jsonString,
1768
- (x) => ListPromptVersionsFunction$inboundSchema.parse(JSON.parse(x)),
1769
- `Failed to parse 'ListPromptVersionsFunction' from JSON`,
1770
- );
1771
- }
1772
-
1773
- /** @internal */
1774
- export const ListPromptVersionsToolCalls$inboundSchema: z.ZodType<
1775
- ListPromptVersionsToolCalls,
1776
- z.ZodTypeDef,
1777
- unknown
1778
- > = z.object({
1779
- id: z.string().optional(),
1780
- index: z.number().optional(),
1781
- type: ListPromptVersionsType$inboundSchema,
1782
- function: z.lazy(() => ListPromptVersionsFunction$inboundSchema),
1783
- });
1784
-
1785
- /** @internal */
1786
- export type ListPromptVersionsToolCalls$Outbound = {
1787
- id?: string | undefined;
1788
- index?: number | undefined;
1789
- type: string;
1790
- function: ListPromptVersionsFunction$Outbound;
1791
- };
1792
-
1793
- /** @internal */
1794
- export const ListPromptVersionsToolCalls$outboundSchema: z.ZodType<
1795
- ListPromptVersionsToolCalls$Outbound,
1796
- z.ZodTypeDef,
1797
- ListPromptVersionsToolCalls
1798
- > = z.object({
1799
- id: z.string().optional(),
1800
- index: z.number().optional(),
1801
- type: ListPromptVersionsType$outboundSchema,
1802
- function: z.lazy(() => ListPromptVersionsFunction$outboundSchema),
1803
- });
1804
-
1805
- /**
1806
- * @internal
1807
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1808
- */
1809
- export namespace ListPromptVersionsToolCalls$ {
1810
- /** @deprecated use `ListPromptVersionsToolCalls$inboundSchema` instead. */
1811
- export const inboundSchema = ListPromptVersionsToolCalls$inboundSchema;
1812
- /** @deprecated use `ListPromptVersionsToolCalls$outboundSchema` instead. */
1813
- export const outboundSchema = ListPromptVersionsToolCalls$outboundSchema;
1814
- /** @deprecated use `ListPromptVersionsToolCalls$Outbound` instead. */
1815
- export type Outbound = ListPromptVersionsToolCalls$Outbound;
1816
- }
1817
-
1818
- export function listPromptVersionsToolCallsToJSON(
1819
- listPromptVersionsToolCalls: ListPromptVersionsToolCalls,
1820
- ): string {
1821
- return JSON.stringify(
1822
- ListPromptVersionsToolCalls$outboundSchema.parse(
1823
- listPromptVersionsToolCalls,
1824
- ),
1825
- );
1826
- }
1827
-
1828
- export function listPromptVersionsToolCallsFromJSON(
1829
- jsonString: string,
1830
- ): SafeParseResult<ListPromptVersionsToolCalls, SDKValidationError> {
1831
- return safeParse(
1832
- jsonString,
1833
- (x) => ListPromptVersionsToolCalls$inboundSchema.parse(JSON.parse(x)),
1834
- `Failed to parse 'ListPromptVersionsToolCalls' from JSON`,
1835
- );
1836
- }
1837
-
1838
- /** @internal */
1839
- export const ListPromptVersionsMessages$inboundSchema: z.ZodType<
1840
- ListPromptVersionsMessages,
1841
- z.ZodTypeDef,
1842
- unknown
1843
- > = z.object({
1844
- role: ListPromptVersionsRole$inboundSchema,
1845
- content: z.union([
1846
- z.string(),
1847
- z.array(z.union([
1848
- z.lazy(() => ListPromptVersions21$inboundSchema),
1849
- z.lazy(() => ListPromptVersions22$inboundSchema),
1850
- z.lazy(() => ListPromptVersions23$inboundSchema),
1851
- ])),
1852
- ]),
1853
- tool_calls: z.array(z.lazy(() => ListPromptVersionsToolCalls$inboundSchema))
1854
- .optional(),
1855
- tool_call_id: z.string().optional(),
1856
- }).transform((v) => {
1857
- return remap$(v, {
1858
- "tool_calls": "toolCalls",
1859
- "tool_call_id": "toolCallId",
1860
- });
1861
- });
1862
-
1863
- /** @internal */
1864
- export type ListPromptVersionsMessages$Outbound = {
1865
- role: string;
1866
- content:
1867
- | string
1868
- | Array<
1869
- | ListPromptVersions21$Outbound
1870
- | ListPromptVersions22$Outbound
1871
- | ListPromptVersions23$Outbound
1872
- >;
1873
- tool_calls?: Array<ListPromptVersionsToolCalls$Outbound> | undefined;
1874
- tool_call_id?: string | undefined;
1875
- };
1876
-
1877
- /** @internal */
1878
- export const ListPromptVersionsMessages$outboundSchema: z.ZodType<
1879
- ListPromptVersionsMessages$Outbound,
1880
- z.ZodTypeDef,
1881
- ListPromptVersionsMessages
1882
- > = z.object({
1883
- role: ListPromptVersionsRole$outboundSchema,
1884
- content: z.union([
1885
- z.string(),
1886
- z.array(z.union([
1887
- z.lazy(() => ListPromptVersions21$outboundSchema),
1888
- z.lazy(() => ListPromptVersions22$outboundSchema),
1889
- z.lazy(() => ListPromptVersions23$outboundSchema),
1890
- ])),
1891
- ]),
1892
- toolCalls: z.array(z.lazy(() => ListPromptVersionsToolCalls$outboundSchema))
1893
- .optional(),
1894
- toolCallId: z.string().optional(),
1895
- }).transform((v) => {
1896
- return remap$(v, {
1897
- toolCalls: "tool_calls",
1898
- toolCallId: "tool_call_id",
1899
- });
1900
- });
1901
-
1902
- /**
1903
- * @internal
1904
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1905
- */
1906
- export namespace ListPromptVersionsMessages$ {
1907
- /** @deprecated use `ListPromptVersionsMessages$inboundSchema` instead. */
1908
- export const inboundSchema = ListPromptVersionsMessages$inboundSchema;
1909
- /** @deprecated use `ListPromptVersionsMessages$outboundSchema` instead. */
1910
- export const outboundSchema = ListPromptVersionsMessages$outboundSchema;
1911
- /** @deprecated use `ListPromptVersionsMessages$Outbound` instead. */
1912
- export type Outbound = ListPromptVersionsMessages$Outbound;
1913
- }
1914
-
1915
- export function listPromptVersionsMessagesToJSON(
1916
- listPromptVersionsMessages: ListPromptVersionsMessages,
1917
- ): string {
1918
- return JSON.stringify(
1919
- ListPromptVersionsMessages$outboundSchema.parse(listPromptVersionsMessages),
1920
- );
1921
- }
1922
-
1923
- export function listPromptVersionsMessagesFromJSON(
1924
- jsonString: string,
1925
- ): SafeParseResult<ListPromptVersionsMessages, SDKValidationError> {
1926
- return safeParse(
1927
- jsonString,
1928
- (x) => ListPromptVersionsMessages$inboundSchema.parse(JSON.parse(x)),
1929
- `Failed to parse 'ListPromptVersionsMessages' from JSON`,
1930
- );
1931
- }
1932
-
1933
- /** @internal */
1934
- export const ListPromptVersionsPromptConfig$inboundSchema: z.ZodType<
1935
- ListPromptVersionsPromptConfig,
1936
- z.ZodTypeDef,
1937
- unknown
1938
- > = z.object({
1939
- stream: z.boolean().optional(),
1940
- model: z.string().optional(),
1941
- model_db_id: z.string().optional(),
1942
- model_type: ListPromptVersionsModelType$inboundSchema.optional(),
1943
- model_parameters: z.lazy(() =>
1944
- ListPromptVersionsModelParameters$inboundSchema
1945
- ).optional(),
1946
- provider: ListPromptVersionsProvider$inboundSchema.optional(),
1947
- integration_id: z.nullable(z.string()).optional(),
1948
- version: z.string().optional(),
1949
- messages: z.array(z.lazy(() => ListPromptVersionsMessages$inboundSchema)),
1950
- }).transform((v) => {
1951
- return remap$(v, {
1952
- "model_db_id": "modelDbId",
1953
- "model_type": "modelType",
1954
- "model_parameters": "modelParameters",
1955
- "integration_id": "integrationId",
1956
- });
1957
- });
1958
-
1959
- /** @internal */
1960
- export type ListPromptVersionsPromptConfig$Outbound = {
1961
- stream?: boolean | undefined;
1962
- model?: string | undefined;
1963
- model_db_id?: string | undefined;
1964
- model_type?: string | undefined;
1965
- model_parameters?: ListPromptVersionsModelParameters$Outbound | undefined;
1966
- provider?: string | undefined;
1967
- integration_id?: string | null | undefined;
1968
- version?: string | undefined;
1969
- messages: Array<ListPromptVersionsMessages$Outbound>;
1970
- };
1971
-
1972
- /** @internal */
1973
- export const ListPromptVersionsPromptConfig$outboundSchema: z.ZodType<
1974
- ListPromptVersionsPromptConfig$Outbound,
1975
- z.ZodTypeDef,
1976
- ListPromptVersionsPromptConfig
1977
- > = z.object({
1978
- stream: z.boolean().optional(),
1979
- model: z.string().optional(),
1980
- modelDbId: z.string().optional(),
1981
- modelType: ListPromptVersionsModelType$outboundSchema.optional(),
1982
- modelParameters: z.lazy(() =>
1983
- ListPromptVersionsModelParameters$outboundSchema
1984
- ).optional(),
1985
- provider: ListPromptVersionsProvider$outboundSchema.optional(),
1986
- integrationId: z.nullable(z.string()).optional(),
1987
- version: z.string().optional(),
1988
- messages: z.array(z.lazy(() => ListPromptVersionsMessages$outboundSchema)),
1989
- }).transform((v) => {
1990
- return remap$(v, {
1991
- modelDbId: "model_db_id",
1992
- modelType: "model_type",
1993
- modelParameters: "model_parameters",
1994
- integrationId: "integration_id",
1995
- });
1996
- });
1997
-
1998
- /**
1999
- * @internal
2000
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2001
- */
2002
- export namespace ListPromptVersionsPromptConfig$ {
2003
- /** @deprecated use `ListPromptVersionsPromptConfig$inboundSchema` instead. */
2004
- export const inboundSchema = ListPromptVersionsPromptConfig$inboundSchema;
2005
- /** @deprecated use `ListPromptVersionsPromptConfig$outboundSchema` instead. */
2006
- export const outboundSchema = ListPromptVersionsPromptConfig$outboundSchema;
2007
- /** @deprecated use `ListPromptVersionsPromptConfig$Outbound` instead. */
2008
- export type Outbound = ListPromptVersionsPromptConfig$Outbound;
2009
- }
2010
-
2011
- export function listPromptVersionsPromptConfigToJSON(
2012
- listPromptVersionsPromptConfig: ListPromptVersionsPromptConfig,
2013
- ): string {
2014
- return JSON.stringify(
2015
- ListPromptVersionsPromptConfig$outboundSchema.parse(
2016
- listPromptVersionsPromptConfig,
2017
- ),
2018
- );
2019
- }
2020
-
2021
- export function listPromptVersionsPromptConfigFromJSON(
2022
- jsonString: string,
2023
- ): SafeParseResult<ListPromptVersionsPromptConfig, SDKValidationError> {
2024
- return safeParse(
2025
- jsonString,
2026
- (x) => ListPromptVersionsPromptConfig$inboundSchema.parse(JSON.parse(x)),
2027
- `Failed to parse 'ListPromptVersionsPromptConfig' from JSON`,
2028
- );
2029
- }
2030
-
2031
- /** @internal */
2032
- export const ListPromptVersionsUseCases$inboundSchema: z.ZodNativeEnum<
2033
- typeof ListPromptVersionsUseCases
2034
- > = z.nativeEnum(ListPromptVersionsUseCases);
2035
-
2036
- /** @internal */
2037
- export const ListPromptVersionsUseCases$outboundSchema: z.ZodNativeEnum<
2038
- typeof ListPromptVersionsUseCases
2039
- > = ListPromptVersionsUseCases$inboundSchema;
2040
-
2041
- /**
2042
- * @internal
2043
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2044
- */
2045
- export namespace ListPromptVersionsUseCases$ {
2046
- /** @deprecated use `ListPromptVersionsUseCases$inboundSchema` instead. */
2047
- export const inboundSchema = ListPromptVersionsUseCases$inboundSchema;
2048
- /** @deprecated use `ListPromptVersionsUseCases$outboundSchema` instead. */
2049
- export const outboundSchema = ListPromptVersionsUseCases$outboundSchema;
2050
- }
2051
-
2052
- /** @internal */
2053
- export const ListPromptVersionsLanguage$inboundSchema: z.ZodNativeEnum<
2054
- typeof ListPromptVersionsLanguage
2055
- > = z.nativeEnum(ListPromptVersionsLanguage);
2056
-
2057
- /** @internal */
2058
- export const ListPromptVersionsLanguage$outboundSchema: z.ZodNativeEnum<
2059
- typeof ListPromptVersionsLanguage
2060
- > = ListPromptVersionsLanguage$inboundSchema;
2061
-
2062
- /**
2063
- * @internal
2064
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2065
- */
2066
- export namespace ListPromptVersionsLanguage$ {
2067
- /** @deprecated use `ListPromptVersionsLanguage$inboundSchema` instead. */
2068
- export const inboundSchema = ListPromptVersionsLanguage$inboundSchema;
2069
- /** @deprecated use `ListPromptVersionsLanguage$outboundSchema` instead. */
2070
- export const outboundSchema = ListPromptVersionsLanguage$outboundSchema;
2071
- }
2072
-
2073
- /** @internal */
2074
- export const ListPromptVersionsMetadata$inboundSchema: z.ZodType<
2075
- ListPromptVersionsMetadata,
2076
- z.ZodTypeDef,
2077
- unknown
2078
- > = z.object({
2079
- use_cases: z.array(ListPromptVersionsUseCases$inboundSchema).optional(),
2080
- language: z.nullable(ListPromptVersionsLanguage$inboundSchema).optional(),
2081
- }).transform((v) => {
2082
- return remap$(v, {
2083
- "use_cases": "useCases",
2084
- });
2085
- });
2086
-
2087
- /** @internal */
2088
- export type ListPromptVersionsMetadata$Outbound = {
2089
- use_cases?: Array<string> | undefined;
2090
- language?: string | null | undefined;
2091
- };
2092
-
2093
- /** @internal */
2094
- export const ListPromptVersionsMetadata$outboundSchema: z.ZodType<
2095
- ListPromptVersionsMetadata$Outbound,
2096
- z.ZodTypeDef,
2097
- ListPromptVersionsMetadata
2098
- > = z.object({
2099
- useCases: z.array(ListPromptVersionsUseCases$outboundSchema).optional(),
2100
- language: z.nullable(ListPromptVersionsLanguage$outboundSchema).optional(),
2101
- }).transform((v) => {
2102
- return remap$(v, {
2103
- useCases: "use_cases",
2104
- });
2105
- });
2106
-
2107
- /**
2108
- * @internal
2109
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2110
- */
2111
- export namespace ListPromptVersionsMetadata$ {
2112
- /** @deprecated use `ListPromptVersionsMetadata$inboundSchema` instead. */
2113
- export const inboundSchema = ListPromptVersionsMetadata$inboundSchema;
2114
- /** @deprecated use `ListPromptVersionsMetadata$outboundSchema` instead. */
2115
- export const outboundSchema = ListPromptVersionsMetadata$outboundSchema;
2116
- /** @deprecated use `ListPromptVersionsMetadata$Outbound` instead. */
2117
- export type Outbound = ListPromptVersionsMetadata$Outbound;
2118
- }
2119
-
2120
- export function listPromptVersionsMetadataToJSON(
2121
- listPromptVersionsMetadata: ListPromptVersionsMetadata,
2122
- ): string {
2123
- return JSON.stringify(
2124
- ListPromptVersionsMetadata$outboundSchema.parse(listPromptVersionsMetadata),
2125
- );
2126
- }
2127
-
2128
- export function listPromptVersionsMetadataFromJSON(
2129
- jsonString: string,
2130
- ): SafeParseResult<ListPromptVersionsMetadata, SDKValidationError> {
2131
- return safeParse(
2132
- jsonString,
2133
- (x) => ListPromptVersionsMetadata$inboundSchema.parse(JSON.parse(x)),
2134
- `Failed to parse 'ListPromptVersionsMetadata' from JSON`,
2135
- );
2136
- }
2137
-
2138
- /** @internal */
2139
- export const ListPromptVersionsData$inboundSchema: z.ZodType<
2140
- ListPromptVersionsData,
2141
- z.ZodTypeDef,
2142
- unknown
2143
- > = z.object({
2144
- _id: z.string(),
2145
- created_by_id: z.nullable(z.string()).optional(),
2146
- updated_by_id: z.nullable(z.string()).optional(),
2147
- description: z.nullable(z.string()).optional(),
2148
- prompt_config: z.lazy(() => ListPromptVersionsPromptConfig$inboundSchema),
2149
- metadata: z.lazy(() => ListPromptVersionsMetadata$inboundSchema).optional(),
2150
- timestamp: z.string(),
2151
- }).transform((v) => {
2152
- return remap$(v, {
2153
- "_id": "id",
2154
- "created_by_id": "createdById",
2155
- "updated_by_id": "updatedById",
2156
- "prompt_config": "promptConfig",
2157
- });
2158
- });
2159
-
2160
- /** @internal */
2161
- export type ListPromptVersionsData$Outbound = {
2162
- _id: string;
2163
- created_by_id?: string | null | undefined;
2164
- updated_by_id?: string | null | undefined;
2165
- description?: string | null | undefined;
2166
- prompt_config: ListPromptVersionsPromptConfig$Outbound;
2167
- metadata?: ListPromptVersionsMetadata$Outbound | undefined;
2168
- timestamp: string;
2169
- };
2170
-
2171
- /** @internal */
2172
- export const ListPromptVersionsData$outboundSchema: z.ZodType<
2173
- ListPromptVersionsData$Outbound,
2174
- z.ZodTypeDef,
2175
- ListPromptVersionsData
2176
- > = z.object({
2177
- id: z.string(),
2178
- createdById: z.nullable(z.string()).optional(),
2179
- updatedById: z.nullable(z.string()).optional(),
2180
- description: z.nullable(z.string()).optional(),
2181
- promptConfig: z.lazy(() => ListPromptVersionsPromptConfig$outboundSchema),
2182
- metadata: z.lazy(() => ListPromptVersionsMetadata$outboundSchema).optional(),
2183
- timestamp: z.string(),
2184
- }).transform((v) => {
2185
- return remap$(v, {
2186
- id: "_id",
2187
- createdById: "created_by_id",
2188
- updatedById: "updated_by_id",
2189
- promptConfig: "prompt_config",
2190
- });
2191
- });
2192
-
2193
- /**
2194
- * @internal
2195
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2196
- */
2197
- export namespace ListPromptVersionsData$ {
2198
- /** @deprecated use `ListPromptVersionsData$inboundSchema` instead. */
2199
- export const inboundSchema = ListPromptVersionsData$inboundSchema;
2200
- /** @deprecated use `ListPromptVersionsData$outboundSchema` instead. */
2201
- export const outboundSchema = ListPromptVersionsData$outboundSchema;
2202
- /** @deprecated use `ListPromptVersionsData$Outbound` instead. */
2203
- export type Outbound = ListPromptVersionsData$Outbound;
2204
- }
2205
-
2206
- export function listPromptVersionsDataToJSON(
2207
- listPromptVersionsData: ListPromptVersionsData,
2208
- ): string {
2209
- return JSON.stringify(
2210
- ListPromptVersionsData$outboundSchema.parse(listPromptVersionsData),
2211
- );
2212
- }
2213
-
2214
- export function listPromptVersionsDataFromJSON(
2215
- jsonString: string,
2216
- ): SafeParseResult<ListPromptVersionsData, SDKValidationError> {
2217
- return safeParse(
2218
- jsonString,
2219
- (x) => ListPromptVersionsData$inboundSchema.parse(JSON.parse(x)),
2220
- `Failed to parse 'ListPromptVersionsData' from JSON`,
2221
- );
2222
- }
2223
-
2224
- /** @internal */
2225
- export const ListPromptVersionsResponseBody$inboundSchema: z.ZodType<
2226
- ListPromptVersionsResponseBody,
2227
- z.ZodTypeDef,
2228
- unknown
2229
- > = z.object({
2230
- object: ListPromptVersionsObject$inboundSchema,
2231
- data: z.array(z.lazy(() => ListPromptVersionsData$inboundSchema)),
2232
- has_more: z.boolean(),
2233
- }).transform((v) => {
2234
- return remap$(v, {
2235
- "has_more": "hasMore",
2236
- });
2237
- });
2238
-
2239
- /** @internal */
2240
- export type ListPromptVersionsResponseBody$Outbound = {
2241
- object: string;
2242
- data: Array<ListPromptVersionsData$Outbound>;
2243
- has_more: boolean;
2244
- };
2245
-
2246
- /** @internal */
2247
- export const ListPromptVersionsResponseBody$outboundSchema: z.ZodType<
2248
- ListPromptVersionsResponseBody$Outbound,
2249
- z.ZodTypeDef,
2250
- ListPromptVersionsResponseBody
2251
- > = z.object({
2252
- object: ListPromptVersionsObject$outboundSchema,
2253
- data: z.array(z.lazy(() => ListPromptVersionsData$outboundSchema)),
2254
- hasMore: z.boolean(),
2255
- }).transform((v) => {
2256
- return remap$(v, {
2257
- hasMore: "has_more",
2258
- });
2259
- });
2260
-
2261
- /**
2262
- * @internal
2263
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2264
- */
2265
- export namespace ListPromptVersionsResponseBody$ {
2266
- /** @deprecated use `ListPromptVersionsResponseBody$inboundSchema` instead. */
2267
- export const inboundSchema = ListPromptVersionsResponseBody$inboundSchema;
2268
- /** @deprecated use `ListPromptVersionsResponseBody$outboundSchema` instead. */
2269
- export const outboundSchema = ListPromptVersionsResponseBody$outboundSchema;
2270
- /** @deprecated use `ListPromptVersionsResponseBody$Outbound` instead. */
2271
- export type Outbound = ListPromptVersionsResponseBody$Outbound;
2272
- }
2273
-
2274
- export function listPromptVersionsResponseBodyToJSON(
2275
- listPromptVersionsResponseBody: ListPromptVersionsResponseBody,
2276
- ): string {
2277
- return JSON.stringify(
2278
- ListPromptVersionsResponseBody$outboundSchema.parse(
2279
- listPromptVersionsResponseBody,
2280
- ),
2281
- );
2282
- }
2283
-
2284
- export function listPromptVersionsResponseBodyFromJSON(
2285
- jsonString: string,
2286
- ): SafeParseResult<ListPromptVersionsResponseBody, SDKValidationError> {
2287
- return safeParse(
2288
- jsonString,
2289
- (x) => ListPromptVersionsResponseBody$inboundSchema.parse(JSON.parse(x)),
2290
- `Failed to parse 'ListPromptVersionsResponseBody' from JSON`,
2291
- );
2292
- }