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