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