@orq-ai/node 3.14.8 → 4.0.0-rc.0

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