@orq-ai/node 3.5.13 → 3.6.0-rc.11

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 (394) hide show
  1. package/README.md +6 -0
  2. package/bin/mcp-server.js +4828 -608
  3. package/bin/mcp-server.js.map +44 -35
  4. package/docs/sdks/datasets/README.md +91 -4
  5. package/docs/sdks/deployments/README.md +89 -0
  6. package/docs/sdks/knowledge/README.md +81 -4
  7. package/docs/sdks/prompts/README.md +4 -4
  8. package/funcs/datasetsCreateExperiment.d.ts +16 -0
  9. package/funcs/datasetsCreateExperiment.d.ts.map +1 -0
  10. package/funcs/datasetsCreateExperiment.js +118 -0
  11. package/funcs/datasetsCreateExperiment.js.map +1 -0
  12. package/funcs/deploymentsCreateExperiment.d.ts +16 -0
  13. package/funcs/deploymentsCreateExperiment.d.ts.map +1 -0
  14. package/funcs/deploymentsCreateExperiment.js +118 -0
  15. package/funcs/deploymentsCreateExperiment.js.map +1 -0
  16. package/funcs/knowledgeSearch.d.ts +16 -0
  17. package/funcs/knowledgeSearch.d.ts.map +1 -0
  18. package/funcs/knowledgeSearch.js +118 -0
  19. package/funcs/knowledgeSearch.js.map +1 -0
  20. package/jsr.json +1 -1
  21. package/lib/config.d.ts +2 -2
  22. package/lib/config.js +2 -2
  23. package/lib/config.js.map +1 -1
  24. package/mcp-server/mcp-server.js +1 -1
  25. package/mcp-server/mcp-server.js.map +1 -1
  26. package/mcp-server/server.d.ts.map +1 -1
  27. package/mcp-server/server.js +7 -1
  28. package/mcp-server/server.js.map +1 -1
  29. package/mcp-server/tools/datasetsCreateExperiment.d.ts +8 -0
  30. package/mcp-server/tools/datasetsCreateExperiment.d.ts.map +1 -0
  31. package/mcp-server/tools/datasetsCreateExperiment.js +64 -0
  32. package/mcp-server/tools/datasetsCreateExperiment.js.map +1 -0
  33. package/mcp-server/tools/deploymentsCreateExperiment.d.ts +8 -0
  34. package/mcp-server/tools/deploymentsCreateExperiment.d.ts.map +1 -0
  35. package/mcp-server/tools/deploymentsCreateExperiment.js +64 -0
  36. package/mcp-server/tools/deploymentsCreateExperiment.js.map +1 -0
  37. package/mcp-server/tools/knowledgeSearch.d.ts +8 -0
  38. package/mcp-server/tools/knowledgeSearch.d.ts.map +1 -0
  39. package/mcp-server/tools/knowledgeSearch.js +64 -0
  40. package/mcp-server/tools/knowledgeSearch.js.map +1 -0
  41. package/models/components/deployments.d.ts +1442 -67
  42. package/models/components/deployments.d.ts.map +1 -1
  43. package/models/components/deployments.js +1881 -126
  44. package/models/components/deployments.js.map +1 -1
  45. package/models/operations/bulkcreatedatapoints.js +2 -2
  46. package/models/operations/createchunk.d.ts +32 -17
  47. package/models/operations/createchunk.d.ts.map +1 -1
  48. package/models/operations/createchunk.js +30 -19
  49. package/models/operations/createchunk.js.map +1 -1
  50. package/models/operations/createcontact.js +2 -2
  51. package/models/operations/createdataset.js +2 -2
  52. package/models/operations/createdatasetexperiment.d.ts +140 -0
  53. package/models/operations/createdatasetexperiment.d.ts.map +1 -0
  54. package/models/operations/createdatasetexperiment.js +188 -0
  55. package/models/operations/createdatasetexperiment.js.map +1 -0
  56. package/models/operations/createdatasetitem.js +2 -2
  57. package/models/operations/createdatasource.js +2 -2
  58. package/models/operations/createdeploymentexperiment.d.ts +152 -0
  59. package/models/operations/createdeploymentexperiment.d.ts.map +1 -0
  60. package/models/operations/createdeploymentexperiment.js +189 -0
  61. package/models/operations/createdeploymentexperiment.js.map +1 -0
  62. package/models/operations/deploymentcreatemetric.d.ts +240 -28
  63. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  64. package/models/operations/deploymentcreatemetric.js +236 -29
  65. package/models/operations/deploymentcreatemetric.js.map +1 -1
  66. package/models/operations/deploymentgetconfig.d.ts +1428 -53
  67. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  68. package/models/operations/deploymentgetconfig.js +1876 -120
  69. package/models/operations/deploymentgetconfig.js.map +1 -1
  70. package/models/operations/deploymentinvoke.d.ts +34 -4
  71. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  72. package/models/operations/deploymentinvoke.js +30 -4
  73. package/models/operations/deploymentinvoke.js.map +1 -1
  74. package/models/operations/deploymentstream.d.ts +1425 -50
  75. package/models/operations/deploymentstream.d.ts.map +1 -1
  76. package/models/operations/deploymentstream.js +1840 -88
  77. package/models/operations/deploymentstream.js.map +1 -1
  78. package/models/operations/fileget.js +2 -2
  79. package/models/operations/filelist.js +2 -2
  80. package/models/operations/fileupload.d.ts +15 -15
  81. package/models/operations/fileupload.d.ts.map +1 -1
  82. package/models/operations/fileupload.js +20 -21
  83. package/models/operations/fileupload.js.map +1 -1
  84. package/models/operations/getonechunk.d.ts +24 -3
  85. package/models/operations/getonechunk.d.ts.map +1 -1
  86. package/models/operations/getonechunk.js +26 -3
  87. package/models/operations/getonechunk.js.map +1 -1
  88. package/models/operations/index.d.ts +3 -0
  89. package/models/operations/index.d.ts.map +1 -1
  90. package/models/operations/index.js +3 -0
  91. package/models/operations/index.js.map +1 -1
  92. package/models/operations/listchunks.d.ts +24 -3
  93. package/models/operations/listchunks.d.ts.map +1 -1
  94. package/models/operations/listchunks.js +26 -3
  95. package/models/operations/listchunks.js.map +1 -1
  96. package/models/operations/listdatasetdatapoints.js +2 -2
  97. package/models/operations/listdatasets.js +2 -2
  98. package/models/operations/listdatasources.js +2 -2
  99. package/models/operations/retrievedatapoint.js +2 -2
  100. package/models/operations/retrievedataset.js +2 -2
  101. package/models/operations/retrievedatasource.js +2 -2
  102. package/models/operations/searchknowledge.d.ts +1379 -0
  103. package/models/operations/searchknowledge.d.ts.map +1 -0
  104. package/models/operations/searchknowledge.js +1817 -0
  105. package/models/operations/searchknowledge.js.map +1 -0
  106. package/models/operations/updatechunk.d.ts +32 -17
  107. package/models/operations/updatechunk.d.ts.map +1 -1
  108. package/models/operations/updatechunk.js +30 -19
  109. package/models/operations/updatechunk.js.map +1 -1
  110. package/models/operations/updatedatapoint.js +2 -2
  111. package/models/operations/updatedataset.js +2 -2
  112. package/models/operations/updatedatasource.js +2 -2
  113. package/package.json +3 -2
  114. package/sdk/datasets.d.ts +7 -0
  115. package/sdk/datasets.d.ts.map +1 -1
  116. package/sdk/datasets.js +10 -0
  117. package/sdk/datasets.js.map +1 -1
  118. package/sdk/deployments.d.ts +7 -0
  119. package/sdk/deployments.d.ts.map +1 -1
  120. package/sdk/deployments.js +10 -0
  121. package/sdk/deployments.js.map +1 -1
  122. package/sdk/knowledge.d.ts +7 -0
  123. package/sdk/knowledge.d.ts.map +1 -1
  124. package/sdk/knowledge.js +10 -0
  125. package/sdk/knowledge.js.map +1 -1
  126. package/src/lib/config.ts +2 -2
  127. package/src/mcp-server/mcp-server.ts +1 -1
  128. package/src/mcp-server/server.ts +7 -1
  129. package/src/models/components/deployments.ts +3655 -165
  130. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  131. package/src/models/operations/createchunk.ts +65 -35
  132. package/src/models/operations/createcontact.ts +2 -2
  133. package/src/models/operations/createdataset.ts +2 -2
  134. package/src/models/operations/createdatasetitem.ts +2 -2
  135. package/src/models/operations/createdatasource.ts +2 -2
  136. package/src/models/operations/deploymentcreatemetric.ts +517 -40
  137. package/src/models/operations/deploymentgetconfig.ts +3656 -118
  138. package/src/models/operations/deploymentinvoke.ts +64 -8
  139. package/src/models/operations/deploymentstream.ts +3997 -116
  140. package/src/models/operations/fileget.ts +2 -2
  141. package/src/models/operations/filelist.ts +2 -2
  142. package/src/models/operations/fileupload.ts +37 -34
  143. package/src/models/operations/getonechunk.ts +55 -5
  144. package/src/models/operations/index.ts +3 -0
  145. package/src/models/operations/listchunks.ts +55 -5
  146. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  147. package/src/models/operations/listdatasets.ts +2 -2
  148. package/src/models/operations/listdatasources.ts +2 -2
  149. package/src/models/operations/retrievedatapoint.ts +2 -2
  150. package/src/models/operations/retrievedataset.ts +2 -2
  151. package/src/models/operations/retrievedatasource.ts +2 -2
  152. package/src/models/operations/updatechunk.ts +65 -35
  153. package/src/models/operations/updatedatapoint.ts +2 -2
  154. package/src/models/operations/updatedataset.ts +2 -2
  155. package/src/models/operations/updatedatasource.ts +2 -2
  156. package/src/sdk/datasets.ts +18 -0
  157. package/src/sdk/deployments.ts +18 -0
  158. package/src/sdk/knowledge.ts +18 -0
  159. package/packages/orq-rc/FUNCTIONS.md +0 -106
  160. package/packages/orq-rc/README.md +0 -707
  161. package/packages/orq-rc/RUNTIMES.md +0 -48
  162. package/packages/orq-rc/docs/sdks/contacts/README.md +0 -84
  163. package/packages/orq-rc/docs/sdks/datasets/README.md +0 -1027
  164. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -405
  165. package/packages/orq-rc/docs/sdks/feedback/README.md +0 -92
  166. package/packages/orq-rc/docs/sdks/files/README.md +0 -311
  167. package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1273
  168. package/packages/orq-rc/docs/sdks/metrics/README.md +0 -86
  169. package/packages/orq-rc/docs/sdks/models/README.md +0 -79
  170. package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
  171. package/packages/orq-rc/docs/sdks/prompts/README.md +0 -576
  172. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -80
  173. package/packages/orq-rc/jsr.json +0 -28
  174. package/packages/orq-rc/package-lock.json +0 -3217
  175. package/packages/orq-rc/package.json +0 -45
  176. package/packages/orq-rc/src/core.ts +0 -13
  177. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -154
  178. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -161
  179. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -159
  180. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -161
  181. package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +0 -165
  182. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -161
  183. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -176
  184. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -161
  185. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -168
  186. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -169
  187. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -175
  188. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -170
  189. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -173
  190. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -162
  191. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -170
  192. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -170
  193. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -162
  194. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -178
  195. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -154
  196. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -174
  197. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -158
  198. package/packages/orq-rc/src/funcs/filesGet.ts +0 -160
  199. package/packages/orq-rc/src/funcs/filesList.ts +0 -161
  200. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -152
  201. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -165
  202. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -160
  203. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -161
  204. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -168
  205. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -167
  206. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -163
  207. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -172
  208. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -168
  209. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -160
  210. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -167
  211. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -163
  212. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -158
  213. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -168
  214. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -164
  215. package/packages/orq-rc/src/funcs/modelsList.ts +0 -136
  216. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -154
  217. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -158
  218. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -175
  219. package/packages/orq-rc/src/funcs/promptsList.ts +0 -161
  220. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -167
  221. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -160
  222. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -167
  223. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -155
  224. package/packages/orq-rc/src/hooks/global.ts +0 -44
  225. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  226. package/packages/orq-rc/src/hooks/index.ts +0 -6
  227. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  228. package/packages/orq-rc/src/hooks/types.ts +0 -110
  229. package/packages/orq-rc/src/index.ts +0 -7
  230. package/packages/orq-rc/src/lib/base64.ts +0 -37
  231. package/packages/orq-rc/src/lib/config.ts +0 -70
  232. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  233. package/packages/orq-rc/src/lib/encodings.ts +0 -483
  234. package/packages/orq-rc/src/lib/env.ts +0 -73
  235. package/packages/orq-rc/src/lib/event-streams.ts +0 -264
  236. package/packages/orq-rc/src/lib/files.ts +0 -40
  237. package/packages/orq-rc/src/lib/http.ts +0 -323
  238. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  239. package/packages/orq-rc/src/lib/logger.ts +0 -9
  240. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  241. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  242. package/packages/orq-rc/src/lib/retries.ts +0 -218
  243. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  244. package/packages/orq-rc/src/lib/sdks.ts +0 -401
  245. package/packages/orq-rc/src/lib/security.ts +0 -261
  246. package/packages/orq-rc/src/lib/url.ts +0 -33
  247. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -125
  248. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -140
  249. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  250. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  251. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  252. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  253. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
  254. package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
  255. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  256. package/packages/orq-rc/src/mcp-server/server.ts +0 -163
  257. package/packages/orq-rc/src/mcp-server/shared.ts +0 -75
  258. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  259. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  260. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  261. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  262. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +0 -37
  263. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  264. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  265. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  266. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  267. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  268. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  269. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  270. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  271. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  272. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  273. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  274. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  275. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  276. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  277. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  278. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  279. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  280. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  281. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  282. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  283. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  284. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  285. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  286. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  287. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  288. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  289. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  290. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  291. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  292. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  293. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  294. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  295. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  296. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  297. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  298. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  299. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  300. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  301. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  302. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  303. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  304. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  305. package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
  306. package/packages/orq-rc/src/models/components/deployments.ts +0 -7749
  307. package/packages/orq-rc/src/models/components/index.ts +0 -6
  308. package/packages/orq-rc/src/models/components/security.ts +0 -71
  309. package/packages/orq-rc/src/models/errors/apierror.ts +0 -27
  310. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -71
  311. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -82
  312. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  313. package/packages/orq-rc/src/models/errors/index.ts +0 -10
  314. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -97
  315. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -71
  316. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +0 -1828
  317. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -75
  318. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -432
  319. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -256
  320. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -296
  321. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -1752
  322. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
  323. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
  324. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -846
  325. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -3691
  326. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
  327. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -81
  328. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -75
  329. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -87
  330. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -78
  331. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
  332. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -5435
  333. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -9694
  334. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1255
  335. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2128
  336. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -9946
  337. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
  338. package/packages/orq-rc/src/models/operations/fileget.ts +0 -223
  339. package/packages/orq-rc/src/models/operations/filelist.ts +0 -337
  340. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -327
  341. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2100
  342. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -315
  343. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -537
  344. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1966
  345. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1962
  346. package/packages/orq-rc/src/models/operations/index.ts +0 -54
  347. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
  348. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1077
  349. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -406
  350. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -447
  351. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -663
  352. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -273
  353. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2096
  354. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
  355. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -930
  356. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -288
  357. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -273
  358. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -448
  359. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -1741
  360. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -393
  361. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -345
  362. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -980
  363. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -3873
  364. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  365. package/packages/orq-rc/src/sdk/datasets.ts +0 -240
  366. package/packages/orq-rc/src/sdk/deployments.ts +0 -107
  367. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  368. package/packages/orq-rc/src/sdk/files.ts +0 -78
  369. package/packages/orq-rc/src/sdk/index.ts +0 -5
  370. package/packages/orq-rc/src/sdk/knowledge.ts +0 -264
  371. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  372. package/packages/orq-rc/src/sdk/models.ts +0 -25
  373. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  374. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  375. package/packages/orq-rc/src/sdk/sdk.ts +0 -61
  376. package/packages/orq-rc/src/types/async.ts +0 -68
  377. package/packages/orq-rc/src/types/blobs.ts +0 -31
  378. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  379. package/packages/orq-rc/src/types/enums.ts +0 -16
  380. package/packages/orq-rc/src/types/fp.ts +0 -50
  381. package/packages/orq-rc/src/types/index.ts +0 -11
  382. package/packages/orq-rc/src/types/operations.ts +0 -105
  383. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  384. package/packages/orq-rc/src/types/streams.ts +0 -21
  385. package/packages/orq-rc/tsconfig.json +0 -41
  386. /package/{packages/orq-rc/src → src}/funcs/datasetsCreateExperiment.ts +0 -0
  387. /package/{packages/orq-rc/src → src}/funcs/deploymentsCreateExperiment.ts +0 -0
  388. /package/{packages/orq-rc/src → src}/funcs/knowledgeSearch.ts +0 -0
  389. /package/{packages/orq-rc/src → src}/mcp-server/tools/datasetsCreateExperiment.ts +0 -0
  390. /package/{packages/orq-rc/src → src}/mcp-server/tools/deploymentsCreateExperiment.ts +0 -0
  391. /package/{packages/orq-rc/src → src}/mcp-server/tools/knowledgeSearch.ts +0 -0
  392. /package/{packages/orq-rc/src → src}/models/operations/createdatasetexperiment.ts +0 -0
  393. /package/{packages/orq-rc/src → src}/models/operations/createdeploymentexperiment.ts +0 -0
  394. /package/{packages/orq-rc/src → src}/models/operations/searchknowledge.ts +0 -0
@@ -1,3873 +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
- /**
13
- * The modality of the model
14
- */
15
- export const UpdatePromptModelType = {
16
- Chat: "chat",
17
- Completion: "completion",
18
- Embedding: "embedding",
19
- Vision: "vision",
20
- Image: "image",
21
- Tts: "tts",
22
- Stt: "stt",
23
- Rerank: "rerank",
24
- Moderations: "moderations",
25
- } as const;
26
- /**
27
- * The modality of the model
28
- */
29
- export type UpdatePromptModelType = ClosedEnum<typeof UpdatePromptModelType>;
30
-
31
- /**
32
- * Only supported on `image` models.
33
- */
34
- export const UpdatePromptFormat = {
35
- Url: "url",
36
- B64Json: "b64_json",
37
- Text: "text",
38
- JsonObject: "json_object",
39
- } as const;
40
- /**
41
- * Only supported on `image` models.
42
- */
43
- export type UpdatePromptFormat = ClosedEnum<typeof UpdatePromptFormat>;
44
-
45
- export const UpdatePromptResponseFormatPromptsType = {
46
- JsonObject: "json_object",
47
- } as const;
48
- export type UpdatePromptResponseFormatPromptsType = ClosedEnum<
49
- typeof UpdatePromptResponseFormatPromptsType
50
- >;
51
-
52
- export type UpdatePromptResponseFormat2 = {
53
- type: UpdatePromptResponseFormatPromptsType;
54
- };
55
-
56
- export const UpdatePromptResponseFormatType = {
57
- JsonSchema: "json_schema",
58
- } as const;
59
- export type UpdatePromptResponseFormatType = ClosedEnum<
60
- typeof UpdatePromptResponseFormatType
61
- >;
62
-
63
- export type ResponseFormatJsonSchema = {
64
- name: string;
65
- strict: boolean;
66
- schema: { [k: string]: any };
67
- };
68
-
69
- export type UpdatePromptResponseFormat1 = {
70
- type: UpdatePromptResponseFormatType;
71
- jsonSchema: ResponseFormatJsonSchema;
72
- };
73
-
74
- /**
75
- * An object specifying the format that the model must output.
76
- *
77
- * @remarks
78
- *
79
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
80
- *
81
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
82
- *
83
- * 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.
84
- */
85
- export type UpdatePromptResponseFormat =
86
- | UpdatePromptResponseFormat2
87
- | UpdatePromptResponseFormat1;
88
-
89
- /**
90
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
91
- */
92
- export const UpdatePromptPhotoRealVersion = {
93
- V1: "v1",
94
- V2: "v2",
95
- } as const;
96
- /**
97
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
98
- */
99
- export type UpdatePromptPhotoRealVersion = ClosedEnum<
100
- typeof UpdatePromptPhotoRealVersion
101
- >;
102
-
103
- /**
104
- * The format to return the embeddings
105
- */
106
- export const UpdatePromptEncodingFormat = {
107
- Float: "float",
108
- Base64: "base64",
109
- } as const;
110
- /**
111
- * The format to return the embeddings
112
- */
113
- export type UpdatePromptEncodingFormat = ClosedEnum<
114
- typeof UpdatePromptEncodingFormat
115
- >;
116
-
117
- /**
118
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
119
- */
120
- export const UpdatePromptReasoningEffort = {
121
- Low: "low",
122
- Medium: "medium",
123
- High: "high",
124
- } as const;
125
- /**
126
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
127
- */
128
- export type UpdatePromptReasoningEffort = ClosedEnum<
129
- typeof UpdatePromptReasoningEffort
130
- >;
131
-
132
- /**
133
- * Model Parameters: Not all parameters apply to every model
134
- */
135
- export type UpdatePromptModelParameters = {
136
- /**
137
- * Only supported on `chat` and `completion` models.
138
- */
139
- temperature?: number | undefined;
140
- /**
141
- * Only supported on `chat` and `completion` models.
142
- */
143
- maxTokens?: number | undefined;
144
- /**
145
- * Only supported on `chat` and `completion` models.
146
- */
147
- topK?: number | undefined;
148
- /**
149
- * Only supported on `chat` and `completion` models.
150
- */
151
- topP?: number | undefined;
152
- /**
153
- * Only supported on `chat` and `completion` models.
154
- */
155
- frequencyPenalty?: number | undefined;
156
- /**
157
- * Only supported on `chat` and `completion` models.
158
- */
159
- presencePenalty?: number | undefined;
160
- /**
161
- * Only supported on `image` models.
162
- */
163
- numImages?: number | undefined;
164
- /**
165
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
166
- */
167
- seed?: number | undefined;
168
- /**
169
- * Only supported on `image` models.
170
- */
171
- format?: UpdatePromptFormat | undefined;
172
- /**
173
- * Only supported on `image` models.
174
- */
175
- dimensions?: string | undefined;
176
- /**
177
- * Only supported on `image` models.
178
- */
179
- quality?: string | undefined;
180
- /**
181
- * Only supported on `image` models.
182
- */
183
- style?: string | undefined;
184
- /**
185
- * An object specifying the format that the model must output.
186
- *
187
- * @remarks
188
- *
189
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
190
- *
191
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
192
- *
193
- * 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.
194
- */
195
- responseFormat?:
196
- | UpdatePromptResponseFormat2
197
- | UpdatePromptResponseFormat1
198
- | null
199
- | undefined;
200
- /**
201
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
202
- */
203
- photoRealVersion?: UpdatePromptPhotoRealVersion | undefined;
204
- /**
205
- * The format to return the embeddings
206
- */
207
- encodingFormat?: UpdatePromptEncodingFormat | undefined;
208
- /**
209
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
210
- */
211
- reasoningEffort?: UpdatePromptReasoningEffort | undefined;
212
- /**
213
- * 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`
214
- */
215
- budgetTokens?: number | undefined;
216
- };
217
-
218
- export const UpdatePromptProvider = {
219
- Cohere: "cohere",
220
- Openai: "openai",
221
- Anthropic: "anthropic",
222
- Huggingface: "huggingface",
223
- Replicate: "replicate",
224
- Google: "google",
225
- GoogleAi: "google-ai",
226
- Azure: "azure",
227
- Aws: "aws",
228
- Anyscale: "anyscale",
229
- Perplexity: "perplexity",
230
- Groq: "groq",
231
- Fal: "fal",
232
- Leonardoai: "leonardoai",
233
- Nvidia: "nvidia",
234
- Jina: "jina",
235
- Togetherai: "togetherai",
236
- Elevenlabs: "elevenlabs",
237
- } as const;
238
- export type UpdatePromptProvider = ClosedEnum<typeof UpdatePromptProvider>;
239
-
240
- /**
241
- * The role of the prompt message
242
- */
243
- export const UpdatePromptRole = {
244
- System: "system",
245
- Assistant: "assistant",
246
- User: "user",
247
- Exception: "exception",
248
- Tool: "tool",
249
- Prompt: "prompt",
250
- Correction: "correction",
251
- ExpectedOutput: "expected_output",
252
- } as const;
253
- /**
254
- * The role of the prompt message
255
- */
256
- export type UpdatePromptRole = ClosedEnum<typeof UpdatePromptRole>;
257
-
258
- export const UpdatePrompt2PromptsType = {
259
- ImageUrl: "image_url",
260
- } as const;
261
- export type UpdatePrompt2PromptsType = ClosedEnum<
262
- typeof UpdatePrompt2PromptsType
263
- >;
264
-
265
- export type UpdatePrompt2ImageUrl = {
266
- /**
267
- * Either a URL of the image or the base64 encoded data URI.
268
- */
269
- url: string;
270
- /**
271
- * Specifies the detail level of the image. Currently only supported with OpenAI models
272
- */
273
- detail?: string | undefined;
274
- };
275
-
276
- /**
277
- * The image part of the prompt message. Only supported with vision models.
278
- */
279
- export type UpdatePrompt22 = {
280
- type: UpdatePrompt2PromptsType;
281
- imageUrl: UpdatePrompt2ImageUrl;
282
- };
283
-
284
- export const UpdatePrompt2Type = {
285
- Text: "text",
286
- } as const;
287
- export type UpdatePrompt2Type = ClosedEnum<typeof UpdatePrompt2Type>;
288
-
289
- /**
290
- * Text content part of a prompt message
291
- */
292
- export type UpdatePrompt21 = {
293
- type: UpdatePrompt2Type;
294
- text: string;
295
- };
296
-
297
- export type UpdatePromptContent2 = UpdatePrompt21 | UpdatePrompt22;
298
-
299
- /**
300
- * 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.
301
- */
302
- export type UpdatePromptContent =
303
- | string
304
- | Array<UpdatePrompt21 | UpdatePrompt22>;
305
-
306
- export const UpdatePromptType = {
307
- Function: "function",
308
- } as const;
309
- export type UpdatePromptType = ClosedEnum<typeof UpdatePromptType>;
310
-
311
- export type UpdatePromptFunction = {
312
- name: string;
313
- /**
314
- * JSON string arguments for the functions
315
- */
316
- arguments: string;
317
- };
318
-
319
- export type UpdatePromptToolCalls = {
320
- id?: string | undefined;
321
- index?: number | undefined;
322
- type: UpdatePromptType;
323
- function: UpdatePromptFunction;
324
- };
325
-
326
- export type UpdatePromptMessages = {
327
- /**
328
- * The role of the prompt message
329
- */
330
- role: UpdatePromptRole;
331
- /**
332
- * 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.
333
- */
334
- content: string | Array<UpdatePrompt21 | UpdatePrompt22>;
335
- toolCalls?: Array<UpdatePromptToolCalls> | undefined;
336
- toolCallId?: string | undefined;
337
- };
338
-
339
- /**
340
- * A list of messages compatible with the openAI schema
341
- */
342
- export type UpdatePromptPromptConfig = {
343
- stream?: boolean | undefined;
344
- model?: string | undefined;
345
- /**
346
- * The modality of the model
347
- */
348
- modelType?: UpdatePromptModelType | undefined;
349
- /**
350
- * Model Parameters: Not all parameters apply to every model
351
- */
352
- modelParameters?: UpdatePromptModelParameters | undefined;
353
- provider?: UpdatePromptProvider | undefined;
354
- version?: string | undefined;
355
- messages: Array<UpdatePromptMessages>;
356
- };
357
-
358
- export const UpdatePromptUseCases = {
359
- AgentsSimulations: "Agents simulations",
360
- Agents: "Agents",
361
- APIInteraction: "API interaction",
362
- AutonomousAgents: "Autonomous Agents",
363
- Chatbots: "Chatbots",
364
- Classification: "Classification",
365
- CodeUnderstanding: "Code understanding",
366
- CodeWriting: "Code writing",
367
- Conversation: "Conversation",
368
- DocumentsQA: "Documents QA",
369
- Evaluation: "Evaluation",
370
- Extraction: "Extraction",
371
- MultiModal: "Multi-modal",
372
- SelfChecking: "Self-checking",
373
- SentimentAnalysis: "Sentiment analysis",
374
- Sql: "SQL",
375
- Summarization: "Summarization",
376
- Tagging: "Tagging",
377
- TranslationDocument: "Translation (document)",
378
- TranslationSentences: "Translation (sentences)",
379
- } as const;
380
- export type UpdatePromptUseCases = ClosedEnum<typeof UpdatePromptUseCases>;
381
-
382
- /**
383
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
384
- */
385
- export const UpdatePromptLanguage = {
386
- Chinese: "Chinese",
387
- Dutch: "Dutch",
388
- English: "English",
389
- French: "French",
390
- German: "German",
391
- Russian: "Russian",
392
- Spanish: "Spanish",
393
- } as const;
394
- /**
395
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
396
- */
397
- export type UpdatePromptLanguage = ClosedEnum<typeof UpdatePromptLanguage>;
398
-
399
- export type UpdatePromptMetadata = {
400
- /**
401
- * 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
402
- */
403
- useCases?: Array<UpdatePromptUseCases> | undefined;
404
- /**
405
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
406
- */
407
- language?: UpdatePromptLanguage | null | undefined;
408
- };
409
-
410
- export type UpdatePromptRequestBody = {
411
- owner?: string | undefined;
412
- domainId?: string | undefined;
413
- created?: string | undefined;
414
- updated?: string | undefined;
415
- createdById?: string | null | undefined;
416
- updatedById?: string | null | undefined;
417
- /**
418
- * The prompt’s name, meant to be displayable in the UI.
419
- */
420
- displayName?: string | undefined;
421
- /**
422
- * 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
423
- */
424
- description?: string | null | undefined;
425
- /**
426
- * A list of messages compatible with the openAI schema
427
- */
428
- promptConfig?: UpdatePromptPromptConfig | undefined;
429
- metadata?: UpdatePromptMetadata | undefined;
430
- /**
431
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
432
- */
433
- path?: string | undefined;
434
- };
435
-
436
- export type UpdatePromptRequest = {
437
- /**
438
- * Unique identifier of the prompt
439
- */
440
- id: string;
441
- requestBody?: UpdatePromptRequestBody | undefined;
442
- };
443
-
444
- export const UpdatePromptPromptsType = {
445
- Prompt: "prompt",
446
- } as const;
447
- export type UpdatePromptPromptsType = ClosedEnum<
448
- typeof UpdatePromptPromptsType
449
- >;
450
-
451
- /**
452
- * The modality of the model
453
- */
454
- export const UpdatePromptPromptsModelType = {
455
- Chat: "chat",
456
- Completion: "completion",
457
- Embedding: "embedding",
458
- Vision: "vision",
459
- Image: "image",
460
- Tts: "tts",
461
- Stt: "stt",
462
- Rerank: "rerank",
463
- Moderations: "moderations",
464
- } as const;
465
- /**
466
- * The modality of the model
467
- */
468
- export type UpdatePromptPromptsModelType = ClosedEnum<
469
- typeof UpdatePromptPromptsModelType
470
- >;
471
-
472
- /**
473
- * Only supported on `image` models.
474
- */
475
- export const UpdatePromptPromptsFormat = {
476
- Url: "url",
477
- B64Json: "b64_json",
478
- Text: "text",
479
- JsonObject: "json_object",
480
- } as const;
481
- /**
482
- * Only supported on `image` models.
483
- */
484
- export type UpdatePromptPromptsFormat = ClosedEnum<
485
- typeof UpdatePromptPromptsFormat
486
- >;
487
-
488
- export const UpdatePromptResponseFormatPromptsResponse200Type = {
489
- JsonObject: "json_object",
490
- } as const;
491
- export type UpdatePromptResponseFormatPromptsResponse200Type = ClosedEnum<
492
- typeof UpdatePromptResponseFormatPromptsResponse200Type
493
- >;
494
-
495
- export type UpdatePromptResponseFormatPrompts2 = {
496
- type: UpdatePromptResponseFormatPromptsResponse200Type;
497
- };
498
-
499
- export const UpdatePromptResponseFormatPromptsResponseType = {
500
- JsonSchema: "json_schema",
501
- } as const;
502
- export type UpdatePromptResponseFormatPromptsResponseType = ClosedEnum<
503
- typeof UpdatePromptResponseFormatPromptsResponseType
504
- >;
505
-
506
- export type UpdatePromptResponseFormatJsonSchema = {
507
- name: string;
508
- strict: boolean;
509
- schema: { [k: string]: any };
510
- };
511
-
512
- export type UpdatePromptResponseFormatPrompts1 = {
513
- type: UpdatePromptResponseFormatPromptsResponseType;
514
- jsonSchema: UpdatePromptResponseFormatJsonSchema;
515
- };
516
-
517
- /**
518
- * An object specifying the format that the model must output.
519
- *
520
- * @remarks
521
- *
522
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
523
- *
524
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
525
- *
526
- * 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.
527
- */
528
- export type UpdatePromptPromptsResponseFormat =
529
- | UpdatePromptResponseFormatPrompts2
530
- | UpdatePromptResponseFormatPrompts1;
531
-
532
- /**
533
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
534
- */
535
- export const UpdatePromptPromptsPhotoRealVersion = {
536
- V1: "v1",
537
- V2: "v2",
538
- } as const;
539
- /**
540
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
541
- */
542
- export type UpdatePromptPromptsPhotoRealVersion = ClosedEnum<
543
- typeof UpdatePromptPromptsPhotoRealVersion
544
- >;
545
-
546
- /**
547
- * The format to return the embeddings
548
- */
549
- export const UpdatePromptPromptsEncodingFormat = {
550
- Float: "float",
551
- Base64: "base64",
552
- } as const;
553
- /**
554
- * The format to return the embeddings
555
- */
556
- export type UpdatePromptPromptsEncodingFormat = ClosedEnum<
557
- typeof UpdatePromptPromptsEncodingFormat
558
- >;
559
-
560
- /**
561
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
562
- */
563
- export const UpdatePromptPromptsReasoningEffort = {
564
- Low: "low",
565
- Medium: "medium",
566
- High: "high",
567
- } as const;
568
- /**
569
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
570
- */
571
- export type UpdatePromptPromptsReasoningEffort = ClosedEnum<
572
- typeof UpdatePromptPromptsReasoningEffort
573
- >;
574
-
575
- /**
576
- * Model Parameters: Not all parameters apply to every model
577
- */
578
- export type UpdatePromptPromptsModelParameters = {
579
- /**
580
- * Only supported on `chat` and `completion` models.
581
- */
582
- temperature?: number | undefined;
583
- /**
584
- * Only supported on `chat` and `completion` models.
585
- */
586
- maxTokens?: number | undefined;
587
- /**
588
- * Only supported on `chat` and `completion` models.
589
- */
590
- topK?: number | undefined;
591
- /**
592
- * Only supported on `chat` and `completion` models.
593
- */
594
- topP?: number | undefined;
595
- /**
596
- * Only supported on `chat` and `completion` models.
597
- */
598
- frequencyPenalty?: number | undefined;
599
- /**
600
- * Only supported on `chat` and `completion` models.
601
- */
602
- presencePenalty?: number | undefined;
603
- /**
604
- * Only supported on `image` models.
605
- */
606
- numImages?: number | undefined;
607
- /**
608
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
609
- */
610
- seed?: number | undefined;
611
- /**
612
- * Only supported on `image` models.
613
- */
614
- format?: UpdatePromptPromptsFormat | undefined;
615
- /**
616
- * Only supported on `image` models.
617
- */
618
- dimensions?: string | undefined;
619
- /**
620
- * Only supported on `image` models.
621
- */
622
- quality?: string | undefined;
623
- /**
624
- * Only supported on `image` models.
625
- */
626
- style?: string | undefined;
627
- /**
628
- * An object specifying the format that the model must output.
629
- *
630
- * @remarks
631
- *
632
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
633
- *
634
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
635
- *
636
- * 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.
637
- */
638
- responseFormat?:
639
- | UpdatePromptResponseFormatPrompts2
640
- | UpdatePromptResponseFormatPrompts1
641
- | null
642
- | undefined;
643
- /**
644
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
645
- */
646
- photoRealVersion?: UpdatePromptPromptsPhotoRealVersion | undefined;
647
- /**
648
- * The format to return the embeddings
649
- */
650
- encodingFormat?: UpdatePromptPromptsEncodingFormat | undefined;
651
- /**
652
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
653
- */
654
- reasoningEffort?: UpdatePromptPromptsReasoningEffort | undefined;
655
- /**
656
- * 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`
657
- */
658
- budgetTokens?: number | undefined;
659
- };
660
-
661
- export const UpdatePromptPromptsProvider = {
662
- Cohere: "cohere",
663
- Openai: "openai",
664
- Anthropic: "anthropic",
665
- Huggingface: "huggingface",
666
- Replicate: "replicate",
667
- Google: "google",
668
- GoogleAi: "google-ai",
669
- Azure: "azure",
670
- Aws: "aws",
671
- Anyscale: "anyscale",
672
- Perplexity: "perplexity",
673
- Groq: "groq",
674
- Fal: "fal",
675
- Leonardoai: "leonardoai",
676
- Nvidia: "nvidia",
677
- Jina: "jina",
678
- Togetherai: "togetherai",
679
- Elevenlabs: "elevenlabs",
680
- } as const;
681
- export type UpdatePromptPromptsProvider = ClosedEnum<
682
- typeof UpdatePromptPromptsProvider
683
- >;
684
-
685
- /**
686
- * The role of the prompt message
687
- */
688
- export const UpdatePromptPromptsRole = {
689
- System: "system",
690
- Assistant: "assistant",
691
- User: "user",
692
- Exception: "exception",
693
- Tool: "tool",
694
- Prompt: "prompt",
695
- Correction: "correction",
696
- ExpectedOutput: "expected_output",
697
- } as const;
698
- /**
699
- * The role of the prompt message
700
- */
701
- export type UpdatePromptPromptsRole = ClosedEnum<
702
- typeof UpdatePromptPromptsRole
703
- >;
704
-
705
- export const UpdatePrompt2PromptsResponse200Type = {
706
- ImageUrl: "image_url",
707
- } as const;
708
- export type UpdatePrompt2PromptsResponse200Type = ClosedEnum<
709
- typeof UpdatePrompt2PromptsResponse200Type
710
- >;
711
-
712
- export type UpdatePrompt2PromptsImageUrl = {
713
- /**
714
- * The orq.ai id of the image
715
- */
716
- id?: string | undefined;
717
- /**
718
- * Either a URL of the image or the base64 encoded data URI.
719
- */
720
- url: string;
721
- /**
722
- * Specifies the detail level of the image. Currently only supported with OpenAI models
723
- */
724
- detail?: string | undefined;
725
- };
726
-
727
- /**
728
- * The image part of the prompt message. Only supported with vision models.
729
- */
730
- export type UpdatePrompt2Prompts2 = {
731
- type: UpdatePrompt2PromptsResponse200Type;
732
- imageUrl: UpdatePrompt2PromptsImageUrl;
733
- };
734
-
735
- export const UpdatePrompt2PromptsResponseType = {
736
- Text: "text",
737
- } as const;
738
- export type UpdatePrompt2PromptsResponseType = ClosedEnum<
739
- typeof UpdatePrompt2PromptsResponseType
740
- >;
741
-
742
- /**
743
- * Text content part of a prompt message
744
- */
745
- export type UpdatePrompt2Prompts1 = {
746
- type: UpdatePrompt2PromptsResponseType;
747
- text: string;
748
- };
749
-
750
- export type UpdatePromptContentPrompts2 =
751
- | UpdatePrompt2Prompts1
752
- | UpdatePrompt2Prompts2;
753
-
754
- /**
755
- * 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.
756
- */
757
- export type UpdatePromptPromptsContent =
758
- | string
759
- | Array<UpdatePrompt2Prompts1 | UpdatePrompt2Prompts2>;
760
-
761
- export const UpdatePromptPromptsResponseType = {
762
- Function: "function",
763
- } as const;
764
- export type UpdatePromptPromptsResponseType = ClosedEnum<
765
- typeof UpdatePromptPromptsResponseType
766
- >;
767
-
768
- export type UpdatePromptPromptsFunction = {
769
- name: string;
770
- /**
771
- * JSON string arguments for the functions
772
- */
773
- arguments: string;
774
- };
775
-
776
- export type UpdatePromptPromptsToolCalls = {
777
- id?: string | undefined;
778
- index?: number | undefined;
779
- type: UpdatePromptPromptsResponseType;
780
- function: UpdatePromptPromptsFunction;
781
- };
782
-
783
- export type UpdatePromptPromptsMessages = {
784
- /**
785
- * The role of the prompt message
786
- */
787
- role: UpdatePromptPromptsRole;
788
- /**
789
- * 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.
790
- */
791
- content: string | Array<UpdatePrompt2Prompts1 | UpdatePrompt2Prompts2>;
792
- toolCalls?: Array<UpdatePromptPromptsToolCalls> | undefined;
793
- toolCallId?: string | undefined;
794
- };
795
-
796
- /**
797
- * A list of messages compatible with the openAI schema
798
- */
799
- export type UpdatePromptPromptsPromptConfig = {
800
- stream?: boolean | undefined;
801
- model?: string | undefined;
802
- /**
803
- * The id of the resource
804
- */
805
- modelDbId?: string | undefined;
806
- /**
807
- * The modality of the model
808
- */
809
- modelType?: UpdatePromptPromptsModelType | undefined;
810
- /**
811
- * Model Parameters: Not all parameters apply to every model
812
- */
813
- modelParameters?: UpdatePromptPromptsModelParameters | undefined;
814
- provider?: UpdatePromptPromptsProvider | undefined;
815
- /**
816
- * The id of the resource
817
- */
818
- integrationId?: string | null | undefined;
819
- version?: string | undefined;
820
- messages: Array<UpdatePromptPromptsMessages>;
821
- };
822
-
823
- export const UpdatePromptPromptsUseCases = {
824
- AgentsSimulations: "Agents simulations",
825
- Agents: "Agents",
826
- APIInteraction: "API interaction",
827
- AutonomousAgents: "Autonomous Agents",
828
- Chatbots: "Chatbots",
829
- Classification: "Classification",
830
- CodeUnderstanding: "Code understanding",
831
- CodeWriting: "Code writing",
832
- Conversation: "Conversation",
833
- DocumentsQA: "Documents QA",
834
- Evaluation: "Evaluation",
835
- Extraction: "Extraction",
836
- MultiModal: "Multi-modal",
837
- SelfChecking: "Self-checking",
838
- SentimentAnalysis: "Sentiment analysis",
839
- Sql: "SQL",
840
- Summarization: "Summarization",
841
- Tagging: "Tagging",
842
- TranslationDocument: "Translation (document)",
843
- TranslationSentences: "Translation (sentences)",
844
- } as const;
845
- export type UpdatePromptPromptsUseCases = ClosedEnum<
846
- typeof UpdatePromptPromptsUseCases
847
- >;
848
-
849
- /**
850
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
851
- */
852
- export const UpdatePromptPromptsLanguage = {
853
- Chinese: "Chinese",
854
- Dutch: "Dutch",
855
- English: "English",
856
- French: "French",
857
- German: "German",
858
- Russian: "Russian",
859
- Spanish: "Spanish",
860
- } as const;
861
- /**
862
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
863
- */
864
- export type UpdatePromptPromptsLanguage = ClosedEnum<
865
- typeof UpdatePromptPromptsLanguage
866
- >;
867
-
868
- export type UpdatePromptPromptsMetadata = {
869
- /**
870
- * 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
871
- */
872
- useCases?: Array<UpdatePromptPromptsUseCases> | undefined;
873
- /**
874
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
875
- */
876
- language?: UpdatePromptPromptsLanguage | null | undefined;
877
- };
878
-
879
- /**
880
- * Prompt updated.
881
- */
882
- export type UpdatePromptResponseBody = {
883
- id: string;
884
- type: UpdatePromptPromptsType;
885
- owner: string;
886
- domainId: string;
887
- created: string;
888
- updated: string;
889
- createdById?: string | null | undefined;
890
- updatedById?: string | null | undefined;
891
- /**
892
- * The prompt’s name, meant to be displayable in the UI.
893
- */
894
- displayName: string;
895
- /**
896
- * 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
897
- */
898
- description?: string | null | undefined;
899
- /**
900
- * A list of messages compatible with the openAI schema
901
- */
902
- promptConfig: UpdatePromptPromptsPromptConfig;
903
- metadata?: UpdatePromptPromptsMetadata | undefined;
904
- };
905
-
906
- /** @internal */
907
- export const UpdatePromptModelType$inboundSchema: z.ZodNativeEnum<
908
- typeof UpdatePromptModelType
909
- > = z.nativeEnum(UpdatePromptModelType);
910
-
911
- /** @internal */
912
- export const UpdatePromptModelType$outboundSchema: z.ZodNativeEnum<
913
- typeof UpdatePromptModelType
914
- > = UpdatePromptModelType$inboundSchema;
915
-
916
- /**
917
- * @internal
918
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
919
- */
920
- export namespace UpdatePromptModelType$ {
921
- /** @deprecated use `UpdatePromptModelType$inboundSchema` instead. */
922
- export const inboundSchema = UpdatePromptModelType$inboundSchema;
923
- /** @deprecated use `UpdatePromptModelType$outboundSchema` instead. */
924
- export const outboundSchema = UpdatePromptModelType$outboundSchema;
925
- }
926
-
927
- /** @internal */
928
- export const UpdatePromptFormat$inboundSchema: z.ZodNativeEnum<
929
- typeof UpdatePromptFormat
930
- > = z.nativeEnum(UpdatePromptFormat);
931
-
932
- /** @internal */
933
- export const UpdatePromptFormat$outboundSchema: z.ZodNativeEnum<
934
- typeof UpdatePromptFormat
935
- > = UpdatePromptFormat$inboundSchema;
936
-
937
- /**
938
- * @internal
939
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
940
- */
941
- export namespace UpdatePromptFormat$ {
942
- /** @deprecated use `UpdatePromptFormat$inboundSchema` instead. */
943
- export const inboundSchema = UpdatePromptFormat$inboundSchema;
944
- /** @deprecated use `UpdatePromptFormat$outboundSchema` instead. */
945
- export const outboundSchema = UpdatePromptFormat$outboundSchema;
946
- }
947
-
948
- /** @internal */
949
- export const UpdatePromptResponseFormatPromptsType$inboundSchema:
950
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> = z.nativeEnum(
951
- UpdatePromptResponseFormatPromptsType,
952
- );
953
-
954
- /** @internal */
955
- export const UpdatePromptResponseFormatPromptsType$outboundSchema:
956
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> =
957
- UpdatePromptResponseFormatPromptsType$inboundSchema;
958
-
959
- /**
960
- * @internal
961
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
962
- */
963
- export namespace UpdatePromptResponseFormatPromptsType$ {
964
- /** @deprecated use `UpdatePromptResponseFormatPromptsType$inboundSchema` instead. */
965
- export const inboundSchema =
966
- UpdatePromptResponseFormatPromptsType$inboundSchema;
967
- /** @deprecated use `UpdatePromptResponseFormatPromptsType$outboundSchema` instead. */
968
- export const outboundSchema =
969
- UpdatePromptResponseFormatPromptsType$outboundSchema;
970
- }
971
-
972
- /** @internal */
973
- export const UpdatePromptResponseFormat2$inboundSchema: z.ZodType<
974
- UpdatePromptResponseFormat2,
975
- z.ZodTypeDef,
976
- unknown
977
- > = z.object({
978
- type: UpdatePromptResponseFormatPromptsType$inboundSchema,
979
- });
980
-
981
- /** @internal */
982
- export type UpdatePromptResponseFormat2$Outbound = {
983
- type: string;
984
- };
985
-
986
- /** @internal */
987
- export const UpdatePromptResponseFormat2$outboundSchema: z.ZodType<
988
- UpdatePromptResponseFormat2$Outbound,
989
- z.ZodTypeDef,
990
- UpdatePromptResponseFormat2
991
- > = z.object({
992
- type: UpdatePromptResponseFormatPromptsType$outboundSchema,
993
- });
994
-
995
- /**
996
- * @internal
997
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
998
- */
999
- export namespace UpdatePromptResponseFormat2$ {
1000
- /** @deprecated use `UpdatePromptResponseFormat2$inboundSchema` instead. */
1001
- export const inboundSchema = UpdatePromptResponseFormat2$inboundSchema;
1002
- /** @deprecated use `UpdatePromptResponseFormat2$outboundSchema` instead. */
1003
- export const outboundSchema = UpdatePromptResponseFormat2$outboundSchema;
1004
- /** @deprecated use `UpdatePromptResponseFormat2$Outbound` instead. */
1005
- export type Outbound = UpdatePromptResponseFormat2$Outbound;
1006
- }
1007
-
1008
- export function updatePromptResponseFormat2ToJSON(
1009
- updatePromptResponseFormat2: UpdatePromptResponseFormat2,
1010
- ): string {
1011
- return JSON.stringify(
1012
- UpdatePromptResponseFormat2$outboundSchema.parse(
1013
- updatePromptResponseFormat2,
1014
- ),
1015
- );
1016
- }
1017
-
1018
- export function updatePromptResponseFormat2FromJSON(
1019
- jsonString: string,
1020
- ): SafeParseResult<UpdatePromptResponseFormat2, SDKValidationError> {
1021
- return safeParse(
1022
- jsonString,
1023
- (x) => UpdatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1024
- `Failed to parse 'UpdatePromptResponseFormat2' from JSON`,
1025
- );
1026
- }
1027
-
1028
- /** @internal */
1029
- export const UpdatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
1030
- typeof UpdatePromptResponseFormatType
1031
- > = z.nativeEnum(UpdatePromptResponseFormatType);
1032
-
1033
- /** @internal */
1034
- export const UpdatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
1035
- typeof UpdatePromptResponseFormatType
1036
- > = UpdatePromptResponseFormatType$inboundSchema;
1037
-
1038
- /**
1039
- * @internal
1040
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1041
- */
1042
- export namespace UpdatePromptResponseFormatType$ {
1043
- /** @deprecated use `UpdatePromptResponseFormatType$inboundSchema` instead. */
1044
- export const inboundSchema = UpdatePromptResponseFormatType$inboundSchema;
1045
- /** @deprecated use `UpdatePromptResponseFormatType$outboundSchema` instead. */
1046
- export const outboundSchema = UpdatePromptResponseFormatType$outboundSchema;
1047
- }
1048
-
1049
- /** @internal */
1050
- export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
1051
- ResponseFormatJsonSchema,
1052
- z.ZodTypeDef,
1053
- unknown
1054
- > = z.object({
1055
- name: z.string(),
1056
- strict: z.boolean(),
1057
- schema: z.record(z.any()),
1058
- });
1059
-
1060
- /** @internal */
1061
- export type ResponseFormatJsonSchema$Outbound = {
1062
- name: string;
1063
- strict: boolean;
1064
- schema: { [k: string]: any };
1065
- };
1066
-
1067
- /** @internal */
1068
- export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
1069
- ResponseFormatJsonSchema$Outbound,
1070
- z.ZodTypeDef,
1071
- ResponseFormatJsonSchema
1072
- > = z.object({
1073
- name: z.string(),
1074
- strict: z.boolean(),
1075
- schema: z.record(z.any()),
1076
- });
1077
-
1078
- /**
1079
- * @internal
1080
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1081
- */
1082
- export namespace ResponseFormatJsonSchema$ {
1083
- /** @deprecated use `ResponseFormatJsonSchema$inboundSchema` instead. */
1084
- export const inboundSchema = ResponseFormatJsonSchema$inboundSchema;
1085
- /** @deprecated use `ResponseFormatJsonSchema$outboundSchema` instead. */
1086
- export const outboundSchema = ResponseFormatJsonSchema$outboundSchema;
1087
- /** @deprecated use `ResponseFormatJsonSchema$Outbound` instead. */
1088
- export type Outbound = ResponseFormatJsonSchema$Outbound;
1089
- }
1090
-
1091
- export function responseFormatJsonSchemaToJSON(
1092
- responseFormatJsonSchema: ResponseFormatJsonSchema,
1093
- ): string {
1094
- return JSON.stringify(
1095
- ResponseFormatJsonSchema$outboundSchema.parse(responseFormatJsonSchema),
1096
- );
1097
- }
1098
-
1099
- export function responseFormatJsonSchemaFromJSON(
1100
- jsonString: string,
1101
- ): SafeParseResult<ResponseFormatJsonSchema, SDKValidationError> {
1102
- return safeParse(
1103
- jsonString,
1104
- (x) => ResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1105
- `Failed to parse 'ResponseFormatJsonSchema' from JSON`,
1106
- );
1107
- }
1108
-
1109
- /** @internal */
1110
- export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
1111
- UpdatePromptResponseFormat1,
1112
- z.ZodTypeDef,
1113
- unknown
1114
- > = z.object({
1115
- type: UpdatePromptResponseFormatType$inboundSchema,
1116
- json_schema: z.lazy(() => ResponseFormatJsonSchema$inboundSchema),
1117
- }).transform((v) => {
1118
- return remap$(v, {
1119
- "json_schema": "jsonSchema",
1120
- });
1121
- });
1122
-
1123
- /** @internal */
1124
- export type UpdatePromptResponseFormat1$Outbound = {
1125
- type: string;
1126
- json_schema: ResponseFormatJsonSchema$Outbound;
1127
- };
1128
-
1129
- /** @internal */
1130
- export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
1131
- UpdatePromptResponseFormat1$Outbound,
1132
- z.ZodTypeDef,
1133
- UpdatePromptResponseFormat1
1134
- > = z.object({
1135
- type: UpdatePromptResponseFormatType$outboundSchema,
1136
- jsonSchema: z.lazy(() => ResponseFormatJsonSchema$outboundSchema),
1137
- }).transform((v) => {
1138
- return remap$(v, {
1139
- jsonSchema: "json_schema",
1140
- });
1141
- });
1142
-
1143
- /**
1144
- * @internal
1145
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1146
- */
1147
- export namespace UpdatePromptResponseFormat1$ {
1148
- /** @deprecated use `UpdatePromptResponseFormat1$inboundSchema` instead. */
1149
- export const inboundSchema = UpdatePromptResponseFormat1$inboundSchema;
1150
- /** @deprecated use `UpdatePromptResponseFormat1$outboundSchema` instead. */
1151
- export const outboundSchema = UpdatePromptResponseFormat1$outboundSchema;
1152
- /** @deprecated use `UpdatePromptResponseFormat1$Outbound` instead. */
1153
- export type Outbound = UpdatePromptResponseFormat1$Outbound;
1154
- }
1155
-
1156
- export function updatePromptResponseFormat1ToJSON(
1157
- updatePromptResponseFormat1: UpdatePromptResponseFormat1,
1158
- ): string {
1159
- return JSON.stringify(
1160
- UpdatePromptResponseFormat1$outboundSchema.parse(
1161
- updatePromptResponseFormat1,
1162
- ),
1163
- );
1164
- }
1165
-
1166
- export function updatePromptResponseFormat1FromJSON(
1167
- jsonString: string,
1168
- ): SafeParseResult<UpdatePromptResponseFormat1, SDKValidationError> {
1169
- return safeParse(
1170
- jsonString,
1171
- (x) => UpdatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1172
- `Failed to parse 'UpdatePromptResponseFormat1' from JSON`,
1173
- );
1174
- }
1175
-
1176
- /** @internal */
1177
- export const UpdatePromptResponseFormat$inboundSchema: z.ZodType<
1178
- UpdatePromptResponseFormat,
1179
- z.ZodTypeDef,
1180
- unknown
1181
- > = z.union([
1182
- z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
1183
- z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
1184
- ]);
1185
-
1186
- /** @internal */
1187
- export type UpdatePromptResponseFormat$Outbound =
1188
- | UpdatePromptResponseFormat2$Outbound
1189
- | UpdatePromptResponseFormat1$Outbound;
1190
-
1191
- /** @internal */
1192
- export const UpdatePromptResponseFormat$outboundSchema: z.ZodType<
1193
- UpdatePromptResponseFormat$Outbound,
1194
- z.ZodTypeDef,
1195
- UpdatePromptResponseFormat
1196
- > = z.union([
1197
- z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
1198
- z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
1199
- ]);
1200
-
1201
- /**
1202
- * @internal
1203
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1204
- */
1205
- export namespace UpdatePromptResponseFormat$ {
1206
- /** @deprecated use `UpdatePromptResponseFormat$inboundSchema` instead. */
1207
- export const inboundSchema = UpdatePromptResponseFormat$inboundSchema;
1208
- /** @deprecated use `UpdatePromptResponseFormat$outboundSchema` instead. */
1209
- export const outboundSchema = UpdatePromptResponseFormat$outboundSchema;
1210
- /** @deprecated use `UpdatePromptResponseFormat$Outbound` instead. */
1211
- export type Outbound = UpdatePromptResponseFormat$Outbound;
1212
- }
1213
-
1214
- export function updatePromptResponseFormatToJSON(
1215
- updatePromptResponseFormat: UpdatePromptResponseFormat,
1216
- ): string {
1217
- return JSON.stringify(
1218
- UpdatePromptResponseFormat$outboundSchema.parse(updatePromptResponseFormat),
1219
- );
1220
- }
1221
-
1222
- export function updatePromptResponseFormatFromJSON(
1223
- jsonString: string,
1224
- ): SafeParseResult<UpdatePromptResponseFormat, SDKValidationError> {
1225
- return safeParse(
1226
- jsonString,
1227
- (x) => UpdatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
1228
- `Failed to parse 'UpdatePromptResponseFormat' from JSON`,
1229
- );
1230
- }
1231
-
1232
- /** @internal */
1233
- export const UpdatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1234
- typeof UpdatePromptPhotoRealVersion
1235
- > = z.nativeEnum(UpdatePromptPhotoRealVersion);
1236
-
1237
- /** @internal */
1238
- export const UpdatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1239
- typeof UpdatePromptPhotoRealVersion
1240
- > = UpdatePromptPhotoRealVersion$inboundSchema;
1241
-
1242
- /**
1243
- * @internal
1244
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1245
- */
1246
- export namespace UpdatePromptPhotoRealVersion$ {
1247
- /** @deprecated use `UpdatePromptPhotoRealVersion$inboundSchema` instead. */
1248
- export const inboundSchema = UpdatePromptPhotoRealVersion$inboundSchema;
1249
- /** @deprecated use `UpdatePromptPhotoRealVersion$outboundSchema` instead. */
1250
- export const outboundSchema = UpdatePromptPhotoRealVersion$outboundSchema;
1251
- }
1252
-
1253
- /** @internal */
1254
- export const UpdatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
1255
- typeof UpdatePromptEncodingFormat
1256
- > = z.nativeEnum(UpdatePromptEncodingFormat);
1257
-
1258
- /** @internal */
1259
- export const UpdatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
1260
- typeof UpdatePromptEncodingFormat
1261
- > = UpdatePromptEncodingFormat$inboundSchema;
1262
-
1263
- /**
1264
- * @internal
1265
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1266
- */
1267
- export namespace UpdatePromptEncodingFormat$ {
1268
- /** @deprecated use `UpdatePromptEncodingFormat$inboundSchema` instead. */
1269
- export const inboundSchema = UpdatePromptEncodingFormat$inboundSchema;
1270
- /** @deprecated use `UpdatePromptEncodingFormat$outboundSchema` instead. */
1271
- export const outboundSchema = UpdatePromptEncodingFormat$outboundSchema;
1272
- }
1273
-
1274
- /** @internal */
1275
- export const UpdatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
1276
- typeof UpdatePromptReasoningEffort
1277
- > = z.nativeEnum(UpdatePromptReasoningEffort);
1278
-
1279
- /** @internal */
1280
- export const UpdatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
1281
- typeof UpdatePromptReasoningEffort
1282
- > = UpdatePromptReasoningEffort$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 UpdatePromptReasoningEffort$ {
1289
- /** @deprecated use `UpdatePromptReasoningEffort$inboundSchema` instead. */
1290
- export const inboundSchema = UpdatePromptReasoningEffort$inboundSchema;
1291
- /** @deprecated use `UpdatePromptReasoningEffort$outboundSchema` instead. */
1292
- export const outboundSchema = UpdatePromptReasoningEffort$outboundSchema;
1293
- }
1294
-
1295
- /** @internal */
1296
- export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
1297
- UpdatePromptModelParameters,
1298
- z.ZodTypeDef,
1299
- unknown
1300
- > = z.object({
1301
- temperature: z.number().optional(),
1302
- maxTokens: z.number().optional(),
1303
- topK: z.number().optional(),
1304
- topP: z.number().optional(),
1305
- frequencyPenalty: z.number().optional(),
1306
- presencePenalty: z.number().optional(),
1307
- numImages: z.number().optional(),
1308
- seed: z.number().optional(),
1309
- format: UpdatePromptFormat$inboundSchema.optional(),
1310
- dimensions: z.string().optional(),
1311
- quality: z.string().optional(),
1312
- style: z.string().optional(),
1313
- responseFormat: z.nullable(
1314
- z.union([
1315
- z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
1316
- z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
1317
- ]),
1318
- ).optional(),
1319
- photoRealVersion: UpdatePromptPhotoRealVersion$inboundSchema.optional(),
1320
- encoding_format: UpdatePromptEncodingFormat$inboundSchema.optional(),
1321
- reasoningEffort: UpdatePromptReasoningEffort$inboundSchema.optional(),
1322
- budgetTokens: z.number().optional(),
1323
- }).transform((v) => {
1324
- return remap$(v, {
1325
- "encoding_format": "encodingFormat",
1326
- });
1327
- });
1328
-
1329
- /** @internal */
1330
- export type UpdatePromptModelParameters$Outbound = {
1331
- temperature?: number | undefined;
1332
- maxTokens?: number | undefined;
1333
- topK?: number | undefined;
1334
- topP?: number | undefined;
1335
- frequencyPenalty?: number | undefined;
1336
- presencePenalty?: number | undefined;
1337
- numImages?: number | undefined;
1338
- seed?: number | undefined;
1339
- format?: string | undefined;
1340
- dimensions?: string | undefined;
1341
- quality?: string | undefined;
1342
- style?: string | undefined;
1343
- responseFormat?:
1344
- | UpdatePromptResponseFormat2$Outbound
1345
- | UpdatePromptResponseFormat1$Outbound
1346
- | null
1347
- | undefined;
1348
- photoRealVersion?: string | undefined;
1349
- encoding_format?: string | undefined;
1350
- reasoningEffort?: string | undefined;
1351
- budgetTokens?: number | undefined;
1352
- };
1353
-
1354
- /** @internal */
1355
- export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
1356
- UpdatePromptModelParameters$Outbound,
1357
- z.ZodTypeDef,
1358
- UpdatePromptModelParameters
1359
- > = z.object({
1360
- temperature: z.number().optional(),
1361
- maxTokens: z.number().optional(),
1362
- topK: z.number().optional(),
1363
- topP: z.number().optional(),
1364
- frequencyPenalty: z.number().optional(),
1365
- presencePenalty: z.number().optional(),
1366
- numImages: z.number().optional(),
1367
- seed: z.number().optional(),
1368
- format: UpdatePromptFormat$outboundSchema.optional(),
1369
- dimensions: z.string().optional(),
1370
- quality: z.string().optional(),
1371
- style: z.string().optional(),
1372
- responseFormat: z.nullable(
1373
- z.union([
1374
- z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
1375
- z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
1376
- ]),
1377
- ).optional(),
1378
- photoRealVersion: UpdatePromptPhotoRealVersion$outboundSchema.optional(),
1379
- encodingFormat: UpdatePromptEncodingFormat$outboundSchema.optional(),
1380
- reasoningEffort: UpdatePromptReasoningEffort$outboundSchema.optional(),
1381
- budgetTokens: z.number().optional(),
1382
- }).transform((v) => {
1383
- return remap$(v, {
1384
- encodingFormat: "encoding_format",
1385
- });
1386
- });
1387
-
1388
- /**
1389
- * @internal
1390
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1391
- */
1392
- export namespace UpdatePromptModelParameters$ {
1393
- /** @deprecated use `UpdatePromptModelParameters$inboundSchema` instead. */
1394
- export const inboundSchema = UpdatePromptModelParameters$inboundSchema;
1395
- /** @deprecated use `UpdatePromptModelParameters$outboundSchema` instead. */
1396
- export const outboundSchema = UpdatePromptModelParameters$outboundSchema;
1397
- /** @deprecated use `UpdatePromptModelParameters$Outbound` instead. */
1398
- export type Outbound = UpdatePromptModelParameters$Outbound;
1399
- }
1400
-
1401
- export function updatePromptModelParametersToJSON(
1402
- updatePromptModelParameters: UpdatePromptModelParameters,
1403
- ): string {
1404
- return JSON.stringify(
1405
- UpdatePromptModelParameters$outboundSchema.parse(
1406
- updatePromptModelParameters,
1407
- ),
1408
- );
1409
- }
1410
-
1411
- export function updatePromptModelParametersFromJSON(
1412
- jsonString: string,
1413
- ): SafeParseResult<UpdatePromptModelParameters, SDKValidationError> {
1414
- return safeParse(
1415
- jsonString,
1416
- (x) => UpdatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
1417
- `Failed to parse 'UpdatePromptModelParameters' from JSON`,
1418
- );
1419
- }
1420
-
1421
- /** @internal */
1422
- export const UpdatePromptProvider$inboundSchema: z.ZodNativeEnum<
1423
- typeof UpdatePromptProvider
1424
- > = z.nativeEnum(UpdatePromptProvider);
1425
-
1426
- /** @internal */
1427
- export const UpdatePromptProvider$outboundSchema: z.ZodNativeEnum<
1428
- typeof UpdatePromptProvider
1429
- > = UpdatePromptProvider$inboundSchema;
1430
-
1431
- /**
1432
- * @internal
1433
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1434
- */
1435
- export namespace UpdatePromptProvider$ {
1436
- /** @deprecated use `UpdatePromptProvider$inboundSchema` instead. */
1437
- export const inboundSchema = UpdatePromptProvider$inboundSchema;
1438
- /** @deprecated use `UpdatePromptProvider$outboundSchema` instead. */
1439
- export const outboundSchema = UpdatePromptProvider$outboundSchema;
1440
- }
1441
-
1442
- /** @internal */
1443
- export const UpdatePromptRole$inboundSchema: z.ZodNativeEnum<
1444
- typeof UpdatePromptRole
1445
- > = z.nativeEnum(UpdatePromptRole);
1446
-
1447
- /** @internal */
1448
- export const UpdatePromptRole$outboundSchema: z.ZodNativeEnum<
1449
- typeof UpdatePromptRole
1450
- > = UpdatePromptRole$inboundSchema;
1451
-
1452
- /**
1453
- * @internal
1454
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1455
- */
1456
- export namespace UpdatePromptRole$ {
1457
- /** @deprecated use `UpdatePromptRole$inboundSchema` instead. */
1458
- export const inboundSchema = UpdatePromptRole$inboundSchema;
1459
- /** @deprecated use `UpdatePromptRole$outboundSchema` instead. */
1460
- export const outboundSchema = UpdatePromptRole$outboundSchema;
1461
- }
1462
-
1463
- /** @internal */
1464
- export const UpdatePrompt2PromptsType$inboundSchema: z.ZodNativeEnum<
1465
- typeof UpdatePrompt2PromptsType
1466
- > = z.nativeEnum(UpdatePrompt2PromptsType);
1467
-
1468
- /** @internal */
1469
- export const UpdatePrompt2PromptsType$outboundSchema: z.ZodNativeEnum<
1470
- typeof UpdatePrompt2PromptsType
1471
- > = UpdatePrompt2PromptsType$inboundSchema;
1472
-
1473
- /**
1474
- * @internal
1475
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1476
- */
1477
- export namespace UpdatePrompt2PromptsType$ {
1478
- /** @deprecated use `UpdatePrompt2PromptsType$inboundSchema` instead. */
1479
- export const inboundSchema = UpdatePrompt2PromptsType$inboundSchema;
1480
- /** @deprecated use `UpdatePrompt2PromptsType$outboundSchema` instead. */
1481
- export const outboundSchema = UpdatePrompt2PromptsType$outboundSchema;
1482
- }
1483
-
1484
- /** @internal */
1485
- export const UpdatePrompt2ImageUrl$inboundSchema: z.ZodType<
1486
- UpdatePrompt2ImageUrl,
1487
- z.ZodTypeDef,
1488
- unknown
1489
- > = z.object({
1490
- url: z.string(),
1491
- detail: z.string().optional(),
1492
- });
1493
-
1494
- /** @internal */
1495
- export type UpdatePrompt2ImageUrl$Outbound = {
1496
- url: string;
1497
- detail?: string | undefined;
1498
- };
1499
-
1500
- /** @internal */
1501
- export const UpdatePrompt2ImageUrl$outboundSchema: z.ZodType<
1502
- UpdatePrompt2ImageUrl$Outbound,
1503
- z.ZodTypeDef,
1504
- UpdatePrompt2ImageUrl
1505
- > = z.object({
1506
- url: z.string(),
1507
- detail: z.string().optional(),
1508
- });
1509
-
1510
- /**
1511
- * @internal
1512
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1513
- */
1514
- export namespace UpdatePrompt2ImageUrl$ {
1515
- /** @deprecated use `UpdatePrompt2ImageUrl$inboundSchema` instead. */
1516
- export const inboundSchema = UpdatePrompt2ImageUrl$inboundSchema;
1517
- /** @deprecated use `UpdatePrompt2ImageUrl$outboundSchema` instead. */
1518
- export const outboundSchema = UpdatePrompt2ImageUrl$outboundSchema;
1519
- /** @deprecated use `UpdatePrompt2ImageUrl$Outbound` instead. */
1520
- export type Outbound = UpdatePrompt2ImageUrl$Outbound;
1521
- }
1522
-
1523
- export function updatePrompt2ImageUrlToJSON(
1524
- updatePrompt2ImageUrl: UpdatePrompt2ImageUrl,
1525
- ): string {
1526
- return JSON.stringify(
1527
- UpdatePrompt2ImageUrl$outboundSchema.parse(updatePrompt2ImageUrl),
1528
- );
1529
- }
1530
-
1531
- export function updatePrompt2ImageUrlFromJSON(
1532
- jsonString: string,
1533
- ): SafeParseResult<UpdatePrompt2ImageUrl, SDKValidationError> {
1534
- return safeParse(
1535
- jsonString,
1536
- (x) => UpdatePrompt2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1537
- `Failed to parse 'UpdatePrompt2ImageUrl' from JSON`,
1538
- );
1539
- }
1540
-
1541
- /** @internal */
1542
- export const UpdatePrompt22$inboundSchema: z.ZodType<
1543
- UpdatePrompt22,
1544
- z.ZodTypeDef,
1545
- unknown
1546
- > = z.object({
1547
- type: UpdatePrompt2PromptsType$inboundSchema,
1548
- image_url: z.lazy(() => UpdatePrompt2ImageUrl$inboundSchema),
1549
- }).transform((v) => {
1550
- return remap$(v, {
1551
- "image_url": "imageUrl",
1552
- });
1553
- });
1554
-
1555
- /** @internal */
1556
- export type UpdatePrompt22$Outbound = {
1557
- type: string;
1558
- image_url: UpdatePrompt2ImageUrl$Outbound;
1559
- };
1560
-
1561
- /** @internal */
1562
- export const UpdatePrompt22$outboundSchema: z.ZodType<
1563
- UpdatePrompt22$Outbound,
1564
- z.ZodTypeDef,
1565
- UpdatePrompt22
1566
- > = z.object({
1567
- type: UpdatePrompt2PromptsType$outboundSchema,
1568
- imageUrl: z.lazy(() => UpdatePrompt2ImageUrl$outboundSchema),
1569
- }).transform((v) => {
1570
- return remap$(v, {
1571
- imageUrl: "image_url",
1572
- });
1573
- });
1574
-
1575
- /**
1576
- * @internal
1577
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1578
- */
1579
- export namespace UpdatePrompt22$ {
1580
- /** @deprecated use `UpdatePrompt22$inboundSchema` instead. */
1581
- export const inboundSchema = UpdatePrompt22$inboundSchema;
1582
- /** @deprecated use `UpdatePrompt22$outboundSchema` instead. */
1583
- export const outboundSchema = UpdatePrompt22$outboundSchema;
1584
- /** @deprecated use `UpdatePrompt22$Outbound` instead. */
1585
- export type Outbound = UpdatePrompt22$Outbound;
1586
- }
1587
-
1588
- export function updatePrompt22ToJSON(updatePrompt22: UpdatePrompt22): string {
1589
- return JSON.stringify(UpdatePrompt22$outboundSchema.parse(updatePrompt22));
1590
- }
1591
-
1592
- export function updatePrompt22FromJSON(
1593
- jsonString: string,
1594
- ): SafeParseResult<UpdatePrompt22, SDKValidationError> {
1595
- return safeParse(
1596
- jsonString,
1597
- (x) => UpdatePrompt22$inboundSchema.parse(JSON.parse(x)),
1598
- `Failed to parse 'UpdatePrompt22' from JSON`,
1599
- );
1600
- }
1601
-
1602
- /** @internal */
1603
- export const UpdatePrompt2Type$inboundSchema: z.ZodNativeEnum<
1604
- typeof UpdatePrompt2Type
1605
- > = z.nativeEnum(UpdatePrompt2Type);
1606
-
1607
- /** @internal */
1608
- export const UpdatePrompt2Type$outboundSchema: z.ZodNativeEnum<
1609
- typeof UpdatePrompt2Type
1610
- > = UpdatePrompt2Type$inboundSchema;
1611
-
1612
- /**
1613
- * @internal
1614
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1615
- */
1616
- export namespace UpdatePrompt2Type$ {
1617
- /** @deprecated use `UpdatePrompt2Type$inboundSchema` instead. */
1618
- export const inboundSchema = UpdatePrompt2Type$inboundSchema;
1619
- /** @deprecated use `UpdatePrompt2Type$outboundSchema` instead. */
1620
- export const outboundSchema = UpdatePrompt2Type$outboundSchema;
1621
- }
1622
-
1623
- /** @internal */
1624
- export const UpdatePrompt21$inboundSchema: z.ZodType<
1625
- UpdatePrompt21,
1626
- z.ZodTypeDef,
1627
- unknown
1628
- > = z.object({
1629
- type: UpdatePrompt2Type$inboundSchema,
1630
- text: z.string(),
1631
- });
1632
-
1633
- /** @internal */
1634
- export type UpdatePrompt21$Outbound = {
1635
- type: string;
1636
- text: string;
1637
- };
1638
-
1639
- /** @internal */
1640
- export const UpdatePrompt21$outboundSchema: z.ZodType<
1641
- UpdatePrompt21$Outbound,
1642
- z.ZodTypeDef,
1643
- UpdatePrompt21
1644
- > = z.object({
1645
- type: UpdatePrompt2Type$outboundSchema,
1646
- text: z.string(),
1647
- });
1648
-
1649
- /**
1650
- * @internal
1651
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1652
- */
1653
- export namespace UpdatePrompt21$ {
1654
- /** @deprecated use `UpdatePrompt21$inboundSchema` instead. */
1655
- export const inboundSchema = UpdatePrompt21$inboundSchema;
1656
- /** @deprecated use `UpdatePrompt21$outboundSchema` instead. */
1657
- export const outboundSchema = UpdatePrompt21$outboundSchema;
1658
- /** @deprecated use `UpdatePrompt21$Outbound` instead. */
1659
- export type Outbound = UpdatePrompt21$Outbound;
1660
- }
1661
-
1662
- export function updatePrompt21ToJSON(updatePrompt21: UpdatePrompt21): string {
1663
- return JSON.stringify(UpdatePrompt21$outboundSchema.parse(updatePrompt21));
1664
- }
1665
-
1666
- export function updatePrompt21FromJSON(
1667
- jsonString: string,
1668
- ): SafeParseResult<UpdatePrompt21, SDKValidationError> {
1669
- return safeParse(
1670
- jsonString,
1671
- (x) => UpdatePrompt21$inboundSchema.parse(JSON.parse(x)),
1672
- `Failed to parse 'UpdatePrompt21' from JSON`,
1673
- );
1674
- }
1675
-
1676
- /** @internal */
1677
- export const UpdatePromptContent2$inboundSchema: z.ZodType<
1678
- UpdatePromptContent2,
1679
- z.ZodTypeDef,
1680
- unknown
1681
- > = z.union([
1682
- z.lazy(() => UpdatePrompt21$inboundSchema),
1683
- z.lazy(() => UpdatePrompt22$inboundSchema),
1684
- ]);
1685
-
1686
- /** @internal */
1687
- export type UpdatePromptContent2$Outbound =
1688
- | UpdatePrompt21$Outbound
1689
- | UpdatePrompt22$Outbound;
1690
-
1691
- /** @internal */
1692
- export const UpdatePromptContent2$outboundSchema: z.ZodType<
1693
- UpdatePromptContent2$Outbound,
1694
- z.ZodTypeDef,
1695
- UpdatePromptContent2
1696
- > = z.union([
1697
- z.lazy(() => UpdatePrompt21$outboundSchema),
1698
- z.lazy(() => UpdatePrompt22$outboundSchema),
1699
- ]);
1700
-
1701
- /**
1702
- * @internal
1703
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1704
- */
1705
- export namespace UpdatePromptContent2$ {
1706
- /** @deprecated use `UpdatePromptContent2$inboundSchema` instead. */
1707
- export const inboundSchema = UpdatePromptContent2$inboundSchema;
1708
- /** @deprecated use `UpdatePromptContent2$outboundSchema` instead. */
1709
- export const outboundSchema = UpdatePromptContent2$outboundSchema;
1710
- /** @deprecated use `UpdatePromptContent2$Outbound` instead. */
1711
- export type Outbound = UpdatePromptContent2$Outbound;
1712
- }
1713
-
1714
- export function updatePromptContent2ToJSON(
1715
- updatePromptContent2: UpdatePromptContent2,
1716
- ): string {
1717
- return JSON.stringify(
1718
- UpdatePromptContent2$outboundSchema.parse(updatePromptContent2),
1719
- );
1720
- }
1721
-
1722
- export function updatePromptContent2FromJSON(
1723
- jsonString: string,
1724
- ): SafeParseResult<UpdatePromptContent2, SDKValidationError> {
1725
- return safeParse(
1726
- jsonString,
1727
- (x) => UpdatePromptContent2$inboundSchema.parse(JSON.parse(x)),
1728
- `Failed to parse 'UpdatePromptContent2' from JSON`,
1729
- );
1730
- }
1731
-
1732
- /** @internal */
1733
- export const UpdatePromptContent$inboundSchema: z.ZodType<
1734
- UpdatePromptContent,
1735
- z.ZodTypeDef,
1736
- unknown
1737
- > = z.union([
1738
- z.string(),
1739
- z.array(z.union([
1740
- z.lazy(() => UpdatePrompt21$inboundSchema),
1741
- z.lazy(() => UpdatePrompt22$inboundSchema),
1742
- ])),
1743
- ]);
1744
-
1745
- /** @internal */
1746
- export type UpdatePromptContent$Outbound =
1747
- | string
1748
- | Array<UpdatePrompt21$Outbound | UpdatePrompt22$Outbound>;
1749
-
1750
- /** @internal */
1751
- export const UpdatePromptContent$outboundSchema: z.ZodType<
1752
- UpdatePromptContent$Outbound,
1753
- z.ZodTypeDef,
1754
- UpdatePromptContent
1755
- > = z.union([
1756
- z.string(),
1757
- z.array(z.union([
1758
- z.lazy(() => UpdatePrompt21$outboundSchema),
1759
- z.lazy(() => UpdatePrompt22$outboundSchema),
1760
- ])),
1761
- ]);
1762
-
1763
- /**
1764
- * @internal
1765
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1766
- */
1767
- export namespace UpdatePromptContent$ {
1768
- /** @deprecated use `UpdatePromptContent$inboundSchema` instead. */
1769
- export const inboundSchema = UpdatePromptContent$inboundSchema;
1770
- /** @deprecated use `UpdatePromptContent$outboundSchema` instead. */
1771
- export const outboundSchema = UpdatePromptContent$outboundSchema;
1772
- /** @deprecated use `UpdatePromptContent$Outbound` instead. */
1773
- export type Outbound = UpdatePromptContent$Outbound;
1774
- }
1775
-
1776
- export function updatePromptContentToJSON(
1777
- updatePromptContent: UpdatePromptContent,
1778
- ): string {
1779
- return JSON.stringify(
1780
- UpdatePromptContent$outboundSchema.parse(updatePromptContent),
1781
- );
1782
- }
1783
-
1784
- export function updatePromptContentFromJSON(
1785
- jsonString: string,
1786
- ): SafeParseResult<UpdatePromptContent, SDKValidationError> {
1787
- return safeParse(
1788
- jsonString,
1789
- (x) => UpdatePromptContent$inboundSchema.parse(JSON.parse(x)),
1790
- `Failed to parse 'UpdatePromptContent' from JSON`,
1791
- );
1792
- }
1793
-
1794
- /** @internal */
1795
- export const UpdatePromptType$inboundSchema: z.ZodNativeEnum<
1796
- typeof UpdatePromptType
1797
- > = z.nativeEnum(UpdatePromptType);
1798
-
1799
- /** @internal */
1800
- export const UpdatePromptType$outboundSchema: z.ZodNativeEnum<
1801
- typeof UpdatePromptType
1802
- > = UpdatePromptType$inboundSchema;
1803
-
1804
- /**
1805
- * @internal
1806
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1807
- */
1808
- export namespace UpdatePromptType$ {
1809
- /** @deprecated use `UpdatePromptType$inboundSchema` instead. */
1810
- export const inboundSchema = UpdatePromptType$inboundSchema;
1811
- /** @deprecated use `UpdatePromptType$outboundSchema` instead. */
1812
- export const outboundSchema = UpdatePromptType$outboundSchema;
1813
- }
1814
-
1815
- /** @internal */
1816
- export const UpdatePromptFunction$inboundSchema: z.ZodType<
1817
- UpdatePromptFunction,
1818
- z.ZodTypeDef,
1819
- unknown
1820
- > = z.object({
1821
- name: z.string(),
1822
- arguments: z.string(),
1823
- });
1824
-
1825
- /** @internal */
1826
- export type UpdatePromptFunction$Outbound = {
1827
- name: string;
1828
- arguments: string;
1829
- };
1830
-
1831
- /** @internal */
1832
- export const UpdatePromptFunction$outboundSchema: z.ZodType<
1833
- UpdatePromptFunction$Outbound,
1834
- z.ZodTypeDef,
1835
- UpdatePromptFunction
1836
- > = z.object({
1837
- name: z.string(),
1838
- arguments: z.string(),
1839
- });
1840
-
1841
- /**
1842
- * @internal
1843
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1844
- */
1845
- export namespace UpdatePromptFunction$ {
1846
- /** @deprecated use `UpdatePromptFunction$inboundSchema` instead. */
1847
- export const inboundSchema = UpdatePromptFunction$inboundSchema;
1848
- /** @deprecated use `UpdatePromptFunction$outboundSchema` instead. */
1849
- export const outboundSchema = UpdatePromptFunction$outboundSchema;
1850
- /** @deprecated use `UpdatePromptFunction$Outbound` instead. */
1851
- export type Outbound = UpdatePromptFunction$Outbound;
1852
- }
1853
-
1854
- export function updatePromptFunctionToJSON(
1855
- updatePromptFunction: UpdatePromptFunction,
1856
- ): string {
1857
- return JSON.stringify(
1858
- UpdatePromptFunction$outboundSchema.parse(updatePromptFunction),
1859
- );
1860
- }
1861
-
1862
- export function updatePromptFunctionFromJSON(
1863
- jsonString: string,
1864
- ): SafeParseResult<UpdatePromptFunction, SDKValidationError> {
1865
- return safeParse(
1866
- jsonString,
1867
- (x) => UpdatePromptFunction$inboundSchema.parse(JSON.parse(x)),
1868
- `Failed to parse 'UpdatePromptFunction' from JSON`,
1869
- );
1870
- }
1871
-
1872
- /** @internal */
1873
- export const UpdatePromptToolCalls$inboundSchema: z.ZodType<
1874
- UpdatePromptToolCalls,
1875
- z.ZodTypeDef,
1876
- unknown
1877
- > = z.object({
1878
- id: z.string().optional(),
1879
- index: z.number().optional(),
1880
- type: UpdatePromptType$inboundSchema,
1881
- function: z.lazy(() => UpdatePromptFunction$inboundSchema),
1882
- });
1883
-
1884
- /** @internal */
1885
- export type UpdatePromptToolCalls$Outbound = {
1886
- id?: string | undefined;
1887
- index?: number | undefined;
1888
- type: string;
1889
- function: UpdatePromptFunction$Outbound;
1890
- };
1891
-
1892
- /** @internal */
1893
- export const UpdatePromptToolCalls$outboundSchema: z.ZodType<
1894
- UpdatePromptToolCalls$Outbound,
1895
- z.ZodTypeDef,
1896
- UpdatePromptToolCalls
1897
- > = z.object({
1898
- id: z.string().optional(),
1899
- index: z.number().optional(),
1900
- type: UpdatePromptType$outboundSchema,
1901
- function: z.lazy(() => UpdatePromptFunction$outboundSchema),
1902
- });
1903
-
1904
- /**
1905
- * @internal
1906
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1907
- */
1908
- export namespace UpdatePromptToolCalls$ {
1909
- /** @deprecated use `UpdatePromptToolCalls$inboundSchema` instead. */
1910
- export const inboundSchema = UpdatePromptToolCalls$inboundSchema;
1911
- /** @deprecated use `UpdatePromptToolCalls$outboundSchema` instead. */
1912
- export const outboundSchema = UpdatePromptToolCalls$outboundSchema;
1913
- /** @deprecated use `UpdatePromptToolCalls$Outbound` instead. */
1914
- export type Outbound = UpdatePromptToolCalls$Outbound;
1915
- }
1916
-
1917
- export function updatePromptToolCallsToJSON(
1918
- updatePromptToolCalls: UpdatePromptToolCalls,
1919
- ): string {
1920
- return JSON.stringify(
1921
- UpdatePromptToolCalls$outboundSchema.parse(updatePromptToolCalls),
1922
- );
1923
- }
1924
-
1925
- export function updatePromptToolCallsFromJSON(
1926
- jsonString: string,
1927
- ): SafeParseResult<UpdatePromptToolCalls, SDKValidationError> {
1928
- return safeParse(
1929
- jsonString,
1930
- (x) => UpdatePromptToolCalls$inboundSchema.parse(JSON.parse(x)),
1931
- `Failed to parse 'UpdatePromptToolCalls' from JSON`,
1932
- );
1933
- }
1934
-
1935
- /** @internal */
1936
- export const UpdatePromptMessages$inboundSchema: z.ZodType<
1937
- UpdatePromptMessages,
1938
- z.ZodTypeDef,
1939
- unknown
1940
- > = z.object({
1941
- role: UpdatePromptRole$inboundSchema,
1942
- content: z.union([
1943
- z.string(),
1944
- z.array(z.union([
1945
- z.lazy(() => UpdatePrompt21$inboundSchema),
1946
- z.lazy(() => UpdatePrompt22$inboundSchema),
1947
- ])),
1948
- ]),
1949
- tool_calls: z.array(z.lazy(() => UpdatePromptToolCalls$inboundSchema))
1950
- .optional(),
1951
- tool_call_id: z.string().optional(),
1952
- }).transform((v) => {
1953
- return remap$(v, {
1954
- "tool_calls": "toolCalls",
1955
- "tool_call_id": "toolCallId",
1956
- });
1957
- });
1958
-
1959
- /** @internal */
1960
- export type UpdatePromptMessages$Outbound = {
1961
- role: string;
1962
- content: string | Array<UpdatePrompt21$Outbound | UpdatePrompt22$Outbound>;
1963
- tool_calls?: Array<UpdatePromptToolCalls$Outbound> | undefined;
1964
- tool_call_id?: string | undefined;
1965
- };
1966
-
1967
- /** @internal */
1968
- export const UpdatePromptMessages$outboundSchema: z.ZodType<
1969
- UpdatePromptMessages$Outbound,
1970
- z.ZodTypeDef,
1971
- UpdatePromptMessages
1972
- > = z.object({
1973
- role: UpdatePromptRole$outboundSchema,
1974
- content: z.union([
1975
- z.string(),
1976
- z.array(z.union([
1977
- z.lazy(() => UpdatePrompt21$outboundSchema),
1978
- z.lazy(() => UpdatePrompt22$outboundSchema),
1979
- ])),
1980
- ]),
1981
- toolCalls: z.array(z.lazy(() => UpdatePromptToolCalls$outboundSchema))
1982
- .optional(),
1983
- toolCallId: z.string().optional(),
1984
- }).transform((v) => {
1985
- return remap$(v, {
1986
- toolCalls: "tool_calls",
1987
- toolCallId: "tool_call_id",
1988
- });
1989
- });
1990
-
1991
- /**
1992
- * @internal
1993
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1994
- */
1995
- export namespace UpdatePromptMessages$ {
1996
- /** @deprecated use `UpdatePromptMessages$inboundSchema` instead. */
1997
- export const inboundSchema = UpdatePromptMessages$inboundSchema;
1998
- /** @deprecated use `UpdatePromptMessages$outboundSchema` instead. */
1999
- export const outboundSchema = UpdatePromptMessages$outboundSchema;
2000
- /** @deprecated use `UpdatePromptMessages$Outbound` instead. */
2001
- export type Outbound = UpdatePromptMessages$Outbound;
2002
- }
2003
-
2004
- export function updatePromptMessagesToJSON(
2005
- updatePromptMessages: UpdatePromptMessages,
2006
- ): string {
2007
- return JSON.stringify(
2008
- UpdatePromptMessages$outboundSchema.parse(updatePromptMessages),
2009
- );
2010
- }
2011
-
2012
- export function updatePromptMessagesFromJSON(
2013
- jsonString: string,
2014
- ): SafeParseResult<UpdatePromptMessages, SDKValidationError> {
2015
- return safeParse(
2016
- jsonString,
2017
- (x) => UpdatePromptMessages$inboundSchema.parse(JSON.parse(x)),
2018
- `Failed to parse 'UpdatePromptMessages' from JSON`,
2019
- );
2020
- }
2021
-
2022
- /** @internal */
2023
- export const UpdatePromptPromptConfig$inboundSchema: z.ZodType<
2024
- UpdatePromptPromptConfig,
2025
- z.ZodTypeDef,
2026
- unknown
2027
- > = z.object({
2028
- stream: z.boolean().optional(),
2029
- model: z.string().optional(),
2030
- model_type: UpdatePromptModelType$inboundSchema.optional(),
2031
- model_parameters: z.lazy(() => UpdatePromptModelParameters$inboundSchema)
2032
- .optional(),
2033
- provider: UpdatePromptProvider$inboundSchema.optional(),
2034
- version: z.string().optional(),
2035
- messages: z.array(z.lazy(() => UpdatePromptMessages$inboundSchema)),
2036
- }).transform((v) => {
2037
- return remap$(v, {
2038
- "model_type": "modelType",
2039
- "model_parameters": "modelParameters",
2040
- });
2041
- });
2042
-
2043
- /** @internal */
2044
- export type UpdatePromptPromptConfig$Outbound = {
2045
- stream?: boolean | undefined;
2046
- model?: string | undefined;
2047
- model_type?: string | undefined;
2048
- model_parameters?: UpdatePromptModelParameters$Outbound | undefined;
2049
- provider?: string | undefined;
2050
- version?: string | undefined;
2051
- messages: Array<UpdatePromptMessages$Outbound>;
2052
- };
2053
-
2054
- /** @internal */
2055
- export const UpdatePromptPromptConfig$outboundSchema: z.ZodType<
2056
- UpdatePromptPromptConfig$Outbound,
2057
- z.ZodTypeDef,
2058
- UpdatePromptPromptConfig
2059
- > = z.object({
2060
- stream: z.boolean().optional(),
2061
- model: z.string().optional(),
2062
- modelType: UpdatePromptModelType$outboundSchema.optional(),
2063
- modelParameters: z.lazy(() => UpdatePromptModelParameters$outboundSchema)
2064
- .optional(),
2065
- provider: UpdatePromptProvider$outboundSchema.optional(),
2066
- version: z.string().optional(),
2067
- messages: z.array(z.lazy(() => UpdatePromptMessages$outboundSchema)),
2068
- }).transform((v) => {
2069
- return remap$(v, {
2070
- modelType: "model_type",
2071
- modelParameters: "model_parameters",
2072
- });
2073
- });
2074
-
2075
- /**
2076
- * @internal
2077
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2078
- */
2079
- export namespace UpdatePromptPromptConfig$ {
2080
- /** @deprecated use `UpdatePromptPromptConfig$inboundSchema` instead. */
2081
- export const inboundSchema = UpdatePromptPromptConfig$inboundSchema;
2082
- /** @deprecated use `UpdatePromptPromptConfig$outboundSchema` instead. */
2083
- export const outboundSchema = UpdatePromptPromptConfig$outboundSchema;
2084
- /** @deprecated use `UpdatePromptPromptConfig$Outbound` instead. */
2085
- export type Outbound = UpdatePromptPromptConfig$Outbound;
2086
- }
2087
-
2088
- export function updatePromptPromptConfigToJSON(
2089
- updatePromptPromptConfig: UpdatePromptPromptConfig,
2090
- ): string {
2091
- return JSON.stringify(
2092
- UpdatePromptPromptConfig$outboundSchema.parse(updatePromptPromptConfig),
2093
- );
2094
- }
2095
-
2096
- export function updatePromptPromptConfigFromJSON(
2097
- jsonString: string,
2098
- ): SafeParseResult<UpdatePromptPromptConfig, SDKValidationError> {
2099
- return safeParse(
2100
- jsonString,
2101
- (x) => UpdatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
2102
- `Failed to parse 'UpdatePromptPromptConfig' from JSON`,
2103
- );
2104
- }
2105
-
2106
- /** @internal */
2107
- export const UpdatePromptUseCases$inboundSchema: z.ZodNativeEnum<
2108
- typeof UpdatePromptUseCases
2109
- > = z.nativeEnum(UpdatePromptUseCases);
2110
-
2111
- /** @internal */
2112
- export const UpdatePromptUseCases$outboundSchema: z.ZodNativeEnum<
2113
- typeof UpdatePromptUseCases
2114
- > = UpdatePromptUseCases$inboundSchema;
2115
-
2116
- /**
2117
- * @internal
2118
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2119
- */
2120
- export namespace UpdatePromptUseCases$ {
2121
- /** @deprecated use `UpdatePromptUseCases$inboundSchema` instead. */
2122
- export const inboundSchema = UpdatePromptUseCases$inboundSchema;
2123
- /** @deprecated use `UpdatePromptUseCases$outboundSchema` instead. */
2124
- export const outboundSchema = UpdatePromptUseCases$outboundSchema;
2125
- }
2126
-
2127
- /** @internal */
2128
- export const UpdatePromptLanguage$inboundSchema: z.ZodNativeEnum<
2129
- typeof UpdatePromptLanguage
2130
- > = z.nativeEnum(UpdatePromptLanguage);
2131
-
2132
- /** @internal */
2133
- export const UpdatePromptLanguage$outboundSchema: z.ZodNativeEnum<
2134
- typeof UpdatePromptLanguage
2135
- > = UpdatePromptLanguage$inboundSchema;
2136
-
2137
- /**
2138
- * @internal
2139
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2140
- */
2141
- export namespace UpdatePromptLanguage$ {
2142
- /** @deprecated use `UpdatePromptLanguage$inboundSchema` instead. */
2143
- export const inboundSchema = UpdatePromptLanguage$inboundSchema;
2144
- /** @deprecated use `UpdatePromptLanguage$outboundSchema` instead. */
2145
- export const outboundSchema = UpdatePromptLanguage$outboundSchema;
2146
- }
2147
-
2148
- /** @internal */
2149
- export const UpdatePromptMetadata$inboundSchema: z.ZodType<
2150
- UpdatePromptMetadata,
2151
- z.ZodTypeDef,
2152
- unknown
2153
- > = z.object({
2154
- use_cases: z.array(UpdatePromptUseCases$inboundSchema).optional(),
2155
- language: z.nullable(UpdatePromptLanguage$inboundSchema).optional(),
2156
- }).transform((v) => {
2157
- return remap$(v, {
2158
- "use_cases": "useCases",
2159
- });
2160
- });
2161
-
2162
- /** @internal */
2163
- export type UpdatePromptMetadata$Outbound = {
2164
- use_cases?: Array<string> | undefined;
2165
- language?: string | null | undefined;
2166
- };
2167
-
2168
- /** @internal */
2169
- export const UpdatePromptMetadata$outboundSchema: z.ZodType<
2170
- UpdatePromptMetadata$Outbound,
2171
- z.ZodTypeDef,
2172
- UpdatePromptMetadata
2173
- > = z.object({
2174
- useCases: z.array(UpdatePromptUseCases$outboundSchema).optional(),
2175
- language: z.nullable(UpdatePromptLanguage$outboundSchema).optional(),
2176
- }).transform((v) => {
2177
- return remap$(v, {
2178
- useCases: "use_cases",
2179
- });
2180
- });
2181
-
2182
- /**
2183
- * @internal
2184
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2185
- */
2186
- export namespace UpdatePromptMetadata$ {
2187
- /** @deprecated use `UpdatePromptMetadata$inboundSchema` instead. */
2188
- export const inboundSchema = UpdatePromptMetadata$inboundSchema;
2189
- /** @deprecated use `UpdatePromptMetadata$outboundSchema` instead. */
2190
- export const outboundSchema = UpdatePromptMetadata$outboundSchema;
2191
- /** @deprecated use `UpdatePromptMetadata$Outbound` instead. */
2192
- export type Outbound = UpdatePromptMetadata$Outbound;
2193
- }
2194
-
2195
- export function updatePromptMetadataToJSON(
2196
- updatePromptMetadata: UpdatePromptMetadata,
2197
- ): string {
2198
- return JSON.stringify(
2199
- UpdatePromptMetadata$outboundSchema.parse(updatePromptMetadata),
2200
- );
2201
- }
2202
-
2203
- export function updatePromptMetadataFromJSON(
2204
- jsonString: string,
2205
- ): SafeParseResult<UpdatePromptMetadata, SDKValidationError> {
2206
- return safeParse(
2207
- jsonString,
2208
- (x) => UpdatePromptMetadata$inboundSchema.parse(JSON.parse(x)),
2209
- `Failed to parse 'UpdatePromptMetadata' from JSON`,
2210
- );
2211
- }
2212
-
2213
- /** @internal */
2214
- export const UpdatePromptRequestBody$inboundSchema: z.ZodType<
2215
- UpdatePromptRequestBody,
2216
- z.ZodTypeDef,
2217
- unknown
2218
- > = z.object({
2219
- owner: z.string().optional(),
2220
- domain_id: z.string().optional(),
2221
- created: z.string().optional(),
2222
- updated: z.string().optional(),
2223
- created_by_id: z.nullable(z.string()).optional(),
2224
- updated_by_id: z.nullable(z.string()).optional(),
2225
- display_name: z.string().optional(),
2226
- description: z.nullable(z.string()).optional(),
2227
- prompt_config: z.lazy(() => UpdatePromptPromptConfig$inboundSchema)
2228
- .optional(),
2229
- metadata: z.lazy(() => UpdatePromptMetadata$inboundSchema).optional(),
2230
- path: z.string().optional(),
2231
- }).transform((v) => {
2232
- return remap$(v, {
2233
- "domain_id": "domainId",
2234
- "created_by_id": "createdById",
2235
- "updated_by_id": "updatedById",
2236
- "display_name": "displayName",
2237
- "prompt_config": "promptConfig",
2238
- });
2239
- });
2240
-
2241
- /** @internal */
2242
- export type UpdatePromptRequestBody$Outbound = {
2243
- owner?: string | undefined;
2244
- domain_id?: string | undefined;
2245
- created?: string | undefined;
2246
- updated?: string | undefined;
2247
- created_by_id?: string | null | undefined;
2248
- updated_by_id?: string | null | undefined;
2249
- display_name?: string | undefined;
2250
- description?: string | null | undefined;
2251
- prompt_config?: UpdatePromptPromptConfig$Outbound | undefined;
2252
- metadata?: UpdatePromptMetadata$Outbound | undefined;
2253
- path?: string | undefined;
2254
- };
2255
-
2256
- /** @internal */
2257
- export const UpdatePromptRequestBody$outboundSchema: z.ZodType<
2258
- UpdatePromptRequestBody$Outbound,
2259
- z.ZodTypeDef,
2260
- UpdatePromptRequestBody
2261
- > = z.object({
2262
- owner: z.string().optional(),
2263
- domainId: z.string().optional(),
2264
- created: z.string().optional(),
2265
- updated: z.string().optional(),
2266
- createdById: z.nullable(z.string()).optional(),
2267
- updatedById: z.nullable(z.string()).optional(),
2268
- displayName: z.string().optional(),
2269
- description: z.nullable(z.string()).optional(),
2270
- promptConfig: z.lazy(() => UpdatePromptPromptConfig$outboundSchema)
2271
- .optional(),
2272
- metadata: z.lazy(() => UpdatePromptMetadata$outboundSchema).optional(),
2273
- path: z.string().optional(),
2274
- }).transform((v) => {
2275
- return remap$(v, {
2276
- domainId: "domain_id",
2277
- createdById: "created_by_id",
2278
- updatedById: "updated_by_id",
2279
- displayName: "display_name",
2280
- promptConfig: "prompt_config",
2281
- });
2282
- });
2283
-
2284
- /**
2285
- * @internal
2286
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2287
- */
2288
- export namespace UpdatePromptRequestBody$ {
2289
- /** @deprecated use `UpdatePromptRequestBody$inboundSchema` instead. */
2290
- export const inboundSchema = UpdatePromptRequestBody$inboundSchema;
2291
- /** @deprecated use `UpdatePromptRequestBody$outboundSchema` instead. */
2292
- export const outboundSchema = UpdatePromptRequestBody$outboundSchema;
2293
- /** @deprecated use `UpdatePromptRequestBody$Outbound` instead. */
2294
- export type Outbound = UpdatePromptRequestBody$Outbound;
2295
- }
2296
-
2297
- export function updatePromptRequestBodyToJSON(
2298
- updatePromptRequestBody: UpdatePromptRequestBody,
2299
- ): string {
2300
- return JSON.stringify(
2301
- UpdatePromptRequestBody$outboundSchema.parse(updatePromptRequestBody),
2302
- );
2303
- }
2304
-
2305
- export function updatePromptRequestBodyFromJSON(
2306
- jsonString: string,
2307
- ): SafeParseResult<UpdatePromptRequestBody, SDKValidationError> {
2308
- return safeParse(
2309
- jsonString,
2310
- (x) => UpdatePromptRequestBody$inboundSchema.parse(JSON.parse(x)),
2311
- `Failed to parse 'UpdatePromptRequestBody' from JSON`,
2312
- );
2313
- }
2314
-
2315
- /** @internal */
2316
- export const UpdatePromptRequest$inboundSchema: z.ZodType<
2317
- UpdatePromptRequest,
2318
- z.ZodTypeDef,
2319
- unknown
2320
- > = z.object({
2321
- id: z.string(),
2322
- RequestBody: z.lazy(() => UpdatePromptRequestBody$inboundSchema).optional(),
2323
- }).transform((v) => {
2324
- return remap$(v, {
2325
- "RequestBody": "requestBody",
2326
- });
2327
- });
2328
-
2329
- /** @internal */
2330
- export type UpdatePromptRequest$Outbound = {
2331
- id: string;
2332
- RequestBody?: UpdatePromptRequestBody$Outbound | undefined;
2333
- };
2334
-
2335
- /** @internal */
2336
- export const UpdatePromptRequest$outboundSchema: z.ZodType<
2337
- UpdatePromptRequest$Outbound,
2338
- z.ZodTypeDef,
2339
- UpdatePromptRequest
2340
- > = z.object({
2341
- id: z.string(),
2342
- requestBody: z.lazy(() => UpdatePromptRequestBody$outboundSchema).optional(),
2343
- }).transform((v) => {
2344
- return remap$(v, {
2345
- requestBody: "RequestBody",
2346
- });
2347
- });
2348
-
2349
- /**
2350
- * @internal
2351
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2352
- */
2353
- export namespace UpdatePromptRequest$ {
2354
- /** @deprecated use `UpdatePromptRequest$inboundSchema` instead. */
2355
- export const inboundSchema = UpdatePromptRequest$inboundSchema;
2356
- /** @deprecated use `UpdatePromptRequest$outboundSchema` instead. */
2357
- export const outboundSchema = UpdatePromptRequest$outboundSchema;
2358
- /** @deprecated use `UpdatePromptRequest$Outbound` instead. */
2359
- export type Outbound = UpdatePromptRequest$Outbound;
2360
- }
2361
-
2362
- export function updatePromptRequestToJSON(
2363
- updatePromptRequest: UpdatePromptRequest,
2364
- ): string {
2365
- return JSON.stringify(
2366
- UpdatePromptRequest$outboundSchema.parse(updatePromptRequest),
2367
- );
2368
- }
2369
-
2370
- export function updatePromptRequestFromJSON(
2371
- jsonString: string,
2372
- ): SafeParseResult<UpdatePromptRequest, SDKValidationError> {
2373
- return safeParse(
2374
- jsonString,
2375
- (x) => UpdatePromptRequest$inboundSchema.parse(JSON.parse(x)),
2376
- `Failed to parse 'UpdatePromptRequest' from JSON`,
2377
- );
2378
- }
2379
-
2380
- /** @internal */
2381
- export const UpdatePromptPromptsType$inboundSchema: z.ZodNativeEnum<
2382
- typeof UpdatePromptPromptsType
2383
- > = z.nativeEnum(UpdatePromptPromptsType);
2384
-
2385
- /** @internal */
2386
- export const UpdatePromptPromptsType$outboundSchema: z.ZodNativeEnum<
2387
- typeof UpdatePromptPromptsType
2388
- > = UpdatePromptPromptsType$inboundSchema;
2389
-
2390
- /**
2391
- * @internal
2392
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2393
- */
2394
- export namespace UpdatePromptPromptsType$ {
2395
- /** @deprecated use `UpdatePromptPromptsType$inboundSchema` instead. */
2396
- export const inboundSchema = UpdatePromptPromptsType$inboundSchema;
2397
- /** @deprecated use `UpdatePromptPromptsType$outboundSchema` instead. */
2398
- export const outboundSchema = UpdatePromptPromptsType$outboundSchema;
2399
- }
2400
-
2401
- /** @internal */
2402
- export const UpdatePromptPromptsModelType$inboundSchema: z.ZodNativeEnum<
2403
- typeof UpdatePromptPromptsModelType
2404
- > = z.nativeEnum(UpdatePromptPromptsModelType);
2405
-
2406
- /** @internal */
2407
- export const UpdatePromptPromptsModelType$outboundSchema: z.ZodNativeEnum<
2408
- typeof UpdatePromptPromptsModelType
2409
- > = UpdatePromptPromptsModelType$inboundSchema;
2410
-
2411
- /**
2412
- * @internal
2413
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2414
- */
2415
- export namespace UpdatePromptPromptsModelType$ {
2416
- /** @deprecated use `UpdatePromptPromptsModelType$inboundSchema` instead. */
2417
- export const inboundSchema = UpdatePromptPromptsModelType$inboundSchema;
2418
- /** @deprecated use `UpdatePromptPromptsModelType$outboundSchema` instead. */
2419
- export const outboundSchema = UpdatePromptPromptsModelType$outboundSchema;
2420
- }
2421
-
2422
- /** @internal */
2423
- export const UpdatePromptPromptsFormat$inboundSchema: z.ZodNativeEnum<
2424
- typeof UpdatePromptPromptsFormat
2425
- > = z.nativeEnum(UpdatePromptPromptsFormat);
2426
-
2427
- /** @internal */
2428
- export const UpdatePromptPromptsFormat$outboundSchema: z.ZodNativeEnum<
2429
- typeof UpdatePromptPromptsFormat
2430
- > = UpdatePromptPromptsFormat$inboundSchema;
2431
-
2432
- /**
2433
- * @internal
2434
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2435
- */
2436
- export namespace UpdatePromptPromptsFormat$ {
2437
- /** @deprecated use `UpdatePromptPromptsFormat$inboundSchema` instead. */
2438
- export const inboundSchema = UpdatePromptPromptsFormat$inboundSchema;
2439
- /** @deprecated use `UpdatePromptPromptsFormat$outboundSchema` instead. */
2440
- export const outboundSchema = UpdatePromptPromptsFormat$outboundSchema;
2441
- }
2442
-
2443
- /** @internal */
2444
- export const UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema:
2445
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponse200Type> = z
2446
- .nativeEnum(UpdatePromptResponseFormatPromptsResponse200Type);
2447
-
2448
- /** @internal */
2449
- export const UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema:
2450
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponse200Type> =
2451
- UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2452
-
2453
- /**
2454
- * @internal
2455
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2456
- */
2457
- export namespace UpdatePromptResponseFormatPromptsResponse200Type$ {
2458
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema` instead. */
2459
- export const inboundSchema =
2460
- UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2461
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema` instead. */
2462
- export const outboundSchema =
2463
- UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema;
2464
- }
2465
-
2466
- /** @internal */
2467
- export const UpdatePromptResponseFormatPrompts2$inboundSchema: z.ZodType<
2468
- UpdatePromptResponseFormatPrompts2,
2469
- z.ZodTypeDef,
2470
- unknown
2471
- > = z.object({
2472
- type: UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema,
2473
- });
2474
-
2475
- /** @internal */
2476
- export type UpdatePromptResponseFormatPrompts2$Outbound = {
2477
- type: string;
2478
- };
2479
-
2480
- /** @internal */
2481
- export const UpdatePromptResponseFormatPrompts2$outboundSchema: z.ZodType<
2482
- UpdatePromptResponseFormatPrompts2$Outbound,
2483
- z.ZodTypeDef,
2484
- UpdatePromptResponseFormatPrompts2
2485
- > = z.object({
2486
- type: UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema,
2487
- });
2488
-
2489
- /**
2490
- * @internal
2491
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2492
- */
2493
- export namespace UpdatePromptResponseFormatPrompts2$ {
2494
- /** @deprecated use `UpdatePromptResponseFormatPrompts2$inboundSchema` instead. */
2495
- export const inboundSchema = UpdatePromptResponseFormatPrompts2$inboundSchema;
2496
- /** @deprecated use `UpdatePromptResponseFormatPrompts2$outboundSchema` instead. */
2497
- export const outboundSchema =
2498
- UpdatePromptResponseFormatPrompts2$outboundSchema;
2499
- /** @deprecated use `UpdatePromptResponseFormatPrompts2$Outbound` instead. */
2500
- export type Outbound = UpdatePromptResponseFormatPrompts2$Outbound;
2501
- }
2502
-
2503
- export function updatePromptResponseFormatPrompts2ToJSON(
2504
- updatePromptResponseFormatPrompts2: UpdatePromptResponseFormatPrompts2,
2505
- ): string {
2506
- return JSON.stringify(
2507
- UpdatePromptResponseFormatPrompts2$outboundSchema.parse(
2508
- updatePromptResponseFormatPrompts2,
2509
- ),
2510
- );
2511
- }
2512
-
2513
- export function updatePromptResponseFormatPrompts2FromJSON(
2514
- jsonString: string,
2515
- ): SafeParseResult<UpdatePromptResponseFormatPrompts2, SDKValidationError> {
2516
- return safeParse(
2517
- jsonString,
2518
- (x) =>
2519
- UpdatePromptResponseFormatPrompts2$inboundSchema.parse(JSON.parse(x)),
2520
- `Failed to parse 'UpdatePromptResponseFormatPrompts2' from JSON`,
2521
- );
2522
- }
2523
-
2524
- /** @internal */
2525
- export const UpdatePromptResponseFormatPromptsResponseType$inboundSchema:
2526
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> = z
2527
- .nativeEnum(UpdatePromptResponseFormatPromptsResponseType);
2528
-
2529
- /** @internal */
2530
- export const UpdatePromptResponseFormatPromptsResponseType$outboundSchema:
2531
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> =
2532
- UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
2533
-
2534
- /**
2535
- * @internal
2536
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2537
- */
2538
- export namespace UpdatePromptResponseFormatPromptsResponseType$ {
2539
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
2540
- export const inboundSchema =
2541
- UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
2542
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
2543
- export const outboundSchema =
2544
- UpdatePromptResponseFormatPromptsResponseType$outboundSchema;
2545
- }
2546
-
2547
- /** @internal */
2548
- export const UpdatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
2549
- UpdatePromptResponseFormatJsonSchema,
2550
- z.ZodTypeDef,
2551
- unknown
2552
- > = z.object({
2553
- name: z.string(),
2554
- strict: z.boolean(),
2555
- schema: z.record(z.any()),
2556
- });
2557
-
2558
- /** @internal */
2559
- export type UpdatePromptResponseFormatJsonSchema$Outbound = {
2560
- name: string;
2561
- strict: boolean;
2562
- schema: { [k: string]: any };
2563
- };
2564
-
2565
- /** @internal */
2566
- export const UpdatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
2567
- UpdatePromptResponseFormatJsonSchema$Outbound,
2568
- z.ZodTypeDef,
2569
- UpdatePromptResponseFormatJsonSchema
2570
- > = z.object({
2571
- name: z.string(),
2572
- strict: z.boolean(),
2573
- schema: z.record(z.any()),
2574
- });
2575
-
2576
- /**
2577
- * @internal
2578
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2579
- */
2580
- export namespace UpdatePromptResponseFormatJsonSchema$ {
2581
- /** @deprecated use `UpdatePromptResponseFormatJsonSchema$inboundSchema` instead. */
2582
- export const inboundSchema =
2583
- UpdatePromptResponseFormatJsonSchema$inboundSchema;
2584
- /** @deprecated use `UpdatePromptResponseFormatJsonSchema$outboundSchema` instead. */
2585
- export const outboundSchema =
2586
- UpdatePromptResponseFormatJsonSchema$outboundSchema;
2587
- /** @deprecated use `UpdatePromptResponseFormatJsonSchema$Outbound` instead. */
2588
- export type Outbound = UpdatePromptResponseFormatJsonSchema$Outbound;
2589
- }
2590
-
2591
- export function updatePromptResponseFormatJsonSchemaToJSON(
2592
- updatePromptResponseFormatJsonSchema: UpdatePromptResponseFormatJsonSchema,
2593
- ): string {
2594
- return JSON.stringify(
2595
- UpdatePromptResponseFormatJsonSchema$outboundSchema.parse(
2596
- updatePromptResponseFormatJsonSchema,
2597
- ),
2598
- );
2599
- }
2600
-
2601
- export function updatePromptResponseFormatJsonSchemaFromJSON(
2602
- jsonString: string,
2603
- ): SafeParseResult<UpdatePromptResponseFormatJsonSchema, SDKValidationError> {
2604
- return safeParse(
2605
- jsonString,
2606
- (x) =>
2607
- UpdatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
2608
- `Failed to parse 'UpdatePromptResponseFormatJsonSchema' from JSON`,
2609
- );
2610
- }
2611
-
2612
- /** @internal */
2613
- export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
2614
- UpdatePromptResponseFormatPrompts1,
2615
- z.ZodTypeDef,
2616
- unknown
2617
- > = z.object({
2618
- type: UpdatePromptResponseFormatPromptsResponseType$inboundSchema,
2619
- json_schema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$inboundSchema),
2620
- }).transform((v) => {
2621
- return remap$(v, {
2622
- "json_schema": "jsonSchema",
2623
- });
2624
- });
2625
-
2626
- /** @internal */
2627
- export type UpdatePromptResponseFormatPrompts1$Outbound = {
2628
- type: string;
2629
- json_schema: UpdatePromptResponseFormatJsonSchema$Outbound;
2630
- };
2631
-
2632
- /** @internal */
2633
- export const UpdatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
2634
- UpdatePromptResponseFormatPrompts1$Outbound,
2635
- z.ZodTypeDef,
2636
- UpdatePromptResponseFormatPrompts1
2637
- > = z.object({
2638
- type: UpdatePromptResponseFormatPromptsResponseType$outboundSchema,
2639
- jsonSchema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$outboundSchema),
2640
- }).transform((v) => {
2641
- return remap$(v, {
2642
- jsonSchema: "json_schema",
2643
- });
2644
- });
2645
-
2646
- /**
2647
- * @internal
2648
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2649
- */
2650
- export namespace UpdatePromptResponseFormatPrompts1$ {
2651
- /** @deprecated use `UpdatePromptResponseFormatPrompts1$inboundSchema` instead. */
2652
- export const inboundSchema = UpdatePromptResponseFormatPrompts1$inboundSchema;
2653
- /** @deprecated use `UpdatePromptResponseFormatPrompts1$outboundSchema` instead. */
2654
- export const outboundSchema =
2655
- UpdatePromptResponseFormatPrompts1$outboundSchema;
2656
- /** @deprecated use `UpdatePromptResponseFormatPrompts1$Outbound` instead. */
2657
- export type Outbound = UpdatePromptResponseFormatPrompts1$Outbound;
2658
- }
2659
-
2660
- export function updatePromptResponseFormatPrompts1ToJSON(
2661
- updatePromptResponseFormatPrompts1: UpdatePromptResponseFormatPrompts1,
2662
- ): string {
2663
- return JSON.stringify(
2664
- UpdatePromptResponseFormatPrompts1$outboundSchema.parse(
2665
- updatePromptResponseFormatPrompts1,
2666
- ),
2667
- );
2668
- }
2669
-
2670
- export function updatePromptResponseFormatPrompts1FromJSON(
2671
- jsonString: string,
2672
- ): SafeParseResult<UpdatePromptResponseFormatPrompts1, SDKValidationError> {
2673
- return safeParse(
2674
- jsonString,
2675
- (x) =>
2676
- UpdatePromptResponseFormatPrompts1$inboundSchema.parse(JSON.parse(x)),
2677
- `Failed to parse 'UpdatePromptResponseFormatPrompts1' from JSON`,
2678
- );
2679
- }
2680
-
2681
- /** @internal */
2682
- export const UpdatePromptPromptsResponseFormat$inboundSchema: z.ZodType<
2683
- UpdatePromptPromptsResponseFormat,
2684
- z.ZodTypeDef,
2685
- unknown
2686
- > = z.union([
2687
- z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
2688
- z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
2689
- ]);
2690
-
2691
- /** @internal */
2692
- export type UpdatePromptPromptsResponseFormat$Outbound =
2693
- | UpdatePromptResponseFormatPrompts2$Outbound
2694
- | UpdatePromptResponseFormatPrompts1$Outbound;
2695
-
2696
- /** @internal */
2697
- export const UpdatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
2698
- UpdatePromptPromptsResponseFormat$Outbound,
2699
- z.ZodTypeDef,
2700
- UpdatePromptPromptsResponseFormat
2701
- > = z.union([
2702
- z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
2703
- z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
2704
- ]);
2705
-
2706
- /**
2707
- * @internal
2708
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2709
- */
2710
- export namespace UpdatePromptPromptsResponseFormat$ {
2711
- /** @deprecated use `UpdatePromptPromptsResponseFormat$inboundSchema` instead. */
2712
- export const inboundSchema = UpdatePromptPromptsResponseFormat$inboundSchema;
2713
- /** @deprecated use `UpdatePromptPromptsResponseFormat$outboundSchema` instead. */
2714
- export const outboundSchema =
2715
- UpdatePromptPromptsResponseFormat$outboundSchema;
2716
- /** @deprecated use `UpdatePromptPromptsResponseFormat$Outbound` instead. */
2717
- export type Outbound = UpdatePromptPromptsResponseFormat$Outbound;
2718
- }
2719
-
2720
- export function updatePromptPromptsResponseFormatToJSON(
2721
- updatePromptPromptsResponseFormat: UpdatePromptPromptsResponseFormat,
2722
- ): string {
2723
- return JSON.stringify(
2724
- UpdatePromptPromptsResponseFormat$outboundSchema.parse(
2725
- updatePromptPromptsResponseFormat,
2726
- ),
2727
- );
2728
- }
2729
-
2730
- export function updatePromptPromptsResponseFormatFromJSON(
2731
- jsonString: string,
2732
- ): SafeParseResult<UpdatePromptPromptsResponseFormat, SDKValidationError> {
2733
- return safeParse(
2734
- jsonString,
2735
- (x) => UpdatePromptPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
2736
- `Failed to parse 'UpdatePromptPromptsResponseFormat' from JSON`,
2737
- );
2738
- }
2739
-
2740
- /** @internal */
2741
- export const UpdatePromptPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
2742
- typeof UpdatePromptPromptsPhotoRealVersion
2743
- > = z.nativeEnum(UpdatePromptPromptsPhotoRealVersion);
2744
-
2745
- /** @internal */
2746
- export const UpdatePromptPromptsPhotoRealVersion$outboundSchema:
2747
- z.ZodNativeEnum<typeof UpdatePromptPromptsPhotoRealVersion> =
2748
- UpdatePromptPromptsPhotoRealVersion$inboundSchema;
2749
-
2750
- /**
2751
- * @internal
2752
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2753
- */
2754
- export namespace UpdatePromptPromptsPhotoRealVersion$ {
2755
- /** @deprecated use `UpdatePromptPromptsPhotoRealVersion$inboundSchema` instead. */
2756
- export const inboundSchema =
2757
- UpdatePromptPromptsPhotoRealVersion$inboundSchema;
2758
- /** @deprecated use `UpdatePromptPromptsPhotoRealVersion$outboundSchema` instead. */
2759
- export const outboundSchema =
2760
- UpdatePromptPromptsPhotoRealVersion$outboundSchema;
2761
- }
2762
-
2763
- /** @internal */
2764
- export const UpdatePromptPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<
2765
- typeof UpdatePromptPromptsEncodingFormat
2766
- > = z.nativeEnum(UpdatePromptPromptsEncodingFormat);
2767
-
2768
- /** @internal */
2769
- export const UpdatePromptPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<
2770
- typeof UpdatePromptPromptsEncodingFormat
2771
- > = UpdatePromptPromptsEncodingFormat$inboundSchema;
2772
-
2773
- /**
2774
- * @internal
2775
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2776
- */
2777
- export namespace UpdatePromptPromptsEncodingFormat$ {
2778
- /** @deprecated use `UpdatePromptPromptsEncodingFormat$inboundSchema` instead. */
2779
- export const inboundSchema = UpdatePromptPromptsEncodingFormat$inboundSchema;
2780
- /** @deprecated use `UpdatePromptPromptsEncodingFormat$outboundSchema` instead. */
2781
- export const outboundSchema =
2782
- UpdatePromptPromptsEncodingFormat$outboundSchema;
2783
- }
2784
-
2785
- /** @internal */
2786
- export const UpdatePromptPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<
2787
- typeof UpdatePromptPromptsReasoningEffort
2788
- > = z.nativeEnum(UpdatePromptPromptsReasoningEffort);
2789
-
2790
- /** @internal */
2791
- export const UpdatePromptPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<
2792
- typeof UpdatePromptPromptsReasoningEffort
2793
- > = UpdatePromptPromptsReasoningEffort$inboundSchema;
2794
-
2795
- /**
2796
- * @internal
2797
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2798
- */
2799
- export namespace UpdatePromptPromptsReasoningEffort$ {
2800
- /** @deprecated use `UpdatePromptPromptsReasoningEffort$inboundSchema` instead. */
2801
- export const inboundSchema = UpdatePromptPromptsReasoningEffort$inboundSchema;
2802
- /** @deprecated use `UpdatePromptPromptsReasoningEffort$outboundSchema` instead. */
2803
- export const outboundSchema =
2804
- UpdatePromptPromptsReasoningEffort$outboundSchema;
2805
- }
2806
-
2807
- /** @internal */
2808
- export const UpdatePromptPromptsModelParameters$inboundSchema: z.ZodType<
2809
- UpdatePromptPromptsModelParameters,
2810
- z.ZodTypeDef,
2811
- unknown
2812
- > = z.object({
2813
- temperature: z.number().optional(),
2814
- maxTokens: z.number().optional(),
2815
- topK: z.number().optional(),
2816
- topP: z.number().optional(),
2817
- frequencyPenalty: z.number().optional(),
2818
- presencePenalty: z.number().optional(),
2819
- numImages: z.number().optional(),
2820
- seed: z.number().optional(),
2821
- format: UpdatePromptPromptsFormat$inboundSchema.optional(),
2822
- dimensions: z.string().optional(),
2823
- quality: z.string().optional(),
2824
- style: z.string().optional(),
2825
- responseFormat: z.nullable(
2826
- z.union([
2827
- z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
2828
- z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
2829
- ]),
2830
- ).optional(),
2831
- photoRealVersion: UpdatePromptPromptsPhotoRealVersion$inboundSchema
2832
- .optional(),
2833
- encoding_format: UpdatePromptPromptsEncodingFormat$inboundSchema.optional(),
2834
- reasoningEffort: UpdatePromptPromptsReasoningEffort$inboundSchema.optional(),
2835
- budgetTokens: z.number().optional(),
2836
- }).transform((v) => {
2837
- return remap$(v, {
2838
- "encoding_format": "encodingFormat",
2839
- });
2840
- });
2841
-
2842
- /** @internal */
2843
- export type UpdatePromptPromptsModelParameters$Outbound = {
2844
- temperature?: number | undefined;
2845
- maxTokens?: number | undefined;
2846
- topK?: number | undefined;
2847
- topP?: number | undefined;
2848
- frequencyPenalty?: number | undefined;
2849
- presencePenalty?: number | undefined;
2850
- numImages?: number | undefined;
2851
- seed?: number | undefined;
2852
- format?: string | undefined;
2853
- dimensions?: string | undefined;
2854
- quality?: string | undefined;
2855
- style?: string | undefined;
2856
- responseFormat?:
2857
- | UpdatePromptResponseFormatPrompts2$Outbound
2858
- | UpdatePromptResponseFormatPrompts1$Outbound
2859
- | null
2860
- | undefined;
2861
- photoRealVersion?: string | undefined;
2862
- encoding_format?: string | undefined;
2863
- reasoningEffort?: string | undefined;
2864
- budgetTokens?: number | undefined;
2865
- };
2866
-
2867
- /** @internal */
2868
- export const UpdatePromptPromptsModelParameters$outboundSchema: z.ZodType<
2869
- UpdatePromptPromptsModelParameters$Outbound,
2870
- z.ZodTypeDef,
2871
- UpdatePromptPromptsModelParameters
2872
- > = z.object({
2873
- temperature: z.number().optional(),
2874
- maxTokens: z.number().optional(),
2875
- topK: z.number().optional(),
2876
- topP: z.number().optional(),
2877
- frequencyPenalty: z.number().optional(),
2878
- presencePenalty: z.number().optional(),
2879
- numImages: z.number().optional(),
2880
- seed: z.number().optional(),
2881
- format: UpdatePromptPromptsFormat$outboundSchema.optional(),
2882
- dimensions: z.string().optional(),
2883
- quality: z.string().optional(),
2884
- style: z.string().optional(),
2885
- responseFormat: z.nullable(
2886
- z.union([
2887
- z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
2888
- z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
2889
- ]),
2890
- ).optional(),
2891
- photoRealVersion: UpdatePromptPromptsPhotoRealVersion$outboundSchema
2892
- .optional(),
2893
- encodingFormat: UpdatePromptPromptsEncodingFormat$outboundSchema.optional(),
2894
- reasoningEffort: UpdatePromptPromptsReasoningEffort$outboundSchema.optional(),
2895
- budgetTokens: z.number().optional(),
2896
- }).transform((v) => {
2897
- return remap$(v, {
2898
- encodingFormat: "encoding_format",
2899
- });
2900
- });
2901
-
2902
- /**
2903
- * @internal
2904
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2905
- */
2906
- export namespace UpdatePromptPromptsModelParameters$ {
2907
- /** @deprecated use `UpdatePromptPromptsModelParameters$inboundSchema` instead. */
2908
- export const inboundSchema = UpdatePromptPromptsModelParameters$inboundSchema;
2909
- /** @deprecated use `UpdatePromptPromptsModelParameters$outboundSchema` instead. */
2910
- export const outboundSchema =
2911
- UpdatePromptPromptsModelParameters$outboundSchema;
2912
- /** @deprecated use `UpdatePromptPromptsModelParameters$Outbound` instead. */
2913
- export type Outbound = UpdatePromptPromptsModelParameters$Outbound;
2914
- }
2915
-
2916
- export function updatePromptPromptsModelParametersToJSON(
2917
- updatePromptPromptsModelParameters: UpdatePromptPromptsModelParameters,
2918
- ): string {
2919
- return JSON.stringify(
2920
- UpdatePromptPromptsModelParameters$outboundSchema.parse(
2921
- updatePromptPromptsModelParameters,
2922
- ),
2923
- );
2924
- }
2925
-
2926
- export function updatePromptPromptsModelParametersFromJSON(
2927
- jsonString: string,
2928
- ): SafeParseResult<UpdatePromptPromptsModelParameters, SDKValidationError> {
2929
- return safeParse(
2930
- jsonString,
2931
- (x) =>
2932
- UpdatePromptPromptsModelParameters$inboundSchema.parse(JSON.parse(x)),
2933
- `Failed to parse 'UpdatePromptPromptsModelParameters' from JSON`,
2934
- );
2935
- }
2936
-
2937
- /** @internal */
2938
- export const UpdatePromptPromptsProvider$inboundSchema: z.ZodNativeEnum<
2939
- typeof UpdatePromptPromptsProvider
2940
- > = z.nativeEnum(UpdatePromptPromptsProvider);
2941
-
2942
- /** @internal */
2943
- export const UpdatePromptPromptsProvider$outboundSchema: z.ZodNativeEnum<
2944
- typeof UpdatePromptPromptsProvider
2945
- > = UpdatePromptPromptsProvider$inboundSchema;
2946
-
2947
- /**
2948
- * @internal
2949
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2950
- */
2951
- export namespace UpdatePromptPromptsProvider$ {
2952
- /** @deprecated use `UpdatePromptPromptsProvider$inboundSchema` instead. */
2953
- export const inboundSchema = UpdatePromptPromptsProvider$inboundSchema;
2954
- /** @deprecated use `UpdatePromptPromptsProvider$outboundSchema` instead. */
2955
- export const outboundSchema = UpdatePromptPromptsProvider$outboundSchema;
2956
- }
2957
-
2958
- /** @internal */
2959
- export const UpdatePromptPromptsRole$inboundSchema: z.ZodNativeEnum<
2960
- typeof UpdatePromptPromptsRole
2961
- > = z.nativeEnum(UpdatePromptPromptsRole);
2962
-
2963
- /** @internal */
2964
- export const UpdatePromptPromptsRole$outboundSchema: z.ZodNativeEnum<
2965
- typeof UpdatePromptPromptsRole
2966
- > = UpdatePromptPromptsRole$inboundSchema;
2967
-
2968
- /**
2969
- * @internal
2970
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2971
- */
2972
- export namespace UpdatePromptPromptsRole$ {
2973
- /** @deprecated use `UpdatePromptPromptsRole$inboundSchema` instead. */
2974
- export const inboundSchema = UpdatePromptPromptsRole$inboundSchema;
2975
- /** @deprecated use `UpdatePromptPromptsRole$outboundSchema` instead. */
2976
- export const outboundSchema = UpdatePromptPromptsRole$outboundSchema;
2977
- }
2978
-
2979
- /** @internal */
2980
- export const UpdatePrompt2PromptsResponse200Type$inboundSchema: z.ZodNativeEnum<
2981
- typeof UpdatePrompt2PromptsResponse200Type
2982
- > = z.nativeEnum(UpdatePrompt2PromptsResponse200Type);
2983
-
2984
- /** @internal */
2985
- export const UpdatePrompt2PromptsResponse200Type$outboundSchema:
2986
- z.ZodNativeEnum<typeof UpdatePrompt2PromptsResponse200Type> =
2987
- UpdatePrompt2PromptsResponse200Type$inboundSchema;
2988
-
2989
- /**
2990
- * @internal
2991
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2992
- */
2993
- export namespace UpdatePrompt2PromptsResponse200Type$ {
2994
- /** @deprecated use `UpdatePrompt2PromptsResponse200Type$inboundSchema` instead. */
2995
- export const inboundSchema =
2996
- UpdatePrompt2PromptsResponse200Type$inboundSchema;
2997
- /** @deprecated use `UpdatePrompt2PromptsResponse200Type$outboundSchema` instead. */
2998
- export const outboundSchema =
2999
- UpdatePrompt2PromptsResponse200Type$outboundSchema;
3000
- }
3001
-
3002
- /** @internal */
3003
- export const UpdatePrompt2PromptsImageUrl$inboundSchema: z.ZodType<
3004
- UpdatePrompt2PromptsImageUrl,
3005
- z.ZodTypeDef,
3006
- unknown
3007
- > = z.object({
3008
- id: z.string().optional(),
3009
- url: z.string(),
3010
- detail: z.string().optional(),
3011
- });
3012
-
3013
- /** @internal */
3014
- export type UpdatePrompt2PromptsImageUrl$Outbound = {
3015
- id?: string | undefined;
3016
- url: string;
3017
- detail?: string | undefined;
3018
- };
3019
-
3020
- /** @internal */
3021
- export const UpdatePrompt2PromptsImageUrl$outboundSchema: z.ZodType<
3022
- UpdatePrompt2PromptsImageUrl$Outbound,
3023
- z.ZodTypeDef,
3024
- UpdatePrompt2PromptsImageUrl
3025
- > = z.object({
3026
- id: z.string().optional(),
3027
- url: z.string(),
3028
- detail: z.string().optional(),
3029
- });
3030
-
3031
- /**
3032
- * @internal
3033
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3034
- */
3035
- export namespace UpdatePrompt2PromptsImageUrl$ {
3036
- /** @deprecated use `UpdatePrompt2PromptsImageUrl$inboundSchema` instead. */
3037
- export const inboundSchema = UpdatePrompt2PromptsImageUrl$inboundSchema;
3038
- /** @deprecated use `UpdatePrompt2PromptsImageUrl$outboundSchema` instead. */
3039
- export const outboundSchema = UpdatePrompt2PromptsImageUrl$outboundSchema;
3040
- /** @deprecated use `UpdatePrompt2PromptsImageUrl$Outbound` instead. */
3041
- export type Outbound = UpdatePrompt2PromptsImageUrl$Outbound;
3042
- }
3043
-
3044
- export function updatePrompt2PromptsImageUrlToJSON(
3045
- updatePrompt2PromptsImageUrl: UpdatePrompt2PromptsImageUrl,
3046
- ): string {
3047
- return JSON.stringify(
3048
- UpdatePrompt2PromptsImageUrl$outboundSchema.parse(
3049
- updatePrompt2PromptsImageUrl,
3050
- ),
3051
- );
3052
- }
3053
-
3054
- export function updatePrompt2PromptsImageUrlFromJSON(
3055
- jsonString: string,
3056
- ): SafeParseResult<UpdatePrompt2PromptsImageUrl, SDKValidationError> {
3057
- return safeParse(
3058
- jsonString,
3059
- (x) => UpdatePrompt2PromptsImageUrl$inboundSchema.parse(JSON.parse(x)),
3060
- `Failed to parse 'UpdatePrompt2PromptsImageUrl' from JSON`,
3061
- );
3062
- }
3063
-
3064
- /** @internal */
3065
- export const UpdatePrompt2Prompts2$inboundSchema: z.ZodType<
3066
- UpdatePrompt2Prompts2,
3067
- z.ZodTypeDef,
3068
- unknown
3069
- > = z.object({
3070
- type: UpdatePrompt2PromptsResponse200Type$inboundSchema,
3071
- image_url: z.lazy(() => UpdatePrompt2PromptsImageUrl$inboundSchema),
3072
- }).transform((v) => {
3073
- return remap$(v, {
3074
- "image_url": "imageUrl",
3075
- });
3076
- });
3077
-
3078
- /** @internal */
3079
- export type UpdatePrompt2Prompts2$Outbound = {
3080
- type: string;
3081
- image_url: UpdatePrompt2PromptsImageUrl$Outbound;
3082
- };
3083
-
3084
- /** @internal */
3085
- export const UpdatePrompt2Prompts2$outboundSchema: z.ZodType<
3086
- UpdatePrompt2Prompts2$Outbound,
3087
- z.ZodTypeDef,
3088
- UpdatePrompt2Prompts2
3089
- > = z.object({
3090
- type: UpdatePrompt2PromptsResponse200Type$outboundSchema,
3091
- imageUrl: z.lazy(() => UpdatePrompt2PromptsImageUrl$outboundSchema),
3092
- }).transform((v) => {
3093
- return remap$(v, {
3094
- imageUrl: "image_url",
3095
- });
3096
- });
3097
-
3098
- /**
3099
- * @internal
3100
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3101
- */
3102
- export namespace UpdatePrompt2Prompts2$ {
3103
- /** @deprecated use `UpdatePrompt2Prompts2$inboundSchema` instead. */
3104
- export const inboundSchema = UpdatePrompt2Prompts2$inboundSchema;
3105
- /** @deprecated use `UpdatePrompt2Prompts2$outboundSchema` instead. */
3106
- export const outboundSchema = UpdatePrompt2Prompts2$outboundSchema;
3107
- /** @deprecated use `UpdatePrompt2Prompts2$Outbound` instead. */
3108
- export type Outbound = UpdatePrompt2Prompts2$Outbound;
3109
- }
3110
-
3111
- export function updatePrompt2Prompts2ToJSON(
3112
- updatePrompt2Prompts2: UpdatePrompt2Prompts2,
3113
- ): string {
3114
- return JSON.stringify(
3115
- UpdatePrompt2Prompts2$outboundSchema.parse(updatePrompt2Prompts2),
3116
- );
3117
- }
3118
-
3119
- export function updatePrompt2Prompts2FromJSON(
3120
- jsonString: string,
3121
- ): SafeParseResult<UpdatePrompt2Prompts2, SDKValidationError> {
3122
- return safeParse(
3123
- jsonString,
3124
- (x) => UpdatePrompt2Prompts2$inboundSchema.parse(JSON.parse(x)),
3125
- `Failed to parse 'UpdatePrompt2Prompts2' from JSON`,
3126
- );
3127
- }
3128
-
3129
- /** @internal */
3130
- export const UpdatePrompt2PromptsResponseType$inboundSchema: z.ZodNativeEnum<
3131
- typeof UpdatePrompt2PromptsResponseType
3132
- > = z.nativeEnum(UpdatePrompt2PromptsResponseType);
3133
-
3134
- /** @internal */
3135
- export const UpdatePrompt2PromptsResponseType$outboundSchema: z.ZodNativeEnum<
3136
- typeof UpdatePrompt2PromptsResponseType
3137
- > = UpdatePrompt2PromptsResponseType$inboundSchema;
3138
-
3139
- /**
3140
- * @internal
3141
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3142
- */
3143
- export namespace UpdatePrompt2PromptsResponseType$ {
3144
- /** @deprecated use `UpdatePrompt2PromptsResponseType$inboundSchema` instead. */
3145
- export const inboundSchema = UpdatePrompt2PromptsResponseType$inboundSchema;
3146
- /** @deprecated use `UpdatePrompt2PromptsResponseType$outboundSchema` instead. */
3147
- export const outboundSchema = UpdatePrompt2PromptsResponseType$outboundSchema;
3148
- }
3149
-
3150
- /** @internal */
3151
- export const UpdatePrompt2Prompts1$inboundSchema: z.ZodType<
3152
- UpdatePrompt2Prompts1,
3153
- z.ZodTypeDef,
3154
- unknown
3155
- > = z.object({
3156
- type: UpdatePrompt2PromptsResponseType$inboundSchema,
3157
- text: z.string(),
3158
- });
3159
-
3160
- /** @internal */
3161
- export type UpdatePrompt2Prompts1$Outbound = {
3162
- type: string;
3163
- text: string;
3164
- };
3165
-
3166
- /** @internal */
3167
- export const UpdatePrompt2Prompts1$outboundSchema: z.ZodType<
3168
- UpdatePrompt2Prompts1$Outbound,
3169
- z.ZodTypeDef,
3170
- UpdatePrompt2Prompts1
3171
- > = z.object({
3172
- type: UpdatePrompt2PromptsResponseType$outboundSchema,
3173
- text: z.string(),
3174
- });
3175
-
3176
- /**
3177
- * @internal
3178
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3179
- */
3180
- export namespace UpdatePrompt2Prompts1$ {
3181
- /** @deprecated use `UpdatePrompt2Prompts1$inboundSchema` instead. */
3182
- export const inboundSchema = UpdatePrompt2Prompts1$inboundSchema;
3183
- /** @deprecated use `UpdatePrompt2Prompts1$outboundSchema` instead. */
3184
- export const outboundSchema = UpdatePrompt2Prompts1$outboundSchema;
3185
- /** @deprecated use `UpdatePrompt2Prompts1$Outbound` instead. */
3186
- export type Outbound = UpdatePrompt2Prompts1$Outbound;
3187
- }
3188
-
3189
- export function updatePrompt2Prompts1ToJSON(
3190
- updatePrompt2Prompts1: UpdatePrompt2Prompts1,
3191
- ): string {
3192
- return JSON.stringify(
3193
- UpdatePrompt2Prompts1$outboundSchema.parse(updatePrompt2Prompts1),
3194
- );
3195
- }
3196
-
3197
- export function updatePrompt2Prompts1FromJSON(
3198
- jsonString: string,
3199
- ): SafeParseResult<UpdatePrompt2Prompts1, SDKValidationError> {
3200
- return safeParse(
3201
- jsonString,
3202
- (x) => UpdatePrompt2Prompts1$inboundSchema.parse(JSON.parse(x)),
3203
- `Failed to parse 'UpdatePrompt2Prompts1' from JSON`,
3204
- );
3205
- }
3206
-
3207
- /** @internal */
3208
- export const UpdatePromptContentPrompts2$inboundSchema: z.ZodType<
3209
- UpdatePromptContentPrompts2,
3210
- z.ZodTypeDef,
3211
- unknown
3212
- > = z.union([
3213
- z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
3214
- z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
3215
- ]);
3216
-
3217
- /** @internal */
3218
- export type UpdatePromptContentPrompts2$Outbound =
3219
- | UpdatePrompt2Prompts1$Outbound
3220
- | UpdatePrompt2Prompts2$Outbound;
3221
-
3222
- /** @internal */
3223
- export const UpdatePromptContentPrompts2$outboundSchema: z.ZodType<
3224
- UpdatePromptContentPrompts2$Outbound,
3225
- z.ZodTypeDef,
3226
- UpdatePromptContentPrompts2
3227
- > = z.union([
3228
- z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
3229
- z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
3230
- ]);
3231
-
3232
- /**
3233
- * @internal
3234
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3235
- */
3236
- export namespace UpdatePromptContentPrompts2$ {
3237
- /** @deprecated use `UpdatePromptContentPrompts2$inboundSchema` instead. */
3238
- export const inboundSchema = UpdatePromptContentPrompts2$inboundSchema;
3239
- /** @deprecated use `UpdatePromptContentPrompts2$outboundSchema` instead. */
3240
- export const outboundSchema = UpdatePromptContentPrompts2$outboundSchema;
3241
- /** @deprecated use `UpdatePromptContentPrompts2$Outbound` instead. */
3242
- export type Outbound = UpdatePromptContentPrompts2$Outbound;
3243
- }
3244
-
3245
- export function updatePromptContentPrompts2ToJSON(
3246
- updatePromptContentPrompts2: UpdatePromptContentPrompts2,
3247
- ): string {
3248
- return JSON.stringify(
3249
- UpdatePromptContentPrompts2$outboundSchema.parse(
3250
- updatePromptContentPrompts2,
3251
- ),
3252
- );
3253
- }
3254
-
3255
- export function updatePromptContentPrompts2FromJSON(
3256
- jsonString: string,
3257
- ): SafeParseResult<UpdatePromptContentPrompts2, SDKValidationError> {
3258
- return safeParse(
3259
- jsonString,
3260
- (x) => UpdatePromptContentPrompts2$inboundSchema.parse(JSON.parse(x)),
3261
- `Failed to parse 'UpdatePromptContentPrompts2' from JSON`,
3262
- );
3263
- }
3264
-
3265
- /** @internal */
3266
- export const UpdatePromptPromptsContent$inboundSchema: z.ZodType<
3267
- UpdatePromptPromptsContent,
3268
- z.ZodTypeDef,
3269
- unknown
3270
- > = z.union([
3271
- z.string(),
3272
- z.array(z.union([
3273
- z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
3274
- z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
3275
- ])),
3276
- ]);
3277
-
3278
- /** @internal */
3279
- export type UpdatePromptPromptsContent$Outbound =
3280
- | string
3281
- | Array<UpdatePrompt2Prompts1$Outbound | UpdatePrompt2Prompts2$Outbound>;
3282
-
3283
- /** @internal */
3284
- export const UpdatePromptPromptsContent$outboundSchema: z.ZodType<
3285
- UpdatePromptPromptsContent$Outbound,
3286
- z.ZodTypeDef,
3287
- UpdatePromptPromptsContent
3288
- > = z.union([
3289
- z.string(),
3290
- z.array(z.union([
3291
- z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
3292
- z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
3293
- ])),
3294
- ]);
3295
-
3296
- /**
3297
- * @internal
3298
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3299
- */
3300
- export namespace UpdatePromptPromptsContent$ {
3301
- /** @deprecated use `UpdatePromptPromptsContent$inboundSchema` instead. */
3302
- export const inboundSchema = UpdatePromptPromptsContent$inboundSchema;
3303
- /** @deprecated use `UpdatePromptPromptsContent$outboundSchema` instead. */
3304
- export const outboundSchema = UpdatePromptPromptsContent$outboundSchema;
3305
- /** @deprecated use `UpdatePromptPromptsContent$Outbound` instead. */
3306
- export type Outbound = UpdatePromptPromptsContent$Outbound;
3307
- }
3308
-
3309
- export function updatePromptPromptsContentToJSON(
3310
- updatePromptPromptsContent: UpdatePromptPromptsContent,
3311
- ): string {
3312
- return JSON.stringify(
3313
- UpdatePromptPromptsContent$outboundSchema.parse(updatePromptPromptsContent),
3314
- );
3315
- }
3316
-
3317
- export function updatePromptPromptsContentFromJSON(
3318
- jsonString: string,
3319
- ): SafeParseResult<UpdatePromptPromptsContent, SDKValidationError> {
3320
- return safeParse(
3321
- jsonString,
3322
- (x) => UpdatePromptPromptsContent$inboundSchema.parse(JSON.parse(x)),
3323
- `Failed to parse 'UpdatePromptPromptsContent' from JSON`,
3324
- );
3325
- }
3326
-
3327
- /** @internal */
3328
- export const UpdatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
3329
- typeof UpdatePromptPromptsResponseType
3330
- > = z.nativeEnum(UpdatePromptPromptsResponseType);
3331
-
3332
- /** @internal */
3333
- export const UpdatePromptPromptsResponseType$outboundSchema: z.ZodNativeEnum<
3334
- typeof UpdatePromptPromptsResponseType
3335
- > = UpdatePromptPromptsResponseType$inboundSchema;
3336
-
3337
- /**
3338
- * @internal
3339
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3340
- */
3341
- export namespace UpdatePromptPromptsResponseType$ {
3342
- /** @deprecated use `UpdatePromptPromptsResponseType$inboundSchema` instead. */
3343
- export const inboundSchema = UpdatePromptPromptsResponseType$inboundSchema;
3344
- /** @deprecated use `UpdatePromptPromptsResponseType$outboundSchema` instead. */
3345
- export const outboundSchema = UpdatePromptPromptsResponseType$outboundSchema;
3346
- }
3347
-
3348
- /** @internal */
3349
- export const UpdatePromptPromptsFunction$inboundSchema: z.ZodType<
3350
- UpdatePromptPromptsFunction,
3351
- z.ZodTypeDef,
3352
- unknown
3353
- > = z.object({
3354
- name: z.string(),
3355
- arguments: z.string(),
3356
- });
3357
-
3358
- /** @internal */
3359
- export type UpdatePromptPromptsFunction$Outbound = {
3360
- name: string;
3361
- arguments: string;
3362
- };
3363
-
3364
- /** @internal */
3365
- export const UpdatePromptPromptsFunction$outboundSchema: z.ZodType<
3366
- UpdatePromptPromptsFunction$Outbound,
3367
- z.ZodTypeDef,
3368
- UpdatePromptPromptsFunction
3369
- > = z.object({
3370
- name: z.string(),
3371
- arguments: z.string(),
3372
- });
3373
-
3374
- /**
3375
- * @internal
3376
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3377
- */
3378
- export namespace UpdatePromptPromptsFunction$ {
3379
- /** @deprecated use `UpdatePromptPromptsFunction$inboundSchema` instead. */
3380
- export const inboundSchema = UpdatePromptPromptsFunction$inboundSchema;
3381
- /** @deprecated use `UpdatePromptPromptsFunction$outboundSchema` instead. */
3382
- export const outboundSchema = UpdatePromptPromptsFunction$outboundSchema;
3383
- /** @deprecated use `UpdatePromptPromptsFunction$Outbound` instead. */
3384
- export type Outbound = UpdatePromptPromptsFunction$Outbound;
3385
- }
3386
-
3387
- export function updatePromptPromptsFunctionToJSON(
3388
- updatePromptPromptsFunction: UpdatePromptPromptsFunction,
3389
- ): string {
3390
- return JSON.stringify(
3391
- UpdatePromptPromptsFunction$outboundSchema.parse(
3392
- updatePromptPromptsFunction,
3393
- ),
3394
- );
3395
- }
3396
-
3397
- export function updatePromptPromptsFunctionFromJSON(
3398
- jsonString: string,
3399
- ): SafeParseResult<UpdatePromptPromptsFunction, SDKValidationError> {
3400
- return safeParse(
3401
- jsonString,
3402
- (x) => UpdatePromptPromptsFunction$inboundSchema.parse(JSON.parse(x)),
3403
- `Failed to parse 'UpdatePromptPromptsFunction' from JSON`,
3404
- );
3405
- }
3406
-
3407
- /** @internal */
3408
- export const UpdatePromptPromptsToolCalls$inboundSchema: z.ZodType<
3409
- UpdatePromptPromptsToolCalls,
3410
- z.ZodTypeDef,
3411
- unknown
3412
- > = z.object({
3413
- id: z.string().optional(),
3414
- index: z.number().optional(),
3415
- type: UpdatePromptPromptsResponseType$inboundSchema,
3416
- function: z.lazy(() => UpdatePromptPromptsFunction$inboundSchema),
3417
- });
3418
-
3419
- /** @internal */
3420
- export type UpdatePromptPromptsToolCalls$Outbound = {
3421
- id?: string | undefined;
3422
- index?: number | undefined;
3423
- type: string;
3424
- function: UpdatePromptPromptsFunction$Outbound;
3425
- };
3426
-
3427
- /** @internal */
3428
- export const UpdatePromptPromptsToolCalls$outboundSchema: z.ZodType<
3429
- UpdatePromptPromptsToolCalls$Outbound,
3430
- z.ZodTypeDef,
3431
- UpdatePromptPromptsToolCalls
3432
- > = z.object({
3433
- id: z.string().optional(),
3434
- index: z.number().optional(),
3435
- type: UpdatePromptPromptsResponseType$outboundSchema,
3436
- function: z.lazy(() => UpdatePromptPromptsFunction$outboundSchema),
3437
- });
3438
-
3439
- /**
3440
- * @internal
3441
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3442
- */
3443
- export namespace UpdatePromptPromptsToolCalls$ {
3444
- /** @deprecated use `UpdatePromptPromptsToolCalls$inboundSchema` instead. */
3445
- export const inboundSchema = UpdatePromptPromptsToolCalls$inboundSchema;
3446
- /** @deprecated use `UpdatePromptPromptsToolCalls$outboundSchema` instead. */
3447
- export const outboundSchema = UpdatePromptPromptsToolCalls$outboundSchema;
3448
- /** @deprecated use `UpdatePromptPromptsToolCalls$Outbound` instead. */
3449
- export type Outbound = UpdatePromptPromptsToolCalls$Outbound;
3450
- }
3451
-
3452
- export function updatePromptPromptsToolCallsToJSON(
3453
- updatePromptPromptsToolCalls: UpdatePromptPromptsToolCalls,
3454
- ): string {
3455
- return JSON.stringify(
3456
- UpdatePromptPromptsToolCalls$outboundSchema.parse(
3457
- updatePromptPromptsToolCalls,
3458
- ),
3459
- );
3460
- }
3461
-
3462
- export function updatePromptPromptsToolCallsFromJSON(
3463
- jsonString: string,
3464
- ): SafeParseResult<UpdatePromptPromptsToolCalls, SDKValidationError> {
3465
- return safeParse(
3466
- jsonString,
3467
- (x) => UpdatePromptPromptsToolCalls$inboundSchema.parse(JSON.parse(x)),
3468
- `Failed to parse 'UpdatePromptPromptsToolCalls' from JSON`,
3469
- );
3470
- }
3471
-
3472
- /** @internal */
3473
- export const UpdatePromptPromptsMessages$inboundSchema: z.ZodType<
3474
- UpdatePromptPromptsMessages,
3475
- z.ZodTypeDef,
3476
- unknown
3477
- > = z.object({
3478
- role: UpdatePromptPromptsRole$inboundSchema,
3479
- content: z.union([
3480
- z.string(),
3481
- z.array(z.union([
3482
- z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
3483
- z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
3484
- ])),
3485
- ]),
3486
- tool_calls: z.array(z.lazy(() => UpdatePromptPromptsToolCalls$inboundSchema))
3487
- .optional(),
3488
- tool_call_id: z.string().optional(),
3489
- }).transform((v) => {
3490
- return remap$(v, {
3491
- "tool_calls": "toolCalls",
3492
- "tool_call_id": "toolCallId",
3493
- });
3494
- });
3495
-
3496
- /** @internal */
3497
- export type UpdatePromptPromptsMessages$Outbound = {
3498
- role: string;
3499
- content:
3500
- | string
3501
- | Array<UpdatePrompt2Prompts1$Outbound | UpdatePrompt2Prompts2$Outbound>;
3502
- tool_calls?: Array<UpdatePromptPromptsToolCalls$Outbound> | undefined;
3503
- tool_call_id?: string | undefined;
3504
- };
3505
-
3506
- /** @internal */
3507
- export const UpdatePromptPromptsMessages$outboundSchema: z.ZodType<
3508
- UpdatePromptPromptsMessages$Outbound,
3509
- z.ZodTypeDef,
3510
- UpdatePromptPromptsMessages
3511
- > = z.object({
3512
- role: UpdatePromptPromptsRole$outboundSchema,
3513
- content: z.union([
3514
- z.string(),
3515
- z.array(z.union([
3516
- z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
3517
- z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
3518
- ])),
3519
- ]),
3520
- toolCalls: z.array(z.lazy(() => UpdatePromptPromptsToolCalls$outboundSchema))
3521
- .optional(),
3522
- toolCallId: z.string().optional(),
3523
- }).transform((v) => {
3524
- return remap$(v, {
3525
- toolCalls: "tool_calls",
3526
- toolCallId: "tool_call_id",
3527
- });
3528
- });
3529
-
3530
- /**
3531
- * @internal
3532
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3533
- */
3534
- export namespace UpdatePromptPromptsMessages$ {
3535
- /** @deprecated use `UpdatePromptPromptsMessages$inboundSchema` instead. */
3536
- export const inboundSchema = UpdatePromptPromptsMessages$inboundSchema;
3537
- /** @deprecated use `UpdatePromptPromptsMessages$outboundSchema` instead. */
3538
- export const outboundSchema = UpdatePromptPromptsMessages$outboundSchema;
3539
- /** @deprecated use `UpdatePromptPromptsMessages$Outbound` instead. */
3540
- export type Outbound = UpdatePromptPromptsMessages$Outbound;
3541
- }
3542
-
3543
- export function updatePromptPromptsMessagesToJSON(
3544
- updatePromptPromptsMessages: UpdatePromptPromptsMessages,
3545
- ): string {
3546
- return JSON.stringify(
3547
- UpdatePromptPromptsMessages$outboundSchema.parse(
3548
- updatePromptPromptsMessages,
3549
- ),
3550
- );
3551
- }
3552
-
3553
- export function updatePromptPromptsMessagesFromJSON(
3554
- jsonString: string,
3555
- ): SafeParseResult<UpdatePromptPromptsMessages, SDKValidationError> {
3556
- return safeParse(
3557
- jsonString,
3558
- (x) => UpdatePromptPromptsMessages$inboundSchema.parse(JSON.parse(x)),
3559
- `Failed to parse 'UpdatePromptPromptsMessages' from JSON`,
3560
- );
3561
- }
3562
-
3563
- /** @internal */
3564
- export const UpdatePromptPromptsPromptConfig$inboundSchema: z.ZodType<
3565
- UpdatePromptPromptsPromptConfig,
3566
- z.ZodTypeDef,
3567
- unknown
3568
- > = z.object({
3569
- stream: z.boolean().optional(),
3570
- model: z.string().optional(),
3571
- model_db_id: z.string().optional(),
3572
- model_type: UpdatePromptPromptsModelType$inboundSchema.optional(),
3573
- model_parameters: z.lazy(() =>
3574
- UpdatePromptPromptsModelParameters$inboundSchema
3575
- ).optional(),
3576
- provider: UpdatePromptPromptsProvider$inboundSchema.optional(),
3577
- integration_id: z.nullable(z.string()).optional(),
3578
- version: z.string().optional(),
3579
- messages: z.array(z.lazy(() => UpdatePromptPromptsMessages$inboundSchema)),
3580
- }).transform((v) => {
3581
- return remap$(v, {
3582
- "model_db_id": "modelDbId",
3583
- "model_type": "modelType",
3584
- "model_parameters": "modelParameters",
3585
- "integration_id": "integrationId",
3586
- });
3587
- });
3588
-
3589
- /** @internal */
3590
- export type UpdatePromptPromptsPromptConfig$Outbound = {
3591
- stream?: boolean | undefined;
3592
- model?: string | undefined;
3593
- model_db_id?: string | undefined;
3594
- model_type?: string | undefined;
3595
- model_parameters?: UpdatePromptPromptsModelParameters$Outbound | undefined;
3596
- provider?: string | undefined;
3597
- integration_id?: string | null | undefined;
3598
- version?: string | undefined;
3599
- messages: Array<UpdatePromptPromptsMessages$Outbound>;
3600
- };
3601
-
3602
- /** @internal */
3603
- export const UpdatePromptPromptsPromptConfig$outboundSchema: z.ZodType<
3604
- UpdatePromptPromptsPromptConfig$Outbound,
3605
- z.ZodTypeDef,
3606
- UpdatePromptPromptsPromptConfig
3607
- > = z.object({
3608
- stream: z.boolean().optional(),
3609
- model: z.string().optional(),
3610
- modelDbId: z.string().optional(),
3611
- modelType: UpdatePromptPromptsModelType$outboundSchema.optional(),
3612
- modelParameters: z.lazy(() =>
3613
- UpdatePromptPromptsModelParameters$outboundSchema
3614
- ).optional(),
3615
- provider: UpdatePromptPromptsProvider$outboundSchema.optional(),
3616
- integrationId: z.nullable(z.string()).optional(),
3617
- version: z.string().optional(),
3618
- messages: z.array(z.lazy(() => UpdatePromptPromptsMessages$outboundSchema)),
3619
- }).transform((v) => {
3620
- return remap$(v, {
3621
- modelDbId: "model_db_id",
3622
- modelType: "model_type",
3623
- modelParameters: "model_parameters",
3624
- integrationId: "integration_id",
3625
- });
3626
- });
3627
-
3628
- /**
3629
- * @internal
3630
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3631
- */
3632
- export namespace UpdatePromptPromptsPromptConfig$ {
3633
- /** @deprecated use `UpdatePromptPromptsPromptConfig$inboundSchema` instead. */
3634
- export const inboundSchema = UpdatePromptPromptsPromptConfig$inboundSchema;
3635
- /** @deprecated use `UpdatePromptPromptsPromptConfig$outboundSchema` instead. */
3636
- export const outboundSchema = UpdatePromptPromptsPromptConfig$outboundSchema;
3637
- /** @deprecated use `UpdatePromptPromptsPromptConfig$Outbound` instead. */
3638
- export type Outbound = UpdatePromptPromptsPromptConfig$Outbound;
3639
- }
3640
-
3641
- export function updatePromptPromptsPromptConfigToJSON(
3642
- updatePromptPromptsPromptConfig: UpdatePromptPromptsPromptConfig,
3643
- ): string {
3644
- return JSON.stringify(
3645
- UpdatePromptPromptsPromptConfig$outboundSchema.parse(
3646
- updatePromptPromptsPromptConfig,
3647
- ),
3648
- );
3649
- }
3650
-
3651
- export function updatePromptPromptsPromptConfigFromJSON(
3652
- jsonString: string,
3653
- ): SafeParseResult<UpdatePromptPromptsPromptConfig, SDKValidationError> {
3654
- return safeParse(
3655
- jsonString,
3656
- (x) => UpdatePromptPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)),
3657
- `Failed to parse 'UpdatePromptPromptsPromptConfig' from JSON`,
3658
- );
3659
- }
3660
-
3661
- /** @internal */
3662
- export const UpdatePromptPromptsUseCases$inboundSchema: z.ZodNativeEnum<
3663
- typeof UpdatePromptPromptsUseCases
3664
- > = z.nativeEnum(UpdatePromptPromptsUseCases);
3665
-
3666
- /** @internal */
3667
- export const UpdatePromptPromptsUseCases$outboundSchema: z.ZodNativeEnum<
3668
- typeof UpdatePromptPromptsUseCases
3669
- > = UpdatePromptPromptsUseCases$inboundSchema;
3670
-
3671
- /**
3672
- * @internal
3673
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3674
- */
3675
- export namespace UpdatePromptPromptsUseCases$ {
3676
- /** @deprecated use `UpdatePromptPromptsUseCases$inboundSchema` instead. */
3677
- export const inboundSchema = UpdatePromptPromptsUseCases$inboundSchema;
3678
- /** @deprecated use `UpdatePromptPromptsUseCases$outboundSchema` instead. */
3679
- export const outboundSchema = UpdatePromptPromptsUseCases$outboundSchema;
3680
- }
3681
-
3682
- /** @internal */
3683
- export const UpdatePromptPromptsLanguage$inboundSchema: z.ZodNativeEnum<
3684
- typeof UpdatePromptPromptsLanguage
3685
- > = z.nativeEnum(UpdatePromptPromptsLanguage);
3686
-
3687
- /** @internal */
3688
- export const UpdatePromptPromptsLanguage$outboundSchema: z.ZodNativeEnum<
3689
- typeof UpdatePromptPromptsLanguage
3690
- > = UpdatePromptPromptsLanguage$inboundSchema;
3691
-
3692
- /**
3693
- * @internal
3694
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3695
- */
3696
- export namespace UpdatePromptPromptsLanguage$ {
3697
- /** @deprecated use `UpdatePromptPromptsLanguage$inboundSchema` instead. */
3698
- export const inboundSchema = UpdatePromptPromptsLanguage$inboundSchema;
3699
- /** @deprecated use `UpdatePromptPromptsLanguage$outboundSchema` instead. */
3700
- export const outboundSchema = UpdatePromptPromptsLanguage$outboundSchema;
3701
- }
3702
-
3703
- /** @internal */
3704
- export const UpdatePromptPromptsMetadata$inboundSchema: z.ZodType<
3705
- UpdatePromptPromptsMetadata,
3706
- z.ZodTypeDef,
3707
- unknown
3708
- > = z.object({
3709
- use_cases: z.array(UpdatePromptPromptsUseCases$inboundSchema).optional(),
3710
- language: z.nullable(UpdatePromptPromptsLanguage$inboundSchema).optional(),
3711
- }).transform((v) => {
3712
- return remap$(v, {
3713
- "use_cases": "useCases",
3714
- });
3715
- });
3716
-
3717
- /** @internal */
3718
- export type UpdatePromptPromptsMetadata$Outbound = {
3719
- use_cases?: Array<string> | undefined;
3720
- language?: string | null | undefined;
3721
- };
3722
-
3723
- /** @internal */
3724
- export const UpdatePromptPromptsMetadata$outboundSchema: z.ZodType<
3725
- UpdatePromptPromptsMetadata$Outbound,
3726
- z.ZodTypeDef,
3727
- UpdatePromptPromptsMetadata
3728
- > = z.object({
3729
- useCases: z.array(UpdatePromptPromptsUseCases$outboundSchema).optional(),
3730
- language: z.nullable(UpdatePromptPromptsLanguage$outboundSchema).optional(),
3731
- }).transform((v) => {
3732
- return remap$(v, {
3733
- useCases: "use_cases",
3734
- });
3735
- });
3736
-
3737
- /**
3738
- * @internal
3739
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3740
- */
3741
- export namespace UpdatePromptPromptsMetadata$ {
3742
- /** @deprecated use `UpdatePromptPromptsMetadata$inboundSchema` instead. */
3743
- export const inboundSchema = UpdatePromptPromptsMetadata$inboundSchema;
3744
- /** @deprecated use `UpdatePromptPromptsMetadata$outboundSchema` instead. */
3745
- export const outboundSchema = UpdatePromptPromptsMetadata$outboundSchema;
3746
- /** @deprecated use `UpdatePromptPromptsMetadata$Outbound` instead. */
3747
- export type Outbound = UpdatePromptPromptsMetadata$Outbound;
3748
- }
3749
-
3750
- export function updatePromptPromptsMetadataToJSON(
3751
- updatePromptPromptsMetadata: UpdatePromptPromptsMetadata,
3752
- ): string {
3753
- return JSON.stringify(
3754
- UpdatePromptPromptsMetadata$outboundSchema.parse(
3755
- updatePromptPromptsMetadata,
3756
- ),
3757
- );
3758
- }
3759
-
3760
- export function updatePromptPromptsMetadataFromJSON(
3761
- jsonString: string,
3762
- ): SafeParseResult<UpdatePromptPromptsMetadata, SDKValidationError> {
3763
- return safeParse(
3764
- jsonString,
3765
- (x) => UpdatePromptPromptsMetadata$inboundSchema.parse(JSON.parse(x)),
3766
- `Failed to parse 'UpdatePromptPromptsMetadata' from JSON`,
3767
- );
3768
- }
3769
-
3770
- /** @internal */
3771
- export const UpdatePromptResponseBody$inboundSchema: z.ZodType<
3772
- UpdatePromptResponseBody,
3773
- z.ZodTypeDef,
3774
- unknown
3775
- > = z.object({
3776
- _id: z.string(),
3777
- type: UpdatePromptPromptsType$inboundSchema,
3778
- owner: z.string(),
3779
- domain_id: z.string(),
3780
- created: z.string(),
3781
- updated: z.string(),
3782
- created_by_id: z.nullable(z.string()).optional(),
3783
- updated_by_id: z.nullable(z.string()).optional(),
3784
- display_name: z.string(),
3785
- description: z.nullable(z.string()).optional(),
3786
- prompt_config: z.lazy(() => UpdatePromptPromptsPromptConfig$inboundSchema),
3787
- metadata: z.lazy(() => UpdatePromptPromptsMetadata$inboundSchema).optional(),
3788
- }).transform((v) => {
3789
- return remap$(v, {
3790
- "_id": "id",
3791
- "domain_id": "domainId",
3792
- "created_by_id": "createdById",
3793
- "updated_by_id": "updatedById",
3794
- "display_name": "displayName",
3795
- "prompt_config": "promptConfig",
3796
- });
3797
- });
3798
-
3799
- /** @internal */
3800
- export type UpdatePromptResponseBody$Outbound = {
3801
- _id: string;
3802
- type: string;
3803
- owner: string;
3804
- domain_id: string;
3805
- created: string;
3806
- updated: string;
3807
- created_by_id?: string | null | undefined;
3808
- updated_by_id?: string | null | undefined;
3809
- display_name: string;
3810
- description?: string | null | undefined;
3811
- prompt_config: UpdatePromptPromptsPromptConfig$Outbound;
3812
- metadata?: UpdatePromptPromptsMetadata$Outbound | undefined;
3813
- };
3814
-
3815
- /** @internal */
3816
- export const UpdatePromptResponseBody$outboundSchema: z.ZodType<
3817
- UpdatePromptResponseBody$Outbound,
3818
- z.ZodTypeDef,
3819
- UpdatePromptResponseBody
3820
- > = z.object({
3821
- id: z.string(),
3822
- type: UpdatePromptPromptsType$outboundSchema,
3823
- owner: z.string(),
3824
- domainId: z.string(),
3825
- created: z.string(),
3826
- updated: z.string(),
3827
- createdById: z.nullable(z.string()).optional(),
3828
- updatedById: z.nullable(z.string()).optional(),
3829
- displayName: z.string(),
3830
- description: z.nullable(z.string()).optional(),
3831
- promptConfig: z.lazy(() => UpdatePromptPromptsPromptConfig$outboundSchema),
3832
- metadata: z.lazy(() => UpdatePromptPromptsMetadata$outboundSchema).optional(),
3833
- }).transform((v) => {
3834
- return remap$(v, {
3835
- id: "_id",
3836
- domainId: "domain_id",
3837
- createdById: "created_by_id",
3838
- updatedById: "updated_by_id",
3839
- displayName: "display_name",
3840
- promptConfig: "prompt_config",
3841
- });
3842
- });
3843
-
3844
- /**
3845
- * @internal
3846
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3847
- */
3848
- export namespace UpdatePromptResponseBody$ {
3849
- /** @deprecated use `UpdatePromptResponseBody$inboundSchema` instead. */
3850
- export const inboundSchema = UpdatePromptResponseBody$inboundSchema;
3851
- /** @deprecated use `UpdatePromptResponseBody$outboundSchema` instead. */
3852
- export const outboundSchema = UpdatePromptResponseBody$outboundSchema;
3853
- /** @deprecated use `UpdatePromptResponseBody$Outbound` instead. */
3854
- export type Outbound = UpdatePromptResponseBody$Outbound;
3855
- }
3856
-
3857
- export function updatePromptResponseBodyToJSON(
3858
- updatePromptResponseBody: UpdatePromptResponseBody,
3859
- ): string {
3860
- return JSON.stringify(
3861
- UpdatePromptResponseBody$outboundSchema.parse(updatePromptResponseBody),
3862
- );
3863
- }
3864
-
3865
- export function updatePromptResponseBodyFromJSON(
3866
- jsonString: string,
3867
- ): SafeParseResult<UpdatePromptResponseBody, SDKValidationError> {
3868
- return safeParse(
3869
- jsonString,
3870
- (x) => UpdatePromptResponseBody$inboundSchema.parse(JSON.parse(x)),
3871
- `Failed to parse 'UpdatePromptResponseBody' from JSON`,
3872
- );
3873
- }