@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,2160 +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 GetPromptVersionRequest = {
13
- /**
14
- * The unique identifier of the prompt
15
- */
16
- promptId: string;
17
- /**
18
- * The unique identifier of the prompt version
19
- */
20
- versionId: string;
21
- };
22
-
23
- /**
24
- * The modality of the model
25
- */
26
- export const GetPromptVersionModelType = {
27
- Chat: "chat",
28
- Completion: "completion",
29
- Embedding: "embedding",
30
- Vision: "vision",
31
- Image: "image",
32
- Tts: "tts",
33
- Stt: "stt",
34
- Rerank: "rerank",
35
- Moderations: "moderations",
36
- } as const;
37
- /**
38
- * The modality of the model
39
- */
40
- export type GetPromptVersionModelType = ClosedEnum<
41
- typeof GetPromptVersionModelType
42
- >;
43
-
44
- /**
45
- * Only supported on `image` models.
46
- */
47
- export const GetPromptVersionFormat = {
48
- Url: "url",
49
- B64Json: "b64_json",
50
- Text: "text",
51
- JsonObject: "json_object",
52
- } as const;
53
- /**
54
- * Only supported on `image` models.
55
- */
56
- export type GetPromptVersionFormat = ClosedEnum<typeof GetPromptVersionFormat>;
57
-
58
- export const GetPromptVersionResponseFormatPromptsType = {
59
- JsonObject: "json_object",
60
- } as const;
61
- export type GetPromptVersionResponseFormatPromptsType = ClosedEnum<
62
- typeof GetPromptVersionResponseFormatPromptsType
63
- >;
64
-
65
- export type GetPromptVersionResponseFormat2 = {
66
- type: GetPromptVersionResponseFormatPromptsType;
67
- };
68
-
69
- export const GetPromptVersionResponseFormatType = {
70
- JsonSchema: "json_schema",
71
- } as const;
72
- export type GetPromptVersionResponseFormatType = ClosedEnum<
73
- typeof GetPromptVersionResponseFormatType
74
- >;
75
-
76
- export type GetPromptVersionResponseFormatJsonSchema = {
77
- name: string;
78
- strict: boolean;
79
- schema: { [k: string]: any };
80
- };
81
-
82
- export type GetPromptVersionResponseFormat1 = {
83
- type: GetPromptVersionResponseFormatType;
84
- jsonSchema: GetPromptVersionResponseFormatJsonSchema;
85
- };
86
-
87
- /**
88
- * An object specifying the format that the model must output.
89
- *
90
- * @remarks
91
- *
92
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
93
- *
94
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
95
- *
96
- * 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.
97
- */
98
- export type GetPromptVersionResponseFormat =
99
- | GetPromptVersionResponseFormat2
100
- | GetPromptVersionResponseFormat1;
101
-
102
- /**
103
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
104
- */
105
- export const GetPromptVersionPhotoRealVersion = {
106
- V1: "v1",
107
- V2: "v2",
108
- } as const;
109
- /**
110
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
111
- */
112
- export type GetPromptVersionPhotoRealVersion = ClosedEnum<
113
- typeof GetPromptVersionPhotoRealVersion
114
- >;
115
-
116
- /**
117
- * The format to return the embeddings
118
- */
119
- export const GetPromptVersionEncodingFormat = {
120
- Float: "float",
121
- Base64: "base64",
122
- } as const;
123
- /**
124
- * The format to return the embeddings
125
- */
126
- export type GetPromptVersionEncodingFormat = ClosedEnum<
127
- typeof GetPromptVersionEncodingFormat
128
- >;
129
-
130
- /**
131
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
132
- */
133
- export const GetPromptVersionReasoningEffort = {
134
- Low: "low",
135
- Medium: "medium",
136
- High: "high",
137
- } as const;
138
- /**
139
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
140
- */
141
- export type GetPromptVersionReasoningEffort = ClosedEnum<
142
- typeof GetPromptVersionReasoningEffort
143
- >;
144
-
145
- /**
146
- * Model Parameters: Not all parameters apply to every model
147
- */
148
- export type GetPromptVersionModelParameters = {
149
- /**
150
- * Only supported on `chat` and `completion` models.
151
- */
152
- temperature?: number | undefined;
153
- /**
154
- * Only supported on `chat` and `completion` models.
155
- */
156
- maxTokens?: number | undefined;
157
- /**
158
- * Only supported on `chat` and `completion` models.
159
- */
160
- topK?: number | undefined;
161
- /**
162
- * Only supported on `chat` and `completion` models.
163
- */
164
- topP?: number | undefined;
165
- /**
166
- * Only supported on `chat` and `completion` models.
167
- */
168
- frequencyPenalty?: number | undefined;
169
- /**
170
- * Only supported on `chat` and `completion` models.
171
- */
172
- presencePenalty?: number | undefined;
173
- /**
174
- * Only supported on `image` models.
175
- */
176
- numImages?: number | undefined;
177
- /**
178
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
179
- */
180
- seed?: number | undefined;
181
- /**
182
- * Only supported on `image` models.
183
- */
184
- format?: GetPromptVersionFormat | undefined;
185
- /**
186
- * Only supported on `image` models.
187
- */
188
- dimensions?: string | undefined;
189
- /**
190
- * Only supported on `image` models.
191
- */
192
- quality?: string | undefined;
193
- /**
194
- * Only supported on `image` models.
195
- */
196
- style?: string | undefined;
197
- /**
198
- * An object specifying the format that the model must output.
199
- *
200
- * @remarks
201
- *
202
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
203
- *
204
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
205
- *
206
- * 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.
207
- */
208
- responseFormat?:
209
- | GetPromptVersionResponseFormat2
210
- | GetPromptVersionResponseFormat1
211
- | null
212
- | undefined;
213
- /**
214
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
215
- */
216
- photoRealVersion?: GetPromptVersionPhotoRealVersion | undefined;
217
- /**
218
- * The format to return the embeddings
219
- */
220
- encodingFormat?: GetPromptVersionEncodingFormat | undefined;
221
- /**
222
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
223
- */
224
- reasoningEffort?: GetPromptVersionReasoningEffort | undefined;
225
- /**
226
- * 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`
227
- */
228
- budgetTokens?: number | undefined;
229
- };
230
-
231
- export const GetPromptVersionProvider = {
232
- Cohere: "cohere",
233
- Openai: "openai",
234
- Anthropic: "anthropic",
235
- Huggingface: "huggingface",
236
- Replicate: "replicate",
237
- Google: "google",
238
- GoogleAi: "google-ai",
239
- Azure: "azure",
240
- Aws: "aws",
241
- Anyscale: "anyscale",
242
- Perplexity: "perplexity",
243
- Groq: "groq",
244
- Fal: "fal",
245
- Leonardoai: "leonardoai",
246
- Nvidia: "nvidia",
247
- Jina: "jina",
248
- Togetherai: "togetherai",
249
- Elevenlabs: "elevenlabs",
250
- } as const;
251
- export type GetPromptVersionProvider = ClosedEnum<
252
- typeof GetPromptVersionProvider
253
- >;
254
-
255
- /**
256
- * The role of the prompt message
257
- */
258
- export const GetPromptVersionRole = {
259
- System: "system",
260
- Assistant: "assistant",
261
- User: "user",
262
- Exception: "exception",
263
- Tool: "tool",
264
- Prompt: "prompt",
265
- Correction: "correction",
266
- ExpectedOutput: "expected_output",
267
- } as const;
268
- /**
269
- * The role of the prompt message
270
- */
271
- export type GetPromptVersionRole = ClosedEnum<typeof GetPromptVersionRole>;
272
-
273
- /**
274
- * The type of the content part. Always `file`.
275
- */
276
- export const GetPromptVersion2PromptsResponseType = {
277
- File: "file",
278
- } as const;
279
- /**
280
- * The type of the content part. Always `file`.
281
- */
282
- export type GetPromptVersion2PromptsResponseType = ClosedEnum<
283
- typeof GetPromptVersion2PromptsResponseType
284
- >;
285
-
286
- export type GetPromptVersion2File = {
287
- /**
288
- * The base64 encoded file data, used when passing the file to the model as a string.
289
- */
290
- fileData: string;
291
- /**
292
- * The name of the file, used when passing the file to the model as a string.
293
- */
294
- filename?: string | undefined;
295
- };
296
-
297
- export type GetPromptVersion23 = {
298
- /**
299
- * The type of the content part. Always `file`.
300
- */
301
- type: GetPromptVersion2PromptsResponseType;
302
- file: GetPromptVersion2File;
303
- };
304
-
305
- export const GetPromptVersion2PromptsType = {
306
- ImageUrl: "image_url",
307
- } as const;
308
- export type GetPromptVersion2PromptsType = ClosedEnum<
309
- typeof GetPromptVersion2PromptsType
310
- >;
311
-
312
- export type GetPromptVersion2ImageUrl = {
313
- /**
314
- * The orq.ai id of the image
315
- */
316
- id?: string | undefined;
317
- /**
318
- * Either a URL of the image or the base64 encoded data URI.
319
- */
320
- url: string;
321
- /**
322
- * Specifies the detail level of the image. Currently only supported with OpenAI models
323
- */
324
- detail?: string | undefined;
325
- };
326
-
327
- /**
328
- * The image part of the prompt message. Only supported with vision models.
329
- */
330
- export type GetPromptVersion22 = {
331
- type: GetPromptVersion2PromptsType;
332
- imageUrl: GetPromptVersion2ImageUrl;
333
- };
334
-
335
- export const GetPromptVersion2Type = {
336
- Text: "text",
337
- } as const;
338
- export type GetPromptVersion2Type = ClosedEnum<typeof GetPromptVersion2Type>;
339
-
340
- /**
341
- * Text content part of a prompt message
342
- */
343
- export type GetPromptVersion21 = {
344
- type: GetPromptVersion2Type;
345
- text: string;
346
- };
347
-
348
- export type GetPromptVersionContent2 =
349
- | GetPromptVersion21
350
- | GetPromptVersion22
351
- | GetPromptVersion23;
352
-
353
- /**
354
- * 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.
355
- */
356
- export type GetPromptVersionContent =
357
- | string
358
- | Array<GetPromptVersion21 | GetPromptVersion22 | GetPromptVersion23>;
359
-
360
- export const GetPromptVersionType = {
361
- Function: "function",
362
- } as const;
363
- export type GetPromptVersionType = ClosedEnum<typeof GetPromptVersionType>;
364
-
365
- export type GetPromptVersionFunction = {
366
- name: string;
367
- /**
368
- * JSON string arguments for the functions
369
- */
370
- arguments: string;
371
- };
372
-
373
- export type GetPromptVersionToolCalls = {
374
- id?: string | undefined;
375
- index?: number | undefined;
376
- type: GetPromptVersionType;
377
- function: GetPromptVersionFunction;
378
- };
379
-
380
- export type GetPromptVersionMessages = {
381
- /**
382
- * The role of the prompt message
383
- */
384
- role: GetPromptVersionRole;
385
- /**
386
- * 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.
387
- */
388
- content:
389
- | string
390
- | Array<GetPromptVersion21 | GetPromptVersion22 | GetPromptVersion23>;
391
- toolCalls?: Array<GetPromptVersionToolCalls> | undefined;
392
- toolCallId?: string | undefined;
393
- };
394
-
395
- /**
396
- * A list of messages compatible with the openAI schema
397
- */
398
- export type GetPromptVersionPromptConfig = {
399
- stream?: boolean | undefined;
400
- model?: string | undefined;
401
- /**
402
- * The id of the resource
403
- */
404
- modelDbId?: string | undefined;
405
- /**
406
- * The modality of the model
407
- */
408
- modelType?: GetPromptVersionModelType | undefined;
409
- /**
410
- * Model Parameters: Not all parameters apply to every model
411
- */
412
- modelParameters?: GetPromptVersionModelParameters | undefined;
413
- provider?: GetPromptVersionProvider | undefined;
414
- /**
415
- * The id of the resource
416
- */
417
- integrationId?: string | null | undefined;
418
- version?: string | undefined;
419
- messages: Array<GetPromptVersionMessages>;
420
- };
421
-
422
- export const GetPromptVersionUseCases = {
423
- AgentsSimulations: "Agents simulations",
424
- Agents: "Agents",
425
- APIInteraction: "API interaction",
426
- AutonomousAgents: "Autonomous Agents",
427
- Chatbots: "Chatbots",
428
- Classification: "Classification",
429
- CodeUnderstanding: "Code understanding",
430
- CodeWriting: "Code writing",
431
- Conversation: "Conversation",
432
- DocumentsQA: "Documents QA",
433
- Evaluation: "Evaluation",
434
- Extraction: "Extraction",
435
- MultiModal: "Multi-modal",
436
- SelfChecking: "Self-checking",
437
- SentimentAnalysis: "Sentiment analysis",
438
- Sql: "SQL",
439
- Summarization: "Summarization",
440
- Tagging: "Tagging",
441
- TranslationDocument: "Translation (document)",
442
- TranslationSentences: "Translation (sentences)",
443
- } as const;
444
- export type GetPromptVersionUseCases = ClosedEnum<
445
- typeof GetPromptVersionUseCases
446
- >;
447
-
448
- /**
449
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
450
- */
451
- export const GetPromptVersionLanguage = {
452
- Chinese: "Chinese",
453
- Dutch: "Dutch",
454
- English: "English",
455
- French: "French",
456
- German: "German",
457
- Russian: "Russian",
458
- Spanish: "Spanish",
459
- } as const;
460
- /**
461
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
462
- */
463
- export type GetPromptVersionLanguage = ClosedEnum<
464
- typeof GetPromptVersionLanguage
465
- >;
466
-
467
- export type GetPromptVersionMetadata = {
468
- /**
469
- * 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
470
- */
471
- useCases?: Array<GetPromptVersionUseCases> | undefined;
472
- /**
473
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
474
- */
475
- language?: GetPromptVersionLanguage | null | undefined;
476
- };
477
-
478
- /**
479
- * Prompt version retrieved successfully.
480
- */
481
- export type GetPromptVersionResponseBody = {
482
- id: string;
483
- createdById?: string | null | undefined;
484
- updatedById?: string | null | undefined;
485
- /**
486
- * 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
487
- */
488
- description?: string | null | undefined;
489
- /**
490
- * A list of messages compatible with the openAI schema
491
- */
492
- promptConfig: GetPromptVersionPromptConfig;
493
- metadata?: GetPromptVersionMetadata | undefined;
494
- timestamp: string;
495
- };
496
-
497
- /** @internal */
498
- export const GetPromptVersionRequest$inboundSchema: z.ZodType<
499
- GetPromptVersionRequest,
500
- z.ZodTypeDef,
501
- unknown
502
- > = z.object({
503
- prompt_id: z.string(),
504
- version_id: z.string(),
505
- }).transform((v) => {
506
- return remap$(v, {
507
- "prompt_id": "promptId",
508
- "version_id": "versionId",
509
- });
510
- });
511
-
512
- /** @internal */
513
- export type GetPromptVersionRequest$Outbound = {
514
- prompt_id: string;
515
- version_id: string;
516
- };
517
-
518
- /** @internal */
519
- export const GetPromptVersionRequest$outboundSchema: z.ZodType<
520
- GetPromptVersionRequest$Outbound,
521
- z.ZodTypeDef,
522
- GetPromptVersionRequest
523
- > = z.object({
524
- promptId: z.string(),
525
- versionId: z.string(),
526
- }).transform((v) => {
527
- return remap$(v, {
528
- promptId: "prompt_id",
529
- versionId: "version_id",
530
- });
531
- });
532
-
533
- /**
534
- * @internal
535
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
536
- */
537
- export namespace GetPromptVersionRequest$ {
538
- /** @deprecated use `GetPromptVersionRequest$inboundSchema` instead. */
539
- export const inboundSchema = GetPromptVersionRequest$inboundSchema;
540
- /** @deprecated use `GetPromptVersionRequest$outboundSchema` instead. */
541
- export const outboundSchema = GetPromptVersionRequest$outboundSchema;
542
- /** @deprecated use `GetPromptVersionRequest$Outbound` instead. */
543
- export type Outbound = GetPromptVersionRequest$Outbound;
544
- }
545
-
546
- export function getPromptVersionRequestToJSON(
547
- getPromptVersionRequest: GetPromptVersionRequest,
548
- ): string {
549
- return JSON.stringify(
550
- GetPromptVersionRequest$outboundSchema.parse(getPromptVersionRequest),
551
- );
552
- }
553
-
554
- export function getPromptVersionRequestFromJSON(
555
- jsonString: string,
556
- ): SafeParseResult<GetPromptVersionRequest, SDKValidationError> {
557
- return safeParse(
558
- jsonString,
559
- (x) => GetPromptVersionRequest$inboundSchema.parse(JSON.parse(x)),
560
- `Failed to parse 'GetPromptVersionRequest' from JSON`,
561
- );
562
- }
563
-
564
- /** @internal */
565
- export const GetPromptVersionModelType$inboundSchema: z.ZodNativeEnum<
566
- typeof GetPromptVersionModelType
567
- > = z.nativeEnum(GetPromptVersionModelType);
568
-
569
- /** @internal */
570
- export const GetPromptVersionModelType$outboundSchema: z.ZodNativeEnum<
571
- typeof GetPromptVersionModelType
572
- > = GetPromptVersionModelType$inboundSchema;
573
-
574
- /**
575
- * @internal
576
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
577
- */
578
- export namespace GetPromptVersionModelType$ {
579
- /** @deprecated use `GetPromptVersionModelType$inboundSchema` instead. */
580
- export const inboundSchema = GetPromptVersionModelType$inboundSchema;
581
- /** @deprecated use `GetPromptVersionModelType$outboundSchema` instead. */
582
- export const outboundSchema = GetPromptVersionModelType$outboundSchema;
583
- }
584
-
585
- /** @internal */
586
- export const GetPromptVersionFormat$inboundSchema: z.ZodNativeEnum<
587
- typeof GetPromptVersionFormat
588
- > = z.nativeEnum(GetPromptVersionFormat);
589
-
590
- /** @internal */
591
- export const GetPromptVersionFormat$outboundSchema: z.ZodNativeEnum<
592
- typeof GetPromptVersionFormat
593
- > = GetPromptVersionFormat$inboundSchema;
594
-
595
- /**
596
- * @internal
597
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
598
- */
599
- export namespace GetPromptVersionFormat$ {
600
- /** @deprecated use `GetPromptVersionFormat$inboundSchema` instead. */
601
- export const inboundSchema = GetPromptVersionFormat$inboundSchema;
602
- /** @deprecated use `GetPromptVersionFormat$outboundSchema` instead. */
603
- export const outboundSchema = GetPromptVersionFormat$outboundSchema;
604
- }
605
-
606
- /** @internal */
607
- export const GetPromptVersionResponseFormatPromptsType$inboundSchema:
608
- z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsType> = z
609
- .nativeEnum(GetPromptVersionResponseFormatPromptsType);
610
-
611
- /** @internal */
612
- export const GetPromptVersionResponseFormatPromptsType$outboundSchema:
613
- z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsType> =
614
- GetPromptVersionResponseFormatPromptsType$inboundSchema;
615
-
616
- /**
617
- * @internal
618
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
619
- */
620
- export namespace GetPromptVersionResponseFormatPromptsType$ {
621
- /** @deprecated use `GetPromptVersionResponseFormatPromptsType$inboundSchema` instead. */
622
- export const inboundSchema =
623
- GetPromptVersionResponseFormatPromptsType$inboundSchema;
624
- /** @deprecated use `GetPromptVersionResponseFormatPromptsType$outboundSchema` instead. */
625
- export const outboundSchema =
626
- GetPromptVersionResponseFormatPromptsType$outboundSchema;
627
- }
628
-
629
- /** @internal */
630
- export const GetPromptVersionResponseFormat2$inboundSchema: z.ZodType<
631
- GetPromptVersionResponseFormat2,
632
- z.ZodTypeDef,
633
- unknown
634
- > = z.object({
635
- type: GetPromptVersionResponseFormatPromptsType$inboundSchema,
636
- });
637
-
638
- /** @internal */
639
- export type GetPromptVersionResponseFormat2$Outbound = {
640
- type: string;
641
- };
642
-
643
- /** @internal */
644
- export const GetPromptVersionResponseFormat2$outboundSchema: z.ZodType<
645
- GetPromptVersionResponseFormat2$Outbound,
646
- z.ZodTypeDef,
647
- GetPromptVersionResponseFormat2
648
- > = z.object({
649
- type: GetPromptVersionResponseFormatPromptsType$outboundSchema,
650
- });
651
-
652
- /**
653
- * @internal
654
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
655
- */
656
- export namespace GetPromptVersionResponseFormat2$ {
657
- /** @deprecated use `GetPromptVersionResponseFormat2$inboundSchema` instead. */
658
- export const inboundSchema = GetPromptVersionResponseFormat2$inboundSchema;
659
- /** @deprecated use `GetPromptVersionResponseFormat2$outboundSchema` instead. */
660
- export const outboundSchema = GetPromptVersionResponseFormat2$outboundSchema;
661
- /** @deprecated use `GetPromptVersionResponseFormat2$Outbound` instead. */
662
- export type Outbound = GetPromptVersionResponseFormat2$Outbound;
663
- }
664
-
665
- export function getPromptVersionResponseFormat2ToJSON(
666
- getPromptVersionResponseFormat2: GetPromptVersionResponseFormat2,
667
- ): string {
668
- return JSON.stringify(
669
- GetPromptVersionResponseFormat2$outboundSchema.parse(
670
- getPromptVersionResponseFormat2,
671
- ),
672
- );
673
- }
674
-
675
- export function getPromptVersionResponseFormat2FromJSON(
676
- jsonString: string,
677
- ): SafeParseResult<GetPromptVersionResponseFormat2, SDKValidationError> {
678
- return safeParse(
679
- jsonString,
680
- (x) => GetPromptVersionResponseFormat2$inboundSchema.parse(JSON.parse(x)),
681
- `Failed to parse 'GetPromptVersionResponseFormat2' from JSON`,
682
- );
683
- }
684
-
685
- /** @internal */
686
- export const GetPromptVersionResponseFormatType$inboundSchema: z.ZodNativeEnum<
687
- typeof GetPromptVersionResponseFormatType
688
- > = z.nativeEnum(GetPromptVersionResponseFormatType);
689
-
690
- /** @internal */
691
- export const GetPromptVersionResponseFormatType$outboundSchema: z.ZodNativeEnum<
692
- typeof GetPromptVersionResponseFormatType
693
- > = GetPromptVersionResponseFormatType$inboundSchema;
694
-
695
- /**
696
- * @internal
697
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
698
- */
699
- export namespace GetPromptVersionResponseFormatType$ {
700
- /** @deprecated use `GetPromptVersionResponseFormatType$inboundSchema` instead. */
701
- export const inboundSchema = GetPromptVersionResponseFormatType$inboundSchema;
702
- /** @deprecated use `GetPromptVersionResponseFormatType$outboundSchema` instead. */
703
- export const outboundSchema =
704
- GetPromptVersionResponseFormatType$outboundSchema;
705
- }
706
-
707
- /** @internal */
708
- export const GetPromptVersionResponseFormatJsonSchema$inboundSchema: z.ZodType<
709
- GetPromptVersionResponseFormatJsonSchema,
710
- z.ZodTypeDef,
711
- unknown
712
- > = z.object({
713
- name: z.string(),
714
- strict: z.boolean(),
715
- schema: z.record(z.any()),
716
- });
717
-
718
- /** @internal */
719
- export type GetPromptVersionResponseFormatJsonSchema$Outbound = {
720
- name: string;
721
- strict: boolean;
722
- schema: { [k: string]: any };
723
- };
724
-
725
- /** @internal */
726
- export const GetPromptVersionResponseFormatJsonSchema$outboundSchema: z.ZodType<
727
- GetPromptVersionResponseFormatJsonSchema$Outbound,
728
- z.ZodTypeDef,
729
- GetPromptVersionResponseFormatJsonSchema
730
- > = z.object({
731
- name: z.string(),
732
- strict: z.boolean(),
733
- schema: z.record(z.any()),
734
- });
735
-
736
- /**
737
- * @internal
738
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
739
- */
740
- export namespace GetPromptVersionResponseFormatJsonSchema$ {
741
- /** @deprecated use `GetPromptVersionResponseFormatJsonSchema$inboundSchema` instead. */
742
- export const inboundSchema =
743
- GetPromptVersionResponseFormatJsonSchema$inboundSchema;
744
- /** @deprecated use `GetPromptVersionResponseFormatJsonSchema$outboundSchema` instead. */
745
- export const outboundSchema =
746
- GetPromptVersionResponseFormatJsonSchema$outboundSchema;
747
- /** @deprecated use `GetPromptVersionResponseFormatJsonSchema$Outbound` instead. */
748
- export type Outbound = GetPromptVersionResponseFormatJsonSchema$Outbound;
749
- }
750
-
751
- export function getPromptVersionResponseFormatJsonSchemaToJSON(
752
- getPromptVersionResponseFormatJsonSchema:
753
- GetPromptVersionResponseFormatJsonSchema,
754
- ): string {
755
- return JSON.stringify(
756
- GetPromptVersionResponseFormatJsonSchema$outboundSchema.parse(
757
- getPromptVersionResponseFormatJsonSchema,
758
- ),
759
- );
760
- }
761
-
762
- export function getPromptVersionResponseFormatJsonSchemaFromJSON(
763
- jsonString: string,
764
- ): SafeParseResult<
765
- GetPromptVersionResponseFormatJsonSchema,
766
- SDKValidationError
767
- > {
768
- return safeParse(
769
- jsonString,
770
- (x) =>
771
- GetPromptVersionResponseFormatJsonSchema$inboundSchema.parse(
772
- JSON.parse(x),
773
- ),
774
- `Failed to parse 'GetPromptVersionResponseFormatJsonSchema' from JSON`,
775
- );
776
- }
777
-
778
- /** @internal */
779
- export const GetPromptVersionResponseFormat1$inboundSchema: z.ZodType<
780
- GetPromptVersionResponseFormat1,
781
- z.ZodTypeDef,
782
- unknown
783
- > = z.object({
784
- type: GetPromptVersionResponseFormatType$inboundSchema,
785
- json_schema: z.lazy(() =>
786
- GetPromptVersionResponseFormatJsonSchema$inboundSchema
787
- ),
788
- }).transform((v) => {
789
- return remap$(v, {
790
- "json_schema": "jsonSchema",
791
- });
792
- });
793
-
794
- /** @internal */
795
- export type GetPromptVersionResponseFormat1$Outbound = {
796
- type: string;
797
- json_schema: GetPromptVersionResponseFormatJsonSchema$Outbound;
798
- };
799
-
800
- /** @internal */
801
- export const GetPromptVersionResponseFormat1$outboundSchema: z.ZodType<
802
- GetPromptVersionResponseFormat1$Outbound,
803
- z.ZodTypeDef,
804
- GetPromptVersionResponseFormat1
805
- > = z.object({
806
- type: GetPromptVersionResponseFormatType$outboundSchema,
807
- jsonSchema: z.lazy(() =>
808
- GetPromptVersionResponseFormatJsonSchema$outboundSchema
809
- ),
810
- }).transform((v) => {
811
- return remap$(v, {
812
- jsonSchema: "json_schema",
813
- });
814
- });
815
-
816
- /**
817
- * @internal
818
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
819
- */
820
- export namespace GetPromptVersionResponseFormat1$ {
821
- /** @deprecated use `GetPromptVersionResponseFormat1$inboundSchema` instead. */
822
- export const inboundSchema = GetPromptVersionResponseFormat1$inboundSchema;
823
- /** @deprecated use `GetPromptVersionResponseFormat1$outboundSchema` instead. */
824
- export const outboundSchema = GetPromptVersionResponseFormat1$outboundSchema;
825
- /** @deprecated use `GetPromptVersionResponseFormat1$Outbound` instead. */
826
- export type Outbound = GetPromptVersionResponseFormat1$Outbound;
827
- }
828
-
829
- export function getPromptVersionResponseFormat1ToJSON(
830
- getPromptVersionResponseFormat1: GetPromptVersionResponseFormat1,
831
- ): string {
832
- return JSON.stringify(
833
- GetPromptVersionResponseFormat1$outboundSchema.parse(
834
- getPromptVersionResponseFormat1,
835
- ),
836
- );
837
- }
838
-
839
- export function getPromptVersionResponseFormat1FromJSON(
840
- jsonString: string,
841
- ): SafeParseResult<GetPromptVersionResponseFormat1, SDKValidationError> {
842
- return safeParse(
843
- jsonString,
844
- (x) => GetPromptVersionResponseFormat1$inboundSchema.parse(JSON.parse(x)),
845
- `Failed to parse 'GetPromptVersionResponseFormat1' from JSON`,
846
- );
847
- }
848
-
849
- /** @internal */
850
- export const GetPromptVersionResponseFormat$inboundSchema: z.ZodType<
851
- GetPromptVersionResponseFormat,
852
- z.ZodTypeDef,
853
- unknown
854
- > = z.union([
855
- z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
856
- z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
857
- ]);
858
-
859
- /** @internal */
860
- export type GetPromptVersionResponseFormat$Outbound =
861
- | GetPromptVersionResponseFormat2$Outbound
862
- | GetPromptVersionResponseFormat1$Outbound;
863
-
864
- /** @internal */
865
- export const GetPromptVersionResponseFormat$outboundSchema: z.ZodType<
866
- GetPromptVersionResponseFormat$Outbound,
867
- z.ZodTypeDef,
868
- GetPromptVersionResponseFormat
869
- > = z.union([
870
- z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
871
- z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
872
- ]);
873
-
874
- /**
875
- * @internal
876
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
877
- */
878
- export namespace GetPromptVersionResponseFormat$ {
879
- /** @deprecated use `GetPromptVersionResponseFormat$inboundSchema` instead. */
880
- export const inboundSchema = GetPromptVersionResponseFormat$inboundSchema;
881
- /** @deprecated use `GetPromptVersionResponseFormat$outboundSchema` instead. */
882
- export const outboundSchema = GetPromptVersionResponseFormat$outboundSchema;
883
- /** @deprecated use `GetPromptVersionResponseFormat$Outbound` instead. */
884
- export type Outbound = GetPromptVersionResponseFormat$Outbound;
885
- }
886
-
887
- export function getPromptVersionResponseFormatToJSON(
888
- getPromptVersionResponseFormat: GetPromptVersionResponseFormat,
889
- ): string {
890
- return JSON.stringify(
891
- GetPromptVersionResponseFormat$outboundSchema.parse(
892
- getPromptVersionResponseFormat,
893
- ),
894
- );
895
- }
896
-
897
- export function getPromptVersionResponseFormatFromJSON(
898
- jsonString: string,
899
- ): SafeParseResult<GetPromptVersionResponseFormat, SDKValidationError> {
900
- return safeParse(
901
- jsonString,
902
- (x) => GetPromptVersionResponseFormat$inboundSchema.parse(JSON.parse(x)),
903
- `Failed to parse 'GetPromptVersionResponseFormat' from JSON`,
904
- );
905
- }
906
-
907
- /** @internal */
908
- export const GetPromptVersionPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
909
- typeof GetPromptVersionPhotoRealVersion
910
- > = z.nativeEnum(GetPromptVersionPhotoRealVersion);
911
-
912
- /** @internal */
913
- export const GetPromptVersionPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
914
- typeof GetPromptVersionPhotoRealVersion
915
- > = GetPromptVersionPhotoRealVersion$inboundSchema;
916
-
917
- /**
918
- * @internal
919
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
920
- */
921
- export namespace GetPromptVersionPhotoRealVersion$ {
922
- /** @deprecated use `GetPromptVersionPhotoRealVersion$inboundSchema` instead. */
923
- export const inboundSchema = GetPromptVersionPhotoRealVersion$inboundSchema;
924
- /** @deprecated use `GetPromptVersionPhotoRealVersion$outboundSchema` instead. */
925
- export const outboundSchema = GetPromptVersionPhotoRealVersion$outboundSchema;
926
- }
927
-
928
- /** @internal */
929
- export const GetPromptVersionEncodingFormat$inboundSchema: z.ZodNativeEnum<
930
- typeof GetPromptVersionEncodingFormat
931
- > = z.nativeEnum(GetPromptVersionEncodingFormat);
932
-
933
- /** @internal */
934
- export const GetPromptVersionEncodingFormat$outboundSchema: z.ZodNativeEnum<
935
- typeof GetPromptVersionEncodingFormat
936
- > = GetPromptVersionEncodingFormat$inboundSchema;
937
-
938
- /**
939
- * @internal
940
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
941
- */
942
- export namespace GetPromptVersionEncodingFormat$ {
943
- /** @deprecated use `GetPromptVersionEncodingFormat$inboundSchema` instead. */
944
- export const inboundSchema = GetPromptVersionEncodingFormat$inboundSchema;
945
- /** @deprecated use `GetPromptVersionEncodingFormat$outboundSchema` instead. */
946
- export const outboundSchema = GetPromptVersionEncodingFormat$outboundSchema;
947
- }
948
-
949
- /** @internal */
950
- export const GetPromptVersionReasoningEffort$inboundSchema: z.ZodNativeEnum<
951
- typeof GetPromptVersionReasoningEffort
952
- > = z.nativeEnum(GetPromptVersionReasoningEffort);
953
-
954
- /** @internal */
955
- export const GetPromptVersionReasoningEffort$outboundSchema: z.ZodNativeEnum<
956
- typeof GetPromptVersionReasoningEffort
957
- > = GetPromptVersionReasoningEffort$inboundSchema;
958
-
959
- /**
960
- * @internal
961
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
962
- */
963
- export namespace GetPromptVersionReasoningEffort$ {
964
- /** @deprecated use `GetPromptVersionReasoningEffort$inboundSchema` instead. */
965
- export const inboundSchema = GetPromptVersionReasoningEffort$inboundSchema;
966
- /** @deprecated use `GetPromptVersionReasoningEffort$outboundSchema` instead. */
967
- export const outboundSchema = GetPromptVersionReasoningEffort$outboundSchema;
968
- }
969
-
970
- /** @internal */
971
- export const GetPromptVersionModelParameters$inboundSchema: z.ZodType<
972
- GetPromptVersionModelParameters,
973
- z.ZodTypeDef,
974
- unknown
975
- > = z.object({
976
- temperature: z.number().optional(),
977
- maxTokens: z.number().optional(),
978
- topK: z.number().optional(),
979
- topP: z.number().optional(),
980
- frequencyPenalty: z.number().optional(),
981
- presencePenalty: z.number().optional(),
982
- numImages: z.number().optional(),
983
- seed: z.number().optional(),
984
- format: GetPromptVersionFormat$inboundSchema.optional(),
985
- dimensions: z.string().optional(),
986
- quality: z.string().optional(),
987
- style: z.string().optional(),
988
- responseFormat: z.nullable(
989
- z.union([
990
- z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
991
- z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
992
- ]),
993
- ).optional(),
994
- photoRealVersion: GetPromptVersionPhotoRealVersion$inboundSchema.optional(),
995
- encoding_format: GetPromptVersionEncodingFormat$inboundSchema.optional(),
996
- reasoningEffort: GetPromptVersionReasoningEffort$inboundSchema.optional(),
997
- budgetTokens: z.number().optional(),
998
- }).transform((v) => {
999
- return remap$(v, {
1000
- "encoding_format": "encodingFormat",
1001
- });
1002
- });
1003
-
1004
- /** @internal */
1005
- export type GetPromptVersionModelParameters$Outbound = {
1006
- temperature?: number | undefined;
1007
- maxTokens?: number | undefined;
1008
- topK?: number | undefined;
1009
- topP?: number | undefined;
1010
- frequencyPenalty?: number | undefined;
1011
- presencePenalty?: number | undefined;
1012
- numImages?: number | undefined;
1013
- seed?: number | undefined;
1014
- format?: string | undefined;
1015
- dimensions?: string | undefined;
1016
- quality?: string | undefined;
1017
- style?: string | undefined;
1018
- responseFormat?:
1019
- | GetPromptVersionResponseFormat2$Outbound
1020
- | GetPromptVersionResponseFormat1$Outbound
1021
- | null
1022
- | undefined;
1023
- photoRealVersion?: string | undefined;
1024
- encoding_format?: string | undefined;
1025
- reasoningEffort?: string | undefined;
1026
- budgetTokens?: number | undefined;
1027
- };
1028
-
1029
- /** @internal */
1030
- export const GetPromptVersionModelParameters$outboundSchema: z.ZodType<
1031
- GetPromptVersionModelParameters$Outbound,
1032
- z.ZodTypeDef,
1033
- GetPromptVersionModelParameters
1034
- > = z.object({
1035
- temperature: z.number().optional(),
1036
- maxTokens: z.number().optional(),
1037
- topK: z.number().optional(),
1038
- topP: z.number().optional(),
1039
- frequencyPenalty: z.number().optional(),
1040
- presencePenalty: z.number().optional(),
1041
- numImages: z.number().optional(),
1042
- seed: z.number().optional(),
1043
- format: GetPromptVersionFormat$outboundSchema.optional(),
1044
- dimensions: z.string().optional(),
1045
- quality: z.string().optional(),
1046
- style: z.string().optional(),
1047
- responseFormat: z.nullable(
1048
- z.union([
1049
- z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
1050
- z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
1051
- ]),
1052
- ).optional(),
1053
- photoRealVersion: GetPromptVersionPhotoRealVersion$outboundSchema.optional(),
1054
- encodingFormat: GetPromptVersionEncodingFormat$outboundSchema.optional(),
1055
- reasoningEffort: GetPromptVersionReasoningEffort$outboundSchema.optional(),
1056
- budgetTokens: z.number().optional(),
1057
- }).transform((v) => {
1058
- return remap$(v, {
1059
- encodingFormat: "encoding_format",
1060
- });
1061
- });
1062
-
1063
- /**
1064
- * @internal
1065
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1066
- */
1067
- export namespace GetPromptVersionModelParameters$ {
1068
- /** @deprecated use `GetPromptVersionModelParameters$inboundSchema` instead. */
1069
- export const inboundSchema = GetPromptVersionModelParameters$inboundSchema;
1070
- /** @deprecated use `GetPromptVersionModelParameters$outboundSchema` instead. */
1071
- export const outboundSchema = GetPromptVersionModelParameters$outboundSchema;
1072
- /** @deprecated use `GetPromptVersionModelParameters$Outbound` instead. */
1073
- export type Outbound = GetPromptVersionModelParameters$Outbound;
1074
- }
1075
-
1076
- export function getPromptVersionModelParametersToJSON(
1077
- getPromptVersionModelParameters: GetPromptVersionModelParameters,
1078
- ): string {
1079
- return JSON.stringify(
1080
- GetPromptVersionModelParameters$outboundSchema.parse(
1081
- getPromptVersionModelParameters,
1082
- ),
1083
- );
1084
- }
1085
-
1086
- export function getPromptVersionModelParametersFromJSON(
1087
- jsonString: string,
1088
- ): SafeParseResult<GetPromptVersionModelParameters, SDKValidationError> {
1089
- return safeParse(
1090
- jsonString,
1091
- (x) => GetPromptVersionModelParameters$inboundSchema.parse(JSON.parse(x)),
1092
- `Failed to parse 'GetPromptVersionModelParameters' from JSON`,
1093
- );
1094
- }
1095
-
1096
- /** @internal */
1097
- export const GetPromptVersionProvider$inboundSchema: z.ZodNativeEnum<
1098
- typeof GetPromptVersionProvider
1099
- > = z.nativeEnum(GetPromptVersionProvider);
1100
-
1101
- /** @internal */
1102
- export const GetPromptVersionProvider$outboundSchema: z.ZodNativeEnum<
1103
- typeof GetPromptVersionProvider
1104
- > = GetPromptVersionProvider$inboundSchema;
1105
-
1106
- /**
1107
- * @internal
1108
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1109
- */
1110
- export namespace GetPromptVersionProvider$ {
1111
- /** @deprecated use `GetPromptVersionProvider$inboundSchema` instead. */
1112
- export const inboundSchema = GetPromptVersionProvider$inboundSchema;
1113
- /** @deprecated use `GetPromptVersionProvider$outboundSchema` instead. */
1114
- export const outboundSchema = GetPromptVersionProvider$outboundSchema;
1115
- }
1116
-
1117
- /** @internal */
1118
- export const GetPromptVersionRole$inboundSchema: z.ZodNativeEnum<
1119
- typeof GetPromptVersionRole
1120
- > = z.nativeEnum(GetPromptVersionRole);
1121
-
1122
- /** @internal */
1123
- export const GetPromptVersionRole$outboundSchema: z.ZodNativeEnum<
1124
- typeof GetPromptVersionRole
1125
- > = GetPromptVersionRole$inboundSchema;
1126
-
1127
- /**
1128
- * @internal
1129
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1130
- */
1131
- export namespace GetPromptVersionRole$ {
1132
- /** @deprecated use `GetPromptVersionRole$inboundSchema` instead. */
1133
- export const inboundSchema = GetPromptVersionRole$inboundSchema;
1134
- /** @deprecated use `GetPromptVersionRole$outboundSchema` instead. */
1135
- export const outboundSchema = GetPromptVersionRole$outboundSchema;
1136
- }
1137
-
1138
- /** @internal */
1139
- export const GetPromptVersion2PromptsResponseType$inboundSchema:
1140
- z.ZodNativeEnum<typeof GetPromptVersion2PromptsResponseType> = z.nativeEnum(
1141
- GetPromptVersion2PromptsResponseType,
1142
- );
1143
-
1144
- /** @internal */
1145
- export const GetPromptVersion2PromptsResponseType$outboundSchema:
1146
- z.ZodNativeEnum<typeof GetPromptVersion2PromptsResponseType> =
1147
- GetPromptVersion2PromptsResponseType$inboundSchema;
1148
-
1149
- /**
1150
- * @internal
1151
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1152
- */
1153
- export namespace GetPromptVersion2PromptsResponseType$ {
1154
- /** @deprecated use `GetPromptVersion2PromptsResponseType$inboundSchema` instead. */
1155
- export const inboundSchema =
1156
- GetPromptVersion2PromptsResponseType$inboundSchema;
1157
- /** @deprecated use `GetPromptVersion2PromptsResponseType$outboundSchema` instead. */
1158
- export const outboundSchema =
1159
- GetPromptVersion2PromptsResponseType$outboundSchema;
1160
- }
1161
-
1162
- /** @internal */
1163
- export const GetPromptVersion2File$inboundSchema: z.ZodType<
1164
- GetPromptVersion2File,
1165
- z.ZodTypeDef,
1166
- unknown
1167
- > = z.object({
1168
- file_data: z.string(),
1169
- filename: z.string().optional(),
1170
- }).transform((v) => {
1171
- return remap$(v, {
1172
- "file_data": "fileData",
1173
- });
1174
- });
1175
-
1176
- /** @internal */
1177
- export type GetPromptVersion2File$Outbound = {
1178
- file_data: string;
1179
- filename?: string | undefined;
1180
- };
1181
-
1182
- /** @internal */
1183
- export const GetPromptVersion2File$outboundSchema: z.ZodType<
1184
- GetPromptVersion2File$Outbound,
1185
- z.ZodTypeDef,
1186
- GetPromptVersion2File
1187
- > = z.object({
1188
- fileData: z.string(),
1189
- filename: z.string().optional(),
1190
- }).transform((v) => {
1191
- return remap$(v, {
1192
- fileData: "file_data",
1193
- });
1194
- });
1195
-
1196
- /**
1197
- * @internal
1198
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1199
- */
1200
- export namespace GetPromptVersion2File$ {
1201
- /** @deprecated use `GetPromptVersion2File$inboundSchema` instead. */
1202
- export const inboundSchema = GetPromptVersion2File$inboundSchema;
1203
- /** @deprecated use `GetPromptVersion2File$outboundSchema` instead. */
1204
- export const outboundSchema = GetPromptVersion2File$outboundSchema;
1205
- /** @deprecated use `GetPromptVersion2File$Outbound` instead. */
1206
- export type Outbound = GetPromptVersion2File$Outbound;
1207
- }
1208
-
1209
- export function getPromptVersion2FileToJSON(
1210
- getPromptVersion2File: GetPromptVersion2File,
1211
- ): string {
1212
- return JSON.stringify(
1213
- GetPromptVersion2File$outboundSchema.parse(getPromptVersion2File),
1214
- );
1215
- }
1216
-
1217
- export function getPromptVersion2FileFromJSON(
1218
- jsonString: string,
1219
- ): SafeParseResult<GetPromptVersion2File, SDKValidationError> {
1220
- return safeParse(
1221
- jsonString,
1222
- (x) => GetPromptVersion2File$inboundSchema.parse(JSON.parse(x)),
1223
- `Failed to parse 'GetPromptVersion2File' from JSON`,
1224
- );
1225
- }
1226
-
1227
- /** @internal */
1228
- export const GetPromptVersion23$inboundSchema: z.ZodType<
1229
- GetPromptVersion23,
1230
- z.ZodTypeDef,
1231
- unknown
1232
- > = z.object({
1233
- type: GetPromptVersion2PromptsResponseType$inboundSchema,
1234
- file: z.lazy(() => GetPromptVersion2File$inboundSchema),
1235
- });
1236
-
1237
- /** @internal */
1238
- export type GetPromptVersion23$Outbound = {
1239
- type: string;
1240
- file: GetPromptVersion2File$Outbound;
1241
- };
1242
-
1243
- /** @internal */
1244
- export const GetPromptVersion23$outboundSchema: z.ZodType<
1245
- GetPromptVersion23$Outbound,
1246
- z.ZodTypeDef,
1247
- GetPromptVersion23
1248
- > = z.object({
1249
- type: GetPromptVersion2PromptsResponseType$outboundSchema,
1250
- file: z.lazy(() => GetPromptVersion2File$outboundSchema),
1251
- });
1252
-
1253
- /**
1254
- * @internal
1255
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1256
- */
1257
- export namespace GetPromptVersion23$ {
1258
- /** @deprecated use `GetPromptVersion23$inboundSchema` instead. */
1259
- export const inboundSchema = GetPromptVersion23$inboundSchema;
1260
- /** @deprecated use `GetPromptVersion23$outboundSchema` instead. */
1261
- export const outboundSchema = GetPromptVersion23$outboundSchema;
1262
- /** @deprecated use `GetPromptVersion23$Outbound` instead. */
1263
- export type Outbound = GetPromptVersion23$Outbound;
1264
- }
1265
-
1266
- export function getPromptVersion23ToJSON(
1267
- getPromptVersion23: GetPromptVersion23,
1268
- ): string {
1269
- return JSON.stringify(
1270
- GetPromptVersion23$outboundSchema.parse(getPromptVersion23),
1271
- );
1272
- }
1273
-
1274
- export function getPromptVersion23FromJSON(
1275
- jsonString: string,
1276
- ): SafeParseResult<GetPromptVersion23, SDKValidationError> {
1277
- return safeParse(
1278
- jsonString,
1279
- (x) => GetPromptVersion23$inboundSchema.parse(JSON.parse(x)),
1280
- `Failed to parse 'GetPromptVersion23' from JSON`,
1281
- );
1282
- }
1283
-
1284
- /** @internal */
1285
- export const GetPromptVersion2PromptsType$inboundSchema: z.ZodNativeEnum<
1286
- typeof GetPromptVersion2PromptsType
1287
- > = z.nativeEnum(GetPromptVersion2PromptsType);
1288
-
1289
- /** @internal */
1290
- export const GetPromptVersion2PromptsType$outboundSchema: z.ZodNativeEnum<
1291
- typeof GetPromptVersion2PromptsType
1292
- > = GetPromptVersion2PromptsType$inboundSchema;
1293
-
1294
- /**
1295
- * @internal
1296
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1297
- */
1298
- export namespace GetPromptVersion2PromptsType$ {
1299
- /** @deprecated use `GetPromptVersion2PromptsType$inboundSchema` instead. */
1300
- export const inboundSchema = GetPromptVersion2PromptsType$inboundSchema;
1301
- /** @deprecated use `GetPromptVersion2PromptsType$outboundSchema` instead. */
1302
- export const outboundSchema = GetPromptVersion2PromptsType$outboundSchema;
1303
- }
1304
-
1305
- /** @internal */
1306
- export const GetPromptVersion2ImageUrl$inboundSchema: z.ZodType<
1307
- GetPromptVersion2ImageUrl,
1308
- z.ZodTypeDef,
1309
- unknown
1310
- > = z.object({
1311
- id: z.string().optional(),
1312
- url: z.string(),
1313
- detail: z.string().optional(),
1314
- });
1315
-
1316
- /** @internal */
1317
- export type GetPromptVersion2ImageUrl$Outbound = {
1318
- id?: string | undefined;
1319
- url: string;
1320
- detail?: string | undefined;
1321
- };
1322
-
1323
- /** @internal */
1324
- export const GetPromptVersion2ImageUrl$outboundSchema: z.ZodType<
1325
- GetPromptVersion2ImageUrl$Outbound,
1326
- z.ZodTypeDef,
1327
- GetPromptVersion2ImageUrl
1328
- > = z.object({
1329
- id: z.string().optional(),
1330
- url: z.string(),
1331
- detail: z.string().optional(),
1332
- });
1333
-
1334
- /**
1335
- * @internal
1336
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1337
- */
1338
- export namespace GetPromptVersion2ImageUrl$ {
1339
- /** @deprecated use `GetPromptVersion2ImageUrl$inboundSchema` instead. */
1340
- export const inboundSchema = GetPromptVersion2ImageUrl$inboundSchema;
1341
- /** @deprecated use `GetPromptVersion2ImageUrl$outboundSchema` instead. */
1342
- export const outboundSchema = GetPromptVersion2ImageUrl$outboundSchema;
1343
- /** @deprecated use `GetPromptVersion2ImageUrl$Outbound` instead. */
1344
- export type Outbound = GetPromptVersion2ImageUrl$Outbound;
1345
- }
1346
-
1347
- export function getPromptVersion2ImageUrlToJSON(
1348
- getPromptVersion2ImageUrl: GetPromptVersion2ImageUrl,
1349
- ): string {
1350
- return JSON.stringify(
1351
- GetPromptVersion2ImageUrl$outboundSchema.parse(getPromptVersion2ImageUrl),
1352
- );
1353
- }
1354
-
1355
- export function getPromptVersion2ImageUrlFromJSON(
1356
- jsonString: string,
1357
- ): SafeParseResult<GetPromptVersion2ImageUrl, SDKValidationError> {
1358
- return safeParse(
1359
- jsonString,
1360
- (x) => GetPromptVersion2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1361
- `Failed to parse 'GetPromptVersion2ImageUrl' from JSON`,
1362
- );
1363
- }
1364
-
1365
- /** @internal */
1366
- export const GetPromptVersion22$inboundSchema: z.ZodType<
1367
- GetPromptVersion22,
1368
- z.ZodTypeDef,
1369
- unknown
1370
- > = z.object({
1371
- type: GetPromptVersion2PromptsType$inboundSchema,
1372
- image_url: z.lazy(() => GetPromptVersion2ImageUrl$inboundSchema),
1373
- }).transform((v) => {
1374
- return remap$(v, {
1375
- "image_url": "imageUrl",
1376
- });
1377
- });
1378
-
1379
- /** @internal */
1380
- export type GetPromptVersion22$Outbound = {
1381
- type: string;
1382
- image_url: GetPromptVersion2ImageUrl$Outbound;
1383
- };
1384
-
1385
- /** @internal */
1386
- export const GetPromptVersion22$outboundSchema: z.ZodType<
1387
- GetPromptVersion22$Outbound,
1388
- z.ZodTypeDef,
1389
- GetPromptVersion22
1390
- > = z.object({
1391
- type: GetPromptVersion2PromptsType$outboundSchema,
1392
- imageUrl: z.lazy(() => GetPromptVersion2ImageUrl$outboundSchema),
1393
- }).transform((v) => {
1394
- return remap$(v, {
1395
- imageUrl: "image_url",
1396
- });
1397
- });
1398
-
1399
- /**
1400
- * @internal
1401
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1402
- */
1403
- export namespace GetPromptVersion22$ {
1404
- /** @deprecated use `GetPromptVersion22$inboundSchema` instead. */
1405
- export const inboundSchema = GetPromptVersion22$inboundSchema;
1406
- /** @deprecated use `GetPromptVersion22$outboundSchema` instead. */
1407
- export const outboundSchema = GetPromptVersion22$outboundSchema;
1408
- /** @deprecated use `GetPromptVersion22$Outbound` instead. */
1409
- export type Outbound = GetPromptVersion22$Outbound;
1410
- }
1411
-
1412
- export function getPromptVersion22ToJSON(
1413
- getPromptVersion22: GetPromptVersion22,
1414
- ): string {
1415
- return JSON.stringify(
1416
- GetPromptVersion22$outboundSchema.parse(getPromptVersion22),
1417
- );
1418
- }
1419
-
1420
- export function getPromptVersion22FromJSON(
1421
- jsonString: string,
1422
- ): SafeParseResult<GetPromptVersion22, SDKValidationError> {
1423
- return safeParse(
1424
- jsonString,
1425
- (x) => GetPromptVersion22$inboundSchema.parse(JSON.parse(x)),
1426
- `Failed to parse 'GetPromptVersion22' from JSON`,
1427
- );
1428
- }
1429
-
1430
- /** @internal */
1431
- export const GetPromptVersion2Type$inboundSchema: z.ZodNativeEnum<
1432
- typeof GetPromptVersion2Type
1433
- > = z.nativeEnum(GetPromptVersion2Type);
1434
-
1435
- /** @internal */
1436
- export const GetPromptVersion2Type$outboundSchema: z.ZodNativeEnum<
1437
- typeof GetPromptVersion2Type
1438
- > = GetPromptVersion2Type$inboundSchema;
1439
-
1440
- /**
1441
- * @internal
1442
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1443
- */
1444
- export namespace GetPromptVersion2Type$ {
1445
- /** @deprecated use `GetPromptVersion2Type$inboundSchema` instead. */
1446
- export const inboundSchema = GetPromptVersion2Type$inboundSchema;
1447
- /** @deprecated use `GetPromptVersion2Type$outboundSchema` instead. */
1448
- export const outboundSchema = GetPromptVersion2Type$outboundSchema;
1449
- }
1450
-
1451
- /** @internal */
1452
- export const GetPromptVersion21$inboundSchema: z.ZodType<
1453
- GetPromptVersion21,
1454
- z.ZodTypeDef,
1455
- unknown
1456
- > = z.object({
1457
- type: GetPromptVersion2Type$inboundSchema,
1458
- text: z.string(),
1459
- });
1460
-
1461
- /** @internal */
1462
- export type GetPromptVersion21$Outbound = {
1463
- type: string;
1464
- text: string;
1465
- };
1466
-
1467
- /** @internal */
1468
- export const GetPromptVersion21$outboundSchema: z.ZodType<
1469
- GetPromptVersion21$Outbound,
1470
- z.ZodTypeDef,
1471
- GetPromptVersion21
1472
- > = z.object({
1473
- type: GetPromptVersion2Type$outboundSchema,
1474
- text: z.string(),
1475
- });
1476
-
1477
- /**
1478
- * @internal
1479
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1480
- */
1481
- export namespace GetPromptVersion21$ {
1482
- /** @deprecated use `GetPromptVersion21$inboundSchema` instead. */
1483
- export const inboundSchema = GetPromptVersion21$inboundSchema;
1484
- /** @deprecated use `GetPromptVersion21$outboundSchema` instead. */
1485
- export const outboundSchema = GetPromptVersion21$outboundSchema;
1486
- /** @deprecated use `GetPromptVersion21$Outbound` instead. */
1487
- export type Outbound = GetPromptVersion21$Outbound;
1488
- }
1489
-
1490
- export function getPromptVersion21ToJSON(
1491
- getPromptVersion21: GetPromptVersion21,
1492
- ): string {
1493
- return JSON.stringify(
1494
- GetPromptVersion21$outboundSchema.parse(getPromptVersion21),
1495
- );
1496
- }
1497
-
1498
- export function getPromptVersion21FromJSON(
1499
- jsonString: string,
1500
- ): SafeParseResult<GetPromptVersion21, SDKValidationError> {
1501
- return safeParse(
1502
- jsonString,
1503
- (x) => GetPromptVersion21$inboundSchema.parse(JSON.parse(x)),
1504
- `Failed to parse 'GetPromptVersion21' from JSON`,
1505
- );
1506
- }
1507
-
1508
- /** @internal */
1509
- export const GetPromptVersionContent2$inboundSchema: z.ZodType<
1510
- GetPromptVersionContent2,
1511
- z.ZodTypeDef,
1512
- unknown
1513
- > = z.union([
1514
- z.lazy(() => GetPromptVersion21$inboundSchema),
1515
- z.lazy(() => GetPromptVersion22$inboundSchema),
1516
- z.lazy(() => GetPromptVersion23$inboundSchema),
1517
- ]);
1518
-
1519
- /** @internal */
1520
- export type GetPromptVersionContent2$Outbound =
1521
- | GetPromptVersion21$Outbound
1522
- | GetPromptVersion22$Outbound
1523
- | GetPromptVersion23$Outbound;
1524
-
1525
- /** @internal */
1526
- export const GetPromptVersionContent2$outboundSchema: z.ZodType<
1527
- GetPromptVersionContent2$Outbound,
1528
- z.ZodTypeDef,
1529
- GetPromptVersionContent2
1530
- > = z.union([
1531
- z.lazy(() => GetPromptVersion21$outboundSchema),
1532
- z.lazy(() => GetPromptVersion22$outboundSchema),
1533
- z.lazy(() => GetPromptVersion23$outboundSchema),
1534
- ]);
1535
-
1536
- /**
1537
- * @internal
1538
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1539
- */
1540
- export namespace GetPromptVersionContent2$ {
1541
- /** @deprecated use `GetPromptVersionContent2$inboundSchema` instead. */
1542
- export const inboundSchema = GetPromptVersionContent2$inboundSchema;
1543
- /** @deprecated use `GetPromptVersionContent2$outboundSchema` instead. */
1544
- export const outboundSchema = GetPromptVersionContent2$outboundSchema;
1545
- /** @deprecated use `GetPromptVersionContent2$Outbound` instead. */
1546
- export type Outbound = GetPromptVersionContent2$Outbound;
1547
- }
1548
-
1549
- export function getPromptVersionContent2ToJSON(
1550
- getPromptVersionContent2: GetPromptVersionContent2,
1551
- ): string {
1552
- return JSON.stringify(
1553
- GetPromptVersionContent2$outboundSchema.parse(getPromptVersionContent2),
1554
- );
1555
- }
1556
-
1557
- export function getPromptVersionContent2FromJSON(
1558
- jsonString: string,
1559
- ): SafeParseResult<GetPromptVersionContent2, SDKValidationError> {
1560
- return safeParse(
1561
- jsonString,
1562
- (x) => GetPromptVersionContent2$inboundSchema.parse(JSON.parse(x)),
1563
- `Failed to parse 'GetPromptVersionContent2' from JSON`,
1564
- );
1565
- }
1566
-
1567
- /** @internal */
1568
- export const GetPromptVersionContent$inboundSchema: z.ZodType<
1569
- GetPromptVersionContent,
1570
- z.ZodTypeDef,
1571
- unknown
1572
- > = z.union([
1573
- z.string(),
1574
- z.array(z.union([
1575
- z.lazy(() => GetPromptVersion21$inboundSchema),
1576
- z.lazy(() => GetPromptVersion22$inboundSchema),
1577
- z.lazy(() => GetPromptVersion23$inboundSchema),
1578
- ])),
1579
- ]);
1580
-
1581
- /** @internal */
1582
- export type GetPromptVersionContent$Outbound =
1583
- | string
1584
- | Array<
1585
- | GetPromptVersion21$Outbound
1586
- | GetPromptVersion22$Outbound
1587
- | GetPromptVersion23$Outbound
1588
- >;
1589
-
1590
- /** @internal */
1591
- export const GetPromptVersionContent$outboundSchema: z.ZodType<
1592
- GetPromptVersionContent$Outbound,
1593
- z.ZodTypeDef,
1594
- GetPromptVersionContent
1595
- > = z.union([
1596
- z.string(),
1597
- z.array(z.union([
1598
- z.lazy(() => GetPromptVersion21$outboundSchema),
1599
- z.lazy(() => GetPromptVersion22$outboundSchema),
1600
- z.lazy(() => GetPromptVersion23$outboundSchema),
1601
- ])),
1602
- ]);
1603
-
1604
- /**
1605
- * @internal
1606
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1607
- */
1608
- export namespace GetPromptVersionContent$ {
1609
- /** @deprecated use `GetPromptVersionContent$inboundSchema` instead. */
1610
- export const inboundSchema = GetPromptVersionContent$inboundSchema;
1611
- /** @deprecated use `GetPromptVersionContent$outboundSchema` instead. */
1612
- export const outboundSchema = GetPromptVersionContent$outboundSchema;
1613
- /** @deprecated use `GetPromptVersionContent$Outbound` instead. */
1614
- export type Outbound = GetPromptVersionContent$Outbound;
1615
- }
1616
-
1617
- export function getPromptVersionContentToJSON(
1618
- getPromptVersionContent: GetPromptVersionContent,
1619
- ): string {
1620
- return JSON.stringify(
1621
- GetPromptVersionContent$outboundSchema.parse(getPromptVersionContent),
1622
- );
1623
- }
1624
-
1625
- export function getPromptVersionContentFromJSON(
1626
- jsonString: string,
1627
- ): SafeParseResult<GetPromptVersionContent, SDKValidationError> {
1628
- return safeParse(
1629
- jsonString,
1630
- (x) => GetPromptVersionContent$inboundSchema.parse(JSON.parse(x)),
1631
- `Failed to parse 'GetPromptVersionContent' from JSON`,
1632
- );
1633
- }
1634
-
1635
- /** @internal */
1636
- export const GetPromptVersionType$inboundSchema: z.ZodNativeEnum<
1637
- typeof GetPromptVersionType
1638
- > = z.nativeEnum(GetPromptVersionType);
1639
-
1640
- /** @internal */
1641
- export const GetPromptVersionType$outboundSchema: z.ZodNativeEnum<
1642
- typeof GetPromptVersionType
1643
- > = GetPromptVersionType$inboundSchema;
1644
-
1645
- /**
1646
- * @internal
1647
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1648
- */
1649
- export namespace GetPromptVersionType$ {
1650
- /** @deprecated use `GetPromptVersionType$inboundSchema` instead. */
1651
- export const inboundSchema = GetPromptVersionType$inboundSchema;
1652
- /** @deprecated use `GetPromptVersionType$outboundSchema` instead. */
1653
- export const outboundSchema = GetPromptVersionType$outboundSchema;
1654
- }
1655
-
1656
- /** @internal */
1657
- export const GetPromptVersionFunction$inboundSchema: z.ZodType<
1658
- GetPromptVersionFunction,
1659
- z.ZodTypeDef,
1660
- unknown
1661
- > = z.object({
1662
- name: z.string(),
1663
- arguments: z.string(),
1664
- });
1665
-
1666
- /** @internal */
1667
- export type GetPromptVersionFunction$Outbound = {
1668
- name: string;
1669
- arguments: string;
1670
- };
1671
-
1672
- /** @internal */
1673
- export const GetPromptVersionFunction$outboundSchema: z.ZodType<
1674
- GetPromptVersionFunction$Outbound,
1675
- z.ZodTypeDef,
1676
- GetPromptVersionFunction
1677
- > = z.object({
1678
- name: z.string(),
1679
- arguments: z.string(),
1680
- });
1681
-
1682
- /**
1683
- * @internal
1684
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1685
- */
1686
- export namespace GetPromptVersionFunction$ {
1687
- /** @deprecated use `GetPromptVersionFunction$inboundSchema` instead. */
1688
- export const inboundSchema = GetPromptVersionFunction$inboundSchema;
1689
- /** @deprecated use `GetPromptVersionFunction$outboundSchema` instead. */
1690
- export const outboundSchema = GetPromptVersionFunction$outboundSchema;
1691
- /** @deprecated use `GetPromptVersionFunction$Outbound` instead. */
1692
- export type Outbound = GetPromptVersionFunction$Outbound;
1693
- }
1694
-
1695
- export function getPromptVersionFunctionToJSON(
1696
- getPromptVersionFunction: GetPromptVersionFunction,
1697
- ): string {
1698
- return JSON.stringify(
1699
- GetPromptVersionFunction$outboundSchema.parse(getPromptVersionFunction),
1700
- );
1701
- }
1702
-
1703
- export function getPromptVersionFunctionFromJSON(
1704
- jsonString: string,
1705
- ): SafeParseResult<GetPromptVersionFunction, SDKValidationError> {
1706
- return safeParse(
1707
- jsonString,
1708
- (x) => GetPromptVersionFunction$inboundSchema.parse(JSON.parse(x)),
1709
- `Failed to parse 'GetPromptVersionFunction' from JSON`,
1710
- );
1711
- }
1712
-
1713
- /** @internal */
1714
- export const GetPromptVersionToolCalls$inboundSchema: z.ZodType<
1715
- GetPromptVersionToolCalls,
1716
- z.ZodTypeDef,
1717
- unknown
1718
- > = z.object({
1719
- id: z.string().optional(),
1720
- index: z.number().optional(),
1721
- type: GetPromptVersionType$inboundSchema,
1722
- function: z.lazy(() => GetPromptVersionFunction$inboundSchema),
1723
- });
1724
-
1725
- /** @internal */
1726
- export type GetPromptVersionToolCalls$Outbound = {
1727
- id?: string | undefined;
1728
- index?: number | undefined;
1729
- type: string;
1730
- function: GetPromptVersionFunction$Outbound;
1731
- };
1732
-
1733
- /** @internal */
1734
- export const GetPromptVersionToolCalls$outboundSchema: z.ZodType<
1735
- GetPromptVersionToolCalls$Outbound,
1736
- z.ZodTypeDef,
1737
- GetPromptVersionToolCalls
1738
- > = z.object({
1739
- id: z.string().optional(),
1740
- index: z.number().optional(),
1741
- type: GetPromptVersionType$outboundSchema,
1742
- function: z.lazy(() => GetPromptVersionFunction$outboundSchema),
1743
- });
1744
-
1745
- /**
1746
- * @internal
1747
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1748
- */
1749
- export namespace GetPromptVersionToolCalls$ {
1750
- /** @deprecated use `GetPromptVersionToolCalls$inboundSchema` instead. */
1751
- export const inboundSchema = GetPromptVersionToolCalls$inboundSchema;
1752
- /** @deprecated use `GetPromptVersionToolCalls$outboundSchema` instead. */
1753
- export const outboundSchema = GetPromptVersionToolCalls$outboundSchema;
1754
- /** @deprecated use `GetPromptVersionToolCalls$Outbound` instead. */
1755
- export type Outbound = GetPromptVersionToolCalls$Outbound;
1756
- }
1757
-
1758
- export function getPromptVersionToolCallsToJSON(
1759
- getPromptVersionToolCalls: GetPromptVersionToolCalls,
1760
- ): string {
1761
- return JSON.stringify(
1762
- GetPromptVersionToolCalls$outboundSchema.parse(getPromptVersionToolCalls),
1763
- );
1764
- }
1765
-
1766
- export function getPromptVersionToolCallsFromJSON(
1767
- jsonString: string,
1768
- ): SafeParseResult<GetPromptVersionToolCalls, SDKValidationError> {
1769
- return safeParse(
1770
- jsonString,
1771
- (x) => GetPromptVersionToolCalls$inboundSchema.parse(JSON.parse(x)),
1772
- `Failed to parse 'GetPromptVersionToolCalls' from JSON`,
1773
- );
1774
- }
1775
-
1776
- /** @internal */
1777
- export const GetPromptVersionMessages$inboundSchema: z.ZodType<
1778
- GetPromptVersionMessages,
1779
- z.ZodTypeDef,
1780
- unknown
1781
- > = z.object({
1782
- role: GetPromptVersionRole$inboundSchema,
1783
- content: z.union([
1784
- z.string(),
1785
- z.array(z.union([
1786
- z.lazy(() => GetPromptVersion21$inboundSchema),
1787
- z.lazy(() => GetPromptVersion22$inboundSchema),
1788
- z.lazy(() => GetPromptVersion23$inboundSchema),
1789
- ])),
1790
- ]),
1791
- tool_calls: z.array(z.lazy(() => GetPromptVersionToolCalls$inboundSchema))
1792
- .optional(),
1793
- tool_call_id: z.string().optional(),
1794
- }).transform((v) => {
1795
- return remap$(v, {
1796
- "tool_calls": "toolCalls",
1797
- "tool_call_id": "toolCallId",
1798
- });
1799
- });
1800
-
1801
- /** @internal */
1802
- export type GetPromptVersionMessages$Outbound = {
1803
- role: string;
1804
- content:
1805
- | string
1806
- | Array<
1807
- | GetPromptVersion21$Outbound
1808
- | GetPromptVersion22$Outbound
1809
- | GetPromptVersion23$Outbound
1810
- >;
1811
- tool_calls?: Array<GetPromptVersionToolCalls$Outbound> | undefined;
1812
- tool_call_id?: string | undefined;
1813
- };
1814
-
1815
- /** @internal */
1816
- export const GetPromptVersionMessages$outboundSchema: z.ZodType<
1817
- GetPromptVersionMessages$Outbound,
1818
- z.ZodTypeDef,
1819
- GetPromptVersionMessages
1820
- > = z.object({
1821
- role: GetPromptVersionRole$outboundSchema,
1822
- content: z.union([
1823
- z.string(),
1824
- z.array(z.union([
1825
- z.lazy(() => GetPromptVersion21$outboundSchema),
1826
- z.lazy(() => GetPromptVersion22$outboundSchema),
1827
- z.lazy(() => GetPromptVersion23$outboundSchema),
1828
- ])),
1829
- ]),
1830
- toolCalls: z.array(z.lazy(() => GetPromptVersionToolCalls$outboundSchema))
1831
- .optional(),
1832
- toolCallId: z.string().optional(),
1833
- }).transform((v) => {
1834
- return remap$(v, {
1835
- toolCalls: "tool_calls",
1836
- toolCallId: "tool_call_id",
1837
- });
1838
- });
1839
-
1840
- /**
1841
- * @internal
1842
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1843
- */
1844
- export namespace GetPromptVersionMessages$ {
1845
- /** @deprecated use `GetPromptVersionMessages$inboundSchema` instead. */
1846
- export const inboundSchema = GetPromptVersionMessages$inboundSchema;
1847
- /** @deprecated use `GetPromptVersionMessages$outboundSchema` instead. */
1848
- export const outboundSchema = GetPromptVersionMessages$outboundSchema;
1849
- /** @deprecated use `GetPromptVersionMessages$Outbound` instead. */
1850
- export type Outbound = GetPromptVersionMessages$Outbound;
1851
- }
1852
-
1853
- export function getPromptVersionMessagesToJSON(
1854
- getPromptVersionMessages: GetPromptVersionMessages,
1855
- ): string {
1856
- return JSON.stringify(
1857
- GetPromptVersionMessages$outboundSchema.parse(getPromptVersionMessages),
1858
- );
1859
- }
1860
-
1861
- export function getPromptVersionMessagesFromJSON(
1862
- jsonString: string,
1863
- ): SafeParseResult<GetPromptVersionMessages, SDKValidationError> {
1864
- return safeParse(
1865
- jsonString,
1866
- (x) => GetPromptVersionMessages$inboundSchema.parse(JSON.parse(x)),
1867
- `Failed to parse 'GetPromptVersionMessages' from JSON`,
1868
- );
1869
- }
1870
-
1871
- /** @internal */
1872
- export const GetPromptVersionPromptConfig$inboundSchema: z.ZodType<
1873
- GetPromptVersionPromptConfig,
1874
- z.ZodTypeDef,
1875
- unknown
1876
- > = z.object({
1877
- stream: z.boolean().optional(),
1878
- model: z.string().optional(),
1879
- model_db_id: z.string().optional(),
1880
- model_type: GetPromptVersionModelType$inboundSchema.optional(),
1881
- model_parameters: z.lazy(() => GetPromptVersionModelParameters$inboundSchema)
1882
- .optional(),
1883
- provider: GetPromptVersionProvider$inboundSchema.optional(),
1884
- integration_id: z.nullable(z.string()).optional(),
1885
- version: z.string().optional(),
1886
- messages: z.array(z.lazy(() => GetPromptVersionMessages$inboundSchema)),
1887
- }).transform((v) => {
1888
- return remap$(v, {
1889
- "model_db_id": "modelDbId",
1890
- "model_type": "modelType",
1891
- "model_parameters": "modelParameters",
1892
- "integration_id": "integrationId",
1893
- });
1894
- });
1895
-
1896
- /** @internal */
1897
- export type GetPromptVersionPromptConfig$Outbound = {
1898
- stream?: boolean | undefined;
1899
- model?: string | undefined;
1900
- model_db_id?: string | undefined;
1901
- model_type?: string | undefined;
1902
- model_parameters?: GetPromptVersionModelParameters$Outbound | undefined;
1903
- provider?: string | undefined;
1904
- integration_id?: string | null | undefined;
1905
- version?: string | undefined;
1906
- messages: Array<GetPromptVersionMessages$Outbound>;
1907
- };
1908
-
1909
- /** @internal */
1910
- export const GetPromptVersionPromptConfig$outboundSchema: z.ZodType<
1911
- GetPromptVersionPromptConfig$Outbound,
1912
- z.ZodTypeDef,
1913
- GetPromptVersionPromptConfig
1914
- > = z.object({
1915
- stream: z.boolean().optional(),
1916
- model: z.string().optional(),
1917
- modelDbId: z.string().optional(),
1918
- modelType: GetPromptVersionModelType$outboundSchema.optional(),
1919
- modelParameters: z.lazy(() => GetPromptVersionModelParameters$outboundSchema)
1920
- .optional(),
1921
- provider: GetPromptVersionProvider$outboundSchema.optional(),
1922
- integrationId: z.nullable(z.string()).optional(),
1923
- version: z.string().optional(),
1924
- messages: z.array(z.lazy(() => GetPromptVersionMessages$outboundSchema)),
1925
- }).transform((v) => {
1926
- return remap$(v, {
1927
- modelDbId: "model_db_id",
1928
- modelType: "model_type",
1929
- modelParameters: "model_parameters",
1930
- integrationId: "integration_id",
1931
- });
1932
- });
1933
-
1934
- /**
1935
- * @internal
1936
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1937
- */
1938
- export namespace GetPromptVersionPromptConfig$ {
1939
- /** @deprecated use `GetPromptVersionPromptConfig$inboundSchema` instead. */
1940
- export const inboundSchema = GetPromptVersionPromptConfig$inboundSchema;
1941
- /** @deprecated use `GetPromptVersionPromptConfig$outboundSchema` instead. */
1942
- export const outboundSchema = GetPromptVersionPromptConfig$outboundSchema;
1943
- /** @deprecated use `GetPromptVersionPromptConfig$Outbound` instead. */
1944
- export type Outbound = GetPromptVersionPromptConfig$Outbound;
1945
- }
1946
-
1947
- export function getPromptVersionPromptConfigToJSON(
1948
- getPromptVersionPromptConfig: GetPromptVersionPromptConfig,
1949
- ): string {
1950
- return JSON.stringify(
1951
- GetPromptVersionPromptConfig$outboundSchema.parse(
1952
- getPromptVersionPromptConfig,
1953
- ),
1954
- );
1955
- }
1956
-
1957
- export function getPromptVersionPromptConfigFromJSON(
1958
- jsonString: string,
1959
- ): SafeParseResult<GetPromptVersionPromptConfig, SDKValidationError> {
1960
- return safeParse(
1961
- jsonString,
1962
- (x) => GetPromptVersionPromptConfig$inboundSchema.parse(JSON.parse(x)),
1963
- `Failed to parse 'GetPromptVersionPromptConfig' from JSON`,
1964
- );
1965
- }
1966
-
1967
- /** @internal */
1968
- export const GetPromptVersionUseCases$inboundSchema: z.ZodNativeEnum<
1969
- typeof GetPromptVersionUseCases
1970
- > = z.nativeEnum(GetPromptVersionUseCases);
1971
-
1972
- /** @internal */
1973
- export const GetPromptVersionUseCases$outboundSchema: z.ZodNativeEnum<
1974
- typeof GetPromptVersionUseCases
1975
- > = GetPromptVersionUseCases$inboundSchema;
1976
-
1977
- /**
1978
- * @internal
1979
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1980
- */
1981
- export namespace GetPromptVersionUseCases$ {
1982
- /** @deprecated use `GetPromptVersionUseCases$inboundSchema` instead. */
1983
- export const inboundSchema = GetPromptVersionUseCases$inboundSchema;
1984
- /** @deprecated use `GetPromptVersionUseCases$outboundSchema` instead. */
1985
- export const outboundSchema = GetPromptVersionUseCases$outboundSchema;
1986
- }
1987
-
1988
- /** @internal */
1989
- export const GetPromptVersionLanguage$inboundSchema: z.ZodNativeEnum<
1990
- typeof GetPromptVersionLanguage
1991
- > = z.nativeEnum(GetPromptVersionLanguage);
1992
-
1993
- /** @internal */
1994
- export const GetPromptVersionLanguage$outboundSchema: z.ZodNativeEnum<
1995
- typeof GetPromptVersionLanguage
1996
- > = GetPromptVersionLanguage$inboundSchema;
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 GetPromptVersionLanguage$ {
2003
- /** @deprecated use `GetPromptVersionLanguage$inboundSchema` instead. */
2004
- export const inboundSchema = GetPromptVersionLanguage$inboundSchema;
2005
- /** @deprecated use `GetPromptVersionLanguage$outboundSchema` instead. */
2006
- export const outboundSchema = GetPromptVersionLanguage$outboundSchema;
2007
- }
2008
-
2009
- /** @internal */
2010
- export const GetPromptVersionMetadata$inboundSchema: z.ZodType<
2011
- GetPromptVersionMetadata,
2012
- z.ZodTypeDef,
2013
- unknown
2014
- > = z.object({
2015
- use_cases: z.array(GetPromptVersionUseCases$inboundSchema).optional(),
2016
- language: z.nullable(GetPromptVersionLanguage$inboundSchema).optional(),
2017
- }).transform((v) => {
2018
- return remap$(v, {
2019
- "use_cases": "useCases",
2020
- });
2021
- });
2022
-
2023
- /** @internal */
2024
- export type GetPromptVersionMetadata$Outbound = {
2025
- use_cases?: Array<string> | undefined;
2026
- language?: string | null | undefined;
2027
- };
2028
-
2029
- /** @internal */
2030
- export const GetPromptVersionMetadata$outboundSchema: z.ZodType<
2031
- GetPromptVersionMetadata$Outbound,
2032
- z.ZodTypeDef,
2033
- GetPromptVersionMetadata
2034
- > = z.object({
2035
- useCases: z.array(GetPromptVersionUseCases$outboundSchema).optional(),
2036
- language: z.nullable(GetPromptVersionLanguage$outboundSchema).optional(),
2037
- }).transform((v) => {
2038
- return remap$(v, {
2039
- useCases: "use_cases",
2040
- });
2041
- });
2042
-
2043
- /**
2044
- * @internal
2045
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2046
- */
2047
- export namespace GetPromptVersionMetadata$ {
2048
- /** @deprecated use `GetPromptVersionMetadata$inboundSchema` instead. */
2049
- export const inboundSchema = GetPromptVersionMetadata$inboundSchema;
2050
- /** @deprecated use `GetPromptVersionMetadata$outboundSchema` instead. */
2051
- export const outboundSchema = GetPromptVersionMetadata$outboundSchema;
2052
- /** @deprecated use `GetPromptVersionMetadata$Outbound` instead. */
2053
- export type Outbound = GetPromptVersionMetadata$Outbound;
2054
- }
2055
-
2056
- export function getPromptVersionMetadataToJSON(
2057
- getPromptVersionMetadata: GetPromptVersionMetadata,
2058
- ): string {
2059
- return JSON.stringify(
2060
- GetPromptVersionMetadata$outboundSchema.parse(getPromptVersionMetadata),
2061
- );
2062
- }
2063
-
2064
- export function getPromptVersionMetadataFromJSON(
2065
- jsonString: string,
2066
- ): SafeParseResult<GetPromptVersionMetadata, SDKValidationError> {
2067
- return safeParse(
2068
- jsonString,
2069
- (x) => GetPromptVersionMetadata$inboundSchema.parse(JSON.parse(x)),
2070
- `Failed to parse 'GetPromptVersionMetadata' from JSON`,
2071
- );
2072
- }
2073
-
2074
- /** @internal */
2075
- export const GetPromptVersionResponseBody$inboundSchema: z.ZodType<
2076
- GetPromptVersionResponseBody,
2077
- z.ZodTypeDef,
2078
- unknown
2079
- > = z.object({
2080
- _id: z.string(),
2081
- created_by_id: z.nullable(z.string()).optional(),
2082
- updated_by_id: z.nullable(z.string()).optional(),
2083
- description: z.nullable(z.string()).optional(),
2084
- prompt_config: z.lazy(() => GetPromptVersionPromptConfig$inboundSchema),
2085
- metadata: z.lazy(() => GetPromptVersionMetadata$inboundSchema).optional(),
2086
- timestamp: z.string(),
2087
- }).transform((v) => {
2088
- return remap$(v, {
2089
- "_id": "id",
2090
- "created_by_id": "createdById",
2091
- "updated_by_id": "updatedById",
2092
- "prompt_config": "promptConfig",
2093
- });
2094
- });
2095
-
2096
- /** @internal */
2097
- export type GetPromptVersionResponseBody$Outbound = {
2098
- _id: string;
2099
- created_by_id?: string | null | undefined;
2100
- updated_by_id?: string | null | undefined;
2101
- description?: string | null | undefined;
2102
- prompt_config: GetPromptVersionPromptConfig$Outbound;
2103
- metadata?: GetPromptVersionMetadata$Outbound | undefined;
2104
- timestamp: string;
2105
- };
2106
-
2107
- /** @internal */
2108
- export const GetPromptVersionResponseBody$outboundSchema: z.ZodType<
2109
- GetPromptVersionResponseBody$Outbound,
2110
- z.ZodTypeDef,
2111
- GetPromptVersionResponseBody
2112
- > = z.object({
2113
- id: z.string(),
2114
- createdById: z.nullable(z.string()).optional(),
2115
- updatedById: z.nullable(z.string()).optional(),
2116
- description: z.nullable(z.string()).optional(),
2117
- promptConfig: z.lazy(() => GetPromptVersionPromptConfig$outboundSchema),
2118
- metadata: z.lazy(() => GetPromptVersionMetadata$outboundSchema).optional(),
2119
- timestamp: z.string(),
2120
- }).transform((v) => {
2121
- return remap$(v, {
2122
- id: "_id",
2123
- createdById: "created_by_id",
2124
- updatedById: "updated_by_id",
2125
- promptConfig: "prompt_config",
2126
- });
2127
- });
2128
-
2129
- /**
2130
- * @internal
2131
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2132
- */
2133
- export namespace GetPromptVersionResponseBody$ {
2134
- /** @deprecated use `GetPromptVersionResponseBody$inboundSchema` instead. */
2135
- export const inboundSchema = GetPromptVersionResponseBody$inboundSchema;
2136
- /** @deprecated use `GetPromptVersionResponseBody$outboundSchema` instead. */
2137
- export const outboundSchema = GetPromptVersionResponseBody$outboundSchema;
2138
- /** @deprecated use `GetPromptVersionResponseBody$Outbound` instead. */
2139
- export type Outbound = GetPromptVersionResponseBody$Outbound;
2140
- }
2141
-
2142
- export function getPromptVersionResponseBodyToJSON(
2143
- getPromptVersionResponseBody: GetPromptVersionResponseBody,
2144
- ): string {
2145
- return JSON.stringify(
2146
- GetPromptVersionResponseBody$outboundSchema.parse(
2147
- getPromptVersionResponseBody,
2148
- ),
2149
- );
2150
- }
2151
-
2152
- export function getPromptVersionResponseBodyFromJSON(
2153
- jsonString: string,
2154
- ): SafeParseResult<GetPromptVersionResponseBody, SDKValidationError> {
2155
- return safeParse(
2156
- jsonString,
2157
- (x) => GetPromptVersionResponseBody$inboundSchema.parse(JSON.parse(x)),
2158
- `Failed to parse 'GetPromptVersionResponseBody' from JSON`,
2159
- );
2160
- }