@orq-ai/node 4.0.5 → 4.1.0-rc.1

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 (484) hide show
  1. package/bin/mcp-server.js +214 -217
  2. package/bin/mcp-server.js.map +39 -39
  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 +2 -2
  6. package/examples/package-lock.json +4 -7
  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 +12 -12
  22. package/models/operations/fileget.js +2 -2
  23. package/models/operations/filelist.js +2 -2
  24. package/models/operations/fileupload.js +2 -2
  25. package/models/operations/getalltools.js +12 -12
  26. package/models/operations/getbudget.js +2 -2
  27. package/models/operations/getevals.js +28 -28
  28. package/models/operations/listbudgets.js +2 -2
  29. package/models/operations/listcontacts.js +2 -2
  30. package/models/operations/listdatasetdatapoints.js +8 -8
  31. package/models/operations/listdatasets.js +2 -2
  32. package/models/operations/listdatasources.js +2 -2
  33. package/models/operations/retrievecontact.js +2 -2
  34. package/models/operations/retrievedatapoint.js +8 -8
  35. package/models/operations/retrievedataset.js +2 -2
  36. package/models/operations/retrievedatasource.js +2 -2
  37. package/models/operations/retrievetool.js +12 -12
  38. package/models/operations/runagent.js +2 -2
  39. package/models/operations/streamrunagent.js +2 -2
  40. package/models/operations/updatebudget.js +2 -2
  41. package/models/operations/updatecontact.js +2 -2
  42. package/models/operations/updatedatapoint.js +8 -8
  43. package/models/operations/updatedataset.js +2 -2
  44. package/models/operations/updatedatasource.js +2 -2
  45. package/models/operations/updateeval.js +28 -28
  46. package/models/operations/updatetool.js +14 -14
  47. package/package.json +4 -3
  48. package/src/lib/config.ts +2 -2
  49. package/src/mcp-server/mcp-server.ts +1 -1
  50. package/src/mcp-server/server.ts +1 -1
  51. package/src/models/operations/createbudget.ts +2 -2
  52. package/src/models/operations/createcontact.ts +2 -2
  53. package/src/models/operations/createdataset.ts +2 -2
  54. package/src/models/operations/createdatasetitem.ts +8 -8
  55. package/src/models/operations/createdatasource.ts +2 -2
  56. package/src/models/operations/createeval.ts +28 -28
  57. package/src/models/operations/createtool.ts +12 -12
  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 +12 -12
  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 +12 -12
  74. package/src/models/operations/runagent.ts +2 -2
  75. package/src/models/operations/streamrunagent.ts +2 -2
  76. package/src/models/operations/updatebudget.ts +2 -2
  77. package/src/models/operations/updatecontact.ts +2 -2
  78. package/src/models/operations/updatedatapoint.ts +8 -8
  79. package/src/models/operations/updatedataset.ts +2 -2
  80. package/src/models/operations/updatedatasource.ts +2 -2
  81. package/src/models/operations/updateeval.ts +28 -28
  82. package/src/models/operations/updatetool.ts +14 -14
  83. package/packages/orq-rc/FUNCTIONS.md +0 -103
  84. package/packages/orq-rc/README.md +0 -901
  85. package/packages/orq-rc/RUNTIMES.md +0 -48
  86. package/packages/orq-rc/docs/sdks/agents/README.md +0 -1064
  87. package/packages/orq-rc/docs/sdks/budgets/README.md +0 -401
  88. package/packages/orq-rc/docs/sdks/chunking/README.md +0 -97
  89. package/packages/orq-rc/docs/sdks/contacts/README.md +0 -450
  90. package/packages/orq-rc/docs/sdks/datasets/README.md +0 -836
  91. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -312
  92. package/packages/orq-rc/docs/sdks/evals/README.md +0 -339
  93. package/packages/orq-rc/docs/sdks/feedback/README.md +0 -89
  94. package/packages/orq-rc/docs/sdks/files/README.md +0 -301
  95. package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1487
  96. package/packages/orq-rc/docs/sdks/memorystores/README.md +0 -1171
  97. package/packages/orq-rc/docs/sdks/metrics/README.md +0 -83
  98. package/packages/orq-rc/docs/sdks/models/README.md +0 -76
  99. package/packages/orq-rc/docs/sdks/prompts/README.md +0 -591
  100. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -77
  101. package/packages/orq-rc/docs/sdks/responses/README.md +0 -134
  102. package/packages/orq-rc/docs/sdks/tools/README.md +0 -420
  103. package/packages/orq-rc/examples/README.md +0 -31
  104. package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
  105. package/packages/orq-rc/examples/package-lock.json +0 -619
  106. package/packages/orq-rc/examples/package.json +0 -18
  107. package/packages/orq-rc/jsr.json +0 -28
  108. package/packages/orq-rc/package-lock.json +0 -3047
  109. package/packages/orq-rc/package.json +0 -40
  110. package/packages/orq-rc/src/core.ts +0 -13
  111. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -174
  112. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
  113. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
  114. package/packages/orq-rc/src/funcs/agentsList.ts +0 -179
  115. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -179
  116. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
  117. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -165
  118. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -201
  119. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -191
  120. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
  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 -162
  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 -172
  201. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
  202. package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
  203. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
  204. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
  205. package/packages/orq-rc/src/hooks/global.ts +0 -44
  206. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  207. package/packages/orq-rc/src/hooks/index.ts +0 -6
  208. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  209. package/packages/orq-rc/src/hooks/types.ts +0 -112
  210. package/packages/orq-rc/src/index.ts +0 -9
  211. package/packages/orq-rc/src/lib/base64.ts +0 -37
  212. package/packages/orq-rc/src/lib/config.ts +0 -74
  213. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  214. package/packages/orq-rc/src/lib/encodings.ts +0 -483
  215. package/packages/orq-rc/src/lib/env.ts +0 -89
  216. package/packages/orq-rc/src/lib/event-streams.ts +0 -135
  217. package/packages/orq-rc/src/lib/files.ts +0 -82
  218. package/packages/orq-rc/src/lib/http.ts +0 -323
  219. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  220. package/packages/orq-rc/src/lib/logger.ts +0 -9
  221. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  222. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  223. package/packages/orq-rc/src/lib/retries.ts +0 -218
  224. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  225. package/packages/orq-rc/src/lib/sdks.ts +0 -407
  226. package/packages/orq-rc/src/lib/security.ts +0 -264
  227. package/packages/orq-rc/src/lib/url.ts +0 -33
  228. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -111
  229. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
  230. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  231. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  232. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  233. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  234. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
  235. package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
  236. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  237. package/packages/orq-rc/src/mcp-server/server.ts +0 -251
  238. package/packages/orq-rc/src/mcp-server/shared.ts +0 -74
  239. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +0 -37
  240. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +0 -35
  241. package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +0 -40
  242. package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -41
  243. package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +0 -41
  244. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
  245. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +0 -37
  246. package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +0 -40
  247. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
  248. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -41
  249. package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +0 -37
  250. package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +0 -35
  251. package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +0 -37
  252. package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +0 -37
  253. package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +0 -37
  254. package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
  255. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  256. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
  257. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
  258. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
  259. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
  260. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  261. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  262. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  263. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  264. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  265. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  266. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  267. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  268. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  269. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  270. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  271. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  272. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  273. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  274. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  275. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  276. package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
  277. package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
  278. package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
  279. package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
  280. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  281. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  282. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  283. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  284. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  285. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  286. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  287. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  288. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  289. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  290. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +0 -35
  291. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  292. package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +0 -35
  293. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  294. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  295. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +0 -35
  296. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  297. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  298. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  299. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  300. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
  301. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  302. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  303. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  304. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +0 -35
  305. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +0 -37
  306. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +0 -37
  307. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +0 -35
  308. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +0 -40
  309. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +0 -40
  310. package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +0 -37
  311. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +0 -37
  312. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +0 -37
  313. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +0 -37
  314. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +0 -37
  315. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +0 -37
  316. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +0 -37
  317. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +0 -37
  318. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +0 -37
  319. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  320. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  321. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  322. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  323. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  324. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  325. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  326. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  327. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  328. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +0 -37
  329. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +0 -35
  330. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +0 -37
  331. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +0 -37
  332. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +0 -37
  333. package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
  334. package/packages/orq-rc/src/models/components/index.ts +0 -6
  335. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -6261
  336. package/packages/orq-rc/src/models/components/security.ts +0 -56
  337. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  338. package/packages/orq-rc/src/models/errors/createagentrequest.ts +0 -67
  339. package/packages/orq-rc/src/models/errors/createeval.ts +0 -67
  340. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -67
  341. package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -78
  342. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -67
  343. package/packages/orq-rc/src/models/errors/getevals.ts +0 -67
  344. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -67
  345. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -77
  346. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  347. package/packages/orq-rc/src/models/errors/index.ts +0 -26
  348. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  349. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  350. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -67
  351. package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -78
  352. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  353. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -67
  354. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -67
  355. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -67
  356. package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -70
  357. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -67
  358. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -67
  359. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -78
  360. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -63
  361. package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -8215
  362. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -1353
  363. package/packages/orq-rc/src/models/operations/createbudget.ts +0 -582
  364. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -341
  365. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -237
  366. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -257
  367. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -5379
  368. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -694
  369. package/packages/orq-rc/src/models/operations/createeval.ts +0 -6857
  370. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -226
  371. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1489
  372. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -229
  373. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -242
  374. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -310
  375. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -6179
  376. package/packages/orq-rc/src/models/operations/createtool.ts +0 -3956
  377. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -63
  378. package/packages/orq-rc/src/models/operations/deletebudget.ts +0 -54
  379. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -81
  380. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -198
  381. package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -54
  382. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -72
  383. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -63
  384. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -72
  385. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -51
  386. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -63
  387. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -72
  388. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -83
  389. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -63
  390. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -54
  391. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -60
  392. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -5091
  393. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -8055
  394. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -980
  395. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2054
  396. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -8269
  397. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -63
  398. package/packages/orq-rc/src/models/operations/fileget.ts +0 -181
  399. package/packages/orq-rc/src/models/operations/filelist.ts +0 -268
  400. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -258
  401. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -261
  402. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -280
  403. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -325
  404. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2033
  405. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2292
  406. package/packages/orq-rc/src/models/operations/getbudget.ts +0 -357
  407. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -185
  408. package/packages/orq-rc/src/models/operations/getevals.ts +0 -5543
  409. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -258
  410. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1070
  411. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1924
  412. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1942
  413. package/packages/orq-rc/src/models/operations/index.ts +0 -98
  414. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -1893
  415. package/packages/orq-rc/src/models/operations/listagents.ts +0 -3614
  416. package/packages/orq-rc/src/models/operations/listbudgets.ts +0 -494
  417. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -395
  418. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -408
  419. package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -413
  420. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -3169
  421. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -334
  422. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -363
  423. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1068
  424. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -207
  425. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2041
  426. package/packages/orq-rc/src/models/operations/parse.ts +0 -1013
  427. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -146
  428. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3741
  429. package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -180
  430. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2985
  431. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -246
  432. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -231
  433. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -171
  434. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -189
  435. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -234
  436. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2347
  437. package/packages/orq-rc/src/models/operations/runagent.ts +0 -7613
  438. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -2775
  439. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -9732
  440. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -15817
  441. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -8649
  442. package/packages/orq-rc/src/models/operations/updatebudget.ts +0 -502
  443. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -361
  444. package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -280
  445. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -5374
  446. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -326
  447. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -288
  448. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -7197
  449. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1925
  450. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -238
  451. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -251
  452. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -463
  453. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -6410
  454. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4279
  455. package/packages/orq-rc/src/sdk/agents.ts +0 -196
  456. package/packages/orq-rc/src/sdk/budgets.ts +0 -99
  457. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  458. package/packages/orq-rc/src/sdk/contacts.ts +0 -99
  459. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  460. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  461. package/packages/orq-rc/src/sdk/evals.ts +0 -69
  462. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  463. package/packages/orq-rc/src/sdk/files.ts +0 -78
  464. package/packages/orq-rc/src/sdk/index.ts +0 -5
  465. package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
  466. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  467. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  468. package/packages/orq-rc/src/sdk/models.ts +0 -25
  469. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  470. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  471. package/packages/orq-rc/src/sdk/responses.ts +0 -29
  472. package/packages/orq-rc/src/sdk/sdk.ts +0 -97
  473. package/packages/orq-rc/src/sdk/tools.ts +0 -99
  474. package/packages/orq-rc/src/types/async.ts +0 -68
  475. package/packages/orq-rc/src/types/blobs.ts +0 -32
  476. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  477. package/packages/orq-rc/src/types/enums.ts +0 -45
  478. package/packages/orq-rc/src/types/fp.ts +0 -50
  479. package/packages/orq-rc/src/types/index.ts +0 -11
  480. package/packages/orq-rc/src/types/operations.ts +0 -105
  481. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  482. package/packages/orq-rc/src/types/streams.ts +0 -21
  483. package/packages/orq-rc/src/types/unrecognized.ts +0 -27
  484. package/packages/orq-rc/tsconfig.json +0 -41
@@ -1,2041 +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 ListPromptVersionsRequest = {
13
- promptId: string;
14
- /**
15
- * A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
16
- */
17
- limit?: number | undefined;
18
- /**
19
- * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
20
- */
21
- startingAfter?: string | undefined;
22
- /**
23
- * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
24
- */
25
- endingBefore?: string | undefined;
26
- };
27
-
28
- export const ListPromptVersionsObject = {
29
- List: "list",
30
- } as const;
31
- export type ListPromptVersionsObject = ClosedEnum<
32
- typeof ListPromptVersionsObject
33
- >;
34
-
35
- /**
36
- * The modality of the model
37
- */
38
- export const ListPromptVersionsModelType = {
39
- Chat: "chat",
40
- Completion: "completion",
41
- Embedding: "embedding",
42
- Image: "image",
43
- Tts: "tts",
44
- Stt: "stt",
45
- Rerank: "rerank",
46
- Moderation: "moderation",
47
- Vision: "vision",
48
- } as const;
49
- /**
50
- * The modality of the model
51
- */
52
- export type ListPromptVersionsModelType = ClosedEnum<
53
- typeof ListPromptVersionsModelType
54
- >;
55
-
56
- /**
57
- * Only supported on `image` models.
58
- */
59
- export const ListPromptVersionsFormat = {
60
- Url: "url",
61
- B64Json: "b64_json",
62
- Text: "text",
63
- JsonObject: "json_object",
64
- } as const;
65
- /**
66
- * Only supported on `image` models.
67
- */
68
- export type ListPromptVersionsFormat = ClosedEnum<
69
- typeof ListPromptVersionsFormat
70
- >;
71
-
72
- export const ListPromptVersionsResponseFormat6 = {
73
- Json: "json",
74
- Text: "text",
75
- Srt: "srt",
76
- VerboseJson: "verbose_json",
77
- Vtt: "vtt",
78
- } as const;
79
- export type ListPromptVersionsResponseFormat6 = ClosedEnum<
80
- typeof ListPromptVersionsResponseFormat6
81
- >;
82
-
83
- export const ListPromptVersionsResponseFormat5 = {
84
- Url: "url",
85
- Base64Json: "base64_json",
86
- } as const;
87
- export type ListPromptVersionsResponseFormat5 = ClosedEnum<
88
- typeof ListPromptVersionsResponseFormat5
89
- >;
90
-
91
- export const ListPromptVersionsResponseFormat4 = {
92
- Mp3: "mp3",
93
- Opus: "opus",
94
- Aac: "aac",
95
- Flac: "flac",
96
- Wav: "wav",
97
- Pcm: "pcm",
98
- } as const;
99
- export type ListPromptVersionsResponseFormat4 = ClosedEnum<
100
- typeof ListPromptVersionsResponseFormat4
101
- >;
102
-
103
- export const ListPromptVersionsResponseFormatPromptsResponseType = {
104
- Text: "text",
105
- } as const;
106
- export type ListPromptVersionsResponseFormatPromptsResponseType = ClosedEnum<
107
- typeof ListPromptVersionsResponseFormatPromptsResponseType
108
- >;
109
-
110
- export type ListPromptVersionsResponseFormat3 = {
111
- type: ListPromptVersionsResponseFormatPromptsResponseType;
112
- };
113
-
114
- export const ListPromptVersionsResponseFormatPromptsType = {
115
- JsonObject: "json_object",
116
- } as const;
117
- export type ListPromptVersionsResponseFormatPromptsType = ClosedEnum<
118
- typeof ListPromptVersionsResponseFormatPromptsType
119
- >;
120
-
121
- export type ListPromptVersionsResponseFormat2 = {
122
- type: ListPromptVersionsResponseFormatPromptsType;
123
- };
124
-
125
- export const ListPromptVersionsResponseFormatType = {
126
- JsonSchema: "json_schema",
127
- } as const;
128
- export type ListPromptVersionsResponseFormatType = ClosedEnum<
129
- typeof ListPromptVersionsResponseFormatType
130
- >;
131
-
132
- export type ListPromptVersionsResponseFormatJsonSchema = {
133
- name: string;
134
- description?: string | undefined;
135
- strict?: boolean | undefined;
136
- schema: { [k: string]: any };
137
- };
138
-
139
- export type ListPromptVersionsResponseFormat1 = {
140
- type: ListPromptVersionsResponseFormatType;
141
- displayName?: string | undefined;
142
- jsonSchema: ListPromptVersionsResponseFormatJsonSchema;
143
- };
144
-
145
- /**
146
- * An object specifying the format that the model must output.
147
- *
148
- * @remarks
149
- *
150
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
151
- *
152
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
153
- *
154
- * 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.
155
- */
156
- export type ListPromptVersionsResponseFormat =
157
- | ListPromptVersionsResponseFormat1
158
- | ListPromptVersionsResponseFormat2
159
- | ListPromptVersionsResponseFormat3
160
- | ListPromptVersionsResponseFormat4
161
- | ListPromptVersionsResponseFormat5
162
- | ListPromptVersionsResponseFormat6;
163
-
164
- /**
165
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
166
- */
167
- export const ListPromptVersionsPhotoRealVersion = {
168
- V1: "v1",
169
- V2: "v2",
170
- } as const;
171
- /**
172
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
173
- */
174
- export type ListPromptVersionsPhotoRealVersion = ClosedEnum<
175
- typeof ListPromptVersionsPhotoRealVersion
176
- >;
177
-
178
- /**
179
- * The format to return the embeddings
180
- */
181
- export const ListPromptVersionsEncodingFormat = {
182
- Float: "float",
183
- Base64: "base64",
184
- } as const;
185
- /**
186
- * The format to return the embeddings
187
- */
188
- export type ListPromptVersionsEncodingFormat = ClosedEnum<
189
- typeof ListPromptVersionsEncodingFormat
190
- >;
191
-
192
- /**
193
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
194
- */
195
- export const ListPromptVersionsReasoningEffort = {
196
- None: "none",
197
- Disable: "disable",
198
- Minimal: "minimal",
199
- Low: "low",
200
- Medium: "medium",
201
- High: "high",
202
- } as const;
203
- /**
204
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
205
- */
206
- export type ListPromptVersionsReasoningEffort = ClosedEnum<
207
- typeof ListPromptVersionsReasoningEffort
208
- >;
209
-
210
- /**
211
- * Controls the verbosity of the model output.
212
- */
213
- export const ListPromptVersionsVerbosity = {
214
- Low: "low",
215
- Medium: "medium",
216
- High: "high",
217
- } as const;
218
- /**
219
- * Controls the verbosity of the model output.
220
- */
221
- export type ListPromptVersionsVerbosity = ClosedEnum<
222
- typeof ListPromptVersionsVerbosity
223
- >;
224
-
225
- /**
226
- * The level of thinking to use for the model. Only supported by `Google AI`
227
- */
228
- export const ListPromptVersionsThinkingLevel = {
229
- Low: "low",
230
- High: "high",
231
- } as const;
232
- /**
233
- * The level of thinking to use for the model. Only supported by `Google AI`
234
- */
235
- export type ListPromptVersionsThinkingLevel = ClosedEnum<
236
- typeof ListPromptVersionsThinkingLevel
237
- >;
238
-
239
- /**
240
- * Model Parameters: Not all parameters apply to every model
241
- */
242
- export type ListPromptVersionsModelParameters = {
243
- /**
244
- * Only supported on `chat` and `completion` models.
245
- */
246
- temperature?: number | undefined;
247
- /**
248
- * Only supported on `chat` and `completion` models.
249
- */
250
- maxTokens?: number | undefined;
251
- /**
252
- * Only supported on `chat` and `completion` models.
253
- */
254
- topK?: number | undefined;
255
- /**
256
- * Only supported on `chat` and `completion` models.
257
- */
258
- topP?: number | undefined;
259
- /**
260
- * Only supported on `chat` and `completion` models.
261
- */
262
- frequencyPenalty?: number | undefined;
263
- /**
264
- * Only supported on `chat` and `completion` models.
265
- */
266
- presencePenalty?: number | undefined;
267
- /**
268
- * Only supported on `image` models.
269
- */
270
- numImages?: number | undefined;
271
- /**
272
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
273
- */
274
- seed?: number | undefined;
275
- /**
276
- * Only supported on `image` models.
277
- */
278
- format?: ListPromptVersionsFormat | undefined;
279
- /**
280
- * Only supported on `image` models.
281
- */
282
- dimensions?: string | undefined;
283
- /**
284
- * Only supported on `image` models.
285
- */
286
- quality?: string | undefined;
287
- /**
288
- * Only supported on `image` models.
289
- */
290
- style?: string | undefined;
291
- /**
292
- * An object specifying the format that the model must output.
293
- *
294
- * @remarks
295
- *
296
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
297
- *
298
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
299
- *
300
- * 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.
301
- */
302
- responseFormat?:
303
- | ListPromptVersionsResponseFormat1
304
- | ListPromptVersionsResponseFormat2
305
- | ListPromptVersionsResponseFormat3
306
- | ListPromptVersionsResponseFormat4
307
- | ListPromptVersionsResponseFormat5
308
- | ListPromptVersionsResponseFormat6
309
- | null
310
- | undefined;
311
- /**
312
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
313
- */
314
- photoRealVersion?: ListPromptVersionsPhotoRealVersion | undefined;
315
- /**
316
- * The format to return the embeddings
317
- */
318
- encodingFormat?: ListPromptVersionsEncodingFormat | undefined;
319
- /**
320
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
321
- */
322
- reasoningEffort?: ListPromptVersionsReasoningEffort | undefined;
323
- /**
324
- * 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`
325
- */
326
- budgetTokens?: number | undefined;
327
- /**
328
- * Controls the verbosity of the model output.
329
- */
330
- verbosity?: ListPromptVersionsVerbosity | undefined;
331
- /**
332
- * The level of thinking to use for the model. Only supported by `Google AI`
333
- */
334
- thinkingLevel?: ListPromptVersionsThinkingLevel | undefined;
335
- };
336
-
337
- export const ListPromptVersionsProvider = {
338
- Cohere: "cohere",
339
- Openai: "openai",
340
- Anthropic: "anthropic",
341
- Huggingface: "huggingface",
342
- Replicate: "replicate",
343
- Google: "google",
344
- GoogleAi: "google-ai",
345
- Azure: "azure",
346
- Aws: "aws",
347
- Anyscale: "anyscale",
348
- Perplexity: "perplexity",
349
- Groq: "groq",
350
- Fal: "fal",
351
- Leonardoai: "leonardoai",
352
- Nvidia: "nvidia",
353
- Jina: "jina",
354
- Togetherai: "togetherai",
355
- Elevenlabs: "elevenlabs",
356
- Litellm: "litellm",
357
- Openailike: "openailike",
358
- Cerebras: "cerebras",
359
- Bytedance: "bytedance",
360
- Mistral: "mistral",
361
- } as const;
362
- export type ListPromptVersionsProvider = ClosedEnum<
363
- typeof ListPromptVersionsProvider
364
- >;
365
-
366
- /**
367
- * The role of the prompt message
368
- */
369
- export const ListPromptVersionsRole = {
370
- System: "system",
371
- Assistant: "assistant",
372
- User: "user",
373
- Exception: "exception",
374
- Tool: "tool",
375
- Prompt: "prompt",
376
- Correction: "correction",
377
- ExpectedOutput: "expected_output",
378
- } as const;
379
- /**
380
- * The role of the prompt message
381
- */
382
- export type ListPromptVersionsRole = ClosedEnum<typeof ListPromptVersionsRole>;
383
-
384
- /**
385
- * The type of the content part. Always `file`.
386
- */
387
- export const ListPromptVersions2PromptsResponseType = {
388
- File: "file",
389
- } as const;
390
- /**
391
- * The type of the content part. Always `file`.
392
- */
393
- export type ListPromptVersions2PromptsResponseType = ClosedEnum<
394
- typeof ListPromptVersions2PromptsResponseType
395
- >;
396
-
397
- export type ListPromptVersions2File = {
398
- /**
399
- * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
400
- */
401
- fileData?: string | undefined;
402
- /**
403
- * URL to the file. Only supported by Anthropic Claude models for PDF files.
404
- */
405
- uri?: string | undefined;
406
- /**
407
- * MIME type of the file (e.g., application/pdf, image/png)
408
- */
409
- mimeType?: string | undefined;
410
- /**
411
- * The name of the file, used when passing the file to the model as a string.
412
- */
413
- filename?: string | undefined;
414
- };
415
-
416
- export type ListPromptVersions23 = {
417
- /**
418
- * The type of the content part. Always `file`.
419
- */
420
- type: ListPromptVersions2PromptsResponseType;
421
- file: ListPromptVersions2File;
422
- };
423
-
424
- export const ListPromptVersions2PromptsType = {
425
- ImageUrl: "image_url",
426
- } as const;
427
- export type ListPromptVersions2PromptsType = ClosedEnum<
428
- typeof ListPromptVersions2PromptsType
429
- >;
430
-
431
- export type ListPromptVersions2ImageUrl = {
432
- /**
433
- * The orq.ai id of the image
434
- */
435
- id?: string | undefined;
436
- /**
437
- * Either a URL of the image or the base64 encoded data URI.
438
- */
439
- url: string;
440
- /**
441
- * Specifies the detail level of the image. Currently only supported with OpenAI models
442
- */
443
- detail?: string | undefined;
444
- };
445
-
446
- /**
447
- * The image part of the prompt message. Only supported with vision models.
448
- */
449
- export type ListPromptVersions22 = {
450
- type: ListPromptVersions2PromptsType;
451
- imageUrl: ListPromptVersions2ImageUrl;
452
- };
453
-
454
- export const ListPromptVersions2Type = {
455
- Text: "text",
456
- } as const;
457
- export type ListPromptVersions2Type = ClosedEnum<
458
- typeof ListPromptVersions2Type
459
- >;
460
-
461
- /**
462
- * Text content part of a prompt message
463
- */
464
- export type ListPromptVersions21 = {
465
- type: ListPromptVersions2Type;
466
- text: string;
467
- };
468
-
469
- export type ListPromptVersionsContent2 =
470
- | ListPromptVersions21
471
- | ListPromptVersions22
472
- | ListPromptVersions23;
473
-
474
- /**
475
- * 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. Can be null for tool messages in certain scenarios.
476
- */
477
- export type ListPromptVersionsContent =
478
- | string
479
- | Array<ListPromptVersions21 | ListPromptVersions22 | ListPromptVersions23>;
480
-
481
- export const ListPromptVersionsType = {
482
- Function: "function",
483
- } as const;
484
- export type ListPromptVersionsType = ClosedEnum<typeof ListPromptVersionsType>;
485
-
486
- export type ListPromptVersionsFunction = {
487
- name: string;
488
- /**
489
- * JSON string arguments for the functions
490
- */
491
- arguments: string;
492
- };
493
-
494
- export type ListPromptVersionsToolCalls = {
495
- id?: string | undefined;
496
- index?: number | undefined;
497
- type: ListPromptVersionsType;
498
- function: ListPromptVersionsFunction;
499
- };
500
-
501
- export type ListPromptVersionsMessages = {
502
- /**
503
- * The role of the prompt message
504
- */
505
- role: ListPromptVersionsRole;
506
- /**
507
- * 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. Can be null for tool messages in certain scenarios.
508
- */
509
- content:
510
- | string
511
- | Array<ListPromptVersions21 | ListPromptVersions22 | ListPromptVersions23>
512
- | null;
513
- toolCalls?: Array<ListPromptVersionsToolCalls> | undefined;
514
- toolCallId?: string | undefined;
515
- };
516
-
517
- /**
518
- * A list of messages compatible with the openAI schema
519
- */
520
- export type ListPromptVersionsPromptConfig = {
521
- stream?: boolean | undefined;
522
- model?: string | undefined;
523
- /**
524
- * The id of the resource
525
- */
526
- modelDbId?: string | null | undefined;
527
- /**
528
- * The modality of the model
529
- */
530
- modelType?: ListPromptVersionsModelType | null | undefined;
531
- /**
532
- * Model Parameters: Not all parameters apply to every model
533
- */
534
- modelParameters?: ListPromptVersionsModelParameters | undefined;
535
- provider?: ListPromptVersionsProvider | undefined;
536
- /**
537
- * The ID of the integration to use
538
- */
539
- integrationId?: string | null | undefined;
540
- version?: string | undefined;
541
- messages: Array<ListPromptVersionsMessages>;
542
- };
543
-
544
- export const ListPromptVersionsUseCases = {
545
- AgentsSimulations: "Agents simulations",
546
- Agents: "Agents",
547
- APIInteraction: "API interaction",
548
- AutonomousAgents: "Autonomous Agents",
549
- Chatbots: "Chatbots",
550
- Classification: "Classification",
551
- CodeUnderstanding: "Code understanding",
552
- CodeWriting: "Code writing",
553
- Conversation: "Conversation",
554
- DocumentsQA: "Documents QA",
555
- Evaluation: "Evaluation",
556
- Extraction: "Extraction",
557
- MultiModal: "Multi-modal",
558
- SelfChecking: "Self-checking",
559
- SentimentAnalysis: "Sentiment analysis",
560
- Sql: "SQL",
561
- Summarization: "Summarization",
562
- Tagging: "Tagging",
563
- TranslationDocument: "Translation (document)",
564
- TranslationSentences: "Translation (sentences)",
565
- } as const;
566
- export type ListPromptVersionsUseCases = ClosedEnum<
567
- typeof ListPromptVersionsUseCases
568
- >;
569
-
570
- /**
571
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
572
- */
573
- export const ListPromptVersionsLanguage = {
574
- Chinese: "Chinese",
575
- Dutch: "Dutch",
576
- English: "English",
577
- French: "French",
578
- German: "German",
579
- Russian: "Russian",
580
- Spanish: "Spanish",
581
- } as const;
582
- /**
583
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
584
- */
585
- export type ListPromptVersionsLanguage = ClosedEnum<
586
- typeof ListPromptVersionsLanguage
587
- >;
588
-
589
- export type ListPromptVersionsMetadata = {
590
- /**
591
- * 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
592
- */
593
- useCases?: Array<ListPromptVersionsUseCases> | undefined;
594
- /**
595
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
596
- */
597
- language?: ListPromptVersionsLanguage | null | undefined;
598
- };
599
-
600
- export type ListPromptVersionsData = {
601
- id: string;
602
- createdById?: string | null | undefined;
603
- updatedById?: string | null | undefined;
604
- /**
605
- * 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
606
- */
607
- description?: string | null | undefined;
608
- /**
609
- * A list of messages compatible with the openAI schema
610
- */
611
- promptConfig: ListPromptVersionsPromptConfig;
612
- metadata?: ListPromptVersionsMetadata | undefined;
613
- timestamp: string;
614
- };
615
-
616
- /**
617
- * Prompt versions retrieved.
618
- */
619
- export type ListPromptVersionsResponseBody = {
620
- object: ListPromptVersionsObject;
621
- data: Array<ListPromptVersionsData>;
622
- hasMore: boolean;
623
- };
624
-
625
- /** @internal */
626
- export const ListPromptVersionsRequest$inboundSchema: z.ZodType<
627
- ListPromptVersionsRequest,
628
- z.ZodTypeDef,
629
- unknown
630
- > = z.object({
631
- prompt_id: z.string(),
632
- limit: z.number().default(10),
633
- starting_after: z.string().optional(),
634
- ending_before: z.string().optional(),
635
- }).transform((v) => {
636
- return remap$(v, {
637
- "prompt_id": "promptId",
638
- "starting_after": "startingAfter",
639
- "ending_before": "endingBefore",
640
- });
641
- });
642
- /** @internal */
643
- export type ListPromptVersionsRequest$Outbound = {
644
- prompt_id: string;
645
- limit: number;
646
- starting_after?: string | undefined;
647
- ending_before?: string | undefined;
648
- };
649
-
650
- /** @internal */
651
- export const ListPromptVersionsRequest$outboundSchema: z.ZodType<
652
- ListPromptVersionsRequest$Outbound,
653
- z.ZodTypeDef,
654
- ListPromptVersionsRequest
655
- > = z.object({
656
- promptId: z.string(),
657
- limit: z.number().default(10),
658
- startingAfter: z.string().optional(),
659
- endingBefore: z.string().optional(),
660
- }).transform((v) => {
661
- return remap$(v, {
662
- promptId: "prompt_id",
663
- startingAfter: "starting_after",
664
- endingBefore: "ending_before",
665
- });
666
- });
667
-
668
- export function listPromptVersionsRequestToJSON(
669
- listPromptVersionsRequest: ListPromptVersionsRequest,
670
- ): string {
671
- return JSON.stringify(
672
- ListPromptVersionsRequest$outboundSchema.parse(listPromptVersionsRequest),
673
- );
674
- }
675
- export function listPromptVersionsRequestFromJSON(
676
- jsonString: string,
677
- ): SafeParseResult<ListPromptVersionsRequest, SDKValidationError> {
678
- return safeParse(
679
- jsonString,
680
- (x) => ListPromptVersionsRequest$inboundSchema.parse(JSON.parse(x)),
681
- `Failed to parse 'ListPromptVersionsRequest' from JSON`,
682
- );
683
- }
684
-
685
- /** @internal */
686
- export const ListPromptVersionsObject$inboundSchema: z.ZodNativeEnum<
687
- typeof ListPromptVersionsObject
688
- > = z.nativeEnum(ListPromptVersionsObject);
689
- /** @internal */
690
- export const ListPromptVersionsObject$outboundSchema: z.ZodNativeEnum<
691
- typeof ListPromptVersionsObject
692
- > = ListPromptVersionsObject$inboundSchema;
693
-
694
- /** @internal */
695
- export const ListPromptVersionsModelType$inboundSchema: z.ZodNativeEnum<
696
- typeof ListPromptVersionsModelType
697
- > = z.nativeEnum(ListPromptVersionsModelType);
698
- /** @internal */
699
- export const ListPromptVersionsModelType$outboundSchema: z.ZodNativeEnum<
700
- typeof ListPromptVersionsModelType
701
- > = ListPromptVersionsModelType$inboundSchema;
702
-
703
- /** @internal */
704
- export const ListPromptVersionsFormat$inboundSchema: z.ZodNativeEnum<
705
- typeof ListPromptVersionsFormat
706
- > = z.nativeEnum(ListPromptVersionsFormat);
707
- /** @internal */
708
- export const ListPromptVersionsFormat$outboundSchema: z.ZodNativeEnum<
709
- typeof ListPromptVersionsFormat
710
- > = ListPromptVersionsFormat$inboundSchema;
711
-
712
- /** @internal */
713
- export const ListPromptVersionsResponseFormat6$inboundSchema: z.ZodNativeEnum<
714
- typeof ListPromptVersionsResponseFormat6
715
- > = z.nativeEnum(ListPromptVersionsResponseFormat6);
716
- /** @internal */
717
- export const ListPromptVersionsResponseFormat6$outboundSchema: z.ZodNativeEnum<
718
- typeof ListPromptVersionsResponseFormat6
719
- > = ListPromptVersionsResponseFormat6$inboundSchema;
720
-
721
- /** @internal */
722
- export const ListPromptVersionsResponseFormat5$inboundSchema: z.ZodNativeEnum<
723
- typeof ListPromptVersionsResponseFormat5
724
- > = z.nativeEnum(ListPromptVersionsResponseFormat5);
725
- /** @internal */
726
- export const ListPromptVersionsResponseFormat5$outboundSchema: z.ZodNativeEnum<
727
- typeof ListPromptVersionsResponseFormat5
728
- > = ListPromptVersionsResponseFormat5$inboundSchema;
729
-
730
- /** @internal */
731
- export const ListPromptVersionsResponseFormat4$inboundSchema: z.ZodNativeEnum<
732
- typeof ListPromptVersionsResponseFormat4
733
- > = z.nativeEnum(ListPromptVersionsResponseFormat4);
734
- /** @internal */
735
- export const ListPromptVersionsResponseFormat4$outboundSchema: z.ZodNativeEnum<
736
- typeof ListPromptVersionsResponseFormat4
737
- > = ListPromptVersionsResponseFormat4$inboundSchema;
738
-
739
- /** @internal */
740
- export const ListPromptVersionsResponseFormatPromptsResponseType$inboundSchema:
741
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsResponseType> =
742
- z.nativeEnum(ListPromptVersionsResponseFormatPromptsResponseType);
743
- /** @internal */
744
- export const ListPromptVersionsResponseFormatPromptsResponseType$outboundSchema:
745
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsResponseType> =
746
- ListPromptVersionsResponseFormatPromptsResponseType$inboundSchema;
747
-
748
- /** @internal */
749
- export const ListPromptVersionsResponseFormat3$inboundSchema: z.ZodType<
750
- ListPromptVersionsResponseFormat3,
751
- z.ZodTypeDef,
752
- unknown
753
- > = z.object({
754
- type: ListPromptVersionsResponseFormatPromptsResponseType$inboundSchema,
755
- });
756
- /** @internal */
757
- export type ListPromptVersionsResponseFormat3$Outbound = {
758
- type: string;
759
- };
760
-
761
- /** @internal */
762
- export const ListPromptVersionsResponseFormat3$outboundSchema: z.ZodType<
763
- ListPromptVersionsResponseFormat3$Outbound,
764
- z.ZodTypeDef,
765
- ListPromptVersionsResponseFormat3
766
- > = z.object({
767
- type: ListPromptVersionsResponseFormatPromptsResponseType$outboundSchema,
768
- });
769
-
770
- export function listPromptVersionsResponseFormat3ToJSON(
771
- listPromptVersionsResponseFormat3: ListPromptVersionsResponseFormat3,
772
- ): string {
773
- return JSON.stringify(
774
- ListPromptVersionsResponseFormat3$outboundSchema.parse(
775
- listPromptVersionsResponseFormat3,
776
- ),
777
- );
778
- }
779
- export function listPromptVersionsResponseFormat3FromJSON(
780
- jsonString: string,
781
- ): SafeParseResult<ListPromptVersionsResponseFormat3, SDKValidationError> {
782
- return safeParse(
783
- jsonString,
784
- (x) => ListPromptVersionsResponseFormat3$inboundSchema.parse(JSON.parse(x)),
785
- `Failed to parse 'ListPromptVersionsResponseFormat3' from JSON`,
786
- );
787
- }
788
-
789
- /** @internal */
790
- export const ListPromptVersionsResponseFormatPromptsType$inboundSchema:
791
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsType> = z
792
- .nativeEnum(ListPromptVersionsResponseFormatPromptsType);
793
- /** @internal */
794
- export const ListPromptVersionsResponseFormatPromptsType$outboundSchema:
795
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsType> =
796
- ListPromptVersionsResponseFormatPromptsType$inboundSchema;
797
-
798
- /** @internal */
799
- export const ListPromptVersionsResponseFormat2$inboundSchema: z.ZodType<
800
- ListPromptVersionsResponseFormat2,
801
- z.ZodTypeDef,
802
- unknown
803
- > = z.object({
804
- type: ListPromptVersionsResponseFormatPromptsType$inboundSchema,
805
- });
806
- /** @internal */
807
- export type ListPromptVersionsResponseFormat2$Outbound = {
808
- type: string;
809
- };
810
-
811
- /** @internal */
812
- export const ListPromptVersionsResponseFormat2$outboundSchema: z.ZodType<
813
- ListPromptVersionsResponseFormat2$Outbound,
814
- z.ZodTypeDef,
815
- ListPromptVersionsResponseFormat2
816
- > = z.object({
817
- type: ListPromptVersionsResponseFormatPromptsType$outboundSchema,
818
- });
819
-
820
- export function listPromptVersionsResponseFormat2ToJSON(
821
- listPromptVersionsResponseFormat2: ListPromptVersionsResponseFormat2,
822
- ): string {
823
- return JSON.stringify(
824
- ListPromptVersionsResponseFormat2$outboundSchema.parse(
825
- listPromptVersionsResponseFormat2,
826
- ),
827
- );
828
- }
829
- export function listPromptVersionsResponseFormat2FromJSON(
830
- jsonString: string,
831
- ): SafeParseResult<ListPromptVersionsResponseFormat2, SDKValidationError> {
832
- return safeParse(
833
- jsonString,
834
- (x) => ListPromptVersionsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
835
- `Failed to parse 'ListPromptVersionsResponseFormat2' from JSON`,
836
- );
837
- }
838
-
839
- /** @internal */
840
- export const ListPromptVersionsResponseFormatType$inboundSchema:
841
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatType> = z.nativeEnum(
842
- ListPromptVersionsResponseFormatType,
843
- );
844
- /** @internal */
845
- export const ListPromptVersionsResponseFormatType$outboundSchema:
846
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatType> =
847
- ListPromptVersionsResponseFormatType$inboundSchema;
848
-
849
- /** @internal */
850
- export const ListPromptVersionsResponseFormatJsonSchema$inboundSchema:
851
- z.ZodType<ListPromptVersionsResponseFormatJsonSchema, z.ZodTypeDef, unknown> =
852
- z.object({
853
- name: z.string(),
854
- description: z.string().optional(),
855
- strict: z.boolean().optional(),
856
- schema: z.record(z.any()),
857
- });
858
- /** @internal */
859
- export type ListPromptVersionsResponseFormatJsonSchema$Outbound = {
860
- name: string;
861
- description?: string | undefined;
862
- strict?: boolean | undefined;
863
- schema: { [k: string]: any };
864
- };
865
-
866
- /** @internal */
867
- export const ListPromptVersionsResponseFormatJsonSchema$outboundSchema:
868
- z.ZodType<
869
- ListPromptVersionsResponseFormatJsonSchema$Outbound,
870
- z.ZodTypeDef,
871
- ListPromptVersionsResponseFormatJsonSchema
872
- > = z.object({
873
- name: z.string(),
874
- description: z.string().optional(),
875
- strict: z.boolean().optional(),
876
- schema: z.record(z.any()),
877
- });
878
-
879
- export function listPromptVersionsResponseFormatJsonSchemaToJSON(
880
- listPromptVersionsResponseFormatJsonSchema:
881
- ListPromptVersionsResponseFormatJsonSchema,
882
- ): string {
883
- return JSON.stringify(
884
- ListPromptVersionsResponseFormatJsonSchema$outboundSchema.parse(
885
- listPromptVersionsResponseFormatJsonSchema,
886
- ),
887
- );
888
- }
889
- export function listPromptVersionsResponseFormatJsonSchemaFromJSON(
890
- jsonString: string,
891
- ): SafeParseResult<
892
- ListPromptVersionsResponseFormatJsonSchema,
893
- SDKValidationError
894
- > {
895
- return safeParse(
896
- jsonString,
897
- (x) =>
898
- ListPromptVersionsResponseFormatJsonSchema$inboundSchema.parse(
899
- JSON.parse(x),
900
- ),
901
- `Failed to parse 'ListPromptVersionsResponseFormatJsonSchema' from JSON`,
902
- );
903
- }
904
-
905
- /** @internal */
906
- export const ListPromptVersionsResponseFormat1$inboundSchema: z.ZodType<
907
- ListPromptVersionsResponseFormat1,
908
- z.ZodTypeDef,
909
- unknown
910
- > = z.object({
911
- type: ListPromptVersionsResponseFormatType$inboundSchema,
912
- display_name: z.string().optional(),
913
- json_schema: z.lazy(() =>
914
- ListPromptVersionsResponseFormatJsonSchema$inboundSchema
915
- ),
916
- }).transform((v) => {
917
- return remap$(v, {
918
- "display_name": "displayName",
919
- "json_schema": "jsonSchema",
920
- });
921
- });
922
- /** @internal */
923
- export type ListPromptVersionsResponseFormat1$Outbound = {
924
- type: string;
925
- display_name?: string | undefined;
926
- json_schema: ListPromptVersionsResponseFormatJsonSchema$Outbound;
927
- };
928
-
929
- /** @internal */
930
- export const ListPromptVersionsResponseFormat1$outboundSchema: z.ZodType<
931
- ListPromptVersionsResponseFormat1$Outbound,
932
- z.ZodTypeDef,
933
- ListPromptVersionsResponseFormat1
934
- > = z.object({
935
- type: ListPromptVersionsResponseFormatType$outboundSchema,
936
- displayName: z.string().optional(),
937
- jsonSchema: z.lazy(() =>
938
- ListPromptVersionsResponseFormatJsonSchema$outboundSchema
939
- ),
940
- }).transform((v) => {
941
- return remap$(v, {
942
- displayName: "display_name",
943
- jsonSchema: "json_schema",
944
- });
945
- });
946
-
947
- export function listPromptVersionsResponseFormat1ToJSON(
948
- listPromptVersionsResponseFormat1: ListPromptVersionsResponseFormat1,
949
- ): string {
950
- return JSON.stringify(
951
- ListPromptVersionsResponseFormat1$outboundSchema.parse(
952
- listPromptVersionsResponseFormat1,
953
- ),
954
- );
955
- }
956
- export function listPromptVersionsResponseFormat1FromJSON(
957
- jsonString: string,
958
- ): SafeParseResult<ListPromptVersionsResponseFormat1, SDKValidationError> {
959
- return safeParse(
960
- jsonString,
961
- (x) => ListPromptVersionsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
962
- `Failed to parse 'ListPromptVersionsResponseFormat1' from JSON`,
963
- );
964
- }
965
-
966
- /** @internal */
967
- export const ListPromptVersionsResponseFormat$inboundSchema: z.ZodType<
968
- ListPromptVersionsResponseFormat,
969
- z.ZodTypeDef,
970
- unknown
971
- > = z.union([
972
- z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
973
- z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
974
- z.lazy(() => ListPromptVersionsResponseFormat3$inboundSchema),
975
- ListPromptVersionsResponseFormat4$inboundSchema,
976
- ListPromptVersionsResponseFormat5$inboundSchema,
977
- ListPromptVersionsResponseFormat6$inboundSchema,
978
- ]);
979
- /** @internal */
980
- export type ListPromptVersionsResponseFormat$Outbound =
981
- | ListPromptVersionsResponseFormat1$Outbound
982
- | ListPromptVersionsResponseFormat2$Outbound
983
- | ListPromptVersionsResponseFormat3$Outbound
984
- | string
985
- | string
986
- | string;
987
-
988
- /** @internal */
989
- export const ListPromptVersionsResponseFormat$outboundSchema: z.ZodType<
990
- ListPromptVersionsResponseFormat$Outbound,
991
- z.ZodTypeDef,
992
- ListPromptVersionsResponseFormat
993
- > = z.union([
994
- z.lazy(() => ListPromptVersionsResponseFormat1$outboundSchema),
995
- z.lazy(() => ListPromptVersionsResponseFormat2$outboundSchema),
996
- z.lazy(() => ListPromptVersionsResponseFormat3$outboundSchema),
997
- ListPromptVersionsResponseFormat4$outboundSchema,
998
- ListPromptVersionsResponseFormat5$outboundSchema,
999
- ListPromptVersionsResponseFormat6$outboundSchema,
1000
- ]);
1001
-
1002
- export function listPromptVersionsResponseFormatToJSON(
1003
- listPromptVersionsResponseFormat: ListPromptVersionsResponseFormat,
1004
- ): string {
1005
- return JSON.stringify(
1006
- ListPromptVersionsResponseFormat$outboundSchema.parse(
1007
- listPromptVersionsResponseFormat,
1008
- ),
1009
- );
1010
- }
1011
- export function listPromptVersionsResponseFormatFromJSON(
1012
- jsonString: string,
1013
- ): SafeParseResult<ListPromptVersionsResponseFormat, SDKValidationError> {
1014
- return safeParse(
1015
- jsonString,
1016
- (x) => ListPromptVersionsResponseFormat$inboundSchema.parse(JSON.parse(x)),
1017
- `Failed to parse 'ListPromptVersionsResponseFormat' from JSON`,
1018
- );
1019
- }
1020
-
1021
- /** @internal */
1022
- export const ListPromptVersionsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1023
- typeof ListPromptVersionsPhotoRealVersion
1024
- > = z.nativeEnum(ListPromptVersionsPhotoRealVersion);
1025
- /** @internal */
1026
- export const ListPromptVersionsPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1027
- typeof ListPromptVersionsPhotoRealVersion
1028
- > = ListPromptVersionsPhotoRealVersion$inboundSchema;
1029
-
1030
- /** @internal */
1031
- export const ListPromptVersionsEncodingFormat$inboundSchema: z.ZodNativeEnum<
1032
- typeof ListPromptVersionsEncodingFormat
1033
- > = z.nativeEnum(ListPromptVersionsEncodingFormat);
1034
- /** @internal */
1035
- export const ListPromptVersionsEncodingFormat$outboundSchema: z.ZodNativeEnum<
1036
- typeof ListPromptVersionsEncodingFormat
1037
- > = ListPromptVersionsEncodingFormat$inboundSchema;
1038
-
1039
- /** @internal */
1040
- export const ListPromptVersionsReasoningEffort$inboundSchema: z.ZodNativeEnum<
1041
- typeof ListPromptVersionsReasoningEffort
1042
- > = z.nativeEnum(ListPromptVersionsReasoningEffort);
1043
- /** @internal */
1044
- export const ListPromptVersionsReasoningEffort$outboundSchema: z.ZodNativeEnum<
1045
- typeof ListPromptVersionsReasoningEffort
1046
- > = ListPromptVersionsReasoningEffort$inboundSchema;
1047
-
1048
- /** @internal */
1049
- export const ListPromptVersionsVerbosity$inboundSchema: z.ZodNativeEnum<
1050
- typeof ListPromptVersionsVerbosity
1051
- > = z.nativeEnum(ListPromptVersionsVerbosity);
1052
- /** @internal */
1053
- export const ListPromptVersionsVerbosity$outboundSchema: z.ZodNativeEnum<
1054
- typeof ListPromptVersionsVerbosity
1055
- > = ListPromptVersionsVerbosity$inboundSchema;
1056
-
1057
- /** @internal */
1058
- export const ListPromptVersionsThinkingLevel$inboundSchema: z.ZodNativeEnum<
1059
- typeof ListPromptVersionsThinkingLevel
1060
- > = z.nativeEnum(ListPromptVersionsThinkingLevel);
1061
- /** @internal */
1062
- export const ListPromptVersionsThinkingLevel$outboundSchema: z.ZodNativeEnum<
1063
- typeof ListPromptVersionsThinkingLevel
1064
- > = ListPromptVersionsThinkingLevel$inboundSchema;
1065
-
1066
- /** @internal */
1067
- export const ListPromptVersionsModelParameters$inboundSchema: z.ZodType<
1068
- ListPromptVersionsModelParameters,
1069
- z.ZodTypeDef,
1070
- unknown
1071
- > = z.object({
1072
- temperature: z.number().optional(),
1073
- maxTokens: z.number().optional(),
1074
- topK: z.number().optional(),
1075
- topP: z.number().optional(),
1076
- frequencyPenalty: z.number().optional(),
1077
- presencePenalty: z.number().optional(),
1078
- numImages: z.number().optional(),
1079
- seed: z.number().optional(),
1080
- format: ListPromptVersionsFormat$inboundSchema.optional(),
1081
- dimensions: z.string().optional(),
1082
- quality: z.string().optional(),
1083
- style: z.string().optional(),
1084
- responseFormat: z.nullable(
1085
- z.union([
1086
- z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
1087
- z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
1088
- z.lazy(() => ListPromptVersionsResponseFormat3$inboundSchema),
1089
- ListPromptVersionsResponseFormat4$inboundSchema,
1090
- ListPromptVersionsResponseFormat5$inboundSchema,
1091
- ListPromptVersionsResponseFormat6$inboundSchema,
1092
- ]),
1093
- ).optional(),
1094
- photoRealVersion: ListPromptVersionsPhotoRealVersion$inboundSchema.optional(),
1095
- encoding_format: ListPromptVersionsEncodingFormat$inboundSchema.optional(),
1096
- reasoningEffort: ListPromptVersionsReasoningEffort$inboundSchema.optional(),
1097
- budgetTokens: z.number().optional(),
1098
- verbosity: ListPromptVersionsVerbosity$inboundSchema.optional(),
1099
- thinkingLevel: ListPromptVersionsThinkingLevel$inboundSchema.optional(),
1100
- }).transform((v) => {
1101
- return remap$(v, {
1102
- "encoding_format": "encodingFormat",
1103
- });
1104
- });
1105
- /** @internal */
1106
- export type ListPromptVersionsModelParameters$Outbound = {
1107
- temperature?: number | undefined;
1108
- maxTokens?: number | undefined;
1109
- topK?: number | undefined;
1110
- topP?: number | undefined;
1111
- frequencyPenalty?: number | undefined;
1112
- presencePenalty?: number | undefined;
1113
- numImages?: number | undefined;
1114
- seed?: number | undefined;
1115
- format?: string | undefined;
1116
- dimensions?: string | undefined;
1117
- quality?: string | undefined;
1118
- style?: string | undefined;
1119
- responseFormat?:
1120
- | ListPromptVersionsResponseFormat1$Outbound
1121
- | ListPromptVersionsResponseFormat2$Outbound
1122
- | ListPromptVersionsResponseFormat3$Outbound
1123
- | string
1124
- | string
1125
- | string
1126
- | null
1127
- | undefined;
1128
- photoRealVersion?: string | undefined;
1129
- encoding_format?: string | undefined;
1130
- reasoningEffort?: string | undefined;
1131
- budgetTokens?: number | undefined;
1132
- verbosity?: string | undefined;
1133
- thinkingLevel?: string | undefined;
1134
- };
1135
-
1136
- /** @internal */
1137
- export const ListPromptVersionsModelParameters$outboundSchema: z.ZodType<
1138
- ListPromptVersionsModelParameters$Outbound,
1139
- z.ZodTypeDef,
1140
- ListPromptVersionsModelParameters
1141
- > = z.object({
1142
- temperature: z.number().optional(),
1143
- maxTokens: z.number().optional(),
1144
- topK: z.number().optional(),
1145
- topP: z.number().optional(),
1146
- frequencyPenalty: z.number().optional(),
1147
- presencePenalty: z.number().optional(),
1148
- numImages: z.number().optional(),
1149
- seed: z.number().optional(),
1150
- format: ListPromptVersionsFormat$outboundSchema.optional(),
1151
- dimensions: z.string().optional(),
1152
- quality: z.string().optional(),
1153
- style: z.string().optional(),
1154
- responseFormat: z.nullable(
1155
- z.union([
1156
- z.lazy(() => ListPromptVersionsResponseFormat1$outboundSchema),
1157
- z.lazy(() => ListPromptVersionsResponseFormat2$outboundSchema),
1158
- z.lazy(() => ListPromptVersionsResponseFormat3$outboundSchema),
1159
- ListPromptVersionsResponseFormat4$outboundSchema,
1160
- ListPromptVersionsResponseFormat5$outboundSchema,
1161
- ListPromptVersionsResponseFormat6$outboundSchema,
1162
- ]),
1163
- ).optional(),
1164
- photoRealVersion: ListPromptVersionsPhotoRealVersion$outboundSchema
1165
- .optional(),
1166
- encodingFormat: ListPromptVersionsEncodingFormat$outboundSchema.optional(),
1167
- reasoningEffort: ListPromptVersionsReasoningEffort$outboundSchema.optional(),
1168
- budgetTokens: z.number().optional(),
1169
- verbosity: ListPromptVersionsVerbosity$outboundSchema.optional(),
1170
- thinkingLevel: ListPromptVersionsThinkingLevel$outboundSchema.optional(),
1171
- }).transform((v) => {
1172
- return remap$(v, {
1173
- encodingFormat: "encoding_format",
1174
- });
1175
- });
1176
-
1177
- export function listPromptVersionsModelParametersToJSON(
1178
- listPromptVersionsModelParameters: ListPromptVersionsModelParameters,
1179
- ): string {
1180
- return JSON.stringify(
1181
- ListPromptVersionsModelParameters$outboundSchema.parse(
1182
- listPromptVersionsModelParameters,
1183
- ),
1184
- );
1185
- }
1186
- export function listPromptVersionsModelParametersFromJSON(
1187
- jsonString: string,
1188
- ): SafeParseResult<ListPromptVersionsModelParameters, SDKValidationError> {
1189
- return safeParse(
1190
- jsonString,
1191
- (x) => ListPromptVersionsModelParameters$inboundSchema.parse(JSON.parse(x)),
1192
- `Failed to parse 'ListPromptVersionsModelParameters' from JSON`,
1193
- );
1194
- }
1195
-
1196
- /** @internal */
1197
- export const ListPromptVersionsProvider$inboundSchema: z.ZodNativeEnum<
1198
- typeof ListPromptVersionsProvider
1199
- > = z.nativeEnum(ListPromptVersionsProvider);
1200
- /** @internal */
1201
- export const ListPromptVersionsProvider$outboundSchema: z.ZodNativeEnum<
1202
- typeof ListPromptVersionsProvider
1203
- > = ListPromptVersionsProvider$inboundSchema;
1204
-
1205
- /** @internal */
1206
- export const ListPromptVersionsRole$inboundSchema: z.ZodNativeEnum<
1207
- typeof ListPromptVersionsRole
1208
- > = z.nativeEnum(ListPromptVersionsRole);
1209
- /** @internal */
1210
- export const ListPromptVersionsRole$outboundSchema: z.ZodNativeEnum<
1211
- typeof ListPromptVersionsRole
1212
- > = ListPromptVersionsRole$inboundSchema;
1213
-
1214
- /** @internal */
1215
- export const ListPromptVersions2PromptsResponseType$inboundSchema:
1216
- z.ZodNativeEnum<typeof ListPromptVersions2PromptsResponseType> = z.nativeEnum(
1217
- ListPromptVersions2PromptsResponseType,
1218
- );
1219
- /** @internal */
1220
- export const ListPromptVersions2PromptsResponseType$outboundSchema:
1221
- z.ZodNativeEnum<typeof ListPromptVersions2PromptsResponseType> =
1222
- ListPromptVersions2PromptsResponseType$inboundSchema;
1223
-
1224
- /** @internal */
1225
- export const ListPromptVersions2File$inboundSchema: z.ZodType<
1226
- ListPromptVersions2File,
1227
- z.ZodTypeDef,
1228
- unknown
1229
- > = z.object({
1230
- file_data: z.string().optional(),
1231
- uri: z.string().optional(),
1232
- mimeType: z.string().optional(),
1233
- filename: z.string().optional(),
1234
- }).transform((v) => {
1235
- return remap$(v, {
1236
- "file_data": "fileData",
1237
- });
1238
- });
1239
- /** @internal */
1240
- export type ListPromptVersions2File$Outbound = {
1241
- file_data?: string | undefined;
1242
- uri?: string | undefined;
1243
- mimeType?: string | undefined;
1244
- filename?: string | undefined;
1245
- };
1246
-
1247
- /** @internal */
1248
- export const ListPromptVersions2File$outboundSchema: z.ZodType<
1249
- ListPromptVersions2File$Outbound,
1250
- z.ZodTypeDef,
1251
- ListPromptVersions2File
1252
- > = z.object({
1253
- fileData: z.string().optional(),
1254
- uri: z.string().optional(),
1255
- mimeType: z.string().optional(),
1256
- filename: z.string().optional(),
1257
- }).transform((v) => {
1258
- return remap$(v, {
1259
- fileData: "file_data",
1260
- });
1261
- });
1262
-
1263
- export function listPromptVersions2FileToJSON(
1264
- listPromptVersions2File: ListPromptVersions2File,
1265
- ): string {
1266
- return JSON.stringify(
1267
- ListPromptVersions2File$outboundSchema.parse(listPromptVersions2File),
1268
- );
1269
- }
1270
- export function listPromptVersions2FileFromJSON(
1271
- jsonString: string,
1272
- ): SafeParseResult<ListPromptVersions2File, SDKValidationError> {
1273
- return safeParse(
1274
- jsonString,
1275
- (x) => ListPromptVersions2File$inboundSchema.parse(JSON.parse(x)),
1276
- `Failed to parse 'ListPromptVersions2File' from JSON`,
1277
- );
1278
- }
1279
-
1280
- /** @internal */
1281
- export const ListPromptVersions23$inboundSchema: z.ZodType<
1282
- ListPromptVersions23,
1283
- z.ZodTypeDef,
1284
- unknown
1285
- > = z.object({
1286
- type: ListPromptVersions2PromptsResponseType$inboundSchema,
1287
- file: z.lazy(() => ListPromptVersions2File$inboundSchema),
1288
- });
1289
- /** @internal */
1290
- export type ListPromptVersions23$Outbound = {
1291
- type: string;
1292
- file: ListPromptVersions2File$Outbound;
1293
- };
1294
-
1295
- /** @internal */
1296
- export const ListPromptVersions23$outboundSchema: z.ZodType<
1297
- ListPromptVersions23$Outbound,
1298
- z.ZodTypeDef,
1299
- ListPromptVersions23
1300
- > = z.object({
1301
- type: ListPromptVersions2PromptsResponseType$outboundSchema,
1302
- file: z.lazy(() => ListPromptVersions2File$outboundSchema),
1303
- });
1304
-
1305
- export function listPromptVersions23ToJSON(
1306
- listPromptVersions23: ListPromptVersions23,
1307
- ): string {
1308
- return JSON.stringify(
1309
- ListPromptVersions23$outboundSchema.parse(listPromptVersions23),
1310
- );
1311
- }
1312
- export function listPromptVersions23FromJSON(
1313
- jsonString: string,
1314
- ): SafeParseResult<ListPromptVersions23, SDKValidationError> {
1315
- return safeParse(
1316
- jsonString,
1317
- (x) => ListPromptVersions23$inboundSchema.parse(JSON.parse(x)),
1318
- `Failed to parse 'ListPromptVersions23' from JSON`,
1319
- );
1320
- }
1321
-
1322
- /** @internal */
1323
- export const ListPromptVersions2PromptsType$inboundSchema: z.ZodNativeEnum<
1324
- typeof ListPromptVersions2PromptsType
1325
- > = z.nativeEnum(ListPromptVersions2PromptsType);
1326
- /** @internal */
1327
- export const ListPromptVersions2PromptsType$outboundSchema: z.ZodNativeEnum<
1328
- typeof ListPromptVersions2PromptsType
1329
- > = ListPromptVersions2PromptsType$inboundSchema;
1330
-
1331
- /** @internal */
1332
- export const ListPromptVersions2ImageUrl$inboundSchema: z.ZodType<
1333
- ListPromptVersions2ImageUrl,
1334
- z.ZodTypeDef,
1335
- unknown
1336
- > = z.object({
1337
- id: z.string().optional(),
1338
- url: z.string(),
1339
- detail: z.string().optional(),
1340
- });
1341
- /** @internal */
1342
- export type ListPromptVersions2ImageUrl$Outbound = {
1343
- id?: string | undefined;
1344
- url: string;
1345
- detail?: string | undefined;
1346
- };
1347
-
1348
- /** @internal */
1349
- export const ListPromptVersions2ImageUrl$outboundSchema: z.ZodType<
1350
- ListPromptVersions2ImageUrl$Outbound,
1351
- z.ZodTypeDef,
1352
- ListPromptVersions2ImageUrl
1353
- > = z.object({
1354
- id: z.string().optional(),
1355
- url: z.string(),
1356
- detail: z.string().optional(),
1357
- });
1358
-
1359
- export function listPromptVersions2ImageUrlToJSON(
1360
- listPromptVersions2ImageUrl: ListPromptVersions2ImageUrl,
1361
- ): string {
1362
- return JSON.stringify(
1363
- ListPromptVersions2ImageUrl$outboundSchema.parse(
1364
- listPromptVersions2ImageUrl,
1365
- ),
1366
- );
1367
- }
1368
- export function listPromptVersions2ImageUrlFromJSON(
1369
- jsonString: string,
1370
- ): SafeParseResult<ListPromptVersions2ImageUrl, SDKValidationError> {
1371
- return safeParse(
1372
- jsonString,
1373
- (x) => ListPromptVersions2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1374
- `Failed to parse 'ListPromptVersions2ImageUrl' from JSON`,
1375
- );
1376
- }
1377
-
1378
- /** @internal */
1379
- export const ListPromptVersions22$inboundSchema: z.ZodType<
1380
- ListPromptVersions22,
1381
- z.ZodTypeDef,
1382
- unknown
1383
- > = z.object({
1384
- type: ListPromptVersions2PromptsType$inboundSchema,
1385
- image_url: z.lazy(() => ListPromptVersions2ImageUrl$inboundSchema),
1386
- }).transform((v) => {
1387
- return remap$(v, {
1388
- "image_url": "imageUrl",
1389
- });
1390
- });
1391
- /** @internal */
1392
- export type ListPromptVersions22$Outbound = {
1393
- type: string;
1394
- image_url: ListPromptVersions2ImageUrl$Outbound;
1395
- };
1396
-
1397
- /** @internal */
1398
- export const ListPromptVersions22$outboundSchema: z.ZodType<
1399
- ListPromptVersions22$Outbound,
1400
- z.ZodTypeDef,
1401
- ListPromptVersions22
1402
- > = z.object({
1403
- type: ListPromptVersions2PromptsType$outboundSchema,
1404
- imageUrl: z.lazy(() => ListPromptVersions2ImageUrl$outboundSchema),
1405
- }).transform((v) => {
1406
- return remap$(v, {
1407
- imageUrl: "image_url",
1408
- });
1409
- });
1410
-
1411
- export function listPromptVersions22ToJSON(
1412
- listPromptVersions22: ListPromptVersions22,
1413
- ): string {
1414
- return JSON.stringify(
1415
- ListPromptVersions22$outboundSchema.parse(listPromptVersions22),
1416
- );
1417
- }
1418
- export function listPromptVersions22FromJSON(
1419
- jsonString: string,
1420
- ): SafeParseResult<ListPromptVersions22, SDKValidationError> {
1421
- return safeParse(
1422
- jsonString,
1423
- (x) => ListPromptVersions22$inboundSchema.parse(JSON.parse(x)),
1424
- `Failed to parse 'ListPromptVersions22' from JSON`,
1425
- );
1426
- }
1427
-
1428
- /** @internal */
1429
- export const ListPromptVersions2Type$inboundSchema: z.ZodNativeEnum<
1430
- typeof ListPromptVersions2Type
1431
- > = z.nativeEnum(ListPromptVersions2Type);
1432
- /** @internal */
1433
- export const ListPromptVersions2Type$outboundSchema: z.ZodNativeEnum<
1434
- typeof ListPromptVersions2Type
1435
- > = ListPromptVersions2Type$inboundSchema;
1436
-
1437
- /** @internal */
1438
- export const ListPromptVersions21$inboundSchema: z.ZodType<
1439
- ListPromptVersions21,
1440
- z.ZodTypeDef,
1441
- unknown
1442
- > = z.object({
1443
- type: ListPromptVersions2Type$inboundSchema,
1444
- text: z.string(),
1445
- });
1446
- /** @internal */
1447
- export type ListPromptVersions21$Outbound = {
1448
- type: string;
1449
- text: string;
1450
- };
1451
-
1452
- /** @internal */
1453
- export const ListPromptVersions21$outboundSchema: z.ZodType<
1454
- ListPromptVersions21$Outbound,
1455
- z.ZodTypeDef,
1456
- ListPromptVersions21
1457
- > = z.object({
1458
- type: ListPromptVersions2Type$outboundSchema,
1459
- text: z.string(),
1460
- });
1461
-
1462
- export function listPromptVersions21ToJSON(
1463
- listPromptVersions21: ListPromptVersions21,
1464
- ): string {
1465
- return JSON.stringify(
1466
- ListPromptVersions21$outboundSchema.parse(listPromptVersions21),
1467
- );
1468
- }
1469
- export function listPromptVersions21FromJSON(
1470
- jsonString: string,
1471
- ): SafeParseResult<ListPromptVersions21, SDKValidationError> {
1472
- return safeParse(
1473
- jsonString,
1474
- (x) => ListPromptVersions21$inboundSchema.parse(JSON.parse(x)),
1475
- `Failed to parse 'ListPromptVersions21' from JSON`,
1476
- );
1477
- }
1478
-
1479
- /** @internal */
1480
- export const ListPromptVersionsContent2$inboundSchema: z.ZodType<
1481
- ListPromptVersionsContent2,
1482
- z.ZodTypeDef,
1483
- unknown
1484
- > = z.union([
1485
- z.lazy(() => ListPromptVersions21$inboundSchema),
1486
- z.lazy(() => ListPromptVersions22$inboundSchema),
1487
- z.lazy(() => ListPromptVersions23$inboundSchema),
1488
- ]);
1489
- /** @internal */
1490
- export type ListPromptVersionsContent2$Outbound =
1491
- | ListPromptVersions21$Outbound
1492
- | ListPromptVersions22$Outbound
1493
- | ListPromptVersions23$Outbound;
1494
-
1495
- /** @internal */
1496
- export const ListPromptVersionsContent2$outboundSchema: z.ZodType<
1497
- ListPromptVersionsContent2$Outbound,
1498
- z.ZodTypeDef,
1499
- ListPromptVersionsContent2
1500
- > = z.union([
1501
- z.lazy(() => ListPromptVersions21$outboundSchema),
1502
- z.lazy(() => ListPromptVersions22$outboundSchema),
1503
- z.lazy(() => ListPromptVersions23$outboundSchema),
1504
- ]);
1505
-
1506
- export function listPromptVersionsContent2ToJSON(
1507
- listPromptVersionsContent2: ListPromptVersionsContent2,
1508
- ): string {
1509
- return JSON.stringify(
1510
- ListPromptVersionsContent2$outboundSchema.parse(listPromptVersionsContent2),
1511
- );
1512
- }
1513
- export function listPromptVersionsContent2FromJSON(
1514
- jsonString: string,
1515
- ): SafeParseResult<ListPromptVersionsContent2, SDKValidationError> {
1516
- return safeParse(
1517
- jsonString,
1518
- (x) => ListPromptVersionsContent2$inboundSchema.parse(JSON.parse(x)),
1519
- `Failed to parse 'ListPromptVersionsContent2' from JSON`,
1520
- );
1521
- }
1522
-
1523
- /** @internal */
1524
- export const ListPromptVersionsContent$inboundSchema: z.ZodType<
1525
- ListPromptVersionsContent,
1526
- z.ZodTypeDef,
1527
- unknown
1528
- > = z.union([
1529
- z.string(),
1530
- z.array(z.union([
1531
- z.lazy(() => ListPromptVersions21$inboundSchema),
1532
- z.lazy(() => ListPromptVersions22$inboundSchema),
1533
- z.lazy(() => ListPromptVersions23$inboundSchema),
1534
- ])),
1535
- ]);
1536
- /** @internal */
1537
- export type ListPromptVersionsContent$Outbound =
1538
- | string
1539
- | Array<
1540
- | ListPromptVersions21$Outbound
1541
- | ListPromptVersions22$Outbound
1542
- | ListPromptVersions23$Outbound
1543
- >;
1544
-
1545
- /** @internal */
1546
- export const ListPromptVersionsContent$outboundSchema: z.ZodType<
1547
- ListPromptVersionsContent$Outbound,
1548
- z.ZodTypeDef,
1549
- ListPromptVersionsContent
1550
- > = z.union([
1551
- z.string(),
1552
- z.array(z.union([
1553
- z.lazy(() => ListPromptVersions21$outboundSchema),
1554
- z.lazy(() => ListPromptVersions22$outboundSchema),
1555
- z.lazy(() => ListPromptVersions23$outboundSchema),
1556
- ])),
1557
- ]);
1558
-
1559
- export function listPromptVersionsContentToJSON(
1560
- listPromptVersionsContent: ListPromptVersionsContent,
1561
- ): string {
1562
- return JSON.stringify(
1563
- ListPromptVersionsContent$outboundSchema.parse(listPromptVersionsContent),
1564
- );
1565
- }
1566
- export function listPromptVersionsContentFromJSON(
1567
- jsonString: string,
1568
- ): SafeParseResult<ListPromptVersionsContent, SDKValidationError> {
1569
- return safeParse(
1570
- jsonString,
1571
- (x) => ListPromptVersionsContent$inboundSchema.parse(JSON.parse(x)),
1572
- `Failed to parse 'ListPromptVersionsContent' from JSON`,
1573
- );
1574
- }
1575
-
1576
- /** @internal */
1577
- export const ListPromptVersionsType$inboundSchema: z.ZodNativeEnum<
1578
- typeof ListPromptVersionsType
1579
- > = z.nativeEnum(ListPromptVersionsType);
1580
- /** @internal */
1581
- export const ListPromptVersionsType$outboundSchema: z.ZodNativeEnum<
1582
- typeof ListPromptVersionsType
1583
- > = ListPromptVersionsType$inboundSchema;
1584
-
1585
- /** @internal */
1586
- export const ListPromptVersionsFunction$inboundSchema: z.ZodType<
1587
- ListPromptVersionsFunction,
1588
- z.ZodTypeDef,
1589
- unknown
1590
- > = z.object({
1591
- name: z.string(),
1592
- arguments: z.string(),
1593
- });
1594
- /** @internal */
1595
- export type ListPromptVersionsFunction$Outbound = {
1596
- name: string;
1597
- arguments: string;
1598
- };
1599
-
1600
- /** @internal */
1601
- export const ListPromptVersionsFunction$outboundSchema: z.ZodType<
1602
- ListPromptVersionsFunction$Outbound,
1603
- z.ZodTypeDef,
1604
- ListPromptVersionsFunction
1605
- > = z.object({
1606
- name: z.string(),
1607
- arguments: z.string(),
1608
- });
1609
-
1610
- export function listPromptVersionsFunctionToJSON(
1611
- listPromptVersionsFunction: ListPromptVersionsFunction,
1612
- ): string {
1613
- return JSON.stringify(
1614
- ListPromptVersionsFunction$outboundSchema.parse(listPromptVersionsFunction),
1615
- );
1616
- }
1617
- export function listPromptVersionsFunctionFromJSON(
1618
- jsonString: string,
1619
- ): SafeParseResult<ListPromptVersionsFunction, SDKValidationError> {
1620
- return safeParse(
1621
- jsonString,
1622
- (x) => ListPromptVersionsFunction$inboundSchema.parse(JSON.parse(x)),
1623
- `Failed to parse 'ListPromptVersionsFunction' from JSON`,
1624
- );
1625
- }
1626
-
1627
- /** @internal */
1628
- export const ListPromptVersionsToolCalls$inboundSchema: z.ZodType<
1629
- ListPromptVersionsToolCalls,
1630
- z.ZodTypeDef,
1631
- unknown
1632
- > = z.object({
1633
- id: z.string().optional(),
1634
- index: z.number().optional(),
1635
- type: ListPromptVersionsType$inboundSchema,
1636
- function: z.lazy(() => ListPromptVersionsFunction$inboundSchema),
1637
- });
1638
- /** @internal */
1639
- export type ListPromptVersionsToolCalls$Outbound = {
1640
- id?: string | undefined;
1641
- index?: number | undefined;
1642
- type: string;
1643
- function: ListPromptVersionsFunction$Outbound;
1644
- };
1645
-
1646
- /** @internal */
1647
- export const ListPromptVersionsToolCalls$outboundSchema: z.ZodType<
1648
- ListPromptVersionsToolCalls$Outbound,
1649
- z.ZodTypeDef,
1650
- ListPromptVersionsToolCalls
1651
- > = z.object({
1652
- id: z.string().optional(),
1653
- index: z.number().optional(),
1654
- type: ListPromptVersionsType$outboundSchema,
1655
- function: z.lazy(() => ListPromptVersionsFunction$outboundSchema),
1656
- });
1657
-
1658
- export function listPromptVersionsToolCallsToJSON(
1659
- listPromptVersionsToolCalls: ListPromptVersionsToolCalls,
1660
- ): string {
1661
- return JSON.stringify(
1662
- ListPromptVersionsToolCalls$outboundSchema.parse(
1663
- listPromptVersionsToolCalls,
1664
- ),
1665
- );
1666
- }
1667
- export function listPromptVersionsToolCallsFromJSON(
1668
- jsonString: string,
1669
- ): SafeParseResult<ListPromptVersionsToolCalls, SDKValidationError> {
1670
- return safeParse(
1671
- jsonString,
1672
- (x) => ListPromptVersionsToolCalls$inboundSchema.parse(JSON.parse(x)),
1673
- `Failed to parse 'ListPromptVersionsToolCalls' from JSON`,
1674
- );
1675
- }
1676
-
1677
- /** @internal */
1678
- export const ListPromptVersionsMessages$inboundSchema: z.ZodType<
1679
- ListPromptVersionsMessages,
1680
- z.ZodTypeDef,
1681
- unknown
1682
- > = z.object({
1683
- role: ListPromptVersionsRole$inboundSchema,
1684
- content: z.nullable(
1685
- z.union([
1686
- z.string(),
1687
- z.array(
1688
- z.union([
1689
- z.lazy(() => ListPromptVersions21$inboundSchema),
1690
- z.lazy(() => ListPromptVersions22$inboundSchema),
1691
- z.lazy(() => ListPromptVersions23$inboundSchema),
1692
- ]),
1693
- ),
1694
- ]),
1695
- ),
1696
- tool_calls: z.array(z.lazy(() => ListPromptVersionsToolCalls$inboundSchema))
1697
- .optional(),
1698
- tool_call_id: z.string().optional(),
1699
- }).transform((v) => {
1700
- return remap$(v, {
1701
- "tool_calls": "toolCalls",
1702
- "tool_call_id": "toolCallId",
1703
- });
1704
- });
1705
- /** @internal */
1706
- export type ListPromptVersionsMessages$Outbound = {
1707
- role: string;
1708
- content:
1709
- | string
1710
- | Array<
1711
- | ListPromptVersions21$Outbound
1712
- | ListPromptVersions22$Outbound
1713
- | ListPromptVersions23$Outbound
1714
- >
1715
- | null;
1716
- tool_calls?: Array<ListPromptVersionsToolCalls$Outbound> | undefined;
1717
- tool_call_id?: string | undefined;
1718
- };
1719
-
1720
- /** @internal */
1721
- export const ListPromptVersionsMessages$outboundSchema: z.ZodType<
1722
- ListPromptVersionsMessages$Outbound,
1723
- z.ZodTypeDef,
1724
- ListPromptVersionsMessages
1725
- > = z.object({
1726
- role: ListPromptVersionsRole$outboundSchema,
1727
- content: z.nullable(
1728
- z.union([
1729
- z.string(),
1730
- z.array(
1731
- z.union([
1732
- z.lazy(() => ListPromptVersions21$outboundSchema),
1733
- z.lazy(() => ListPromptVersions22$outboundSchema),
1734
- z.lazy(() => ListPromptVersions23$outboundSchema),
1735
- ]),
1736
- ),
1737
- ]),
1738
- ),
1739
- toolCalls: z.array(z.lazy(() => ListPromptVersionsToolCalls$outboundSchema))
1740
- .optional(),
1741
- toolCallId: z.string().optional(),
1742
- }).transform((v) => {
1743
- return remap$(v, {
1744
- toolCalls: "tool_calls",
1745
- toolCallId: "tool_call_id",
1746
- });
1747
- });
1748
-
1749
- export function listPromptVersionsMessagesToJSON(
1750
- listPromptVersionsMessages: ListPromptVersionsMessages,
1751
- ): string {
1752
- return JSON.stringify(
1753
- ListPromptVersionsMessages$outboundSchema.parse(listPromptVersionsMessages),
1754
- );
1755
- }
1756
- export function listPromptVersionsMessagesFromJSON(
1757
- jsonString: string,
1758
- ): SafeParseResult<ListPromptVersionsMessages, SDKValidationError> {
1759
- return safeParse(
1760
- jsonString,
1761
- (x) => ListPromptVersionsMessages$inboundSchema.parse(JSON.parse(x)),
1762
- `Failed to parse 'ListPromptVersionsMessages' from JSON`,
1763
- );
1764
- }
1765
-
1766
- /** @internal */
1767
- export const ListPromptVersionsPromptConfig$inboundSchema: z.ZodType<
1768
- ListPromptVersionsPromptConfig,
1769
- z.ZodTypeDef,
1770
- unknown
1771
- > = z.object({
1772
- stream: z.boolean().optional(),
1773
- model: z.string().optional(),
1774
- model_db_id: z.nullable(z.string()).optional(),
1775
- model_type: z.nullable(ListPromptVersionsModelType$inboundSchema).optional(),
1776
- model_parameters: z.lazy(() =>
1777
- ListPromptVersionsModelParameters$inboundSchema
1778
- ).optional(),
1779
- provider: ListPromptVersionsProvider$inboundSchema.optional(),
1780
- integration_id: z.nullable(z.string()).optional(),
1781
- version: z.string().optional(),
1782
- messages: z.array(z.lazy(() => ListPromptVersionsMessages$inboundSchema)),
1783
- }).transform((v) => {
1784
- return remap$(v, {
1785
- "model_db_id": "modelDbId",
1786
- "model_type": "modelType",
1787
- "model_parameters": "modelParameters",
1788
- "integration_id": "integrationId",
1789
- });
1790
- });
1791
- /** @internal */
1792
- export type ListPromptVersionsPromptConfig$Outbound = {
1793
- stream?: boolean | undefined;
1794
- model?: string | undefined;
1795
- model_db_id?: string | null | undefined;
1796
- model_type?: string | null | undefined;
1797
- model_parameters?: ListPromptVersionsModelParameters$Outbound | undefined;
1798
- provider?: string | undefined;
1799
- integration_id?: string | null | undefined;
1800
- version?: string | undefined;
1801
- messages: Array<ListPromptVersionsMessages$Outbound>;
1802
- };
1803
-
1804
- /** @internal */
1805
- export const ListPromptVersionsPromptConfig$outboundSchema: z.ZodType<
1806
- ListPromptVersionsPromptConfig$Outbound,
1807
- z.ZodTypeDef,
1808
- ListPromptVersionsPromptConfig
1809
- > = z.object({
1810
- stream: z.boolean().optional(),
1811
- model: z.string().optional(),
1812
- modelDbId: z.nullable(z.string()).optional(),
1813
- modelType: z.nullable(ListPromptVersionsModelType$outboundSchema).optional(),
1814
- modelParameters: z.lazy(() =>
1815
- ListPromptVersionsModelParameters$outboundSchema
1816
- ).optional(),
1817
- provider: ListPromptVersionsProvider$outboundSchema.optional(),
1818
- integrationId: z.nullable(z.string()).optional(),
1819
- version: z.string().optional(),
1820
- messages: z.array(z.lazy(() => ListPromptVersionsMessages$outboundSchema)),
1821
- }).transform((v) => {
1822
- return remap$(v, {
1823
- modelDbId: "model_db_id",
1824
- modelType: "model_type",
1825
- modelParameters: "model_parameters",
1826
- integrationId: "integration_id",
1827
- });
1828
- });
1829
-
1830
- export function listPromptVersionsPromptConfigToJSON(
1831
- listPromptVersionsPromptConfig: ListPromptVersionsPromptConfig,
1832
- ): string {
1833
- return JSON.stringify(
1834
- ListPromptVersionsPromptConfig$outboundSchema.parse(
1835
- listPromptVersionsPromptConfig,
1836
- ),
1837
- );
1838
- }
1839
- export function listPromptVersionsPromptConfigFromJSON(
1840
- jsonString: string,
1841
- ): SafeParseResult<ListPromptVersionsPromptConfig, SDKValidationError> {
1842
- return safeParse(
1843
- jsonString,
1844
- (x) => ListPromptVersionsPromptConfig$inboundSchema.parse(JSON.parse(x)),
1845
- `Failed to parse 'ListPromptVersionsPromptConfig' from JSON`,
1846
- );
1847
- }
1848
-
1849
- /** @internal */
1850
- export const ListPromptVersionsUseCases$inboundSchema: z.ZodNativeEnum<
1851
- typeof ListPromptVersionsUseCases
1852
- > = z.nativeEnum(ListPromptVersionsUseCases);
1853
- /** @internal */
1854
- export const ListPromptVersionsUseCases$outboundSchema: z.ZodNativeEnum<
1855
- typeof ListPromptVersionsUseCases
1856
- > = ListPromptVersionsUseCases$inboundSchema;
1857
-
1858
- /** @internal */
1859
- export const ListPromptVersionsLanguage$inboundSchema: z.ZodNativeEnum<
1860
- typeof ListPromptVersionsLanguage
1861
- > = z.nativeEnum(ListPromptVersionsLanguage);
1862
- /** @internal */
1863
- export const ListPromptVersionsLanguage$outboundSchema: z.ZodNativeEnum<
1864
- typeof ListPromptVersionsLanguage
1865
- > = ListPromptVersionsLanguage$inboundSchema;
1866
-
1867
- /** @internal */
1868
- export const ListPromptVersionsMetadata$inboundSchema: z.ZodType<
1869
- ListPromptVersionsMetadata,
1870
- z.ZodTypeDef,
1871
- unknown
1872
- > = z.object({
1873
- use_cases: z.array(ListPromptVersionsUseCases$inboundSchema).optional(),
1874
- language: z.nullable(ListPromptVersionsLanguage$inboundSchema).optional(),
1875
- }).transform((v) => {
1876
- return remap$(v, {
1877
- "use_cases": "useCases",
1878
- });
1879
- });
1880
- /** @internal */
1881
- export type ListPromptVersionsMetadata$Outbound = {
1882
- use_cases?: Array<string> | undefined;
1883
- language?: string | null | undefined;
1884
- };
1885
-
1886
- /** @internal */
1887
- export const ListPromptVersionsMetadata$outboundSchema: z.ZodType<
1888
- ListPromptVersionsMetadata$Outbound,
1889
- z.ZodTypeDef,
1890
- ListPromptVersionsMetadata
1891
- > = z.object({
1892
- useCases: z.array(ListPromptVersionsUseCases$outboundSchema).optional(),
1893
- language: z.nullable(ListPromptVersionsLanguage$outboundSchema).optional(),
1894
- }).transform((v) => {
1895
- return remap$(v, {
1896
- useCases: "use_cases",
1897
- });
1898
- });
1899
-
1900
- export function listPromptVersionsMetadataToJSON(
1901
- listPromptVersionsMetadata: ListPromptVersionsMetadata,
1902
- ): string {
1903
- return JSON.stringify(
1904
- ListPromptVersionsMetadata$outboundSchema.parse(listPromptVersionsMetadata),
1905
- );
1906
- }
1907
- export function listPromptVersionsMetadataFromJSON(
1908
- jsonString: string,
1909
- ): SafeParseResult<ListPromptVersionsMetadata, SDKValidationError> {
1910
- return safeParse(
1911
- jsonString,
1912
- (x) => ListPromptVersionsMetadata$inboundSchema.parse(JSON.parse(x)),
1913
- `Failed to parse 'ListPromptVersionsMetadata' from JSON`,
1914
- );
1915
- }
1916
-
1917
- /** @internal */
1918
- export const ListPromptVersionsData$inboundSchema: z.ZodType<
1919
- ListPromptVersionsData,
1920
- z.ZodTypeDef,
1921
- unknown
1922
- > = z.object({
1923
- _id: z.string(),
1924
- created_by_id: z.nullable(z.string()).optional(),
1925
- updated_by_id: z.nullable(z.string()).optional(),
1926
- description: z.nullable(z.string()).optional(),
1927
- prompt_config: z.lazy(() => ListPromptVersionsPromptConfig$inboundSchema),
1928
- metadata: z.lazy(() => ListPromptVersionsMetadata$inboundSchema).optional(),
1929
- timestamp: z.string(),
1930
- }).transform((v) => {
1931
- return remap$(v, {
1932
- "_id": "id",
1933
- "created_by_id": "createdById",
1934
- "updated_by_id": "updatedById",
1935
- "prompt_config": "promptConfig",
1936
- });
1937
- });
1938
- /** @internal */
1939
- export type ListPromptVersionsData$Outbound = {
1940
- _id: string;
1941
- created_by_id?: string | null | undefined;
1942
- updated_by_id?: string | null | undefined;
1943
- description?: string | null | undefined;
1944
- prompt_config: ListPromptVersionsPromptConfig$Outbound;
1945
- metadata?: ListPromptVersionsMetadata$Outbound | undefined;
1946
- timestamp: string;
1947
- };
1948
-
1949
- /** @internal */
1950
- export const ListPromptVersionsData$outboundSchema: z.ZodType<
1951
- ListPromptVersionsData$Outbound,
1952
- z.ZodTypeDef,
1953
- ListPromptVersionsData
1954
- > = z.object({
1955
- id: z.string(),
1956
- createdById: z.nullable(z.string()).optional(),
1957
- updatedById: z.nullable(z.string()).optional(),
1958
- description: z.nullable(z.string()).optional(),
1959
- promptConfig: z.lazy(() => ListPromptVersionsPromptConfig$outboundSchema),
1960
- metadata: z.lazy(() => ListPromptVersionsMetadata$outboundSchema).optional(),
1961
- timestamp: z.string(),
1962
- }).transform((v) => {
1963
- return remap$(v, {
1964
- id: "_id",
1965
- createdById: "created_by_id",
1966
- updatedById: "updated_by_id",
1967
- promptConfig: "prompt_config",
1968
- });
1969
- });
1970
-
1971
- export function listPromptVersionsDataToJSON(
1972
- listPromptVersionsData: ListPromptVersionsData,
1973
- ): string {
1974
- return JSON.stringify(
1975
- ListPromptVersionsData$outboundSchema.parse(listPromptVersionsData),
1976
- );
1977
- }
1978
- export function listPromptVersionsDataFromJSON(
1979
- jsonString: string,
1980
- ): SafeParseResult<ListPromptVersionsData, SDKValidationError> {
1981
- return safeParse(
1982
- jsonString,
1983
- (x) => ListPromptVersionsData$inboundSchema.parse(JSON.parse(x)),
1984
- `Failed to parse 'ListPromptVersionsData' from JSON`,
1985
- );
1986
- }
1987
-
1988
- /** @internal */
1989
- export const ListPromptVersionsResponseBody$inboundSchema: z.ZodType<
1990
- ListPromptVersionsResponseBody,
1991
- z.ZodTypeDef,
1992
- unknown
1993
- > = z.object({
1994
- object: ListPromptVersionsObject$inboundSchema,
1995
- data: z.array(z.lazy(() => ListPromptVersionsData$inboundSchema)),
1996
- has_more: z.boolean(),
1997
- }).transform((v) => {
1998
- return remap$(v, {
1999
- "has_more": "hasMore",
2000
- });
2001
- });
2002
- /** @internal */
2003
- export type ListPromptVersionsResponseBody$Outbound = {
2004
- object: string;
2005
- data: Array<ListPromptVersionsData$Outbound>;
2006
- has_more: boolean;
2007
- };
2008
-
2009
- /** @internal */
2010
- export const ListPromptVersionsResponseBody$outboundSchema: z.ZodType<
2011
- ListPromptVersionsResponseBody$Outbound,
2012
- z.ZodTypeDef,
2013
- ListPromptVersionsResponseBody
2014
- > = z.object({
2015
- object: ListPromptVersionsObject$outboundSchema,
2016
- data: z.array(z.lazy(() => ListPromptVersionsData$outboundSchema)),
2017
- hasMore: z.boolean(),
2018
- }).transform((v) => {
2019
- return remap$(v, {
2020
- hasMore: "has_more",
2021
- });
2022
- });
2023
-
2024
- export function listPromptVersionsResponseBodyToJSON(
2025
- listPromptVersionsResponseBody: ListPromptVersionsResponseBody,
2026
- ): string {
2027
- return JSON.stringify(
2028
- ListPromptVersionsResponseBody$outboundSchema.parse(
2029
- listPromptVersionsResponseBody,
2030
- ),
2031
- );
2032
- }
2033
- export function listPromptVersionsResponseBodyFromJSON(
2034
- jsonString: string,
2035
- ): SafeParseResult<ListPromptVersionsResponseBody, SDKValidationError> {
2036
- return safeParse(
2037
- jsonString,
2038
- (x) => ListPromptVersionsResponseBody$inboundSchema.parse(JSON.parse(x)),
2039
- `Failed to parse 'ListPromptVersionsResponseBody' from JSON`,
2040
- );
2041
- }