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

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