@orq-ai/node 4.8.0-rc.8 → 4.8.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 (1676) hide show
  1. package/FUNCTIONS.md +4 -4
  2. package/README.md +89 -89
  3. package/examples/{postV2Feedback.example.ts → postV2FeedbackEvaluationRemove.example.ts} +2 -4
  4. package/funcs/agentsCreate.d.ts.map +1 -1
  5. package/funcs/agentsCreate.js +2 -1
  6. package/funcs/agentsCreate.js.map +1 -1
  7. package/funcs/agentsDelete.d.ts.map +1 -1
  8. package/funcs/agentsDelete.js +2 -1
  9. package/funcs/agentsDelete.js.map +1 -1
  10. package/funcs/agentsInvoke.d.ts.map +1 -1
  11. package/funcs/agentsInvoke.js +2 -1
  12. package/funcs/agentsInvoke.js.map +1 -1
  13. package/funcs/agentsList.d.ts.map +1 -1
  14. package/funcs/agentsList.js +2 -1
  15. package/funcs/agentsList.js.map +1 -1
  16. package/funcs/agentsPostV2AgentsA2a.d.ts.map +1 -1
  17. package/funcs/agentsPostV2AgentsA2a.js +2 -1
  18. package/funcs/agentsPostV2AgentsA2a.js.map +1 -1
  19. package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts.map +1 -1
  20. package/funcs/agentsPostV2AgentsKeyCardRefresh.js +2 -1
  21. package/funcs/agentsPostV2AgentsKeyCardRefresh.js.map +1 -1
  22. package/funcs/agentsResponsesCreate.d.ts.map +1 -1
  23. package/funcs/agentsResponsesCreate.js +2 -1
  24. package/funcs/agentsResponsesCreate.js.map +1 -1
  25. package/funcs/agentsResponsesGet.d.ts.map +1 -1
  26. package/funcs/agentsResponsesGet.js +2 -1
  27. package/funcs/agentsResponsesGet.js.map +1 -1
  28. package/funcs/agentsRetrieve.d.ts.map +1 -1
  29. package/funcs/agentsRetrieve.js +2 -1
  30. package/funcs/agentsRetrieve.js.map +1 -1
  31. package/funcs/agentsRun.d.ts.map +1 -1
  32. package/funcs/agentsRun.js +2 -1
  33. package/funcs/agentsRun.js.map +1 -1
  34. package/funcs/agentsStream.d.ts.map +1 -1
  35. package/funcs/agentsStream.js +2 -1
  36. package/funcs/agentsStream.js.map +1 -1
  37. package/funcs/agentsStreamRun.d.ts.map +1 -1
  38. package/funcs/agentsStreamRun.js +2 -1
  39. package/funcs/agentsStreamRun.js.map +1 -1
  40. package/funcs/agentsUpdate.d.ts.map +1 -1
  41. package/funcs/agentsUpdate.js +2 -1
  42. package/funcs/agentsUpdate.js.map +1 -1
  43. package/funcs/annotationsCreate.d.ts.map +1 -1
  44. package/funcs/annotationsCreate.js +2 -1
  45. package/funcs/annotationsCreate.js.map +1 -1
  46. package/funcs/annotationsDelete.d.ts.map +1 -1
  47. package/funcs/annotationsDelete.js +2 -1
  48. package/funcs/annotationsDelete.js.map +1 -1
  49. package/funcs/chunkingParse.d.ts.map +1 -1
  50. package/funcs/chunkingParse.js +2 -1
  51. package/funcs/chunkingParse.js.map +1 -1
  52. package/funcs/contactsCreate.d.ts.map +1 -1
  53. package/funcs/contactsCreate.js +2 -1
  54. package/funcs/contactsCreate.js.map +1 -1
  55. package/funcs/datasetsClear.d.ts.map +1 -1
  56. package/funcs/datasetsClear.js +2 -1
  57. package/funcs/datasetsClear.js.map +1 -1
  58. package/funcs/datasetsCreate.d.ts.map +1 -1
  59. package/funcs/datasetsCreate.js +2 -1
  60. package/funcs/datasetsCreate.js.map +1 -1
  61. package/funcs/datasetsCreateDatapoint.d.ts.map +1 -1
  62. package/funcs/datasetsCreateDatapoint.js +2 -1
  63. package/funcs/datasetsCreateDatapoint.js.map +1 -1
  64. package/funcs/datasetsDelete.d.ts.map +1 -1
  65. package/funcs/datasetsDelete.js +2 -1
  66. package/funcs/datasetsDelete.js.map +1 -1
  67. package/funcs/datasetsDeleteDatapoint.d.ts.map +1 -1
  68. package/funcs/datasetsDeleteDatapoint.js +2 -1
  69. package/funcs/datasetsDeleteDatapoint.js.map +1 -1
  70. package/funcs/datasetsList.d.ts.map +1 -1
  71. package/funcs/datasetsList.js +2 -1
  72. package/funcs/datasetsList.js.map +1 -1
  73. package/funcs/datasetsListDatapoints.d.ts.map +1 -1
  74. package/funcs/datasetsListDatapoints.js +2 -1
  75. package/funcs/datasetsListDatapoints.js.map +1 -1
  76. package/funcs/datasetsRetrieve.d.ts.map +1 -1
  77. package/funcs/datasetsRetrieve.js +2 -1
  78. package/funcs/datasetsRetrieve.js.map +1 -1
  79. package/funcs/datasetsRetrieveDatapoint.d.ts.map +1 -1
  80. package/funcs/datasetsRetrieveDatapoint.js +2 -1
  81. package/funcs/datasetsRetrieveDatapoint.js.map +1 -1
  82. package/funcs/datasetsUpdate.d.ts.map +1 -1
  83. package/funcs/datasetsUpdate.js +2 -1
  84. package/funcs/datasetsUpdate.js.map +1 -1
  85. package/funcs/datasetsUpdateDatapoint.d.ts.map +1 -1
  86. package/funcs/datasetsUpdateDatapoint.js +2 -1
  87. package/funcs/datasetsUpdateDatapoint.js.map +1 -1
  88. package/funcs/deploymentsGetConfig.d.ts.map +1 -1
  89. package/funcs/deploymentsGetConfig.js +2 -1
  90. package/funcs/deploymentsGetConfig.js.map +1 -1
  91. package/funcs/deploymentsInvoke.d.ts.map +1 -1
  92. package/funcs/deploymentsInvoke.js +2 -1
  93. package/funcs/deploymentsInvoke.js.map +1 -1
  94. package/funcs/deploymentsList.d.ts.map +1 -1
  95. package/funcs/deploymentsList.js +2 -1
  96. package/funcs/deploymentsList.js.map +1 -1
  97. package/funcs/deploymentsMetricsCreate.d.ts.map +1 -1
  98. package/funcs/deploymentsMetricsCreate.js +2 -1
  99. package/funcs/deploymentsMetricsCreate.js.map +1 -1
  100. package/funcs/deploymentsStream.d.ts.map +1 -1
  101. package/funcs/deploymentsStream.js +2 -1
  102. package/funcs/deploymentsStream.js.map +1 -1
  103. package/funcs/evalsAll.d.ts.map +1 -1
  104. package/funcs/evalsAll.js +2 -1
  105. package/funcs/evalsAll.js.map +1 -1
  106. package/funcs/evalsCreate.d.ts.map +1 -1
  107. package/funcs/evalsCreate.js +2 -1
  108. package/funcs/evalsCreate.js.map +1 -1
  109. package/funcs/evalsDelete.d.ts.map +1 -1
  110. package/funcs/evalsDelete.js +2 -1
  111. package/funcs/evalsDelete.js.map +1 -1
  112. package/funcs/{evaluatorsGetV2EvaluatorsIdVersions.d.ts → evalsGetV2EvaluatorsIdVersions.d.ts} +2 -2
  113. package/funcs/evalsGetV2EvaluatorsIdVersions.d.ts.map +1 -0
  114. package/funcs/{evaluatorsGetV2EvaluatorsIdVersions.js → evalsGetV2EvaluatorsIdVersions.js} +5 -4
  115. package/funcs/evalsGetV2EvaluatorsIdVersions.js.map +1 -0
  116. package/funcs/evalsInvoke.d.ts.map +1 -1
  117. package/funcs/evalsInvoke.js +2 -1
  118. package/funcs/evalsInvoke.js.map +1 -1
  119. package/funcs/evalsUpdate.d.ts.map +1 -1
  120. package/funcs/evalsUpdate.js +2 -1
  121. package/funcs/evalsUpdate.js.map +1 -1
  122. package/funcs/{getV2HumanEvalsId.d.ts → feedbackPostV2Feedback.d.ts} +2 -2
  123. package/funcs/feedbackPostV2Feedback.d.ts.map +1 -0
  124. package/funcs/{postV2Feedback.js → feedbackPostV2Feedback.js} +6 -5
  125. package/funcs/feedbackPostV2Feedback.js.map +1 -0
  126. package/funcs/{getV2HumanEvals.d.ts → feedbackPostV2FeedbackRemove.d.ts} +2 -2
  127. package/funcs/feedbackPostV2FeedbackRemove.d.ts.map +1 -0
  128. package/funcs/{postV2FeedbackRemove.js → feedbackPostV2FeedbackRemove.js} +5 -4
  129. package/funcs/feedbackPostV2FeedbackRemove.js.map +1 -0
  130. package/funcs/filesCreate.d.ts.map +1 -1
  131. package/funcs/filesCreate.js +2 -1
  132. package/funcs/filesCreate.js.map +1 -1
  133. package/funcs/filesDelete.d.ts.map +1 -1
  134. package/funcs/filesDelete.js +2 -1
  135. package/funcs/filesDelete.js.map +1 -1
  136. package/funcs/filesGet.d.ts.map +1 -1
  137. package/funcs/filesGet.js +2 -1
  138. package/funcs/filesGet.js.map +1 -1
  139. package/funcs/filesGetContent.d.ts +1 -1
  140. package/funcs/filesGetContent.d.ts.map +1 -1
  141. package/funcs/filesGetContent.js +3 -2
  142. package/funcs/filesGetContent.js.map +1 -1
  143. package/funcs/filesList.d.ts.map +1 -1
  144. package/funcs/filesList.js +2 -1
  145. package/funcs/filesList.js.map +1 -1
  146. package/funcs/filesUpdate.d.ts.map +1 -1
  147. package/funcs/filesUpdate.js +2 -1
  148. package/funcs/filesUpdate.js.map +1 -1
  149. package/funcs/guardrailRulesCreate.d.ts.map +1 -1
  150. package/funcs/guardrailRulesCreate.js +3 -2
  151. package/funcs/guardrailRulesCreate.js.map +1 -1
  152. package/funcs/guardrailRulesDelete.d.ts.map +1 -1
  153. package/funcs/guardrailRulesDelete.js +2 -1
  154. package/funcs/guardrailRulesDelete.js.map +1 -1
  155. package/funcs/guardrailRulesList.d.ts.map +1 -1
  156. package/funcs/guardrailRulesList.js +2 -1
  157. package/funcs/guardrailRulesList.js.map +1 -1
  158. package/funcs/{modelsList.d.ts → guardrailRulesRetrieve.d.ts} +4 -4
  159. package/funcs/guardrailRulesRetrieve.d.ts.map +1 -0
  160. package/funcs/{guardrailRulesGet.js → guardrailRulesRetrieve.js} +5 -4
  161. package/funcs/guardrailRulesRetrieve.js.map +1 -0
  162. package/funcs/guardrailRulesUpdate.d.ts.map +1 -1
  163. package/funcs/guardrailRulesUpdate.js +3 -2
  164. package/funcs/guardrailRulesUpdate.js.map +1 -1
  165. package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.d.ts.map +1 -1
  166. package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.js +2 -1
  167. package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.js.map +1 -1
  168. package/funcs/humanReviewSetsGetV2HumanEvalSets.d.ts.map +1 -1
  169. package/funcs/humanReviewSetsGetV2HumanEvalSets.js +2 -1
  170. package/funcs/humanReviewSetsGetV2HumanEvalSets.js.map +1 -1
  171. package/funcs/humanReviewSetsGetV2HumanEvalSetsId.d.ts.map +1 -1
  172. package/funcs/humanReviewSetsGetV2HumanEvalSetsId.js +2 -1
  173. package/funcs/humanReviewSetsGetV2HumanEvalSetsId.js.map +1 -1
  174. package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.d.ts.map +1 -1
  175. package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.js +2 -1
  176. package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.js.map +1 -1
  177. package/funcs/humanReviewSetsPostV2HumanEvalSets.d.ts.map +1 -1
  178. package/funcs/humanReviewSetsPostV2HumanEvalSets.js +2 -1
  179. package/funcs/humanReviewSetsPostV2HumanEvalSets.js.map +1 -1
  180. package/funcs/identitiesCreate.d.ts.map +1 -1
  181. package/funcs/identitiesCreate.js +2 -1
  182. package/funcs/identitiesCreate.js.map +1 -1
  183. package/funcs/identitiesDelete.d.ts.map +1 -1
  184. package/funcs/identitiesDelete.js +2 -1
  185. package/funcs/identitiesDelete.js.map +1 -1
  186. package/funcs/identitiesList.d.ts.map +1 -1
  187. package/funcs/identitiesList.js +2 -1
  188. package/funcs/identitiesList.js.map +1 -1
  189. package/funcs/identitiesRetrieve.d.ts.map +1 -1
  190. package/funcs/identitiesRetrieve.js +2 -1
  191. package/funcs/identitiesRetrieve.js.map +1 -1
  192. package/funcs/identitiesUpdate.d.ts.map +1 -1
  193. package/funcs/identitiesUpdate.js +2 -1
  194. package/funcs/identitiesUpdate.js.map +1 -1
  195. package/funcs/knowledgeCreate.d.ts.map +1 -1
  196. package/funcs/knowledgeCreate.js +2 -1
  197. package/funcs/knowledgeCreate.js.map +1 -1
  198. package/funcs/knowledgeCreateChunks.d.ts +1 -1
  199. package/funcs/knowledgeCreateChunks.d.ts.map +1 -1
  200. package/funcs/knowledgeCreateChunks.js +3 -2
  201. package/funcs/knowledgeCreateChunks.js.map +1 -1
  202. package/funcs/knowledgeCreateDatasource.d.ts.map +1 -1
  203. package/funcs/knowledgeCreateDatasource.js +2 -1
  204. package/funcs/knowledgeCreateDatasource.js.map +1 -1
  205. package/funcs/knowledgeDelete.d.ts.map +1 -1
  206. package/funcs/knowledgeDelete.js +2 -1
  207. package/funcs/knowledgeDelete.js.map +1 -1
  208. package/funcs/knowledgeDeleteChunk.d.ts.map +1 -1
  209. package/funcs/knowledgeDeleteChunk.js +2 -1
  210. package/funcs/knowledgeDeleteChunk.js.map +1 -1
  211. package/funcs/knowledgeDeleteChunks.d.ts.map +1 -1
  212. package/funcs/knowledgeDeleteChunks.js +2 -1
  213. package/funcs/knowledgeDeleteChunks.js.map +1 -1
  214. package/funcs/knowledgeDeleteDatasource.d.ts.map +1 -1
  215. package/funcs/knowledgeDeleteDatasource.js +2 -1
  216. package/funcs/knowledgeDeleteDatasource.js.map +1 -1
  217. package/funcs/knowledgeGetChunksCount.d.ts.map +1 -1
  218. package/funcs/knowledgeGetChunksCount.js +2 -1
  219. package/funcs/knowledgeGetChunksCount.js.map +1 -1
  220. package/funcs/knowledgeList.d.ts.map +1 -1
  221. package/funcs/knowledgeList.js +2 -1
  222. package/funcs/knowledgeList.js.map +1 -1
  223. package/funcs/knowledgeListChunks.d.ts.map +1 -1
  224. package/funcs/knowledgeListChunks.js +2 -1
  225. package/funcs/knowledgeListChunks.js.map +1 -1
  226. package/funcs/knowledgeListChunksPaginated.d.ts.map +1 -1
  227. package/funcs/knowledgeListChunksPaginated.js +2 -1
  228. package/funcs/knowledgeListChunksPaginated.js.map +1 -1
  229. package/funcs/knowledgeListDatasources.d.ts.map +1 -1
  230. package/funcs/knowledgeListDatasources.js +2 -1
  231. package/funcs/knowledgeListDatasources.js.map +1 -1
  232. package/funcs/knowledgeRetrieve.d.ts.map +1 -1
  233. package/funcs/knowledgeRetrieve.js +2 -1
  234. package/funcs/knowledgeRetrieve.js.map +1 -1
  235. package/funcs/knowledgeRetrieveChunk.d.ts.map +1 -1
  236. package/funcs/knowledgeRetrieveChunk.js +2 -1
  237. package/funcs/knowledgeRetrieveChunk.js.map +1 -1
  238. package/funcs/knowledgeRetrieveDatasource.d.ts.map +1 -1
  239. package/funcs/knowledgeRetrieveDatasource.js +2 -1
  240. package/funcs/knowledgeRetrieveDatasource.js.map +1 -1
  241. package/funcs/knowledgeSearch.d.ts.map +1 -1
  242. package/funcs/knowledgeSearch.js +2 -1
  243. package/funcs/knowledgeSearch.js.map +1 -1
  244. package/funcs/knowledgeUpdate.d.ts.map +1 -1
  245. package/funcs/knowledgeUpdate.js +2 -1
  246. package/funcs/knowledgeUpdate.js.map +1 -1
  247. package/funcs/knowledgeUpdateChunk.d.ts.map +1 -1
  248. package/funcs/knowledgeUpdateChunk.js +2 -1
  249. package/funcs/knowledgeUpdateChunk.js.map +1 -1
  250. package/funcs/knowledgeUpdateDatasource.d.ts.map +1 -1
  251. package/funcs/knowledgeUpdateDatasource.js +2 -1
  252. package/funcs/knowledgeUpdateDatasource.js.map +1 -1
  253. package/funcs/memoryStoresCreate.d.ts.map +1 -1
  254. package/funcs/memoryStoresCreate.js +2 -1
  255. package/funcs/memoryStoresCreate.js.map +1 -1
  256. package/funcs/memoryStoresCreateDocument.d.ts.map +1 -1
  257. package/funcs/memoryStoresCreateDocument.js +2 -1
  258. package/funcs/memoryStoresCreateDocument.js.map +1 -1
  259. package/funcs/memoryStoresCreateMemory.d.ts.map +1 -1
  260. package/funcs/memoryStoresCreateMemory.js +2 -1
  261. package/funcs/memoryStoresCreateMemory.js.map +1 -1
  262. package/funcs/memoryStoresDelete.d.ts.map +1 -1
  263. package/funcs/memoryStoresDelete.js +2 -1
  264. package/funcs/memoryStoresDelete.js.map +1 -1
  265. package/funcs/memoryStoresDeleteDocument.d.ts.map +1 -1
  266. package/funcs/memoryStoresDeleteDocument.js +2 -1
  267. package/funcs/memoryStoresDeleteDocument.js.map +1 -1
  268. package/funcs/memoryStoresDeleteMemory.d.ts.map +1 -1
  269. package/funcs/memoryStoresDeleteMemory.js +2 -1
  270. package/funcs/memoryStoresDeleteMemory.js.map +1 -1
  271. package/funcs/memoryStoresList.d.ts.map +1 -1
  272. package/funcs/memoryStoresList.js +2 -1
  273. package/funcs/memoryStoresList.js.map +1 -1
  274. package/funcs/memoryStoresListDocuments.d.ts.map +1 -1
  275. package/funcs/memoryStoresListDocuments.js +2 -1
  276. package/funcs/memoryStoresListDocuments.js.map +1 -1
  277. package/funcs/memoryStoresListMemories.d.ts.map +1 -1
  278. package/funcs/memoryStoresListMemories.js +2 -1
  279. package/funcs/memoryStoresListMemories.js.map +1 -1
  280. package/funcs/memoryStoresRetrieve.d.ts.map +1 -1
  281. package/funcs/memoryStoresRetrieve.js +2 -1
  282. package/funcs/memoryStoresRetrieve.js.map +1 -1
  283. package/funcs/memoryStoresRetrieveDocument.d.ts.map +1 -1
  284. package/funcs/memoryStoresRetrieveDocument.js +2 -1
  285. package/funcs/memoryStoresRetrieveDocument.js.map +1 -1
  286. package/funcs/memoryStoresRetrieveMemory.d.ts.map +1 -1
  287. package/funcs/memoryStoresRetrieveMemory.js +2 -1
  288. package/funcs/memoryStoresRetrieveMemory.js.map +1 -1
  289. package/funcs/memoryStoresUpdate.d.ts.map +1 -1
  290. package/funcs/memoryStoresUpdate.js +2 -1
  291. package/funcs/memoryStoresUpdate.js.map +1 -1
  292. package/funcs/memoryStoresUpdateDocument.d.ts.map +1 -1
  293. package/funcs/memoryStoresUpdateDocument.js +2 -1
  294. package/funcs/memoryStoresUpdateDocument.js.map +1 -1
  295. package/funcs/memoryStoresUpdateMemory.d.ts.map +1 -1
  296. package/funcs/memoryStoresUpdateMemory.js +2 -1
  297. package/funcs/memoryStoresUpdateMemory.js.map +1 -1
  298. package/funcs/policiesCreate.d.ts.map +1 -1
  299. package/funcs/policiesCreate.js +2 -1
  300. package/funcs/policiesCreate.js.map +1 -1
  301. package/funcs/policiesDelete.d.ts.map +1 -1
  302. package/funcs/policiesDelete.js +2 -1
  303. package/funcs/policiesDelete.js.map +1 -1
  304. package/funcs/policiesList.d.ts.map +1 -1
  305. package/funcs/policiesList.js +2 -1
  306. package/funcs/policiesList.js.map +1 -1
  307. package/funcs/{patchV2HumanEvalsId.d.ts → policiesRetrieve.d.ts} +8 -3
  308. package/funcs/policiesRetrieve.d.ts.map +1 -0
  309. package/funcs/{policiesGet.js → policiesRetrieve.js} +5 -4
  310. package/funcs/policiesRetrieve.js.map +1 -0
  311. package/funcs/policiesUpdate.d.ts.map +1 -1
  312. package/funcs/policiesUpdate.js +2 -1
  313. package/funcs/policiesUpdate.js.map +1 -1
  314. package/funcs/postV2FeedbackEvaluation.d.ts.map +1 -1
  315. package/funcs/postV2FeedbackEvaluation.js +2 -1
  316. package/funcs/postV2FeedbackEvaluation.js.map +1 -1
  317. package/funcs/postV2FeedbackEvaluationRemove.d.ts.map +1 -1
  318. package/funcs/postV2FeedbackEvaluationRemove.js +2 -1
  319. package/funcs/postV2FeedbackEvaluationRemove.js.map +1 -1
  320. package/funcs/promptsCreate.d.ts.map +1 -1
  321. package/funcs/promptsCreate.js +2 -1
  322. package/funcs/promptsCreate.js.map +1 -1
  323. package/funcs/promptsDelete.d.ts.map +1 -1
  324. package/funcs/promptsDelete.js +2 -1
  325. package/funcs/promptsDelete.js.map +1 -1
  326. package/funcs/promptsGetVersion.d.ts.map +1 -1
  327. package/funcs/promptsGetVersion.js +2 -1
  328. package/funcs/promptsGetVersion.js.map +1 -1
  329. package/funcs/promptsList.d.ts.map +1 -1
  330. package/funcs/promptsList.js +2 -1
  331. package/funcs/promptsList.js.map +1 -1
  332. package/funcs/promptsListVersions.d.ts.map +1 -1
  333. package/funcs/promptsListVersions.js +2 -1
  334. package/funcs/promptsListVersions.js.map +1 -1
  335. package/funcs/promptsRetrieve.d.ts.map +1 -1
  336. package/funcs/promptsRetrieve.js +2 -1
  337. package/funcs/promptsRetrieve.js.map +1 -1
  338. package/funcs/promptsUpdate.d.ts.map +1 -1
  339. package/funcs/promptsUpdate.js +2 -1
  340. package/funcs/promptsUpdate.js.map +1 -1
  341. package/funcs/remoteconfigsRetrieve.d.ts.map +1 -1
  342. package/funcs/remoteconfigsRetrieve.js +2 -1
  343. package/funcs/remoteconfigsRetrieve.js.map +1 -1
  344. package/funcs/responsesCreate.d.ts +23 -0
  345. package/funcs/responsesCreate.d.ts.map +1 -0
  346. package/funcs/{postV2HumanEvals.js → responsesCreate.js} +24 -16
  347. package/funcs/responsesCreate.js.map +1 -0
  348. package/funcs/{policiesGet.d.ts → responsesGet.d.ts} +4 -4
  349. package/funcs/responsesGet.d.ts.map +1 -0
  350. package/funcs/{getV2HumanEvalsId.js → responsesGet.js} +16 -13
  351. package/funcs/responsesGet.js.map +1 -0
  352. package/funcs/routerAudioSpeechCreate.d.ts.map +1 -1
  353. package/funcs/routerAudioSpeechCreate.js +2 -1
  354. package/funcs/routerAudioSpeechCreate.js.map +1 -1
  355. package/funcs/routerAudioTranscriptionsCreate.d.ts.map +1 -1
  356. package/funcs/routerAudioTranscriptionsCreate.js +2 -1
  357. package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
  358. package/funcs/routerAudioTranslationsCreate.d.ts.map +1 -1
  359. package/funcs/routerAudioTranslationsCreate.js +2 -1
  360. package/funcs/routerAudioTranslationsCreate.js.map +1 -1
  361. package/funcs/routerChatCompletionsCreate.d.ts.map +1 -1
  362. package/funcs/routerChatCompletionsCreate.js +2 -1
  363. package/funcs/routerChatCompletionsCreate.js.map +1 -1
  364. package/funcs/routerCompletionsCreate.d.ts.map +1 -1
  365. package/funcs/routerCompletionsCreate.js +2 -1
  366. package/funcs/routerCompletionsCreate.js.map +1 -1
  367. package/funcs/routerEmbeddingsCreate.d.ts.map +1 -1
  368. package/funcs/routerEmbeddingsCreate.js +2 -1
  369. package/funcs/routerEmbeddingsCreate.js.map +1 -1
  370. package/funcs/routerImagesEditsCreate.d.ts.map +1 -1
  371. package/funcs/routerImagesEditsCreate.js +2 -1
  372. package/funcs/routerImagesEditsCreate.js.map +1 -1
  373. package/funcs/routerImagesGenerationsCreate.d.ts.map +1 -1
  374. package/funcs/routerImagesGenerationsCreate.js +2 -1
  375. package/funcs/routerImagesGenerationsCreate.js.map +1 -1
  376. package/funcs/routerImagesVariationsCreate.d.ts.map +1 -1
  377. package/funcs/routerImagesVariationsCreate.js +2 -1
  378. package/funcs/routerImagesVariationsCreate.js.map +1 -1
  379. package/funcs/routerModerationsCreate.d.ts.map +1 -1
  380. package/funcs/routerModerationsCreate.js +2 -1
  381. package/funcs/routerModerationsCreate.js.map +1 -1
  382. package/funcs/routerOcr.d.ts.map +1 -1
  383. package/funcs/routerOcr.js +2 -1
  384. package/funcs/routerOcr.js.map +1 -1
  385. package/funcs/routerRerankCreate.d.ts.map +1 -1
  386. package/funcs/routerRerankCreate.js +2 -1
  387. package/funcs/routerRerankCreate.js.map +1 -1
  388. package/funcs/routerResponsesCreate.d.ts.map +1 -1
  389. package/funcs/routerResponsesCreate.js +2 -1
  390. package/funcs/routerResponsesCreate.js.map +1 -1
  391. package/funcs/routingRulesCreate.d.ts.map +1 -1
  392. package/funcs/routingRulesCreate.js +3 -2
  393. package/funcs/routingRulesCreate.js.map +1 -1
  394. package/funcs/routingRulesDelete.d.ts.map +1 -1
  395. package/funcs/routingRulesDelete.js +2 -1
  396. package/funcs/routingRulesDelete.js.map +1 -1
  397. package/funcs/routingRulesList.d.ts.map +1 -1
  398. package/funcs/routingRulesList.js +2 -1
  399. package/funcs/routingRulesList.js.map +1 -1
  400. package/funcs/{routingRulesGet.d.ts → routingRulesRetrieve.d.ts} +2 -2
  401. package/funcs/routingRulesRetrieve.d.ts.map +1 -0
  402. package/funcs/{routingRulesGet.js → routingRulesRetrieve.js} +5 -4
  403. package/funcs/routingRulesRetrieve.js.map +1 -0
  404. package/funcs/routingRulesUpdate.d.ts.map +1 -1
  405. package/funcs/routingRulesUpdate.js +3 -2
  406. package/funcs/routingRulesUpdate.js.map +1 -1
  407. package/funcs/schedulesCreate.d.ts +18 -0
  408. package/funcs/schedulesCreate.d.ts.map +1 -0
  409. package/funcs/{patchV2HumanEvalsId.js → schedulesCreate.js} +17 -10
  410. package/funcs/schedulesCreate.js.map +1 -0
  411. package/funcs/schedulesDelete.d.ts +18 -0
  412. package/funcs/schedulesDelete.d.ts.map +1 -0
  413. package/funcs/{deleteV2HumanEvalsId.js → schedulesDelete.js} +21 -9
  414. package/funcs/schedulesDelete.js.map +1 -0
  415. package/funcs/{guardrailRulesGet.d.ts → schedulesList.d.ts} +4 -4
  416. package/funcs/schedulesList.d.ts.map +1 -0
  417. package/funcs/schedulesList.js +120 -0
  418. package/funcs/schedulesList.js.map +1 -0
  419. package/funcs/{deleteV2HumanEvalsId.d.ts → schedulesRetrieve.d.ts} +8 -2
  420. package/funcs/schedulesRetrieve.d.ts.map +1 -0
  421. package/funcs/schedulesRetrieve.js +128 -0
  422. package/funcs/schedulesRetrieve.js.map +1 -0
  423. package/funcs/schedulesTrigger.d.ts +18 -0
  424. package/funcs/schedulesTrigger.d.ts.map +1 -0
  425. package/funcs/schedulesTrigger.js +128 -0
  426. package/funcs/schedulesTrigger.js.map +1 -0
  427. package/funcs/schedulesUpdate.d.ts +18 -0
  428. package/funcs/schedulesUpdate.d.ts.map +1 -0
  429. package/funcs/schedulesUpdate.js +129 -0
  430. package/funcs/schedulesUpdate.js.map +1 -0
  431. package/funcs/toolsCreate.d.ts.map +1 -1
  432. package/funcs/toolsCreate.js +2 -1
  433. package/funcs/toolsCreate.js.map +1 -1
  434. package/funcs/toolsDelete.d.ts.map +1 -1
  435. package/funcs/toolsDelete.js +2 -1
  436. package/funcs/toolsDelete.js.map +1 -1
  437. package/funcs/toolsGetV2ToolsToolIdVersions.d.ts.map +1 -1
  438. package/funcs/toolsGetV2ToolsToolIdVersions.js +2 -1
  439. package/funcs/toolsGetV2ToolsToolIdVersions.js.map +1 -1
  440. package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.d.ts.map +1 -1
  441. package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.js +2 -1
  442. package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.js.map +1 -1
  443. package/funcs/toolsList.d.ts.map +1 -1
  444. package/funcs/toolsList.js +2 -1
  445. package/funcs/toolsList.js.map +1 -1
  446. package/funcs/toolsRetrieve.d.ts.map +1 -1
  447. package/funcs/toolsRetrieve.js +2 -1
  448. package/funcs/toolsRetrieve.js.map +1 -1
  449. package/funcs/toolsUpdate.d.ts.map +1 -1
  450. package/funcs/toolsUpdate.js +2 -1
  451. package/funcs/toolsUpdate.js.map +1 -1
  452. package/jsr.json +1 -1
  453. package/langchain/async-handler.d.mts.map +1 -0
  454. package/langchain/async-handler.mjs +329 -0
  455. package/langchain/async-handler.mjs.map +1 -0
  456. package/langchain/client.d.mts.map +1 -0
  457. package/langchain/client.mjs +120 -0
  458. package/langchain/client.mjs.map +1 -0
  459. package/langchain/events.d.mts.map +1 -0
  460. package/langchain/events.mjs +55 -0
  461. package/langchain/events.mjs.map +1 -0
  462. package/langchain/global.d.mts.map +1 -0
  463. package/langchain/global.mjs +77 -0
  464. package/langchain/global.mjs.map +1 -0
  465. package/langchain/graph.d.mts.map +1 -0
  466. package/langchain/graph.mjs +76 -0
  467. package/langchain/graph.mjs.map +1 -0
  468. package/langchain/handler.d.mts.map +1 -0
  469. package/langchain/handler.mjs +329 -0
  470. package/langchain/handler.mjs.map +1 -0
  471. package/langchain/index.d.mts.map +1 -0
  472. package/langchain/index.mjs +10 -0
  473. package/langchain/index.mjs.map +1 -0
  474. package/langchain/models.d.mts.map +1 -0
  475. package/langchain/models.mjs +40 -0
  476. package/langchain/models.mjs.map +1 -0
  477. package/langchain/span-builder.d.mts.map +1 -0
  478. package/langchain/span-builder.mjs +307 -0
  479. package/langchain/span-builder.mjs.map +1 -0
  480. package/langchain/utils.d.mts.map +1 -0
  481. package/langchain/utils.mjs +248 -0
  482. package/langchain/utils.mjs.map +1 -0
  483. package/lib/config.d.ts +3 -3
  484. package/lib/config.js +3 -3
  485. package/lib/config.js.map +1 -1
  486. package/lib/sdks.d.ts +1 -1
  487. package/lib/sdks.d.ts.map +1 -1
  488. package/lib/sdks.js +2 -4
  489. package/lib/sdks.js.map +1 -1
  490. package/models/components/conversationparam.d.ts +17 -0
  491. package/models/components/conversationparam.d.ts.map +1 -0
  492. package/models/{operations/deletev2humanevalsid.js → components/conversationparam.js} +12 -13
  493. package/models/components/conversationparam.js.map +1 -0
  494. package/models/components/expression.d.ts +0 -10
  495. package/models/components/expression.d.ts.map +1 -1
  496. package/models/components/expression.js +1 -10
  497. package/models/components/expression.js.map +1 -1
  498. package/models/components/expressioninput.d.ts +12 -0
  499. package/models/components/expressioninput.d.ts.map +1 -0
  500. package/models/components/expressioninput.js +49 -0
  501. package/models/components/expressioninput.js.map +1 -0
  502. package/models/components/fallbackconfig.d.ts +12 -0
  503. package/models/components/fallbackconfig.d.ts.map +1 -0
  504. package/models/components/fallbackconfig.js +49 -0
  505. package/models/components/fallbackconfig.js.map +1 -0
  506. package/models/components/guardrailref.d.ts +4 -0
  507. package/models/components/guardrailref.d.ts.map +1 -1
  508. package/models/components/guardrailref.js +8 -0
  509. package/models/components/guardrailref.js.map +1 -1
  510. package/models/components/{guardrailruledocument.d.ts → guardrailrule.d.ts} +4 -4
  511. package/models/components/guardrailrule.d.ts.map +1 -0
  512. package/models/components/{guardrailruledocument.js → guardrailrule.js} +6 -6
  513. package/models/components/guardrailrule.js.map +1 -0
  514. package/models/components/incompletedetails.d.ts +10 -0
  515. package/models/components/incompletedetails.d.ts.map +1 -0
  516. package/models/components/incompletedetails.js +50 -0
  517. package/models/components/incompletedetails.js.map +1 -0
  518. package/models/components/index.d.ts +23 -4
  519. package/models/components/index.d.ts.map +1 -1
  520. package/models/components/index.js +23 -4
  521. package/models/components/index.js.map +1 -1
  522. package/models/components/inputtokensdetails.d.ts +11 -0
  523. package/models/components/inputtokensdetails.d.ts.map +1 -0
  524. package/models/components/inputtokensdetails.js +57 -0
  525. package/models/components/inputtokensdetails.js.map +1 -0
  526. package/models/components/memoryparam.d.ts +17 -0
  527. package/models/components/memoryparam.d.ts.map +1 -0
  528. package/models/components/memoryparam.js +67 -0
  529. package/models/components/memoryparam.js.map +1 -0
  530. package/models/components/outputtokensdetails.d.ts +10 -0
  531. package/models/components/outputtokensdetails.d.ts.map +1 -0
  532. package/models/components/outputtokensdetails.js +55 -0
  533. package/models/components/outputtokensdetails.js.map +1 -0
  534. package/models/components/{policydocument.d.ts → policy.d.ts} +6 -6
  535. package/models/components/policy.d.ts.map +1 -0
  536. package/models/components/{policydocument.js → policy.js} +9 -8
  537. package/models/components/policy.js.map +1 -0
  538. package/models/components/policyretryconfig.d.ts +19 -0
  539. package/models/components/policyretryconfig.d.ts.map +1 -0
  540. package/models/components/{retryconfig.js → policyretryconfig.js} +10 -10
  541. package/models/components/policyretryconfig.js.map +1 -0
  542. package/models/components/publicschedule.d.ts +66 -0
  543. package/models/components/publicschedule.d.ts.map +1 -0
  544. package/models/components/publicschedule.js +86 -0
  545. package/models/components/publicschedule.js.map +1 -0
  546. package/models/components/publicscheduleerrordetail.d.ts +17 -0
  547. package/models/components/publicscheduleerrordetail.d.ts.map +1 -0
  548. package/models/{errors/getv2humanevals.js → components/publicscheduleerrordetail.js} +9 -26
  549. package/models/components/publicscheduleerrordetail.js.map +1 -0
  550. package/models/components/publicschedulepayload.d.ts +43 -0
  551. package/models/components/publicschedulepayload.d.ts.map +1 -0
  552. package/models/components/publicschedulepayload.js +73 -0
  553. package/models/components/publicschedulepayload.js.map +1 -0
  554. package/models/components/publicusage.d.ts +17 -0
  555. package/models/components/publicusage.d.ts.map +1 -0
  556. package/models/components/publicusage.js +67 -0
  557. package/models/components/publicusage.js.map +1 -0
  558. package/models/components/reasoning.d.ts +11 -0
  559. package/models/components/reasoning.d.ts.map +1 -0
  560. package/models/components/reasoning.js +51 -0
  561. package/models/components/reasoning.js.map +1 -0
  562. package/models/components/reasoningparam.d.ts +14 -0
  563. package/models/components/reasoningparam.d.ts.map +1 -0
  564. package/models/components/reasoningparam.js +50 -0
  565. package/models/components/reasoningparam.js.map +1 -0
  566. package/models/components/reasoningpart.js +1 -1
  567. package/models/components/responseerror.d.ts +11 -0
  568. package/models/components/responseerror.d.ts.map +1 -0
  569. package/models/{errors/postv2humanevals.js → components/responseerror.js} +9 -26
  570. package/models/components/responseerror.js.map +1 -0
  571. package/models/components/responseexecutionlimits.d.ts +20 -0
  572. package/models/components/responseexecutionlimits.d.ts.map +1 -0
  573. package/models/components/responseexecutionlimits.js +62 -0
  574. package/models/components/responseexecutionlimits.js.map +1 -0
  575. package/models/components/responseidentity.d.ts +24 -0
  576. package/models/components/responseidentity.d.ts.map +1 -0
  577. package/models/components/responseidentity.js +58 -0
  578. package/models/components/responseidentity.js.map +1 -0
  579. package/models/components/responseretryconfig.d.ts +20 -0
  580. package/models/components/responseretryconfig.d.ts.map +1 -0
  581. package/models/components/responseretryconfig.js +55 -0
  582. package/models/components/responseretryconfig.js.map +1 -0
  583. package/models/components/responsethread.d.ts +14 -0
  584. package/models/components/responsethread.d.ts.map +1 -0
  585. package/models/components/responsethread.js +50 -0
  586. package/models/components/responsethread.js.map +1 -0
  587. package/models/components/{routingruledocument.d.ts → routingrule.d.ts} +4 -4
  588. package/models/components/routingrule.d.ts.map +1 -0
  589. package/models/components/{routingruledocument.js → routingrule.js} +6 -6
  590. package/models/components/routingrule.js.map +1 -0
  591. package/models/components/streamoptions.d.ts +12 -0
  592. package/models/components/streamoptions.d.ts.map +1 -0
  593. package/models/components/streamoptions.js +54 -0
  594. package/models/components/streamoptions.js.map +1 -0
  595. package/models/errors/createagentschedule.d.ts +46 -0
  596. package/models/errors/createagentschedule.d.ts.map +1 -0
  597. package/models/errors/createagentschedule.js +99 -0
  598. package/models/errors/createagentschedule.js.map +1 -0
  599. package/models/errors/deleteagentschedule.d.ts +25 -0
  600. package/models/errors/deleteagentschedule.d.ts.map +1 -0
  601. package/models/errors/{patchv2humanevalsid.js → deleteagentschedule.js} +13 -10
  602. package/models/errors/deleteagentschedule.js.map +1 -0
  603. package/models/errors/index.d.ts +5 -5
  604. package/models/errors/index.d.ts.map +1 -1
  605. package/models/errors/index.js +5 -5
  606. package/models/errors/index.js.map +1 -1
  607. package/models/errors/postv2feedback.d.ts +5 -5
  608. package/models/errors/postv2feedback.js +6 -6
  609. package/models/errors/retrieveagentschedule.d.ts +25 -0
  610. package/models/errors/retrieveagentschedule.d.ts.map +1 -0
  611. package/models/errors/{getv2humanevalsid.js → retrieveagentschedule.js} +13 -10
  612. package/models/errors/retrieveagentschedule.js.map +1 -0
  613. package/models/errors/triggeragentschedule.d.ts +46 -0
  614. package/models/errors/triggeragentschedule.d.ts.map +1 -0
  615. package/models/errors/{deletev2humanevalsid.js → triggeragentschedule.js} +41 -10
  616. package/models/errors/triggeragentschedule.js.map +1 -0
  617. package/models/errors/updateagentschedule.d.ts +46 -0
  618. package/models/errors/updateagentschedule.d.ts.map +1 -0
  619. package/models/errors/updateagentschedule.js +99 -0
  620. package/models/errors/updateagentschedule.js.map +1 -0
  621. package/models/operations/createagentschedule.d.ts +123 -0
  622. package/models/operations/createagentschedule.d.ts.map +1 -0
  623. package/models/operations/createagentschedule.js +125 -0
  624. package/models/operations/createagentschedule.js.map +1 -0
  625. package/models/operations/createchunk.d.ts +3 -3
  626. package/models/operations/createchunk.d.ts.map +1 -1
  627. package/models/operations/createchunk.js +5 -5
  628. package/models/operations/createchunk.js.map +1 -1
  629. package/models/operations/createcontact.js +1 -1
  630. package/models/operations/createdataset.js +1 -1
  631. package/models/operations/createdatasetitem.js +4 -4
  632. package/models/operations/createdatasource.js +1 -1
  633. package/models/operations/createeval.d.ts +51 -51
  634. package/models/operations/createeval.d.ts.map +1 -1
  635. package/models/operations/createeval.js +76 -74
  636. package/models/operations/createeval.js.map +1 -1
  637. package/models/operations/createidentity.js +1 -1
  638. package/models/operations/createknowledge.d.ts +7 -7
  639. package/models/operations/createknowledge.d.ts.map +1 -1
  640. package/models/operations/createknowledge.js +11 -11
  641. package/models/operations/createknowledge.js.map +1 -1
  642. package/models/operations/createprompt.d.ts +2 -0
  643. package/models/operations/createprompt.d.ts.map +1 -1
  644. package/models/operations/createprompt.js +2 -0
  645. package/models/operations/createprompt.js.map +1 -1
  646. package/models/operations/createresponse.d.ts +5 -5
  647. package/models/operations/createresponse.d.ts.map +1 -1
  648. package/models/operations/createresponse.js +8 -7
  649. package/models/operations/createresponse.js.map +1 -1
  650. package/models/operations/createrouterresponse.d.ts +847 -0
  651. package/models/operations/createrouterresponse.d.ts.map +1 -0
  652. package/models/operations/createrouterresponse.js +607 -0
  653. package/models/operations/createrouterresponse.js.map +1 -0
  654. package/models/operations/createtool.js +6 -6
  655. package/models/operations/deleteagentschedule.d.ts +20 -0
  656. package/models/operations/deleteagentschedule.d.ts.map +1 -0
  657. package/models/operations/deleteagentschedule.js +56 -0
  658. package/models/operations/deleteagentschedule.js.map +1 -0
  659. package/models/operations/deploymentgetconfig.d.ts +8 -8
  660. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  661. package/models/operations/deploymentgetconfig.js +11 -12
  662. package/models/operations/deploymentgetconfig.js.map +1 -1
  663. package/models/operations/deploymentinvoke.d.ts +2 -0
  664. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  665. package/models/operations/deploymentinvoke.js +2 -0
  666. package/models/operations/deploymentinvoke.js.map +1 -1
  667. package/models/operations/deployments.d.ts +2 -0
  668. package/models/operations/deployments.d.ts.map +1 -1
  669. package/models/operations/deployments.js +2 -0
  670. package/models/operations/deployments.js.map +1 -1
  671. package/models/operations/deploymentstream.d.ts +2 -0
  672. package/models/operations/deploymentstream.d.ts.map +1 -1
  673. package/models/operations/deploymentstream.js +2 -0
  674. package/models/operations/deploymentstream.js.map +1 -1
  675. package/models/operations/filecontent.d.ts +1 -1
  676. package/models/operations/getallprompts.d.ts +2 -0
  677. package/models/operations/getallprompts.d.ts.map +1 -1
  678. package/models/operations/getallprompts.js +2 -0
  679. package/models/operations/getallprompts.js.map +1 -1
  680. package/models/operations/getalltools.js +6 -6
  681. package/models/operations/getevals.js +16 -16
  682. package/models/operations/getoneprompt.d.ts +2 -0
  683. package/models/operations/getoneprompt.d.ts.map +1 -1
  684. package/models/operations/getoneprompt.js +2 -0
  685. package/models/operations/getoneprompt.js.map +1 -1
  686. package/models/operations/getpromptversion.d.ts +2 -0
  687. package/models/operations/getpromptversion.d.ts.map +1 -1
  688. package/models/operations/getpromptversion.js +2 -0
  689. package/models/operations/getpromptversion.js.map +1 -1
  690. package/models/operations/getv2humanevalsets.js +2 -2
  691. package/models/operations/getv2humanevalsetsid.js +2 -2
  692. package/models/operations/guardrailrulecreate.d.ts +2 -2
  693. package/models/operations/guardrailrulecreate.d.ts.map +1 -1
  694. package/models/operations/guardrailrulecreate.js +1 -1
  695. package/models/operations/guardrailrulecreate.js.map +1 -1
  696. package/models/operations/guardrailrulelist.d.ts +1 -1
  697. package/models/operations/guardrailrulelist.d.ts.map +1 -1
  698. package/models/operations/guardrailrulelist.js +1 -1
  699. package/models/operations/guardrailrulelist.js.map +1 -1
  700. package/models/operations/guardrailruleupdate.d.ts +2 -2
  701. package/models/operations/guardrailruleupdate.d.ts.map +1 -1
  702. package/models/operations/guardrailruleupdate.js +1 -1
  703. package/models/operations/guardrailruleupdate.js.map +1 -1
  704. package/models/operations/index.d.ts +8 -6
  705. package/models/operations/index.d.ts.map +1 -1
  706. package/models/operations/index.js +8 -6
  707. package/models/operations/index.js.map +1 -1
  708. package/models/operations/listagentschedules.d.ts +27 -0
  709. package/models/operations/listagentschedules.d.ts.map +1 -0
  710. package/models/operations/listagentschedules.js +64 -0
  711. package/models/operations/listagentschedules.js.map +1 -0
  712. package/models/operations/listdatasetdatapoints.js +4 -4
  713. package/models/operations/listdatasets.js +1 -1
  714. package/models/operations/listdatasources.js +1 -1
  715. package/models/operations/listidentities.js +1 -1
  716. package/models/operations/listpromptversions.d.ts +2 -0
  717. package/models/operations/listpromptversions.d.ts.map +1 -1
  718. package/models/operations/listpromptversions.js +2 -0
  719. package/models/operations/listpromptversions.js.map +1 -1
  720. package/models/operations/patchv2humanevalsetsid.js +2 -2
  721. package/models/operations/policycreate.d.ts +3 -3
  722. package/models/operations/policycreate.d.ts.map +1 -1
  723. package/models/operations/policycreate.js +2 -2
  724. package/models/operations/policycreate.js.map +1 -1
  725. package/models/operations/policyget.d.ts +1 -1
  726. package/models/operations/policyget.d.ts.map +1 -1
  727. package/models/operations/policyget.js +1 -1
  728. package/models/operations/policyget.js.map +1 -1
  729. package/models/operations/policylist.d.ts +1 -1
  730. package/models/operations/policylist.d.ts.map +1 -1
  731. package/models/operations/policylist.js +1 -1
  732. package/models/operations/policylist.js.map +1 -1
  733. package/models/operations/policyupdate.d.ts +3 -3
  734. package/models/operations/policyupdate.d.ts.map +1 -1
  735. package/models/operations/policyupdate.js +2 -2
  736. package/models/operations/policyupdate.js.map +1 -1
  737. package/models/operations/postv2feedbackevaluation.js +3 -3
  738. package/models/operations/postv2feedbackremove.d.ts +4 -4
  739. package/models/operations/postv2feedbackremove.js +4 -4
  740. package/models/operations/postv2humanevalsets.js +2 -2
  741. package/models/operations/retrieveagentschedule.d.ts +87 -0
  742. package/models/operations/retrieveagentschedule.d.ts.map +1 -0
  743. package/models/operations/retrieveagentschedule.js +100 -0
  744. package/models/operations/retrieveagentschedule.js.map +1 -0
  745. package/models/operations/retrievedatapoint.js +4 -4
  746. package/models/operations/retrievedataset.js +1 -1
  747. package/models/operations/retrievedatasource.js +1 -1
  748. package/models/operations/retrieveidentity.js +1 -1
  749. package/models/operations/retrieveresponse.d.ts +116 -0
  750. package/models/operations/retrieveresponse.d.ts.map +1 -0
  751. package/models/operations/retrieveresponse.js +143 -0
  752. package/models/operations/retrieveresponse.js.map +1 -0
  753. package/models/operations/retrievetool.js +6 -6
  754. package/models/operations/routingrulecreate.d.ts +2 -2
  755. package/models/operations/routingrulecreate.d.ts.map +1 -1
  756. package/models/operations/routingrulecreate.js +1 -1
  757. package/models/operations/routingrulecreate.js.map +1 -1
  758. package/models/operations/routingrulelist.d.ts +1 -1
  759. package/models/operations/routingrulelist.d.ts.map +1 -1
  760. package/models/operations/routingrulelist.js +1 -1
  761. package/models/operations/routingrulelist.js.map +1 -1
  762. package/models/operations/routingruleupdate.d.ts +2 -2
  763. package/models/operations/routingruleupdate.d.ts.map +1 -1
  764. package/models/operations/routingruleupdate.js +1 -1
  765. package/models/operations/routingruleupdate.js.map +1 -1
  766. package/models/operations/runagent.js +1 -1
  767. package/models/operations/streamrunagent.js +1 -1
  768. package/models/operations/triggeragentschedule.d.ts +35 -0
  769. package/models/operations/triggeragentschedule.d.ts.map +1 -0
  770. package/models/operations/triggeragentschedule.js +70 -0
  771. package/models/operations/triggeragentschedule.js.map +1 -0
  772. package/models/operations/updateagentschedule.d.ts +133 -0
  773. package/models/operations/updateagentschedule.d.ts.map +1 -0
  774. package/models/operations/updateagentschedule.js +129 -0
  775. package/models/operations/updateagentschedule.js.map +1 -0
  776. package/models/operations/updatedatapoint.js +4 -4
  777. package/models/operations/updatedataset.js +1 -1
  778. package/models/operations/updatedatasource.js +1 -1
  779. package/models/operations/updateeval.d.ts +69 -0
  780. package/models/operations/updateeval.d.ts.map +1 -1
  781. package/models/operations/updateeval.js +92 -19
  782. package/models/operations/updateeval.js.map +1 -1
  783. package/models/operations/updateidentity.js +1 -1
  784. package/models/operations/updateprompt.d.ts +2 -0
  785. package/models/operations/updateprompt.d.ts.map +1 -1
  786. package/models/operations/updateprompt.js +2 -0
  787. package/models/operations/updateprompt.js.map +1 -1
  788. package/models/operations/updatetool.js +7 -7
  789. package/package.json +17 -4
  790. package/packages/orq-rc/examples/postV2FeedbackEvaluationRemove.example.ts +24 -0
  791. package/packages/orq-rc/src/core.ts +13 -0
  792. package/packages/orq-rc/src/funcs/agentsCreate.ts +163 -0
  793. package/packages/orq-rc/src/funcs/agentsDelete.ts +181 -0
  794. package/packages/orq-rc/src/funcs/agentsInvoke.ts +178 -0
  795. package/packages/orq-rc/src/funcs/agentsList.ts +186 -0
  796. package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +180 -0
  797. package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +188 -0
  798. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +184 -0
  799. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +183 -0
  800. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +181 -0
  801. package/packages/orq-rc/src/funcs/agentsRun.ts +164 -0
  802. package/packages/orq-rc/src/funcs/agentsStream.ts +205 -0
  803. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +191 -0
  804. package/packages/orq-rc/src/funcs/agentsUpdate.ts +185 -0
  805. package/packages/orq-rc/src/funcs/annotationsCreate.ts +172 -0
  806. package/packages/orq-rc/src/funcs/annotationsDelete.ts +172 -0
  807. package/packages/orq-rc/src/funcs/chunkingParse.ts +162 -0
  808. package/packages/orq-rc/src/funcs/contactsCreate.ts +162 -0
  809. package/packages/orq-rc/src/funcs/datasetsClear.ts +168 -0
  810. package/packages/orq-rc/src/funcs/datasetsCreate.ts +167 -0
  811. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +172 -0
  812. package/packages/orq-rc/src/funcs/datasetsDelete.ts +168 -0
  813. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +183 -0
  814. package/packages/orq-rc/src/funcs/datasetsList.ts +169 -0
  815. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +175 -0
  816. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +176 -0
  817. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +182 -0
  818. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +177 -0
  819. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +180 -0
  820. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +170 -0
  821. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +178 -0
  822. package/packages/orq-rc/src/funcs/deploymentsList.ts +178 -0
  823. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +171 -0
  824. package/packages/orq-rc/src/funcs/deploymentsStream.ts +188 -0
  825. package/{src/funcs/getV2HumanEvals.ts → packages/orq-rc/src/funcs/evalsAll.ts} +23 -17
  826. package/{src/funcs/postV2HumanEvals.ts → packages/orq-rc/src/funcs/evalsCreate.ts} +21 -18
  827. package/{src/funcs/getV2HumanEvalsId.ts → packages/orq-rc/src/funcs/evalsDelete.ts} +22 -16
  828. package/{src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts → packages/orq-rc/src/funcs/evalsGetV2EvaluatorsIdVersions.ts} +4 -2
  829. package/packages/orq-rc/src/funcs/evalsInvoke.ts +182 -0
  830. package/{src/funcs/patchV2HumanEvalsId.ts → packages/orq-rc/src/funcs/evalsUpdate.ts} +20 -16
  831. package/{src/funcs/postV2Feedback.ts → packages/orq-rc/src/funcs/feedbackPostV2Feedback.ts} +8 -6
  832. package/{src/funcs/postV2FeedbackRemove.ts → packages/orq-rc/src/funcs/feedbackPostV2FeedbackRemove.ts} +4 -2
  833. package/packages/orq-rc/src/funcs/filesCreate.ts +197 -0
  834. package/packages/orq-rc/src/funcs/filesDelete.ts +165 -0
  835. package/packages/orq-rc/src/funcs/filesGet.ts +167 -0
  836. package/packages/orq-rc/src/funcs/filesGetContent.ts +168 -0
  837. package/packages/orq-rc/src/funcs/filesList.ts +169 -0
  838. package/packages/orq-rc/src/funcs/filesUpdate.ts +168 -0
  839. package/packages/orq-rc/src/funcs/guardrailRulesCreate.ts +163 -0
  840. package/packages/orq-rc/src/funcs/guardrailRulesDelete.ts +172 -0
  841. package/packages/orq-rc/src/funcs/guardrailRulesList.ts +172 -0
  842. package/{src/funcs/guardrailRulesGet.ts → packages/orq-rc/src/funcs/guardrailRulesRetrieve.ts} +4 -2
  843. package/packages/orq-rc/src/funcs/guardrailRulesUpdate.ts +172 -0
  844. package/packages/orq-rc/src/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.ts +166 -0
  845. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSets.ts +170 -0
  846. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSetsId.ts +165 -0
  847. package/packages/orq-rc/src/funcs/humanReviewSetsPatchV2HumanEvalSetsId.ts +166 -0
  848. package/packages/orq-rc/src/funcs/humanReviewSetsPostV2HumanEvalSets.ts +164 -0
  849. package/packages/orq-rc/src/funcs/identitiesCreate.ts +167 -0
  850. package/packages/orq-rc/src/funcs/identitiesDelete.ts +177 -0
  851. package/packages/orq-rc/src/funcs/identitiesList.ts +172 -0
  852. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +185 -0
  853. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +177 -0
  854. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +160 -0
  855. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +172 -0
  856. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +167 -0
  857. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +168 -0
  858. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +175 -0
  859. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +171 -0
  860. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +174 -0
  861. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +171 -0
  862. package/packages/orq-rc/src/funcs/knowledgeList.ts +171 -0
  863. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +179 -0
  864. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +172 -0
  865. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +175 -0
  866. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +167 -0
  867. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +174 -0
  868. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +170 -0
  869. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +168 -0
  870. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +165 -0
  871. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +175 -0
  872. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +171 -0
  873. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +164 -0
  874. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +177 -0
  875. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +171 -0
  876. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +169 -0
  877. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +186 -0
  878. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +181 -0
  879. package/packages/orq-rc/src/funcs/memoryStoresList.ts +180 -0
  880. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +185 -0
  881. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +178 -0
  882. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +178 -0
  883. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +180 -0
  884. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +175 -0
  885. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +169 -0
  886. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +181 -0
  887. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +176 -0
  888. package/packages/orq-rc/src/funcs/policiesCreate.ts +162 -0
  889. package/packages/orq-rc/src/funcs/policiesDelete.ts +168 -0
  890. package/packages/orq-rc/src/funcs/policiesList.ts +170 -0
  891. package/{src/funcs/policiesGet.ts → packages/orq-rc/src/funcs/policiesRetrieve.ts} +4 -2
  892. package/packages/orq-rc/src/funcs/policiesUpdate.ts +168 -0
  893. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluation.ts +161 -0
  894. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluationRemove.ts +161 -0
  895. package/packages/orq-rc/src/funcs/promptsCreate.ts +162 -0
  896. package/{src/funcs/deleteV2HumanEvalsId.ts → packages/orq-rc/src/funcs/promptsDelete.ts} +21 -16
  897. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +182 -0
  898. package/packages/orq-rc/src/funcs/promptsList.ts +169 -0
  899. package/packages/orq-rc/src/funcs/promptsListVersions.ts +174 -0
  900. package/{src/funcs/modelsList.ts → packages/orq-rc/src/funcs/promptsRetrieve.ts} +22 -20
  901. package/packages/orq-rc/src/funcs/promptsUpdate.ts +174 -0
  902. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +163 -0
  903. package/packages/orq-rc/src/funcs/responsesCreate.ts +170 -0
  904. package/packages/orq-rc/src/funcs/responsesGet.ts +167 -0
  905. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +163 -0
  906. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +272 -0
  907. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +262 -0
  908. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +170 -0
  909. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +170 -0
  910. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +163 -0
  911. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +224 -0
  912. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +162 -0
  913. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +220 -0
  914. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +169 -0
  915. package/packages/orq-rc/src/funcs/routerOcr.ts +160 -0
  916. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +162 -0
  917. package/packages/orq-rc/src/funcs/routerResponsesCreate.ts +169 -0
  918. package/packages/orq-rc/src/funcs/routingRulesCreate.ts +163 -0
  919. package/packages/orq-rc/src/funcs/routingRulesDelete.ts +168 -0
  920. package/packages/orq-rc/src/funcs/routingRulesList.ts +170 -0
  921. package/{src/funcs/routingRulesGet.ts → packages/orq-rc/src/funcs/routingRulesRetrieve.ts} +4 -2
  922. package/packages/orq-rc/src/funcs/routingRulesUpdate.ts +168 -0
  923. package/packages/orq-rc/src/funcs/schedulesCreate.ts +185 -0
  924. package/packages/orq-rc/src/funcs/schedulesDelete.ts +184 -0
  925. package/packages/orq-rc/src/funcs/schedulesList.ts +167 -0
  926. package/packages/orq-rc/src/funcs/schedulesRetrieve.ts +183 -0
  927. package/packages/orq-rc/src/funcs/schedulesTrigger.ts +190 -0
  928. package/packages/orq-rc/src/funcs/schedulesUpdate.ts +191 -0
  929. package/packages/orq-rc/src/funcs/toolsCreate.ts +165 -0
  930. package/packages/orq-rc/src/funcs/toolsDelete.ts +168 -0
  931. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +184 -0
  932. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +191 -0
  933. package/packages/orq-rc/src/funcs/toolsList.ts +178 -0
  934. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +167 -0
  935. package/packages/orq-rc/src/funcs/toolsUpdate.ts +177 -0
  936. package/packages/orq-rc/src/hooks/global.ts +44 -0
  937. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  938. package/packages/orq-rc/src/hooks/index.ts +6 -0
  939. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  940. package/packages/orq-rc/src/hooks/types.ts +112 -0
  941. package/packages/orq-rc/src/index.ts +9 -0
  942. package/packages/orq-rc/src/lib/base64.ts +37 -0
  943. package/packages/orq-rc/src/lib/config.ts +74 -0
  944. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  945. package/packages/orq-rc/src/lib/encodings.ts +525 -0
  946. package/packages/orq-rc/src/lib/env.ts +89 -0
  947. package/packages/orq-rc/src/lib/event-streams.ts +165 -0
  948. package/packages/orq-rc/src/lib/files.ts +104 -0
  949. package/packages/orq-rc/src/lib/http.ts +323 -0
  950. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  951. package/packages/orq-rc/src/lib/logger.ts +9 -0
  952. package/packages/orq-rc/src/lib/matchers.ts +346 -0
  953. package/packages/orq-rc/src/lib/primitives.ts +150 -0
  954. package/packages/orq-rc/src/lib/retries.ts +218 -0
  955. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  956. package/packages/orq-rc/src/lib/sdks.ts +406 -0
  957. package/packages/orq-rc/src/lib/security.ts +275 -0
  958. package/packages/orq-rc/src/lib/url.ts +35 -0
  959. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +99 -0
  960. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +185 -0
  961. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +73 -0
  962. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +91 -0
  963. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +71 -0
  964. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +507 -0
  965. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +165 -0
  966. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +103 -0
  967. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +520 -0
  968. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +807 -0
  969. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +136 -0
  970. package/packages/orq-rc/src/models/components/budgetlimit.ts +83 -0
  971. package/packages/orq-rc/src/models/components/conversationparam.ts +51 -0
  972. package/packages/orq-rc/src/models/components/createagentresponse.ts +305 -0
  973. package/packages/orq-rc/src/models/components/datapart.ts +38 -0
  974. package/packages/orq-rc/src/models/components/errorpart.ts +58 -0
  975. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +66 -0
  976. package/packages/orq-rc/src/models/components/evaluatorref.ts +89 -0
  977. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +71 -0
  978. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +61 -0
  979. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +67 -0
  980. package/packages/orq-rc/src/models/components/expression.ts +33 -0
  981. package/packages/orq-rc/src/models/components/expressioninput.ts +29 -0
  982. package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
  983. package/packages/orq-rc/src/models/components/fallbackconfig.ts +27 -0
  984. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +87 -0
  985. package/packages/orq-rc/src/models/components/filedocument.ts +48 -0
  986. package/packages/orq-rc/src/models/components/filepart.ts +218 -0
  987. package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
  988. package/packages/orq-rc/src/models/components/guardrailref.ts +87 -0
  989. package/{src/models/components/guardrailruledocument.ts → packages/orq-rc/src/models/components/guardrailrule.ts} +7 -7
  990. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +268 -0
  991. package/packages/orq-rc/src/models/components/incompletedetails.ts +31 -0
  992. package/packages/orq-rc/src/models/components/index.ts +93 -0
  993. package/packages/orq-rc/src/models/components/inputtokensdetails.ts +39 -0
  994. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +3450 -0
  995. package/packages/orq-rc/src/models/components/limits.ts +70 -0
  996. package/packages/orq-rc/src/models/components/memoryparam.ts +56 -0
  997. package/packages/orq-rc/src/models/components/modelref.ts +64 -0
  998. package/packages/orq-rc/src/models/components/modelsconfig.ts +73 -0
  999. package/packages/orq-rc/src/models/components/outputtokensdetails.ts +36 -0
  1000. package/packages/orq-rc/src/models/components/partdelta.ts +39 -0
  1001. package/packages/orq-rc/src/models/components/partdeltaevent.ts +73 -0
  1002. package/packages/orq-rc/src/models/components/partdoneevent.ts +70 -0
  1003. package/packages/orq-rc/src/models/components/policy.ts +80 -0
  1004. package/{src/models/components/retryconfig.ts → packages/orq-rc/src/models/components/policyretryconfig.ts} +17 -13
  1005. package/packages/orq-rc/src/models/components/publiccontact.ts +71 -0
  1006. package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
  1007. package/packages/orq-rc/src/models/components/publicschedule.ts +121 -0
  1008. package/packages/orq-rc/src/models/components/publicscheduleerrordetail.ts +39 -0
  1009. package/packages/orq-rc/src/models/components/publicschedulepayload.ts +84 -0
  1010. package/packages/orq-rc/src/models/components/publicusage.ts +59 -0
  1011. package/packages/orq-rc/src/models/components/reasoning.ts +33 -0
  1012. package/packages/orq-rc/src/models/components/reasoningparam.ts +30 -0
  1013. package/packages/orq-rc/src/models/components/reasoningpart.ts +62 -0
  1014. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +71 -0
  1015. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +66 -0
  1016. package/packages/orq-rc/src/models/components/refusalpartschema.ts +64 -0
  1017. package/packages/orq-rc/src/models/components/requestlimit.ts +69 -0
  1018. package/packages/orq-rc/src/models/components/responsedoneevent.ts +324 -0
  1019. package/packages/orq-rc/src/models/components/responseerror.ts +33 -0
  1020. package/packages/orq-rc/src/models/components/responseexecutionlimits.ts +52 -0
  1021. package/packages/orq-rc/src/models/components/responsefailedevent.ts +72 -0
  1022. package/packages/orq-rc/src/models/components/responseidentity.ts +48 -0
  1023. package/packages/orq-rc/src/models/components/responseretryconfig.ts +45 -0
  1024. package/packages/orq-rc/src/models/components/responsestartedevent.ts +97 -0
  1025. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +85 -0
  1026. package/packages/orq-rc/src/models/components/responsethread.ts +30 -0
  1027. package/packages/orq-rc/src/models/components/reviewoutcome.ts +23 -0
  1028. package/{src/models/components/routingruledocument.ts → packages/orq-rc/src/models/components/routingrule.ts} +7 -7
  1029. package/packages/orq-rc/src/models/components/security.ts +32 -0
  1030. package/packages/orq-rc/src/models/components/streamoptions.ts +32 -0
  1031. package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
  1032. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +207 -0
  1033. package/packages/orq-rc/src/models/components/textpart.ts +54 -0
  1034. package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +59 -0
  1035. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  1036. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +106 -0
  1037. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +64 -0
  1038. package/packages/orq-rc/src/models/components/tokenlimit.ts +69 -0
  1039. package/packages/orq-rc/src/models/components/toolcallpart.ts +51 -0
  1040. package/packages/orq-rc/src/models/components/tooldoneevent.ts +77 -0
  1041. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +235 -0
  1042. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +219 -0
  1043. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +205 -0
  1044. package/packages/orq-rc/src/models/components/toolfailedevent.ts +77 -0
  1045. package/packages/orq-rc/src/models/components/toolresultpart.ts +71 -0
  1046. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +78 -0
  1047. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +87 -0
  1048. package/packages/orq-rc/src/models/components/toolstartedevent.ts +82 -0
  1049. package/packages/orq-rc/src/models/errors/apierror.ts +40 -0
  1050. package/packages/orq-rc/src/models/errors/createagentschedule.ts +105 -0
  1051. package/{src/models/errors/getv2humanevals.ts → packages/orq-rc/src/models/errors/createeval.ts} +8 -8
  1052. package/packages/orq-rc/src/models/errors/createmoderation.ts +84 -0
  1053. package/packages/orq-rc/src/models/errors/createtranscription.ts +87 -0
  1054. package/packages/orq-rc/src/models/errors/createtranslation.ts +87 -0
  1055. package/packages/orq-rc/src/models/errors/deleteagent.ts +51 -0
  1056. package/packages/orq-rc/src/models/errors/deleteagentschedule.ts +56 -0
  1057. package/{src/models/errors/postv2humanevals.ts → packages/orq-rc/src/models/errors/deleteeval.ts} +8 -8
  1058. package/packages/orq-rc/src/models/errors/deleteidentity.ts +62 -0
  1059. package/packages/orq-rc/src/models/errors/deleteprompt.ts +51 -0
  1060. package/{src/models/errors/getv2humanevalsid.ts → packages/orq-rc/src/models/errors/getevals.ts} +8 -8
  1061. package/packages/orq-rc/src/models/errors/getpromptversion.ts +51 -0
  1062. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +51 -0
  1063. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +51 -0
  1064. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +52 -0
  1065. package/packages/orq-rc/src/models/errors/honoapierror.ts +59 -0
  1066. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  1067. package/packages/orq-rc/src/models/errors/index.ts +42 -0
  1068. package/packages/orq-rc/src/models/errors/invokeeval.ts +141 -0
  1069. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  1070. package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +96 -0
  1071. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
  1072. package/packages/orq-rc/src/models/errors/postv2feedback.ts +96 -0
  1073. package/{src/models/errors/deletev2humanevalsid.ts → packages/orq-rc/src/models/errors/postv2feedbackremove.ts} +8 -8
  1074. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  1075. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +51 -0
  1076. package/packages/orq-rc/src/models/errors/retrieveagentschedule.ts +56 -0
  1077. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +118 -0
  1078. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
  1079. package/packages/orq-rc/src/models/errors/streamagent.ts +51 -0
  1080. package/packages/orq-rc/src/models/errors/streamrunagent.ts +51 -0
  1081. package/packages/orq-rc/src/models/errors/triggeragentschedule.ts +105 -0
  1082. package/packages/orq-rc/src/models/errors/updateagent.ts +51 -0
  1083. package/packages/orq-rc/src/models/errors/updateagentschedule.ts +105 -0
  1084. package/{src/models/errors/patchv2humanevalsid.ts → packages/orq-rc/src/models/errors/updateeval.ts} +8 -8
  1085. package/packages/orq-rc/src/models/errors/updateidentity.ts +54 -0
  1086. package/packages/orq-rc/src/models/errors/updateprompt.ts +51 -0
  1087. package/packages/orq-rc/src/models/errors/updatetool.ts +62 -0
  1088. package/packages/orq-rc/src/models/operations/cleardataset.ts +39 -0
  1089. package/packages/orq-rc/src/models/operations/createagentrequest.ts +6456 -0
  1090. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +670 -0
  1091. package/packages/orq-rc/src/models/operations/createagentschedule.ts +230 -0
  1092. package/packages/orq-rc/src/models/operations/createannotation.ts +166 -0
  1093. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +6398 -0
  1094. package/packages/orq-rc/src/models/operations/createchunk.ts +222 -0
  1095. package/packages/orq-rc/src/models/operations/createcompletion.ts +3473 -0
  1096. package/packages/orq-rc/src/models/operations/createcontact.ts +156 -0
  1097. package/packages/orq-rc/src/models/operations/createdataset.ts +162 -0
  1098. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2554 -0
  1099. package/packages/orq-rc/src/models/operations/createdatasource.ts +437 -0
  1100. package/packages/orq-rc/src/models/operations/createembedding.ts +947 -0
  1101. package/packages/orq-rc/src/models/operations/createeval.ts +5049 -0
  1102. package/packages/orq-rc/src/models/operations/createidentity.ts +162 -0
  1103. package/packages/orq-rc/src/models/operations/createimage.ts +1034 -0
  1104. package/packages/orq-rc/src/models/operations/createimageedit.ts +1045 -0
  1105. package/packages/orq-rc/src/models/operations/createimagevariation.ts +1067 -0
  1106. package/packages/orq-rc/src/models/operations/createknowledge.ts +958 -0
  1107. package/packages/orq-rc/src/models/operations/creatememory.ts +142 -0
  1108. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +152 -0
  1109. package/packages/orq-rc/src/models/operations/creatememorystore.ts +199 -0
  1110. package/packages/orq-rc/src/models/operations/createmoderation.ts +664 -0
  1111. package/packages/orq-rc/src/models/operations/createprompt.ts +5407 -0
  1112. package/packages/orq-rc/src/models/operations/creatererank.ts +890 -0
  1113. package/packages/orq-rc/src/models/operations/createresponse.ts +3864 -0
  1114. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +1527 -0
  1115. package/packages/orq-rc/src/models/operations/createspeech.ts +700 -0
  1116. package/packages/orq-rc/src/models/operations/createtool.ts +2494 -0
  1117. package/packages/orq-rc/src/models/operations/createtranscription.ts +955 -0
  1118. package/packages/orq-rc/src/models/operations/createtranslation.ts +930 -0
  1119. package/packages/orq-rc/src/models/operations/deleteagent.ts +39 -0
  1120. package/packages/orq-rc/src/models/operations/deleteagentschedule.ts +46 -0
  1121. package/packages/orq-rc/src/models/operations/deleteannotation.ts +82 -0
  1122. package/packages/orq-rc/src/models/operations/deletechunk.ts +53 -0
  1123. package/packages/orq-rc/src/models/operations/deletechunks.ts +125 -0
  1124. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +46 -0
  1125. package/packages/orq-rc/src/models/operations/deletedataset.ts +39 -0
  1126. package/packages/orq-rc/src/models/operations/deletedatasource.ts +46 -0
  1127. package/packages/orq-rc/src/models/operations/deleteeval.ts +31 -0
  1128. package/packages/orq-rc/src/models/operations/deleteidentity.ts +34 -0
  1129. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +39 -0
  1130. package/packages/orq-rc/src/models/operations/deletememory.ts +46 -0
  1131. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +55 -0
  1132. package/packages/orq-rc/src/models/operations/deletememorystore.ts +39 -0
  1133. package/packages/orq-rc/src/models/operations/deleteprompt.ts +34 -0
  1134. package/packages/orq-rc/src/models/operations/deletetool.ts +36 -0
  1135. package/packages/orq-rc/src/models/operations/deletev2humanevalsetsid.ts +36 -0
  1136. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2370 -0
  1137. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4532 -0
  1138. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +737 -0
  1139. package/packages/orq-rc/src/models/operations/deployments.ts +1275 -0
  1140. package/packages/orq-rc/src/models/operations/deploymentstream.ts +4661 -0
  1141. package/packages/orq-rc/src/models/operations/filecontent.ts +39 -0
  1142. package/packages/orq-rc/src/models/operations/filedelete.ts +39 -0
  1143. package/packages/orq-rc/src/models/operations/fileget.ts +80 -0
  1144. package/packages/orq-rc/src/models/operations/filelist.ts +85 -0
  1145. package/packages/orq-rc/src/models/operations/fileupdate.ts +118 -0
  1146. package/packages/orq-rc/src/models/operations/fileupload.ts +135 -0
  1147. package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
  1148. package/packages/orq-rc/src/models/operations/getallmemories.ts +173 -0
  1149. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +188 -0
  1150. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +200 -0
  1151. package/packages/orq-rc/src/models/operations/getallprompts.ts +3175 -0
  1152. package/packages/orq-rc/src/models/operations/getalltools.ts +1389 -0
  1153. package/packages/orq-rc/src/models/operations/getchunkscount.ts +121 -0
  1154. package/packages/orq-rc/src/models/operations/getevals.ts +3299 -0
  1155. package/packages/orq-rc/src/models/operations/getonechunk.ts +171 -0
  1156. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +652 -0
  1157. package/packages/orq-rc/src/models/operations/getoneprompt.ts +3100 -0
  1158. package/packages/orq-rc/src/models/operations/getpromptversion.ts +3145 -0
  1159. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +162 -0
  1160. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +234 -0
  1161. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +235 -0
  1162. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +163 -0
  1163. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +110 -0
  1164. package/packages/orq-rc/src/models/operations/guardrailrulecreate.ts +124 -0
  1165. package/packages/orq-rc/src/models/operations/guardrailruledelete.ts +39 -0
  1166. package/packages/orq-rc/src/models/operations/guardrailruleget.ts +102 -0
  1167. package/packages/orq-rc/src/models/operations/guardrailrulelist.ts +94 -0
  1168. package/packages/orq-rc/src/models/operations/guardrailruleupdate.ts +153 -0
  1169. package/packages/orq-rc/src/models/operations/index.ts +148 -0
  1170. package/packages/orq-rc/src/models/operations/invokeagent.ts +801 -0
  1171. package/packages/orq-rc/src/models/operations/invokeeval.ts +1254 -0
  1172. package/packages/orq-rc/src/models/operations/listagents.ts +2778 -0
  1173. package/packages/orq-rc/src/models/operations/listagentschedules.ts +69 -0
  1174. package/packages/orq-rc/src/models/operations/listchunks.ts +260 -0
  1175. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +263 -0
  1176. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +1498 -0
  1177. package/packages/orq-rc/src/models/operations/listdatasets.ts +205 -0
  1178. package/packages/orq-rc/src/models/operations/listdatasources.ts +235 -0
  1179. package/packages/orq-rc/src/models/operations/listidentities.ts +275 -0
  1180. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +642 -0
  1181. package/packages/orq-rc/src/models/operations/listpromptversions.ts +3220 -0
  1182. package/packages/orq-rc/src/models/operations/parse.ts +784 -0
  1183. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +415 -0
  1184. package/packages/orq-rc/src/models/operations/policycreate.ts +138 -0
  1185. package/packages/orq-rc/src/models/operations/policydelete.ts +39 -0
  1186. package/packages/orq-rc/src/models/operations/policyget.ts +110 -0
  1187. package/packages/orq-rc/src/models/operations/policylist.ts +94 -0
  1188. package/packages/orq-rc/src/models/operations/policyupdate.ts +174 -0
  1189. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +252 -0
  1190. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
  1191. package/packages/orq-rc/src/models/operations/postv2feedback.ts +207 -0
  1192. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +321 -0
  1193. package/packages/orq-rc/src/models/operations/postv2feedbackevaluationremove.ts +43 -0
  1194. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +138 -0
  1195. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +365 -0
  1196. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +478 -0
  1197. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +108 -0
  1198. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +2840 -0
  1199. package/packages/orq-rc/src/models/operations/retrieveagentschedule.ts +165 -0
  1200. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +1402 -0
  1201. package/packages/orq-rc/src/models/operations/retrievedataset.ts +150 -0
  1202. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +152 -0
  1203. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +174 -0
  1204. package/packages/orq-rc/src/models/operations/retrievememory.ts +112 -0
  1205. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +118 -0
  1206. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +144 -0
  1207. package/packages/orq-rc/src/models/operations/retrieveresponse.ts +225 -0
  1208. package/packages/orq-rc/src/models/operations/retrievetool.ts +1370 -0
  1209. package/packages/orq-rc/src/models/operations/routingrulecreate.ts +124 -0
  1210. package/packages/orq-rc/src/models/operations/routingruledelete.ts +39 -0
  1211. package/packages/orq-rc/src/models/operations/routingruleget.ts +102 -0
  1212. package/packages/orq-rc/src/models/operations/routingrulelist.ts +94 -0
  1213. package/packages/orq-rc/src/models/operations/routingruleupdate.ts +154 -0
  1214. package/packages/orq-rc/src/models/operations/runagent.ts +4963 -0
  1215. package/packages/orq-rc/src/models/operations/searchknowledge.ts +1762 -0
  1216. package/packages/orq-rc/src/models/operations/streamagent.ts +692 -0
  1217. package/packages/orq-rc/src/models/operations/streamrunagent.ts +5125 -0
  1218. package/packages/orq-rc/src/models/operations/triggeragentschedule.ts +86 -0
  1219. package/packages/orq-rc/src/models/operations/updateagent.ts +6886 -0
  1220. package/packages/orq-rc/src/models/operations/updateagentschedule.ts +244 -0
  1221. package/packages/orq-rc/src/models/operations/updatechunk.ts +236 -0
  1222. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2555 -0
  1223. package/packages/orq-rc/src/models/operations/updatedataset.ts +206 -0
  1224. package/packages/orq-rc/src/models/operations/updatedatasource.ts +186 -0
  1225. package/packages/orq-rc/src/models/operations/updateeval.ts +3790 -0
  1226. package/packages/orq-rc/src/models/operations/updateidentity.ts +189 -0
  1227. package/packages/orq-rc/src/models/operations/updateknowledge.ts +1231 -0
  1228. package/packages/orq-rc/src/models/operations/updatememory.ts +142 -0
  1229. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +159 -0
  1230. package/packages/orq-rc/src/models/operations/updatememorystore.ts +188 -0
  1231. package/packages/orq-rc/src/models/operations/updateprompt.ts +5489 -0
  1232. package/packages/orq-rc/src/models/operations/updatetool.ts +2801 -0
  1233. package/packages/orq-rc/src/sdk/agents.ts +234 -0
  1234. package/packages/orq-rc/src/sdk/annotations.ts +39 -0
  1235. package/packages/orq-rc/src/sdk/audio.ts +25 -0
  1236. package/packages/orq-rc/src/sdk/chat.ts +13 -0
  1237. package/packages/orq-rc/src/sdk/chunking.ts +27 -0
  1238. package/packages/orq-rc/src/sdk/completions.ts +32 -0
  1239. package/packages/orq-rc/src/sdk/contacts.ts +27 -0
  1240. package/packages/orq-rc/src/sdk/datasets.ts +204 -0
  1241. package/packages/orq-rc/src/sdk/deployments.ts +89 -0
  1242. package/packages/orq-rc/src/sdk/edits.ts +27 -0
  1243. package/packages/orq-rc/src/sdk/embeddings.ts +27 -0
  1244. package/packages/orq-rc/src/sdk/evals.ts +102 -0
  1245. package/packages/orq-rc/src/sdk/feedback.ts +33 -0
  1246. package/packages/orq-rc/src/sdk/files.ts +114 -0
  1247. package/packages/orq-rc/src/sdk/generations.ts +27 -0
  1248. package/packages/orq-rc/src/sdk/guardrailrules.ts +99 -0
  1249. package/packages/orq-rc/src/sdk/humanreviewsets.ts +84 -0
  1250. package/packages/orq-rc/src/sdk/identities.ts +99 -0
  1251. package/packages/orq-rc/src/sdk/images.ts +25 -0
  1252. package/packages/orq-rc/src/sdk/index.ts +5 -0
  1253. package/packages/orq-rc/src/sdk/knowledge.ts +309 -0
  1254. package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
  1255. package/packages/orq-rc/src/sdk/metrics.ts +29 -0
  1256. package/packages/orq-rc/src/sdk/moderations.ts +24 -0
  1257. package/packages/orq-rc/src/sdk/orqagentsresponses.ts +53 -0
  1258. package/packages/orq-rc/src/sdk/orqcompletions.ts +32 -0
  1259. package/packages/orq-rc/src/sdk/orqresponses.ts +32 -0
  1260. package/packages/orq-rc/src/sdk/policies.ts +99 -0
  1261. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  1262. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  1263. package/packages/orq-rc/src/sdk/rerank.ts +27 -0
  1264. package/packages/orq-rc/src/sdk/responses.ts +47 -0
  1265. package/packages/orq-rc/src/sdk/router.ts +72 -0
  1266. package/packages/orq-rc/src/sdk/routingrules.ts +99 -0
  1267. package/packages/orq-rc/src/sdk/schedules.ts +117 -0
  1268. package/packages/orq-rc/src/sdk/sdk.ts +165 -0
  1269. package/packages/orq-rc/src/sdk/speech.ts +27 -0
  1270. package/packages/orq-rc/src/sdk/tools.ts +135 -0
  1271. package/packages/orq-rc/src/sdk/transcriptions.ts +24 -0
  1272. package/packages/orq-rc/src/sdk/translations.ts +24 -0
  1273. package/packages/orq-rc/src/sdk/variations.ts +27 -0
  1274. package/packages/orq-rc/src/types/async.ts +68 -0
  1275. package/packages/orq-rc/src/types/blobs.ts +32 -0
  1276. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  1277. package/packages/orq-rc/src/types/enums.ts +45 -0
  1278. package/packages/orq-rc/src/types/fp.ts +50 -0
  1279. package/packages/orq-rc/src/types/index.ts +11 -0
  1280. package/packages/orq-rc/src/types/operations.ts +105 -0
  1281. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  1282. package/packages/orq-rc/src/types/streams.ts +21 -0
  1283. package/packages/orq-rc/src/types/unrecognized.ts +35 -0
  1284. package/sdk/agents.d.ts +2 -2
  1285. package/sdk/agents.d.ts.map +1 -1
  1286. package/sdk/agents.js +2 -2
  1287. package/sdk/agents.js.map +1 -1
  1288. package/sdk/evals.d.ts +7 -0
  1289. package/sdk/evals.d.ts.map +1 -1
  1290. package/sdk/evals.js +10 -0
  1291. package/sdk/evals.js.map +1 -1
  1292. package/sdk/feedback.d.ts +7 -0
  1293. package/sdk/feedback.d.ts.map +1 -0
  1294. package/sdk/feedback.js +20 -0
  1295. package/sdk/feedback.js.map +1 -0
  1296. package/sdk/files.d.ts +1 -1
  1297. package/sdk/files.js +1 -1
  1298. package/sdk/guardrailrules.d.ts +1 -1
  1299. package/sdk/guardrailrules.d.ts.map +1 -1
  1300. package/sdk/guardrailrules.js +3 -3
  1301. package/sdk/guardrailrules.js.map +1 -1
  1302. package/sdk/knowledge.d.ts +1 -1
  1303. package/sdk/knowledge.d.ts.map +1 -1
  1304. package/sdk/orqagentsresponses.d.ts +24 -0
  1305. package/sdk/orqagentsresponses.d.ts.map +1 -0
  1306. package/sdk/orqagentsresponses.js +34 -0
  1307. package/sdk/orqagentsresponses.js.map +1 -0
  1308. package/sdk/policies.d.ts +1 -1
  1309. package/sdk/policies.d.ts.map +1 -1
  1310. package/sdk/policies.js +3 -3
  1311. package/sdk/policies.js.map +1 -1
  1312. package/sdk/responses.d.ts +8 -9
  1313. package/sdk/responses.d.ts.map +1 -1
  1314. package/sdk/responses.js +10 -10
  1315. package/sdk/responses.js.map +1 -1
  1316. package/sdk/routingrules.d.ts +1 -1
  1317. package/sdk/routingrules.d.ts.map +1 -1
  1318. package/sdk/routingrules.js +3 -3
  1319. package/sdk/routingrules.js.map +1 -1
  1320. package/sdk/schedules.d.ts +47 -0
  1321. package/sdk/schedules.d.ts.map +1 -0
  1322. package/sdk/schedules.js +72 -0
  1323. package/sdk/schedules.js.map +1 -0
  1324. package/sdk/sdk.d.ts +9 -13
  1325. package/sdk/sdk.d.ts.map +1 -1
  1326. package/sdk/sdk.js +11 -35
  1327. package/sdk/sdk.js.map +1 -1
  1328. package/src/funcs/agentsCreate.ts +3 -1
  1329. package/src/funcs/agentsDelete.ts +3 -1
  1330. package/src/funcs/agentsInvoke.ts +3 -1
  1331. package/src/funcs/agentsList.ts +3 -1
  1332. package/src/funcs/agentsPostV2AgentsA2a.ts +3 -1
  1333. package/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +3 -1
  1334. package/src/funcs/agentsResponsesCreate.ts +3 -1
  1335. package/src/funcs/agentsResponsesGet.ts +3 -1
  1336. package/src/funcs/agentsRetrieve.ts +3 -1
  1337. package/src/funcs/agentsRun.ts +3 -1
  1338. package/src/funcs/agentsStream.ts +3 -1
  1339. package/src/funcs/agentsStreamRun.ts +3 -1
  1340. package/src/funcs/agentsUpdate.ts +3 -1
  1341. package/src/funcs/annotationsCreate.ts +3 -1
  1342. package/src/funcs/annotationsDelete.ts +3 -1
  1343. package/src/funcs/chunkingParse.ts +3 -1
  1344. package/src/funcs/contactsCreate.ts +3 -1
  1345. package/src/funcs/datasetsClear.ts +3 -1
  1346. package/src/funcs/datasetsCreate.ts +3 -1
  1347. package/src/funcs/datasetsCreateDatapoint.ts +3 -1
  1348. package/src/funcs/datasetsDelete.ts +3 -1
  1349. package/src/funcs/datasetsDeleteDatapoint.ts +3 -1
  1350. package/src/funcs/datasetsList.ts +3 -1
  1351. package/src/funcs/datasetsListDatapoints.ts +3 -1
  1352. package/src/funcs/datasetsRetrieve.ts +3 -1
  1353. package/src/funcs/datasetsRetrieveDatapoint.ts +3 -1
  1354. package/src/funcs/datasetsUpdate.ts +3 -1
  1355. package/src/funcs/datasetsUpdateDatapoint.ts +3 -1
  1356. package/src/funcs/deploymentsGetConfig.ts +3 -1
  1357. package/src/funcs/deploymentsInvoke.ts +3 -1
  1358. package/src/funcs/deploymentsList.ts +3 -1
  1359. package/src/funcs/deploymentsMetricsCreate.ts +3 -1
  1360. package/src/funcs/deploymentsStream.ts +3 -1
  1361. package/src/funcs/evalsAll.ts +3 -1
  1362. package/src/funcs/evalsCreate.ts +3 -1
  1363. package/src/funcs/evalsDelete.ts +3 -1
  1364. package/src/funcs/evalsGetV2EvaluatorsIdVersions.ts +184 -0
  1365. package/src/funcs/evalsInvoke.ts +3 -1
  1366. package/src/funcs/evalsUpdate.ts +3 -1
  1367. package/src/funcs/feedbackPostV2Feedback.ts +174 -0
  1368. package/src/funcs/feedbackPostV2FeedbackRemove.ts +169 -0
  1369. package/src/funcs/filesCreate.ts +3 -1
  1370. package/src/funcs/filesDelete.ts +3 -1
  1371. package/src/funcs/filesGet.ts +3 -1
  1372. package/src/funcs/filesGetContent.ts +4 -2
  1373. package/src/funcs/filesList.ts +3 -1
  1374. package/src/funcs/filesUpdate.ts +3 -1
  1375. package/src/funcs/guardrailRulesCreate.ts +4 -2
  1376. package/src/funcs/guardrailRulesDelete.ts +3 -1
  1377. package/src/funcs/guardrailRulesList.ts +3 -1
  1378. package/src/funcs/guardrailRulesRetrieve.ts +170 -0
  1379. package/src/funcs/guardrailRulesUpdate.ts +4 -2
  1380. package/src/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.ts +3 -1
  1381. package/src/funcs/humanReviewSetsGetV2HumanEvalSets.ts +3 -1
  1382. package/src/funcs/humanReviewSetsGetV2HumanEvalSetsId.ts +3 -1
  1383. package/src/funcs/humanReviewSetsPatchV2HumanEvalSetsId.ts +3 -1
  1384. package/src/funcs/humanReviewSetsPostV2HumanEvalSets.ts +3 -1
  1385. package/src/funcs/identitiesCreate.ts +3 -1
  1386. package/src/funcs/identitiesDelete.ts +3 -1
  1387. package/src/funcs/identitiesList.ts +3 -1
  1388. package/src/funcs/identitiesRetrieve.ts +3 -1
  1389. package/src/funcs/identitiesUpdate.ts +3 -1
  1390. package/src/funcs/knowledgeCreate.ts +3 -1
  1391. package/src/funcs/knowledgeCreateChunks.ts +7 -5
  1392. package/src/funcs/knowledgeCreateDatasource.ts +3 -1
  1393. package/src/funcs/knowledgeDelete.ts +3 -1
  1394. package/src/funcs/knowledgeDeleteChunk.ts +3 -1
  1395. package/src/funcs/knowledgeDeleteChunks.ts +3 -1
  1396. package/src/funcs/knowledgeDeleteDatasource.ts +3 -1
  1397. package/src/funcs/knowledgeGetChunksCount.ts +3 -1
  1398. package/src/funcs/knowledgeList.ts +3 -1
  1399. package/src/funcs/knowledgeListChunks.ts +3 -1
  1400. package/src/funcs/knowledgeListChunksPaginated.ts +3 -1
  1401. package/src/funcs/knowledgeListDatasources.ts +3 -1
  1402. package/src/funcs/knowledgeRetrieve.ts +3 -1
  1403. package/src/funcs/knowledgeRetrieveChunk.ts +3 -1
  1404. package/src/funcs/knowledgeRetrieveDatasource.ts +3 -1
  1405. package/src/funcs/knowledgeSearch.ts +3 -1
  1406. package/src/funcs/knowledgeUpdate.ts +3 -1
  1407. package/src/funcs/knowledgeUpdateChunk.ts +3 -1
  1408. package/src/funcs/knowledgeUpdateDatasource.ts +3 -1
  1409. package/src/funcs/memoryStoresCreate.ts +3 -1
  1410. package/src/funcs/memoryStoresCreateDocument.ts +3 -1
  1411. package/src/funcs/memoryStoresCreateMemory.ts +3 -1
  1412. package/src/funcs/memoryStoresDelete.ts +3 -1
  1413. package/src/funcs/memoryStoresDeleteDocument.ts +3 -1
  1414. package/src/funcs/memoryStoresDeleteMemory.ts +3 -1
  1415. package/src/funcs/memoryStoresList.ts +3 -1
  1416. package/src/funcs/memoryStoresListDocuments.ts +3 -1
  1417. package/src/funcs/memoryStoresListMemories.ts +3 -1
  1418. package/src/funcs/memoryStoresRetrieve.ts +3 -1
  1419. package/src/funcs/memoryStoresRetrieveDocument.ts +3 -1
  1420. package/src/funcs/memoryStoresRetrieveMemory.ts +3 -1
  1421. package/src/funcs/memoryStoresUpdate.ts +3 -1
  1422. package/src/funcs/memoryStoresUpdateDocument.ts +3 -1
  1423. package/src/funcs/memoryStoresUpdateMemory.ts +3 -1
  1424. package/src/funcs/policiesCreate.ts +3 -1
  1425. package/src/funcs/policiesDelete.ts +3 -1
  1426. package/src/funcs/policiesList.ts +3 -1
  1427. package/src/funcs/policiesRetrieve.ts +167 -0
  1428. package/src/funcs/policiesUpdate.ts +3 -1
  1429. package/src/funcs/postV2FeedbackEvaluation.ts +3 -1
  1430. package/src/funcs/postV2FeedbackEvaluationRemove.ts +3 -1
  1431. package/src/funcs/promptsCreate.ts +3 -1
  1432. package/src/funcs/promptsDelete.ts +3 -1
  1433. package/src/funcs/promptsGetVersion.ts +3 -1
  1434. package/src/funcs/promptsList.ts +3 -1
  1435. package/src/funcs/promptsListVersions.ts +3 -1
  1436. package/src/funcs/promptsRetrieve.ts +3 -1
  1437. package/src/funcs/promptsUpdate.ts +3 -1
  1438. package/src/funcs/remoteconfigsRetrieve.ts +3 -1
  1439. package/src/funcs/responsesCreate.ts +170 -0
  1440. package/src/funcs/responsesGet.ts +167 -0
  1441. package/src/funcs/routerAudioSpeechCreate.ts +3 -1
  1442. package/src/funcs/routerAudioTranscriptionsCreate.ts +3 -1
  1443. package/src/funcs/routerAudioTranslationsCreate.ts +3 -1
  1444. package/src/funcs/routerChatCompletionsCreate.ts +3 -1
  1445. package/src/funcs/routerCompletionsCreate.ts +3 -1
  1446. package/src/funcs/routerEmbeddingsCreate.ts +3 -1
  1447. package/src/funcs/routerImagesEditsCreate.ts +3 -1
  1448. package/src/funcs/routerImagesGenerationsCreate.ts +3 -1
  1449. package/src/funcs/routerImagesVariationsCreate.ts +3 -1
  1450. package/src/funcs/routerModerationsCreate.ts +3 -1
  1451. package/src/funcs/routerOcr.ts +3 -1
  1452. package/src/funcs/routerRerankCreate.ts +3 -1
  1453. package/src/funcs/routerResponsesCreate.ts +3 -1
  1454. package/src/funcs/routingRulesCreate.ts +4 -2
  1455. package/src/funcs/routingRulesDelete.ts +3 -1
  1456. package/src/funcs/routingRulesList.ts +3 -1
  1457. package/src/funcs/routingRulesRetrieve.ts +167 -0
  1458. package/src/funcs/routingRulesUpdate.ts +4 -2
  1459. package/src/funcs/schedulesCreate.ts +185 -0
  1460. package/src/funcs/schedulesDelete.ts +184 -0
  1461. package/src/funcs/schedulesList.ts +167 -0
  1462. package/src/funcs/schedulesRetrieve.ts +183 -0
  1463. package/src/funcs/schedulesTrigger.ts +190 -0
  1464. package/src/funcs/schedulesUpdate.ts +191 -0
  1465. package/src/funcs/toolsCreate.ts +3 -1
  1466. package/src/funcs/toolsDelete.ts +3 -1
  1467. package/src/funcs/toolsGetV2ToolsToolIdVersions.ts +3 -1
  1468. package/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +3 -1
  1469. package/src/funcs/toolsList.ts +3 -1
  1470. package/src/funcs/toolsRetrieve.ts +3 -1
  1471. package/src/funcs/toolsUpdate.ts +3 -1
  1472. package/src/lib/config.ts +3 -3
  1473. package/src/lib/sdks.ts +3 -6
  1474. package/src/models/components/conversationparam.ts +51 -0
  1475. package/src/models/components/expression.ts +0 -18
  1476. package/src/models/components/expressioninput.ts +29 -0
  1477. package/src/models/components/fallbackconfig.ts +27 -0
  1478. package/src/models/components/guardrailref.ts +12 -0
  1479. package/src/models/components/guardrailrule.ts +66 -0
  1480. package/src/models/components/incompletedetails.ts +31 -0
  1481. package/src/models/components/index.ts +23 -4
  1482. package/src/models/components/inputtokensdetails.ts +39 -0
  1483. package/src/models/components/memoryparam.ts +56 -0
  1484. package/src/models/components/outputtokensdetails.ts +36 -0
  1485. package/src/models/components/policy.ts +80 -0
  1486. package/src/models/components/policyretryconfig.ts +64 -0
  1487. package/src/models/components/publicschedule.ts +121 -0
  1488. package/src/models/components/publicscheduleerrordetail.ts +39 -0
  1489. package/src/models/components/publicschedulepayload.ts +84 -0
  1490. package/src/models/components/publicusage.ts +59 -0
  1491. package/src/models/components/reasoning.ts +33 -0
  1492. package/src/models/components/reasoningparam.ts +30 -0
  1493. package/src/models/components/reasoningpart.ts +1 -1
  1494. package/src/models/components/responseerror.ts +33 -0
  1495. package/src/models/components/responseexecutionlimits.ts +52 -0
  1496. package/src/models/components/responseidentity.ts +48 -0
  1497. package/src/models/components/responseretryconfig.ts +45 -0
  1498. package/src/models/components/responsethread.ts +30 -0
  1499. package/src/models/components/{policydocument.ts → routingrule.ts} +12 -21
  1500. package/src/models/components/streamoptions.ts +32 -0
  1501. package/src/models/errors/createagentschedule.ts +105 -0
  1502. package/src/models/errors/deleteagentschedule.ts +56 -0
  1503. package/src/models/errors/index.ts +5 -5
  1504. package/src/models/errors/postv2feedback.ts +8 -8
  1505. package/src/models/errors/retrieveagentschedule.ts +56 -0
  1506. package/src/models/errors/triggeragentschedule.ts +105 -0
  1507. package/src/models/errors/updateagentschedule.ts +105 -0
  1508. package/src/models/operations/createagentschedule.ts +230 -0
  1509. package/src/models/operations/createchunk.ts +7 -7
  1510. package/src/models/operations/createcontact.ts +1 -1
  1511. package/src/models/operations/createdataset.ts +1 -1
  1512. package/src/models/operations/createdatasetitem.ts +4 -4
  1513. package/src/models/operations/createdatasource.ts +1 -1
  1514. package/src/models/operations/createeval.ts +233 -186
  1515. package/src/models/operations/createidentity.ts +1 -1
  1516. package/src/models/operations/createknowledge.ts +17 -19
  1517. package/src/models/operations/createprompt.ts +2 -0
  1518. package/src/models/operations/createresponse.ts +11 -11
  1519. package/src/models/operations/createrouterresponse.ts +1527 -0
  1520. package/src/models/operations/createtool.ts +6 -6
  1521. package/src/models/operations/deleteagentschedule.ts +46 -0
  1522. package/src/models/operations/deploymentgetconfig.ts +29 -23
  1523. package/src/models/operations/deploymentinvoke.ts +2 -0
  1524. package/src/models/operations/deployments.ts +2 -0
  1525. package/src/models/operations/deploymentstream.ts +2 -0
  1526. package/src/models/operations/filecontent.ts +1 -1
  1527. package/src/models/operations/getallprompts.ts +2 -0
  1528. package/src/models/operations/getalltools.ts +6 -6
  1529. package/src/models/operations/getevals.ts +16 -16
  1530. package/src/models/operations/getoneprompt.ts +2 -0
  1531. package/src/models/operations/getpromptversion.ts +2 -0
  1532. package/src/models/operations/getv2humanevalsets.ts +2 -2
  1533. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  1534. package/src/models/operations/guardrailrulecreate.ts +3 -3
  1535. package/src/models/operations/guardrailrulelist.ts +2 -2
  1536. package/src/models/operations/guardrailruleupdate.ts +3 -3
  1537. package/src/models/operations/index.ts +8 -6
  1538. package/src/models/operations/listagentschedules.ts +69 -0
  1539. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  1540. package/src/models/operations/listdatasets.ts +1 -1
  1541. package/src/models/operations/listdatasources.ts +1 -1
  1542. package/src/models/operations/listidentities.ts +1 -1
  1543. package/src/models/operations/listpromptversions.ts +2 -0
  1544. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  1545. package/src/models/operations/policycreate.ts +5 -5
  1546. package/src/models/operations/policyget.ts +2 -2
  1547. package/src/models/operations/policylist.ts +2 -2
  1548. package/src/models/operations/policyupdate.ts +5 -5
  1549. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  1550. package/src/models/operations/postv2feedbackremove.ts +8 -8
  1551. package/src/models/operations/postv2humanevalsets.ts +2 -2
  1552. package/src/models/operations/retrieveagentschedule.ts +165 -0
  1553. package/src/models/operations/retrievedatapoint.ts +4 -4
  1554. package/src/models/operations/retrievedataset.ts +1 -1
  1555. package/src/models/operations/retrievedatasource.ts +1 -1
  1556. package/src/models/operations/retrieveidentity.ts +1 -1
  1557. package/src/models/operations/retrieveresponse.ts +225 -0
  1558. package/src/models/operations/retrievetool.ts +6 -6
  1559. package/src/models/operations/routingrulecreate.ts +3 -3
  1560. package/src/models/operations/routingrulelist.ts +2 -2
  1561. package/src/models/operations/routingruleupdate.ts +3 -3
  1562. package/src/models/operations/runagent.ts +1 -1
  1563. package/src/models/operations/streamrunagent.ts +1 -1
  1564. package/src/models/operations/triggeragentschedule.ts +86 -0
  1565. package/src/models/operations/updateagentschedule.ts +244 -0
  1566. package/src/models/operations/updatedatapoint.ts +4 -4
  1567. package/src/models/operations/updatedataset.ts +1 -1
  1568. package/src/models/operations/updatedatasource.ts +1 -1
  1569. package/src/models/operations/updateeval.ts +178 -16
  1570. package/src/models/operations/updateidentity.ts +1 -1
  1571. package/src/models/operations/updateprompt.ts +2 -0
  1572. package/src/models/operations/updatetool.ts +7 -7
  1573. package/src/sdk/agents.ts +4 -4
  1574. package/src/sdk/evals.ts +18 -0
  1575. package/src/sdk/feedback.ts +33 -0
  1576. package/src/sdk/files.ts +1 -1
  1577. package/src/sdk/guardrailrules.ts +3 -3
  1578. package/src/sdk/knowledge.ts +1 -1
  1579. package/src/sdk/orqagentsresponses.ts +53 -0
  1580. package/src/sdk/policies.ts +3 -3
  1581. package/src/sdk/responses.ts +13 -19
  1582. package/src/sdk/routingrules.ts +3 -3
  1583. package/src/sdk/schedules.ts +117 -0
  1584. package/src/sdk/sdk.ts +16 -94
  1585. package/funcs/deleteV2HumanEvalsId.d.ts.map +0 -1
  1586. package/funcs/deleteV2HumanEvalsId.js.map +0 -1
  1587. package/funcs/evaluatorsGetV2EvaluatorsIdVersions.d.ts.map +0 -1
  1588. package/funcs/evaluatorsGetV2EvaluatorsIdVersions.js.map +0 -1
  1589. package/funcs/getV2HumanEvals.d.ts.map +0 -1
  1590. package/funcs/getV2HumanEvals.js +0 -116
  1591. package/funcs/getV2HumanEvals.js.map +0 -1
  1592. package/funcs/getV2HumanEvalsId.d.ts.map +0 -1
  1593. package/funcs/getV2HumanEvalsId.js.map +0 -1
  1594. package/funcs/guardrailRulesGet.d.ts.map +0 -1
  1595. package/funcs/guardrailRulesGet.js.map +0 -1
  1596. package/funcs/modelsList.d.ts.map +0 -1
  1597. package/funcs/modelsList.js +0 -117
  1598. package/funcs/modelsList.js.map +0 -1
  1599. package/funcs/patchV2HumanEvalsId.d.ts.map +0 -1
  1600. package/funcs/patchV2HumanEvalsId.js.map +0 -1
  1601. package/funcs/policiesGet.d.ts.map +0 -1
  1602. package/funcs/policiesGet.js.map +0 -1
  1603. package/funcs/postV2Feedback.d.ts +0 -12
  1604. package/funcs/postV2Feedback.d.ts.map +0 -1
  1605. package/funcs/postV2Feedback.js.map +0 -1
  1606. package/funcs/postV2FeedbackRemove.d.ts +0 -12
  1607. package/funcs/postV2FeedbackRemove.d.ts.map +0 -1
  1608. package/funcs/postV2FeedbackRemove.js.map +0 -1
  1609. package/funcs/postV2HumanEvals.d.ts +0 -12
  1610. package/funcs/postV2HumanEvals.d.ts.map +0 -1
  1611. package/funcs/postV2HumanEvals.js.map +0 -1
  1612. package/funcs/routingRulesGet.d.ts.map +0 -1
  1613. package/funcs/routingRulesGet.js.map +0 -1
  1614. package/models/components/guardrailruledocument.d.ts.map +0 -1
  1615. package/models/components/guardrailruledocument.js.map +0 -1
  1616. package/models/components/policydocument.d.ts.map +0 -1
  1617. package/models/components/policydocument.js.map +0 -1
  1618. package/models/components/retryconfig.d.ts +0 -19
  1619. package/models/components/retryconfig.d.ts.map +0 -1
  1620. package/models/components/retryconfig.js.map +0 -1
  1621. package/models/components/routingruledocument.d.ts.map +0 -1
  1622. package/models/components/routingruledocument.js.map +0 -1
  1623. package/models/errors/deletev2humanevalsid.d.ts +0 -23
  1624. package/models/errors/deletev2humanevalsid.d.ts.map +0 -1
  1625. package/models/errors/deletev2humanevalsid.js.map +0 -1
  1626. package/models/errors/getv2humanevals.d.ts +0 -23
  1627. package/models/errors/getv2humanevals.d.ts.map +0 -1
  1628. package/models/errors/getv2humanevals.js.map +0 -1
  1629. package/models/errors/getv2humanevalsid.d.ts +0 -23
  1630. package/models/errors/getv2humanevalsid.d.ts.map +0 -1
  1631. package/models/errors/getv2humanevalsid.js.map +0 -1
  1632. package/models/errors/patchv2humanevalsid.d.ts +0 -23
  1633. package/models/errors/patchv2humanevalsid.d.ts.map +0 -1
  1634. package/models/errors/patchv2humanevalsid.js.map +0 -1
  1635. package/models/errors/postv2humanevals.d.ts +0 -23
  1636. package/models/errors/postv2humanevals.d.ts.map +0 -1
  1637. package/models/errors/postv2humanevals.js.map +0 -1
  1638. package/models/operations/deletev2humanevalsid.d.ts +0 -27
  1639. package/models/operations/deletev2humanevalsid.d.ts.map +0 -1
  1640. package/models/operations/deletev2humanevalsid.js.map +0 -1
  1641. package/models/operations/getv2humanevals.d.ts +0 -356
  1642. package/models/operations/getv2humanevals.d.ts.map +0 -1
  1643. package/models/operations/getv2humanevals.js +0 -274
  1644. package/models/operations/getv2humanevals.js.map +0 -1
  1645. package/models/operations/getv2humanevalsid.d.ts +0 -359
  1646. package/models/operations/getv2humanevalsid.d.ts.map +0 -1
  1647. package/models/operations/getv2humanevalsid.js +0 -271
  1648. package/models/operations/getv2humanevalsid.js.map +0 -1
  1649. package/models/operations/listmodels.d.ts +0 -90
  1650. package/models/operations/listmodels.d.ts.map +0 -1
  1651. package/models/operations/listmodels.js +0 -112
  1652. package/models/operations/listmodels.js.map +0 -1
  1653. package/models/operations/patchv2humanevalsid.d.ts +0 -703
  1654. package/models/operations/patchv2humanevalsid.d.ts.map +0 -1
  1655. package/models/operations/patchv2humanevalsid.js +0 -474
  1656. package/models/operations/patchv2humanevalsid.js.map +0 -1
  1657. package/models/operations/postv2humanevals.d.ts +0 -628
  1658. package/models/operations/postv2humanevals.d.ts.map +0 -1
  1659. package/models/operations/postv2humanevals.js +0 -427
  1660. package/models/operations/postv2humanevals.js.map +0 -1
  1661. package/sdk/evaluators.d.ts +0 -12
  1662. package/sdk/evaluators.d.ts.map +0 -1
  1663. package/sdk/evaluators.js +0 -22
  1664. package/sdk/evaluators.js.map +0 -1
  1665. package/sdk/models.d.ts +0 -12
  1666. package/sdk/models.d.ts.map +0 -1
  1667. package/sdk/models.js +0 -22
  1668. package/sdk/models.js.map +0 -1
  1669. package/src/models/operations/deletev2humanevalsid.ts +0 -67
  1670. package/src/models/operations/getv2humanevals.ts +0 -696
  1671. package/src/models/operations/getv2humanevalsid.ts +0 -707
  1672. package/src/models/operations/listmodels.ts +0 -169
  1673. package/src/models/operations/patchv2humanevalsid.ts +0 -1362
  1674. package/src/models/operations/postv2humanevals.ts +0 -1193
  1675. package/src/sdk/evaluators.ts +0 -27
  1676. package/src/sdk/models.ts +0 -27
@@ -0,0 +1,2801 @@
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 {
8
+ collectExtraKeys as collectExtraKeys$,
9
+ safeParse,
10
+ } from "../../lib/schemas.js";
11
+ import { ClosedEnum } from "../../types/enums.js";
12
+ import { Result as SafeParseResult } from "../../types/fp.js";
13
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
14
+
15
+ /**
16
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
17
+ */
18
+ export const UpdateToolRequestBodyToolsRequest5Status = {
19
+ Live: "live",
20
+ Draft: "draft",
21
+ Pending: "pending",
22
+ Published: "published",
23
+ } as const;
24
+ /**
25
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
26
+ */
27
+ export type UpdateToolRequestBodyToolsRequest5Status = ClosedEnum<
28
+ typeof UpdateToolRequestBodyToolsRequest5Status
29
+ >;
30
+
31
+ /**
32
+ * The type must be "object"
33
+ */
34
+ export const UpdateToolRequestBodyToolsRequest5CodeToolType = {
35
+ Object: "object",
36
+ } as const;
37
+ /**
38
+ * The type must be "object"
39
+ */
40
+ export type UpdateToolRequestBodyToolsRequest5CodeToolType = ClosedEnum<
41
+ typeof UpdateToolRequestBodyToolsRequest5CodeToolType
42
+ >;
43
+
44
+ /**
45
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
46
+ */
47
+ export type UpdateToolRequestBodyToolsParameters = {
48
+ /**
49
+ * The type must be "object"
50
+ */
51
+ type: UpdateToolRequestBodyToolsRequest5CodeToolType;
52
+ /**
53
+ * The properties of the function parameters
54
+ */
55
+ properties: { [k: string]: any };
56
+ /**
57
+ * Array of required parameter names
58
+ */
59
+ required: Array<string>;
60
+ additionalProperties?: { [k: string]: any } | undefined;
61
+ };
62
+
63
+ export const UpdateToolRequestBodyLanguage = {
64
+ Python: "python",
65
+ } as const;
66
+ export type UpdateToolRequestBodyLanguage = ClosedEnum<
67
+ typeof UpdateToolRequestBodyLanguage
68
+ >;
69
+
70
+ export type UpdateToolRequestBodyCodeTool = {
71
+ /**
72
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
73
+ */
74
+ parameters?: UpdateToolRequestBodyToolsParameters | undefined;
75
+ language: UpdateToolRequestBodyLanguage;
76
+ /**
77
+ * The code to execute.
78
+ */
79
+ code: string;
80
+ };
81
+
82
+ export const UpdateToolRequestBodyToolsRequest5VersionIncrement = {
83
+ Major: "major",
84
+ Minor: "minor",
85
+ Patch: "patch",
86
+ } as const;
87
+ export type UpdateToolRequestBodyToolsRequest5VersionIncrement = ClosedEnum<
88
+ typeof UpdateToolRequestBodyToolsRequest5VersionIncrement
89
+ >;
90
+
91
+ /**
92
+ * Updates an existing code execution tool configuration.
93
+ */
94
+ export type UpdateCodeExecutionTool = {
95
+ /**
96
+ * Entity storage path in the format: `project/folder/subfolder/...`
97
+ *
98
+ * @remarks
99
+ *
100
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
101
+ *
102
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
103
+ */
104
+ path?: string | undefined;
105
+ /**
106
+ * Unique key of the tool as it will be displayed in the UI
107
+ */
108
+ key?: string | undefined;
109
+ /**
110
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
111
+ */
112
+ displayName?: string | undefined;
113
+ /**
114
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
115
+ */
116
+ description?: string | undefined;
117
+ /**
118
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
119
+ */
120
+ status?: UpdateToolRequestBodyToolsRequest5Status | undefined;
121
+ type: "code";
122
+ codeTool?: UpdateToolRequestBodyCodeTool | undefined;
123
+ versionIncrement?:
124
+ | UpdateToolRequestBodyToolsRequest5VersionIncrement
125
+ | undefined;
126
+ versionDescription?: string | undefined;
127
+ };
128
+
129
+ /**
130
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
131
+ */
132
+ export const UpdateToolRequestBodyToolsRequest4Status = {
133
+ Live: "live",
134
+ Draft: "draft",
135
+ Pending: "pending",
136
+ Published: "published",
137
+ } as const;
138
+ /**
139
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
140
+ */
141
+ export type UpdateToolRequestBodyToolsRequest4Status = ClosedEnum<
142
+ typeof UpdateToolRequestBodyToolsRequest4Status
143
+ >;
144
+
145
+ export type UpdateToolRequestBodyHeaders = {
146
+ value: string;
147
+ encrypted?: boolean | undefined;
148
+ };
149
+
150
+ export const UpdateToolRequestBodyToolsRequest4McpType = {
151
+ Object: "object",
152
+ } as const;
153
+ export type UpdateToolRequestBodyToolsRequest4McpType = ClosedEnum<
154
+ typeof UpdateToolRequestBodyToolsRequest4McpType
155
+ >;
156
+
157
+ export type UpdateToolRequestBodyToolsSchema = {
158
+ type: UpdateToolRequestBodyToolsRequest4McpType;
159
+ properties?: { [k: string]: any } | undefined;
160
+ required?: Array<string> | undefined;
161
+ };
162
+
163
+ export type RequestBodyTools = {
164
+ id?: string | undefined;
165
+ name: string;
166
+ description?: string | undefined;
167
+ schema: UpdateToolRequestBodyToolsSchema;
168
+ };
169
+
170
+ /**
171
+ * The connection type used by the MCP server
172
+ */
173
+ export const UpdateToolRequestBodyConnectionType = {
174
+ Http: "http",
175
+ Sse: "sse",
176
+ } as const;
177
+ /**
178
+ * The connection type used by the MCP server
179
+ */
180
+ export type UpdateToolRequestBodyConnectionType = ClosedEnum<
181
+ typeof UpdateToolRequestBodyConnectionType
182
+ >;
183
+
184
+ export type UpdateToolRequestBodyMcp = {
185
+ /**
186
+ * The MCP server URL (cached for execution)
187
+ */
188
+ serverUrl?: string | undefined;
189
+ /**
190
+ * HTTP headers for MCP server requests with encryption support
191
+ */
192
+ headers?: { [k: string]: UpdateToolRequestBodyHeaders } | undefined;
193
+ /**
194
+ * Array of tools available from the MCP server
195
+ */
196
+ tools?: Array<RequestBodyTools> | undefined;
197
+ /**
198
+ * The connection type used by the MCP server
199
+ */
200
+ connectionType?: UpdateToolRequestBodyConnectionType | undefined;
201
+ };
202
+
203
+ export const UpdateToolRequestBodyToolsRequestVersionIncrement = {
204
+ Major: "major",
205
+ Minor: "minor",
206
+ Patch: "patch",
207
+ } as const;
208
+ export type UpdateToolRequestBodyToolsRequestVersionIncrement = ClosedEnum<
209
+ typeof UpdateToolRequestBodyToolsRequestVersionIncrement
210
+ >;
211
+
212
+ /**
213
+ * Updates an existing MCP tool configuration.
214
+ */
215
+ export type UpdateMCPTool = {
216
+ /**
217
+ * Entity storage path in the format: `project/folder/subfolder/...`
218
+ *
219
+ * @remarks
220
+ *
221
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
222
+ *
223
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
224
+ */
225
+ path?: string | undefined;
226
+ /**
227
+ * Unique key of the tool as it will be displayed in the UI
228
+ */
229
+ key?: string | undefined;
230
+ /**
231
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
232
+ */
233
+ displayName?: string | undefined;
234
+ /**
235
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
236
+ */
237
+ description?: string | undefined;
238
+ /**
239
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
240
+ */
241
+ status?: UpdateToolRequestBodyToolsRequest4Status | undefined;
242
+ type: "mcp";
243
+ mcp?: UpdateToolRequestBodyMcp | undefined;
244
+ discoveryVariables?: { [k: string]: string } | undefined;
245
+ versionIncrement?:
246
+ | UpdateToolRequestBodyToolsRequestVersionIncrement
247
+ | undefined;
248
+ versionDescription?: string | undefined;
249
+ };
250
+
251
+ /**
252
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
253
+ */
254
+ export const UpdateToolRequestBodyToolsRequestStatus = {
255
+ Live: "live",
256
+ Draft: "draft",
257
+ Pending: "pending",
258
+ Published: "published",
259
+ } as const;
260
+ /**
261
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
262
+ */
263
+ export type UpdateToolRequestBodyToolsRequestStatus = ClosedEnum<
264
+ typeof UpdateToolRequestBodyToolsRequestStatus
265
+ >;
266
+
267
+ /**
268
+ * The HTTP method to use.
269
+ */
270
+ export const UpdateToolRequestBodyMethod = {
271
+ Get: "GET",
272
+ Post: "POST",
273
+ Put: "PUT",
274
+ Delete: "DELETE",
275
+ } as const;
276
+ /**
277
+ * The HTTP method to use.
278
+ */
279
+ export type UpdateToolRequestBodyMethod = ClosedEnum<
280
+ typeof UpdateToolRequestBodyMethod
281
+ >;
282
+
283
+ export type UpdateToolHeaders2 = {
284
+ value: string;
285
+ encrypted?: boolean | undefined;
286
+ };
287
+
288
+ export type UpdateToolRequestBodyToolsHeaders = UpdateToolHeaders2 | string;
289
+
290
+ /**
291
+ * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
292
+ */
293
+ export type UpdateToolRequestBodyBlueprint = {
294
+ /**
295
+ * The URL to send the request to.
296
+ */
297
+ url: string;
298
+ /**
299
+ * The HTTP method to use.
300
+ */
301
+ method: UpdateToolRequestBodyMethod;
302
+ /**
303
+ * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
304
+ */
305
+ headers?: { [k: string]: UpdateToolHeaders2 | string } | undefined;
306
+ /**
307
+ * The body to send with the request.
308
+ */
309
+ body?: { [k: string]: any } | undefined;
310
+ };
311
+
312
+ /**
313
+ * The type of the argument.
314
+ */
315
+ export const UpdateToolRequestBodyToolsRequest3Type = {
316
+ String: "string",
317
+ Number: "number",
318
+ Boolean: "boolean",
319
+ } as const;
320
+ /**
321
+ * The type of the argument.
322
+ */
323
+ export type UpdateToolRequestBodyToolsRequest3Type = ClosedEnum<
324
+ typeof UpdateToolRequestBodyToolsRequest3Type
325
+ >;
326
+
327
+ /**
328
+ * The default value of the argument.
329
+ */
330
+ export type UpdateToolRequestBodyDefaultValue = string | number | boolean;
331
+
332
+ export type UpdateToolRequestBodyArguments = {
333
+ /**
334
+ * The type of the argument.
335
+ */
336
+ type: UpdateToolRequestBodyToolsRequest3Type;
337
+ /**
338
+ * A description of the argument.
339
+ */
340
+ description: string;
341
+ /**
342
+ * Whether to send the argument to the model. If set to false, the argument will not be sent to the model and needs to be provided by the user or it will be left blank.
343
+ */
344
+ sendToModel?: boolean | undefined;
345
+ /**
346
+ * The default value of the argument.
347
+ */
348
+ defaultValue?: string | number | boolean | undefined;
349
+ };
350
+
351
+ export type UpdateToolRequestBodyHttp = {
352
+ /**
353
+ * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
354
+ */
355
+ blueprint: UpdateToolRequestBodyBlueprint;
356
+ /**
357
+ * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
358
+ */
359
+ arguments?: { [k: string]: UpdateToolRequestBodyArguments } | undefined;
360
+ };
361
+
362
+ export const UpdateToolRequestBodyToolsVersionIncrement = {
363
+ Major: "major",
364
+ Minor: "minor",
365
+ Patch: "patch",
366
+ } as const;
367
+ export type UpdateToolRequestBodyToolsVersionIncrement = ClosedEnum<
368
+ typeof UpdateToolRequestBodyToolsVersionIncrement
369
+ >;
370
+
371
+ /**
372
+ * Updates an existing HTTP tool configuration.
373
+ */
374
+ export type UpdateHTTPTool = {
375
+ /**
376
+ * Entity storage path in the format: `project/folder/subfolder/...`
377
+ *
378
+ * @remarks
379
+ *
380
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
381
+ *
382
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
383
+ */
384
+ path?: string | undefined;
385
+ /**
386
+ * Unique key of the tool as it will be displayed in the UI
387
+ */
388
+ key?: string | undefined;
389
+ /**
390
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
391
+ */
392
+ displayName?: string | undefined;
393
+ /**
394
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
395
+ */
396
+ description?: string | undefined;
397
+ /**
398
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
399
+ */
400
+ status?: UpdateToolRequestBodyToolsRequestStatus | undefined;
401
+ type: "http";
402
+ http?: UpdateToolRequestBodyHttp | undefined;
403
+ versionIncrement?: UpdateToolRequestBodyToolsVersionIncrement | undefined;
404
+ versionDescription?: string | undefined;
405
+ };
406
+
407
+ /**
408
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
409
+ */
410
+ export const UpdateToolRequestBodyToolsStatus = {
411
+ Live: "live",
412
+ Draft: "draft",
413
+ Pending: "pending",
414
+ Published: "published",
415
+ } as const;
416
+ /**
417
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
418
+ */
419
+ export type UpdateToolRequestBodyToolsStatus = ClosedEnum<
420
+ typeof UpdateToolRequestBodyToolsStatus
421
+ >;
422
+
423
+ /**
424
+ * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
425
+ */
426
+ export type UpdateToolRequestBodySchema = {
427
+ /**
428
+ * The JSON Schema type
429
+ */
430
+ type: string;
431
+ /**
432
+ * The properties of the JSON Schema object
433
+ */
434
+ properties: { [k: string]: any };
435
+ /**
436
+ * Array of required property names
437
+ */
438
+ required: Array<string>;
439
+ additionalProperties?: { [k: string]: any } | undefined;
440
+ };
441
+
442
+ export type UpdateToolRequestBodyJsonSchema = {
443
+ /**
444
+ * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
445
+ */
446
+ name: string;
447
+ /**
448
+ * A description of what the response format is for. This will be shown to the user.
449
+ */
450
+ description: string;
451
+ /**
452
+ * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
453
+ */
454
+ schema: UpdateToolRequestBodySchema;
455
+ /**
456
+ * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. Only compatible with `OpenAI` models.
457
+ */
458
+ strict?: boolean | undefined;
459
+ };
460
+
461
+ export const UpdateToolRequestBodyVersionIncrement = {
462
+ Major: "major",
463
+ Minor: "minor",
464
+ Patch: "patch",
465
+ } as const;
466
+ export type UpdateToolRequestBodyVersionIncrement = ClosedEnum<
467
+ typeof UpdateToolRequestBodyVersionIncrement
468
+ >;
469
+
470
+ /**
471
+ * Updates an existing JSON Schema tool configuration.
472
+ */
473
+ export type UpdateJSONSchemaTool = {
474
+ /**
475
+ * Entity storage path in the format: `project/folder/subfolder/...`
476
+ *
477
+ * @remarks
478
+ *
479
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
480
+ *
481
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
482
+ */
483
+ path?: string | undefined;
484
+ /**
485
+ * Unique key of the tool as it will be displayed in the UI
486
+ */
487
+ key?: string | undefined;
488
+ /**
489
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
490
+ */
491
+ displayName?: string | undefined;
492
+ /**
493
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
494
+ */
495
+ description?: string | undefined;
496
+ /**
497
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
498
+ */
499
+ status?: UpdateToolRequestBodyToolsStatus | undefined;
500
+ type: "json_schema";
501
+ jsonSchema?: UpdateToolRequestBodyJsonSchema | undefined;
502
+ versionIncrement?: UpdateToolRequestBodyVersionIncrement | undefined;
503
+ versionDescription?: string | undefined;
504
+ };
505
+
506
+ /**
507
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
508
+ */
509
+ export const UpdateToolRequestBodyStatus = {
510
+ Live: "live",
511
+ Draft: "draft",
512
+ Pending: "pending",
513
+ Published: "published",
514
+ } as const;
515
+ /**
516
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
517
+ */
518
+ export type UpdateToolRequestBodyStatus = ClosedEnum<
519
+ typeof UpdateToolRequestBodyStatus
520
+ >;
521
+
522
+ /**
523
+ * The type must be "object"
524
+ */
525
+ export const UpdateToolRequestBodyToolsRequest1Type = {
526
+ Object: "object",
527
+ } as const;
528
+ /**
529
+ * The type must be "object"
530
+ */
531
+ export type UpdateToolRequestBodyToolsRequest1Type = ClosedEnum<
532
+ typeof UpdateToolRequestBodyToolsRequest1Type
533
+ >;
534
+
535
+ /**
536
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
537
+ */
538
+ export type UpdateToolRequestBodyParameters = {
539
+ /**
540
+ * The type must be "object"
541
+ */
542
+ type: UpdateToolRequestBodyToolsRequest1Type;
543
+ /**
544
+ * The properties of the function parameters
545
+ */
546
+ properties: { [k: string]: any };
547
+ /**
548
+ * Array of required parameter names
549
+ */
550
+ required: Array<string>;
551
+ additionalProperties?: { [k: string]: any } | undefined;
552
+ };
553
+
554
+ export type UpdateToolRequestBodyFunction = {
555
+ /**
556
+ * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
557
+ */
558
+ name: string;
559
+ /**
560
+ * A description of what the function does, used by the model to choose when and how to call the function.
561
+ */
562
+ description?: string | undefined;
563
+ /**
564
+ * Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
565
+ */
566
+ strict?: boolean | undefined;
567
+ /**
568
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
569
+ */
570
+ parameters?: UpdateToolRequestBodyParameters | undefined;
571
+ };
572
+
573
+ export const RequestBodyVersionIncrement = {
574
+ Major: "major",
575
+ Minor: "minor",
576
+ Patch: "patch",
577
+ } as const;
578
+ export type RequestBodyVersionIncrement = ClosedEnum<
579
+ typeof RequestBodyVersionIncrement
580
+ >;
581
+
582
+ /**
583
+ * Updates an existing function tool configuration.
584
+ */
585
+ export type UpdateFunctionTool = {
586
+ /**
587
+ * Entity storage path in the format: `project/folder/subfolder/...`
588
+ *
589
+ * @remarks
590
+ *
591
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
592
+ *
593
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
594
+ */
595
+ path?: string | undefined;
596
+ /**
597
+ * Unique key of the tool as it will be displayed in the UI
598
+ */
599
+ key?: string | undefined;
600
+ /**
601
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
602
+ */
603
+ displayName?: string | undefined;
604
+ /**
605
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
606
+ */
607
+ description?: string | undefined;
608
+ /**
609
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
610
+ */
611
+ status?: UpdateToolRequestBodyStatus | undefined;
612
+ type: "function";
613
+ function?: UpdateToolRequestBodyFunction | undefined;
614
+ versionIncrement?: RequestBodyVersionIncrement | undefined;
615
+ versionDescription?: string | undefined;
616
+ };
617
+
618
+ /**
619
+ * The tool to update
620
+ */
621
+ export type UpdateToolRequestBody =
622
+ | UpdateFunctionTool
623
+ | UpdateJSONSchemaTool
624
+ | UpdateHTTPTool
625
+ | UpdateMCPTool
626
+ | UpdateCodeExecutionTool;
627
+
628
+ export type UpdateToolRequest = {
629
+ toolId: string;
630
+ /**
631
+ * The tool to update
632
+ */
633
+ requestBody?:
634
+ | UpdateFunctionTool
635
+ | UpdateJSONSchemaTool
636
+ | UpdateHTTPTool
637
+ | UpdateMCPTool
638
+ | UpdateCodeExecutionTool
639
+ | undefined;
640
+ };
641
+
642
+ /**
643
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
644
+ */
645
+ export const UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus = {
646
+ Live: "live",
647
+ Draft: "draft",
648
+ Pending: "pending",
649
+ Published: "published",
650
+ } as const;
651
+ /**
652
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
653
+ */
654
+ export type UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus =
655
+ ClosedEnum<
656
+ typeof UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus
657
+ >;
658
+
659
+ /**
660
+ * The type must be "object"
661
+ */
662
+ export const UpdateToolResponseBodyToolsResponse200ApplicationJson5Type = {
663
+ Object: "object",
664
+ } as const;
665
+ /**
666
+ * The type must be "object"
667
+ */
668
+ export type UpdateToolResponseBodyToolsResponse200ApplicationJson5Type =
669
+ ClosedEnum<typeof UpdateToolResponseBodyToolsResponse200ApplicationJson5Type>;
670
+
671
+ /**
672
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
673
+ */
674
+ export type UpdateToolResponseBodyToolsParameters = {
675
+ /**
676
+ * The type must be "object"
677
+ */
678
+ type: UpdateToolResponseBodyToolsResponse200ApplicationJson5Type;
679
+ /**
680
+ * The properties of the function parameters
681
+ */
682
+ properties: { [k: string]: any };
683
+ /**
684
+ * Array of required parameter names
685
+ */
686
+ required: Array<string>;
687
+ additionalProperties?: { [k: string]: any } | undefined;
688
+ };
689
+
690
+ export const UpdateToolResponseBodyLanguage = {
691
+ Python: "python",
692
+ } as const;
693
+ export type UpdateToolResponseBodyLanguage = ClosedEnum<
694
+ typeof UpdateToolResponseBodyLanguage
695
+ >;
696
+
697
+ export type UpdateToolResponseBodyCodeTool = {
698
+ /**
699
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
700
+ */
701
+ parameters?: UpdateToolResponseBodyToolsParameters | undefined;
702
+ language: UpdateToolResponseBodyLanguage;
703
+ /**
704
+ * The code to execute.
705
+ */
706
+ code: string;
707
+ };
708
+
709
+ /**
710
+ * Executes code snippets in a sandboxed environment, currently supporting Python.
711
+ */
712
+ export type UpdateToolResponseBodyCodeExecutionTool = {
713
+ id: string;
714
+ /**
715
+ * Entity storage path in the format: `project/folder/subfolder/...`
716
+ *
717
+ * @remarks
718
+ *
719
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
720
+ *
721
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
722
+ */
723
+ path: string;
724
+ /**
725
+ * Unique key of the tool as it will be displayed in the UI
726
+ */
727
+ key: string;
728
+ /**
729
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
730
+ */
731
+ displayName?: string | undefined;
732
+ /**
733
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
734
+ */
735
+ description: string;
736
+ /**
737
+ * The id of the user that created the tool
738
+ */
739
+ createdById?: string | undefined;
740
+ /**
741
+ * The id of the user that last updated the tool
742
+ */
743
+ updatedById?: string | undefined;
744
+ projectId: string;
745
+ workspaceId: string;
746
+ created: string;
747
+ updated: string;
748
+ /**
749
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
750
+ */
751
+ status: UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus;
752
+ type: "code";
753
+ codeTool: UpdateToolResponseBodyCodeTool;
754
+ };
755
+
756
+ /**
757
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
758
+ */
759
+ export const UpdateToolResponseBodyToolsResponse200Status = {
760
+ Live: "live",
761
+ Draft: "draft",
762
+ Pending: "pending",
763
+ Published: "published",
764
+ } as const;
765
+ /**
766
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
767
+ */
768
+ export type UpdateToolResponseBodyToolsResponse200Status = ClosedEnum<
769
+ typeof UpdateToolResponseBodyToolsResponse200Status
770
+ >;
771
+
772
+ export type UpdateToolResponseBodyHeaders = {
773
+ value: string;
774
+ encrypted: boolean;
775
+ };
776
+
777
+ export const UpdateToolResponseBodyToolsResponse200ApplicationJson4Type = {
778
+ Object: "object",
779
+ } as const;
780
+ export type UpdateToolResponseBodyToolsResponse200ApplicationJson4Type =
781
+ ClosedEnum<typeof UpdateToolResponseBodyToolsResponse200ApplicationJson4Type>;
782
+
783
+ export type UpdateToolResponseBodyToolsSchema = {
784
+ type: UpdateToolResponseBodyToolsResponse200ApplicationJson4Type;
785
+ properties?: { [k: string]: any } | undefined;
786
+ required?: Array<string> | undefined;
787
+ };
788
+
789
+ export type UpdateToolResponseBodyTools = {
790
+ id: string;
791
+ name: string;
792
+ description?: string | undefined;
793
+ schema: UpdateToolResponseBodyToolsSchema;
794
+ };
795
+
796
+ /**
797
+ * The connection type used by the MCP server
798
+ */
799
+ export const UpdateToolResponseBodyConnectionType = {
800
+ Http: "http",
801
+ Sse: "sse",
802
+ } as const;
803
+ /**
804
+ * The connection type used by the MCP server
805
+ */
806
+ export type UpdateToolResponseBodyConnectionType = ClosedEnum<
807
+ typeof UpdateToolResponseBodyConnectionType
808
+ >;
809
+
810
+ export type UpdateToolResponseBodyMcp = {
811
+ /**
812
+ * The MCP server URL (cached for execution)
813
+ */
814
+ serverUrl: string;
815
+ /**
816
+ * HTTP headers for MCP server requests with encryption support
817
+ */
818
+ headers?: { [k: string]: UpdateToolResponseBodyHeaders } | undefined;
819
+ /**
820
+ * Array of tools available from the MCP server
821
+ */
822
+ tools: Array<UpdateToolResponseBodyTools>;
823
+ /**
824
+ * The connection type used by the MCP server
825
+ */
826
+ connectionType: UpdateToolResponseBodyConnectionType;
827
+ /**
828
+ * Names of template variables detected in server_url and headers. Used by the FE to prompt for one-time values on sync/refresh.
829
+ */
830
+ templateVariables?: Array<string> | null | undefined;
831
+ };
832
+
833
+ /**
834
+ * A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
835
+ */
836
+ export type UpdateToolResponseBodyMCPTool = {
837
+ id: string;
838
+ /**
839
+ * Entity storage path in the format: `project/folder/subfolder/...`
840
+ *
841
+ * @remarks
842
+ *
843
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
844
+ *
845
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
846
+ */
847
+ path: string;
848
+ /**
849
+ * Unique key of the tool as it will be displayed in the UI
850
+ */
851
+ key: string;
852
+ /**
853
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
854
+ */
855
+ displayName?: string | undefined;
856
+ /**
857
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
858
+ */
859
+ description: string;
860
+ /**
861
+ * The id of the user that created the tool
862
+ */
863
+ createdById?: string | undefined;
864
+ /**
865
+ * The id of the user that last updated the tool
866
+ */
867
+ updatedById?: string | undefined;
868
+ projectId: string;
869
+ workspaceId: string;
870
+ created: string;
871
+ updated: string;
872
+ /**
873
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
874
+ */
875
+ status: UpdateToolResponseBodyToolsResponse200Status;
876
+ type: "mcp";
877
+ mcp: UpdateToolResponseBodyMcp;
878
+ };
879
+
880
+ /**
881
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
882
+ */
883
+ export const UpdateToolResponseBodyToolsResponseStatus = {
884
+ Live: "live",
885
+ Draft: "draft",
886
+ Pending: "pending",
887
+ Published: "published",
888
+ } as const;
889
+ /**
890
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
891
+ */
892
+ export type UpdateToolResponseBodyToolsResponseStatus = ClosedEnum<
893
+ typeof UpdateToolResponseBodyToolsResponseStatus
894
+ >;
895
+
896
+ /**
897
+ * The HTTP method to use.
898
+ */
899
+ export const UpdateToolResponseBodyMethod = {
900
+ Get: "GET",
901
+ Post: "POST",
902
+ Put: "PUT",
903
+ Delete: "DELETE",
904
+ } as const;
905
+ /**
906
+ * The HTTP method to use.
907
+ */
908
+ export type UpdateToolResponseBodyMethod = ClosedEnum<
909
+ typeof UpdateToolResponseBodyMethod
910
+ >;
911
+
912
+ export type UpdateToolHeadersTools2 = {
913
+ value: string;
914
+ encrypted: boolean;
915
+ };
916
+
917
+ export type UpdateToolResponseBodyToolsHeaders =
918
+ | UpdateToolHeadersTools2
919
+ | string;
920
+
921
+ /**
922
+ * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
923
+ */
924
+ export type UpdateToolResponseBodyBlueprint = {
925
+ /**
926
+ * The URL to send the request to.
927
+ */
928
+ url: string;
929
+ /**
930
+ * The HTTP method to use.
931
+ */
932
+ method: UpdateToolResponseBodyMethod;
933
+ /**
934
+ * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
935
+ */
936
+ headers?: { [k: string]: UpdateToolHeadersTools2 | string } | undefined;
937
+ /**
938
+ * The body to send with the request.
939
+ */
940
+ body?: { [k: string]: any } | undefined;
941
+ };
942
+
943
+ /**
944
+ * The type of the argument.
945
+ */
946
+ export const UpdateToolResponseBodyToolsResponse200ApplicationJson3Type = {
947
+ String: "string",
948
+ Number: "number",
949
+ Boolean: "boolean",
950
+ } as const;
951
+ /**
952
+ * The type of the argument.
953
+ */
954
+ export type UpdateToolResponseBodyToolsResponse200ApplicationJson3Type =
955
+ ClosedEnum<typeof UpdateToolResponseBodyToolsResponse200ApplicationJson3Type>;
956
+
957
+ /**
958
+ * The default value of the argument.
959
+ */
960
+ export type UpdateToolResponseBodyDefaultValue = string | number | boolean;
961
+
962
+ export type UpdateToolResponseBodyArguments = {
963
+ /**
964
+ * The type of the argument.
965
+ */
966
+ type: UpdateToolResponseBodyToolsResponse200ApplicationJson3Type;
967
+ /**
968
+ * A description of the argument.
969
+ */
970
+ description: string;
971
+ /**
972
+ * Whether to send the argument to the model. If set to false, the argument will not be sent to the model and needs to be provided by the user or it will be left blank.
973
+ */
974
+ sendToModel: boolean;
975
+ /**
976
+ * The default value of the argument.
977
+ */
978
+ defaultValue?: string | number | boolean | undefined;
979
+ };
980
+
981
+ export type UpdateToolResponseBodyHttp = {
982
+ /**
983
+ * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
984
+ */
985
+ blueprint: UpdateToolResponseBodyBlueprint;
986
+ /**
987
+ * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
988
+ */
989
+ arguments?: { [k: string]: UpdateToolResponseBodyArguments } | undefined;
990
+ };
991
+
992
+ /**
993
+ * Executes HTTP requests to interact with external APIs and web services using customizable blueprints.
994
+ */
995
+ export type UpdateToolResponseBodyHTTPTool = {
996
+ id: string;
997
+ /**
998
+ * Entity storage path in the format: `project/folder/subfolder/...`
999
+ *
1000
+ * @remarks
1001
+ *
1002
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
1003
+ *
1004
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
1005
+ */
1006
+ path: string;
1007
+ /**
1008
+ * Unique key of the tool as it will be displayed in the UI
1009
+ */
1010
+ key: string;
1011
+ /**
1012
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
1013
+ */
1014
+ displayName?: string | undefined;
1015
+ /**
1016
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
1017
+ */
1018
+ description: string;
1019
+ /**
1020
+ * The id of the user that created the tool
1021
+ */
1022
+ createdById?: string | undefined;
1023
+ /**
1024
+ * The id of the user that last updated the tool
1025
+ */
1026
+ updatedById?: string | undefined;
1027
+ projectId: string;
1028
+ workspaceId: string;
1029
+ created: string;
1030
+ updated: string;
1031
+ /**
1032
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1033
+ */
1034
+ status: UpdateToolResponseBodyToolsResponseStatus;
1035
+ type: "http";
1036
+ http: UpdateToolResponseBodyHttp;
1037
+ };
1038
+
1039
+ /**
1040
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1041
+ */
1042
+ export const UpdateToolResponseBodyToolsStatus = {
1043
+ Live: "live",
1044
+ Draft: "draft",
1045
+ Pending: "pending",
1046
+ Published: "published",
1047
+ } as const;
1048
+ /**
1049
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1050
+ */
1051
+ export type UpdateToolResponseBodyToolsStatus = ClosedEnum<
1052
+ typeof UpdateToolResponseBodyToolsStatus
1053
+ >;
1054
+
1055
+ /**
1056
+ * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1057
+ */
1058
+ export type UpdateToolResponseBodySchema = {
1059
+ /**
1060
+ * The JSON Schema type
1061
+ */
1062
+ type: string;
1063
+ /**
1064
+ * The properties of the JSON Schema object
1065
+ */
1066
+ properties: { [k: string]: any };
1067
+ /**
1068
+ * Array of required property names
1069
+ */
1070
+ required: Array<string>;
1071
+ additionalProperties?: { [k: string]: any } | undefined;
1072
+ };
1073
+
1074
+ export type UpdateToolResponseBodyJsonSchema = {
1075
+ /**
1076
+ * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
1077
+ */
1078
+ name: string;
1079
+ /**
1080
+ * A description of what the response format is for. This will be shown to the user.
1081
+ */
1082
+ description: string;
1083
+ /**
1084
+ * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1085
+ */
1086
+ schema: UpdateToolResponseBodySchema;
1087
+ /**
1088
+ * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. Only compatible with `OpenAI` models.
1089
+ */
1090
+ strict?: boolean | undefined;
1091
+ };
1092
+
1093
+ /**
1094
+ * A tool that enforces structured output format using JSON Schema for consistent response formatting.
1095
+ */
1096
+ export type UpdateToolResponseBodyJSONSchemaTool = {
1097
+ id: string;
1098
+ /**
1099
+ * Entity storage path in the format: `project/folder/subfolder/...`
1100
+ *
1101
+ * @remarks
1102
+ *
1103
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
1104
+ *
1105
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
1106
+ */
1107
+ path: string;
1108
+ /**
1109
+ * Unique key of the tool as it will be displayed in the UI
1110
+ */
1111
+ key: string;
1112
+ /**
1113
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
1114
+ */
1115
+ displayName?: string | undefined;
1116
+ /**
1117
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
1118
+ */
1119
+ description: string;
1120
+ /**
1121
+ * The id of the user that created the tool
1122
+ */
1123
+ createdById?: string | undefined;
1124
+ /**
1125
+ * The id of the user that last updated the tool
1126
+ */
1127
+ updatedById?: string | undefined;
1128
+ projectId: string;
1129
+ workspaceId: string;
1130
+ created: string;
1131
+ updated: string;
1132
+ /**
1133
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1134
+ */
1135
+ status: UpdateToolResponseBodyToolsStatus;
1136
+ type: "json_schema";
1137
+ jsonSchema: UpdateToolResponseBodyJsonSchema;
1138
+ };
1139
+
1140
+ /**
1141
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1142
+ */
1143
+ export const UpdateToolResponseBodyStatus = {
1144
+ Live: "live",
1145
+ Draft: "draft",
1146
+ Pending: "pending",
1147
+ Published: "published",
1148
+ } as const;
1149
+ /**
1150
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1151
+ */
1152
+ export type UpdateToolResponseBodyStatus = ClosedEnum<
1153
+ typeof UpdateToolResponseBodyStatus
1154
+ >;
1155
+
1156
+ /**
1157
+ * The type must be "object"
1158
+ */
1159
+ export const UpdateToolResponseBodyToolsResponse200ApplicationJson1Type = {
1160
+ Object: "object",
1161
+ } as const;
1162
+ /**
1163
+ * The type must be "object"
1164
+ */
1165
+ export type UpdateToolResponseBodyToolsResponse200ApplicationJson1Type =
1166
+ ClosedEnum<typeof UpdateToolResponseBodyToolsResponse200ApplicationJson1Type>;
1167
+
1168
+ /**
1169
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1170
+ */
1171
+ export type UpdateToolResponseBodyParameters = {
1172
+ /**
1173
+ * The type must be "object"
1174
+ */
1175
+ type: UpdateToolResponseBodyToolsResponse200ApplicationJson1Type;
1176
+ /**
1177
+ * The properties of the function parameters
1178
+ */
1179
+ properties: { [k: string]: any };
1180
+ /**
1181
+ * Array of required parameter names
1182
+ */
1183
+ required: Array<string>;
1184
+ additionalProperties?: { [k: string]: any } | undefined;
1185
+ };
1186
+
1187
+ export type UpdateToolResponseBodyFunction = {
1188
+ /**
1189
+ * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
1190
+ */
1191
+ name: string;
1192
+ /**
1193
+ * A description of what the function does, used by the model to choose when and how to call the function.
1194
+ */
1195
+ description?: string | undefined;
1196
+ /**
1197
+ * Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
1198
+ */
1199
+ strict?: boolean | undefined;
1200
+ /**
1201
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1202
+ */
1203
+ parameters?: UpdateToolResponseBodyParameters | undefined;
1204
+ };
1205
+
1206
+ /**
1207
+ * A custom function tool that allows the model to call predefined functions with structured parameters.
1208
+ */
1209
+ export type UpdateToolResponseBodyFunctionTool = {
1210
+ id: string;
1211
+ /**
1212
+ * Entity storage path in the format: `project/folder/subfolder/...`
1213
+ *
1214
+ * @remarks
1215
+ *
1216
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
1217
+ *
1218
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
1219
+ */
1220
+ path: string;
1221
+ /**
1222
+ * Unique key of the tool as it will be displayed in the UI
1223
+ */
1224
+ key: string;
1225
+ /**
1226
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
1227
+ */
1228
+ displayName?: string | undefined;
1229
+ /**
1230
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
1231
+ */
1232
+ description: string;
1233
+ /**
1234
+ * The id of the user that created the tool
1235
+ */
1236
+ createdById?: string | undefined;
1237
+ /**
1238
+ * The id of the user that last updated the tool
1239
+ */
1240
+ updatedById?: string | undefined;
1241
+ projectId: string;
1242
+ workspaceId: string;
1243
+ created: string;
1244
+ updated: string;
1245
+ /**
1246
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1247
+ */
1248
+ status: UpdateToolResponseBodyStatus;
1249
+ type: "function";
1250
+ function: UpdateToolResponseBodyFunction;
1251
+ };
1252
+
1253
+ /**
1254
+ * Successfully updated the tool.
1255
+ */
1256
+ export type UpdateToolResponseBody =
1257
+ | UpdateToolResponseBodyFunctionTool
1258
+ | UpdateToolResponseBodyJSONSchemaTool
1259
+ | UpdateToolResponseBodyHTTPTool
1260
+ | UpdateToolResponseBodyMCPTool
1261
+ | UpdateToolResponseBodyCodeExecutionTool;
1262
+
1263
+ /** @internal */
1264
+ export const UpdateToolRequestBodyToolsRequest5Status$outboundSchema:
1265
+ z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest5Status> = z
1266
+ .nativeEnum(UpdateToolRequestBodyToolsRequest5Status);
1267
+
1268
+ /** @internal */
1269
+ export const UpdateToolRequestBodyToolsRequest5CodeToolType$outboundSchema:
1270
+ z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest5CodeToolType> = z
1271
+ .nativeEnum(UpdateToolRequestBodyToolsRequest5CodeToolType);
1272
+
1273
+ /** @internal */
1274
+ export type UpdateToolRequestBodyToolsParameters$Outbound = {
1275
+ type: string;
1276
+ properties: { [k: string]: any };
1277
+ required: Array<string>;
1278
+ [additionalProperties: string]: unknown;
1279
+ };
1280
+
1281
+ /** @internal */
1282
+ export const UpdateToolRequestBodyToolsParameters$outboundSchema: z.ZodType<
1283
+ UpdateToolRequestBodyToolsParameters$Outbound,
1284
+ z.ZodTypeDef,
1285
+ UpdateToolRequestBodyToolsParameters
1286
+ > = z.object({
1287
+ type: UpdateToolRequestBodyToolsRequest5CodeToolType$outboundSchema,
1288
+ properties: z.record(z.any()),
1289
+ required: z.array(z.string()),
1290
+ additionalProperties: z.record(z.any()).optional(),
1291
+ }).transform((v) => {
1292
+ return {
1293
+ ...v.additionalProperties,
1294
+ ...remap$(v, {
1295
+ additionalProperties: null,
1296
+ }),
1297
+ };
1298
+ });
1299
+
1300
+ export function updateToolRequestBodyToolsParametersToJSON(
1301
+ updateToolRequestBodyToolsParameters: UpdateToolRequestBodyToolsParameters,
1302
+ ): string {
1303
+ return JSON.stringify(
1304
+ UpdateToolRequestBodyToolsParameters$outboundSchema.parse(
1305
+ updateToolRequestBodyToolsParameters,
1306
+ ),
1307
+ );
1308
+ }
1309
+
1310
+ /** @internal */
1311
+ export const UpdateToolRequestBodyLanguage$outboundSchema: z.ZodNativeEnum<
1312
+ typeof UpdateToolRequestBodyLanguage
1313
+ > = z.nativeEnum(UpdateToolRequestBodyLanguage);
1314
+
1315
+ /** @internal */
1316
+ export type UpdateToolRequestBodyCodeTool$Outbound = {
1317
+ parameters?: UpdateToolRequestBodyToolsParameters$Outbound | undefined;
1318
+ language: string;
1319
+ code: string;
1320
+ };
1321
+
1322
+ /** @internal */
1323
+ export const UpdateToolRequestBodyCodeTool$outboundSchema: z.ZodType<
1324
+ UpdateToolRequestBodyCodeTool$Outbound,
1325
+ z.ZodTypeDef,
1326
+ UpdateToolRequestBodyCodeTool
1327
+ > = z.object({
1328
+ parameters: z.lazy(() => UpdateToolRequestBodyToolsParameters$outboundSchema)
1329
+ .optional(),
1330
+ language: UpdateToolRequestBodyLanguage$outboundSchema,
1331
+ code: z.string(),
1332
+ });
1333
+
1334
+ export function updateToolRequestBodyCodeToolToJSON(
1335
+ updateToolRequestBodyCodeTool: UpdateToolRequestBodyCodeTool,
1336
+ ): string {
1337
+ return JSON.stringify(
1338
+ UpdateToolRequestBodyCodeTool$outboundSchema.parse(
1339
+ updateToolRequestBodyCodeTool,
1340
+ ),
1341
+ );
1342
+ }
1343
+
1344
+ /** @internal */
1345
+ export const UpdateToolRequestBodyToolsRequest5VersionIncrement$outboundSchema:
1346
+ z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest5VersionIncrement> = z
1347
+ .nativeEnum(UpdateToolRequestBodyToolsRequest5VersionIncrement);
1348
+
1349
+ /** @internal */
1350
+ export type UpdateCodeExecutionTool$Outbound = {
1351
+ path?: string | undefined;
1352
+ key?: string | undefined;
1353
+ display_name?: string | undefined;
1354
+ description?: string | undefined;
1355
+ status: string;
1356
+ type: "code";
1357
+ code_tool?: UpdateToolRequestBodyCodeTool$Outbound | undefined;
1358
+ versionIncrement?: string | undefined;
1359
+ versionDescription?: string | undefined;
1360
+ };
1361
+
1362
+ /** @internal */
1363
+ export const UpdateCodeExecutionTool$outboundSchema: z.ZodType<
1364
+ UpdateCodeExecutionTool$Outbound,
1365
+ z.ZodTypeDef,
1366
+ UpdateCodeExecutionTool
1367
+ > = z.object({
1368
+ path: z.string().optional(),
1369
+ key: z.string().optional(),
1370
+ displayName: z.string().optional(),
1371
+ description: z.string().optional(),
1372
+ status: UpdateToolRequestBodyToolsRequest5Status$outboundSchema.default(
1373
+ "live",
1374
+ ),
1375
+ type: z.literal("code"),
1376
+ codeTool: z.lazy(() => UpdateToolRequestBodyCodeTool$outboundSchema)
1377
+ .optional(),
1378
+ versionIncrement:
1379
+ UpdateToolRequestBodyToolsRequest5VersionIncrement$outboundSchema
1380
+ .optional(),
1381
+ versionDescription: z.string().optional(),
1382
+ }).transform((v) => {
1383
+ return remap$(v, {
1384
+ displayName: "display_name",
1385
+ codeTool: "code_tool",
1386
+ });
1387
+ });
1388
+
1389
+ export function updateCodeExecutionToolToJSON(
1390
+ updateCodeExecutionTool: UpdateCodeExecutionTool,
1391
+ ): string {
1392
+ return JSON.stringify(
1393
+ UpdateCodeExecutionTool$outboundSchema.parse(updateCodeExecutionTool),
1394
+ );
1395
+ }
1396
+
1397
+ /** @internal */
1398
+ export const UpdateToolRequestBodyToolsRequest4Status$outboundSchema:
1399
+ z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest4Status> = z
1400
+ .nativeEnum(UpdateToolRequestBodyToolsRequest4Status);
1401
+
1402
+ /** @internal */
1403
+ export type UpdateToolRequestBodyHeaders$Outbound = {
1404
+ value: string;
1405
+ encrypted: boolean;
1406
+ };
1407
+
1408
+ /** @internal */
1409
+ export const UpdateToolRequestBodyHeaders$outboundSchema: z.ZodType<
1410
+ UpdateToolRequestBodyHeaders$Outbound,
1411
+ z.ZodTypeDef,
1412
+ UpdateToolRequestBodyHeaders
1413
+ > = z.object({
1414
+ value: z.string(),
1415
+ encrypted: z.boolean().default(false),
1416
+ });
1417
+
1418
+ export function updateToolRequestBodyHeadersToJSON(
1419
+ updateToolRequestBodyHeaders: UpdateToolRequestBodyHeaders,
1420
+ ): string {
1421
+ return JSON.stringify(
1422
+ UpdateToolRequestBodyHeaders$outboundSchema.parse(
1423
+ updateToolRequestBodyHeaders,
1424
+ ),
1425
+ );
1426
+ }
1427
+
1428
+ /** @internal */
1429
+ export const UpdateToolRequestBodyToolsRequest4McpType$outboundSchema:
1430
+ z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest4McpType> = z
1431
+ .nativeEnum(UpdateToolRequestBodyToolsRequest4McpType);
1432
+
1433
+ /** @internal */
1434
+ export type UpdateToolRequestBodyToolsSchema$Outbound = {
1435
+ type: string;
1436
+ properties?: { [k: string]: any } | undefined;
1437
+ required?: Array<string> | undefined;
1438
+ };
1439
+
1440
+ /** @internal */
1441
+ export const UpdateToolRequestBodyToolsSchema$outboundSchema: z.ZodType<
1442
+ UpdateToolRequestBodyToolsSchema$Outbound,
1443
+ z.ZodTypeDef,
1444
+ UpdateToolRequestBodyToolsSchema
1445
+ > = z.object({
1446
+ type: UpdateToolRequestBodyToolsRequest4McpType$outboundSchema,
1447
+ properties: z.record(z.any()).optional(),
1448
+ required: z.array(z.string()).optional(),
1449
+ });
1450
+
1451
+ export function updateToolRequestBodyToolsSchemaToJSON(
1452
+ updateToolRequestBodyToolsSchema: UpdateToolRequestBodyToolsSchema,
1453
+ ): string {
1454
+ return JSON.stringify(
1455
+ UpdateToolRequestBodyToolsSchema$outboundSchema.parse(
1456
+ updateToolRequestBodyToolsSchema,
1457
+ ),
1458
+ );
1459
+ }
1460
+
1461
+ /** @internal */
1462
+ export type RequestBodyTools$Outbound = {
1463
+ id: string;
1464
+ name: string;
1465
+ description?: string | undefined;
1466
+ schema: UpdateToolRequestBodyToolsSchema$Outbound;
1467
+ };
1468
+
1469
+ /** @internal */
1470
+ export const RequestBodyTools$outboundSchema: z.ZodType<
1471
+ RequestBodyTools$Outbound,
1472
+ z.ZodTypeDef,
1473
+ RequestBodyTools
1474
+ > = z.object({
1475
+ id: z.string().default("01KQ95P61DM5YRHERRK931NFAJ"),
1476
+ name: z.string(),
1477
+ description: z.string().optional(),
1478
+ schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
1479
+ });
1480
+
1481
+ export function requestBodyToolsToJSON(
1482
+ requestBodyTools: RequestBodyTools,
1483
+ ): string {
1484
+ return JSON.stringify(
1485
+ RequestBodyTools$outboundSchema.parse(requestBodyTools),
1486
+ );
1487
+ }
1488
+
1489
+ /** @internal */
1490
+ export const UpdateToolRequestBodyConnectionType$outboundSchema:
1491
+ z.ZodNativeEnum<typeof UpdateToolRequestBodyConnectionType> = z.nativeEnum(
1492
+ UpdateToolRequestBodyConnectionType,
1493
+ );
1494
+
1495
+ /** @internal */
1496
+ export type UpdateToolRequestBodyMcp$Outbound = {
1497
+ server_url?: string | undefined;
1498
+ headers?: { [k: string]: UpdateToolRequestBodyHeaders$Outbound } | undefined;
1499
+ tools?: Array<RequestBodyTools$Outbound> | undefined;
1500
+ connection_type?: string | undefined;
1501
+ };
1502
+
1503
+ /** @internal */
1504
+ export const UpdateToolRequestBodyMcp$outboundSchema: z.ZodType<
1505
+ UpdateToolRequestBodyMcp$Outbound,
1506
+ z.ZodTypeDef,
1507
+ UpdateToolRequestBodyMcp
1508
+ > = z.object({
1509
+ serverUrl: z.string().optional(),
1510
+ headers: z.record(z.lazy(() => UpdateToolRequestBodyHeaders$outboundSchema))
1511
+ .optional(),
1512
+ tools: z.array(z.lazy(() => RequestBodyTools$outboundSchema)).optional(),
1513
+ connectionType: UpdateToolRequestBodyConnectionType$outboundSchema.optional(),
1514
+ }).transform((v) => {
1515
+ return remap$(v, {
1516
+ serverUrl: "server_url",
1517
+ connectionType: "connection_type",
1518
+ });
1519
+ });
1520
+
1521
+ export function updateToolRequestBodyMcpToJSON(
1522
+ updateToolRequestBodyMcp: UpdateToolRequestBodyMcp,
1523
+ ): string {
1524
+ return JSON.stringify(
1525
+ UpdateToolRequestBodyMcp$outboundSchema.parse(updateToolRequestBodyMcp),
1526
+ );
1527
+ }
1528
+
1529
+ /** @internal */
1530
+ export const UpdateToolRequestBodyToolsRequestVersionIncrement$outboundSchema:
1531
+ z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequestVersionIncrement> = z
1532
+ .nativeEnum(UpdateToolRequestBodyToolsRequestVersionIncrement);
1533
+
1534
+ /** @internal */
1535
+ export type UpdateMCPTool$Outbound = {
1536
+ path?: string | undefined;
1537
+ key?: string | undefined;
1538
+ display_name?: string | undefined;
1539
+ description?: string | undefined;
1540
+ status: string;
1541
+ type: "mcp";
1542
+ mcp?: UpdateToolRequestBodyMcp$Outbound | undefined;
1543
+ discovery_variables?: { [k: string]: string } | undefined;
1544
+ versionIncrement?: string | undefined;
1545
+ versionDescription?: string | undefined;
1546
+ };
1547
+
1548
+ /** @internal */
1549
+ export const UpdateMCPTool$outboundSchema: z.ZodType<
1550
+ UpdateMCPTool$Outbound,
1551
+ z.ZodTypeDef,
1552
+ UpdateMCPTool
1553
+ > = z.object({
1554
+ path: z.string().optional(),
1555
+ key: z.string().optional(),
1556
+ displayName: z.string().optional(),
1557
+ description: z.string().optional(),
1558
+ status: UpdateToolRequestBodyToolsRequest4Status$outboundSchema.default(
1559
+ "live",
1560
+ ),
1561
+ type: z.literal("mcp"),
1562
+ mcp: z.lazy(() => UpdateToolRequestBodyMcp$outboundSchema).optional(),
1563
+ discoveryVariables: z.record(z.string()).optional(),
1564
+ versionIncrement:
1565
+ UpdateToolRequestBodyToolsRequestVersionIncrement$outboundSchema.optional(),
1566
+ versionDescription: z.string().optional(),
1567
+ }).transform((v) => {
1568
+ return remap$(v, {
1569
+ displayName: "display_name",
1570
+ discoveryVariables: "discovery_variables",
1571
+ });
1572
+ });
1573
+
1574
+ export function updateMCPToolToJSON(updateMCPTool: UpdateMCPTool): string {
1575
+ return JSON.stringify(UpdateMCPTool$outboundSchema.parse(updateMCPTool));
1576
+ }
1577
+
1578
+ /** @internal */
1579
+ export const UpdateToolRequestBodyToolsRequestStatus$outboundSchema:
1580
+ z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequestStatus> = z
1581
+ .nativeEnum(UpdateToolRequestBodyToolsRequestStatus);
1582
+
1583
+ /** @internal */
1584
+ export const UpdateToolRequestBodyMethod$outboundSchema: z.ZodNativeEnum<
1585
+ typeof UpdateToolRequestBodyMethod
1586
+ > = z.nativeEnum(UpdateToolRequestBodyMethod);
1587
+
1588
+ /** @internal */
1589
+ export type UpdateToolHeaders2$Outbound = {
1590
+ value: string;
1591
+ encrypted: boolean;
1592
+ };
1593
+
1594
+ /** @internal */
1595
+ export const UpdateToolHeaders2$outboundSchema: z.ZodType<
1596
+ UpdateToolHeaders2$Outbound,
1597
+ z.ZodTypeDef,
1598
+ UpdateToolHeaders2
1599
+ > = z.object({
1600
+ value: z.string(),
1601
+ encrypted: z.boolean().default(false),
1602
+ });
1603
+
1604
+ export function updateToolHeaders2ToJSON(
1605
+ updateToolHeaders2: UpdateToolHeaders2,
1606
+ ): string {
1607
+ return JSON.stringify(
1608
+ UpdateToolHeaders2$outboundSchema.parse(updateToolHeaders2),
1609
+ );
1610
+ }
1611
+
1612
+ /** @internal */
1613
+ export type UpdateToolRequestBodyToolsHeaders$Outbound =
1614
+ | UpdateToolHeaders2$Outbound
1615
+ | string;
1616
+
1617
+ /** @internal */
1618
+ export const UpdateToolRequestBodyToolsHeaders$outboundSchema: z.ZodType<
1619
+ UpdateToolRequestBodyToolsHeaders$Outbound,
1620
+ z.ZodTypeDef,
1621
+ UpdateToolRequestBodyToolsHeaders
1622
+ > = z.union([z.lazy(() => UpdateToolHeaders2$outboundSchema), z.string()]);
1623
+
1624
+ export function updateToolRequestBodyToolsHeadersToJSON(
1625
+ updateToolRequestBodyToolsHeaders: UpdateToolRequestBodyToolsHeaders,
1626
+ ): string {
1627
+ return JSON.stringify(
1628
+ UpdateToolRequestBodyToolsHeaders$outboundSchema.parse(
1629
+ updateToolRequestBodyToolsHeaders,
1630
+ ),
1631
+ );
1632
+ }
1633
+
1634
+ /** @internal */
1635
+ export type UpdateToolRequestBodyBlueprint$Outbound = {
1636
+ url: string;
1637
+ method: string;
1638
+ headers?: { [k: string]: UpdateToolHeaders2$Outbound | string } | undefined;
1639
+ body?: { [k: string]: any } | undefined;
1640
+ };
1641
+
1642
+ /** @internal */
1643
+ export const UpdateToolRequestBodyBlueprint$outboundSchema: z.ZodType<
1644
+ UpdateToolRequestBodyBlueprint$Outbound,
1645
+ z.ZodTypeDef,
1646
+ UpdateToolRequestBodyBlueprint
1647
+ > = z.object({
1648
+ url: z.string(),
1649
+ method: UpdateToolRequestBodyMethod$outboundSchema,
1650
+ headers: z.record(
1651
+ z.union([z.lazy(() => UpdateToolHeaders2$outboundSchema), z.string()]),
1652
+ ).optional(),
1653
+ body: z.record(z.any()).optional(),
1654
+ });
1655
+
1656
+ export function updateToolRequestBodyBlueprintToJSON(
1657
+ updateToolRequestBodyBlueprint: UpdateToolRequestBodyBlueprint,
1658
+ ): string {
1659
+ return JSON.stringify(
1660
+ UpdateToolRequestBodyBlueprint$outboundSchema.parse(
1661
+ updateToolRequestBodyBlueprint,
1662
+ ),
1663
+ );
1664
+ }
1665
+
1666
+ /** @internal */
1667
+ export const UpdateToolRequestBodyToolsRequest3Type$outboundSchema:
1668
+ z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest3Type> = z.nativeEnum(
1669
+ UpdateToolRequestBodyToolsRequest3Type,
1670
+ );
1671
+
1672
+ /** @internal */
1673
+ export type UpdateToolRequestBodyDefaultValue$Outbound =
1674
+ | string
1675
+ | number
1676
+ | boolean;
1677
+
1678
+ /** @internal */
1679
+ export const UpdateToolRequestBodyDefaultValue$outboundSchema: z.ZodType<
1680
+ UpdateToolRequestBodyDefaultValue$Outbound,
1681
+ z.ZodTypeDef,
1682
+ UpdateToolRequestBodyDefaultValue
1683
+ > = z.union([z.string(), z.number(), z.boolean()]);
1684
+
1685
+ export function updateToolRequestBodyDefaultValueToJSON(
1686
+ updateToolRequestBodyDefaultValue: UpdateToolRequestBodyDefaultValue,
1687
+ ): string {
1688
+ return JSON.stringify(
1689
+ UpdateToolRequestBodyDefaultValue$outboundSchema.parse(
1690
+ updateToolRequestBodyDefaultValue,
1691
+ ),
1692
+ );
1693
+ }
1694
+
1695
+ /** @internal */
1696
+ export type UpdateToolRequestBodyArguments$Outbound = {
1697
+ type: string;
1698
+ description: string;
1699
+ send_to_model: boolean;
1700
+ default_value?: string | number | boolean | undefined;
1701
+ };
1702
+
1703
+ /** @internal */
1704
+ export const UpdateToolRequestBodyArguments$outboundSchema: z.ZodType<
1705
+ UpdateToolRequestBodyArguments$Outbound,
1706
+ z.ZodTypeDef,
1707
+ UpdateToolRequestBodyArguments
1708
+ > = z.object({
1709
+ type: UpdateToolRequestBodyToolsRequest3Type$outboundSchema,
1710
+ description: z.string(),
1711
+ sendToModel: z.boolean().default(true),
1712
+ defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
1713
+ }).transform((v) => {
1714
+ return remap$(v, {
1715
+ sendToModel: "send_to_model",
1716
+ defaultValue: "default_value",
1717
+ });
1718
+ });
1719
+
1720
+ export function updateToolRequestBodyArgumentsToJSON(
1721
+ updateToolRequestBodyArguments: UpdateToolRequestBodyArguments,
1722
+ ): string {
1723
+ return JSON.stringify(
1724
+ UpdateToolRequestBodyArguments$outboundSchema.parse(
1725
+ updateToolRequestBodyArguments,
1726
+ ),
1727
+ );
1728
+ }
1729
+
1730
+ /** @internal */
1731
+ export type UpdateToolRequestBodyHttp$Outbound = {
1732
+ blueprint: UpdateToolRequestBodyBlueprint$Outbound;
1733
+ arguments?:
1734
+ | { [k: string]: UpdateToolRequestBodyArguments$Outbound }
1735
+ | undefined;
1736
+ };
1737
+
1738
+ /** @internal */
1739
+ export const UpdateToolRequestBodyHttp$outboundSchema: z.ZodType<
1740
+ UpdateToolRequestBodyHttp$Outbound,
1741
+ z.ZodTypeDef,
1742
+ UpdateToolRequestBodyHttp
1743
+ > = z.object({
1744
+ blueprint: z.lazy(() => UpdateToolRequestBodyBlueprint$outboundSchema),
1745
+ arguments: z.record(
1746
+ z.lazy(() => UpdateToolRequestBodyArguments$outboundSchema),
1747
+ ).optional(),
1748
+ });
1749
+
1750
+ export function updateToolRequestBodyHttpToJSON(
1751
+ updateToolRequestBodyHttp: UpdateToolRequestBodyHttp,
1752
+ ): string {
1753
+ return JSON.stringify(
1754
+ UpdateToolRequestBodyHttp$outboundSchema.parse(updateToolRequestBodyHttp),
1755
+ );
1756
+ }
1757
+
1758
+ /** @internal */
1759
+ export const UpdateToolRequestBodyToolsVersionIncrement$outboundSchema:
1760
+ z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsVersionIncrement> = z
1761
+ .nativeEnum(UpdateToolRequestBodyToolsVersionIncrement);
1762
+
1763
+ /** @internal */
1764
+ export type UpdateHTTPTool$Outbound = {
1765
+ path?: string | undefined;
1766
+ key?: string | undefined;
1767
+ display_name?: string | undefined;
1768
+ description?: string | undefined;
1769
+ status: string;
1770
+ type: "http";
1771
+ http?: UpdateToolRequestBodyHttp$Outbound | undefined;
1772
+ versionIncrement?: string | undefined;
1773
+ versionDescription?: string | undefined;
1774
+ };
1775
+
1776
+ /** @internal */
1777
+ export const UpdateHTTPTool$outboundSchema: z.ZodType<
1778
+ UpdateHTTPTool$Outbound,
1779
+ z.ZodTypeDef,
1780
+ UpdateHTTPTool
1781
+ > = z.object({
1782
+ path: z.string().optional(),
1783
+ key: z.string().optional(),
1784
+ displayName: z.string().optional(),
1785
+ description: z.string().optional(),
1786
+ status: UpdateToolRequestBodyToolsRequestStatus$outboundSchema.default(
1787
+ "live",
1788
+ ),
1789
+ type: z.literal("http"),
1790
+ http: z.lazy(() => UpdateToolRequestBodyHttp$outboundSchema).optional(),
1791
+ versionIncrement: UpdateToolRequestBodyToolsVersionIncrement$outboundSchema
1792
+ .optional(),
1793
+ versionDescription: z.string().optional(),
1794
+ }).transform((v) => {
1795
+ return remap$(v, {
1796
+ displayName: "display_name",
1797
+ });
1798
+ });
1799
+
1800
+ export function updateHTTPToolToJSON(updateHTTPTool: UpdateHTTPTool): string {
1801
+ return JSON.stringify(UpdateHTTPTool$outboundSchema.parse(updateHTTPTool));
1802
+ }
1803
+
1804
+ /** @internal */
1805
+ export const UpdateToolRequestBodyToolsStatus$outboundSchema: z.ZodNativeEnum<
1806
+ typeof UpdateToolRequestBodyToolsStatus
1807
+ > = z.nativeEnum(UpdateToolRequestBodyToolsStatus);
1808
+
1809
+ /** @internal */
1810
+ export type UpdateToolRequestBodySchema$Outbound = {
1811
+ type: string;
1812
+ properties: { [k: string]: any };
1813
+ required: Array<string>;
1814
+ [additionalProperties: string]: unknown;
1815
+ };
1816
+
1817
+ /** @internal */
1818
+ export const UpdateToolRequestBodySchema$outboundSchema: z.ZodType<
1819
+ UpdateToolRequestBodySchema$Outbound,
1820
+ z.ZodTypeDef,
1821
+ UpdateToolRequestBodySchema
1822
+ > = z.object({
1823
+ type: z.string(),
1824
+ properties: z.record(z.any()),
1825
+ required: z.array(z.string()),
1826
+ additionalProperties: z.record(z.any()).optional(),
1827
+ }).transform((v) => {
1828
+ return {
1829
+ ...v.additionalProperties,
1830
+ ...remap$(v, {
1831
+ additionalProperties: null,
1832
+ }),
1833
+ };
1834
+ });
1835
+
1836
+ export function updateToolRequestBodySchemaToJSON(
1837
+ updateToolRequestBodySchema: UpdateToolRequestBodySchema,
1838
+ ): string {
1839
+ return JSON.stringify(
1840
+ UpdateToolRequestBodySchema$outboundSchema.parse(
1841
+ updateToolRequestBodySchema,
1842
+ ),
1843
+ );
1844
+ }
1845
+
1846
+ /** @internal */
1847
+ export type UpdateToolRequestBodyJsonSchema$Outbound = {
1848
+ name: string;
1849
+ description: string;
1850
+ schema: UpdateToolRequestBodySchema$Outbound;
1851
+ strict?: boolean | undefined;
1852
+ };
1853
+
1854
+ /** @internal */
1855
+ export const UpdateToolRequestBodyJsonSchema$outboundSchema: z.ZodType<
1856
+ UpdateToolRequestBodyJsonSchema$Outbound,
1857
+ z.ZodTypeDef,
1858
+ UpdateToolRequestBodyJsonSchema
1859
+ > = z.object({
1860
+ name: z.string(),
1861
+ description: z.string(),
1862
+ schema: z.lazy(() => UpdateToolRequestBodySchema$outboundSchema),
1863
+ strict: z.boolean().optional(),
1864
+ });
1865
+
1866
+ export function updateToolRequestBodyJsonSchemaToJSON(
1867
+ updateToolRequestBodyJsonSchema: UpdateToolRequestBodyJsonSchema,
1868
+ ): string {
1869
+ return JSON.stringify(
1870
+ UpdateToolRequestBodyJsonSchema$outboundSchema.parse(
1871
+ updateToolRequestBodyJsonSchema,
1872
+ ),
1873
+ );
1874
+ }
1875
+
1876
+ /** @internal */
1877
+ export const UpdateToolRequestBodyVersionIncrement$outboundSchema:
1878
+ z.ZodNativeEnum<typeof UpdateToolRequestBodyVersionIncrement> = z.nativeEnum(
1879
+ UpdateToolRequestBodyVersionIncrement,
1880
+ );
1881
+
1882
+ /** @internal */
1883
+ export type UpdateJSONSchemaTool$Outbound = {
1884
+ path?: string | undefined;
1885
+ key?: string | undefined;
1886
+ display_name?: string | undefined;
1887
+ description?: string | undefined;
1888
+ status: string;
1889
+ type: "json_schema";
1890
+ json_schema?: UpdateToolRequestBodyJsonSchema$Outbound | undefined;
1891
+ versionIncrement?: string | undefined;
1892
+ versionDescription?: string | undefined;
1893
+ };
1894
+
1895
+ /** @internal */
1896
+ export const UpdateJSONSchemaTool$outboundSchema: z.ZodType<
1897
+ UpdateJSONSchemaTool$Outbound,
1898
+ z.ZodTypeDef,
1899
+ UpdateJSONSchemaTool
1900
+ > = z.object({
1901
+ path: z.string().optional(),
1902
+ key: z.string().optional(),
1903
+ displayName: z.string().optional(),
1904
+ description: z.string().optional(),
1905
+ status: UpdateToolRequestBodyToolsStatus$outboundSchema.default("live"),
1906
+ type: z.literal("json_schema"),
1907
+ jsonSchema: z.lazy(() => UpdateToolRequestBodyJsonSchema$outboundSchema)
1908
+ .optional(),
1909
+ versionIncrement: UpdateToolRequestBodyVersionIncrement$outboundSchema
1910
+ .optional(),
1911
+ versionDescription: z.string().optional(),
1912
+ }).transform((v) => {
1913
+ return remap$(v, {
1914
+ displayName: "display_name",
1915
+ jsonSchema: "json_schema",
1916
+ });
1917
+ });
1918
+
1919
+ export function updateJSONSchemaToolToJSON(
1920
+ updateJSONSchemaTool: UpdateJSONSchemaTool,
1921
+ ): string {
1922
+ return JSON.stringify(
1923
+ UpdateJSONSchemaTool$outboundSchema.parse(updateJSONSchemaTool),
1924
+ );
1925
+ }
1926
+
1927
+ /** @internal */
1928
+ export const UpdateToolRequestBodyStatus$outboundSchema: z.ZodNativeEnum<
1929
+ typeof UpdateToolRequestBodyStatus
1930
+ > = z.nativeEnum(UpdateToolRequestBodyStatus);
1931
+
1932
+ /** @internal */
1933
+ export const UpdateToolRequestBodyToolsRequest1Type$outboundSchema:
1934
+ z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest1Type> = z.nativeEnum(
1935
+ UpdateToolRequestBodyToolsRequest1Type,
1936
+ );
1937
+
1938
+ /** @internal */
1939
+ export type UpdateToolRequestBodyParameters$Outbound = {
1940
+ type: string;
1941
+ properties: { [k: string]: any };
1942
+ required: Array<string>;
1943
+ [additionalProperties: string]: unknown;
1944
+ };
1945
+
1946
+ /** @internal */
1947
+ export const UpdateToolRequestBodyParameters$outboundSchema: z.ZodType<
1948
+ UpdateToolRequestBodyParameters$Outbound,
1949
+ z.ZodTypeDef,
1950
+ UpdateToolRequestBodyParameters
1951
+ > = z.object({
1952
+ type: UpdateToolRequestBodyToolsRequest1Type$outboundSchema,
1953
+ properties: z.record(z.any()),
1954
+ required: z.array(z.string()),
1955
+ additionalProperties: z.record(z.any()).optional(),
1956
+ }).transform((v) => {
1957
+ return {
1958
+ ...v.additionalProperties,
1959
+ ...remap$(v, {
1960
+ additionalProperties: null,
1961
+ }),
1962
+ };
1963
+ });
1964
+
1965
+ export function updateToolRequestBodyParametersToJSON(
1966
+ updateToolRequestBodyParameters: UpdateToolRequestBodyParameters,
1967
+ ): string {
1968
+ return JSON.stringify(
1969
+ UpdateToolRequestBodyParameters$outboundSchema.parse(
1970
+ updateToolRequestBodyParameters,
1971
+ ),
1972
+ );
1973
+ }
1974
+
1975
+ /** @internal */
1976
+ export type UpdateToolRequestBodyFunction$Outbound = {
1977
+ name: string;
1978
+ description?: string | undefined;
1979
+ strict?: boolean | undefined;
1980
+ parameters?: UpdateToolRequestBodyParameters$Outbound | undefined;
1981
+ };
1982
+
1983
+ /** @internal */
1984
+ export const UpdateToolRequestBodyFunction$outboundSchema: z.ZodType<
1985
+ UpdateToolRequestBodyFunction$Outbound,
1986
+ z.ZodTypeDef,
1987
+ UpdateToolRequestBodyFunction
1988
+ > = z.object({
1989
+ name: z.string(),
1990
+ description: z.string().optional(),
1991
+ strict: z.boolean().optional(),
1992
+ parameters: z.lazy(() => UpdateToolRequestBodyParameters$outboundSchema)
1993
+ .optional(),
1994
+ });
1995
+
1996
+ export function updateToolRequestBodyFunctionToJSON(
1997
+ updateToolRequestBodyFunction: UpdateToolRequestBodyFunction,
1998
+ ): string {
1999
+ return JSON.stringify(
2000
+ UpdateToolRequestBodyFunction$outboundSchema.parse(
2001
+ updateToolRequestBodyFunction,
2002
+ ),
2003
+ );
2004
+ }
2005
+
2006
+ /** @internal */
2007
+ export const RequestBodyVersionIncrement$outboundSchema: z.ZodNativeEnum<
2008
+ typeof RequestBodyVersionIncrement
2009
+ > = z.nativeEnum(RequestBodyVersionIncrement);
2010
+
2011
+ /** @internal */
2012
+ export type UpdateFunctionTool$Outbound = {
2013
+ path?: string | undefined;
2014
+ key?: string | undefined;
2015
+ display_name?: string | undefined;
2016
+ description?: string | undefined;
2017
+ status: string;
2018
+ type: "function";
2019
+ function?: UpdateToolRequestBodyFunction$Outbound | undefined;
2020
+ versionIncrement?: string | undefined;
2021
+ versionDescription?: string | undefined;
2022
+ };
2023
+
2024
+ /** @internal */
2025
+ export const UpdateFunctionTool$outboundSchema: z.ZodType<
2026
+ UpdateFunctionTool$Outbound,
2027
+ z.ZodTypeDef,
2028
+ UpdateFunctionTool
2029
+ > = z.object({
2030
+ path: z.string().optional(),
2031
+ key: z.string().optional(),
2032
+ displayName: z.string().optional(),
2033
+ description: z.string().optional(),
2034
+ status: UpdateToolRequestBodyStatus$outboundSchema.default("live"),
2035
+ type: z.literal("function"),
2036
+ function: z.lazy(() => UpdateToolRequestBodyFunction$outboundSchema)
2037
+ .optional(),
2038
+ versionIncrement: RequestBodyVersionIncrement$outboundSchema.optional(),
2039
+ versionDescription: z.string().optional(),
2040
+ }).transform((v) => {
2041
+ return remap$(v, {
2042
+ displayName: "display_name",
2043
+ });
2044
+ });
2045
+
2046
+ export function updateFunctionToolToJSON(
2047
+ updateFunctionTool: UpdateFunctionTool,
2048
+ ): string {
2049
+ return JSON.stringify(
2050
+ UpdateFunctionTool$outboundSchema.parse(updateFunctionTool),
2051
+ );
2052
+ }
2053
+
2054
+ /** @internal */
2055
+ export type UpdateToolRequestBody$Outbound =
2056
+ | UpdateFunctionTool$Outbound
2057
+ | UpdateJSONSchemaTool$Outbound
2058
+ | UpdateHTTPTool$Outbound
2059
+ | UpdateMCPTool$Outbound
2060
+ | UpdateCodeExecutionTool$Outbound;
2061
+
2062
+ /** @internal */
2063
+ export const UpdateToolRequestBody$outboundSchema: z.ZodType<
2064
+ UpdateToolRequestBody$Outbound,
2065
+ z.ZodTypeDef,
2066
+ UpdateToolRequestBody
2067
+ > = z.union([
2068
+ z.lazy(() => UpdateFunctionTool$outboundSchema),
2069
+ z.lazy(() => UpdateJSONSchemaTool$outboundSchema),
2070
+ z.lazy(() => UpdateHTTPTool$outboundSchema),
2071
+ z.lazy(() => UpdateMCPTool$outboundSchema),
2072
+ z.lazy(() => UpdateCodeExecutionTool$outboundSchema),
2073
+ ]);
2074
+
2075
+ export function updateToolRequestBodyToJSON(
2076
+ updateToolRequestBody: UpdateToolRequestBody,
2077
+ ): string {
2078
+ return JSON.stringify(
2079
+ UpdateToolRequestBody$outboundSchema.parse(updateToolRequestBody),
2080
+ );
2081
+ }
2082
+
2083
+ /** @internal */
2084
+ export type UpdateToolRequest$Outbound = {
2085
+ tool_id: string;
2086
+ RequestBody?:
2087
+ | UpdateFunctionTool$Outbound
2088
+ | UpdateJSONSchemaTool$Outbound
2089
+ | UpdateHTTPTool$Outbound
2090
+ | UpdateMCPTool$Outbound
2091
+ | UpdateCodeExecutionTool$Outbound
2092
+ | undefined;
2093
+ };
2094
+
2095
+ /** @internal */
2096
+ export const UpdateToolRequest$outboundSchema: z.ZodType<
2097
+ UpdateToolRequest$Outbound,
2098
+ z.ZodTypeDef,
2099
+ UpdateToolRequest
2100
+ > = z.object({
2101
+ toolId: z.string(),
2102
+ requestBody: z.union([
2103
+ z.lazy(() => UpdateFunctionTool$outboundSchema),
2104
+ z.lazy(() => UpdateJSONSchemaTool$outboundSchema),
2105
+ z.lazy(() => UpdateHTTPTool$outboundSchema),
2106
+ z.lazy(() => UpdateMCPTool$outboundSchema),
2107
+ z.lazy(() => UpdateCodeExecutionTool$outboundSchema),
2108
+ ]).optional(),
2109
+ }).transform((v) => {
2110
+ return remap$(v, {
2111
+ toolId: "tool_id",
2112
+ requestBody: "RequestBody",
2113
+ });
2114
+ });
2115
+
2116
+ export function updateToolRequestToJSON(
2117
+ updateToolRequest: UpdateToolRequest,
2118
+ ): string {
2119
+ return JSON.stringify(
2120
+ UpdateToolRequest$outboundSchema.parse(updateToolRequest),
2121
+ );
2122
+ }
2123
+
2124
+ /** @internal */
2125
+ export const UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus$inboundSchema:
2126
+ z.ZodNativeEnum<
2127
+ typeof UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus
2128
+ > = z.nativeEnum(UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus);
2129
+
2130
+ /** @internal */
2131
+ export const UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema:
2132
+ z.ZodNativeEnum<
2133
+ typeof UpdateToolResponseBodyToolsResponse200ApplicationJson5Type
2134
+ > = z.nativeEnum(UpdateToolResponseBodyToolsResponse200ApplicationJson5Type);
2135
+
2136
+ /** @internal */
2137
+ export const UpdateToolResponseBodyToolsParameters$inboundSchema: z.ZodType<
2138
+ UpdateToolResponseBodyToolsParameters,
2139
+ z.ZodTypeDef,
2140
+ unknown
2141
+ > = collectExtraKeys$(
2142
+ z.object({
2143
+ type:
2144
+ UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema,
2145
+ properties: z.record(z.any()),
2146
+ required: z.array(z.string()),
2147
+ }).catchall(z.any()),
2148
+ "additionalProperties",
2149
+ true,
2150
+ );
2151
+
2152
+ export function updateToolResponseBodyToolsParametersFromJSON(
2153
+ jsonString: string,
2154
+ ): SafeParseResult<UpdateToolResponseBodyToolsParameters, SDKValidationError> {
2155
+ return safeParse(
2156
+ jsonString,
2157
+ (x) =>
2158
+ UpdateToolResponseBodyToolsParameters$inboundSchema.parse(JSON.parse(x)),
2159
+ `Failed to parse 'UpdateToolResponseBodyToolsParameters' from JSON`,
2160
+ );
2161
+ }
2162
+
2163
+ /** @internal */
2164
+ export const UpdateToolResponseBodyLanguage$inboundSchema: z.ZodNativeEnum<
2165
+ typeof UpdateToolResponseBodyLanguage
2166
+ > = z.nativeEnum(UpdateToolResponseBodyLanguage);
2167
+
2168
+ /** @internal */
2169
+ export const UpdateToolResponseBodyCodeTool$inboundSchema: z.ZodType<
2170
+ UpdateToolResponseBodyCodeTool,
2171
+ z.ZodTypeDef,
2172
+ unknown
2173
+ > = z.object({
2174
+ parameters: z.lazy(() => UpdateToolResponseBodyToolsParameters$inboundSchema)
2175
+ .optional(),
2176
+ language: UpdateToolResponseBodyLanguage$inboundSchema,
2177
+ code: z.string(),
2178
+ });
2179
+
2180
+ export function updateToolResponseBodyCodeToolFromJSON(
2181
+ jsonString: string,
2182
+ ): SafeParseResult<UpdateToolResponseBodyCodeTool, SDKValidationError> {
2183
+ return safeParse(
2184
+ jsonString,
2185
+ (x) => UpdateToolResponseBodyCodeTool$inboundSchema.parse(JSON.parse(x)),
2186
+ `Failed to parse 'UpdateToolResponseBodyCodeTool' from JSON`,
2187
+ );
2188
+ }
2189
+
2190
+ /** @internal */
2191
+ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
2192
+ UpdateToolResponseBodyCodeExecutionTool,
2193
+ z.ZodTypeDef,
2194
+ unknown
2195
+ > = z.object({
2196
+ _id: z.string().default("tool_01KQ95P619PVC9RYJ6KJ5QV9S4"),
2197
+ path: z.string(),
2198
+ key: z.string(),
2199
+ display_name: z.string().optional(),
2200
+ description: z.string(),
2201
+ created_by_id: z.string().optional(),
2202
+ updated_by_id: z.string().optional(),
2203
+ project_id: z.string(),
2204
+ workspace_id: z.string(),
2205
+ created: z.string(),
2206
+ updated: z.string(),
2207
+ status:
2208
+ UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus$inboundSchema
2209
+ .default("live"),
2210
+ type: z.literal("code"),
2211
+ code_tool: z.lazy(() => UpdateToolResponseBodyCodeTool$inboundSchema),
2212
+ }).transform((v) => {
2213
+ return remap$(v, {
2214
+ "_id": "id",
2215
+ "display_name": "displayName",
2216
+ "created_by_id": "createdById",
2217
+ "updated_by_id": "updatedById",
2218
+ "project_id": "projectId",
2219
+ "workspace_id": "workspaceId",
2220
+ "code_tool": "codeTool",
2221
+ });
2222
+ });
2223
+
2224
+ export function updateToolResponseBodyCodeExecutionToolFromJSON(
2225
+ jsonString: string,
2226
+ ): SafeParseResult<
2227
+ UpdateToolResponseBodyCodeExecutionTool,
2228
+ SDKValidationError
2229
+ > {
2230
+ return safeParse(
2231
+ jsonString,
2232
+ (x) =>
2233
+ UpdateToolResponseBodyCodeExecutionTool$inboundSchema.parse(
2234
+ JSON.parse(x),
2235
+ ),
2236
+ `Failed to parse 'UpdateToolResponseBodyCodeExecutionTool' from JSON`,
2237
+ );
2238
+ }
2239
+
2240
+ /** @internal */
2241
+ export const UpdateToolResponseBodyToolsResponse200Status$inboundSchema:
2242
+ z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponse200Status> = z
2243
+ .nativeEnum(UpdateToolResponseBodyToolsResponse200Status);
2244
+
2245
+ /** @internal */
2246
+ export const UpdateToolResponseBodyHeaders$inboundSchema: z.ZodType<
2247
+ UpdateToolResponseBodyHeaders,
2248
+ z.ZodTypeDef,
2249
+ unknown
2250
+ > = z.object({
2251
+ value: z.string(),
2252
+ encrypted: z.boolean().default(false),
2253
+ });
2254
+
2255
+ export function updateToolResponseBodyHeadersFromJSON(
2256
+ jsonString: string,
2257
+ ): SafeParseResult<UpdateToolResponseBodyHeaders, SDKValidationError> {
2258
+ return safeParse(
2259
+ jsonString,
2260
+ (x) => UpdateToolResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)),
2261
+ `Failed to parse 'UpdateToolResponseBodyHeaders' from JSON`,
2262
+ );
2263
+ }
2264
+
2265
+ /** @internal */
2266
+ export const UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema:
2267
+ z.ZodNativeEnum<
2268
+ typeof UpdateToolResponseBodyToolsResponse200ApplicationJson4Type
2269
+ > = z.nativeEnum(UpdateToolResponseBodyToolsResponse200ApplicationJson4Type);
2270
+
2271
+ /** @internal */
2272
+ export const UpdateToolResponseBodyToolsSchema$inboundSchema: z.ZodType<
2273
+ UpdateToolResponseBodyToolsSchema,
2274
+ z.ZodTypeDef,
2275
+ unknown
2276
+ > = z.object({
2277
+ type:
2278
+ UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema,
2279
+ properties: z.record(z.any()).optional(),
2280
+ required: z.array(z.string()).optional(),
2281
+ });
2282
+
2283
+ export function updateToolResponseBodyToolsSchemaFromJSON(
2284
+ jsonString: string,
2285
+ ): SafeParseResult<UpdateToolResponseBodyToolsSchema, SDKValidationError> {
2286
+ return safeParse(
2287
+ jsonString,
2288
+ (x) => UpdateToolResponseBodyToolsSchema$inboundSchema.parse(JSON.parse(x)),
2289
+ `Failed to parse 'UpdateToolResponseBodyToolsSchema' from JSON`,
2290
+ );
2291
+ }
2292
+
2293
+ /** @internal */
2294
+ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
2295
+ UpdateToolResponseBodyTools,
2296
+ z.ZodTypeDef,
2297
+ unknown
2298
+ > = z.object({
2299
+ id: z.string().default("01KQ95P619VPC6KN0DXSRE16KP"),
2300
+ name: z.string(),
2301
+ description: z.string().optional(),
2302
+ schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
2303
+ });
2304
+
2305
+ export function updateToolResponseBodyToolsFromJSON(
2306
+ jsonString: string,
2307
+ ): SafeParseResult<UpdateToolResponseBodyTools, SDKValidationError> {
2308
+ return safeParse(
2309
+ jsonString,
2310
+ (x) => UpdateToolResponseBodyTools$inboundSchema.parse(JSON.parse(x)),
2311
+ `Failed to parse 'UpdateToolResponseBodyTools' from JSON`,
2312
+ );
2313
+ }
2314
+
2315
+ /** @internal */
2316
+ export const UpdateToolResponseBodyConnectionType$inboundSchema:
2317
+ z.ZodNativeEnum<typeof UpdateToolResponseBodyConnectionType> = z.nativeEnum(
2318
+ UpdateToolResponseBodyConnectionType,
2319
+ );
2320
+
2321
+ /** @internal */
2322
+ export const UpdateToolResponseBodyMcp$inboundSchema: z.ZodType<
2323
+ UpdateToolResponseBodyMcp,
2324
+ z.ZodTypeDef,
2325
+ unknown
2326
+ > = z.object({
2327
+ server_url: z.string(),
2328
+ headers: z.record(z.lazy(() => UpdateToolResponseBodyHeaders$inboundSchema))
2329
+ .optional(),
2330
+ tools: z.array(z.lazy(() => UpdateToolResponseBodyTools$inboundSchema)),
2331
+ connection_type: UpdateToolResponseBodyConnectionType$inboundSchema,
2332
+ template_variables: z.nullable(z.array(z.string())).optional(),
2333
+ }).transform((v) => {
2334
+ return remap$(v, {
2335
+ "server_url": "serverUrl",
2336
+ "connection_type": "connectionType",
2337
+ "template_variables": "templateVariables",
2338
+ });
2339
+ });
2340
+
2341
+ export function updateToolResponseBodyMcpFromJSON(
2342
+ jsonString: string,
2343
+ ): SafeParseResult<UpdateToolResponseBodyMcp, SDKValidationError> {
2344
+ return safeParse(
2345
+ jsonString,
2346
+ (x) => UpdateToolResponseBodyMcp$inboundSchema.parse(JSON.parse(x)),
2347
+ `Failed to parse 'UpdateToolResponseBodyMcp' from JSON`,
2348
+ );
2349
+ }
2350
+
2351
+ /** @internal */
2352
+ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
2353
+ UpdateToolResponseBodyMCPTool,
2354
+ z.ZodTypeDef,
2355
+ unknown
2356
+ > = z.object({
2357
+ _id: z.string().default("tool_01KQ95P618AT10FCWD9ZTD8AWV"),
2358
+ path: z.string(),
2359
+ key: z.string(),
2360
+ display_name: z.string().optional(),
2361
+ description: z.string(),
2362
+ created_by_id: z.string().optional(),
2363
+ updated_by_id: z.string().optional(),
2364
+ project_id: z.string(),
2365
+ workspace_id: z.string(),
2366
+ created: z.string(),
2367
+ updated: z.string(),
2368
+ status: UpdateToolResponseBodyToolsResponse200Status$inboundSchema.default(
2369
+ "live",
2370
+ ),
2371
+ type: z.literal("mcp"),
2372
+ mcp: z.lazy(() => UpdateToolResponseBodyMcp$inboundSchema),
2373
+ }).transform((v) => {
2374
+ return remap$(v, {
2375
+ "_id": "id",
2376
+ "display_name": "displayName",
2377
+ "created_by_id": "createdById",
2378
+ "updated_by_id": "updatedById",
2379
+ "project_id": "projectId",
2380
+ "workspace_id": "workspaceId",
2381
+ });
2382
+ });
2383
+
2384
+ export function updateToolResponseBodyMCPToolFromJSON(
2385
+ jsonString: string,
2386
+ ): SafeParseResult<UpdateToolResponseBodyMCPTool, SDKValidationError> {
2387
+ return safeParse(
2388
+ jsonString,
2389
+ (x) => UpdateToolResponseBodyMCPTool$inboundSchema.parse(JSON.parse(x)),
2390
+ `Failed to parse 'UpdateToolResponseBodyMCPTool' from JSON`,
2391
+ );
2392
+ }
2393
+
2394
+ /** @internal */
2395
+ export const UpdateToolResponseBodyToolsResponseStatus$inboundSchema:
2396
+ z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponseStatus> = z
2397
+ .nativeEnum(UpdateToolResponseBodyToolsResponseStatus);
2398
+
2399
+ /** @internal */
2400
+ export const UpdateToolResponseBodyMethod$inboundSchema: z.ZodNativeEnum<
2401
+ typeof UpdateToolResponseBodyMethod
2402
+ > = z.nativeEnum(UpdateToolResponseBodyMethod);
2403
+
2404
+ /** @internal */
2405
+ export const UpdateToolHeadersTools2$inboundSchema: z.ZodType<
2406
+ UpdateToolHeadersTools2,
2407
+ z.ZodTypeDef,
2408
+ unknown
2409
+ > = z.object({
2410
+ value: z.string(),
2411
+ encrypted: z.boolean().default(false),
2412
+ });
2413
+
2414
+ export function updateToolHeadersTools2FromJSON(
2415
+ jsonString: string,
2416
+ ): SafeParseResult<UpdateToolHeadersTools2, SDKValidationError> {
2417
+ return safeParse(
2418
+ jsonString,
2419
+ (x) => UpdateToolHeadersTools2$inboundSchema.parse(JSON.parse(x)),
2420
+ `Failed to parse 'UpdateToolHeadersTools2' from JSON`,
2421
+ );
2422
+ }
2423
+
2424
+ /** @internal */
2425
+ export const UpdateToolResponseBodyToolsHeaders$inboundSchema: z.ZodType<
2426
+ UpdateToolResponseBodyToolsHeaders,
2427
+ z.ZodTypeDef,
2428
+ unknown
2429
+ > = z.union([z.lazy(() => UpdateToolHeadersTools2$inboundSchema), z.string()]);
2430
+
2431
+ export function updateToolResponseBodyToolsHeadersFromJSON(
2432
+ jsonString: string,
2433
+ ): SafeParseResult<UpdateToolResponseBodyToolsHeaders, SDKValidationError> {
2434
+ return safeParse(
2435
+ jsonString,
2436
+ (x) =>
2437
+ UpdateToolResponseBodyToolsHeaders$inboundSchema.parse(JSON.parse(x)),
2438
+ `Failed to parse 'UpdateToolResponseBodyToolsHeaders' from JSON`,
2439
+ );
2440
+ }
2441
+
2442
+ /** @internal */
2443
+ export const UpdateToolResponseBodyBlueprint$inboundSchema: z.ZodType<
2444
+ UpdateToolResponseBodyBlueprint,
2445
+ z.ZodTypeDef,
2446
+ unknown
2447
+ > = z.object({
2448
+ url: z.string(),
2449
+ method: UpdateToolResponseBodyMethod$inboundSchema,
2450
+ headers: z.record(
2451
+ z.union([z.lazy(() => UpdateToolHeadersTools2$inboundSchema), z.string()]),
2452
+ ).optional(),
2453
+ body: z.record(z.any()).optional(),
2454
+ });
2455
+
2456
+ export function updateToolResponseBodyBlueprintFromJSON(
2457
+ jsonString: string,
2458
+ ): SafeParseResult<UpdateToolResponseBodyBlueprint, SDKValidationError> {
2459
+ return safeParse(
2460
+ jsonString,
2461
+ (x) => UpdateToolResponseBodyBlueprint$inboundSchema.parse(JSON.parse(x)),
2462
+ `Failed to parse 'UpdateToolResponseBodyBlueprint' from JSON`,
2463
+ );
2464
+ }
2465
+
2466
+ /** @internal */
2467
+ export const UpdateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema:
2468
+ z.ZodNativeEnum<
2469
+ typeof UpdateToolResponseBodyToolsResponse200ApplicationJson3Type
2470
+ > = z.nativeEnum(UpdateToolResponseBodyToolsResponse200ApplicationJson3Type);
2471
+
2472
+ /** @internal */
2473
+ export const UpdateToolResponseBodyDefaultValue$inboundSchema: z.ZodType<
2474
+ UpdateToolResponseBodyDefaultValue,
2475
+ z.ZodTypeDef,
2476
+ unknown
2477
+ > = z.union([z.string(), z.number(), z.boolean()]);
2478
+
2479
+ export function updateToolResponseBodyDefaultValueFromJSON(
2480
+ jsonString: string,
2481
+ ): SafeParseResult<UpdateToolResponseBodyDefaultValue, SDKValidationError> {
2482
+ return safeParse(
2483
+ jsonString,
2484
+ (x) =>
2485
+ UpdateToolResponseBodyDefaultValue$inboundSchema.parse(JSON.parse(x)),
2486
+ `Failed to parse 'UpdateToolResponseBodyDefaultValue' from JSON`,
2487
+ );
2488
+ }
2489
+
2490
+ /** @internal */
2491
+ export const UpdateToolResponseBodyArguments$inboundSchema: z.ZodType<
2492
+ UpdateToolResponseBodyArguments,
2493
+ z.ZodTypeDef,
2494
+ unknown
2495
+ > = z.object({
2496
+ type:
2497
+ UpdateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema,
2498
+ description: z.string(),
2499
+ send_to_model: z.boolean().default(true),
2500
+ default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
2501
+ }).transform((v) => {
2502
+ return remap$(v, {
2503
+ "send_to_model": "sendToModel",
2504
+ "default_value": "defaultValue",
2505
+ });
2506
+ });
2507
+
2508
+ export function updateToolResponseBodyArgumentsFromJSON(
2509
+ jsonString: string,
2510
+ ): SafeParseResult<UpdateToolResponseBodyArguments, SDKValidationError> {
2511
+ return safeParse(
2512
+ jsonString,
2513
+ (x) => UpdateToolResponseBodyArguments$inboundSchema.parse(JSON.parse(x)),
2514
+ `Failed to parse 'UpdateToolResponseBodyArguments' from JSON`,
2515
+ );
2516
+ }
2517
+
2518
+ /** @internal */
2519
+ export const UpdateToolResponseBodyHttp$inboundSchema: z.ZodType<
2520
+ UpdateToolResponseBodyHttp,
2521
+ z.ZodTypeDef,
2522
+ unknown
2523
+ > = z.object({
2524
+ blueprint: z.lazy(() => UpdateToolResponseBodyBlueprint$inboundSchema),
2525
+ arguments: z.record(
2526
+ z.lazy(() => UpdateToolResponseBodyArguments$inboundSchema),
2527
+ ).optional(),
2528
+ });
2529
+
2530
+ export function updateToolResponseBodyHttpFromJSON(
2531
+ jsonString: string,
2532
+ ): SafeParseResult<UpdateToolResponseBodyHttp, SDKValidationError> {
2533
+ return safeParse(
2534
+ jsonString,
2535
+ (x) => UpdateToolResponseBodyHttp$inboundSchema.parse(JSON.parse(x)),
2536
+ `Failed to parse 'UpdateToolResponseBodyHttp' from JSON`,
2537
+ );
2538
+ }
2539
+
2540
+ /** @internal */
2541
+ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
2542
+ UpdateToolResponseBodyHTTPTool,
2543
+ z.ZodTypeDef,
2544
+ unknown
2545
+ > = z.object({
2546
+ _id: z.string().default("tool_01KQ95P617862VQXQ7990CW6TR"),
2547
+ path: z.string(),
2548
+ key: z.string(),
2549
+ display_name: z.string().optional(),
2550
+ description: z.string(),
2551
+ created_by_id: z.string().optional(),
2552
+ updated_by_id: z.string().optional(),
2553
+ project_id: z.string(),
2554
+ workspace_id: z.string(),
2555
+ created: z.string(),
2556
+ updated: z.string(),
2557
+ status: UpdateToolResponseBodyToolsResponseStatus$inboundSchema.default(
2558
+ "live",
2559
+ ),
2560
+ type: z.literal("http"),
2561
+ http: z.lazy(() => UpdateToolResponseBodyHttp$inboundSchema),
2562
+ }).transform((v) => {
2563
+ return remap$(v, {
2564
+ "_id": "id",
2565
+ "display_name": "displayName",
2566
+ "created_by_id": "createdById",
2567
+ "updated_by_id": "updatedById",
2568
+ "project_id": "projectId",
2569
+ "workspace_id": "workspaceId",
2570
+ });
2571
+ });
2572
+
2573
+ export function updateToolResponseBodyHTTPToolFromJSON(
2574
+ jsonString: string,
2575
+ ): SafeParseResult<UpdateToolResponseBodyHTTPTool, SDKValidationError> {
2576
+ return safeParse(
2577
+ jsonString,
2578
+ (x) => UpdateToolResponseBodyHTTPTool$inboundSchema.parse(JSON.parse(x)),
2579
+ `Failed to parse 'UpdateToolResponseBodyHTTPTool' from JSON`,
2580
+ );
2581
+ }
2582
+
2583
+ /** @internal */
2584
+ export const UpdateToolResponseBodyToolsStatus$inboundSchema: z.ZodNativeEnum<
2585
+ typeof UpdateToolResponseBodyToolsStatus
2586
+ > = z.nativeEnum(UpdateToolResponseBodyToolsStatus);
2587
+
2588
+ /** @internal */
2589
+ export const UpdateToolResponseBodySchema$inboundSchema: z.ZodType<
2590
+ UpdateToolResponseBodySchema,
2591
+ z.ZodTypeDef,
2592
+ unknown
2593
+ > = collectExtraKeys$(
2594
+ z.object({
2595
+ type: z.string(),
2596
+ properties: z.record(z.any()),
2597
+ required: z.array(z.string()),
2598
+ }).catchall(z.any()),
2599
+ "additionalProperties",
2600
+ true,
2601
+ );
2602
+
2603
+ export function updateToolResponseBodySchemaFromJSON(
2604
+ jsonString: string,
2605
+ ): SafeParseResult<UpdateToolResponseBodySchema, SDKValidationError> {
2606
+ return safeParse(
2607
+ jsonString,
2608
+ (x) => UpdateToolResponseBodySchema$inboundSchema.parse(JSON.parse(x)),
2609
+ `Failed to parse 'UpdateToolResponseBodySchema' from JSON`,
2610
+ );
2611
+ }
2612
+
2613
+ /** @internal */
2614
+ export const UpdateToolResponseBodyJsonSchema$inboundSchema: z.ZodType<
2615
+ UpdateToolResponseBodyJsonSchema,
2616
+ z.ZodTypeDef,
2617
+ unknown
2618
+ > = z.object({
2619
+ name: z.string(),
2620
+ description: z.string(),
2621
+ schema: z.lazy(() => UpdateToolResponseBodySchema$inboundSchema),
2622
+ strict: z.boolean().optional(),
2623
+ });
2624
+
2625
+ export function updateToolResponseBodyJsonSchemaFromJSON(
2626
+ jsonString: string,
2627
+ ): SafeParseResult<UpdateToolResponseBodyJsonSchema, SDKValidationError> {
2628
+ return safeParse(
2629
+ jsonString,
2630
+ (x) => UpdateToolResponseBodyJsonSchema$inboundSchema.parse(JSON.parse(x)),
2631
+ `Failed to parse 'UpdateToolResponseBodyJsonSchema' from JSON`,
2632
+ );
2633
+ }
2634
+
2635
+ /** @internal */
2636
+ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
2637
+ UpdateToolResponseBodyJSONSchemaTool,
2638
+ z.ZodTypeDef,
2639
+ unknown
2640
+ > = z.object({
2641
+ _id: z.string().default("tool_01KQ95P616HPAWBDVVQ9XKR3V5"),
2642
+ path: z.string(),
2643
+ key: z.string(),
2644
+ display_name: z.string().optional(),
2645
+ description: z.string(),
2646
+ created_by_id: z.string().optional(),
2647
+ updated_by_id: z.string().optional(),
2648
+ project_id: z.string(),
2649
+ workspace_id: z.string(),
2650
+ created: z.string(),
2651
+ updated: z.string(),
2652
+ status: UpdateToolResponseBodyToolsStatus$inboundSchema.default("live"),
2653
+ type: z.literal("json_schema"),
2654
+ json_schema: z.lazy(() => UpdateToolResponseBodyJsonSchema$inboundSchema),
2655
+ }).transform((v) => {
2656
+ return remap$(v, {
2657
+ "_id": "id",
2658
+ "display_name": "displayName",
2659
+ "created_by_id": "createdById",
2660
+ "updated_by_id": "updatedById",
2661
+ "project_id": "projectId",
2662
+ "workspace_id": "workspaceId",
2663
+ "json_schema": "jsonSchema",
2664
+ });
2665
+ });
2666
+
2667
+ export function updateToolResponseBodyJSONSchemaToolFromJSON(
2668
+ jsonString: string,
2669
+ ): SafeParseResult<UpdateToolResponseBodyJSONSchemaTool, SDKValidationError> {
2670
+ return safeParse(
2671
+ jsonString,
2672
+ (x) =>
2673
+ UpdateToolResponseBodyJSONSchemaTool$inboundSchema.parse(JSON.parse(x)),
2674
+ `Failed to parse 'UpdateToolResponseBodyJSONSchemaTool' from JSON`,
2675
+ );
2676
+ }
2677
+
2678
+ /** @internal */
2679
+ export const UpdateToolResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
2680
+ typeof UpdateToolResponseBodyStatus
2681
+ > = z.nativeEnum(UpdateToolResponseBodyStatus);
2682
+
2683
+ /** @internal */
2684
+ export const UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema:
2685
+ z.ZodNativeEnum<
2686
+ typeof UpdateToolResponseBodyToolsResponse200ApplicationJson1Type
2687
+ > = z.nativeEnum(UpdateToolResponseBodyToolsResponse200ApplicationJson1Type);
2688
+
2689
+ /** @internal */
2690
+ export const UpdateToolResponseBodyParameters$inboundSchema: z.ZodType<
2691
+ UpdateToolResponseBodyParameters,
2692
+ z.ZodTypeDef,
2693
+ unknown
2694
+ > = collectExtraKeys$(
2695
+ z.object({
2696
+ type:
2697
+ UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema,
2698
+ properties: z.record(z.any()),
2699
+ required: z.array(z.string()),
2700
+ }).catchall(z.any()),
2701
+ "additionalProperties",
2702
+ true,
2703
+ );
2704
+
2705
+ export function updateToolResponseBodyParametersFromJSON(
2706
+ jsonString: string,
2707
+ ): SafeParseResult<UpdateToolResponseBodyParameters, SDKValidationError> {
2708
+ return safeParse(
2709
+ jsonString,
2710
+ (x) => UpdateToolResponseBodyParameters$inboundSchema.parse(JSON.parse(x)),
2711
+ `Failed to parse 'UpdateToolResponseBodyParameters' from JSON`,
2712
+ );
2713
+ }
2714
+
2715
+ /** @internal */
2716
+ export const UpdateToolResponseBodyFunction$inboundSchema: z.ZodType<
2717
+ UpdateToolResponseBodyFunction,
2718
+ z.ZodTypeDef,
2719
+ unknown
2720
+ > = z.object({
2721
+ name: z.string(),
2722
+ description: z.string().optional(),
2723
+ strict: z.boolean().optional(),
2724
+ parameters: z.lazy(() => UpdateToolResponseBodyParameters$inboundSchema)
2725
+ .optional(),
2726
+ });
2727
+
2728
+ export function updateToolResponseBodyFunctionFromJSON(
2729
+ jsonString: string,
2730
+ ): SafeParseResult<UpdateToolResponseBodyFunction, SDKValidationError> {
2731
+ return safeParse(
2732
+ jsonString,
2733
+ (x) => UpdateToolResponseBodyFunction$inboundSchema.parse(JSON.parse(x)),
2734
+ `Failed to parse 'UpdateToolResponseBodyFunction' from JSON`,
2735
+ );
2736
+ }
2737
+
2738
+ /** @internal */
2739
+ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
2740
+ UpdateToolResponseBodyFunctionTool,
2741
+ z.ZodTypeDef,
2742
+ unknown
2743
+ > = z.object({
2744
+ _id: z.string().default("tool_01KQ95P6159EJ546SJWCYKP4DW"),
2745
+ path: z.string(),
2746
+ key: z.string(),
2747
+ display_name: z.string().optional(),
2748
+ description: z.string(),
2749
+ created_by_id: z.string().optional(),
2750
+ updated_by_id: z.string().optional(),
2751
+ project_id: z.string(),
2752
+ workspace_id: z.string(),
2753
+ created: z.string(),
2754
+ updated: z.string(),
2755
+ status: UpdateToolResponseBodyStatus$inboundSchema.default("live"),
2756
+ type: z.literal("function"),
2757
+ function: z.lazy(() => UpdateToolResponseBodyFunction$inboundSchema),
2758
+ }).transform((v) => {
2759
+ return remap$(v, {
2760
+ "_id": "id",
2761
+ "display_name": "displayName",
2762
+ "created_by_id": "createdById",
2763
+ "updated_by_id": "updatedById",
2764
+ "project_id": "projectId",
2765
+ "workspace_id": "workspaceId",
2766
+ });
2767
+ });
2768
+
2769
+ export function updateToolResponseBodyFunctionToolFromJSON(
2770
+ jsonString: string,
2771
+ ): SafeParseResult<UpdateToolResponseBodyFunctionTool, SDKValidationError> {
2772
+ return safeParse(
2773
+ jsonString,
2774
+ (x) =>
2775
+ UpdateToolResponseBodyFunctionTool$inboundSchema.parse(JSON.parse(x)),
2776
+ `Failed to parse 'UpdateToolResponseBodyFunctionTool' from JSON`,
2777
+ );
2778
+ }
2779
+
2780
+ /** @internal */
2781
+ export const UpdateToolResponseBody$inboundSchema: z.ZodType<
2782
+ UpdateToolResponseBody,
2783
+ z.ZodTypeDef,
2784
+ unknown
2785
+ > = z.union([
2786
+ z.lazy(() => UpdateToolResponseBodyFunctionTool$inboundSchema),
2787
+ z.lazy(() => UpdateToolResponseBodyJSONSchemaTool$inboundSchema),
2788
+ z.lazy(() => UpdateToolResponseBodyHTTPTool$inboundSchema),
2789
+ z.lazy(() => UpdateToolResponseBodyMCPTool$inboundSchema),
2790
+ z.lazy(() => UpdateToolResponseBodyCodeExecutionTool$inboundSchema),
2791
+ ]);
2792
+
2793
+ export function updateToolResponseBodyFromJSON(
2794
+ jsonString: string,
2795
+ ): SafeParseResult<UpdateToolResponseBody, SDKValidationError> {
2796
+ return safeParse(
2797
+ jsonString,
2798
+ (x) => UpdateToolResponseBody$inboundSchema.parse(JSON.parse(x)),
2799
+ `Failed to parse 'UpdateToolResponseBody' from JSON`,
2800
+ );
2801
+ }